[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:56]OFD Sender: No OFD packet to send [02:56:01]OFD Sender: No OFD packet to send [02:56:06]OFD Sender: No OFD packet to send [02:56:11]OFD Sender: No OFD packet to send [02:56:16]OFD Sender: No OFD packet to send [02:56:21]OFD Sender: No OFD packet to send [02:56:26]OFD Sender: No OFD packet to send [02:56:31]OFD Sender: No OFD packet to send [02:56:36]OFD Sender: No OFD packet to send [02:56:41]OFD Sender: No OFD packet to send [02:56:46]OFD Sender: No OFD packet to send [02:56:51]OFD Sender: No OFD packet to send [02:56:56]OFD Sender: No OFD packet to send [02:57:01]OFD Sender: No OFD packet to send [02:57:06]OFD Sender: No OFD packet to send [02:57:11]OFD Sender: No OFD packet to send [02:57:16]OFD Sender: No OFD packet to send [02:57:21]OFD Sender: No OFD packet to send [02:57:26]OFD Sender: No OFD packet to send [02:57:31]OFD Sender: No OFD packet to send [02:57:36]OFD Sender: No OFD packet to send [02:57:41]OFD Sender: No OFD packet to send [02:57:46]OFD Sender: No OFD packet to send [02:57:51]OFD Sender: No OFD packet to send [02:57:56]OFD Sender: No OFD packet to send [02:58:01]OFD Sender: No OFD packet to send [02:58:06]OFD Sender: No OFD packet to send [02:58:11]OFD Sender: No OFD packet to send [02:58:16]OFD Sender: No OFD packet to send [02:58:21]OFD Sender: No OFD packet to send [02:58:26]OFD Sender: No OFD packet to send [02:58:31]OFD Sender: No OFD packet to send [02:58:36]OFD Sender: No OFD packet to send [02:58:41]OFD Sender: No OFD packet to send [02:58:46]OFD Sender: No OFD packet to send [02:58:51]OFD Sender: No OFD packet to send [02:58:56]OFD Sender: No OFD packet to send [02:59:01]OFD Sender: No OFD packet to send [02:59:06]OFD Sender: No OFD packet to send [02:59:11]OFD Sender: No OFD packet to send [02:59:16]OFD Sender: No OFD packet to send [02:59:21]OFD Sender: No OFD packet to send [02:59:26]OFD Sender: No OFD packet to send [02:59:31]OFD Sender: No OFD packet to send [02:59:36]OFD Sender: No OFD packet to send [02:59:41]OFD Sender: No OFD packet to send [02:59:46]OFD Sender: No OFD packet to send [02:59:51]OFD Sender: No OFD packet to send [02:59:56]OFD Sender: No OFD packet to send [03:00:01]OFD Sender: No OFD packet to send [03:00:06]OFD Sender: No OFD packet to send [03:00:11]OFD Sender: No OFD packet to send [03:00:16]OFD Sender: No OFD packet to send [03:00:21]OFD Sender: No OFD packet to send [03:00:26]OFD Sender: No OFD packet to send [03:00:31]OFD Sender: No OFD packet to send [03:00:36]OFD Sender: No OFD packet to send [03:00:41]OFD Sender: No OFD packet to send [03:00:46]OFD Sender: No OFD packet to send [03:00:51]OFD Sender: No OFD packet to send [03:00:56]OFD Sender: No OFD packet to send [03:01:01]OFD Sender: No OFD packet to send [03:01:06]OFD Sender: No OFD packet to send [03:01:11]OFD Sender: No OFD packet to send [03:01:16]OFD Sender: No OFD packet to send [03:01:21]OFD Sender: No OFD packet to send [03:01:26]OFD Sender: No OFD packet to send [03:01:31]OFD Sender: No OFD packet to send [03:01:36]OFD Sender: No OFD packet to send [03:01:41]OFD Sender: No OFD packet to send [03:01:46]OFD Sender: No OFD packet to send [03:01:51]OFD Sender: No OFD packet to send [03:01:56]OFD Sender: No OFD packet to send [03:02:01]OFD Sender: No OFD packet to send [03:02:06]OFD Sender: No OFD packet to send [03:02:11]OFD Sender: No OFD packet to send [03:02:16]OFD Sender: No OFD packet to send [03:02:21]OFD Sender: No OFD packet to send [03:02:26]OFD Sender: No OFD packet to send [03:02:31]OFD Sender: No OFD packet to send [03:02:36]OFD Sender: No OFD packet to send [03:02:41]OFD Sender: No OFD packet to send [03:02:46]OFD Sender: No OFD packet to send [03:02:51]OFD Sender: No OFD packet to send [03:02:56]OFD Sender: No OFD packet to send [03:03:01]OFD Sender: No OFD packet to send [03:03:06]OFD Sender: No OFD packet to send [03:03:11]OFD Sender: No OFD packet to send [03:03:16]OFD Sender: No OFD packet to send [03:03:21]OFD Sender: No OFD packet to send [03:03:26]OFD Sender: No OFD packet to send [03:03:31]OFD Sender: No OFD packet to send [03:03:36]OFD Sender: No OFD packet to send [03:03:41]OFD Sender: No OFD packet to send [03:03:46]OFD Sender: No OFD packet to send [03:03:51]OFD Sender: No OFD packet to send [03:03:56]OFD Sender: No OFD packet to send [03:04:01]OFD Sender: No OFD packet to send [03:04:06]OFD Sender: No OFD packet to send [03:04:11]OFD Sender: No OFD packet to send [03:04:16]OFD Sender: No OFD packet to send [03:04: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:12]OFD Sender: No OFD packet to send [03:10:17]OFD Sender: No OFD packet to send [03:10:22]OFD Sender: No OFD packet to send [03:10:27]OFD Sender: No OFD packet to send [03:10:32]OFD Sender: No OFD packet to send [03:10:37]OFD Sender: No OFD packet to send [03:10:42]OFD Sender: No OFD packet to send [03:10:47]OFD Sender: No OFD packet to send [03:10:52]OFD Sender: No OFD packet to send [03:10:57]OFD Sender: No OFD packet to send [03:11:02]OFD Sender: No OFD packet to send [03:11:07]OFD Sender: No OFD packet to send [03:11:12]OFD Sender: No OFD packet to send [03:11:17]OFD Sender: No OFD packet to send [03:11:22]OFD Sender: No OFD packet to send [03:11:27]OFD Sender: No OFD packet to send [03:11:32]OFD Sender: No OFD packet to send [03:11:37]OFD Sender: No OFD packet to send [03:11:42]OFD Sender: No OFD packet to send [03:11:47]OFD Sender: No OFD packet to send [03:11:52]OFD Sender: No OFD packet to send [03:11:57]OFD Sender: No OFD packet to send [03:12:02]OFD Sender: No OFD packet to send [03:12:07]OFD Sender: No OFD packet to send [03:12:12]OFD Sender: No OFD packet to send [03:12:17]OFD Sender: No OFD packet to send [03:12:22]OFD Sender: No OFD packet to send [03:12:27]OFD Sender: No OFD packet to send [03:12:32]OFD Sender: No OFD packet to send [03:12:37]OFD Sender: No OFD packet to send [03:12:42]OFD Sender: No OFD packet to send [03:12:47]OFD Sender: No OFD packet to send [03:12:52]OFD Sender: No OFD packet to send [03:12:57]OFD Sender: No OFD packet to send [03:13:02]OFD Sender: No OFD packet to send [03:13:07]OFD Sender: No OFD packet to send [03:13:12]OFD Sender: No OFD packet to send [03:13:17]OFD Sender: No OFD packet to send [03:13:22]OFD Sender: No OFD packet to send [03:13:27]OFD Sender: No OFD packet to send [03:13:32]OFD Sender: No OFD packet to send [03:13:37]OFD Sender: No OFD packet to send [03:13:42]OFD Sender: No OFD packet to send [03:13:47]OFD Sender: No OFD packet to send [03:13:52]OFD Sender: No OFD packet to send [03:13:57]OFD Sender: No OFD packet to send [03:14:02]OFD Sender: No OFD packet to send [03:14:07]OFD Sender: No OFD packet to send [03:14:12]OFD Sender: No OFD packet to send [03:14:17]OFD Sender: No OFD packet to send [03:14:22]OFD Sender: No OFD packet to send [03:14:27]OFD Sender: No OFD packet to send [03:14:32]OFD Sender: No OFD packet to send [03:14:37]OFD Sender: No OFD packet to send [03:14:42]OFD Sender: No OFD packet to send [03:14:47]OFD Sender: No OFD packet to send [03:14:52]OFD Sender: No OFD packet to send [03:14:57]OFD Sender: No OFD packet to send [03:15:02]OFD Sender: No OFD packet to send [03:15:07]OFD Sender: No OFD packet to send [03:15:12]OFD Sender: No OFD packet to send [03:15:17]OFD Sender: No OFD packet to send [03:15:22]OFD Sender: No OFD packet to send [03:15:27]OFD Sender: No OFD packet to send [03:15:32]OFD Sender: No OFD packet to send [03:15:37]OFD Sender: No OFD packet to send [03:15:42]OFD Sender: No OFD packet to send [03:15:47]OFD Sender: No OFD packet to send [03:15:52]OFD Sender: No OFD packet to send [03:15:57]OFD Sender: No OFD packet to send [03:16:02]OFD Sender: No OFD packet to send [03:16:07]OFD Sender: No OFD packet to send [03:16:12]OFD Sender: No OFD packet to send [03:16:17]OFD Sender: No OFD packet to send [03:16:22]OFD Sender: No OFD packet to send [03:16:27]OFD Sender: No OFD packet to send [03:16:32]OFD Sender: No OFD packet to send [03:16:37]OFD Sender: No OFD packet to send [03:16:42]OFD Sender: No OFD packet to send [03:16:47]OFD Sender: No OFD packet to send [03:16:52]accept exits with 9 [03:16:52]New connection [03:16:52]New thread 3067428196 created [03:16:52]Thread 3067284836 joined [03:16:52]Waiting for new connection... [03:16:52] Sock 9.Parse request [03:16:52]Sock 9.Check first char [03:16:52]Sock 9.First char is OK [03:16:52]request: POST /json_proto HTTP/1.0 [03:16:52]Method: POST [03:16:52]URL: /json_proto [03:16:52]Method is POST - this is cgi request [03:16:52]url: /json_proto [03:16:52]query_string will be loaded in cgi processing [03:16:52]execute_cgi json_proto POST (null) [03:16:52]execute_cgi path=json_proto method=POST [03:16:52]POST find Content-Length [03:16:52]Host: 172.17.45.7:8080 [03:16:52]Content-Length: 820 [03:16:52]Content-Type: application/json [03:16:52] [03:16:52]POST finish read [03:16:52]Found Content-Length = 820 [03:16:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 104.990, "sum" : 8000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 8000.00, "payments": [ { "type": 1, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:16:52]execute_script... [03: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)948938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 104.990, "sum" : 8000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 8000.00, "payments": [ { "type": 1, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:16:52]POST & json_proto [03:16:52]process_json_proto [03:16:52]json parsed OK: [03:16:52]protocol is kg_v1.0 [03:16:52]action value=close_receipt [03:16:52]process_action close_receipt [03:16:52]cmd_close_receipt [03:16:52]MH_GetDate [03:16:52]Write to MH i2c: F0 00 00 D7 24 EA [03:16:52]Write i2c OK [03:16:52]MH_I2C_Read... [03:16:52]Read from MH i2c: F0 [03:16:52]MH_I2C_Read... [03:16:52]Read from MH i2c: F0 09 00 [03:16:52]MH_I2C_Read... [03:16:52]Read from MH i2c: F0 09 00 D7 24 00 A7 66 A4 66 90 0F 3E 66 4D [03:16:52]GetLastDocTimeStamp 1722047299 [03:16:52]current date 1722050215 [03:16:52]FM_GetShiftState [03:16:52]SAM_PROTO_GetShiftState [03:16:52]wFMCommunicate request_size=4 [03:16:52]MH_SAM_APDU [03:16:52]CAPDU: 80 13 01 00 [03:16:52]Write to MH i2c: E2 08 00 D8 24 80 13 01 00 00 00 00 00 79 [03:16:52]Write i2c OK [03:16:52]MH_I2C_Read... [03:16:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:16:52]Read from MH i2c: E2 [03:16:52]MH_I2C_Read... [03:16:52]Read from MH i2c: E2 0E 00 [03:16:52]MH_I2C_Read... [03:16:52]Read from MH i2c: E2 0E 00 D8 24 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 06 [03:16:52]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [03:16:52]wFMCommunicate OK [03:16:52]SAM_PROTO_GetShiftState done [03:16:52]FM_GetShiftState done [03:16:52]opened in 1722038845 [03:16:52]opened+sec_in_day 1722125245 [03:16:52]quantity*price = 800023 [03:16:52]sum+1 = 800025 [03:16:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 8000.00 НСП 1% : 70.80 НДС 12% : 849.58 Наличными: 0.00 Безнал.: 8000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 11 27.07.2024 03:16 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118068 ФПД: 235384854544870 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T031655&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118068&fm=235384854544870&tin=02508201610067®Number=0000000000092660&sum=800000 [03:16:53]StoreToDocumentArchive [03:16:53]shift 432 fd 118068 [03:16:53]save to /storage/0432/doc_00118068 [03:16:53]save last doc name /storage/0432/doc_00118068 to /storage/kkm_last_doc_name [03:16:53]save OK [03:16:53]Clear old archive folders... [03:16:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [03:16:53]tlvbuf is B6F4EA50 [03:16:53]SAM_PROTO_ClearQueue [03:16:53]wFMCommunicate request_size=4 [03:16:53]MH_SAM_APDU [03:16:53]CAPDU: 80 09 00 00 [03:16:53]Write to MH i2c: E2 08 00 E5 24 80 09 00 00 00 00 00 00 7B [03:16:53]Write i2c OK [03:16:53]MH_I2C_Read... [03:16:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:16:53]Read from MH i2c: E2 [03:16:53]MH_I2C_Read... [03:16:53]Read from MH i2c: E2 03 00 [03:16:53]MH_I2C_Read... [03:16:53]Read from MH i2c: E2 03 00 E5 24 00 90 00 7D [03:16:53]RAPDU: 90 00 [03:16:53]wFMCommunicate OK [03:16:53]SAM_PROTO_ClearQueue done [03:16:53]KKMCreateOFDPacket [03:16:53]OFDProtocolAddRootSTLVToBuf [03:16:53]FM_MakeSignedData [03:16:53]FM_MakeSignedData [03:16:53]SAM_PROTO_SignData [03:16:53]wFMCommunicate request_size=4 [03:16:53]MH_SAM_APDU [03:16:53]CAPDU: 80 0D 01 02 [03:16:53]Write to MH i2c: E2 08 00 E6 24 80 0D 01 02 00 00 00 00 83 [03:16:53]Write i2c OK [03:16:53]MH_I2C_Read... [03:16:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:16:53]Read from MH i2c: E2 [03:16:53]MH_I2C_Read... [03:16:53]Read from MH i2c: E2 03 00 [03:16:53]MH_I2C_Read... [03:16:53]Read from MH i2c: E2 03 00 E6 24 00 90 00 7E [03:16:53]RAPDU: 90 00 [03:16:53]wFMCommunicate OK [03:16:53]wFMCommunicate request_size=255 [03:16:53]MH_SAM_APDU [03: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 A7 66 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 34 CD 01 00 35 04 06 00 D6 14 CE A4 [03:16:53]Write to MH i2c: E2 02 01 E7 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 A7 66 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 34 CD 01 00 35 04 06 00 D6 14 CE A4 00 00 7E [03:16:53]Write i2c OK [03:16:53]MH_I2C_Read... [03:16:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:16:54]Read from MH i2c: E2 [03:16:54]MH_I2C_Read... [03:16:54]Read from MH i2c: E2 03 00 [03:16:54]MH_I2C_Read... [03:16:54]Read from MH i2c: E2 03 00 E7 24 00 90 00 7F [03:16:54]RAPDU: 90 00 [03:16:54]wFMCommunicate OK [03:16:54]wFMCommunicate request_size=7 [03:16:54]MH_SAM_APDU [03:16:54]CAPDU: 80 0D 02 02 02 01 E6 [03:16:54]Write to MH i2c: E2 0A 00 E8 24 80 0D 02 02 02 00 01 E6 00 00 71 [03:16:54]Write i2c OK [03:16:54]MH_I2C_Read... [03:16:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:16:54]Read from MH i2c: E2 [03:16:54]MH_I2C_Read... [03:16:54]Read from MH i2c: E2 03 00 [03:16:54]MH_I2C_Read... [03:16:54]Read from MH i2c: E2 03 00 E8 24 00 90 00 80 [03:16:54]RAPDU: 90 00 [03:16:54]wFMCommunicate OK [03:16:54]wFMCommunicate request_size=4 [03:16:54]MH_SAM_APDU [03:16:54]CAPDU: 80 0D 03 02 [03:16:54]Write to MH i2c: E2 08 00 E9 24 80 0D 03 02 00 00 00 00 88 [03:16:54]Write i2c OK [03:16:54]MH_I2C_Read... [03:16:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:16:54]Read from MH i2c: E2 [03:16:54]MH_I2C_Read... [03:16:54]Read from MH i2c: E2 0B 00 [03:16:54]MH_I2C_Read... [03:16:54]Read from MH i2c: E2 0B 00 E9 24 00 A5 1E B4 7A 34 A4 8B 48 90 00 25 [03:16:54]RAPDU: A5 1E B4 7A 34 A4 8B 48 90 00 [03:16:54]wFMCommunicate OK [03:16:54]SAM_PROTO_SignData done [03:16:54]FM_MakeSignedData done [03:16:54]CreateOFDProtocolMessage [03:16:54]wFMCommunicate request_size=4 [03:16:54]MH_SAM_APDU [03:16:54]CAPDU: 80 11 00 00 [03:16:54]Write to MH i2c: E2 08 00 EA 24 80 11 00 00 00 00 00 00 88 [03:16:54]Write i2c OK [03:16:54]MH_I2C_Read... [03:16:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:16:54]Read from MH i2c: E2 [03:16:54]MH_I2C_Read... [03:16:54]Read from MH i2c: E2 17 00 [03:16:54]MH_I2C_Read... [03:16:54]Read from MH i2c: E2 17 00 EA 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E3 [03:16:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [03:16:54]wFMCommunicate OK [03:16:54]CreateOFDProtocolMessage done [03:16:54]OFDSenderStorePacket 118068 [03:16:54]StoreOFDPacket docnum=118068 [03:16:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 56 A2 04 01 39 13 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 A7 66 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 34 CD 01 00 35 04 06 00 D6 14 CE A4 01 E6 A5 1E B4 7A 34 A4 8B 48 [03:16:54]CheckFolder [03:16:54]dirname=/storage/ofd_packets [03:16:54]CheckFolder done [03:16:54]ProducePacketName [03:16:54]name=ofd_packets/00118068 [03:16:54]NVStorageSaveData ofd_packets/00118068 [03:16:54]File name is /storage/ofd_packets/00118068 [03:16:54]Write 298 bytes [03:16:54]NVStorageSaveData done [03:16:54]OFDSenderStorePacket done [03:16:54]KKMCreateOFDPacket done [03:16:54]NVStorageSaveData kkm_last_timestamp [03:16:54]File name is /storage/kkm_last_timestamp [03:16:54]Write 4 bytes [03:16:54]NVStorageSaveData done [03:16:54]ExternCall_PrintAddStr [03:16:54]wPrintStart [03:16:54]Write to MH i2c: 01 00 00 EB 24 0F [03:16:54]Write i2c OK [03:16:54]MH_I2C_Read... [03:16:54]Read from MH i2c: 01 [03:16:54]MH_I2C_Read... [03:16:54]Read from MH i2c: 01 07 00 [03:16:54]MH_I2C_Read... [03:16:54]Read from MH i2c: 01 07 00 EB 24 00 00 00 00 00 FF 0F 24 [03:16:54]RasterBufferAndPrint [03:16:54]line Счет N : (1)948938 [03:16:54]line ИНН: 02508201610067 [03:16:54]line Контрольно-Кассовый Чек [03:16:54]line ПРОДАЖА [03:16:54]line ТРК (МРК, ГНК) : 21 [03:16:54]line Товар: 2710194800 [03:16:54]line ДТ-К-5 [03:16:54]line 104.990 * 76.20 [03:16:54]line = 8000.24 [03:16:54]line НДС 12% НСП 1% [03:16:54]line > о реализуемом товаре [03:16:54]line ОКРУГЛЕНИЕ: -0.24 [03:16:54]line ИТОГО: 8000.00 [03:16:54]line НСП 1% : 70.80 [03:16:54]line НДС 12% : 849.58 [03:16:54]line Наличными: 0.00 [03:16:54]line Безнал.: 8000.00 [03:16:54]line Место: АЗС № 134 "Партнер Нефть" [03:16:54]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [03:16:54]line СНО: Общий режим [03:16:54]line Чек 11 27.07.2024 03:16 [03:16:54]line Смена: 432 ФФД: 1.0 [03:16:54]line ЗНМ: 0300000044 [03:16:54]line РНМ: 0000000000092660 [03:16:54]line Версия ККМ: 001 [03:16:54]line Платежная система: O! деньги [03:16:54]line ФМ: 0000000000874939 [03:16:54]line ФД: 118068 [03:16:54]line ФПД: 235384854544870 [03:16:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T031655&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118068&fm=235384854544870&tin=02508201610067®Number=0000000000092660&sum=800000 [03:16:54]OFD Sender: Processing packet 118068 [packets to send 85, broken 84] [03:16:54]ProducePacketName [03:16:54]name=ofd_packets/00118068 [03:16:54]OFD Sender: To server: pG, [03:16:54]CommunicateWithHost lk.salyk.kg:30040 [03:16:54]ConnectInit lk.salyk.kg [03:16:54]written 0, free lines is 4095 [03:16:54]Connected sock=10 [03:16:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 56 A2 04 01 39 13 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 A7 66 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 34 CD 01 00 35 04 06 00 D6 14 CE A4 01 E6 A5 1E B4 7A 34 A4 8B 48 [03:16:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 59 B5 47 00 3E 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 34 CD 01 00 F4 03 04 00 3B 14 A4 66 B6 04 01 00 00 4B 1C B6 35 D5 1D B3 84 [03:16:54]CommunicateWithHost err = 0 [03:16:54]CheckOFDResponse [03:16:54]1017 (14) - 77093643461234 [03:16:54]1041 (16) - 0000000000874939 [03:16:54]1040 (4) - 118068 [03:16:54]1012 (4) - 26.07.2024 21:25 [03:16:54]1206 (1) - 0 [03:16:54]OFD Sender: Remove packet 118068 [03:16:54]ProducePacketName [03:16:54]name=ofd_packets/00118068 [03:16:54]NVStorageDeleteData [03:16:55]Write to MH i2c: 01 00 00 15 25 3A [03:16:55]Write i2c OK [03:16:55]MH_I2C_Read... [03:16:55]Read from MH i2c: 01 [03:16:55]MH_I2C_Read... [03:16:55]Read from MH i2c: 01 07 00 [03:16:55]MH_I2C_Read... [03:16:55]Read from MH i2c: 01 07 00 15 25 00 00 00 00 00 C5 0C 12 [03:16:55]RasterBufferAndPrint [03:16:55]line [03:16:55]line [03:16:55]line [03:16:55]line [03:16:55]line [03:16:55]written 0, free lines is 3275 [03:16:55]MH_Cut [03:16:55]Write to MH i2c: D1 01 00 1C 25 01 13 [03:16:55]Write i2c OK [03:16:55]MH_I2C_Read... [03:16:55]Read from MH i2c: D1 [03:16:55]MH_I2C_Read... [03:16:55]Read from MH i2c: D1 01 00 [03:16:55]MH_I2C_Read... [03:16:55]Read from MH i2c: D1 01 00 1C 25 00 12 [03:16:55]Write to MH i2c: 01 00 00 1D 25 42 [03:16:55]Write i2c OK [03:16:55]MH_I2C_Read... [03:16:55]OFD Sender: No OFD packet to send [03:16:55]*** Cut start [03:16:55]*** Partial cut [03:16:55]*** CUTSNS_PIN = 1 [03:16:55]*** CUTSNS_PIN = 0 [03:16:56]*** Brake cut motor [03:16:56]Read from MH i2c: 01 [03:16:56]MH_I2C_Read... [03:16:56]*** Stop cut motor [03:16:56]*** Cut end [03:16:56]Read from MH i2c: 01 07 00 [03:16:56]MH_I2C_Read... [03:16:56]Read from MH i2c: 01 07 00 1D 25 00 00 00 00 00 FF 0F 57 [03:16:56]process_action close_receipt done [03:16:56]requested_data is exist [03:16:56]produce_requested_data [03:16:56]requested_item fm.sn is exist - process it [03:16:56]wFMCommunicate request_size=4 [03:16:56]MH_SAM_APDU [03:16:56]CAPDU: 80 11 00 00 [03:16:56]Write to MH i2c: E2 08 00 1E 25 80 11 00 00 00 00 00 00 BD [03:16:56]Write i2c OK [03:16:56]MH_I2C_Read... [03:16:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:16:56]Read from MH i2c: E2 [03:16:56]MH_I2C_Read... [03:16:56]Read from MH i2c: E2 17 00 [03:16:56]MH_I2C_Read... [03:16:56]Read from MH i2c: E2 17 00 1E 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 18 [03:16:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [03:16:56]wFMCommunicate OK [03:16:56]requested_item fd.num is exist - process it [03:16:56]SAM_PROTO_GetFieldsCounters [03:16:56]wFMCommunicate request_size=4 [03:16:56]MH_SAM_APDU [03:16:56]CAPDU: 80 13 00 00 [03:16:56]Write to MH i2c: E2 08 00 1F 25 80 13 00 00 00 00 00 00 C0 [03:16:56]Write i2c OK [03:16:56]MH_I2C_Read... [03:16:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:16:56]Read from MH i2c: E2 [03:16:56]MH_I2C_Read... [03:16:56]Read from MH i2c: E2 62 00 [03:16:56]MH_I2C_Read... [03:16:56]Read from MH i2c: E2 62 00 1F 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 34 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [03: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 34 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:16:56]wFMCommunicate OK [03:16:56]SAM_PROTO_GetFieldsCounters done [03:16:56]requested_item shift.num is exist - process it [03:16:56]requested_item shift.opened is exist - process it [03:16:56]req_shift_opened [03:16:56]FM_GetShiftState [03:16:56]SAM_PROTO_GetShiftState [03:16:56]wFMCommunicate request_size=4 [03:16:56]MH_SAM_APDU [03:16:56]CAPDU: 80 13 01 00 [03:16:56]Write to MH i2c: E2 08 00 20 25 80 13 01 00 00 00 00 00 C2 [03:16:56]Write i2c OK [03:16:56]MH_I2C_Read... [03:16:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:16:56]Read from MH i2c: E2 [03:16:56]MH_I2C_Read... [03:16:56]Read from MH i2c: E2 0E 00 [03:16:56]MH_I2C_Read... [03:16:56]Read from MH i2c: E2 0E 00 20 25 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 4F [03:16:56]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [03:16:56]wFMCommunicate OK [03:16:56]SAM_PROTO_GetShiftState done [03:16:56]FM_GetShiftState done [03:16:56]req_shift_opened done [03:16:56]requested_item shift.open_date is exist - process it [03:16:56]req_shift_open_date [03:16:56]req_shift_open_date done [03:16:56]produce_requested_data done [03:16:56]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118068,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [03:16:56]process_action_free close_receipt [03:16:56]json_value_free [03:16:56]json_value_free done [03:16:56]process_json_proto returns [03:16:56]Send response to host [03:16:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118068,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [03:16:56]free response buf [03:16:56]execute_script done [03:16:56]execute_script returns [03:16:56]free content buf [03:16:56]Sock 9.Close socket [03:16:56]Sock 9.Thread stoped [03:17:00]OFD Sender: No OFD packet to send [03:17:05]OFD Sender: No OFD packet to send [03:17:10]OFD Sender: No OFD packet to send [03:17:15]OFD Sender: No OFD packet to send [03:17:20]OFD Sender: No OFD packet to send [03:17:25]OFD Sender: No OFD packet to send [03:17:30]OFD Sender: No OFD packet to send [03:17:35]OFD Sender: No OFD packet to send [03:17:40]OFD Sender: No OFD packet to send [03:17:45]OFD Sender: No OFD packet to send [03:17:50]OFD Sender: No OFD packet to send [03:17:55]OFD Sender: No OFD packet to send [03:18:00]OFD Sender: No OFD packet to send [03:18:05]OFD Sender: No OFD packet to send [03:18:10]OFD Sender: No OFD packet to send [03:18: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 [03:22:40]OFD Sender: No OFD packet to send [03:22:45]OFD Sender: No OFD packet to send [03:22:50]OFD Sender: No OFD packet to send [03:22:55]OFD Sender: No OFD packet to send [03:23:00]OFD Sender: No OFD packet to send [03:23:05]OFD Sender: No OFD packet to send [03:23:10]OFD Sender: No OFD packet to send [03:23:15]OFD Sender: No OFD packet to send [03:23:20]OFD Sender: No OFD packet to send [03:23:25]OFD Sender: No OFD packet to send [03:23:30]OFD Sender: No OFD packet to send [03:23:35]OFD Sender: No OFD packet to send [03:23:40]OFD Sender: No OFD packet to send [03:23:45]OFD Sender: No OFD packet to send [03:23:50]OFD Sender: No OFD packet to send [03:23:55]OFD Sender: No OFD packet to send [03:24:00]OFD Sender: No OFD packet to send [03:24:05]OFD Sender: No OFD packet to send [03:24:10]OFD Sender: No OFD packet to send [03:24:15]OFD Sender: No OFD packet to send [03:24:20]OFD Sender: No OFD packet to send [03:24:25]OFD Sender: No OFD packet to send [03:24:30]OFD Sender: No OFD packet to send [03:24:35]OFD Sender: No OFD packet to send [03:24:40]OFD Sender: No OFD packet to send [03:24:45]OFD Sender: No OFD packet to send [03:24:50]OFD Sender: No OFD packet to send [03:24:55]OFD Sender: No OFD packet to send [03:25:01]OFD Sender: No OFD packet to send [03:25:06]OFD Sender: No OFD packet to send [03:25:11]OFD Sender: No OFD packet to send [03:25:16]OFD Sender: No OFD packet to send [03:25:21]OFD Sender: No OFD packet to send [03:25:26]OFD Sender: No OFD packet to send [03:25:31]OFD Sender: No OFD packet to send [03:25:36]OFD Sender: No OFD packet to send [03:25:41]OFD Sender: No OFD packet to send [03:25:46]OFD Sender: No OFD packet to send [03:25:51]OFD Sender: No OFD packet to send [03:25:56]OFD Sender: No OFD packet to send [03:26:01]OFD Sender: No OFD packet to send [03:26:06]OFD Sender: No OFD packet to send [03:26:11]OFD Sender: No OFD packet to send [03:26:16]OFD Sender: No OFD packet to send [03:26:21]OFD Sender: No OFD packet to send [03:26:26]OFD Sender: No OFD packet to send [03:26:31]OFD Sender: No OFD packet to send [03:26:36]OFD Sender: No OFD packet to send [03:26:41]OFD Sender: No OFD packet to send [03:26:46]OFD Sender: No OFD packet to send [03:26:51]OFD Sender: No OFD packet to send [03:26:56]OFD Sender: No OFD packet to send [03:27:01]OFD Sender: No OFD packet to send [03:27:06]OFD Sender: No OFD packet to send [03:27:11]OFD Sender: No OFD packet to send [03:27:16]OFD Sender: No OFD packet to send [03:27:21]OFD Sender: No OFD packet to send [03:27:26]OFD Sender: No OFD packet to send [03:27:31]OFD Sender: No OFD packet to send [03:27:36]OFD Sender: No OFD packet to send [03:27:41]OFD Sender: No OFD packet to send [03:27:46]OFD Sender: No OFD packet to send [03:27:51]OFD Sender: No OFD packet to send [03:27:56]OFD Sender: No OFD packet to send [03:28:01]OFD Sender: No OFD packet to send [03:28:06]OFD Sender: No OFD packet to send [03:28:11]OFD Sender: No OFD packet to send [03:28:16]OFD Sender: No OFD packet to send [03:28:21]OFD Sender: No OFD packet to send [03:28:26]OFD Sender: No OFD packet to send [03:28:31]OFD Sender: No OFD packet to send [03:28:36]OFD Sender: No OFD packet to send [03:28:41]OFD Sender: No OFD packet to send [03:28:46]OFD Sender: No OFD packet to send [03:28:51]OFD Sender: No OFD packet to send [03:28:56]OFD Sender: No OFD packet to send [03:29:01]OFD Sender: No OFD packet to send [03:29:06]OFD Sender: No OFD packet to send [03:29:11]OFD Sender: No OFD packet to send [03:29:16]OFD Sender: No OFD packet to send [03:29:21]OFD Sender: No OFD packet to send [03:29:26]OFD Sender: No OFD packet to send [03:29:31]OFD Sender: No OFD packet to send [03:29:36]OFD Sender: No OFD packet to send [03:29:41]OFD Sender: No OFD packet to send [03:29:46]OFD Sender: No OFD packet to send [03:29:51]OFD Sender: No OFD packet to send [03:29:56]OFD Sender: No OFD packet to send [03:30:01]OFD Sender: No OFD packet to send [03:30:06]OFD Sender: No OFD packet to send [03:30:11]OFD Sender: No OFD packet to send [03:30:16]OFD Sender: No OFD packet to send [03:30:21]OFD Sender: No OFD packet to send [03:30:26]OFD Sender: No OFD packet to send [03:30:31]OFD Sender: No OFD packet to send [03:30:36]OFD Sender: No OFD packet to send [03:30:41]OFD Sender: No OFD packet to send [03:30:46]OFD Sender: No OFD packet to send [03:30:51]OFD Sender: No OFD packet to send [03:30:56]OFD Sender: No OFD packet to send [03:31:01]OFD Sender: No OFD packet to send [03:31:06]OFD Sender: No OFD packet to send [03:31:11]OFD Sender: No OFD packet to send [03:31:16]OFD Sender: No OFD packet to send [03:31:21]OFD Sender: No OFD packet to send [03:31:26]OFD Sender: No OFD packet to send [03:31:31]OFD Sender: No OFD packet to send [03:31:36]OFD Sender: No OFD packet to send [03:31:41]OFD Sender: No OFD packet to send [03:31:46]OFD Sender: No OFD packet to send [03:31:51]OFD Sender: No OFD packet to send [03:31:56]OFD Sender: No OFD packet to send [03:32:01]OFD Sender: No OFD packet to send [03:32:06]OFD Sender: No OFD packet to send [03:32:11]OFD Sender: No OFD packet to send [03:32:16]OFD Sender: No OFD packet to send [03:32:21]OFD Sender: No OFD packet to send [03:32:26]OFD Sender: No OFD packet to send [03:32:31]OFD Sender: No OFD packet to send [03:32:36]OFD Sender: No OFD packet to send [03:32:41]OFD Sender: No OFD packet to send [03:32:46]OFD Sender: No OFD packet to send [03:32:51]OFD Sender: No OFD packet to send [03:32:56]OFD Sender: No OFD packet to send [03:33:01]OFD Sender: No OFD packet to send [03:33:06]OFD Sender: No OFD packet to send [03:33:11]OFD Sender: No OFD packet to send [03:33:16]OFD Sender: No OFD packet to send [03:33:21]OFD Sender: No OFD packet to send [03:33:26]OFD Sender: No OFD packet to send [03:33:31]OFD Sender: No OFD packet to send [03:33:36]OFD Sender: No OFD packet to send [03:33:41]OFD Sender: No OFD packet to send [03:33:46]OFD Sender: No OFD packet to send [03:33:51]OFD Sender: No OFD packet to send [03:33:56]OFD Sender: No OFD packet to send [03:34:01]OFD Sender: No OFD packet to send [03:34:06]OFD Sender: No OFD packet to send [03:34:11]OFD Sender: No OFD packet to send [03:34:16]OFD Sender: No OFD packet to send [03:34:21]OFD Sender: No OFD packet to send [03:34:26]OFD Sender: No OFD packet to send [03:34:31]OFD Sender: No OFD packet to send [03:34:36]OFD Sender: No OFD packet to send [03:34:41]OFD Sender: No OFD packet to send [03:34:46]OFD Sender: No OFD packet to send [03:34:51]OFD Sender: No OFD packet to send [03:34:56]OFD Sender: No OFD packet to send [03:35:01]OFD Sender: No OFD packet to send [03:35:06]OFD Sender: No OFD packet to send [03:35:11]OFD Sender: No OFD packet to send [03:35:16]OFD Sender: No OFD packet to send [03:35:21]OFD Sender: No OFD packet to send [03:35:26]OFD Sender: No OFD packet to send [03:35:31]OFD Sender: No OFD packet to send [03:35:36]OFD Sender: No OFD packet to send [03:35:41]OFD Sender: No OFD packet to send [03:35:46]OFD Sender: No OFD packet to send [03:35:51]OFD Sender: No OFD packet to send [03:35:56]OFD Sender: No OFD packet to send [03:36:01]OFD Sender: No OFD packet to send [03:36:06]OFD Sender: No OFD packet to send [03:36:11]OFD Sender: No OFD packet to send [03:36:16]OFD Sender: No OFD packet to send [03:36:21]OFD Sender: No OFD packet to send [03:36:26]OFD Sender: No OFD packet to send [03:36:31]OFD Sender: No OFD packet to send [03:36:36]OFD Sender: No OFD packet to send [03:36:41]OFD Sender: No OFD packet to send [03:36:46]OFD Sender: No OFD packet to send [03:36:51]OFD Sender: No OFD packet to send [03:36:56]OFD Sender: No OFD packet to send [03:37:01]OFD Sender: No OFD packet to send [03:37:06]OFD Sender: No OFD packet to send [03:37:11]OFD Sender: No OFD packet to send [03:37:16]OFD Sender: No OFD packet to send [03:37:21]OFD Sender: No OFD packet to send [03:37:26]OFD Sender: No OFD packet to send [03:37:31]OFD Sender: No OFD packet to send [03:37:36]OFD Sender: No OFD packet to send [03:37:41]OFD Sender: No OFD packet to send [03:37:46]OFD Sender: No OFD packet to send [03:37:51]OFD Sender: No OFD packet to send [03:37:56]OFD Sender: No OFD packet to send [03:38:01]OFD Sender: No OFD packet to send [03:38:06]OFD Sender: No OFD packet to send [03:38:11]OFD Sender: No OFD packet to send [03:38:16]OFD Sender: No OFD packet to send [03:38:21]OFD Sender: No OFD packet to send [03:38:26]OFD Sender: No OFD packet to send [03:38:31]OFD Sender: No OFD packet to send [03:38:36]OFD Sender: No OFD packet to send [03:38:41]OFD Sender: No OFD packet to send [03:38:46]OFD Sender: No OFD packet to send [03:38:51]OFD Sender: No OFD packet to send [03:38:56]OFD Sender: No OFD packet to send [03:39:01]OFD Sender: No OFD packet to send [03:39:06]OFD Sender: No OFD packet to send [03:39:11]OFD Sender: No OFD packet to send [03:39:16]OFD Sender: No OFD packet to send [03:39:21]OFD Sender: No OFD packet to send [03:39:26]OFD Sender: No OFD packet to send [03:39:31]OFD Sender: No OFD packet to send [03:39:36]OFD Sender: No OFD packet to send [03:39:41]OFD Sender: No OFD packet to send [03:39:46]OFD Sender: No OFD packet to send [03:39:51]OFD Sender: No OFD packet to send [03:39:56]OFD Sender: No OFD packet to send [03:40:01]OFD Sender: No OFD packet to send [03:40:06]OFD Sender: No OFD packet to send [03:40:11]OFD Sender: No OFD packet to send [03:40:16]OFD Sender: No OFD packet to send [03:40:21]OFD Sender: No OFD packet to send [03:40:26]OFD Sender: No OFD packet to send [03:40:31]OFD Sender: No OFD packet to send [03:40:36]OFD Sender: No OFD packet to send [03:40:41]OFD Sender: No OFD packet to send [03:40:46]OFD Sender: No OFD packet to send [03:40:51]OFD Sender: No OFD packet to send [03:40:56]OFD Sender: No OFD packet to send [03:41:02]OFD Sender: No OFD packet to send [03:41:07]OFD Sender: No OFD packet to send [03:41:12]OFD Sender: No OFD packet to send [03:41:17]OFD Sender: No OFD packet to send [03:41:22]OFD Sender: No OFD packet to send [03:41:27]OFD Sender: No OFD packet to send [03:41:32]OFD Sender: No OFD packet to send [03:41:37]OFD Sender: No OFD packet to send [03:41:42]OFD Sender: No OFD packet to send [03:41:47]OFD Sender: No OFD packet to send [03:41:52]OFD Sender: No OFD packet to send [03:41:57]OFD Sender: No OFD packet to send [03:42:02]OFD Sender: No OFD packet to send [03:42:07]OFD Sender: No OFD packet to send [03:42:12]OFD Sender: No OFD packet to send [03:42:17]OFD Sender: No OFD packet to send [03:42:22]OFD Sender: No OFD packet to send [03:42:27]OFD Sender: No OFD packet to send [03:42:32]OFD Sender: No OFD packet to send [03:42:37]OFD Sender: No OFD packet to send [03:42:42]OFD Sender: No OFD packet to send [03:42:47]OFD Sender: No OFD packet to send [03:42:52]OFD Sender: No OFD packet to send [03:42:57]OFD Sender: No OFD packet to send [03:43:02]OFD Sender: No OFD packet to send [03:43:07]OFD Sender: No OFD packet to send [03:43:12]OFD Sender: No OFD packet to send [03:43:17]OFD Sender: No OFD packet to send [03:43:22]OFD Sender: No OFD packet to send [03:43:27]OFD Sender: No OFD packet to send [03:43:32]OFD Sender: No OFD packet to send [03:43:37]OFD Sender: No OFD packet to send [03:43:42]OFD Sender: No OFD packet to send [03:43:47]OFD Sender: No OFD packet to send [03:43:52]OFD Sender: No OFD packet to send [03:43:57]OFD Sender: No OFD packet to send [03:44:02]OFD Sender: No OFD packet to send [03:44:07]OFD Sender: No OFD packet to send [03:44:12]OFD Sender: No OFD packet to send [03:44:17]OFD Sender: No OFD packet to send [03:44:22]OFD Sender: No OFD packet to send [03:44:27]OFD Sender: No OFD packet to send [03:44:32]OFD Sender: No OFD packet to send [03:44:37]OFD Sender: No OFD packet to send [03:44:42]OFD Sender: No OFD packet to send [03:44:47]OFD Sender: No OFD packet to send [03:44:52]OFD Sender: No OFD packet to send [03:44:57]OFD Sender: No OFD packet to send [03:45:02]OFD Sender: No OFD packet to send [03:45:07]OFD Sender: No OFD packet to send [03:45:12]OFD Sender: No OFD packet to send [03:45:17]OFD Sender: No OFD packet to send [03:45:22]OFD Sender: No OFD packet to send [03:45:27]OFD Sender: No OFD packet to send [03:45:32]OFD Sender: No OFD packet to send [03:45:37]OFD Sender: No OFD packet to send [03:45:42]OFD Sender: No OFD packet to send [03:45:47]OFD Sender: No OFD packet to send [03:45:52]OFD Sender: No OFD packet to send [03:45:57]OFD Sender: No OFD packet to send [03:46:02]OFD Sender: No OFD packet to send [03:46:07]OFD Sender: No OFD packet to send [03:46:12]OFD Sender: No OFD packet to send [03:46:17]OFD Sender: No OFD packet to send [03:46:22]OFD Sender: No OFD packet to send [03:46:27]OFD Sender: No OFD packet to send [03:46:32]OFD Sender: No OFD packet to send [03:46:37]OFD Sender: No OFD packet to send [03:46:42]OFD Sender: No OFD packet to send [03:46:47]OFD Sender: No OFD packet to send [03:46:52]OFD Sender: No OFD packet to send [03:46:57]OFD Sender: No OFD packet to send [03:47:02]OFD Sender: No OFD packet to send [03:47:07]OFD Sender: No OFD packet to send [03:47:12]OFD Sender: No OFD packet to send [03:47:17]OFD Sender: No OFD packet to send [03:47:22]OFD Sender: No OFD packet to send [03:47:27]OFD Sender: No OFD packet to send [03:47:32]OFD Sender: No OFD packet to send [03:47:37]OFD Sender: No OFD packet to send [03:47:42]OFD Sender: No OFD packet to send [03:47:47]OFD Sender: No OFD packet to send [03:47:52]OFD Sender: No OFD packet to send [03:47:57]OFD Sender: No OFD packet to send [03:48:02]OFD Sender: No OFD packet to send [03:48:07]OFD Sender: No OFD packet to send [03:48:12]OFD Sender: No OFD packet to send [03:48:17]OFD Sender: No OFD packet to send [03:48:22]OFD Sender: No OFD packet to send [03:48:27]OFD Sender: No OFD packet to send [03:48:32]OFD Sender: No OFD packet to send [03:48:37]OFD Sender: No OFD packet to send [03:48:42]OFD Sender: No OFD packet to send [03:48:47]OFD Sender: No OFD packet to send [03:48:52]OFD Sender: No OFD packet to send [03:48:57]OFD Sender: No OFD packet to send [03:49:02]OFD Sender: No OFD packet to send [03:49:07]OFD Sender: No OFD packet to send [03:49:12]OFD Sender: No OFD packet to send [03:49:17]OFD Sender: No OFD packet to send [03:49:22]OFD Sender: No OFD packet to send [03:49:27]OFD Sender: No OFD packet to send [03:49:32]OFD Sender: No OFD packet to send [03:49:37]OFD Sender: No OFD packet to send [03:49:42]OFD Sender: No OFD packet to send [03:49:47]OFD Sender: No OFD packet to send [03:49:52]OFD Sender: No OFD packet to send [03:49:57]OFD Sender: No OFD packet to send [03:50:02]OFD Sender: No OFD packet to send [03:50:07]OFD Sender: No OFD packet to send [03:50:12]OFD Sender: No OFD packet to send [03:50:17]OFD Sender: No OFD packet to send [03:50:22]OFD Sender: No OFD packet to send [03:50:27]OFD Sender: No OFD packet to send [03:50:32]OFD Sender: No OFD packet to send [03:50:37]OFD Sender: No OFD packet to send [03:50:42]OFD Sender: No OFD packet to send [03:50:47]OFD Sender: No OFD packet to send [03:50:52]OFD Sender: No OFD packet to send [03:50:57]OFD Sender: No OFD packet to send [03:51:02]OFD Sender: No OFD packet to send [03:51:07]OFD Sender: No OFD packet to send [03:51:12]OFD Sender: No OFD packet to send [03:51:17]OFD Sender: No OFD packet to send [03:51:22]OFD Sender: No OFD packet to send [03:51:27]OFD Sender: No OFD packet to send [03:51:32]OFD Sender: No OFD packet to send [03:51:37]OFD Sender: No OFD packet to send [03:51:42]OFD Sender: No OFD packet to send [03:51:47]OFD Sender: No OFD packet to send [03:51:52]OFD Sender: No OFD packet to send [03:51:57]OFD Sender: No OFD packet to send [03:52:02]OFD Sender: No OFD packet to send [03:52:07]OFD Sender: No OFD packet to send [03:52:12]OFD Sender: No OFD packet to send [03:52:17]OFD Sender: No OFD packet to send [03:52:22]OFD Sender: No OFD packet to send [03:52:27]OFD Sender: No OFD packet to send [03:52:32]OFD Sender: No OFD packet to send [03:52:37]OFD Sender: No OFD packet to send [03:52:42]OFD Sender: No OFD packet to send [03:52:47]OFD Sender: No OFD packet to send [03:52:52]OFD Sender: No OFD packet to send [03:52:57]OFD Sender: No OFD packet to send [03:53:02]OFD Sender: No OFD packet to send [03:53:07]OFD Sender: No OFD packet to send [03:53:12]OFD Sender: No OFD packet to send [03:53:17]OFD Sender: No OFD packet to send [03:53:22]OFD Sender: No OFD packet to send [03:53:27]OFD Sender: No OFD packet to send [03:53:32]OFD Sender: No OFD packet to send [03:53:37]OFD Sender: No OFD packet to send [03:53:42]OFD Sender: No OFD packet to send [03:53:47]OFD Sender: No OFD packet to send [03:53:52]OFD Sender: No OFD packet to send [03:53:57]OFD Sender: No OFD packet to send [03:54:02]OFD Sender: No OFD packet to send [03:54:07]OFD Sender: No OFD packet to send [03:54:12]OFD Sender: No OFD packet to send [03:54:17]OFD Sender: No OFD packet to send [03:54:22]OFD Sender: No OFD packet to send [03:54:27]OFD Sender: No OFD packet to send [03:54:32]OFD Sender: No OFD packet to send [03:54:37]OFD Sender: No OFD packet to send [03:54:42]OFD Sender: No OFD packet to send [03:54:47]OFD Sender: No OFD packet to send [03:54:52]OFD Sender: No OFD packet to send [03:54:57]OFD Sender: No OFD packet to send [03:55:02]OFD Sender: No OFD packet to send [03:55:07]OFD Sender: No OFD packet to send [03:55:12]OFD Sender: No OFD packet to send [03:55:17]OFD Sender: No OFD packet to send [03:55:22]OFD Sender: No OFD packet to send [03:55:27]OFD Sender: No OFD packet to send [03:55:32]OFD Sender: No OFD packet to send [03:55:37]OFD Sender: No OFD packet to send [03:55:42]OFD Sender: No OFD packet to send [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:22]OFD Sender: No OFD packet to send [03:56:27]OFD Sender: No OFD packet to send [03:56:32]OFD Sender: No OFD packet to send [03:56:37]OFD Sender: No OFD packet to send [03:56:42]OFD Sender: No OFD packet to send [03:56:47]OFD Sender: No OFD packet to send [03:56:52]OFD Sender: No OFD packet to send [03:56: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:48]OFD Sender: No OFD packet to send [03:58:53]OFD Sender: No OFD packet to send [03:58:58]OFD Sender: No OFD packet to send [03:59:03]OFD Sender: No OFD packet to send [03:59:08]OFD Sender: No OFD packet to send [03:59:13]OFD Sender: No OFD packet to send [03:59:18]OFD Sender: No OFD packet to send [03:59:23]OFD Sender: No OFD packet to send [03:59:28]OFD Sender: No OFD packet to send [03:59:33]OFD Sender: No OFD packet to send [03:59:38]OFD Sender: No OFD packet to send [03:59:43]OFD Sender: No OFD packet to send [03:59:48]OFD Sender: No OFD packet to send [03:59:53]OFD Sender: No OFD packet to send [03:59:58]OFD Sender: No OFD packet to send [04:00:03]OFD Sender: No OFD packet to send [04:00:08]OFD Sender: No OFD packet to send [04:00:13]OFD Sender: No OFD packet to send [04:00:18]OFD Sender: No OFD packet to send [04:00:23]OFD Sender: No OFD packet to send [04:00:28]OFD Sender: No OFD packet to send [04:00:33]OFD Sender: No OFD packet to send [04:00:38]OFD Sender: No OFD packet to send [04:00:43]OFD Sender: No OFD packet to send [04:00:48]OFD Sender: No OFD packet to send [04:00:53]OFD Sender: No OFD packet to send [04:00:58]OFD Sender: No OFD packet to send [04:01:03]OFD Sender: No OFD packet to send [04:01:08]OFD Sender: No OFD packet to send [04:01:13]OFD Sender: No OFD packet to send [04:01:18]OFD Sender: No OFD packet to send [04:01:23]OFD Sender: No OFD packet to send [04:01:28]OFD Sender: No OFD packet to send [04:01:33]OFD Sender: No OFD packet to send [04:01:38]OFD Sender: No OFD packet to send [04:01:43]OFD Sender: No OFD packet to send [04:01:48]OFD Sender: No OFD packet to send [04:01:53]OFD Sender: No OFD packet to send [04:01:58]OFD Sender: No OFD packet to send [04:02:03]OFD Sender: No OFD packet to send [04:02:08]OFD Sender: No OFD packet to send [04:02:13]OFD Sender: No OFD packet to send [04:02:18]OFD Sender: No OFD packet to send [04:02:23]OFD Sender: No OFD packet to send [04:02:28]OFD Sender: No OFD packet to send [04:02:33]OFD Sender: No OFD packet to send [04:02:38]OFD Sender: No OFD packet to send [04:02:43]OFD Sender: No OFD packet to send [04:02:48]OFD Sender: No OFD packet to send [04:02:53]OFD Sender: No OFD packet to send [04:02:58]OFD Sender: No OFD packet to send [04:03:03]OFD Sender: No OFD packet to send [04:03:08]OFD Sender: No OFD packet to send [04:03:13]OFD Sender: No OFD packet to send [04:03:18]OFD Sender: No OFD packet to send [04:03:23]OFD Sender: No OFD packet to send [04:03:28]OFD Sender: No OFD packet to send [04:03:33]OFD Sender: No OFD packet to send [04:03:38]OFD Sender: No OFD packet to send [04:03:43]OFD Sender: No OFD packet to send [04:03:48]OFD Sender: No OFD packet to send [04:03:53]OFD Sender: No OFD packet to send [04:03:58]OFD Sender: No OFD packet to send [04:04:03]OFD Sender: No OFD packet to send [04:04:08]OFD Sender: No OFD packet to send [04:04:13]OFD Sender: No OFD packet to send [04:04:18]OFD Sender: No OFD packet to send [04:04:23]OFD Sender: No OFD packet to send [04:04:28]OFD Sender: No OFD packet to send [04:04:33]OFD Sender: No OFD packet to send [04:04:38]OFD Sender: No OFD packet to send [04:04:43]OFD Sender: No OFD packet to send [04:04:48]OFD Sender: No OFD packet to send [04:04:53]OFD Sender: No OFD packet to send [04:04:58]OFD Sender: No OFD packet to send [04:05:03]OFD Sender: No OFD packet to send [04:05:05]accept exits with 7 [04:05:05]New connection [04:05:05]New thread 3067284836 created [04:05:05]Thread 3067428196 joined [04:05:05]Waiting for new connection... [04:05:05] Sock 7.Parse request [04:05:05]Sock 7.Check first char [04:05:05]Sock 7.First char is OK [04:05:05]request: POST /json_proto HTTP/1.0 [04:05:05]Method: POST [04:05:05]URL: /json_proto [04:05:05]Method is POST - this is cgi request [04:05:05]url: /json_proto [04:05:05]query_string will be loaded in cgi processing [04:05:05]execute_cgi json_proto POST (null) [04:05:05]execute_cgi path=json_proto method=POST [04:05:05]POST find Content-Length [04:05:05]Host: 172.17.45.7:8080 [04:05:05]Content-Length: 682 [04:05:05]Content-Type: application/json [04:05:05] [04:05:05]POST finish read [04:05:05]Found Content-Length = 682 [04:05:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 15.340, "sum" : 1040.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1040.00, "total" : 1040.00, "payments": [ { "type": 0, "sum" : 1040.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:05:05]execute_script... [04:05: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)948939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 15.340, "sum" : 1040.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1040.00, "total" : 1040.00, "payments": [ { "type": 0, "sum" : 1040.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:05:05]POST & json_proto [04:05:05]process_json_proto [04:05:05]json parsed OK: [04:05:05]protocol is kg_v1.0 [04:05:05]action value=close_receipt [04:05:05]process_action close_receipt [04:05:05]cmd_close_receipt [04:05:05]MH_GetDate [04:05:05]Write to MH i2c: F0 00 00 21 25 35 [04:05:05]Write i2c OK [04:05:05]MH_I2C_Read... [04:05:05]Read from MH i2c: F0 [04:05:05]MH_I2C_Read... [04:05:05]Read from MH i2c: F0 09 00 [04:05:05]MH_I2C_Read... [04:05:05]Read from MH i2c: F0 09 00 21 25 00 F4 71 A4 66 90 0F 3E 66 F0 [04:05:05]GetLastDocTimeStamp 1722050215 [04:05:05]current date 1722053108 [04:05:05]FM_GetShiftState [04:05:05]SAM_PROTO_GetShiftState [04:05:05]wFMCommunicate request_size=4 [04:05:05]MH_SAM_APDU [04:05:05]CAPDU: 80 13 01 00 [04:05:05]Write to MH i2c: E2 08 00 22 25 80 13 01 00 00 00 00 00 C4 [04:05:05]Write i2c OK [04:05:05]MH_I2C_Read... [04:05:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:05:05]Read from MH i2c: E2 [04:05:05]MH_I2C_Read... [04:05:05]Read from MH i2c: E2 0E 00 [04:05:05]MH_I2C_Read... [04:05:05]Read from MH i2c: E2 0E 00 22 25 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 51 [04:05:05]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [04:05:05]wFMCommunicate OK [04:05:05]SAM_PROTO_GetShiftState done [04:05:05]FM_GetShiftState done [04:05:05]opened in 1722038845 [04:05:05]opened+sec_in_day 1722125245 [04:05:05]quantity*price = 104005 [04:05:05]sum+1 = 104006 [04:05:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1040.00 Внесено: 1040.00 СДАЧА: 0.00 НСП 1% : 9.20 НДС 12% : 110.45 Наличными: 1040.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 12 27.07.2024 04:05 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118069 ФПД: 152831692556950 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T040508&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118069&fm=152831692556950&tin=02508201610067®Number=0000000000092660&sum=104000 [04:05:06]StoreToDocumentArchive [04:05:06]shift 432 fd 118069 [04:05:06]save to /storage/0432/doc_00118069 [04:05:06]save last doc name /storage/0432/doc_00118069 to /storage/kkm_last_doc_name [04:05:06]save OK [04:05:06]Clear old archive folders... [04:05:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:05:06]tlvbuf is 006A59B0 [04:05:06]SAM_PROTO_ClearQueue [04:05:06]wFMCommunicate request_size=4 [04:05:06]MH_SAM_APDU [04:05:06]CAPDU: 80 09 00 00 [04:05:06]Write to MH i2c: E2 08 00 2F 25 80 09 00 00 00 00 00 00 C6 [04:05:06]Write i2c OK [04:05:06]MH_I2C_Read... [04:05:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:05:06]Read from MH i2c: E2 [04:05:06]MH_I2C_Read... [04:05:06]Read from MH i2c: E2 03 00 [04:05:06]MH_I2C_Read... [04:05:06]Read from MH i2c: E2 03 00 2F 25 00 90 00 C8 [04:05:06]RAPDU: 90 00 [04:05:06]wFMCommunicate OK [04:05:06]SAM_PROTO_ClearQueue done [04:05:06]KKMCreateOFDPacket [04:05:06]OFDProtocolAddRootSTLVToBuf [04:05:06]FM_MakeSignedData [04:05:06]FM_MakeSignedData [04:05:06]SAM_PROTO_SignData [04:05:06]wFMCommunicate request_size=4 [04:05:06]MH_SAM_APDU [04:05:06]CAPDU: 80 0D 01 02 [04:05:06]Write to MH i2c: E2 08 00 30 25 80 0D 01 02 00 00 00 00 CE [04:05:06]Write i2c OK [04:05:06]MH_I2C_Read... [04:05:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:05:06]Read from MH i2c: E2 [04:05:06]MH_I2C_Read... [04:05:06]Read from MH i2c: E2 03 00 [04:05:06]MH_I2C_Read... [04:05:06]Read from MH i2c: E2 03 00 30 25 00 90 00 C9 [04:05:06]RAPDU: 90 00 [04:05:06]wFMCommunicate OK [04:05:06]wFMCommunicate request_size=255 [04:05:06]MH_SAM_APDU [04:05: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 34 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 45 96 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 96 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 2B 00 00 00 00 07 04 06 00 40 96 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 F4 71 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 35 CD 01 00 35 04 06 00 8A [04:05:06]Write to MH i2c: E2 02 01 31 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 34 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 45 96 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 96 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 2B 00 00 00 00 07 04 06 00 40 96 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 F4 71 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 35 CD 01 00 35 04 06 00 8A 00 00 C8 [04:05:06]Write i2c OK [04:05:06]MH_I2C_Read... [04:05:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:05:07]Read from MH i2c: E2 [04:05:07]MH_I2C_Read... [04:05:07]Read from MH i2c: E2 03 00 [04:05:07]MH_I2C_Read... [04:05:07]Read from MH i2c: E2 03 00 31 25 00 90 00 CA [04:05:07]RAPDU: 90 00 [04:05:07]wFMCommunicate OK [04:05:07]wFMCommunicate request_size=10 [04:05:07]MH_SAM_APDU [04:05:07]CAPDU: 80 0D 02 02 05 FF E6 BE CA 96 [04:05:07]Write to MH i2c: E2 0D 00 32 25 80 0D 02 02 05 00 FF E6 BE CA 96 00 00 DE [04:05:07]Write i2c OK [04:05:07]MH_I2C_Read... [04:05:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:05:07]Read from MH i2c: E2 [04:05:07]MH_I2C_Read... [04:05:07]Read from MH i2c: E2 03 00 [04:05:07]MH_I2C_Read... [04:05:07]Read from MH i2c: E2 03 00 32 25 00 90 00 CB [04:05:07]RAPDU: 90 00 [04:05:07]wFMCommunicate OK [04:05:07]wFMCommunicate request_size=4 [04:05:07]MH_SAM_APDU [04:05:07]CAPDU: 80 0D 03 02 [04:05:07]Write to MH i2c: E2 08 00 33 25 80 0D 03 02 00 00 00 00 D3 [04:05:07]Write i2c OK [04:05:07]MH_I2C_Read... [04:05:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:05:07]Read from MH i2c: E2 [04:05:07]MH_I2C_Read... [04:05:07]Read from MH i2c: E2 0B 00 [04:05:07]MH_I2C_Read... [04:05:07]Read from MH i2c: E2 0B 00 33 25 00 90 9E BC 63 0B E8 20 56 90 00 8A [04:05:07]RAPDU: 90 9E BC 63 0B E8 20 56 90 00 [04:05:07]wFMCommunicate OK [04:05:07]SAM_PROTO_SignData done [04:05:07]FM_MakeSignedData done [04:05:07]CreateOFDProtocolMessage [04:05:07]wFMCommunicate request_size=4 [04:05:07]MH_SAM_APDU [04:05:07]CAPDU: 80 11 00 00 [04:05:07]Write to MH i2c: E2 08 00 34 25 80 11 00 00 00 00 00 00 D3 [04:05:07]Write i2c OK [04:05:07]MH_I2C_Read... [04:05:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:05:07]Read from MH i2c: E2 [04:05:07]MH_I2C_Read... [04:05:07]Read from MH i2c: E2 17 00 [04:05:07]MH_I2C_Read... [04:05:07]Read from MH i2c: E2 17 00 34 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2E [04:05:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:05:07]wFMCommunicate OK [04:05:07]CreateOFDProtocolMessage done [04:05:07]OFDSenderStorePacket 118069 [04:05:07]StoreOFDPacket docnum=118069 [04:05:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 6D 7B 07 01 20 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 34 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 45 96 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 96 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 2B 00 00 00 00 07 04 06 00 40 96 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 F4 71 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 35 CD 01 00 35 04 06 00 8A FF E6 BE CA 96 90 9E BC 63 0B E8 20 56 [04:05:07]CheckFolder [04:05:07]dirname=/storage/ofd_packets [04:05:07]CheckFolder done [04:05:07]ProducePacketName [04:05:07]name=ofd_packets/00118069 [04:05:07]NVStorageSaveData ofd_packets/00118069 [04:05:07]File name is /storage/ofd_packets/00118069 [04:05:07]Write 301 bytes [04:05:07]NVStorageSaveData done [04:05:07]OFDSenderStorePacket done [04:05:07]KKMCreateOFDPacket done [04:05:07]NVStorageSaveData kkm_last_timestamp [04:05:07]File name is /storage/kkm_last_timestamp [04:05:07]Write 4 bytes [04:05:07]NVStorageSaveData done [04:05:07]ExternCall_PrintAddStr [04:05:07]wPrintStart [04:05:07]Write to MH i2c: 01 00 00 35 25 5A [04:05:07]Write i2c OK [04:05:07]MH_I2C_Read... [04:05:07]Read from MH i2c: 01 [04:05:07]MH_I2C_Read... [04:05:07]Read from MH i2c: 01 07 00 [04:05:07]MH_I2C_Read... [04:05:07]Read from MH i2c: 01 07 00 35 25 00 00 00 00 00 FF 0F 6F [04:05:07]RasterBufferAndPrint [04:05:07]line Счет N : (1)948939 [04:05:07]line ИНН: 02508201610067 [04:05:07]line Контрольно-Кассовый Чек [04:05:07]line ПРОДАЖА [04:05:07]line ТРК (МРК, ГНК) : 51 [04:05:07]line Товар: 2710124130 [04:05:07]line Аи-92-К-4 [04:05:07]line 15.340 * 67.80 [04:05:07]line = 1040.05 [04:05:07]line НДС 12% НСП 1% [04:05:07]line > о реализуемом товаре [04:05:07]line ОКРУГЛЕНИЕ: -0.05 [04:05:07]line ИТОГО: 1040.00 [04:05:07]line Внесено: 1040.00 [04:05:07]line СДАЧА: 0.00 [04:05:07]line НСП 1% : 9.20 [04:05:07]line НДС 12% : 110.45 [04:05:07]line Наличными: 1040.00 [04:05:07]line Безнал.: 0.00 [04:05:07]line Место: АЗС № 134 "Партнер Нефть" [04:05:07]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [04:05:07]line СНО: Общий режим [04:05:07]line Чек 12 27.07.2024 04:05 [04:05:07]line Смена: 432 ФФД: 1.0 [04:05:07]line ЗНМ: 0300000044 [04:05:07]line РНМ: 0000000000092660 [04:05:07]line Версия ККМ: 001 [04:05:07]line ФМ: 0000000000874939 [04:05:07]line ФД: 118069 [04:05:07]line ФПД: 152831692556950 [04:05:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T040508&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118069&fm=152831692556950&tin=02508201610067®Number=0000000000092660&sum=104000 [04:05:07]OFD Sender: Processing packet 118069 [packets to send 85, broken 84] [04:05:07]ProducePacketName [04:05:07]name=ofd_packets/00118069 [04:05:07]OFD Sender: To server: pG, [04:05:07]CommunicateWithHost lk.salyk.kg:30040 [04:05:07]ConnectInit lk.salyk.kg [04:05:07]written 0, free lines is 4095 [04:05:07]Connected sock=10 [04:05:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 6D 7B 07 01 20 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 34 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 45 96 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 96 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 2B 00 00 00 00 07 04 06 00 40 96 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 F4 71 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 35 CD 01 00 35 04 06 00 8A FF E6 BE CA 96 90 9E BC 63 0B E8 20 56 [04:05:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 8F 78 47 00 44 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 35 CD 01 00 F4 03 04 00 88 1F A4 66 B6 04 01 00 00 36 62 F3 2A F2 B5 54 87 [04:05:07]CommunicateWithHost err = 0 [04:05:07]CheckOFDResponse [04:05:07]1017 (14) - 77093643461234 [04:05:07]1041 (16) - 0000000000874939 [04:05:07]1040 (4) - 118069 [04:05:07]1012 (4) - 26.07.2024 22:13 [04:05:07]1206 (1) - 0 [04:05:07]OFD Sender: Remove packet 118069 [04:05:07]ProducePacketName [04:05:07]name=ofd_packets/00118069 [04:05:07]NVStorageDeleteData [04:05:08]Write to MH i2c: 01 00 00 5F 25 84 [04:05:08]Write i2c OK [04:05:08]MH_I2C_Read... [04:05:08]Read from MH i2c: 01 [04:05:08]MH_I2C_Read... [04:05:08]Read from MH i2c: 01 07 00 [04:05:08]MH_I2C_Read... [04:05:08]Read from MH i2c: 01 07 00 5F 25 00 00 00 00 00 E0 0C 77 [04:05:08]RasterBufferAndPrint [04:05:08]line [04:05:08]line [04:05:08]line [04:05:08]line [04:05:08]line [04:05:08]written 0, free lines is 3305 [04:05:08]MH_Cut [04:05:08]Write to MH i2c: D1 01 00 66 25 01 5D [04:05:08]Write i2c OK [04:05:08]MH_I2C_Read... [04:05:08]Read from MH i2c: D1 [04:05:08]MH_I2C_Read... [04:05:08]Read from MH i2c: D1 01 00 [04:05:08]MH_I2C_Read... [04:05:08]Read from MH i2c: D1 01 00 66 25 00 5C [04:05:08]Write to MH i2c: 01 00 00 67 25 8C [04:05:08]Write i2c OK [04:05:08]MH_I2C_Read... [04:05:08]OFD Sender: No OFD packet to send [04:05:08]*** Cut start [04:05:08]*** Partial cut [04:05:08]*** CUTSNS_PIN = 1 [04:05:08]*** CUTSNS_PIN = 0 [04:05:09]*** Brake cut motor [04:05:09]Read from MH i2c: 01 [04:05:09]MH_I2C_Read... [04:05:09]*** Stop cut motor [04:05:09]*** Cut end [04:05:09]Read from MH i2c: 01 07 00 [04:05:09]MH_I2C_Read... [04:05:09]Read from MH i2c: 01 07 00 67 25 00 00 00 00 00 FF 0F A1 [04:05:09]process_action close_receipt done [04:05:09]requested_data is exist [04:05:09]produce_requested_data [04:05:09]requested_item fm.sn is exist - process it [04:05:09]wFMCommunicate request_size=4 [04:05:09]MH_SAM_APDU [04:05:09]CAPDU: 80 11 00 00 [04:05:09]Write to MH i2c: E2 08 00 68 25 80 11 00 00 00 00 00 00 07 [04:05:09]Write i2c OK [04:05:09]MH_I2C_Read... [04:05:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:05:09]Read from MH i2c: E2 [04:05:09]MH_I2C_Read... [04:05:09]Read from MH i2c: E2 17 00 [04:05:09]MH_I2C_Read... [04:05:09]Read from MH i2c: E2 17 00 68 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 62 [04:05:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:05:09]wFMCommunicate OK [04:05:09]requested_item fd.num is exist - process it [04:05:09]SAM_PROTO_GetFieldsCounters [04:05:09]wFMCommunicate request_size=4 [04:05:09]MH_SAM_APDU [04:05:09]CAPDU: 80 13 00 00 [04:05:09]Write to MH i2c: E2 08 00 69 25 80 13 00 00 00 00 00 00 0A [04:05:09]Write i2c OK [04:05:09]MH_I2C_Read... [04:05:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:05:09]Read from MH i2c: E2 [04:05:09]MH_I2C_Read... [04:05:09]Read from MH i2c: E2 62 00 [04:05:09]MH_I2C_Read... [04:05:09]Read from MH i2c: E2 62 00 69 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 35 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [04:05:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 35 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:05:09]wFMCommunicate OK [04:05:09]SAM_PROTO_GetFieldsCounters done [04:05:09]requested_item shift.num is exist - process it [04:05:09]requested_item shift.opened is exist - process it [04:05:09]req_shift_opened [04:05:09]FM_GetShiftState [04:05:09]SAM_PROTO_GetShiftState [04:05:09]wFMCommunicate request_size=4 [04:05:09]MH_SAM_APDU [04:05:09]CAPDU: 80 13 01 00 [04:05:09]Write to MH i2c: E2 08 00 6A 25 80 13 01 00 00 00 00 00 0C [04:05:09]Write i2c OK [04:05:09]MH_I2C_Read... [04:05:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:05:09]Read from MH i2c: E2 [04:05:09]MH_I2C_Read... [04:05:09]Read from MH i2c: E2 0E 00 [04:05:09]MH_I2C_Read... [04:05:09]Read from MH i2c: E2 0E 00 6A 25 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 99 [04:05:09]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [04:05:09]wFMCommunicate OK [04:05:09]SAM_PROTO_GetShiftState done [04:05:09]FM_GetShiftState done [04:05:09]req_shift_opened done [04:05:09]requested_item shift.open_date is exist - process it [04:05:09]req_shift_open_date [04:05:09]req_shift_open_date done [04:05:09]produce_requested_data done [04:05:09]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118069,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [04:05:09]process_action_free close_receipt [04:05:09]json_value_free [04:05:09]json_value_free done [04:05:09]process_json_proto returns [04:05:09]Send response to host [04:05:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118069,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [04:05:09]free response buf [04:05:09]execute_script done [04:05:09]execute_script returns [04:05:09]free content buf [04:05:09]Sock 7.Close socket [04:05:09]Sock 7.Thread stoped [04:05:13]OFD Sender: No OFD packet to send [04:05:18]OFD Sender: No OFD packet to send [04:05:23]OFD Sender: No OFD packet to send [04:05:28]OFD Sender: No OFD packet to send [04:05:33]OFD Sender: No OFD packet to send [04:05:38]OFD Sender: No OFD packet to send [04:05:43]OFD Sender: No OFD packet to send [04:05:48]OFD Sender: No OFD packet to send [04:05:53]OFD Sender: No OFD packet to send [04:05:58]OFD Sender: No OFD packet to send [04:06:03]OFD Sender: No OFD packet to send [04:06:08]OFD Sender: No OFD packet to send [04:06:13]OFD Sender: No OFD packet to send [04:06:18]OFD Sender: No OFD packet to send [04:06:23]OFD Sender: No OFD packet to send [04:06:28]OFD Sender: No OFD packet to send [04:06:33]OFD Sender: No OFD packet to send [04:06:38]OFD Sender: No OFD packet to send [04:06:43]OFD Sender: No OFD packet to send [04:06:48]OFD Sender: No OFD packet to send [04:06:53]OFD Sender: No OFD packet to send [04:06:58]OFD Sender: No OFD packet to send [04:07:03]OFD Sender: No OFD packet to send [04:07:08]OFD Sender: No OFD packet to send [04:07:13]OFD Sender: No OFD packet to send [04:07:18]OFD Sender: No OFD packet to send [04:07:23]OFD Sender: No OFD packet to send [04:07:28]OFD Sender: No OFD packet to send [04:07:33]OFD Sender: No OFD packet to send [04:07:38]OFD Sender: No OFD packet to send [04:07:43]OFD Sender: No OFD packet to send [04:07:48]OFD Sender: No OFD packet to send [04:07:53]OFD Sender: No OFD packet to send [04:07:58]OFD Sender: No OFD packet to send [04:08:03]OFD Sender: No OFD packet to send [04:08:08]OFD Sender: No OFD packet to send [04:08:13]OFD Sender: No OFD packet to send [04:08:18]OFD Sender: No OFD packet to send [04:08:23]OFD Sender: No OFD packet to send [04:08:28]OFD Sender: No OFD packet to send [04:08:33]OFD Sender: No OFD packet to send [04:08:38]OFD Sender: No OFD packet to send [04:08:43]OFD Sender: No OFD packet to send [04:08:48]OFD Sender: No OFD packet to send [04:08:53]OFD Sender: No OFD packet to send [04:08:58]OFD Sender: No OFD packet to send [04:09:03]OFD Sender: No OFD packet to send [04:09:08]OFD Sender: No OFD packet to send [04:09:13]OFD Sender: No OFD packet to send [04:09:18]OFD Sender: No OFD packet to send [04:09:23]OFD Sender: No OFD packet to send [04:09:28]OFD Sender: No OFD packet to send [04:09:33]OFD Sender: No OFD packet to send [04:09:38]OFD Sender: No OFD packet to send [04:09:43]OFD Sender: No OFD packet to send [04:09:48]OFD Sender: No OFD packet to send [04:09:53]OFD Sender: No OFD packet to send [04:09:58]OFD Sender: No OFD packet to send [04:10:03]OFD Sender: No OFD packet to send [04:10:08]OFD Sender: No OFD packet to send [04:10:13]OFD Sender: No OFD packet to send [04:10:18]OFD Sender: No OFD packet to send [04:10:23]OFD Sender: No OFD packet to send [04:10:28]OFD Sender: No OFD packet to send [04:10:33]OFD Sender: No OFD packet to send [04:10:38]OFD Sender: No OFD packet to send [04:10:43]OFD Sender: No OFD packet to send [04:10:48]OFD Sender: No OFD packet to send [04:10:53]OFD Sender: No OFD packet to send [04:10:58]OFD Sender: No OFD packet to send [04:11:03]OFD Sender: No OFD packet to send [04:11:08]OFD Sender: No OFD packet to send [04:11:13]OFD Sender: No OFD packet to send [04:11:18]OFD Sender: No OFD packet to send [04:11:23]OFD Sender: No OFD packet to send [04:11:28]OFD Sender: No OFD packet to send [04:11:33]OFD Sender: No OFD packet to send [04:11:38]OFD Sender: No OFD packet to send [04:11:43]OFD Sender: No OFD packet to send [04:11:48]OFD Sender: No OFD packet to send [04:11:53]OFD Sender: No OFD packet to send [04:11:58]OFD Sender: No OFD packet to send [04:12:03]OFD Sender: No OFD packet to send [04:12:08]OFD Sender: No OFD packet to send [04:12:13]OFD Sender: No OFD packet to send [04:12:18]OFD Sender: No OFD packet to send [04:12:23]OFD Sender: No OFD packet to send [04:12:28]OFD Sender: No OFD packet to send [04:12:33]OFD Sender: No OFD packet to send [04:12:38]OFD Sender: No OFD packet to send [04:12:43]OFD Sender: No OFD packet to send [04:12:48]OFD Sender: No OFD packet to send [04:12:53]OFD Sender: No OFD packet to send [04:12:58]OFD Sender: No OFD packet to send [04:13:03]OFD Sender: No OFD packet to send [04:13:08]OFD Sender: No OFD packet to send [04:13:13]OFD Sender: No OFD packet to send [04:13:18]OFD Sender: No OFD packet to send [04:13:23]OFD Sender: No OFD packet to send [04:13:28]OFD Sender: No OFD packet to send [04:13:33]OFD Sender: No OFD packet to send [04:13:38]OFD Sender: No OFD packet to send [04:13:43]OFD Sender: No OFD packet to send [04:13:48]OFD Sender: No OFD packet to send [04:13:53]OFD Sender: No OFD packet to send [04:13:58]OFD Sender: No OFD packet to send [04:14:03]OFD Sender: No OFD packet to send [04:14:08]OFD Sender: No OFD packet to send [04:14:13]OFD Sender: No OFD packet to send [04:14:18]OFD Sender: No OFD packet to send [04:14:23]OFD Sender: No OFD packet to send [04:14:28]OFD Sender: No OFD packet to send [04:14:33]OFD Sender: No OFD packet to send [04:14:38]OFD Sender: No OFD packet to send [04:14:43]OFD Sender: No OFD packet to send [04:14:48]OFD Sender: No OFD packet to send [04:14:53]OFD Sender: No OFD packet to send [04:14:58]OFD Sender: No OFD packet to send [04:15:04]OFD Sender: No OFD packet to send [04:15:09]OFD Sender: No OFD packet to send [04:15:14]OFD Sender: No OFD packet to send [04:15:19]OFD Sender: No OFD packet to send [04:15:24]OFD Sender: No OFD packet to send [04:15:29]OFD Sender: No OFD packet to send [04:15:34]OFD Sender: No OFD packet to send [04:15:39]OFD Sender: No OFD packet to send [04:15:44]OFD Sender: No OFD packet to send [04:15:49]OFD Sender: No OFD packet to send [04:15:54]OFD Sender: No OFD packet to send [04:15:59]OFD Sender: No OFD packet to send [04:16:04]OFD Sender: No OFD packet to send [04:16:09]OFD Sender: No OFD packet to send [04:16:14]OFD Sender: No OFD packet to send [04:16:19]OFD Sender: No OFD packet to send [04:16:24]OFD Sender: No OFD packet to send [04:16:29]OFD Sender: No OFD packet to send [04:16:34]OFD Sender: No OFD packet to send [04:16:39]OFD Sender: No OFD packet to send [04:16:44]OFD Sender: No OFD packet to send [04:16:49]OFD Sender: No OFD packet to send [04:16:54]OFD Sender: No OFD packet to send [04:16:59]OFD Sender: No OFD packet to send [04:17:04]OFD Sender: No OFD packet to send [04:17:09]OFD Sender: No OFD packet to send [04:17:14]OFD Sender: No OFD packet to send [04:17:19]OFD Sender: No OFD packet to send [04:17:24]OFD Sender: No OFD packet to send [04:17:29]OFD Sender: No OFD packet to send [04:17:34]OFD Sender: No OFD packet to send [04:17:39]OFD Sender: No OFD packet to send [04:17:44]OFD Sender: No OFD packet to send [04:17:49]OFD Sender: No OFD packet to send [04:17:54]OFD Sender: No OFD packet to send [04:17:59]OFD Sender: No OFD packet to send [04:18:04]OFD Sender: No OFD packet to send [04:18:09]OFD Sender: No OFD packet to send [04:18:14]OFD Sender: No OFD packet to send [04:18:19]OFD Sender: No OFD packet to send [04:18:24]OFD Sender: No OFD packet to send [04:18:29]OFD Sender: No OFD packet to send [04:18:34]OFD Sender: No OFD packet to send [04:18:39]OFD Sender: No OFD packet to send [04:18:44]OFD Sender: No OFD packet to send [04:18:49]OFD Sender: No OFD packet to send [04:18:54]OFD Sender: No OFD packet to send [04:18:59]OFD Sender: No OFD packet to send [04:19:04]OFD Sender: No OFD packet to send [04:19:09]OFD Sender: No OFD packet to send [04:19:14]OFD Sender: No OFD packet to send [04:19:19]OFD Sender: No OFD packet to send [04:19:24]OFD Sender: No OFD packet to send [04:19:29]OFD Sender: No OFD packet to send [04:19:34]OFD Sender: No OFD packet to send [04:19:39]OFD Sender: No OFD packet to send [04:19:44]OFD Sender: No OFD packet to send [04:19:49]OFD Sender: No OFD packet to send [04:19:54]OFD Sender: No OFD packet to send [04:19:59]OFD Sender: No OFD packet to send [04:20:04]OFD Sender: No OFD packet to send [04:20:09]OFD Sender: No OFD packet to send [04:20:14]OFD Sender: No OFD packet to send [04:20:19]OFD Sender: No OFD packet to send [04:20:24]OFD Sender: No OFD packet to send [04:20:29]OFD Sender: No OFD packet to send [04:20:34]OFD Sender: No OFD packet to send [04:20:39]OFD Sender: No OFD packet to send [04:20:44]OFD Sender: No OFD packet to send [04:20:49]OFD Sender: No OFD packet to send [04:20:54]OFD Sender: No OFD packet to send [04:20:59]OFD Sender: No OFD packet to send [04:21:04]OFD Sender: No OFD packet to send [04:21:09]OFD Sender: No OFD packet to send [04:21:14]OFD Sender: No OFD packet to send [04:21:19]OFD Sender: No OFD packet to send [04:21:24]OFD Sender: No OFD packet to send [04:21:29]OFD Sender: No OFD packet to send [04:21:34]OFD Sender: No OFD packet to send [04:21:39]OFD Sender: No OFD packet to send [04:21:44]OFD Sender: No OFD packet to send [04:21:49]OFD Sender: No OFD packet to send [04:21:54]OFD Sender: No OFD packet to send [04:21:59]OFD Sender: No OFD packet to send [04:22:04]OFD Sender: No OFD packet to send [04:22:09]OFD Sender: No OFD packet to send [04:22:14]OFD Sender: No OFD packet to send [04:22:19]OFD Sender: No OFD packet to send [04:22:24]OFD Sender: No OFD packet to send [04:22:29]OFD Sender: No OFD packet to send [04:22:34]OFD Sender: No OFD packet to send [04:22:39]OFD Sender: No OFD packet to send [04:22:44]OFD Sender: No OFD packet to send [04:22:49]OFD Sender: No OFD packet to send [04:22:54]OFD Sender: No OFD packet to send [04:22:59]OFD Sender: No OFD packet to send [04:23:04]OFD Sender: No OFD packet to send [04:23:09]OFD Sender: No OFD packet to send [04:23:14]OFD Sender: No OFD packet to send [04:23:19]OFD Sender: No OFD packet to send [04:23:24]OFD Sender: No OFD packet to send [04:23:29]OFD Sender: No OFD packet to send [04:23:34]OFD Sender: No OFD packet to send [04:23:39]OFD Sender: No OFD packet to send [04:23:44]OFD Sender: No OFD packet to send [04:23:49]OFD Sender: No OFD packet to send [04:23:54]OFD Sender: No OFD packet to send [04:23:59]OFD Sender: No OFD packet to send [04:24:04]OFD Sender: No OFD packet to send [04:24:09]OFD Sender: No OFD packet to send [04:24:14]OFD Sender: No OFD packet to send [04:24:19]OFD Sender: No OFD packet to send [04:24:24]OFD Sender: No OFD packet to send [04:24:29]OFD Sender: No OFD packet to send [04:24:34]OFD Sender: No OFD packet to send [04:24:39]OFD Sender: No OFD packet to send [04:24:44]OFD Sender: No OFD packet to send [04:24:49]OFD Sender: No OFD packet to send [04:24:54]OFD Sender: No OFD packet to send [04:24:59]OFD Sender: No OFD packet to send [04:25:04]OFD Sender: No OFD packet to send [04:25:09]OFD Sender: No OFD packet to send [04:25:14]OFD Sender: No OFD packet to send [04:25:19]OFD Sender: No OFD packet to send [04:25:24]OFD Sender: No OFD packet to send [04:25:29]OFD Sender: No OFD packet to send [04:25:34]OFD Sender: No OFD packet to send [04:25:39]OFD Sender: No OFD packet to send [04:25:44]OFD Sender: No OFD packet to send [04:25:49]OFD Sender: No OFD packet to send [04:25:54]OFD Sender: No OFD packet to send [04:25:59]OFD Sender: No OFD packet to send [04:26:04]OFD Sender: No OFD packet to send [04:26:09]OFD Sender: No OFD packet to send [04:26:14]OFD Sender: No OFD packet to send [04:26:19]OFD Sender: No OFD packet to send [04:26:24]OFD Sender: No OFD packet to send [04:26:29]OFD Sender: No OFD packet to send [04:26:34]OFD Sender: No OFD packet to send [04:26:39]OFD Sender: No OFD packet to send [04:26:44]OFD Sender: No OFD packet to send [04:26:49]OFD Sender: No OFD packet to send [04:26:54]OFD Sender: No OFD packet to send [04:26:59]OFD Sender: No OFD packet to send [04:27:04]OFD Sender: No OFD packet to send [04:27:09]OFD Sender: No OFD packet to send [04:27:14]OFD Sender: No OFD packet to send [04:27:19]OFD Sender: No OFD packet to send [04:27:24]OFD Sender: No OFD packet to send [04:27:29]OFD Sender: No OFD packet to send [04:27:34]OFD Sender: No OFD packet to send [04:27:39]OFD Sender: No OFD packet to send [04:27:44]OFD Sender: No OFD packet to send [04:27:49]OFD Sender: No OFD packet to send [04:27:54]OFD Sender: No OFD packet to send [04:27:59]OFD Sender: No OFD packet to send [04:28:04]OFD Sender: No OFD packet to send [04:28:09]OFD Sender: No OFD packet to send [04:28:14]OFD Sender: No OFD packet to send [04:28:19]OFD Sender: No OFD packet to send [04:28:24]OFD Sender: No OFD packet to send [04:28:29]OFD Sender: No OFD packet to send [04:28:34]OFD Sender: No OFD packet to send [04:28:39]OFD Sender: No OFD packet to send [04:28:44]OFD Sender: No OFD packet to send [04:28:49]OFD Sender: No OFD packet to send [04:28:54]OFD Sender: No OFD packet to send [04:28:59]OFD Sender: No OFD packet to send [04:29:04]OFD Sender: No OFD packet to send [04:29:05]accept exits with 9 [04:29:05]New connection [04:29:05]New thread 3067428196 created [04:29:05]Thread 3067284836 joined [04:29:05]Waiting for new connection... [04:29:05] Sock 9.Parse request [04:29:05]Sock 9.Check first char [04:29:05]Sock 9.First char is OK [04:29:05]request: POST /json_proto HTTP/1.0 [04:29:05]Method: POST [04:29:05]URL: /json_proto [04:29:05]Method is POST - this is cgi request [04:29:05]url: /json_proto [04:29:05]query_string will be loaded in cgi processing [04:29:05]execute_cgi json_proto POST (null) [04:29:05]execute_cgi path=json_proto method=POST [04:29:05]POST find Content-Length [04:29:05]Host: 172.17.45.7:8080 [04:29:05]Content-Length: 819 [04:29:05]Content-Type: application/json [04:29:05] [04:29:05]POST finish read [04:29:05]Found Content-Length = 819 [04:29:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:29:05]execute_script... [04:29: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)948940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:29:05]POST & json_proto [04:29:05]process_json_proto [04:29:05]json parsed OK: [04:29:05]protocol is kg_v1.0 [04:29:05]action value=close_receipt [04:29:05]process_action close_receipt [04:29:05]cmd_close_receipt [04:29:05]MH_GetDate [04:29:05]Write to MH i2c: F0 00 00 6B 25 7F [04:29:05]Write i2c OK [04:29:05]MH_I2C_Read... [04:29:05]Read from MH i2c: F0 [04:29:05]MH_I2C_Read... [04:29:05]Read from MH i2c: F0 09 00 [04:29:05]MH_I2C_Read... [04:29:05]Read from MH i2c: F0 09 00 6B 25 00 94 77 A4 66 90 0F 3E 66 E0 [04:29:05]GetLastDocTimeStamp 1722053108 [04:29:05]current date 1722054548 [04:29:05]FM_GetShiftState [04:29:05]SAM_PROTO_GetShiftState [04:29:05]wFMCommunicate request_size=4 [04:29:05]MH_SAM_APDU [04:29:05]CAPDU: 80 13 01 00 [04:29:05]Write to MH i2c: E2 08 00 6C 25 80 13 01 00 00 00 00 00 0E [04:29:05]Write i2c OK [04:29:05]MH_I2C_Read... [04:29:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:29:05]Read from MH i2c: E2 [04:29:05]MH_I2C_Read... [04:29:05]Read from MH i2c: E2 0E 00 [04:29:05]MH_I2C_Read... [04:29:05]Read from MH i2c: E2 0E 00 6C 25 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 9B [04:29:05]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [04:29:05]wFMCommunicate OK [04:29:05]SAM_PROTO_GetShiftState done [04:29:05]FM_GetShiftState done [04:29:05]opened in 1722038845 [04:29:05]opened+sec_in_day 1722125245 [04:29:05]quantity*price = 200025 [04:29:05]sum+1 = 200026 [04:29:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 13 27.07.2024 04:29 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118070 ФПД: 80784418571484 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T042908&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118070&fm=80784418571484&tin=02508201610067®Number=0000000000092660&sum=200000 [04:29:06]StoreToDocumentArchive [04:29:06]shift 432 fd 118070 [04:29:06]save to /storage/0432/doc_00118070 [04:29:06]save last doc name /storage/0432/doc_00118070 to /storage/kkm_last_doc_name [04:29:06]save OK [04:29:06]Clear old archive folders... [04:29:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:29:06]tlvbuf is 00727280 [04:29:06]SAM_PROTO_ClearQueue [04:29:06]wFMCommunicate request_size=4 [04:29:06]MH_SAM_APDU [04:29:06]CAPDU: 80 09 00 00 [04:29:06]Write to MH i2c: E2 08 00 79 25 80 09 00 00 00 00 00 00 10 [04:29:06]Write i2c OK [04:29:06]MH_I2C_Read... [04:29:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:29:07]Read from MH i2c: E2 [04:29:07]MH_I2C_Read... [04:29:07]Read from MH i2c: E2 03 00 [04:29:07]MH_I2C_Read... [04:29:07]Read from MH i2c: E2 03 00 79 25 00 90 00 12 [04:29:07]RAPDU: 90 00 [04:29:07]wFMCommunicate OK [04:29:07]SAM_PROTO_ClearQueue done [04:29:07]KKMCreateOFDPacket [04:29:07]OFDProtocolAddRootSTLVToBuf [04:29:07]FM_MakeSignedData [04:29:07]FM_MakeSignedData [04:29:07]SAM_PROTO_SignData [04:29:07]wFMCommunicate request_size=4 [04:29:07]MH_SAM_APDU [04:29:07]CAPDU: 80 0D 01 02 [04:29:07]Write to MH i2c: E2 08 00 7A 25 80 0D 01 02 00 00 00 00 18 [04:29:07]Write i2c OK [04:29:07]MH_I2C_Read... [04:29:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:29:07]Read from MH i2c: E2 [04:29:07]MH_I2C_Read... [04:29:07]Read from MH i2c: E2 03 00 [04:29:07]MH_I2C_Read... [04:29:07]Read from MH i2c: E2 03 00 7A 25 00 90 00 13 [04:29:07]RAPDU: 90 00 [04:29:07]wFMCommunicate OK [04:29:07]wFMCommunicate request_size=255 [04:29:07]MH_SAM_APDU [04:29: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 94 77 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 36 CD 01 00 35 04 06 00 49 79 16 92 [04:29:07]Write to MH i2c: E2 02 01 7B 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 94 77 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 36 CD 01 00 35 04 06 00 49 79 16 92 00 00 D7 [04:29:07]Write i2c OK [04:29:07]MH_I2C_Read... [04:29:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:29:07]Read from MH i2c: E2 [04:29:07]MH_I2C_Read... [04:29:07]Read from MH i2c: E2 03 00 [04:29:07]MH_I2C_Read... [04:29:07]Read from MH i2c: E2 03 00 7B 25 00 90 00 14 [04:29:07]RAPDU: 90 00 [04:29:07]wFMCommunicate OK [04:29:07]wFMCommunicate request_size=7 [04:29:07]MH_SAM_APDU [04:29:07]CAPDU: 80 0D 02 02 02 84 DC [04:29:07]Write to MH i2c: E2 0A 00 7C 25 80 0D 02 02 02 00 84 DC 00 00 7F [04:29:07]Write i2c OK [04:29:07]MH_I2C_Read... [04:29:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:29:07]Read from MH i2c: E2 [04:29:07]MH_I2C_Read... [04:29:07]Read from MH i2c: E2 03 00 [04:29:07]MH_I2C_Read... [04:29:07]Read from MH i2c: E2 03 00 7C 25 00 90 00 15 [04:29:07]RAPDU: 90 00 [04:29:07]wFMCommunicate OK [04:29:07]wFMCommunicate request_size=4 [04:29:07]MH_SAM_APDU [04:29:07]CAPDU: 80 0D 03 02 [04:29:07]Write to MH i2c: E2 08 00 7D 25 80 0D 03 02 00 00 00 00 1D [04:29:07]Write i2c OK [04:29:07]MH_I2C_Read... [04:29:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:29:07]Read from MH i2c: E2 [04:29:07]MH_I2C_Read... [04:29:07]Read from MH i2c: E2 0B 00 [04:29:07]MH_I2C_Read... [04:29:07]Read from MH i2c: E2 0B 00 7D 25 00 E2 20 FE E4 4A 94 26 11 90 00 17 [04:29:07]RAPDU: E2 20 FE E4 4A 94 26 11 90 00 [04:29:07]wFMCommunicate OK [04:29:07]SAM_PROTO_SignData done [04:29:07]FM_MakeSignedData done [04:29:07]CreateOFDProtocolMessage [04:29:07]wFMCommunicate request_size=4 [04:29:07]MH_SAM_APDU [04:29:07]CAPDU: 80 11 00 00 [04:29:07]Write to MH i2c: E2 08 00 7E 25 80 11 00 00 00 00 00 00 1D [04:29:07]Write i2c OK [04:29:07]MH_I2C_Read... [04:29:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:29:07]Read from MH i2c: E2 [04:29:07]MH_I2C_Read... [04:29:07]Read from MH i2c: E2 17 00 [04:29:07]MH_I2C_Read... [04:29:07]Read from MH i2c: E2 17 00 7E 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 78 [04:29:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:29:07]wFMCommunicate OK [04:29:07]CreateOFDProtocolMessage done [04:29:07]OFDSenderStorePacket 118070 [04:29:07]StoreOFDPacket docnum=118070 [04:29:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 42 29 04 01 54 B8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 94 77 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 36 CD 01 00 35 04 06 00 49 79 16 92 84 DC E2 20 FE E4 4A 94 26 11 [04:29:07]CheckFolder [04:29:07]dirname=/storage/ofd_packets [04:29:07]CheckFolder done [04:29:07]ProducePacketName [04:29:07]name=ofd_packets/00118070 [04:29:07]NVStorageSaveData ofd_packets/00118070 [04:29:07]File name is /storage/ofd_packets/00118070 [04:29:07]Write 298 bytes [04:29:07]NVStorageSaveData done [04:29:07]OFDSenderStorePacket done [04:29:07]KKMCreateOFDPacket done [04:29:07]NVStorageSaveData kkm_last_timestamp [04:29:07]File name is /storage/kkm_last_timestamp [04:29:07]Write 4 bytes [04:29:07]NVStorageSaveData done [04:29:07]ExternCall_PrintAddStr [04:29:07]wPrintStart [04:29:07]Write to MH i2c: 01 00 00 7F 25 A4 [04:29:07]Write i2c OK [04:29:07]MH_I2C_Read... [04:29:07]Read from MH i2c: 01 [04:29:07]MH_I2C_Read... [04:29:07]Read from MH i2c: 01 07 00 [04:29:07]MH_I2C_Read... [04:29:07]Read from MH i2c: 01 07 00 7F 25 00 00 00 00 00 FF 0F B9 [04:29:07]RasterBufferAndPrint [04:29:07]line Счет N : (1)948940 [04:29:07]line ИНН: 02508201610067 [04:29:07]line Контрольно-Кассовый Чек [04:29:07]line ПРОДАЖА [04:29:07]line ТРК (МРК, ГНК) : 44 [04:29:07]line Товар: 2710194800 [04:29:07]line ДТ-К-5 [04:29:07]line 26.250 * 76.20 [04:29:07]line = 2000.25 [04:29:07]line НДС 12% НСП 1% [04:29:07]line > о реализуемом товаре [04:29:07]line ОКРУГЛЕНИЕ: -0.25 [04:29:07]line ИТОГО: 2000.00 [04:29:07]line НСП 1% : 17.70 [04:29:07]line НДС 12% : 212.42 [04:29:07]line Наличными: 0.00 [04:29:07]line Безнал.: 2000.00 [04:29:07]line Место: АЗС № 134 "Партнер Нефть" [04:29:07]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [04:29:07]line СНО: Общий режим [04:29:07]line Чек 13 27.07.2024 04:29 [04:29:07]line Смена: 432 ФФД: 1.0 [04:29:07]line ЗНМ: 0300000044 [04:29:07]line РНМ: 0000000000092660 [04:29:07]line Версия ККМ: 001 [04:29:07]line Платежная система: O! деньги [04:29:07]line ФМ: 0000000000874939 [04:29:07]line ФД: 118070 [04:29:07]line ФПД: 80784418571484 [04:29:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T042908&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118070&fm=80784418571484&tin=02508201610067®Number=0000000000092660&sum=200000 [04:29:07]OFD Sender: Processing packet 118070 [packets to send 85, broken 84] [04:29:07]ProducePacketName [04:29:07]name=ofd_packets/00118070 [04:29:07]OFD Sender: To server: pG, [04:29:07]CommunicateWithHost lk.salyk.kg:30040 [04:29:07]ConnectInit lk.salyk.kg [04:29:07]written 0, free lines is 4095 [04:29:07]Connected sock=10 [04:29:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 42 29 04 01 54 B8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 94 77 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 36 CD 01 00 35 04 06 00 49 79 16 92 84 DC E2 20 FE E4 4A 94 26 11 [04:29:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A1 33 47 00 EE 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 36 CD 01 00 F4 03 04 00 28 25 A4 66 B6 04 01 00 00 3E 01 A8 98 10 ED 83 D8 [04:29:08]CommunicateWithHost err = 0 [04:29:08]CheckOFDResponse [04:29:08]1017 (14) - 77093643461234 [04:29:08]1041 (16) - 0000000000874939 [04:29:08]1040 (4) - 118070 [04:29:08]1012 (4) - 26.07.2024 22:37 [04:29:08]1206 (1) - 0 [04:29:08]OFD Sender: Remove packet 118070 [04:29:08]ProducePacketName [04:29:08]name=ofd_packets/00118070 [04:29:08]NVStorageDeleteData [04:29:08]Write to MH i2c: 01 00 00 A9 25 CE [04:29:08]Write i2c OK [04:29:08]MH_I2C_Read... [04:29:08]Read from MH i2c: 01 [04:29:08]MH_I2C_Read... [04:29:08]Read from MH i2c: 01 07 00 [04:29:08]MH_I2C_Read... [04:29:08]Read from MH i2c: 01 07 00 A9 25 00 00 00 00 00 E9 0C CA [04:29:08]RasterBufferAndPrint [04:29:08]line [04:29:08]line [04:29:08]line [04:29:08]line [04:29:08]line [04:29:08]written 0, free lines is 3311 [04:29:08]MH_Cut [04:29:08]Write to MH i2c: D1 01 00 B0 25 01 A7 [04:29:08]Write i2c OK [04:29:08]MH_I2C_Read... [04:29:08]Read from MH i2c: D1 [04:29:08]MH_I2C_Read... [04:29:08]Read from MH i2c: D1 01 00 [04:29:08]MH_I2C_Read... [04:29:08]Read from MH i2c: D1 01 00 B0 25 00 A6 [04:29:08]Write to MH i2c: 01 00 00 B1 25 D6 [04:29:08]Write i2c OK [04:29:08]MH_I2C_Read... [04:29:08]OFD Sender: No OFD packet to send [04:29:09]*** Cut start [04:29:09]*** Partial cut [04:29:09]*** CUTSNS_PIN = 1 [04:29:09]*** CUTSNS_PIN = 0 [04:29:09]*** Brake cut motor [04:29:09]Read from MH i2c: 01 [04:29:09]MH_I2C_Read... [04:29:09]*** Stop cut motor [04:29:09]*** Cut end [04:29:09]Read from MH i2c: 01 07 00 [04:29:09]MH_I2C_Read... [04:29:09]Read from MH i2c: 01 07 00 B1 25 00 00 00 00 00 FF 0F EB [04:29:09]process_action close_receipt done [04:29:09]requested_data is exist [04:29:09]produce_requested_data [04:29:09]requested_item fm.sn is exist - process it [04:29:09]wFMCommunicate request_size=4 [04:29:09]MH_SAM_APDU [04:29:09]CAPDU: 80 11 00 00 [04:29:09]Write to MH i2c: E2 08 00 B2 25 80 11 00 00 00 00 00 00 51 [04:29:09]Write i2c OK [04:29:09]MH_I2C_Read... [04:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:29:09]Read from MH i2c: E2 [04:29:09]MH_I2C_Read... [04:29:09]Read from MH i2c: E2 17 00 [04:29:09]MH_I2C_Read... [04:29:09]Read from MH i2c: E2 17 00 B2 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AC [04:29:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:29:09]wFMCommunicate OK [04:29:09]requested_item fd.num is exist - process it [04:29:09]SAM_PROTO_GetFieldsCounters [04:29:09]wFMCommunicate request_size=4 [04:29:09]MH_SAM_APDU [04:29:09]CAPDU: 80 13 00 00 [04:29:09]Write to MH i2c: E2 08 00 B3 25 80 13 00 00 00 00 00 00 54 [04:29:09]Write i2c OK [04:29:09]MH_I2C_Read... [04:29:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:29:09]Read from MH i2c: E2 [04:29:09]MH_I2C_Read... [04:29:09]Read from MH i2c: E2 62 00 [04:29:09]MH_I2C_Read... [04:29:09]Read from MH i2c: E2 62 00 B3 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 36 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [04:29:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 36 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:29:09]wFMCommunicate OK [04:29:09]SAM_PROTO_GetFieldsCounters done [04:29:09]requested_item shift.num is exist - process it [04:29:09]requested_item shift.opened is exist - process it [04:29:09]req_shift_opened [04:29:09]FM_GetShiftState [04:29:09]SAM_PROTO_GetShiftState [04:29:09]wFMCommunicate request_size=4 [04:29:09]MH_SAM_APDU [04:29:09]CAPDU: 80 13 01 00 [04:29:09]Write to MH i2c: E2 08 00 B4 25 80 13 01 00 00 00 00 00 56 [04:29:09]Write i2c OK [04:29:09]MH_I2C_Read... [04:29:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:29:09]Read from MH i2c: E2 [04:29:09]MH_I2C_Read... [04:29:09]Read from MH i2c: E2 0E 00 [04:29:09]MH_I2C_Read... [04:29:09]Read from MH i2c: E2 0E 00 B4 25 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 E3 [04:29:09]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [04:29:09]wFMCommunicate OK [04:29:09]SAM_PROTO_GetShiftState done [04:29:09]FM_GetShiftState done [04:29:09]req_shift_opened done [04:29:09]requested_item shift.open_date is exist - process it [04:29:09]req_shift_open_date [04:29:09]req_shift_open_date done [04:29:09]produce_requested_data done [04:29:09]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118070,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [04:29:09]process_action_free close_receipt [04:29:09]json_value_free [04:29:09]json_value_free done [04:29:09]process_json_proto returns [04:29:09]Send response to host [04:29:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118070,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [04:29:09]free response buf [04:29:09]execute_script done [04:29:09]execute_script returns [04:29:09]free content buf [04:29:09]Sock 9.Close socket [04:29:09]Sock 9.Thread stoped [04:29:13]OFD Sender: No OFD packet to send [04:29:18]OFD Sender: No OFD packet to send [04:29:23]OFD Sender: No OFD packet to send [04:29:28]OFD Sender: No OFD packet to send [04:29:33]OFD Sender: No OFD packet to send [04:29:38]OFD Sender: No OFD packet to send [04:29:43]OFD Sender: No OFD packet to send [04:29:48]OFD Sender: No OFD packet to send [04:29:53]OFD Sender: No OFD packet to send [04:29:58]OFD Sender: No OFD packet to send [04:30:03]OFD Sender: No OFD packet to send [04:30:08]OFD Sender: No OFD packet to send [04:30:13]OFD Sender: No OFD packet to send [04:30:18]OFD Sender: No OFD packet to send [04:30:23]OFD Sender: No OFD packet to send [04:30:28]OFD Sender: No OFD packet to send [04:30:33]OFD Sender: No OFD packet to send [04:30:38]OFD Sender: No OFD packet to send [04:30:43]OFD Sender: No OFD packet to send [04:30:48]OFD Sender: No OFD packet to send [04:30:53]OFD Sender: No OFD packet to send [04:30:58]OFD Sender: No OFD packet to send [04:31:03]OFD Sender: No OFD packet to send [04:31:08]OFD Sender: No OFD packet to send [04:31:11]accept exits with 7 [04:31:11]New connection [04:31:11]New thread 3067284836 created [04:31:11]Thread 3067428196 joined [04:31:11]Waiting for new connection... [04:31:11] Sock 7.Parse request [04:31:11]Sock 7.Check first char [04:31:11]Sock 7.First char is OK [04:31:11]request: POST /json_proto HTTP/1.0 [04:31:11]Method: POST [04:31:11]URL: /json_proto [04:31:11]Method is POST - this is cgi request [04:31:11]url: /json_proto [04:31:11]query_string will be loaded in cgi processing [04:31:11]execute_cgi json_proto POST (null) [04:31:11]execute_cgi path=json_proto method=POST [04:31:11]POST find Content-Length [04:31:11]Host: 172.17.45.7:8080 [04:31:11]Content-Length: 677 [04:31:11]Content-Type: application/json [04:31:11] [04:31:11]POST finish read [04:31:11]Found Content-Length = 677 [04:31:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:31:11]execute_script... [04:31: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)948941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:31:11]POST & json_proto [04:31:11]process_json_proto [04:31:11]json parsed OK: [04:31:11]protocol is kg_v1.0 [04:31:11]action value=close_receipt [04:31:11]process_action close_receipt [04:31:11]cmd_close_receipt [04:31:11]MH_GetDate [04:31:11]Write to MH i2c: F0 00 00 B5 25 C9 [04:31:11]Write i2c OK [04:31:11]MH_I2C_Read... [04:31:11]Read from MH i2c: F0 [04:31:11]MH_I2C_Read... [04:31:11]Read from MH i2c: F0 09 00 [04:31:11]MH_I2C_Read... [04:31:11]Read from MH i2c: F0 09 00 B5 25 00 12 78 A4 66 90 0F 3E 66 A9 [04:31:11]GetLastDocTimeStamp 1722054548 [04:31:11]current date 1722054674 [04:31:11]FM_GetShiftState [04:31:11]SAM_PROTO_GetShiftState [04:31:11]wFMCommunicate request_size=4 [04:31:11]MH_SAM_APDU [04:31:11]CAPDU: 80 13 01 00 [04:31:11]Write to MH i2c: E2 08 00 B6 25 80 13 01 00 00 00 00 00 58 [04:31:11]Write i2c OK [04:31:11]MH_I2C_Read... [04:31:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:31:11]Read from MH i2c: E2 [04:31:11]MH_I2C_Read... [04:31:11]Read from MH i2c: E2 0E 00 [04:31:11]MH_I2C_Read... [04:31:11]Read from MH i2c: E2 0E 00 B6 25 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 E5 [04:31:11]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [04:31:11]wFMCommunicate OK [04:31:11]SAM_PROTO_GetShiftState done [04:31:11]FM_GetShiftState done [04:31:11]opened in 1722038845 [04:31:11]opened+sec_in_day 1722125245 [04:31:11]quantity*price = 50036 [04:31:11]sum+1 = 50037 [04:31:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 14 27.07.2024 04:31 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118071 ФПД: 279097637383380 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T043114&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118071&fm=279097637383380&tin=02508201610067®Number=0000000000092660&sum=50000 [04:31:12]StoreToDocumentArchive [04:31:12]shift 432 fd 118071 [04:31:12]save to /storage/0432/doc_00118071 [04:31:12]save last doc name /storage/0432/doc_00118071 to /storage/kkm_last_doc_name [04:31:12]save OK [04:31:12]Clear old archive folders... [04:31:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:31:12]tlvbuf is 006D9EA0 [04:31:12]SAM_PROTO_ClearQueue [04:31:12]wFMCommunicate request_size=4 [04:31:12]MH_SAM_APDU [04:31:12]CAPDU: 80 09 00 00 [04:31:12]Write to MH i2c: E2 08 00 C3 25 80 09 00 00 00 00 00 00 5A [04:31:12]Write i2c OK [04:31:12]MH_I2C_Read... [04:31:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:31:12]Read from MH i2c: E2 [04:31:12]MH_I2C_Read... [04:31:12]Read from MH i2c: E2 03 00 [04:31:12]MH_I2C_Read... [04:31:12]Read from MH i2c: E2 03 00 C3 25 00 90 00 5C [04:31:12]RAPDU: 90 00 [04:31:12]wFMCommunicate OK [04:31:12]SAM_PROTO_ClearQueue done [04:31:12]KKMCreateOFDPacket [04:31:12]OFDProtocolAddRootSTLVToBuf [04:31:12]FM_MakeSignedData [04:31:12]FM_MakeSignedData [04:31:12]SAM_PROTO_SignData [04:31:12]wFMCommunicate request_size=4 [04:31:12]MH_SAM_APDU [04:31:12]CAPDU: 80 0D 01 02 [04:31:12]Write to MH i2c: E2 08 00 C4 25 80 0D 01 02 00 00 00 00 62 [04:31:12]Write i2c OK [04:31:12]MH_I2C_Read... [04:31:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:31:13]Read from MH i2c: E2 [04:31:13]MH_I2C_Read... [04:31:13]Read from MH i2c: E2 03 00 [04:31:13]MH_I2C_Read... [04:31:13]Read from MH i2c: E2 03 00 C4 25 00 90 00 5D [04:31:13]RAPDU: 90 00 [04:31:13]wFMCommunicate OK [04:31:13]wFMCommunicate request_size=255 [04:31:13]MH_SAM_APDU [04:31: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 0E 00 00 00 F4 03 04 00 12 78 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 37 CD 01 00 35 04 06 00 FD [04:31:13]Write to MH i2c: E2 02 01 C5 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 0E 00 00 00 F4 03 04 00 12 78 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 37 CD 01 00 35 04 06 00 FD 00 00 3B [04:31:13]Write i2c OK [04:31:13]MH_I2C_Read... [04:31:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:31:13]Read from MH i2c: E2 [04:31:13]MH_I2C_Read... [04:31:13]Read from MH i2c: E2 03 00 [04:31:13]MH_I2C_Read... [04:31:13]Read from MH i2c: E2 03 00 C5 25 00 90 00 5E [04:31:13]RAPDU: 90 00 [04:31:13]wFMCommunicate OK [04:31:13]wFMCommunicate request_size=10 [04:31:13]MH_SAM_APDU [04:31:13]CAPDU: 80 0D 02 02 05 D6 7B 88 AC D4 [04:31:13]Write to MH i2c: E2 0D 00 C6 25 80 0D 02 02 05 00 D6 7B 88 AC D4 00 00 C8 [04:31:13]Write i2c OK [04:31:13]MH_I2C_Read... [04:31:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:31:13]Read from MH i2c: E2 [04:31:13]MH_I2C_Read... [04:31:13]Read from MH i2c: E2 03 00 [04:31:13]MH_I2C_Read... [04:31:13]Read from MH i2c: E2 03 00 C6 25 00 90 00 5F [04:31:13]RAPDU: 90 00 [04:31:13]wFMCommunicate OK [04:31:13]wFMCommunicate request_size=4 [04:31:13]MH_SAM_APDU [04:31:13]CAPDU: 80 0D 03 02 [04:31:13]Write to MH i2c: E2 08 00 C7 25 80 0D 03 02 00 00 00 00 67 [04:31:13]Write i2c OK [04:31:13]MH_I2C_Read... [04:31:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:31:13]Read from MH i2c: E2 [04:31:13]MH_I2C_Read... [04:31:13]Read from MH i2c: E2 0B 00 [04:31:13]MH_I2C_Read... [04:31:13]Read from MH i2c: E2 0B 00 C7 25 00 B2 BC FF A0 1B CA C1 90 90 00 AB [04:31:13]RAPDU: B2 BC FF A0 1B CA C1 90 90 00 [04:31:13]wFMCommunicate OK [04:31:13]SAM_PROTO_SignData done [04:31:13]FM_MakeSignedData done [04:31:13]CreateOFDProtocolMessage [04:31:13]wFMCommunicate request_size=4 [04:31:13]MH_SAM_APDU [04:31:13]CAPDU: 80 11 00 00 [04:31:13]Write to MH i2c: E2 08 00 C8 25 80 11 00 00 00 00 00 00 67 [04:31:13]Write i2c OK [04:31:13]MH_I2C_Read... [04:31:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:31:13]Read from MH i2c: E2 [04:31:13]MH_I2C_Read... [04:31:13]Read from MH i2c: E2 17 00 [04:31:13]MH_I2C_Read... [04:31:13]Read from MH i2c: E2 17 00 C8 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C2 [04:31:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:31:13]wFMCommunicate OK [04:31:13]CreateOFDProtocolMessage done [04:31:13]OFDSenderStorePacket 118071 [04:31:13]StoreOFDPacket docnum=118071 [04:31:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B3 EB 07 01 F7 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 0E 00 00 00 F4 03 04 00 12 78 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 37 CD 01 00 35 04 06 00 FD D6 7B 88 AC D4 B2 BC FF A0 1B CA C1 90 [04:31:13]CheckFolder [04:31:13]dirname=/storage/ofd_packets [04:31:13]CheckFolder done [04:31:13]ProducePacketName [04:31:13]name=ofd_packets/00118071 [04:31:13]NVStorageSaveData ofd_packets/00118071 [04:31:13]File name is /storage/ofd_packets/00118071 [04:31:13]Write 301 bytes [04:31:13]NVStorageSaveData done [04:31:13]OFDSenderStorePacket done [04:31:13]KKMCreateOFDPacket done [04:31:13]NVStorageSaveData kkm_last_timestamp [04:31:13]File name is /storage/kkm_last_timestamp [04:31:13]Write 4 bytes [04:31:13]NVStorageSaveData done [04:31:13]ExternCall_PrintAddStr [04:31:13]wPrintStart [04:31:13]Write to MH i2c: 01 00 00 C9 25 EE [04:31:13]Write i2c OK [04:31:13]MH_I2C_Read... [04:31:13]Read from MH i2c: 01 [04:31:13]MH_I2C_Read... [04:31:13]Read from MH i2c: 01 07 00 [04:31:13]MH_I2C_Read... [04:31:13]Read from MH i2c: 01 07 00 C9 25 00 00 00 00 00 FF 0F 03 [04:31:13]RasterBufferAndPrint [04:31:13]line Счет N : (1)948941 [04:31:13]line ИНН: 02508201610067 [04:31:13]line Контрольно-Кассовый Чек [04:31:13]line ПРОДАЖА [04:31:13]line ТРК (МРК, ГНК) : 61 [04:31:13]line Товар: 2710124130 [04:31:13]line Аи-92-К-4 [04:31:13]line 7.380 * 67.80 [04:31:13]line = 500.36 [04:31:13]line НДС 12% НСП 1% [04:31:13]line > о реализуемом товаре [04:31:13]line ОКРУГЛЕНИЕ: -0.36 [04:31:13]line ИТОГО: 500.00 [04:31:13]line Внесено: 500.00 [04:31:13]line СДАЧА: 0.00 [04:31:13]line НСП 1% : 4.43 [04:31:13]line НДС 12% : 53.14 [04:31:13]line Наличными: 500.00 [04:31:13]line Безнал.: 0.00 [04:31:13]line Место: АЗС № 134 "Партнер Нефть" [04:31:13]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [04:31:13]line СНО: Общий режим [04:31:13]line Чек 14 27.07.2024 04:31 [04:31:13]line Смена: 432 ФФД: 1.0 [04:31:13]line ЗНМ: 0300000044 [04:31:13]line РНМ: 0000000000092660 [04:31:13]line Версия ККМ: 001 [04:31:13]line ФМ: 0000000000874939 [04:31:13]line ФД: 118071 [04:31:13]line ФПД: 279097637383380 [04:31:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T043114&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118071&fm=279097637383380&tin=02508201610067®Number=0000000000092660&sum=50000 [04:31:13]written 0, free lines is 4095 [04:31:13]OFD Sender: Processing packet 118071 [packets to send 85, broken 84] [04:31:13]ProducePacketName [04:31:13]name=ofd_packets/00118071 [04:31:13]OFD Sender: To server: pG, [04:31:13]CommunicateWithHost lk.salyk.kg:30040 [04:31:13]ConnectInit lk.salyk.kg [04:31:13]Connected sock=9 [04:31:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B3 EB 07 01 F7 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 0E 00 00 00 F4 03 04 00 12 78 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 37 CD 01 00 35 04 06 00 FD D6 7B 88 AC D4 B2 BC FF A0 1B CA C1 90 [04:31:13]Write to MH i2c: 01 00 00 F3 25 18 [04:31:13]Write i2c OK [04:31:13]MH_I2C_Read... [04:31:13]Read from MH i2c: 01 [04:31:13]MH_I2C_Read... [04:31:13]Read from MH i2c: 01 07 00 [04:31:13]MH_I2C_Read... [04:31:13]Read from MH i2c: 01 07 00 F3 25 00 00 00 00 00 D0 0C FB [04:31:13]RasterBufferAndPrint [04:31:13]line [04:31:13]line [04:31:13]line [04:31:13]line [04:31:13]line [04:31:13]written 0, free lines is 3287 [04:31:13]MH_Cut [04:31:13]Write to MH i2c: D1 01 00 FA 25 01 F1 [04:31:13]Write i2c OK [04:31:13]MH_I2C_Read... [04:31:13]Read from MH i2c: D1 [04:31:13]MH_I2C_Read... [04:31:13]Read from MH i2c: D1 01 00 [04:31:13]MH_I2C_Read... [04:31:13]Read from MH i2c: D1 01 00 FA 25 00 F0 [04:31:13]Write to MH i2c: 01 00 00 FB 25 20 [04:31:13]Write i2c OK [04:31:13]MH_I2C_Read... [04:31:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 CD 27 47 00 8A 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 37 CD 01 00 F4 03 04 00 A6 25 A4 66 B6 04 01 00 00 70 37 91 31 95 F9 F0 7D [04:31:14]CommunicateWithHost err = 0 [04:31:14]CheckOFDResponse [04:31:14]1017 (14) - 77093643461234 [04:31:14]1041 (16) - 0000000000874939 [04:31:14]1040 (4) - 118071 [04:31:14]1012 (4) - 26.07.2024 22:39 [04:31:14]1206 (1) - 0 [04:31:14]OFD Sender: Remove packet 118071 [04:31:14]ProducePacketName [04:31:14]name=ofd_packets/00118071 [04:31:14]NVStorageDeleteData [04:31:14]OFD Sender: No OFD packet to send [04:31:14]*** Cut start [04:31:14]*** Partial cut [04:31:14]*** CUTSNS_PIN = 1 [04:31:14]*** CUTSNS_PIN = 0 [04:31:14]*** Brake cut motor [04:31:15]Read from MH i2c: 01 [04:31:15]MH_I2C_Read... [04:31:15]*** Stop cut motor [04:31:15]*** Cut end [04:31:15]Read from MH i2c: 01 07 00 [04:31:15]MH_I2C_Read... [04:31:15]Read from MH i2c: 01 07 00 FB 25 00 00 00 00 00 FF 0F 35 [04:31:15]process_action close_receipt done [04:31:15]requested_data is exist [04:31:15]produce_requested_data [04:31:15]requested_item fm.sn is exist - process it [04:31:15]wFMCommunicate request_size=4 [04:31:15]MH_SAM_APDU [04:31:15]CAPDU: 80 11 00 00 [04:31:15]Write to MH i2c: E2 08 00 FC 25 80 11 00 00 00 00 00 00 9B [04:31:15]Write i2c OK [04:31:15]MH_I2C_Read... [04:31:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:31:15]Read from MH i2c: E2 [04:31:15]MH_I2C_Read... [04:31:15]Read from MH i2c: E2 17 00 [04:31:15]MH_I2C_Read... [04:31:15]Read from MH i2c: E2 17 00 FC 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F6 [04:31:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:31:15]wFMCommunicate OK [04:31:15]requested_item fd.num is exist - process it [04:31:15]SAM_PROTO_GetFieldsCounters [04:31:15]wFMCommunicate request_size=4 [04:31:15]MH_SAM_APDU [04:31:15]CAPDU: 80 13 00 00 [04:31:15]Write to MH i2c: E2 08 00 FD 25 80 13 00 00 00 00 00 00 9E [04:31:15]Write i2c OK [04:31:15]MH_I2C_Read... [04:31:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:31:15]Read from MH i2c: E2 [04:31:15]MH_I2C_Read... [04:31:15]Read from MH i2c: E2 62 00 [04:31:15]MH_I2C_Read... [04:31:15]Read from MH i2c: E2 62 00 FD 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 37 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [04:31:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 37 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:31:15]wFMCommunicate OK [04:31:15]SAM_PROTO_GetFieldsCounters done [04:31:15]requested_item shift.num is exist - process it [04:31:15]requested_item shift.opened is exist - process it [04:31:15]req_shift_opened [04:31:15]FM_GetShiftState [04:31:15]SAM_PROTO_GetShiftState [04:31:15]wFMCommunicate request_size=4 [04:31:15]MH_SAM_APDU [04:31:15]CAPDU: 80 13 01 00 [04:31:15]Write to MH i2c: E2 08 00 FE 25 80 13 01 00 00 00 00 00 A0 [04:31:15]Write i2c OK [04:31:15]MH_I2C_Read... [04:31:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:31:15]Read from MH i2c: E2 [04:31:15]MH_I2C_Read... [04:31:15]Read from MH i2c: E2 0E 00 [04:31:15]MH_I2C_Read... [04:31:15]Read from MH i2c: E2 0E 00 FE 25 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 2D [04:31:15]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [04:31:15]wFMCommunicate OK [04:31:15]SAM_PROTO_GetShiftState done [04:31:15]FM_GetShiftState done [04:31:15]req_shift_opened done [04:31:15]requested_item shift.open_date is exist - process it [04:31:15]req_shift_open_date [04:31:15]req_shift_open_date done [04:31:15]produce_requested_data done [04:31:15]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118071,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [04:31:15]process_action_free close_receipt [04:31:15]json_value_free [04:31:15]json_value_free done [04:31:15]process_json_proto returns [04:31:15]Send response to host [04:31:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118071,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [04:31:15]free response buf [04:31:15]execute_script done [04:31:15]execute_script returns [04:31:15]free content buf [04:31:15]Sock 7.Close socket [04:31:15]Sock 7.Thread stoped [04:31:19]OFD Sender: No OFD packet to send [04:31:24]OFD Sender: No OFD packet to send [04:31:29]OFD Sender: No OFD packet to send [04:31:34]OFD Sender: No OFD packet to send [04:31:39]OFD Sender: No OFD packet to send [04:31:44]OFD Sender: No OFD packet to send [04:31:49]OFD Sender: No OFD packet to send [04:31:54]OFD Sender: No OFD packet to send [04:31:59]OFD Sender: No OFD packet to send [04:32:04]OFD Sender: No OFD packet to send [04:32:09]OFD Sender: No OFD packet to send [04:32:14]OFD Sender: No OFD packet to send [04:32:19]OFD Sender: No OFD packet to send [04:32:24]OFD Sender: No OFD packet to send [04:32:29]OFD Sender: No OFD packet to send [04:32:34]OFD Sender: No OFD packet to send [04:32:39]OFD Sender: No OFD packet to send [04:32:44]OFD Sender: No OFD packet to send [04:32:49]OFD Sender: No OFD packet to send [04:32:54]OFD Sender: No OFD packet to send [04:32:59]OFD Sender: No OFD packet to send [04:33:04]OFD Sender: No OFD packet to send [04:33:09]OFD Sender: No OFD packet to send [04:33:14]OFD Sender: No OFD packet to send [04:33:19]OFD Sender: No OFD packet to send [04:33:24]OFD Sender: No OFD packet to send [04:33:29]OFD Sender: No OFD packet to send [04:33:34]OFD Sender: No OFD packet to send [04:33:39]OFD Sender: No OFD packet to send [04:33:44]OFD Sender: No OFD packet to send [04:33:49]OFD Sender: No OFD packet to send [04:33:54]OFD Sender: No OFD packet to send [04:33:59]OFD Sender: No OFD packet to send [04:34:03]accept exits with 10 [04:34:03]New connection [04:34:03]New thread 3067428196 created [04:34:03]Thread 3067284836 joined [04:34:03]Waiting for new connection... [04:34:03] Sock 10.Parse request [04:34:03]Sock 10.Check first char [04:34:03]Sock 10.First char is OK [04:34:03]request: POST /json_proto HTTP/1.0 [04:34:03]Method: POST [04:34:03]URL: /json_proto [04:34:03]Method is POST - this is cgi request [04:34:03]url: /json_proto [04:34:03]query_string will be loaded in cgi processing [04:34:03]execute_cgi json_proto POST (null) [04:34:03]execute_cgi path=json_proto method=POST [04:34:03]POST find Content-Length [04:34:03]Host: 172.17.45.7:8080 [04:34:03]Content-Length: 819 [04:34:03]Content-Type: application/json [04:34:03] [04:34:03]POST finish read [04:34:03]Found Content-Length = 819 [04:34:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.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", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:34:03]execute_script... [04:34:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.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", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:34:03]POST & json_proto [04:34:03]process_json_proto [04:34:03]json parsed OK: [04:34:03]protocol is kg_v1.0 [04:34:03]action value=close_receipt [04:34:03]process_action close_receipt [04:34:03]cmd_close_receipt [04:34:03]MH_GetDate [04:34:03]Write to MH i2c: F0 00 00 FF 25 13 [04:34:03]Write i2c OK [04:34:03]MH_I2C_Read... [04:34:03]Read from MH i2c: F0 [04:34:03]MH_I2C_Read... [04:34:03]Read from MH i2c: F0 09 00 [04:34:03]MH_I2C_Read... [04:34:03]Read from MH i2c: F0 09 00 FF 25 00 BE 78 A4 66 90 0F 3E 66 9F [04:34:03]GetLastDocTimeStamp 1722054674 [04:34:03]current date 1722054846 [04:34:03]FM_GetShiftState [04:34:03]SAM_PROTO_GetShiftState [04:34:03]wFMCommunicate request_size=4 [04:34:03]MH_SAM_APDU [04:34:03]CAPDU: 80 13 01 00 [04:34:03]Write to MH i2c: E2 08 00 00 26 80 13 01 00 00 00 00 00 A3 [04:34:03]Write i2c OK [04:34:03]MH_I2C_Read... [04:34:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:34:03]Read from MH i2c: E2 [04:34:03]MH_I2C_Read... [04:34:03]Read from MH i2c: E2 0E 00 [04:34:03]MH_I2C_Read... [04:34:03]Read from MH i2c: E2 0E 00 00 26 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 30 [04:34:03]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [04:34:03]wFMCommunicate OK [04:34:03]SAM_PROTO_GetShiftState done [04:34:03]FM_GetShiftState done [04:34:03]opened in 1722038845 [04:34:03]opened+sec_in_day 1722125245 [04:34:03]quantity*price = 150037 [04:34:03]sum+1 = 150039 [04:34:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 15 27.07.2024 04:34 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118072 ФПД: 257763172395780 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T043406&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118072&fm=257763172395780&tin=02508201610067®Number=0000000000092660&sum=150000 [04:34:04]StoreToDocumentArchive [04:34:04]shift 432 fd 118072 [04:34:04]save to /storage/0432/doc_00118072 [04:34:04]save last doc name /storage/0432/doc_00118072 to /storage/kkm_last_doc_name [04:34:04]save OK [04:34:04]Clear old archive folders... [04:34:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:34:04]tlvbuf is 006D98A0 [04:34:04]SAM_PROTO_ClearQueue [04:34:04]wFMCommunicate request_size=4 [04:34:04]MH_SAM_APDU [04:34:04]CAPDU: 80 09 00 00 [04:34:04]Write to MH i2c: E2 08 00 0D 26 80 09 00 00 00 00 00 00 A5 [04:34:04]Write i2c OK [04:34:04]MH_I2C_Read... [04:34:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:34:04]Read from MH i2c: E2 [04:34:04]MH_I2C_Read... [04:34:04]Read from MH i2c: E2 03 00 [04:34:04]MH_I2C_Read... [04:34:04]Read from MH i2c: E2 03 00 0D 26 00 90 00 A7 [04:34:04]RAPDU: 90 00 [04:34:04]wFMCommunicate OK [04:34:04]SAM_PROTO_ClearQueue done [04:34:04]KKMCreateOFDPacket [04:34:04]OFDProtocolAddRootSTLVToBuf [04:34:04]FM_MakeSignedData [04:34:04]FM_MakeSignedData [04:34:04]SAM_PROTO_SignData [04:34:04]wFMCommunicate request_size=4 [04:34:04]MH_SAM_APDU [04:34:04]CAPDU: 80 0D 01 02 [04:34:04]Write to MH i2c: E2 08 00 0E 26 80 0D 01 02 00 00 00 00 AD [04:34:04]Write i2c OK [04:34:04]MH_I2C_Read... [04:34:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:34:05]Read from MH i2c: E2 [04:34:05]MH_I2C_Read... [04:34:05]Read from MH i2c: E2 03 00 [04:34:05]MH_I2C_Read... [04:34:05]Read from MH i2c: E2 03 00 0E 26 00 90 00 A8 [04:34:05]RAPDU: 90 00 [04:34:05]wFMCommunicate OK [04:34:05]wFMCommunicate request_size=255 [04:34:05]MH_SAM_APDU [04:34:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 BE 78 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 38 CD 01 00 35 04 06 00 EA 6F 2A 53 [04:34:05]Write to MH i2c: E2 02 01 0F 26 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 BE 78 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 38 CD 01 00 35 04 06 00 EA 6F 2A 53 00 00 90 [04:34:05]Write i2c OK [04:34:05]MH_I2C_Read... [04:34:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:34:05]Read from MH i2c: E2 [04:34:05]MH_I2C_Read... [04:34:05]Read from MH i2c: E2 03 00 [04:34:05]MH_I2C_Read... [04:34:05]Read from MH i2c: E2 03 00 0F 26 00 90 00 A9 [04:34:05]RAPDU: 90 00 [04:34:05]wFMCommunicate OK [04:34:05]wFMCommunicate request_size=7 [04:34:05]MH_SAM_APDU [04:34:05]CAPDU: 80 0D 02 02 02 AB 04 [04:34:05]Write to MH i2c: E2 0A 00 10 26 80 0D 02 02 02 00 AB 04 00 00 63 [04:34:05]Write i2c OK [04:34:05]MH_I2C_Read... [04:34:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:34:05]Read from MH i2c: E2 [04:34:05]MH_I2C_Read... [04:34:05]Read from MH i2c: E2 03 00 [04:34:05]MH_I2C_Read... [04:34:05]Read from MH i2c: E2 03 00 10 26 00 90 00 AA [04:34:05]RAPDU: 90 00 [04:34:05]wFMCommunicate OK [04:34:05]wFMCommunicate request_size=4 [04:34:05]MH_SAM_APDU [04:34:05]CAPDU: 80 0D 03 02 [04:34:05]Write to MH i2c: E2 08 00 11 26 80 0D 03 02 00 00 00 00 B2 [04:34:05]Write i2c OK [04:34:05]MH_I2C_Read... [04:34:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:34:05]Read from MH i2c: E2 [04:34:05]MH_I2C_Read... [04:34:05]Read from MH i2c: E2 0B 00 [04:34:05]MH_I2C_Read... [04:34:05]Read from MH i2c: E2 0B 00 11 26 00 B0 79 4F 5F 65 68 AC 8F 90 00 92 [04:34:05]RAPDU: B0 79 4F 5F 65 68 AC 8F 90 00 [04:34:05]wFMCommunicate OK [04:34:05]SAM_PROTO_SignData done [04:34:05]FM_MakeSignedData done [04:34:05]CreateOFDProtocolMessage [04:34:05]wFMCommunicate request_size=4 [04:34:05]MH_SAM_APDU [04:34:05]CAPDU: 80 11 00 00 [04:34:05]Write to MH i2c: E2 08 00 12 26 80 11 00 00 00 00 00 00 B2 [04:34:05]Write i2c OK [04:34:05]MH_I2C_Read... [04:34:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:34:05]Read from MH i2c: E2 [04:34:05]MH_I2C_Read... [04:34:05]Read from MH i2c: E2 17 00 [04:34:05]MH_I2C_Read... [04:34:05]Read from MH i2c: E2 17 00 12 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0D [04:34:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:34:05]wFMCommunicate OK [04:34:05]CreateOFDProtocolMessage done [04:34:05]OFDSenderStorePacket 118072 [04:34:05]StoreOFDPacket docnum=118072 [04:34:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 1C 0A 04 01 5B 0D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 BE 78 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 38 CD 01 00 35 04 06 00 EA 6F 2A 53 AB 04 B0 79 4F 5F 65 68 AC 8F [04:34:05]CheckFolder [04:34:05]dirname=/storage/ofd_packets [04:34:05]CheckFolder done [04:34:05]ProducePacketName [04:34:05]name=ofd_packets/00118072 [04:34:05]NVStorageSaveData ofd_packets/00118072 [04:34:05]File name is /storage/ofd_packets/00118072 [04:34:05]Write 298 bytes [04:34:05]NVStorageSaveData done [04:34:05]OFDSenderStorePacket done [04:34:05]KKMCreateOFDPacket done [04:34:05]NVStorageSaveData kkm_last_timestamp [04:34:05]File name is /storage/kkm_last_timestamp [04:34:05]Write 4 bytes [04:34:05]NVStorageSaveData done [04:34:05]ExternCall_PrintAddStr [04:34:05]wPrintStart [04:34:05]Write to MH i2c: 01 00 00 13 26 39 [04:34:05]Write i2c OK [04:34:05]MH_I2C_Read... [04:34:05]Read from MH i2c: 01 [04:34:05]MH_I2C_Read... [04:34:05]Read from MH i2c: 01 07 00 [04:34:05]MH_I2C_Read... [04:34:05]Read from MH i2c: 01 07 00 13 26 00 00 00 00 00 FF 0F 4E [04:34:05]RasterBufferAndPrint [04:34:05]line Счет N : (1)948942 [04:34:05]line ИНН: 02508201610067 [04:34:05]line Контрольно-Кассовый Чек [04:34:05]line ПРОДАЖА [04:34:05]line ТРК (МРК, ГНК) : 44 [04:34:05]line Товар: 2710194800 [04:34:05]line ДТ-К-5 [04:34:05]line 19.690 * 76.20 [04:34:05]line = 1500.38 [04:34:05]line НДС 12% НСП 1% [04:34:05]line > о реализуемом товаре [04:34:05]line ОКРУГЛЕНИЕ: -0.38 [04:34:05]line ИТОГО: 1500.00 [04:34:05]line НСП 1% : 13.28 [04:34:05]line НДС 12% : 159.33 [04:34:05]line Наличными: 0.00 [04:34:05]line Безнал.: 1500.00 [04:34:05]line Место: АЗС № 134 "Партнер Нефть" [04:34:05]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [04:34:05]line СНО: Общий режим [04:34:05]line Чек 15 27.07.2024 04:34 [04:34:05]line Смена: 432 ФФД: 1.0 [04:34:05]line ЗНМ: 0300000044 [04:34:05]line РНМ: 0000000000092660 [04:34:05]line Версия ККМ: 001 [04:34:05]line Платежная система: O! деньги [04:34:05]line ФМ: 0000000000874939 [04:34:05]line ФД: 118072 [04:34:05]line ФПД: 257763172395780 [04:34:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T043406&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118072&fm=257763172395780&tin=02508201610067®Number=0000000000092660&sum=150000 [04:34:05]OFD Sender: Processing packet 118072 [packets to send 85, broken 84] [04:34:05]ProducePacketName [04:34:05]name=ofd_packets/00118072 [04:34:05]OFD Sender: To server: pG, [04:34:05]CommunicateWithHost lk.salyk.kg:30040 [04:34:05]ConnectInit lk.salyk.kg [04:34:05]written 0, free lines is 4095 [04:34:05]Connected sock=11 [04:34:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 1C 0A 04 01 5B 0D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 BE 78 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 38 CD 01 00 35 04 06 00 EA 6F 2A 53 AB 04 B0 79 4F 5F 65 68 AC 8F [04:34:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A9 62 47 00 51 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 38 CD 01 00 F4 03 04 00 52 26 A4 66 B6 04 01 00 00 90 D2 EF 67 17 26 EC B1 [04:34:06]CommunicateWithHost err = 0 [04:34:06]CheckOFDResponse [04:34:06]1017 (14) - 77093643461234 [04:34:06]1041 (16) - 0000000000874939 [04:34:06]1040 (4) - 118072 [04:34:06]1012 (4) - 26.07.2024 22:42 [04:34:06]1206 (1) - 0 [04:34:06]OFD Sender: Remove packet 118072 [04:34:06]ProducePacketName [04:34:06]name=ofd_packets/00118072 [04:34:06]NVStorageDeleteData [04:34:06]Write to MH i2c: 01 00 00 3D 26 63 [04:34:06]Write i2c OK [04:34:06]MH_I2C_Read... [04:34:06]Read from MH i2c: 01 [04:34:06]MH_I2C_Read... [04:34:06]Read from MH i2c: 01 07 00 [04:34:06]MH_I2C_Read... [04:34:06]Read from MH i2c: 01 07 00 3D 26 00 00 00 00 00 DE 0C 54 [04:34:06]RasterBufferAndPrint [04:34:06]line [04:34:06]line [04:34:06]line [04:34:06]line [04:34:06]line [04:34:06]written 0, free lines is 3300 [04:34:06]MH_Cut [04:34:06]Write to MH i2c: D1 01 00 44 26 01 3C [04:34:06]Write i2c OK [04:34:06]MH_I2C_Read... [04:34:06]Read from MH i2c: D1 [04:34:06]MH_I2C_Read... [04:34:06]Read from MH i2c: D1 01 00 [04:34:06]MH_I2C_Read... [04:34:06]Read from MH i2c: D1 01 00 44 26 00 3B [04:34:06]Write to MH i2c: 01 00 00 45 26 6B [04:34:06]Write i2c OK [04:34:06]MH_I2C_Read... [04:34:06]OFD Sender: No OFD packet to send [04:34:06]*** Cut start [04:34:06]*** Partial cut [04:34:06]*** CUTSNS_PIN = 1 [04:34:07]*** CUTSNS_PIN = 0 [04:34:07]*** Brake cut motor [04:34:07]Read from MH i2c: 01 [04:34:07]MH_I2C_Read... [04:34:07]*** Stop cut motor [04:34:07]*** Cut end [04:34:07]Read from MH i2c: 01 07 00 [04:34:07]MH_I2C_Read... [04:34:07]Read from MH i2c: 01 07 00 45 26 00 00 00 00 00 FF 0F 80 [04:34:07]process_action close_receipt done [04:34:07]requested_data is exist [04:34:07]produce_requested_data [04:34:07]requested_item fm.sn is exist - process it [04:34:07]wFMCommunicate request_size=4 [04:34:07]MH_SAM_APDU [04:34:07]CAPDU: 80 11 00 00 [04:34:07]Write to MH i2c: E2 08 00 46 26 80 11 00 00 00 00 00 00 E6 [04:34:07]Write i2c OK [04:34:07]MH_I2C_Read... [04:34:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:34:07]Read from MH i2c: E2 [04:34:07]MH_I2C_Read... [04:34:07]Read from MH i2c: E2 17 00 [04:34:07]MH_I2C_Read... [04:34:07]Read from MH i2c: E2 17 00 46 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 41 [04:34:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:34:07]wFMCommunicate OK [04:34:07]requested_item fd.num is exist - process it [04:34:07]SAM_PROTO_GetFieldsCounters [04:34:07]wFMCommunicate request_size=4 [04:34:07]MH_SAM_APDU [04:34:07]CAPDU: 80 13 00 00 [04:34:07]Write to MH i2c: E2 08 00 47 26 80 13 00 00 00 00 00 00 E9 [04:34:07]Write i2c OK [04:34:07]MH_I2C_Read... [04:34:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:34:07]Read from MH i2c: E2 [04:34:07]MH_I2C_Read... [04:34:07]Read from MH i2c: E2 62 00 [04:34:07]MH_I2C_Read... [04:34:07]Read from MH i2c: E2 62 00 47 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 38 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [04:34:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 38 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:34:07]wFMCommunicate OK [04:34:07]SAM_PROTO_GetFieldsCounters done [04:34:07]requested_item shift.num is exist - process it [04:34:07]requested_item shift.opened is exist - process it [04:34:07]req_shift_opened [04:34:07]FM_GetShiftState [04:34:07]SAM_PROTO_GetShiftState [04:34:07]wFMCommunicate request_size=4 [04:34:07]MH_SAM_APDU [04:34:07]CAPDU: 80 13 01 00 [04:34:07]Write to MH i2c: E2 08 00 48 26 80 13 01 00 00 00 00 00 EB [04:34:07]Write i2c OK [04:34:07]MH_I2C_Read... [04:34:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:34:07]Read from MH i2c: E2 [04:34:07]MH_I2C_Read... [04:34:07]Read from MH i2c: E2 0E 00 [04:34:07]MH_I2C_Read... [04:34:07]Read from MH i2c: E2 0E 00 48 26 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 78 [04:34:07]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [04:34:07]wFMCommunicate OK [04:34:07]SAM_PROTO_GetShiftState done [04:34:07]FM_GetShiftState done [04:34:07]req_shift_opened done [04:34:07]requested_item shift.open_date is exist - process it [04:34:07]req_shift_open_date [04:34:07]req_shift_open_date done [04:34:07]produce_requested_data done [04:34:07]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118072,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [04:34:07]process_action_free close_receipt [04:34:07]json_value_free [04:34:07]json_value_free done [04:34:07]process_json_proto returns [04:34:07]Send response to host [04:34:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118072,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [04:34:07]free response buf [04:34:07]execute_script done [04:34:07]execute_script returns [04:34:07]free content buf [04:34:07]Sock 10.Close socket [04:34:07]Sock 10.Thread stoped [04:34:11]OFD Sender: No OFD packet to send [04:34:16]OFD Sender: No OFD packet to send [04:34:21]OFD Sender: No OFD packet to send [04:34:24]accept exits with 7 [04:34:24]New connection [04:34:24]New thread 3067284836 created [04:34:24]Thread 3067428196 joined [04:34:24]Waiting for new connection... [04:34:24] Sock 7.Parse request [04:34:24]Sock 7.Check first char [04:34:24]Sock 7.First char is OK [04:34:24]request: POST /json_proto HTTP/1.0 [04:34:24]Method: POST [04:34:24]URL: /json_proto [04:34:24]Method is POST - this is cgi request [04:34:24]url: /json_proto [04:34:24]query_string will be loaded in cgi processing [04:34:24]execute_cgi json_proto POST (null) [04:34:24]execute_cgi path=json_proto method=POST [04:34:24]POST find Content-Length [04:34:24]Host: 172.17.45.7:8080 [04:34:24]Content-Length: 677 [04:34:24]Content-Type: application/json [04:34:24] [04:34:24]POST finish read [04:34:24]Found Content-Length = 677 [04:34:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:34:24]execute_script... [04:34: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)948943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:34:24]POST & json_proto [04:34:24]process_json_proto [04:34:24]json parsed OK: [04:34:24]protocol is kg_v1.0 [04:34:24]action value=close_receipt [04:34:24]process_action close_receipt [04:34:24]cmd_close_receipt [04:34:24]MH_GetDate [04:34:24]Write to MH i2c: F0 00 00 49 26 5E [04:34:24]Write i2c OK [04:34:24]MH_I2C_Read... [04:34:24]Read from MH i2c: F0 [04:34:24]MH_I2C_Read... [04:34:24]Read from MH i2c: F0 09 00 [04:34:24]MH_I2C_Read... [04:34:24]Read from MH i2c: F0 09 00 49 26 00 D3 78 A4 66 90 0F 3E 66 FF [04:34:24]GetLastDocTimeStamp 1722054846 [04:34:24]current date 1722054867 [04:34:24]FM_GetShiftState [04:34:24]SAM_PROTO_GetShiftState [04:34:24]wFMCommunicate request_size=4 [04:34:24]MH_SAM_APDU [04:34:24]CAPDU: 80 13 01 00 [04:34:24]Write to MH i2c: E2 08 00 4A 26 80 13 01 00 00 00 00 00 ED [04:34:24]Write i2c OK [04:34:24]MH_I2C_Read... [04:34:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:34:24]Read from MH i2c: E2 [04:34:24]MH_I2C_Read... [04:34:24]Read from MH i2c: E2 0E 00 [04:34:24]MH_I2C_Read... [04:34:24]Read from MH i2c: E2 0E 00 4A 26 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 7A [04:34:24]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [04:34:24]wFMCommunicate OK [04:34:24]SAM_PROTO_GetShiftState done [04:34:24]FM_GetShiftState done [04:34:24]opened in 1722038845 [04:34:24]opened+sec_in_day 1722125245 [04:34:24]quantity*price = 50036 [04:34:24]sum+1 = 50037 [04:34:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 16 27.07.2024 04:34 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118073 ФПД: 204396492479806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T043427&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118073&fm=204396492479806&tin=02508201610067®Number=0000000000092660&sum=50000 [04:34:25]StoreToDocumentArchive [04:34:25]shift 432 fd 118073 [04:34:25]save to /storage/0432/doc_00118073 [04:34:25]save last doc name /storage/0432/doc_00118073 to /storage/kkm_last_doc_name [04:34:25]save OK [04:34:25]Clear old archive folders... [04:34:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:34:25]tlvbuf is 00761D60 [04:34:25]SAM_PROTO_ClearQueue [04:34:25]wFMCommunicate request_size=4 [04:34:25]MH_SAM_APDU [04:34:25]CAPDU: 80 09 00 00 [04:34:25]Write to MH i2c: E2 08 00 57 26 80 09 00 00 00 00 00 00 EF [04:34:25]Write i2c OK [04:34:25]MH_I2C_Read... [04:34:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:34:25]Read from MH i2c: E2 [04:34:25]MH_I2C_Read... [04:34:25]Read from MH i2c: E2 03 00 [04:34:25]MH_I2C_Read... [04:34:25]Read from MH i2c: E2 03 00 57 26 00 90 00 F1 [04:34:25]RAPDU: 90 00 [04:34:25]wFMCommunicate OK [04:34:25]SAM_PROTO_ClearQueue done [04:34:25]KKMCreateOFDPacket [04:34:25]OFDProtocolAddRootSTLVToBuf [04:34:25]FM_MakeSignedData [04:34:25]FM_MakeSignedData [04:34:25]SAM_PROTO_SignData [04:34:25]wFMCommunicate request_size=4 [04:34:25]MH_SAM_APDU [04:34:25]CAPDU: 80 0D 01 02 [04:34:25]Write to MH i2c: E2 08 00 58 26 80 0D 01 02 00 00 00 00 F7 [04:34:25]Write i2c OK [04:34:25]MH_I2C_Read... [04:34:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:34:25]Read from MH i2c: E2 [04:34:25]MH_I2C_Read... [04:34:25]Read from MH i2c: E2 03 00 [04:34:25]MH_I2C_Read... [04:34:25]Read from MH i2c: E2 03 00 58 26 00 90 00 F2 [04:34:25]RAPDU: 90 00 [04:34:25]wFMCommunicate OK [04:34:25]wFMCommunicate request_size=255 [04:34:25]MH_SAM_APDU [04:34:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 10 00 00 00 F4 03 04 00 D3 78 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 39 CD 01 00 35 04 06 00 B9 [04:34:25]Write to MH i2c: E2 02 01 59 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 10 00 00 00 F4 03 04 00 D3 78 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 39 CD 01 00 35 04 06 00 B9 00 00 51 [04:34:25]Write i2c OK [04:34:25]MH_I2C_Read... [04:34:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:34:25]Read from MH i2c: E2 [04:34:25]MH_I2C_Read... [04:34:25]Read from MH i2c: E2 03 00 [04:34:25]MH_I2C_Read... [04:34:25]Read from MH i2c: E2 03 00 59 26 00 90 00 F3 [04:34:25]RAPDU: 90 00 [04:34:25]wFMCommunicate OK [04:34:25]wFMCommunicate request_size=10 [04:34:25]MH_SAM_APDU [04:34:25]CAPDU: 80 0D 02 02 05 E5 C4 53 DD 3E [04:34:25]Write to MH i2c: E2 0D 00 5A 26 80 0D 02 02 05 00 E5 C4 53 DD 3E 00 00 1B [04:34:25]Write i2c OK [04:34:25]MH_I2C_Read... [04:34:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:34:25]Read from MH i2c: E2 [04:34:25]MH_I2C_Read... [04:34:25]Read from MH i2c: E2 03 00 [04:34:25]MH_I2C_Read... [04:34:25]Read from MH i2c: E2 03 00 5A 26 00 90 00 F4 [04:34:25]RAPDU: 90 00 [04:34:25]wFMCommunicate OK [04:34:25]wFMCommunicate request_size=4 [04:34:25]MH_SAM_APDU [04:34:25]CAPDU: 80 0D 03 02 [04:34:25]Write to MH i2c: E2 08 00 5B 26 80 0D 03 02 00 00 00 00 FC [04:34:25]Write i2c OK [04:34:25]MH_I2C_Read... [04:34:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:34:25]Read from MH i2c: E2 [04:34:25]MH_I2C_Read... [04:34:25]Read from MH i2c: E2 0B 00 [04:34:25]MH_I2C_Read... [04:34:25]Read from MH i2c: E2 0B 00 5B 26 00 6F C3 50 84 18 D6 92 1B 90 00 9E [04:34:25]RAPDU: 6F C3 50 84 18 D6 92 1B 90 00 [04:34:25]wFMCommunicate OK [04:34:25]SAM_PROTO_SignData done [04:34:25]FM_MakeSignedData done [04:34:25]CreateOFDProtocolMessage [04:34:25]wFMCommunicate request_size=4 [04:34:25]MH_SAM_APDU [04:34:25]CAPDU: 80 11 00 00 [04:34:25]Write to MH i2c: E2 08 00 5C 26 80 11 00 00 00 00 00 00 FC [04:34:25]Write i2c OK [04:34:25]MH_I2C_Read... [04:34:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:34:26]Read from MH i2c: E2 [04:34:26]MH_I2C_Read... [04:34:26]Read from MH i2c: E2 17 00 [04:34:26]MH_I2C_Read... [04:34:26]Read from MH i2c: E2 17 00 5C 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 57 [04:34:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:34:26]wFMCommunicate OK [04:34:26]CreateOFDProtocolMessage done [04:34:26]OFDSenderStorePacket 118073 [04:34:26]StoreOFDPacket docnum=118073 [04:34:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 72 9D 07 01 32 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 10 00 00 00 F4 03 04 00 D3 78 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 39 CD 01 00 35 04 06 00 B9 E5 C4 53 DD 3E 6F C3 50 84 18 D6 92 1B [04:34:26]CheckFolder [04:34:26]dirname=/storage/ofd_packets [04:34:26]CheckFolder done [04:34:26]ProducePacketName [04:34:26]name=ofd_packets/00118073 [04:34:26]NVStorageSaveData ofd_packets/00118073 [04:34:26]File name is /storage/ofd_packets/00118073 [04:34:26]Write 301 bytes [04:34:26]NVStorageSaveData done [04:34:26]OFDSenderStorePacket done [04:34:26]KKMCreateOFDPacket done [04:34:26]NVStorageSaveData kkm_last_timestamp [04:34:26]File name is /storage/kkm_last_timestamp [04:34:26]Write 4 bytes [04:34:26]NVStorageSaveData done [04:34:26]ExternCall_PrintAddStr [04:34:26]wPrintStart [04:34:26]Write to MH i2c: 01 00 00 5D 26 83 [04:34:26]Write i2c OK [04:34:26]MH_I2C_Read... [04:34:26]Read from MH i2c: 01 [04:34:26]MH_I2C_Read... [04:34:26]Read from MH i2c: 01 07 00 [04:34:26]MH_I2C_Read... [04:34:26]Read from MH i2c: 01 07 00 5D 26 00 00 00 00 00 FF 0F 98 [04:34:26]RasterBufferAndPrint [04:34:26]line Счет N : (1)948943 [04:34:26]line ИНН: 02508201610067 [04:34:26]line Контрольно-Кассовый Чек [04:34:26]line ПРОДАЖА [04:34:26]line ТРК (МРК, ГНК) : 31 [04:34:26]line Товар: 2710124130 [04:34:26]line Аи-92-К-4 [04:34:26]line 7.380 * 67.80 [04:34:26]line = 500.36 [04:34:26]line НДС 12% НСП 1% [04:34:26]line > о реализуемом товаре [04:34:26]line ОКРУГЛЕНИЕ: -0.36 [04:34:26]line ИТОГО: 500.00 [04:34:26]line Внесено: 500.00 [04:34:26]line СДАЧА: 0.00 [04:34:26]line НСП 1% : 4.43 [04:34:26]line НДС 12% : 53.14 [04:34:26]line Наличными: 500.00 [04:34:26]line Безнал.: 0.00 [04:34:26]line Место: АЗС № 134 "Партнер Нефть" [04:34:26]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [04:34:26]line СНО: Общий режим [04:34:26]line Чек 16 27.07.2024 04:34 [04:34:26]line Смена: 432 ФФД: 1.0 [04:34:26]line ЗНМ: 0300000044 [04:34:26]line РНМ: 0000000000092660 [04:34:26]line Версия ККМ: 001 [04:34:26]line ФМ: 0000000000874939 [04:34:26]line ФД: 118073 [04:34:26]line ФПД: 204396492479806 [04:34:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T043427&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118073&fm=204396492479806&tin=02508201610067®Number=0000000000092660&sum=50000 [04:34:26]OFD Sender: Processing packet 118073 [packets to send 85, broken 84] [04:34:26]ProducePacketName [04:34:26]name=ofd_packets/00118073 [04:34:26]OFD Sender: To server: pG, [04:34:26]CommunicateWithHost lk.salyk.kg:30040 [04:34:26]ConnectInit lk.salyk.kg [04:34:26]written 0, free lines is 4095 [04:34:26]Connected sock=10 [04:34:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 72 9D 07 01 32 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 10 00 00 00 F4 03 04 00 D3 78 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 39 CD 01 00 35 04 06 00 B9 E5 C4 53 DD 3E 6F C3 50 84 18 D6 92 1B [04:34:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 0C BF 47 00 84 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 39 CD 01 00 F4 03 04 00 67 26 A4 66 B6 04 01 00 00 1A 0B 16 C4 48 1E 29 9C [04:34:26]CommunicateWithHost err = 0 [04:34:26]CheckOFDResponse [04:34:26]1017 (14) - 77093643461234 [04:34:26]1041 (16) - 0000000000874939 [04:34:26]1040 (4) - 118073 [04:34:26]1012 (4) - 26.07.2024 22:42 [04:34:26]1206 (1) - 0 [04:34:26]OFD Sender: Remove packet 118073 [04:34:26]ProducePacketName [04:34:26]name=ofd_packets/00118073 [04:34:26]NVStorageDeleteData [04:34:26]Write to MH i2c: 01 00 00 87 26 AD [04:34:26]Write i2c OK [04:34:26]MH_I2C_Read... [04:34:26]Read from MH i2c: 01 [04:34:26]MH_I2C_Read... [04:34:26]Read from MH i2c: 01 07 00 [04:34:26]MH_I2C_Read... [04:34:26]Read from MH i2c: 01 07 00 87 26 00 00 00 00 00 D8 0C 98 [04:34:26]RasterBufferAndPrint [04:34:26]line [04:34:26]line [04:34:26]line [04:34:26]line [04:34:26]line [04:34:26]written 0, free lines is 3295 [04:34:26]MH_Cut [04:34:26]Write to MH i2c: D1 01 00 8E 26 01 86 [04:34:26]Write i2c OK [04:34:26]MH_I2C_Read... [04:34:26]Read from MH i2c: D1 [04:34:26]MH_I2C_Read... [04:34:26]Read from MH i2c: D1 01 00 [04:34:26]MH_I2C_Read... [04:34:26]Read from MH i2c: D1 01 00 8E 26 00 85 [04:34:26]Write to MH i2c: 01 00 00 8F 26 B5 [04:34:26]Write i2c OK [04:34:26]MH_I2C_Read... [04:34:27]OFD Sender: No OFD packet to send [04:34:27]*** Cut start [04:34:27]*** Partial cut [04:34:27]*** CUTSNS_PIN = 1 [04:34:27]*** CUTSNS_PIN = 0 [04:34:27]*** Brake cut motor [04:34:28]Read from MH i2c: 01 [04:34:28]MH_I2C_Read... [04:34:28]*** Stop cut motor [04:34:28]*** Cut end [04:34:28]Read from MH i2c: 01 07 00 [04:34:28]MH_I2C_Read... [04:34:28]Read from MH i2c: 01 07 00 8F 26 00 00 00 00 00 FF 0F CA [04:34:28]process_action close_receipt done [04:34:28]requested_data is exist [04:34:28]produce_requested_data [04:34:28]requested_item fm.sn is exist - process it [04:34:28]wFMCommunicate request_size=4 [04:34:28]MH_SAM_APDU [04:34:28]CAPDU: 80 11 00 00 [04:34:28]Write to MH i2c: E2 08 00 90 26 80 11 00 00 00 00 00 00 30 [04:34:28]Write i2c OK [04:34:28]MH_I2C_Read... [04:34:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:34:28]Read from MH i2c: E2 [04:34:28]MH_I2C_Read... [04:34:28]Read from MH i2c: E2 17 00 [04:34:28]MH_I2C_Read... [04:34:28]Read from MH i2c: E2 17 00 90 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8B [04:34:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:34:28]wFMCommunicate OK [04:34:28]requested_item fd.num is exist - process it [04:34:28]SAM_PROTO_GetFieldsCounters [04:34:28]wFMCommunicate request_size=4 [04:34:28]MH_SAM_APDU [04:34:28]CAPDU: 80 13 00 00 [04:34:28]Write to MH i2c: E2 08 00 91 26 80 13 00 00 00 00 00 00 33 [04:34:28]Write i2c OK [04:34:28]MH_I2C_Read... [04:34:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:34:28]Read from MH i2c: E2 [04:34:28]MH_I2C_Read... [04:34:28]Read from MH i2c: E2 62 00 [04:34:28]MH_I2C_Read... [04:34:28]Read from MH i2c: E2 62 00 91 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 39 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [04:34:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 39 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:34:28]wFMCommunicate OK [04:34:28]SAM_PROTO_GetFieldsCounters done [04:34:28]requested_item shift.num is exist - process it [04:34:28]requested_item shift.opened is exist - process it [04:34:28]req_shift_opened [04:34:28]FM_GetShiftState [04:34:28]SAM_PROTO_GetShiftState [04:34:28]wFMCommunicate request_size=4 [04:34:28]MH_SAM_APDU [04:34:28]CAPDU: 80 13 01 00 [04:34:28]Write to MH i2c: E2 08 00 92 26 80 13 01 00 00 00 00 00 35 [04:34:28]Write i2c OK [04:34:28]MH_I2C_Read... [04:34:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:34:28]Read from MH i2c: E2 [04:34:28]MH_I2C_Read... [04:34:28]Read from MH i2c: E2 0E 00 [04:34:28]MH_I2C_Read... [04:34:28]Read from MH i2c: E2 0E 00 92 26 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 C2 [04:34:28]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [04:34:28]wFMCommunicate OK [04:34:28]SAM_PROTO_GetShiftState done [04:34:28]FM_GetShiftState done [04:34:28]req_shift_opened done [04:34:28]requested_item shift.open_date is exist - process it [04:34:28]req_shift_open_date [04:34:28]req_shift_open_date done [04:34:28]produce_requested_data done [04:34:28]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118073,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [04:34:28]process_action_free close_receipt [04:34:28]json_value_free [04:34:28]json_value_free done [04:34:28]process_json_proto returns [04:34:28]Send response to host [04:34:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118073,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [04:34:28]free response buf [04:34:28]execute_script done [04:34:28]execute_script returns [04:34:28]free content buf [04:34:28]Sock 7.Close socket [04:34:28]Sock 7.Thread stoped [04:34:32]OFD Sender: No OFD packet to send [04:34:37]OFD Sender: No OFD packet to send [04:34:42]OFD Sender: No OFD packet to send [04:34:47]OFD Sender: No OFD packet to send [04:34:52]OFD Sender: No OFD packet to send [04:34:57]OFD Sender: No OFD packet to send [04:35:02]OFD Sender: No OFD packet to send [04:35:07]OFD Sender: No OFD packet to send [04:35:12]OFD Sender: No OFD packet to send [04:35:17]OFD Sender: No OFD packet to send [04:35:22]OFD Sender: No OFD packet to send [04:35:27]OFD Sender: No OFD packet to send [04:35:32]OFD Sender: No OFD packet to send [04:35:37]OFD Sender: No OFD packet to send [04:35:42]OFD Sender: No OFD packet to send [04:35:47]OFD Sender: No OFD packet to send [04:35:52]OFD Sender: No OFD packet to send [04:35:57]OFD Sender: No OFD packet to send [04:36:02]OFD Sender: No OFD packet to send [04:36:07]OFD Sender: No OFD packet to send [04:36:12]OFD Sender: No OFD packet to send [04:36:17]OFD Sender: No OFD packet to send [04:36:22]OFD Sender: No OFD packet to send [04:36:27]OFD Sender: No OFD packet to send [04:36:32]OFD Sender: No OFD packet to send [04:36:37]OFD Sender: No OFD packet to send [04:36:42]OFD Sender: No OFD packet to send [04:36:47]OFD Sender: No OFD packet to send [04:36:52]OFD Sender: No OFD packet to send [04:36:57]OFD Sender: No OFD packet to send [04:37:02]OFD Sender: No OFD packet to send [04:37:07]OFD Sender: No OFD packet to send [04:37:12]OFD Sender: No OFD packet to send [04:37:17]OFD Sender: No OFD packet to send [04:37:22]OFD Sender: No OFD packet to send [04:37:27]OFD Sender: No OFD packet to send [04:37:32]OFD Sender: No OFD packet to send [04:37:37]OFD Sender: No OFD packet to send [04:37:42]OFD Sender: No OFD packet to send [04:37:47]OFD Sender: No OFD packet to send [04:37:52]OFD Sender: No OFD packet to send [04:37:57]OFD Sender: No OFD packet to send [04:38:02]OFD Sender: No OFD packet to send [04:38:07]OFD Sender: No OFD packet to send [04:38:09]accept exits with 9 [04:38:09]New connection [04:38:09]New thread 3067428196 created [04:38:09]Thread 3067284836 joined [04:38:09]Waiting for new connection... [04:38:09] Sock 9.Parse request [04:38:09]Sock 9.Check first char [04:38:09]Sock 9.First char is OK [04:38:09]request: POST /json_proto HTTP/1.0 [04:38:09]Method: POST [04:38:09]URL: /json_proto [04:38:09]Method is POST - this is cgi request [04:38:09]url: /json_proto [04:38:09]query_string will be loaded in cgi processing [04:38:09]execute_cgi json_proto POST (null) [04:38:09]execute_cgi path=json_proto method=POST [04:38:09]POST find Content-Length [04:38:09]Host: 172.17.45.7:8080 [04:38:09]Content-Length: 674 [04:38:09]Content-Type: application/json [04:38:09] [04:38:09]POST finish read [04:38:09]Found Content-Length = 674 [04:38:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:38:09]execute_script... [04:38: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)948944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:38:09]POST & json_proto [04:38:09]process_json_proto [04:38:09]json parsed OK: [04:38:09]protocol is kg_v1.0 [04:38:09]action value=close_receipt [04:38:09]process_action close_receipt [04:38:09]cmd_close_receipt [04:38:09]MH_GetDate [04:38:09]Write to MH i2c: F0 00 00 93 26 A8 [04:38:09]Write i2c OK [04:38:09]MH_I2C_Read... [04:38:09]Read from MH i2c: F0 [04:38:09]MH_I2C_Read... [04:38:09]Read from MH i2c: F0 09 00 [04:38:09]MH_I2C_Read... [04:38:09]Read from MH i2c: F0 09 00 93 26 00 B4 79 A4 66 90 0F 3E 66 2B [04:38:09]GetLastDocTimeStamp 1722054867 [04:38:09]current date 1722055092 [04:38:09]FM_GetShiftState [04:38:09]SAM_PROTO_GetShiftState [04:38:09]wFMCommunicate request_size=4 [04:38:09]MH_SAM_APDU [04:38:09]CAPDU: 80 13 01 00 [04:38:09]Write to MH i2c: E2 08 00 94 26 80 13 01 00 00 00 00 00 37 [04:38:09]Write i2c OK [04:38:09]MH_I2C_Read... [04:38:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:38:09]Read from MH i2c: E2 [04:38:09]MH_I2C_Read... [04:38:09]Read from MH i2c: E2 0E 00 [04:38:09]MH_I2C_Read... [04:38:09]Read from MH i2c: E2 0E 00 94 26 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 C4 [04:38:09]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [04:38:09]wFMCommunicate OK [04:38:09]SAM_PROTO_GetShiftState done [04:38:09]FM_GetShiftState done [04:38:09]opened in 1722038845 [04:38:09]opened+sec_in_day 1722125245 [04:38:09]quantity*price = 50063 [04:38:09]sum+1 = 50064 [04:38:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 17 27.07.2024 04:38 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118074 ФПД: 32370739037435 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T043812&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118074&fm=32370739037435&tin=02508201610067®Number=0000000000092660&sum=50000 [04:38:10]StoreToDocumentArchive [04:38:10]shift 432 fd 118074 [04:38:10]save to /storage/0432/doc_00118074 [04:38:10]save last doc name /storage/0432/doc_00118074 to /storage/kkm_last_doc_name [04:38:10]save OK [04:38:10]Clear old archive folders... [04:38:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:38:10]tlvbuf is B6FC9880 [04:38:10]SAM_PROTO_ClearQueue [04:38:10]wFMCommunicate request_size=4 [04:38:10]MH_SAM_APDU [04:38:10]CAPDU: 80 09 00 00 [04:38:10]Write to MH i2c: E2 08 00 A1 26 80 09 00 00 00 00 00 00 39 [04:38:10]Write i2c OK [04:38:10]MH_I2C_Read... [04:38:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:38:10]Read from MH i2c: E2 [04:38:10]MH_I2C_Read... [04:38:10]Read from MH i2c: E2 03 00 [04:38:10]MH_I2C_Read... [04:38:10]Read from MH i2c: E2 03 00 A1 26 00 90 00 3B [04:38:10]RAPDU: 90 00 [04:38:10]wFMCommunicate OK [04:38:10]SAM_PROTO_ClearQueue done [04:38:10]KKMCreateOFDPacket [04:38:10]OFDProtocolAddRootSTLVToBuf [04:38:10]FM_MakeSignedData [04:38:10]FM_MakeSignedData [04:38:10]SAM_PROTO_SignData [04:38:10]wFMCommunicate request_size=4 [04:38:10]MH_SAM_APDU [04:38:10]CAPDU: 80 0D 01 02 [04:38:10]Write to MH i2c: E2 08 00 A2 26 80 0D 01 02 00 00 00 00 41 [04:38:10]Write i2c OK [04:38:10]MH_I2C_Read... [04:38:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:38:10]Read from MH i2c: E2 [04:38:10]MH_I2C_Read... [04:38:10]Read from MH i2c: E2 03 00 [04:38:10]MH_I2C_Read... [04:38:10]Read from MH i2c: E2 03 00 A2 26 00 90 00 3C [04:38:10]RAPDU: 90 00 [04:38:10]wFMCommunicate OK [04:38:10]wFMCommunicate request_size=255 [04:38:10]MH_SAM_APDU [04:38: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 B4 79 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3A CD 01 00 35 04 06 00 1D 70 E6 66 [04:38:10]Write to MH i2c: E2 02 01 A3 26 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 B4 79 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3A CD 01 00 35 04 06 00 1D 70 E6 66 00 00 33 [04:38:10]Write i2c OK [04:38:10]MH_I2C_Read... [04:38:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:38:11]Read from MH i2c: E2 [04:38:11]MH_I2C_Read... [04:38:11]Read from MH i2c: E2 03 00 [04:38:11]MH_I2C_Read... [04:38:11]Read from MH i2c: E2 03 00 A3 26 00 90 00 3D [04:38:11]RAPDU: 90 00 [04:38:11]wFMCommunicate OK [04:38:11]wFMCommunicate request_size=7 [04:38:11]MH_SAM_APDU [04:38:11]CAPDU: 80 0D 02 02 02 C4 FB [04:38:11]Write to MH i2c: E2 0A 00 A4 26 80 0D 02 02 02 00 C4 FB 00 00 07 [04:38:11]Write i2c OK [04:38:11]MH_I2C_Read... [04:38:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:38:11]Read from MH i2c: E2 [04:38:11]MH_I2C_Read... [04:38:11]Read from MH i2c: E2 03 00 [04:38:11]MH_I2C_Read... [04:38:11]Read from MH i2c: E2 03 00 A4 26 00 90 00 3E [04:38:11]RAPDU: 90 00 [04:38:11]wFMCommunicate OK [04:38:11]wFMCommunicate request_size=4 [04:38:11]MH_SAM_APDU [04:38:11]CAPDU: 80 0D 03 02 [04:38:11]Write to MH i2c: E2 08 00 A5 26 80 0D 03 02 00 00 00 00 46 [04:38:11]Write i2c OK [04:38:11]MH_I2C_Read... [04:38:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:38:11]Read from MH i2c: E2 [04:38:11]MH_I2C_Read... [04:38:11]Read from MH i2c: E2 0B 00 [04:38:11]MH_I2C_Read... [04:38:11]Read from MH i2c: E2 0B 00 A5 26 00 3F 87 38 F7 14 47 39 99 90 00 69 [04:38:11]RAPDU: 3F 87 38 F7 14 47 39 99 90 00 [04:38:11]wFMCommunicate OK [04:38:11]SAM_PROTO_SignData done [04:38:11]FM_MakeSignedData done [04:38:11]CreateOFDProtocolMessage [04:38:11]wFMCommunicate request_size=4 [04:38:11]MH_SAM_APDU [04:38:11]CAPDU: 80 11 00 00 [04:38:11]Write to MH i2c: E2 08 00 A6 26 80 11 00 00 00 00 00 00 46 [04:38:11]Write i2c OK [04:38:11]MH_I2C_Read... [04:38:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:38:11]Read from MH i2c: E2 [04:38:11]MH_I2C_Read... [04:38:11]Read from MH i2c: E2 17 00 [04:38:11]MH_I2C_Read... [04:38:11]Read from MH i2c: E2 17 00 A6 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A1 [04:38:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:38:11]wFMCommunicate OK [04:38:11]CreateOFDProtocolMessage done [04:38:11]OFDSenderStorePacket 118074 [04:38:11]StoreOFDPacket docnum=118074 [04:38:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F8 F5 04 01 3C 30 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 B4 79 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3A CD 01 00 35 04 06 00 1D 70 E6 66 C4 FB 3F 87 38 F7 14 47 39 99 [04:38:11]CheckFolder [04:38:11]dirname=/storage/ofd_packets [04:38:11]CheckFolder done [04:38:11]ProducePacketName [04:38:11]name=ofd_packets/00118074 [04:38:11]NVStorageSaveData ofd_packets/00118074 [04:38:11]File name is /storage/ofd_packets/00118074 [04:38:11]Write 298 bytes [04:38:11]NVStorageSaveData done [04:38:11]OFDSenderStorePacket done [04:38:11]KKMCreateOFDPacket done [04:38:11]NVStorageSaveData kkm_last_timestamp [04:38:11]File name is /storage/kkm_last_timestamp [04:38:11]Write 4 bytes [04:38:11]NVStorageSaveData done [04:38:11]ExternCall_PrintAddStr [04:38:11]wPrintStart [04:38:11]Write to MH i2c: 01 00 00 A7 26 CD [04:38:11]Write i2c OK [04:38:11]MH_I2C_Read... [04:38:11]Read from MH i2c: 01 [04:38:11]MH_I2C_Read... [04:38:11]Read from MH i2c: 01 07 00 [04:38:11]MH_I2C_Read... [04:38:11]Read from MH i2c: 01 07 00 A7 26 00 00 00 00 00 FF 0F E2 [04:38:11]RasterBufferAndPrint [04:38:11]line Счет N : (1)948944 [04:38:11]line ИНН: 02508201610067 [04:38:11]line Контрольно-Кассовый Чек [04:38:11]line ПРОДАЖА [04:38:11]line ТРК (МРК, ГНК) : 34 [04:38:11]line Товар: 2710194800 [04:38:11]line ДТ-К-5 [04:38:11]line 6.570 * 76.20 [04:38:11]line = 500.63 [04:38:11]line НДС 12% НСП 1% [04:38:11]line > о реализуемом товаре [04:38:11]line ОКРУГЛЕНИЕ: -0.63 [04:38:11]line ИТОГО: 500.00 [04:38:11]line Внесено: 500.00 [04:38:11]line СДАЧА: 0.00 [04:38:11]line НСП 1% : 4.43 [04:38:11]line НДС 12% : 53.16 [04:38:11]line Наличными: 500.00 [04:38:11]line Безнал.: 0.00 [04:38:11]line Место: АЗС № 134 "Партнер Нефть" [04:38:11]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [04:38:11]line СНО: Общий режим [04:38:11]line Чек 17 27.07.2024 04:38 [04:38:11]line Смена: 432 ФФД: 1.0 [04:38:11]line ЗНМ: 0300000044 [04:38:11]line РНМ: 0000000000092660 [04:38:11]line Версия ККМ: 001 [04:38:11]line ФМ: 0000000000874939 [04:38:11]line ФД: 118074 [04:38:11]line ФПД: 32370739037435 [04:38:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T043812&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118074&fm=32370739037435&tin=02508201610067®Number=0000000000092660&sum=50000 [04:38:11]OFD Sender: Processing packet 118074 [packets to send 85, broken 84] [04:38:11]ProducePacketName [04:38:11]name=ofd_packets/00118074 [04:38:11]OFD Sender: To server: pG, [04:38:11]CommunicateWithHost lk.salyk.kg:30040 [04:38:11]ConnectInit lk.salyk.kg [04:38:11]written 0, free lines is 4095 [04:38:11]Connected sock=10 [04:38:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F8 F5 04 01 3C 30 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 B4 79 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3A CD 01 00 35 04 06 00 1D 70 E6 66 C4 FB 3F 87 38 F7 14 47 39 99 [04:38:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 97 28 47 00 5F 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3A CD 01 00 F4 03 04 00 48 27 A4 66 B6 04 01 00 00 52 E2 AF 79 E2 1C 14 DC [04:38:11]CommunicateWithHost err = 0 [04:38:11]CheckOFDResponse [04:38:11]1017 (14) - 77093643461234 [04:38:11]1041 (16) - 0000000000874939 [04:38:11]1040 (4) - 118074 [04:38:11]1012 (4) - 26.07.2024 22:46 [04:38:11]1206 (1) - 0 [04:38:11]OFD Sender: Remove packet 118074 [04:38:11]ProducePacketName [04:38:11]name=ofd_packets/00118074 [04:38:11]NVStorageDeleteData [04:38:12]Write to MH i2c: 01 00 00 D1 26 F7 [04:38:12]Write i2c OK [04:38:12]MH_I2C_Read... [04:38:12]Read from MH i2c: 01 [04:38:12]MH_I2C_Read... [04:38:12]Read from MH i2c: 01 07 00 [04:38:12]MH_I2C_Read... [04:38:12]Read from MH i2c: 01 07 00 D1 26 00 00 00 00 00 CF 0C D9 [04:38:12]RasterBufferAndPrint [04:38:12]line [04:38:12]line [04:38:12]line [04:38:12]line [04:38:12]line [04:38:12]written 0, free lines is 3286 [04:38:12]MH_Cut [04:38:12]Write to MH i2c: D1 01 00 D8 26 01 D0 [04:38:12]Write i2c OK [04:38:12]MH_I2C_Read... [04:38:12]Read from MH i2c: D1 [04:38:12]MH_I2C_Read... [04:38:12]Read from MH i2c: D1 01 00 [04:38:12]MH_I2C_Read... [04:38:12]Read from MH i2c: D1 01 00 D8 26 00 CF [04:38:12]Write to MH i2c: 01 00 00 D9 26 FF [04:38:12]Write i2c OK [04:38:12]MH_I2C_Read... [04:38:12]OFD Sender: No OFD packet to send [04:38:12]*** Cut start [04:38:12]*** Partial cut [04:38:12]*** CUTSNS_PIN = 1 [04:38:12]*** CUTSNS_PIN = 0 [04:38:13]*** Brake cut motor [04:38:13]Read from MH i2c: 01 [04:38:13]MH_I2C_Read... [04:38:13]*** Stop cut motor [04:38:13]*** Cut end [04:38:13]Read from MH i2c: 01 07 00 [04:38:13]MH_I2C_Read... [04:38:13]Read from MH i2c: 01 07 00 D9 26 00 00 00 00 00 FF 0F 14 [04:38:13]process_action close_receipt done [04:38:13]requested_data is exist [04:38:13]produce_requested_data [04:38:13]requested_item fm.sn is exist - process it [04:38:13]wFMCommunicate request_size=4 [04:38:13]MH_SAM_APDU [04:38:13]CAPDU: 80 11 00 00 [04:38:13]Write to MH i2c: E2 08 00 DA 26 80 11 00 00 00 00 00 00 7A [04:38:13]Write i2c OK [04:38:13]MH_I2C_Read... [04:38:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:38:13]Read from MH i2c: E2 [04:38:13]MH_I2C_Read... [04:38:13]Read from MH i2c: E2 17 00 [04:38:13]MH_I2C_Read... [04:38:13]Read from MH i2c: E2 17 00 DA 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D5 [04:38:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:38:13]wFMCommunicate OK [04:38:13]requested_item fd.num is exist - process it [04:38:13]SAM_PROTO_GetFieldsCounters [04:38:13]wFMCommunicate request_size=4 [04:38:13]MH_SAM_APDU [04:38:13]CAPDU: 80 13 00 00 [04:38:13]Write to MH i2c: E2 08 00 DB 26 80 13 00 00 00 00 00 00 7D [04:38:13]Write i2c OK [04:38:13]MH_I2C_Read... [04:38:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:38:13]Read from MH i2c: E2 [04:38:13]MH_I2C_Read... [04:38:13]Read from MH i2c: E2 62 00 [04:38:13]MH_I2C_Read... [04:38:13]Read from MH i2c: E2 62 00 DB 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3A CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [04:38:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3A CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:38:13]wFMCommunicate OK [04:38:13]SAM_PROTO_GetFieldsCounters done [04:38:13]requested_item shift.num is exist - process it [04:38:13]requested_item shift.opened is exist - process it [04:38:13]req_shift_opened [04:38:13]FM_GetShiftState [04:38:13]SAM_PROTO_GetShiftState [04:38:13]wFMCommunicate request_size=4 [04:38:13]MH_SAM_APDU [04:38:13]CAPDU: 80 13 01 00 [04:38:13]Write to MH i2c: E2 08 00 DC 26 80 13 01 00 00 00 00 00 7F [04:38:13]Write i2c OK [04:38:13]MH_I2C_Read... [04:38:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:38:13]Read from MH i2c: E2 [04:38:13]MH_I2C_Read... [04:38:13]Read from MH i2c: E2 0E 00 [04:38:13]MH_I2C_Read... [04:38:13]Read from MH i2c: E2 0E 00 DC 26 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 0C [04:38:13]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [04:38:13]wFMCommunicate OK [04:38:13]SAM_PROTO_GetShiftState done [04:38:13]FM_GetShiftState done [04:38:13]req_shift_opened done [04:38:13]requested_item shift.open_date is exist - process it [04:38:13]req_shift_open_date [04:38:13]req_shift_open_date done [04:38:13]produce_requested_data done [04:38:13]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118074,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [04:38:13]process_action_free close_receipt [04:38:13]json_value_free [04:38:13]json_value_free done [04:38:13]process_json_proto returns [04:38:13]Send response to host [04:38:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118074,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [04:38:13]free response buf [04:38:13]execute_script done [04:38:13]execute_script returns [04:38:13]free content buf [04:38:13]Sock 9.Close socket [04:38:13]Sock 9.Thread stoped [04:38:17]OFD Sender: No OFD packet to send [04:38:22]OFD Sender: No OFD packet to send [04:38:27]OFD Sender: No OFD packet to send [04:38:32]OFD Sender: No OFD packet to send [04:38:37]OFD Sender: No OFD packet to send [04:38:42]OFD Sender: No OFD packet to send [04:38:47]OFD Sender: No OFD packet to send [04:38:52]OFD Sender: No OFD packet to send [04:38:57]OFD Sender: No OFD packet to send [04:39:02]OFD Sender: No OFD packet to send [04:39:07]OFD Sender: No OFD packet to send [04:39:12]OFD Sender: No OFD packet to send [04:39:17]OFD Sender: No OFD packet to send [04:39:22]OFD Sender: No OFD packet to send [04:39:27]OFD Sender: No OFD packet to send [04:39:32]OFD Sender: No OFD packet to send [04:39:37]OFD Sender: No OFD packet to send [04:39:42]OFD Sender: No OFD packet to send [04:39:47]OFD Sender: No OFD packet to send [04:39:52]OFD Sender: No OFD packet to send [04:39:57]OFD Sender: No OFD packet to send [04:40:02]OFD Sender: No OFD packet to send [04:40:07]OFD Sender: No OFD packet to send [04:40:12]OFD Sender: No OFD packet to send [04:40:17]OFD Sender: No OFD packet to send [04:40:22]OFD Sender: No OFD packet to send [04:40:27]OFD Sender: No OFD packet to send [04:40:32]OFD Sender: No OFD packet to send [04:40:37]OFD Sender: No OFD packet to send [04:40:42]OFD Sender: No OFD packet to send [04:40:47]OFD Sender: No OFD packet to send [04:40:52]OFD Sender: No OFD packet to send [04:40:57]OFD Sender: No OFD packet to send [04:41:02]OFD Sender: No OFD packet to send [04:41:07]OFD Sender: No OFD packet to send [04:41:12]OFD Sender: No OFD packet to send [04:41:17]OFD Sender: No OFD packet to send [04:41:22]OFD Sender: No OFD packet to send [04:41:27]OFD Sender: No OFD packet to send [04:41:32]OFD Sender: No OFD packet to send [04:41:37]OFD Sender: No OFD packet to send [04:41:42]OFD Sender: No OFD packet to send [04:41:47]OFD Sender: No OFD packet to send [04:41:52]OFD Sender: No OFD packet to send [04:41:57]OFD Sender: No OFD packet to send [04:42:02]OFD Sender: No OFD packet to send [04:42:07]OFD Sender: No OFD packet to send [04:42:12]OFD Sender: No OFD packet to send [04:42:17]OFD Sender: No OFD packet to send [04:42:22]OFD Sender: No OFD packet to send [04:42:27]OFD Sender: No OFD packet to send [04:42:32]OFD Sender: No OFD packet to send [04:42:37]OFD Sender: No OFD packet to send [04:42:42]OFD Sender: No OFD packet to send [04:42:47]OFD Sender: No OFD packet to send [04:42:52]OFD Sender: No OFD packet to send [04:42:57]OFD Sender: No OFD packet to send [04:43:02]OFD Sender: No OFD packet to send [04:43:07]OFD Sender: No OFD packet to send [04:43:12]OFD Sender: No OFD packet to send [04:43:17]OFD Sender: No OFD packet to send [04:43:22]OFD Sender: No OFD packet to send [04:43:27]OFD Sender: No OFD packet to send [04:43:32]OFD Sender: No OFD packet to send [04:43:37]OFD Sender: No OFD packet to send [04:43:42]OFD Sender: No OFD packet to send [04:43:47]OFD Sender: No OFD packet to send [04:43:52]OFD Sender: No OFD packet to send [04:43:57]OFD Sender: No OFD packet to send [04:44:02]OFD Sender: No OFD packet to send [04:44:07]OFD Sender: No OFD packet to send [04:44:12]OFD Sender: No OFD packet to send [04:44:17]OFD Sender: No OFD packet to send [04:44:22]OFD Sender: No OFD packet to send [04:44:27]OFD Sender: No OFD packet to send [04:44:32]OFD Sender: No OFD packet to send [04:44:37]OFD Sender: No OFD packet to send [04:44:42]OFD Sender: No OFD packet to send [04:44:47]OFD Sender: No OFD packet to send [04:44:52]OFD Sender: No OFD packet to send [04:44:57]OFD Sender: No OFD packet to send [04:45:02]OFD Sender: No OFD packet to send [04:45:07]OFD Sender: No OFD packet to send [04:45:12]OFD Sender: No OFD packet to send [04:45:17]OFD Sender: No OFD packet to send [04:45:22]OFD Sender: No OFD packet to send [04:45:27]OFD Sender: No OFD packet to send [04:45:32]OFD Sender: No OFD packet to send [04:45:37]OFD Sender: No OFD packet to send [04:45:42]OFD Sender: No OFD packet to send [04:45:47]OFD Sender: No OFD packet to send [04:45:52]OFD Sender: No OFD packet to send [04:45:57]OFD Sender: No OFD packet to send [04:46:02]OFD Sender: No OFD packet to send [04:46:07]OFD Sender: No OFD packet to send [04:46:12]OFD Sender: No OFD packet to send [04:46:17]OFD Sender: No OFD packet to send [04:46:19]accept exits with 7 [04:46:19]New connection [04:46:19]New thread 3067284836 created [04:46:19]Thread 3067428196 joined [04:46:19]Waiting for new connection... [04:46:19] Sock 7.Parse request [04:46:19]Sock 7.Check first char [04:46:19]Sock 7.First char is OK [04:46:19]request: POST /json_proto HTTP/1.0 [04:46:19]Method: POST [04:46:19]URL: /json_proto [04:46:19]Method is POST - this is cgi request [04:46:19]url: /json_proto [04:46:19]query_string will be loaded in cgi processing [04:46:19]execute_cgi json_proto POST (null) [04:46:19]execute_cgi path=json_proto method=POST [04:46:19]POST find Content-Length [04:46:19]Host: 172.17.45.7:8080 [04:46:19]Content-Length: 679 [04:46:19]Content-Type: application/json [04:46:19] [04:46:19]POST finish read [04:46:19]Found Content-Length = 679 [04:46:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "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" ] } } [04:46:19]execute_script... [04:46: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)948945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "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" ] } } [04:46:19]POST & json_proto [04:46:19]process_json_proto [04:46:19]json parsed OK: [04:46:19]protocol is kg_v1.0 [04:46:19]action value=close_receipt [04:46:19]process_action close_receipt [04:46:19]cmd_close_receipt [04:46:19]MH_GetDate [04:46:19]Write to MH i2c: F0 00 00 DD 26 F2 [04:46:19]Write i2c OK [04:46:19]MH_I2C_Read... [04:46:19]Read from MH i2c: F0 [04:46:19]MH_I2C_Read... [04:46:19]Read from MH i2c: F0 09 00 [04:46:19]MH_I2C_Read... [04:46:19]Read from MH i2c: F0 09 00 DD 26 00 9E 7B A4 66 90 0F 3E 66 61 [04:46:19]GetLastDocTimeStamp 1722055092 [04:46:19]current date 1722055582 [04:46:19]FM_GetShiftState [04:46:19]SAM_PROTO_GetShiftState [04:46:19]wFMCommunicate request_size=4 [04:46:19]MH_SAM_APDU [04:46:19]CAPDU: 80 13 01 00 [04:46:19]Write to MH i2c: E2 08 00 DE 26 80 13 01 00 00 00 00 00 81 [04:46:19]Write i2c OK [04:46:19]MH_I2C_Read... [04:46:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:46:19]Read from MH i2c: E2 [04:46:19]MH_I2C_Read... [04:46:19]Read from MH i2c: E2 0E 00 [04:46:19]MH_I2C_Read... [04:46:19]Read from MH i2c: E2 0E 00 DE 26 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 0E [04:46:19]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [04:46:19]wFMCommunicate OK [04:46:19]SAM_PROTO_GetShiftState done [04:46:19]FM_GetShiftState done [04:46:19]opened in 1722038845 [04:46:19]opened+sec_in_day 1722125245 [04:46:19]quantity*price = 120015 [04:46:19]sum+1 = 120016 [04:46:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 18 27.07.2024 04:46 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118075 ФПД: 247958289190257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T044622&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118075&fm=247958289190257&tin=02508201610067®Number=0000000000092660&sum=120000 [04:46:20]StoreToDocumentArchive [04:46:20]shift 432 fd 118075 [04:46:20]save to /storage/0432/doc_00118075 [04:46:20]save last doc name /storage/0432/doc_00118075 to /storage/kkm_last_doc_name [04:46:20]save OK [04:46:20]Clear old archive folders... [04:46:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:46:20]tlvbuf is 006CDF70 [04:46:20]SAM_PROTO_ClearQueue [04:46:20]wFMCommunicate request_size=4 [04:46:20]MH_SAM_APDU [04:46:20]CAPDU: 80 09 00 00 [04:46:20]Write to MH i2c: E2 08 00 EB 26 80 09 00 00 00 00 00 00 83 [04:46:20]Write i2c OK [04:46:20]MH_I2C_Read... [04:46:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:46:20]Read from MH i2c: E2 [04:46:20]MH_I2C_Read... [04:46:20]Read from MH i2c: E2 03 00 [04:46:20]MH_I2C_Read... [04:46:20]Read from MH i2c: E2 03 00 EB 26 00 90 00 85 [04:46:20]RAPDU: 90 00 [04:46:20]wFMCommunicate OK [04:46:20]SAM_PROTO_ClearQueue done [04:46:20]KKMCreateOFDPacket [04:46:20]OFDProtocolAddRootSTLVToBuf [04:46:20]FM_MakeSignedData [04:46:20]FM_MakeSignedData [04:46:20]SAM_PROTO_SignData [04:46:20]wFMCommunicate request_size=4 [04:46:20]MH_SAM_APDU [04:46:20]CAPDU: 80 0D 01 02 [04:46:20]Write to MH i2c: E2 08 00 EC 26 80 0D 01 02 00 00 00 00 8B [04:46:20]Write i2c OK [04:46:20]MH_I2C_Read... [04:46:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:46:20]Read from MH i2c: E2 [04:46:20]MH_I2C_Read... [04:46:20]Read from MH i2c: E2 03 00 [04:46:20]MH_I2C_Read... [04:46:20]Read from MH i2c: E2 03 00 EC 26 00 90 00 86 [04:46:20]RAPDU: 90 00 [04:46:20]wFMCommunicate OK [04:46:20]wFMCommunicate request_size=255 [04:46:20]MH_SAM_APDU [04:46:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 9E 7B A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3B CD 01 00 35 04 06 00 E1 84 49 BF [04:46:20]Write to MH i2c: E2 02 01 ED 26 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 9E 7B A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3B CD 01 00 35 04 06 00 E1 84 49 BF 00 00 E5 [04:46:20]Write i2c OK [04:46:20]MH_I2C_Read... [04:46:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:46:21]Read from MH i2c: E2 [04:46:21]MH_I2C_Read... [04:46:21]Read from MH i2c: E2 03 00 [04:46:21]MH_I2C_Read... [04:46:21]Read from MH i2c: E2 03 00 ED 26 00 90 00 87 [04:46:21]RAPDU: 90 00 [04:46:21]wFMCommunicate OK [04:46:21]wFMCommunicate request_size=7 [04:46:21]MH_SAM_APDU [04:46:21]CAPDU: 80 0D 02 02 02 0D 71 [04:46:21]Write to MH i2c: E2 0A 00 EE 26 80 0D 02 02 02 00 0D 71 00 00 10 [04:46:21]Write i2c OK [04:46:21]MH_I2C_Read... [04:46:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:46:21]Read from MH i2c: E2 [04:46:21]MH_I2C_Read... [04:46:21]Read from MH i2c: E2 03 00 [04:46:21]MH_I2C_Read... [04:46:21]Read from MH i2c: E2 03 00 EE 26 00 90 00 88 [04:46:21]RAPDU: 90 00 [04:46:21]wFMCommunicate OK [04:46:21]wFMCommunicate request_size=4 [04:46:21]MH_SAM_APDU [04:46:21]CAPDU: 80 0D 03 02 [04:46:21]Write to MH i2c: E2 08 00 EF 26 80 0D 03 02 00 00 00 00 90 [04:46:21]Write i2c OK [04:46:21]MH_I2C_Read... [04:46:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:46:21]Read from MH i2c: E2 [04:46:21]MH_I2C_Read... [04:46:21]Read from MH i2c: E2 0B 00 [04:46:21]MH_I2C_Read... [04:46:21]Read from MH i2c: E2 0B 00 EF 26 00 C0 B3 03 5D 2A 1E 58 75 90 00 79 [04:46:21]RAPDU: C0 B3 03 5D 2A 1E 58 75 90 00 [04:46:21]wFMCommunicate OK [04:46:21]SAM_PROTO_SignData done [04:46:21]FM_MakeSignedData done [04:46:21]CreateOFDProtocolMessage [04:46:21]wFMCommunicate request_size=4 [04:46:21]MH_SAM_APDU [04:46:21]CAPDU: 80 11 00 00 [04:46:21]Write to MH i2c: E2 08 00 F0 26 80 11 00 00 00 00 00 00 90 [04:46:21]Write i2c OK [04:46:21]MH_I2C_Read... [04:46:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:46:21]Read from MH i2c: E2 [04:46:21]MH_I2C_Read... [04:46:21]Read from MH i2c: E2 17 00 [04:46:21]MH_I2C_Read... [04:46:21]Read from MH i2c: E2 17 00 F0 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EB [04:46:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:46:21]wFMCommunicate OK [04:46:21]CreateOFDProtocolMessage done [04:46:21]OFDSenderStorePacket 118075 [04:46:21]StoreOFDPacket docnum=118075 [04:46:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 AC EF 04 01 53 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 9E 7B A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3B CD 01 00 35 04 06 00 E1 84 49 BF 0D 71 C0 B3 03 5D 2A 1E 58 75 [04:46:21]CheckFolder [04:46:21]dirname=/storage/ofd_packets [04:46:21]CheckFolder done [04:46:21]ProducePacketName [04:46:21]name=ofd_packets/00118075 [04:46:21]NVStorageSaveData ofd_packets/00118075 [04:46:21]File name is /storage/ofd_packets/00118075 [04:46:21]Write 298 bytes [04:46:21]NVStorageSaveData done [04:46:21]OFDSenderStorePacket done [04:46:21]KKMCreateOFDPacket done [04:46:21]NVStorageSaveData kkm_last_timestamp [04:46:21]File name is /storage/kkm_last_timestamp [04:46:21]Write 4 bytes [04:46:21]NVStorageSaveData done [04:46:21]ExternCall_PrintAddStr [04:46:21]wPrintStart [04:46:21]Write to MH i2c: 01 00 00 F1 26 17 [04:46:21]Write i2c OK [04:46:21]MH_I2C_Read... [04:46:21]Read from MH i2c: 01 [04:46:21]MH_I2C_Read... [04:46:21]Read from MH i2c: 01 07 00 [04:46:21]MH_I2C_Read... [04:46:21]Read from MH i2c: 01 07 00 F1 26 00 00 00 00 00 FF 0F 2C [04:46:21]RasterBufferAndPrint [04:46:21]line Счет N : (1)948945 [04:46:21]line ИНН: 02508201610067 [04:46:21]line Контрольно-Кассовый Чек [04:46:21]line ПРОДАЖА [04:46:21]line ТРК (МРК, ГНК) : 21 [04:46:21]line Товар: 2710194800 [04:46:21]line ДТ-К-5 [04:46:21]line 15.750 * 76.20 [04:46:21]line = 1200.15 [04:46:21]line НДС 12% НСП 1% [04:46:21]line > о реализуемом товаре [04:46:21]line ОКРУГЛЕНИЕ: -0.15 [04:46:21]line ИТОГО: 1200.00 [04:46:21]line Внесено: 1200.00 [04:46:21]line СДАЧА: 0.00 [04:46:21]line НСП 1% : 10.62 [04:46:21]line НДС 12% : 127.45 [04:46:21]line Наличными: 1200.00 [04:46:21]line Безнал.: 0.00 [04:46:21]line Место: АЗС № 134 "Партнер Нефть" [04:46:21]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [04:46:21]line СНО: Общий режим [04:46:21]line Чек 18 27.07.2024 04:46 [04:46:21]line Смена: 432 ФФД: 1.0 [04:46:21]line ЗНМ: 0300000044 [04:46:21]line РНМ: 0000000000092660 [04:46:21]line Версия ККМ: 001 [04:46:21]line ФМ: 0000000000874939 [04:46:21]line ФД: 118075 [04:46:21]line ФПД: 247958289190257 [04:46:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T044622&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118075&fm=247958289190257&tin=02508201610067®Number=0000000000092660&sum=120000 [04:46:21]OFD Sender: Processing packet 118075 [packets to send 85, broken 84] [04:46:21]ProducePacketName [04:46:21]name=ofd_packets/00118075 [04:46:21]OFD Sender: To server: pG, [04:46:21]CommunicateWithHost lk.salyk.kg:30040 [04:46:21]ConnectInit lk.salyk.kg [04:46:21]written 0, free lines is 4095 [04:46:21]Connected sock=10 [04:46:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 AC EF 04 01 53 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 9E 7B A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3B CD 01 00 35 04 06 00 E1 84 49 BF 0D 71 C0 B3 03 5D 2A 1E 58 75 [04:46:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 76 AC 47 00 E4 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3B CD 01 00 F4 03 04 00 32 29 A4 66 B6 04 01 00 00 C9 58 73 53 1A 8C 9F 4F [04:46:22]CommunicateWithHost err = 0 [04:46:22]CheckOFDResponse [04:46:22]1017 (14) - 77093643461234 [04:46:22]1041 (16) - 0000000000874939 [04:46:22]1040 (4) - 118075 [04:46:22]1012 (4) - 26.07.2024 22:54 [04:46:22]1206 (1) - 0 [04:46:22]OFD Sender: Remove packet 118075 [04:46:22]ProducePacketName [04:46:22]name=ofd_packets/00118075 [04:46:22]NVStorageDeleteData [04:46:22]Write to MH i2c: 01 00 00 1B 27 42 [04:46:22]Write i2c OK [04:46:22]MH_I2C_Read... [04:46:22]Read from MH i2c: 01 [04:46:22]MH_I2C_Read... [04:46:22]Read from MH i2c: 01 07 00 [04:46:22]MH_I2C_Read... [04:46:22]Read from MH i2c: 01 07 00 1B 27 00 00 00 00 00 C7 0C 1C [04:46:22]RasterBufferAndPrint [04:46:22]line [04:46:22]line [04:46:22]line [04:46:22]line [04:46:22]line [04:46:22]written 0, free lines is 3277 [04:46:22]MH_Cut [04:46:22]Write to MH i2c: D1 01 00 22 27 01 1B [04:46:22]Write i2c OK [04:46:22]MH_I2C_Read... [04:46:22]Read from MH i2c: D1 [04:46:22]MH_I2C_Read... [04:46:22]Read from MH i2c: D1 01 00 [04:46:22]MH_I2C_Read... [04:46:22]Read from MH i2c: D1 01 00 22 27 00 1A [04:46:22]Write to MH i2c: 01 00 00 23 27 4A [04:46:22]Write i2c OK [04:46:22]MH_I2C_Read... [04:46:22]OFD Sender: No OFD packet to send [04:46:22]*** Cut start [04:46:22]*** Partial cut [04:46:22]*** CUTSNS_PIN = 1 [04:46:22]*** CUTSNS_PIN = 0 [04:46:23]*** Brake cut motor [04:46:23]Read from MH i2c: 01 [04:46:23]MH_I2C_Read... [04:46:23]*** Stop cut motor [04:46:23]*** Cut end [04:46:23]Read from MH i2c: 01 07 00 [04:46:23]MH_I2C_Read... [04:46:23]Read from MH i2c: 01 07 00 23 27 00 00 00 00 00 FF 0F 5F [04:46:23]process_action close_receipt done [04:46:23]requested_data is exist [04:46:23]produce_requested_data [04:46:23]requested_item fm.sn is exist - process it [04:46:23]wFMCommunicate request_size=4 [04:46:23]MH_SAM_APDU [04:46:23]CAPDU: 80 11 00 00 [04:46:23]Write to MH i2c: E2 08 00 24 27 80 11 00 00 00 00 00 00 C5 [04:46:23]Write i2c OK [04:46:23]MH_I2C_Read... [04:46:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:46:23]Read from MH i2c: E2 [04:46:23]MH_I2C_Read... [04:46:23]Read from MH i2c: E2 17 00 [04:46:23]MH_I2C_Read... [04:46:23]Read from MH i2c: E2 17 00 24 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 20 [04:46:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:46:23]wFMCommunicate OK [04:46:23]requested_item fd.num is exist - process it [04:46:23]SAM_PROTO_GetFieldsCounters [04:46:23]wFMCommunicate request_size=4 [04:46:23]MH_SAM_APDU [04:46:23]CAPDU: 80 13 00 00 [04:46:23]Write to MH i2c: E2 08 00 25 27 80 13 00 00 00 00 00 00 C8 [04:46:23]Write i2c OK [04:46:23]MH_I2C_Read... [04:46:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:46:23]Read from MH i2c: E2 [04:46:23]MH_I2C_Read... [04:46:23]Read from MH i2c: E2 62 00 [04:46:23]MH_I2C_Read... [04:46:23]Read from MH i2c: E2 62 00 25 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3B CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [04:46:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3B CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:46:23]wFMCommunicate OK [04:46:23]SAM_PROTO_GetFieldsCounters done [04:46:23]requested_item shift.num is exist - process it [04:46:23]requested_item shift.opened is exist - process it [04:46:23]req_shift_opened [04:46:23]FM_GetShiftState [04:46:23]SAM_PROTO_GetShiftState [04:46:23]wFMCommunicate request_size=4 [04:46:23]MH_SAM_APDU [04:46:23]CAPDU: 80 13 01 00 [04:46:23]Write to MH i2c: E2 08 00 26 27 80 13 01 00 00 00 00 00 CA [04:46:23]Write i2c OK [04:46:23]MH_I2C_Read... [04:46:23]Read from MH i2c: E2 [04:46:23]MH_I2C_Read... [04:46:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:46:23]Read from MH i2c: E2 0E 00 [04:46:23]MH_I2C_Read... [04:46:23]Read from MH i2c: E2 0E 00 26 27 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 57 [04:46:23]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [04:46:23]wFMCommunicate OK [04:46:23]SAM_PROTO_GetShiftState done [04:46:23]FM_GetShiftState done [04:46:23]req_shift_opened done [04:46:23]requested_item shift.open_date is exist - process it [04:46:23]req_shift_open_date [04:46:23]req_shift_open_date done [04:46:23]produce_requested_data done [04:46:23]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118075,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [04:46:23]process_action_free close_receipt [04:46:23]json_value_free [04:46:23]json_value_free done [04:46:23]process_json_proto returns [04:46:23]Send response to host [04:46:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118075,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [04:46:23]free response buf [04:46:23]execute_script done [04:46:23]execute_script returns [04:46:23]free content buf [04:46:23]Sock 7.Close socket [04:46:23]Sock 7.Thread stoped [04:46:27]OFD Sender: No OFD packet to send [04:46:32]OFD Sender: No OFD packet to send [04:46:37]OFD Sender: No OFD packet to send [04:46:42]OFD Sender: No OFD packet to send [04:46:47]OFD Sender: No OFD packet to send [04:46:52]OFD Sender: No OFD packet to send [04:46:57]OFD Sender: No OFD packet to send [04:47:02]OFD Sender: No OFD packet to send [04:47:07]OFD Sender: No OFD packet to send [04:47:12]OFD Sender: No OFD packet to send [04:47:17]OFD Sender: No OFD packet to send [04:47:22]OFD Sender: No OFD packet to send [04:47:27]OFD Sender: No OFD packet to send [04:47:32]OFD Sender: No OFD packet to send [04:47:37]OFD Sender: No OFD packet to send [04:47:42]OFD Sender: No OFD packet to send [04:47:47]OFD Sender: No OFD packet to send [04:47:52]OFD Sender: No OFD packet to send [04:47:57]OFD Sender: No OFD packet to send [04:48:02]OFD Sender: No OFD packet to send [04:48:07]OFD Sender: No OFD packet to send [04:48:12]OFD Sender: No OFD packet to send [04:48:17]OFD Sender: No OFD packet to send [04:48:22]OFD Sender: No OFD packet to send [04:48:27]OFD Sender: No OFD packet to send [04:48:32]OFD Sender: No OFD packet to send [04:48:37]OFD Sender: No OFD packet to send [04:48:42]OFD Sender: No OFD packet to send [04:48:47]OFD Sender: No OFD packet to send [04:48:52]OFD Sender: No OFD packet to send [04:48:57]OFD Sender: No OFD packet to send [04:49:02]OFD Sender: No OFD packet to send [04:49:07]OFD Sender: No OFD packet to send [04:49:12]OFD Sender: No OFD packet to send [04:49:17]OFD Sender: No OFD packet to send [04:49:22]OFD Sender: No OFD packet to send [04:49:27]OFD Sender: No OFD packet to send [04:49:32]OFD Sender: No OFD packet to send [04:49:37]OFD Sender: No OFD packet to send [04:49:42]OFD Sender: No OFD packet to send [04:49:47]OFD Sender: No OFD packet to send [04:49:52]OFD Sender: No OFD packet to send [04:49:57]OFD Sender: No OFD packet to send [04:50:02]OFD Sender: No OFD packet to send [04:50:07]OFD Sender: No OFD packet to send [04:50:12]OFD Sender: No OFD packet to send [04:50:17]OFD Sender: No OFD packet to send [04:50:22]OFD Sender: No OFD packet to send [04:50:27]OFD Sender: No OFD packet to send [04:50:32]OFD Sender: No OFD packet to send [04:50:37]OFD Sender: No OFD packet to send [04:50:42]OFD Sender: No OFD packet to send [04:50:47]OFD Sender: No OFD packet to send [04:50:52]OFD Sender: No OFD packet to send [04:50:57]OFD Sender: No OFD packet to send [04:51:02]OFD Sender: No OFD packet to send [04:51:07]OFD Sender: No OFD packet to send [04:51:12]OFD Sender: No OFD packet to send [04:51:17]OFD Sender: No OFD packet to send [04:51:22]OFD Sender: No OFD packet to send [04:51:27]OFD Sender: No OFD packet to send [04:51:32]OFD Sender: No OFD packet to send [04:51:37]OFD Sender: No OFD packet to send [04:51:42]OFD Sender: No OFD packet to send [04:51:47]OFD Sender: No OFD packet to send [04:51:52]OFD Sender: No OFD packet to send [04:51:57]OFD Sender: No OFD packet to send [04:52:02]OFD Sender: No OFD packet to send [04:52:07]OFD Sender: No OFD packet to send [04:52:12]OFD Sender: No OFD packet to send [04:52:17]OFD Sender: No OFD packet to send [04:52:22]OFD Sender: No OFD packet to send [04:52:27]OFD Sender: No OFD packet to send [04:52:32]OFD Sender: No OFD packet to send [04:52:37]OFD Sender: No OFD packet to send [04:52:42]OFD Sender: No OFD packet to send [04:52:47]OFD Sender: No OFD packet to send [04:52: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:03]OFD Sender: No OFD packet to send [04:54:08]OFD Sender: No OFD packet to send [04:54:13]OFD Sender: No OFD packet to send [04:54:18]OFD Sender: No OFD packet to send [04:54:23]OFD Sender: No OFD packet to send [04:54:28]OFD Sender: No OFD packet to send [04:54:33]OFD Sender: No OFD packet to send [04:54:38]OFD Sender: No OFD packet to send [04:54:43]OFD Sender: No OFD packet to send [04:54:48]OFD Sender: No OFD packet to send [04:54:53]OFD Sender: No OFD packet to send [04:54:58]OFD Sender: No OFD packet to send [04:55:03]OFD Sender: No OFD packet to send [04:55:08]OFD Sender: No OFD packet to send [04:55:13]OFD Sender: No OFD packet to send [04:55:18]OFD Sender: No OFD packet to send [04:55:23]OFD Sender: No OFD packet to send [04:55:28]OFD Sender: No OFD packet to send [04:55:33]OFD Sender: No OFD packet to send [04:55:38]OFD Sender: No OFD packet to send [04:55:43]OFD Sender: No OFD packet to send [04:55:48]OFD Sender: No OFD packet to send [04:55:53]OFD Sender: No OFD packet to send [04:55:58]OFD Sender: No OFD packet to send [04:56:03]OFD Sender: No OFD packet to send [04:56:08]OFD Sender: No OFD packet to send [04:56:13]OFD Sender: No OFD packet to send [04:56:18]OFD Sender: No OFD packet to send [04:56:23]OFD Sender: No OFD packet to send [04:56:28]OFD Sender: No OFD packet to send [04:56:33]OFD Sender: No OFD packet to send [04:56:38]OFD Sender: No OFD packet to send [04:56:43]OFD Sender: No OFD packet to send [04:56:48]OFD Sender: No OFD packet to send [04:56:53]OFD Sender: No OFD packet to send [04:56:58]OFD Sender: No OFD packet to send [04:57:03]OFD Sender: No OFD packet to send [04:57:08]OFD Sender: No OFD packet to send [04:57:13]OFD Sender: No OFD packet to send [04:57:18]OFD Sender: No OFD packet to send [04:57:23]OFD Sender: No OFD packet to send [04:57:28]OFD Sender: No OFD packet to send [04:57:33]OFD Sender: No OFD packet to send [04:57:38]OFD Sender: No OFD packet to send [04:57:43]OFD Sender: No OFD packet to send [04:57:48]OFD Sender: No OFD packet to send [04:57:53]OFD Sender: No OFD packet to send [04:57:58]OFD Sender: No OFD packet to send [04:58:03]OFD Sender: No OFD packet to send [04:58:08]OFD Sender: No OFD packet to send [04:58:13]OFD Sender: No OFD packet to send [04:58:18]OFD Sender: No OFD packet to send [04:58:23]OFD Sender: No OFD packet to send [04:58:28]OFD Sender: No OFD packet to send [04:58:33]OFD Sender: No OFD packet to send [04:58:38]OFD Sender: No OFD packet to send [04:58:43]OFD Sender: No OFD packet to send [04:58:48]OFD Sender: No OFD packet to send [04:58:53]OFD Sender: No OFD packet to send [04:58:58]OFD Sender: No OFD packet to send [04:59:03]OFD Sender: No OFD packet to send [04:59:08]OFD Sender: No OFD packet to send [04:59:13]OFD Sender: No OFD packet to send [04:59:18]OFD Sender: No OFD packet to send [04:59:23]OFD Sender: No OFD packet to send [04:59:28]OFD Sender: No OFD packet to send [04:59:33]OFD Sender: No OFD packet to send [04:59:38]OFD Sender: No OFD packet to send [04:59:43]OFD Sender: No OFD packet to send [04:59:48]OFD Sender: No OFD packet to send [04:59:53]OFD Sender: No OFD packet to send [04:59:58]OFD Sender: No OFD packet to send [05:00:03]OFD Sender: No OFD packet to send [05:00:08]OFD Sender: No OFD packet to send [05:00:13]OFD Sender: No OFD packet to send [05:00:18]OFD Sender: No OFD packet to send [05:00:23]OFD Sender: No OFD packet to send [05:00:28]OFD Sender: No OFD packet to send [05:00:33]OFD Sender: No OFD packet to send [05:00:38]OFD Sender: No OFD packet to send [05:00:43]OFD Sender: No OFD packet to send [05:00:48]OFD Sender: No OFD packet to send [05:00:53]OFD Sender: No OFD packet to send [05:00:58]OFD Sender: No OFD packet to send [05:01:03]OFD Sender: No OFD packet to send [05:01:08]OFD Sender: No OFD packet to send [05:01:13]OFD Sender: No OFD packet to send [05:01:18]OFD Sender: No OFD packet to send [05:01:23]OFD Sender: No OFD packet to send [05:01:28]OFD Sender: No OFD packet to send [05:01:33]OFD Sender: No OFD packet to send [05:01:38]OFD Sender: No OFD packet to send [05:01:43]OFD Sender: No OFD packet to send [05:01:48]OFD Sender: No OFD packet to send [05:01:53]OFD Sender: No OFD packet to send [05:01:58]OFD Sender: No OFD packet to send [05:02:03]OFD Sender: No OFD packet to send [05:02:08]OFD Sender: No OFD packet to send [05:02:13]OFD Sender: No OFD packet to send [05:02:18]OFD Sender: No OFD packet to send [05:02:23]OFD Sender: No OFD packet to send [05:02:28]OFD Sender: No OFD packet to send [05:02:33]OFD Sender: No OFD packet to send [05:02:38]OFD Sender: No OFD packet to send [05:02:43]OFD Sender: No OFD packet to send [05:02:48]OFD Sender: No OFD packet to send [05:02:53]OFD Sender: No OFD packet to send [05:02:58]OFD Sender: No OFD packet to send [05:03:03]OFD Sender: No OFD packet to send [05:03:08]OFD Sender: No OFD packet to send [05:03:13]OFD Sender: No OFD packet to send [05:03:18]OFD Sender: No OFD packet to send [05:03:23]OFD Sender: No OFD packet to send [05:03:28]OFD Sender: No OFD packet to send [05:03:33]OFD Sender: No OFD packet to send [05:03:38]OFD Sender: No OFD packet to send [05:03:43]OFD Sender: No OFD packet to send [05:03:48]OFD Sender: No OFD packet to send [05:03:53]OFD Sender: No OFD packet to send [05:03:58]OFD Sender: No OFD packet to send [05:04:03]OFD Sender: No OFD packet to send [05:04:08]OFD Sender: No OFD packet to send [05:04:13]OFD Sender: No OFD packet to send [05:04:18]OFD Sender: No OFD packet to send [05:04:23]OFD Sender: No OFD packet to send [05:04:28]OFD Sender: No OFD packet to send [05:04:33]OFD Sender: No OFD packet to send [05:04:38]OFD Sender: No OFD packet to send [05:04:43]OFD Sender: No OFD packet to send [05:04:48]OFD Sender: No OFD packet to send [05:04:53]OFD Sender: No OFD packet to send [05:04:58]OFD Sender: No OFD packet to send [05:05:03]OFD Sender: No OFD packet to send [05:05:08]OFD Sender: No OFD packet to send [05:05:13]OFD Sender: No OFD packet to send [05:05:18]OFD Sender: No OFD packet to send [05:05:23]OFD Sender: No OFD packet to send [05:05:28]OFD Sender: No OFD packet to send [05:05:33]OFD Sender: No OFD packet to send [05:05:38]OFD Sender: No OFD packet to send [05:05:43]OFD Sender: No OFD packet to send [05:05:48]OFD Sender: No OFD packet to send [05:05:53]OFD Sender: No OFD packet to send [05:05:58]OFD Sender: No OFD packet to send [05:06:03]OFD Sender: No OFD packet to send [05:06:08]OFD Sender: No OFD packet to send [05:06:13]OFD Sender: No OFD packet to send [05:06:18]OFD Sender: No OFD packet to send [05:06:23]OFD Sender: No OFD packet to send [05:06:28]OFD Sender: No OFD packet to send [05:06:33]OFD Sender: No OFD packet to send [05:06:38]OFD Sender: No OFD packet to send [05:06:43]OFD Sender: No OFD packet to send [05:06:48]OFD Sender: No OFD packet to send [05:06:53]OFD Sender: No OFD packet to send [05:06:58]OFD Sender: No OFD packet to send [05:07:03]OFD Sender: No OFD packet to send [05:07:08]OFD Sender: No OFD packet to send [05:07:13]OFD Sender: No OFD packet to send [05:07:18]OFD Sender: No OFD packet to send [05:07:23]OFD Sender: No OFD packet to send [05:07:28]OFD Sender: No OFD packet to send [05:07:33]OFD Sender: No OFD packet to send [05:07:38]OFD Sender: No OFD packet to send [05:07:43]OFD Sender: No OFD packet to send [05:07:48]OFD Sender: No OFD packet to send [05:07:53]OFD Sender: No OFD packet to send [05:07:58]OFD Sender: No OFD packet to send [05:08:03]OFD Sender: No OFD packet to send [05:08:08]OFD Sender: No OFD packet to send [05:08:13]OFD Sender: No OFD packet to send [05:08:18]OFD Sender: No OFD packet to send [05:08:23]OFD Sender: No OFD packet to send [05:08:28]OFD Sender: No OFD packet to send [05:08:33]OFD Sender: No OFD packet to send [05:08:38]OFD Sender: No OFD packet to send [05:08:43]OFD Sender: No OFD packet to send [05:08:48]OFD Sender: No OFD packet to send [05:08: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:04]OFD Sender: No OFD packet to send [05:10:09]OFD Sender: No OFD packet to send [05:10:14]OFD Sender: No OFD packet to send [05:10:19]OFD Sender: No OFD packet to send [05:10:24]OFD Sender: No OFD packet to send [05:10:29]OFD Sender: No OFD packet to send [05:10:34]OFD Sender: No OFD packet to send [05:10:39]OFD Sender: No OFD packet to send [05:10:44]OFD Sender: No OFD packet to send [05:10:49]OFD Sender: No OFD packet to send [05:10:54]OFD Sender: No OFD packet to send [05:10:59]OFD Sender: No OFD packet to send [05:11:04]OFD Sender: No OFD packet to send [05:11:09]OFD Sender: No OFD packet to send [05:11:14]OFD Sender: No OFD packet to send [05:11:19]OFD Sender: No OFD packet to send [05:11:24]OFD Sender: No OFD packet to send [05:11:29]OFD Sender: No OFD packet to send [05:11:34]OFD Sender: No OFD packet to send [05:11:39]OFD Sender: No OFD packet to send [05:11:44]OFD Sender: No OFD packet to send [05:11:49]OFD Sender: No OFD packet to send [05:11:54]OFD Sender: No OFD packet to send [05:11:59]OFD Sender: No OFD packet to send [05:12:04]OFD Sender: No OFD packet to send [05:12:09]OFD Sender: No OFD packet to send [05:12:14]OFD Sender: No OFD packet to send [05:12:19]OFD Sender: No OFD packet to send [05:12:24]OFD Sender: No OFD packet to send [05:12:29]OFD Sender: No OFD packet to send [05:12:34]OFD Sender: No OFD packet to send [05:12:39]OFD Sender: No OFD packet to send [05:12:44]OFD Sender: No OFD packet to send [05:12:49]OFD Sender: No OFD packet to send [05:12:54]OFD Sender: No OFD packet to send [05:12:59]OFD Sender: No OFD packet to send [05:13:04]OFD Sender: No OFD packet to send [05:13:09]OFD Sender: No OFD packet to send [05:13:14]OFD Sender: No OFD packet to send [05:13:19]OFD Sender: No OFD packet to send [05:13:24]OFD Sender: No OFD packet to send [05:13:29]OFD Sender: No OFD packet to send [05:13:34]OFD Sender: No OFD packet to send [05:13:39]OFD Sender: No OFD packet to send [05:13:44]OFD Sender: No OFD packet to send [05:13:49]OFD Sender: No OFD packet to send [05:13:54]OFD Sender: No OFD packet to send [05:13:59]OFD Sender: No OFD packet to send [05:14:04]OFD Sender: No OFD packet to send [05:14:09]OFD Sender: No OFD packet to send [05:14:14]OFD Sender: No OFD packet to send [05:14:19]OFD Sender: No OFD packet to send [05:14:24]OFD Sender: No OFD packet to send [05:14:29]OFD Sender: No OFD packet to send [05:14:34]OFD Sender: No OFD packet to send [05:14:39]OFD Sender: No OFD packet to send [05:14:44]OFD Sender: No OFD packet to send [05:14:49]OFD Sender: No OFD packet to send [05:14:54]OFD Sender: No OFD packet to send [05:14:59]OFD Sender: No OFD packet to send [05:15:04]OFD Sender: No OFD packet to send [05:15:09]OFD Sender: No OFD packet to send [05:15:14]OFD Sender: No OFD packet to send [05:15:19]OFD Sender: No OFD packet to send [05:15:24]OFD Sender: No OFD packet to send [05:15:29]OFD Sender: No OFD packet to send [05:15:34]OFD Sender: No OFD packet to send [05:15:39]OFD Sender: No OFD packet to send [05:15:44]OFD Sender: No OFD packet to send [05:15:49]OFD Sender: No OFD packet to send [05:15:54]OFD Sender: No OFD packet to send [05:15:59]OFD Sender: No OFD packet to send [05:16:04]OFD Sender: No OFD packet to send [05:16:09]OFD Sender: No OFD packet to send [05:16:14]OFD Sender: No OFD packet to send [05:16:19]OFD Sender: No OFD packet to send [05:16:24]OFD Sender: No OFD packet to send [05:16:29]OFD Sender: No OFD packet to send [05:16:34]OFD Sender: No OFD packet to send [05:16:39]OFD Sender: No OFD packet to send [05:16:44]OFD Sender: No OFD packet to send [05:16:49]OFD Sender: No OFD packet to send [05:16:54]OFD Sender: No OFD packet to send [05:16:59]OFD Sender: No OFD packet to send [05:17:04]OFD Sender: No OFD packet to send [05:17:09]OFD Sender: No OFD packet to send [05:17:14]OFD Sender: No OFD packet to send [05:17:19]OFD Sender: No OFD packet to send [05:17:24]OFD Sender: No OFD packet to send [05:17:29]OFD Sender: No OFD packet to send [05:17:34]OFD Sender: No OFD packet to send [05:17:39]OFD Sender: No OFD packet to send [05:17:44]OFD Sender: No OFD packet to send [05:17:49]OFD Sender: No OFD packet to send [05:17:54]OFD Sender: No OFD packet to send [05:17:59]OFD Sender: No OFD packet to send [05:18:04]OFD Sender: No OFD packet to send [05:18:09]OFD Sender: No OFD packet to send [05:18:14]OFD Sender: No OFD packet to send [05:18:19]OFD Sender: No OFD packet to send [05:18:24]OFD Sender: No OFD packet to send [05:18:29]OFD Sender: No OFD packet to send [05:18:34]OFD Sender: No OFD packet to send [05:18:39]OFD Sender: No OFD packet to send [05:18:44]OFD Sender: No OFD packet to send [05:18:49]OFD Sender: No OFD packet to send [05:18:54]OFD Sender: No OFD packet to send [05:18:59]OFD Sender: No OFD packet to send [05:19:04]OFD Sender: No OFD packet to send [05:19:09]OFD Sender: No OFD packet to send [05:19:14]OFD Sender: No OFD packet to send [05:19:19]OFD Sender: No OFD packet to send [05:19:24]OFD Sender: No OFD packet to send [05:19:29]OFD Sender: No OFD packet to send [05:19:34]OFD Sender: No OFD packet to send [05:19:39]OFD Sender: No OFD packet to send [05:19:44]OFD Sender: No OFD packet to send [05:19:49]OFD Sender: No OFD packet to send [05:19:54]OFD Sender: No OFD packet to send [05:19:59]OFD Sender: No OFD packet to send [05:20:04]OFD Sender: No OFD packet to send [05:20:09]OFD Sender: No OFD packet to send [05:20:14]OFD Sender: No OFD packet to send [05:20:19]OFD Sender: No OFD packet to send [05:20:24]OFD Sender: No OFD packet to send [05:20:29]OFD Sender: No OFD packet to send [05:20:34]OFD Sender: No OFD packet to send [05:20:39]OFD Sender: No OFD packet to send [05:20:44]OFD Sender: No OFD packet to send [05:20:49]OFD Sender: No OFD packet to send [05:20:54]OFD Sender: No OFD packet to send [05:20:59]OFD Sender: No OFD packet to send [05:21:04]OFD Sender: No OFD packet to send [05:21:09]OFD Sender: No OFD packet to send [05:21:14]OFD Sender: No OFD packet to send [05:21:19]OFD Sender: No OFD packet to send [05:21:24]OFD Sender: No OFD packet to send [05:21:29]OFD Sender: No OFD packet to send [05:21:34]OFD Sender: No OFD packet to send [05:21:39]OFD Sender: No OFD packet to send [05:21:44]OFD Sender: No OFD packet to send [05:21:49]OFD Sender: No OFD packet to send [05:21:54]OFD Sender: No OFD packet to send [05:21:59]OFD Sender: No OFD packet to send [05:22:04]OFD Sender: No OFD packet to send [05:22:09]OFD Sender: No OFD packet to send [05:22:14]OFD Sender: No OFD packet to send [05:22:19]OFD Sender: No OFD packet to send [05:22:24]OFD Sender: No OFD packet to send [05:22:29]OFD Sender: No OFD packet to send [05:22:34]OFD Sender: No OFD packet to send [05:22:39]OFD Sender: No OFD packet to send [05:22:44]OFD Sender: No OFD packet to send [05:22:49]OFD Sender: No OFD packet to send [05:22:54]OFD Sender: No OFD packet to send [05:22:59]OFD Sender: No OFD packet to send [05:23:04]OFD Sender: No OFD packet to send [05:23:09]OFD Sender: No OFD packet to send [05:23:14]OFD Sender: No OFD packet to send [05:23:19]OFD Sender: No OFD packet to send [05:23:24]OFD Sender: No OFD packet to send [05:23:29]OFD Sender: No OFD packet to send [05:23:34]OFD Sender: No OFD packet to send [05:23:39]OFD Sender: No OFD packet to send [05:23:44]OFD Sender: No OFD packet to send [05:23:49]OFD Sender: No OFD packet to send [05:23:54]OFD Sender: No OFD packet to send [05:23:59]OFD Sender: No OFD packet to send [05:24:04]OFD Sender: No OFD packet to send [05:24:09]OFD Sender: No OFD packet to send [05:24:14]OFD Sender: No OFD packet to send [05:24:19]OFD Sender: No OFD packet to send [05:24:24]OFD Sender: No OFD packet to send [05:24:29]OFD Sender: No OFD packet to send [05:24:34]OFD Sender: No OFD packet to send [05:24:39]OFD Sender: No OFD packet to send [05:24:44]OFD Sender: No OFD packet to send [05:24:49]OFD Sender: No OFD packet to send [05:24:54]OFD Sender: No OFD packet to send [05:24:59]OFD Sender: No OFD packet to send [05:25:04]OFD Sender: No OFD packet to send [05:25:09]OFD Sender: No OFD packet to send [05:25:14]OFD Sender: No OFD packet to send [05:25:19]OFD Sender: No OFD packet to send [05:25:24]OFD Sender: No OFD packet to send [05:25:29]OFD Sender: No OFD packet to send [05:25:34]OFD Sender: No OFD packet to send [05:25:39]OFD Sender: No OFD packet to send [05:25:44]OFD Sender: No OFD packet to send [05:25:49]OFD Sender: No OFD packet to send [05:25:54]OFD Sender: No OFD packet to send [05:26:00]OFD Sender: No OFD packet to send [05:26:05]OFD Sender: No OFD packet to send [05:26:10]OFD Sender: No OFD packet to send [05:26:15]OFD Sender: No OFD packet to send [05:26:20]OFD Sender: No OFD packet to send [05:26:25]OFD Sender: No OFD packet to send [05:26:30]OFD Sender: No OFD packet to send [05:26:35]OFD Sender: No OFD packet to send [05:26:40]OFD Sender: No OFD packet to send [05:26:45]OFD Sender: No OFD packet to send [05:26:50]OFD Sender: No OFD packet to send [05:26:55]OFD Sender: No OFD packet to send [05:27:00]OFD Sender: No OFD packet to send [05:27:05]OFD Sender: No OFD packet to send [05:27:10]OFD Sender: No OFD packet to send [05:27:15]OFD Sender: No OFD packet to send [05:27:20]OFD Sender: No OFD packet to send [05:27:25]OFD Sender: No OFD packet to send [05:27:30]OFD Sender: No OFD packet to send [05:27:35]OFD Sender: No OFD packet to send [05:27:40]OFD Sender: No OFD packet to send [05:27:45]OFD Sender: No OFD packet to send [05:27:50]OFD Sender: No OFD packet to send [05:27:55]OFD Sender: No OFD packet to send [05:28:00]OFD Sender: No OFD packet to send [05:28:05]OFD Sender: No OFD packet to send [05:28:10]OFD Sender: No OFD packet to send [05:28:15]OFD Sender: No OFD packet to send [05:28:20]OFD Sender: No OFD packet to send [05:28:25]OFD Sender: No OFD packet to send [05:28:30]OFD Sender: No OFD packet to send [05:28:35]OFD Sender: No OFD packet to send [05:28:40]OFD Sender: No OFD packet to send [05:28:45]OFD Sender: No OFD packet to send [05:28:50]OFD Sender: No OFD packet to send [05:28:55]OFD Sender: No OFD packet to send [05:29:00]OFD Sender: No OFD packet to send [05:29:05]OFD Sender: No OFD packet to send [05:29:10]OFD Sender: No OFD packet to send [05:29:15]OFD Sender: No OFD packet to send [05:29:20]OFD Sender: No OFD packet to send [05:29:25]OFD Sender: No OFD packet to send [05:29:30]OFD Sender: No OFD packet to send [05:29:35]OFD Sender: No OFD packet to send [05:29:40]OFD Sender: No OFD packet to send [05:29:45]OFD Sender: No OFD packet to send [05:29:50]OFD Sender: No OFD packet to send [05:29:55]OFD Sender: No OFD packet to send [05:30:00]OFD Sender: No OFD packet to send [05:30:05]OFD Sender: No OFD packet to send [05:30:10]OFD Sender: No OFD packet to send [05:30:15]OFD Sender: No OFD packet to send [05:30:20]OFD Sender: No OFD packet to send [05:30:25]OFD Sender: No OFD packet to send [05:30:30]OFD Sender: No OFD packet to send [05:30:35]OFD Sender: No OFD packet to send [05:30:40]OFD Sender: No OFD packet to send [05:30:45]OFD Sender: No OFD packet to send [05:30:50]OFD Sender: No OFD packet to send [05:30:55]OFD Sender: No OFD packet to send [05:31:00]OFD Sender: No OFD packet to send [05:31:05]OFD Sender: No OFD packet to send [05:31:10]OFD Sender: No OFD packet to send [05:31:15]OFD Sender: No OFD packet to send [05:31:20]OFD Sender: No OFD packet to send [05:31:25]OFD Sender: No OFD packet to send [05:31:30]OFD Sender: No OFD packet to send [05:31:35]OFD Sender: No OFD packet to send [05:31:40]OFD Sender: No OFD packet to send [05:31:45]OFD Sender: No OFD packet to send [05:31:50]OFD Sender: No OFD packet to send [05:31:55]OFD Sender: No OFD packet to send [05:32:00]OFD Sender: No OFD packet to send [05:32:05]OFD Sender: No OFD packet to send [05:32:10]OFD Sender: No OFD packet to send [05:32:15]OFD Sender: No OFD packet to send [05:32:20]OFD Sender: No OFD packet to send [05:32:25]OFD Sender: No OFD packet to send [05:32:30]OFD Sender: No OFD packet to send [05:32:35]OFD Sender: No OFD packet to send [05:32:40]OFD Sender: No OFD packet to send [05:32:45]OFD Sender: No OFD packet to send [05:32:50]OFD Sender: No OFD packet to send [05:32:55]OFD Sender: No OFD packet to send [05:33:00]OFD Sender: No OFD packet to send [05:33:05]OFD Sender: No OFD packet to send [05:33:10]OFD Sender: No OFD packet to send [05:33:15]OFD Sender: No OFD packet to send [05:33:20]OFD Sender: No OFD packet to send [05:33:25]OFD Sender: No OFD packet to send [05:33:30]OFD Sender: No OFD packet to send [05:33:35]OFD Sender: No OFD packet to send [05:33:40]OFD Sender: No OFD packet to send [05:33:45]OFD Sender: No OFD packet to send [05:33:50]OFD Sender: No OFD packet to send [05:33:55]OFD Sender: No OFD packet to send [05:34:00]OFD Sender: No OFD packet to send [05:34:05]OFD Sender: No OFD packet to send [05:34:10]OFD Sender: No OFD packet to send [05:34:15]OFD Sender: No OFD packet to send [05:34:20]OFD Sender: No OFD packet to send [05:34:25]OFD Sender: No OFD packet to send [05:34:30]OFD Sender: No OFD packet to send [05:34:35]OFD Sender: No OFD packet to send [05:34:40]OFD Sender: No OFD packet to send [05:34:45]OFD Sender: No OFD packet to send [05:34:50]OFD Sender: No OFD packet to send [05:34:55]OFD Sender: No OFD packet to send [05:35:00]OFD Sender: No OFD packet to send [05:35:05]OFD Sender: No OFD packet to send [05:35:10]OFD Sender: No OFD packet to send [05:35:15]OFD Sender: No OFD packet to send [05:35:20]OFD Sender: No OFD packet to send [05:35:25]OFD Sender: No OFD packet to send [05:35:30]OFD Sender: No OFD packet to send [05:35:35]OFD Sender: No OFD packet to send [05:35:40]OFD Sender: No OFD packet to send [05:35:45]OFD Sender: No OFD packet to send [05:35:50]OFD Sender: No OFD packet to send [05:35:55]OFD Sender: No OFD packet to send [05:36:00]OFD Sender: No OFD packet to send [05:36:05]OFD Sender: No OFD packet to send [05:36:10]OFD Sender: No OFD packet to send [05:36:15]OFD Sender: No OFD packet to send [05:36:20]OFD Sender: No OFD packet to send [05:36:25]OFD Sender: No OFD packet to send [05:36:30]OFD Sender: No OFD packet to send [05:36:35]OFD Sender: No OFD packet to send [05:36:40]OFD Sender: No OFD packet to send [05:36:45]OFD Sender: No OFD packet to send [05:36:50]OFD Sender: No OFD packet to send [05:36:55]OFD Sender: No OFD packet to send [05:37:00]OFD Sender: No OFD packet to send [05:37:05]OFD Sender: No OFD packet to send [05:37:10]OFD Sender: No OFD packet to send [05:37:15]OFD Sender: No OFD packet to send [05:37:20]OFD Sender: No OFD packet to send [05:37:25]OFD Sender: No OFD packet to send [05:37:30]OFD Sender: No OFD packet to send [05:37:35]OFD Sender: No OFD packet to send [05:37:40]OFD Sender: No OFD packet to send [05:37:45]OFD Sender: No OFD packet to send [05:37:50]OFD Sender: No OFD packet to send [05:37:55]OFD Sender: No OFD packet to send [05:38:00]OFD Sender: No OFD packet to send [05:38:05]OFD Sender: No OFD packet to send [05:38:10]OFD Sender: No OFD packet to send [05:38:15]OFD Sender: No OFD packet to send [05:38:20]OFD Sender: No OFD packet to send [05:38:25]OFD Sender: No OFD packet to send [05:38:30]OFD Sender: No OFD packet to send [05:38:35]OFD Sender: No OFD packet to send [05:38:40]OFD Sender: No OFD packet to send [05:38:45]OFD Sender: No OFD packet to send [05:38:50]OFD Sender: No OFD packet to send [05:38:55]OFD Sender: No OFD packet to send [05:39:00]OFD Sender: No OFD packet to send [05:39:05]OFD Sender: No OFD packet to send [05:39:10]OFD Sender: No OFD packet to send [05:39:15]OFD Sender: No OFD packet to send [05:39:20]OFD Sender: No OFD packet to send [05:39:25]OFD Sender: No OFD packet to send [05:39:30]OFD Sender: No OFD packet to send [05:39:35]OFD Sender: No OFD packet to send [05:39:40]OFD Sender: No OFD packet to send [05:39:45]OFD Sender: No OFD packet to send [05:39:50]OFD Sender: No OFD packet to send [05:39:55]OFD Sender: No OFD packet to send [05:40:00]OFD Sender: No OFD packet to send [05:40:05]OFD Sender: No OFD packet to send [05:40:10]OFD Sender: No OFD packet to send [05:40:15]OFD Sender: No OFD packet to send [05:40:20]OFD Sender: No OFD packet to send [05:40:25]OFD Sender: No OFD packet to send [05:40:30]OFD Sender: No OFD packet to send [05:40:35]OFD Sender: No OFD packet to send [05:40:40]OFD Sender: No OFD packet to send [05:40:45]OFD Sender: No OFD packet to send [05:40:50]OFD Sender: No OFD packet to send [05:40:55]OFD Sender: No OFD packet to send [05:41:00]OFD Sender: No OFD packet to send [05:41:05]OFD Sender: No OFD packet to send [05:41:10]OFD Sender: No OFD packet to send [05:41:15]OFD Sender: No OFD packet to send [05:41:20]OFD Sender: No OFD packet to send [05:41:25]OFD Sender: No OFD packet to send [05:41:30]OFD Sender: No OFD packet to send [05:41:35]OFD Sender: No OFD packet to send [05:41:40]OFD Sender: No OFD packet to send [05:41:45]OFD Sender: No OFD packet to send [05:41:50]OFD Sender: No OFD packet to send [05:41:55]OFD Sender: No OFD packet to send [05:42:01]OFD Sender: No OFD packet to send [05:42:06]OFD Sender: No OFD packet to send [05:42:11]OFD Sender: No OFD packet to send [05:42:16]OFD Sender: No OFD packet to send [05:42:21]OFD Sender: No OFD packet to send [05:42:26]OFD Sender: No OFD packet to send [05:42:31]OFD Sender: No OFD packet to send [05:42:36]OFD Sender: No OFD packet to send [05:42:41]OFD Sender: No OFD packet to send [05:42:46]OFD Sender: No OFD packet to send [05:42:51]OFD Sender: No OFD packet to send [05:42:56]OFD Sender: No OFD packet to send [05:43:01]OFD Sender: No OFD packet to send [05:43:06]OFD Sender: No OFD packet to send [05:43:11]OFD Sender: No OFD packet to send [05:43:16]OFD Sender: No OFD packet to send [05:43:21]OFD Sender: No OFD packet to send [05:43:26]OFD Sender: No OFD packet to send [05:43:31]OFD Sender: No OFD packet to send [05:43:36]OFD Sender: No OFD packet to send [05:43:41]OFD Sender: No OFD packet to send [05:43:46]OFD Sender: No OFD packet to send [05:43:51]OFD Sender: No OFD packet to send [05:43:56]OFD Sender: No OFD packet to send [05:44:01]OFD Sender: No OFD packet to send [05:44:06]OFD Sender: No OFD packet to send [05:44:11]OFD Sender: No OFD packet to send [05:44:16]OFD Sender: No OFD packet to send [05:44:21]OFD Sender: No OFD packet to send [05:44:26]OFD Sender: No OFD packet to send [05:44:31]OFD Sender: No OFD packet to send [05:44:36]OFD Sender: No OFD packet to send [05:44:41]OFD Sender: No OFD packet to send [05:44:46]OFD Sender: No OFD packet to send [05:44:51]OFD Sender: No OFD packet to send [05:44:56]OFD Sender: No OFD packet to send [05:45:01]OFD Sender: No OFD packet to send [05:45:06]OFD Sender: No OFD packet to send [05:45:11]OFD Sender: No OFD packet to send [05:45:16]OFD Sender: No OFD packet to send [05:45:21]OFD Sender: No OFD packet to send [05:45:26]OFD Sender: No OFD packet to send [05:45:31]OFD Sender: No OFD packet to send [05:45:36]OFD Sender: No OFD packet to send [05:45:41]OFD Sender: No OFD packet to send [05:45:46]OFD Sender: No OFD packet to send [05:45:51]OFD Sender: No OFD packet to send [05:45:56]OFD Sender: No OFD packet to send [05:46:01]OFD Sender: No OFD packet to send [05:46:06]OFD Sender: No OFD packet to send [05:46:11]OFD Sender: No OFD packet to send [05:46:16]OFD Sender: No OFD packet to send [05:46:21]OFD Sender: No OFD packet to send [05:46:26]OFD Sender: No OFD packet to send [05:46:31]OFD Sender: No OFD packet to send [05:46:36]OFD Sender: No OFD packet to send [05:46:41]OFD Sender: No OFD packet to send [05:46:46]OFD Sender: No OFD packet to send [05:46:51]OFD Sender: No OFD packet to send [05:46:56]OFD Sender: No OFD packet to send [05:47:01]OFD Sender: No OFD packet to send [05:47:06]OFD Sender: No OFD packet to send [05:47:11]OFD Sender: No OFD packet to send [05:47:16]OFD Sender: No OFD packet to send [05:47:21]OFD Sender: No OFD packet to send [05:47:26]OFD Sender: No OFD packet to send [05:47:31]OFD Sender: No OFD packet to send [05:47:36]OFD Sender: No OFD packet to send [05:47:41]OFD Sender: No OFD packet to send [05:47:46]OFD Sender: No OFD packet to send [05:47:51]OFD Sender: No OFD packet to send [05:47:56]OFD Sender: No OFD packet to send [05:48:01]OFD Sender: No OFD packet to send [05:48:06]OFD Sender: No OFD packet to send [05:48:11]OFD Sender: No OFD packet to send [05:48:16]OFD Sender: No OFD packet to send [05:48:21]OFD Sender: No OFD packet to send [05:48:26]OFD Sender: No OFD packet to send [05:48:31]OFD Sender: No OFD packet to send [05:48:36]OFD Sender: No OFD packet to send [05:48:41]OFD Sender: No OFD packet to send [05:48:46]OFD Sender: No OFD packet to send [05:48:51]OFD Sender: No OFD packet to send [05:48:56]OFD Sender: No OFD packet to send [05:49:01]OFD Sender: No OFD packet to send [05:49:06]OFD Sender: No OFD packet to send [05:49:11]OFD Sender: No OFD packet to send [05:49:16]OFD Sender: No OFD packet to send [05:49:21]OFD Sender: No OFD packet to send [05:49:26]OFD Sender: No OFD packet to send [05:49:31]OFD Sender: No OFD packet to send [05:49:36]OFD Sender: No OFD packet to send [05:49:41]OFD Sender: No OFD packet to send [05:49:46]OFD Sender: No OFD packet to send [05:49:51]OFD Sender: No OFD packet to send [05:49:56]OFD Sender: No OFD packet to send [05:50:01]OFD Sender: No OFD packet to send [05:50:06]OFD Sender: No OFD packet to send [05:50:11]OFD Sender: No OFD packet to send [05:50:16]OFD Sender: No OFD packet to send [05:50:21]OFD Sender: No OFD packet to send [05:50:26]OFD Sender: No OFD packet to send [05:50:31]OFD Sender: No OFD packet to send [05:50:36]OFD Sender: No OFD packet to send [05:50: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:57]OFD Sender: No OFD packet to send [05:58:02]OFD Sender: No OFD packet to send [05:58:07]OFD Sender: No OFD packet to send [05:58:12]OFD Sender: No OFD packet to send [05:58:17]OFD Sender: No OFD packet to send [05:58:22]OFD Sender: No OFD packet to send [05:58:27]OFD Sender: No OFD packet to send [05:58:32]OFD Sender: No OFD packet to send [05:58:37]OFD Sender: No OFD packet to send [05:58:42]OFD Sender: No OFD packet to send [05:58:47]OFD Sender: No OFD packet to send [05:58:52]OFD Sender: No OFD packet to send [05:58:57]OFD Sender: No OFD packet to send [05:59:02]OFD Sender: No OFD packet to send [05:59:07]OFD Sender: No OFD packet to send [05:59:12]OFD Sender: No OFD packet to send [05:59:17]OFD Sender: No OFD packet to send [05:59:22]OFD Sender: No OFD packet to send [05:59:27]OFD Sender: No OFD packet to send [05:59:32]OFD Sender: No OFD packet to send [05:59:37]OFD Sender: No OFD packet to send [05:59:42]OFD Sender: No OFD packet to send [05:59:47]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:07]OFD Sender: No OFD packet to send [06:02:12]OFD Sender: No OFD packet to send [06:02:17]OFD Sender: No OFD packet to send [06:02:22]OFD Sender: No OFD packet to send [06:02:27]OFD Sender: No OFD packet to send [06:02:32]OFD Sender: No OFD packet to send [06:02:37]OFD Sender: No OFD packet to send [06:02:42]OFD Sender: No OFD packet to send [06:02:47]OFD Sender: No OFD packet to send [06:02:52]OFD Sender: No OFD packet to send [06:02:57]OFD Sender: No OFD packet to send [06:03:02]OFD Sender: No OFD packet to send [06:03:07]OFD Sender: No OFD packet to send [06:03:12]OFD Sender: No OFD packet to send [06:03:17]OFD Sender: No OFD packet to send [06:03:22]OFD Sender: No OFD packet to send [06:03:27]OFD Sender: No OFD packet to send [06:03:32]OFD Sender: No OFD packet to send [06:03:37]OFD Sender: No OFD packet to send [06:03:42]OFD Sender: No OFD packet to send [06:03:47]OFD Sender: No OFD packet to send [06:03:52]OFD Sender: No OFD packet to send [06:03:57]OFD Sender: No OFD packet to send [06:04:02]OFD Sender: No OFD packet to send [06:04:07]OFD Sender: No OFD packet to send [06:04:12]OFD Sender: No OFD packet to send [06:04:17]OFD Sender: No OFD packet to send [06:04:22]OFD Sender: No OFD packet to send [06:04:27]OFD Sender: No OFD packet to send [06:04:32]OFD Sender: No OFD packet to send [06:04:37]OFD Sender: No OFD packet to send [06:04:42]OFD Sender: No OFD packet to send [06:04:47]OFD Sender: No OFD packet to send [06:04:52]OFD Sender: No OFD packet to send [06:04:57]OFD Sender: No OFD packet to send [06:05:02]OFD Sender: No OFD packet to send [06:05:07]OFD Sender: No OFD packet to send [06:05:12]OFD Sender: No OFD packet to send [06:05:17]OFD Sender: No OFD packet to send [06:05:22]OFD Sender: No OFD packet to send [06:05:27]OFD Sender: No OFD packet to send [06:05:32]OFD Sender: No OFD packet to send [06:05:37]OFD Sender: No OFD packet to send [06:05:42]OFD Sender: No OFD packet to send [06:05:47]OFD Sender: No OFD packet to send [06:05:52]OFD Sender: No OFD packet to send [06:05:57]OFD Sender: No OFD packet to send [06:06:02]OFD Sender: No OFD packet to send [06:06:07]OFD Sender: No OFD packet to send [06:06:12]OFD Sender: No OFD packet to send [06:06:17]OFD Sender: No OFD packet to send [06:06:22]OFD Sender: No OFD packet to send [06:06:27]OFD Sender: No OFD packet to send [06:06:32]OFD Sender: No OFD packet to send [06:06:37]OFD Sender: No OFD packet to send [06:06:42]OFD Sender: No OFD packet to send [06:06:47]OFD Sender: No OFD packet to send [06:06:52]OFD Sender: No OFD packet to send [06:06:57]OFD Sender: No OFD packet to send [06:07:02]OFD Sender: No OFD packet to send [06:07:07]OFD Sender: No OFD packet to send [06:07:12]OFD Sender: No OFD packet to send [06:07:17]OFD Sender: No OFD packet to send [06:07:22]OFD Sender: No OFD packet to send [06:07:27]OFD Sender: No OFD packet to send [06:07:32]OFD Sender: No OFD packet to send [06:07:37]OFD Sender: No OFD packet to send [06:07:42]OFD Sender: No OFD packet to send [06:07:47]OFD Sender: No OFD packet to send [06:07:52]OFD Sender: No OFD packet to send [06:07:57]OFD Sender: No OFD packet to send [06:08:02]OFD Sender: No OFD packet to send [06:08:07]OFD Sender: No OFD packet to send [06:08:12]OFD Sender: No OFD packet to send [06:08:17]OFD Sender: No OFD packet to send [06:08:22]OFD Sender: No OFD packet to send [06:08:27]OFD Sender: No OFD packet to send [06:08:32]OFD Sender: No OFD packet to send [06:08:37]OFD Sender: No OFD packet to send [06:08:42]OFD Sender: No OFD packet to send [06:08:47]OFD Sender: No OFD packet to send [06:08:52]OFD Sender: No OFD packet to send [06:08:57]OFD Sender: No OFD packet to send [06:09:02]OFD Sender: No OFD packet to send [06:09:07]OFD Sender: No OFD packet to send [06:09:12]OFD Sender: No OFD packet to send [06:09:17]OFD Sender: No OFD packet to send [06:09:22]OFD Sender: No OFD packet to send [06:09:27]OFD Sender: No OFD packet to send [06:09:32]OFD Sender: No OFD packet to send [06:09:37]OFD Sender: No OFD packet to send [06:09:42]OFD Sender: No OFD packet to send [06:09:47]OFD Sender: No OFD packet to send [06:09:52]OFD Sender: No OFD packet to send [06:09:57]OFD Sender: No OFD packet to send [06:10:02]OFD Sender: No OFD packet to send [06:10:07]OFD Sender: No OFD packet to send [06:10:12]OFD Sender: No OFD packet to send [06:10:17]OFD Sender: No OFD packet to send [06:10:22]OFD Sender: No OFD packet to send [06:10:27]OFD Sender: No OFD packet to send [06:10:32]OFD Sender: No OFD packet to send [06:10:37]OFD Sender: No OFD packet to send [06:10:42]OFD Sender: No OFD packet to send [06:10:47]OFD Sender: No OFD packet to send [06:10:52]OFD Sender: No OFD packet to send [06:10:57]OFD Sender: No OFD packet to send [06:11:02]OFD Sender: No OFD packet to send [06:11:07]OFD Sender: No OFD packet to send [06:11:12]OFD Sender: No OFD packet to send [06:11:17]OFD Sender: No OFD packet to send [06:11:22]OFD Sender: No OFD packet to send [06:11:27]OFD Sender: No OFD packet to send [06:11:32]OFD Sender: No OFD packet to send [06:11:37]OFD Sender: No OFD packet to send [06:11:42]OFD Sender: No OFD packet to send [06:11:47]OFD Sender: No OFD packet to send [06:11:52]OFD Sender: No OFD packet to send [06:11:57]OFD Sender: No OFD packet to send [06:12:02]OFD Sender: No OFD packet to send [06:12:07]OFD Sender: No OFD packet to send [06:12:12]OFD Sender: No OFD packet to send [06:12:17]OFD Sender: No OFD packet to send [06:12:22]OFD Sender: No OFD packet to send [06:12:27]OFD Sender: No OFD packet to send [06:12:32]OFD Sender: No OFD packet to send [06:12:37]OFD Sender: No OFD packet to send [06:12:42]OFD Sender: No OFD packet to send [06:12:47]OFD Sender: No OFD packet to send [06:12:52]OFD Sender: No OFD packet to send [06:12:57]OFD Sender: No OFD packet to send [06:13:02]OFD Sender: No OFD packet to send [06:13:07]OFD Sender: No OFD packet to send [06:13:12]OFD Sender: No OFD packet to send [06:13:17]OFD Sender: No OFD packet to send [06:13:22]OFD Sender: No OFD packet to send [06:13:27]OFD Sender: No OFD packet to send [06:13:32]OFD Sender: No OFD packet to send [06:13:37]OFD Sender: No OFD packet to send [06:13:42]OFD Sender: No OFD packet to send [06:13:47]OFD Sender: No OFD packet to send [06:13:53]OFD Sender: No OFD packet to send [06:13:58]OFD Sender: No OFD packet to send [06:14:03]OFD Sender: No OFD packet to send [06:14:08]OFD Sender: No OFD packet to send [06:14:13]OFD Sender: No OFD packet to send [06:14:18]OFD Sender: No OFD packet to send [06:14:23]OFD Sender: No OFD packet to send [06:14:28]OFD Sender: No OFD packet to send [06:14:33]OFD Sender: No OFD packet to send [06:14:38]OFD Sender: No OFD packet to send [06:14:43]OFD Sender: No OFD packet to send [06:14:48]OFD Sender: No OFD packet to send [06:14:53]OFD Sender: No OFD packet to send [06:14:58]OFD Sender: No OFD packet to send [06:15:03]OFD Sender: No OFD packet to send [06:15:08]OFD Sender: No OFD packet to send [06:15:13]OFD Sender: No OFD packet to send [06:15:18]OFD Sender: No OFD packet to send [06:15:23]OFD Sender: No OFD packet to send [06:15:28]OFD Sender: No OFD packet to send [06:15:33]OFD Sender: No OFD packet to send [06:15:38]OFD Sender: No OFD packet to send [06:15:43]OFD Sender: No OFD packet to send [06:15:48]OFD Sender: No OFD packet to send [06:15:53]OFD Sender: No OFD packet to send [06:15:58]OFD Sender: No OFD packet to send [06:16:03]OFD Sender: No OFD packet to send [06:16:08]OFD Sender: No OFD packet to send [06:16:13]OFD Sender: No OFD packet to send [06:16:18]OFD Sender: No OFD packet to send [06:16:23]OFD Sender: No OFD packet to send [06:16:28]OFD Sender: No OFD packet to send [06:16:33]OFD Sender: No OFD packet to send [06:16:38]OFD Sender: No OFD packet to send [06:16:43]OFD Sender: No OFD packet to send [06:16:48]OFD Sender: No OFD packet to send [06:16:53]OFD Sender: No OFD packet to send [06:16:58]OFD Sender: No OFD packet to send [06:17:03]OFD Sender: No OFD packet to send [06:17:08]OFD Sender: No OFD packet to send [06:17:13]OFD Sender: No OFD packet to send [06:17:18]OFD Sender: No OFD packet to send [06:17:20]accept exits with 9 [06:17:20]New connection [06:17:20]New thread 3067428196 created [06:17:20]Thread 3067284836 joined [06:17:20]Waiting for new connection... [06:17:20] Sock 9.Parse request [06:17:20]Sock 9.Check first char [06:17:20]Sock 9.First char is OK [06:17:20]request: POST /json_proto HTTP/1.0 [06:17:20]Method: POST [06:17:20]URL: /json_proto [06:17:20]Method is POST - this is cgi request [06:17:20]url: /json_proto [06:17:20]query_string will be loaded in cgi processing [06:17:20]execute_cgi json_proto POST (null) [06:17:20]execute_cgi path=json_proto method=POST [06:17:20]POST find Content-Length [06:17:20]Host: 172.17.45.7:8080 [06:17:20]Content-Length: 835 [06:17:20]Content-Type: application/json [06:17:20] [06:17:20]POST finish read [06:17:20]Found Content-Length = 835 [06:17:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.53, "quantity" : 53.810, "sum" : 4064.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 4064.00, "payments": [ { "type": 1, "sum" : 4064.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:17:20]execute_script... [06:17: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)948946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.53, "quantity" : 53.810, "sum" : 4064.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 4064.00, "payments": [ { "type": 1, "sum" : 4064.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:17:20]POST & json_proto [06:17:20]process_json_proto [06:17:20]json parsed OK: [06:17:20]protocol is kg_v1.0 [06:17:20]action value=close_receipt [06:17:20]process_action close_receipt [06:17:20]cmd_close_receipt [06:17:20]MH_GetDate [06:17:20]Write to MH i2c: F0 00 00 27 27 3D [06:17:20]Write i2c OK [06:17:20]MH_I2C_Read... [06:17:20]Read from MH i2c: F0 [06:17:20]MH_I2C_Read... [06:17:20]Read from MH i2c: F0 09 00 [06:17:20]MH_I2C_Read... [06:17:20]Read from MH i2c: F0 09 00 27 27 00 F3 90 A4 66 90 0F 3E 66 16 [06:17:20]GetLastDocTimeStamp 1722055582 [06:17:20]current date 1722061043 [06:17:20]FM_GetShiftState [06:17:20]SAM_PROTO_GetShiftState [06:17:20]wFMCommunicate request_size=4 [06:17:20]MH_SAM_APDU [06:17:20]CAPDU: 80 13 01 00 [06:17:20]Write to MH i2c: E2 08 00 28 27 80 13 01 00 00 00 00 00 CC [06:17:20]Write i2c OK [06:17:20]MH_I2C_Read... [06:17:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:17:20]Read from MH i2c: E2 [06:17:20]MH_I2C_Read... [06:17:20]Read from MH i2c: E2 0E 00 [06:17:20]MH_I2C_Read... [06:17:20]Read from MH i2c: E2 0E 00 28 27 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 59 [06:17:20]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [06:17:20]wFMCommunicate OK [06:17:20]SAM_PROTO_GetShiftState done [06:17:20]FM_GetShiftState done [06:17:20]opened in 1722038845 [06:17:20]opened+sec_in_day 1722125245 [06:17:20]quantity*price = 406426 [06:17:20]sum+1 = 406428 [06:17:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 4064.00 НСП 1% : 35.97 НДС 12% : 431.60 Наличными: 0.00 Безнал.: 4064.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 19 27.07.2024 06:17 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874939 ФД: 118076 ФПД: 94114667538261 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T061723&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118076&fm=94114667538261&tin=02508201610067®Number=0000000000092660&sum=406400 [06:17:21]StoreToDocumentArchive [06:17:21]shift 432 fd 118076 [06:17:21]save to /storage/0432/doc_00118076 [06:17:21]save last doc name /storage/0432/doc_00118076 to /storage/kkm_last_doc_name [06:17:21]save OK [06:17:21]Clear old archive folders... [06:17:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:17:21]tlvbuf is 006AD190 [06:17:21]SAM_PROTO_ClearQueue [06:17:21]wFMCommunicate request_size=4 [06:17:21]MH_SAM_APDU [06:17:21]CAPDU: 80 09 00 00 [06:17:21]Write to MH i2c: E2 08 00 35 27 80 09 00 00 00 00 00 00 CE [06:17:21]Write i2c OK [06:17:21]MH_I2C_Read... [06:17:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:17:21]Read from MH i2c: E2 [06:17:21]MH_I2C_Read... [06:17:21]Read from MH i2c: E2 03 00 [06:17:21]MH_I2C_Read... [06:17:21]Read from MH i2c: E2 03 00 35 27 00 90 00 D0 [06:17:21]RAPDU: 90 00 [06:17:21]wFMCommunicate OK [06:17:21]SAM_PROTO_ClearQueue done [06:17:21]KKMCreateOFDPacket [06:17:21]OFDProtocolAddRootSTLVToBuf [06:17:21]FM_MakeSignedData [06:17:21]FM_MakeSignedData [06:17:21]SAM_PROTO_SignData [06:17:21]wFMCommunicate request_size=4 [06:17:21]MH_SAM_APDU [06:17:21]CAPDU: 80 0D 01 02 [06:17:21]Write to MH i2c: E2 08 00 36 27 80 0D 01 02 00 00 00 00 D6 [06:17:21]Write i2c OK [06:17:21]MH_I2C_Read... [06:17:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:17:21]Read from MH i2c: E2 [06:17:21]MH_I2C_Read... [06:17:21]Read from MH i2c: E2 03 00 [06:17:21]MH_I2C_Read... [06:17:21]Read from MH i2c: E2 03 00 36 27 00 90 00 D1 [06:17:21]RAPDU: 90 00 [06:17:21]wFMCommunicate OK [06:17:21]wFMCommunicate request_size=255 [06:17:21]MH_SAM_APDU [06:17:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 D2 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 9B 33 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 33 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 A8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 33 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 F3 90 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3C CD 01 00 35 04 06 00 55 98 C7 53 [06:17:21]Write to MH i2c: E2 02 01 37 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 D2 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 9B 33 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 33 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 A8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 33 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 F3 90 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3C CD 01 00 35 04 06 00 55 98 C7 53 00 00 E3 [06:17:21]Write i2c OK [06:17:21]MH_I2C_Read... [06:17:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:17:21]Read from MH i2c: E2 [06:17:21]MH_I2C_Read... [06:17:21]Read from MH i2c: E2 03 00 [06:17:21]MH_I2C_Read... [06:17:21]Read from MH i2c: E2 03 00 37 27 00 90 00 D2 [06:17:21]RAPDU: 90 00 [06:17:21]wFMCommunicate OK [06:17:21]wFMCommunicate request_size=7 [06:17:21]MH_SAM_APDU [06:17:21]CAPDU: 80 0D 02 02 02 A7 55 [06:17:21]Write to MH i2c: E2 0A 00 38 27 80 0D 02 02 02 00 A7 55 00 00 D9 [06:17:21]Write i2c OK [06:17:21]MH_I2C_Read... [06:17:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:17:21]Read from MH i2c: E2 [06:17:21]MH_I2C_Read... [06:17:21]Read from MH i2c: E2 03 00 [06:17:21]MH_I2C_Read... [06:17:21]Read from MH i2c: E2 03 00 38 27 00 90 00 D3 [06:17:21]RAPDU: 90 00 [06:17:21]wFMCommunicate OK [06:17:21]wFMCommunicate request_size=4 [06:17:21]MH_SAM_APDU [06:17:21]CAPDU: 80 0D 03 02 [06:17:21]Write to MH i2c: E2 08 00 39 27 80 0D 03 02 00 00 00 00 DB [06:17:21]Write i2c OK [06:17:21]MH_I2C_Read... [06:17:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:17:22]Read from MH i2c: E2 [06:17:22]MH_I2C_Read... [06:17:22]Read from MH i2c: E2 0B 00 [06:17:22]MH_I2C_Read... [06:17:22]Read from MH i2c: E2 0B 00 39 27 00 84 FD 7F 47 F8 35 B3 AA 90 00 AD [06:17:22]RAPDU: 84 FD 7F 47 F8 35 B3 AA 90 00 [06:17:22]wFMCommunicate OK [06:17:22]SAM_PROTO_SignData done [06:17:22]FM_MakeSignedData done [06:17:22]CreateOFDProtocolMessage [06:17:22]wFMCommunicate request_size=4 [06:17:22]MH_SAM_APDU [06:17:22]CAPDU: 80 11 00 00 [06:17:22]Write to MH i2c: E2 08 00 3A 27 80 11 00 00 00 00 00 00 DB [06:17:22]Write i2c OK [06:17:22]MH_I2C_Read... [06:17:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:17:22]Read from MH i2c: E2 [06:17:22]MH_I2C_Read... [06:17:22]Read from MH i2c: E2 17 00 [06:17:22]MH_I2C_Read... [06:17:22]Read from MH i2c: E2 17 00 3A 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 36 [06:17:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:17:22]wFMCommunicate OK [06:17:22]CreateOFDProtocolMessage done [06:17:22]OFDSenderStorePacket 118076 [06:17:22]StoreOFDPacket docnum=118076 [06:17:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C9 BC 04 01 DC BF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 D2 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 9B 33 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 33 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 A8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 33 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 F3 90 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3C CD 01 00 35 04 06 00 55 98 C7 53 A7 55 84 FD 7F 47 F8 35 B3 AA [06:17:22]CheckFolder [06:17:22]dirname=/storage/ofd_packets [06:17:22]CheckFolder done [06:17:22]ProducePacketName [06:17:22]name=ofd_packets/00118076 [06:17:22]NVStorageSaveData ofd_packets/00118076 [06:17:22]File name is /storage/ofd_packets/00118076 [06:17:22]Write 298 bytes [06:17:22]NVStorageSaveData done [06:17:22]OFDSenderStorePacket done [06:17:22]KKMCreateOFDPacket done [06:17:22]NVStorageSaveData kkm_last_timestamp [06:17:22]File name is /storage/kkm_last_timestamp [06:17:22]Write 4 bytes [06:17:22]NVStorageSaveData done [06:17:22]ExternCall_PrintAddStr [06:17:22]wPrintStart [06:17:22]Write to MH i2c: 01 00 00 3B 27 62 [06:17:22]Write i2c OK [06:17:22]MH_I2C_Read... [06:17:22]Read from MH i2c: 01 [06:17:22]MH_I2C_Read... [06:17:22]Read from MH i2c: 01 07 00 [06:17:22]MH_I2C_Read... [06:17:22]Read from MH i2c: 01 07 00 3B 27 00 00 00 00 00 FF 0F 77 [06:17:22]RasterBufferAndPrint [06:17:22]line Счет N : (1)948946 [06:17:22]line ИНН: 02508201610067 [06:17:22]line Контрольно-Кассовый Чек [06:17:22]line ПРОДАЖА [06:17:22]line ТРК (МРК, ГНК) : 64 [06:17:22]line Товар: 2710194800 [06:17:22]line ДТ-К-5 [06:17:22]line 53.810 * 75.53 [06:17:22]line = 4064.27 [06:17:22]line НДС 12% НСП 1% [06:17:22]line > о реализуемом товаре [06:17:22]line ОКРУГЛЕНИЕ: -0.27 [06:17:22]line ИТОГО: 4064.00 [06:17:22]line НСП 1% : 35.97 [06:17:22]line НДС 12% : 431.60 [06:17:22]line Наличными: 0.00 [06:17:22]line Безнал.: 4064.00 [06:17:22]line Место: АЗС № 134 "Партнер Нефть" [06:17:22]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:17:22]line СНО: Общий режим [06:17:22]line Чек 19 27.07.2024 06:17 [06:17:22]line Смена: 432 ФФД: 1.0 [06:17:22]line ЗНМ: 0300000044 [06:17:22]line РНМ: 0000000000092660 [06:17:22]line Версия ККМ: 001 [06:17:22]line Платежная система: Бакай Банк [06:17:22]line ФМ: 0000000000874939 [06:17:22]line ФД: 118076 [06:17:22]line ФПД: 94114667538261 [06:17:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T061723&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118076&fm=94114667538261&tin=02508201610067®Number=0000000000092660&sum=406400 [06:17:22]OFD Sender: Processing packet 118076 [packets to send 85, broken 84] [06:17:22]ProducePacketName [06:17:22]name=ofd_packets/00118076 [06:17:22]OFD Sender: To server: pG, [06:17:22]CommunicateWithHost lk.salyk.kg:30040 [06:17:22]ConnectInit lk.salyk.kg [06:17:22]written 0, free lines is 4095 [06:17:22]Connected sock=11 [06:17:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C9 BC 04 01 DC BF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 D2 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 9B 33 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 33 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 A8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 33 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 F3 90 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3C CD 01 00 35 04 06 00 55 98 C7 53 A7 55 84 FD 7F 47 F8 35 B3 AA [06:17:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 86 C6 47 00 8F 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 34 39 33 39 10 04 04 00 3C CD 01 00 F4 03 04 00 87 3E A4 66 B6 04 01 00 00 54 B5 A0 BA CF 77 B9 AA [06:17:22]CommunicateWithHost err = 0 [06:17:22]CheckOFDResponse [06:17:22]1017 (14) - 77093643461234 [06:17:22]1041 (16) - 0000000000874939 [06:17:22]1040 (4) - 118076 [06:17:22]1012 (4) - 27.07.2024 00:25 [06:17:22]1206 (1) - 0 [06:17:22]OFD Sender: Remove packet 118076 [06:17:22]ProducePacketName [06:17:22]name=ofd_packets/00118076 [06:17:22]NVStorageDeleteData [06:17:22]Write to MH i2c: 01 00 00 65 27 8C [06:17:22]Write i2c OK [06:17:22]MH_I2C_Read... [06:17:22]Read from MH i2c: 01 [06:17:22]MH_I2C_Read... [06:17:22]Read from MH i2c: 01 07 00 [06:17:22]MH_I2C_Read... [06:17:22]Read from MH i2c: 01 07 00 65 27 00 00 00 00 00 D9 0C 78 [06:17:22]RasterBufferAndPrint [06:17:22]line [06:17:22]line [06:17:22]line [06:17:22]line [06:17:22]line [06:17:22]written 0, free lines is 3297 [06:17:22]MH_Cut [06:17:22]Write to MH i2c: D1 01 00 6C 27 01 65 [06:17:22]Write i2c OK [06:17:22]MH_I2C_Read... [06:17:22]Read from MH i2c: D1 [06:17:22]MH_I2C_Read... [06:17:22]Read from MH i2c: D1 01 00 [06:17:22]MH_I2C_Read... [06:17:22]Read from MH i2c: D1 01 00 6C 27 00 64 [06:17:22]Write to MH i2c: 01 00 00 6D 27 94 [06:17:22]Write i2c OK [06:17:22]MH_I2C_Read... [06:17:23]OFD Sender: No OFD packet to send [06:17:23]*** Cut start [06:17:23]*** Partial cut [06:17:23]*** CUTSNS_PIN = 1 [06:17:23]*** CUTSNS_PIN = 0 [06:17:23]*** Brake cut motor [06:17:24]Read from MH i2c: 01 [06:17:24]MH_I2C_Read... [06:17:24]*** Stop cut motor [06:17:24]*** Cut end [06:17:24]Read from MH i2c: 01 07 00 [06:17:24]MH_I2C_Read... [06:17:24]Read from MH i2c: 01 07 00 6D 27 00 00 00 00 00 FF 0F A9 [06:17:24]process_action close_receipt done [06:17:24]requested_data is exist [06:17:24]produce_requested_data [06:17:24]requested_item fm.sn is exist - process it [06:17:24]wFMCommunicate request_size=4 [06:17:24]MH_SAM_APDU [06:17:24]CAPDU: 80 11 00 00 [06:17:24]Write to MH i2c: E2 08 00 6E 27 80 11 00 00 00 00 00 00 0F [06:17:24]Write i2c OK [06:17:24]MH_I2C_Read... [06:17:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:17:24]Read from MH i2c: E2 [06:17:24]MH_I2C_Read... [06:17:24]Read from MH i2c: E2 17 00 [06:17:24]MH_I2C_Read... [06:17:24]Read from MH i2c: E2 17 00 6E 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6A [06:17:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:17:24]wFMCommunicate OK [06:17:24]requested_item fd.num is exist - process it [06:17:24]SAM_PROTO_GetFieldsCounters [06:17:24]wFMCommunicate request_size=4 [06:17:24]MH_SAM_APDU [06:17:24]CAPDU: 80 13 00 00 [06:17:24]Write to MH i2c: E2 08 00 6F 27 80 13 00 00 00 00 00 00 12 [06:17:24]Write i2c OK [06:17:24]MH_I2C_Read... [06:17:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:17:24]Read from MH i2c: E2 [06:17:24]MH_I2C_Read... [06:17:24]Read from MH i2c: E2 62 00 [06:17:24]MH_I2C_Read... [06:17:24]Read from MH i2c: E2 62 00 6F 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3C CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [06:17:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3C CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:17:24]wFMCommunicate OK [06:17:24]SAM_PROTO_GetFieldsCounters done [06:17:24]requested_item shift.num is exist - process it [06:17:24]requested_item shift.opened is exist - process it [06:17:24]req_shift_opened [06:17:24]FM_GetShiftState [06:17:24]SAM_PROTO_GetShiftState [06:17:24]wFMCommunicate request_size=4 [06:17:24]MH_SAM_APDU [06:17:24]CAPDU: 80 13 01 00 [06:17:24]Write to MH i2c: E2 08 00 70 27 80 13 01 00 00 00 00 00 14 [06:17:24]Write i2c OK [06:17:24]MH_I2C_Read... [06:17:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:17:24]Read from MH i2c: E2 [06:17:24]MH_I2C_Read... [06:17:24]Read from MH i2c: E2 0E 00 [06:17:24]MH_I2C_Read... [06:17:24]Read from MH i2c: E2 0E 00 70 27 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 A1 [06:17:24]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [06:17:24]wFMCommunicate OK [06:17:24]SAM_PROTO_GetShiftState done [06:17:24]FM_GetShiftState done [06:17:24]req_shift_opened done [06:17:24]requested_item shift.open_date is exist - process it [06:17:24]req_shift_open_date [06:17:24]req_shift_open_date done [06:17:24]produce_requested_data done [06:17:24]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118076,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [06:17:24]process_action_free close_receipt [06:17:24]json_value_free [06:17:24]json_value_free done [06:17:24]process_json_proto returns [06:17:24]Send response to host [06:17:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118076,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [06:17:24]free response buf [06:17:24]execute_script done [06:17:24]execute_script returns [06:17:24]free content buf [06:17:24]Sock 9.Close socket [06:17:24]Sock 9.Thread stoped [06:17:28]OFD Sender: No OFD packet to send [06:17:33]OFD Sender: No OFD packet to send [06:17:38]OFD Sender: No OFD packet to send [06:17:43]OFD Sender: No OFD packet to send [06:17:48]OFD Sender: No OFD packet to send [06:17:53]OFD Sender: No OFD packet to send [06:17:58]OFD Sender: No OFD packet to send [06:18:03]OFD Sender: No OFD packet to send [06:18:08]OFD Sender: No OFD packet to send [06:18:13]OFD Sender: No OFD packet to send [06:18:17]accept exits with 7 [06:18:17]New connection [06:18:17]New thread 3067284836 created [06:18:17]Thread 3067428196 joined [06:18:17]Waiting for new connection... [06:18:17] Sock 7.Parse request [06:18:17]Sock 7.Check first char [06:18:17]Sock 7.First char is OK [06:18:17]request: POST /json_proto HTTP/1.0 [06:18:17]Method: POST [06:18:17]URL: /json_proto [06:18:17]Method is POST - this is cgi request [06:18:17]url: /json_proto [06:18:17]query_string will be loaded in cgi processing [06:18:17]execute_cgi json_proto POST (null) [06:18:17]execute_cgi path=json_proto method=POST [06:18:17]POST find Content-Length [06:18:17]Host: 172.17.45.7:8080 [06:18:17]Content-Length: 677 [06:18:17]Content-Type: application/json [06:18:17] [06:18:17]POST finish read [06:18:17]Found Content-Length = 677 [06:18:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:18:17]execute_script... [06:18: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)948947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:18:17]POST & json_proto [06:18:17]process_json_proto [06:18:17]json parsed OK: [06:18:17]protocol is kg_v1.0 [06:18:17]action value=close_receipt [06:18:17]process_action close_receipt [06:18:17]cmd_close_receipt [06:18:17]MH_GetDate [06:18:17]Write to MH i2c: F0 00 00 71 27 87 [06:18:17]Write i2c OK [06:18:17]MH_I2C_Read... [06:18:17]Read from MH i2c: F0 [06:18:17]MH_I2C_Read... [06:18:17]Read from MH i2c: F0 09 00 [06:18:17]MH_I2C_Read... [06:18:17]Read from MH i2c: F0 09 00 71 27 00 2D 91 A4 66 90 0F 3E 66 9B [06:18:17]GetLastDocTimeStamp 1722061043 [06:18:17]current date 1722061101 [06:18:17]FM_GetShiftState [06:18:17]SAM_PROTO_GetShiftState [06:18:17]wFMCommunicate request_size=4 [06:18:17]MH_SAM_APDU [06:18:17]CAPDU: 80 13 01 00 [06:18:17]Write to MH i2c: E2 08 00 72 27 80 13 01 00 00 00 00 00 16 [06:18:17]Write i2c OK [06:18:17]MH_I2C_Read... [06:18:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:18:17]Read from MH i2c: E2 [06:18:17]MH_I2C_Read... [06:18:17]Read from MH i2c: E2 0E 00 [06:18:17]MH_I2C_Read... [06:18:17]Read from MH i2c: E2 0E 00 72 27 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 A3 [06:18:17]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [06:18:17]wFMCommunicate OK [06:18:17]SAM_PROTO_GetShiftState done [06:18:17]FM_GetShiftState done [06:18:17]opened in 1722038845 [06:18:17]opened+sec_in_day 1722125245 [06:18:17]quantity*price = 50036 [06:18:17]sum+1 = 50037 [06:18:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 20 27.07.2024 06:18 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118077 ФПД: 198855563425027 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T061821&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118077&fm=198855563425027&tin=02508201610067®Number=0000000000092660&sum=50000 [06:18:19]StoreToDocumentArchive [06:18:19]shift 432 fd 118077 [06:18:19]save to /storage/0432/doc_00118077 [06:18:19]save last doc name /storage/0432/doc_00118077 to /storage/kkm_last_doc_name [06:18:19]save OK [06:18:19]Clear old archive folders... [06:18:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:18:19]tlvbuf is 006C47B0 [06:18:19]SAM_PROTO_ClearQueue [06:18:19]wFMCommunicate request_size=4 [06:18:19]MH_SAM_APDU [06:18:19]CAPDU: 80 09 00 00 [06:18:19]Write to MH i2c: E2 08 00 7F 27 80 09 00 00 00 00 00 00 18 [06:18:19]Write i2c OK [06:18:19]MH_I2C_Read... [06:18:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:18:19]Read from MH i2c: E2 [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: E2 03 00 [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: E2 03 00 7F 27 00 90 00 1A [06:18:19]RAPDU: 90 00 [06:18:19]wFMCommunicate OK [06:18:19]SAM_PROTO_ClearQueue done [06:18:19]KKMCreateOFDPacket [06:18:19]OFDProtocolAddRootSTLVToBuf [06:18:19]FM_MakeSignedData [06:18:19]FM_MakeSignedData [06:18:19]SAM_PROTO_SignData [06:18:19]wFMCommunicate request_size=4 [06:18:19]MH_SAM_APDU [06:18:19]CAPDU: 80 0D 01 02 [06:18:19]Write to MH i2c: E2 08 00 80 27 80 0D 01 02 00 00 00 00 20 [06:18:19]Write i2c OK [06:18:19]MH_I2C_Read... [06:18:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:18:19]Read from MH i2c: E2 [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: E2 03 00 [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: E2 03 00 80 27 00 90 00 1B [06:18:19]RAPDU: 90 00 [06:18:19]wFMCommunicate OK [06:18:19]wFMCommunicate request_size=255 [06:18:19]MH_SAM_APDU [06:18:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2D 91 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3D CD 01 00 35 04 06 00 B4 [06:18:19]Write to MH i2c: E2 02 01 81 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2D 91 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3D CD 01 00 35 04 06 00 B4 00 00 F0 [06:18:19]Write i2c OK [06:18:19]MH_I2C_Read... [06:18:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:18:19]Read from MH i2c: E2 [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: E2 03 00 [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: E2 03 00 81 27 00 90 00 1C [06:18:19]RAPDU: 90 00 [06:18:19]wFMCommunicate OK [06:18:19]wFMCommunicate request_size=10 [06:18:19]MH_SAM_APDU [06:18:19]CAPDU: 80 0D 02 02 05 DB AB 38 35 03 [06:18:19]Write to MH i2c: E2 0D 00 82 27 80 0D 02 02 05 00 DB AB 38 35 03 00 00 23 [06:18:19]Write i2c OK [06:18:19]MH_I2C_Read... [06:18:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:18:19]Read from MH i2c: E2 [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: E2 03 00 [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: E2 03 00 82 27 00 90 00 1D [06:18:19]RAPDU: 90 00 [06:18:19]wFMCommunicate OK [06:18:19]wFMCommunicate request_size=4 [06:18:19]MH_SAM_APDU [06:18:19]CAPDU: 80 0D 03 02 [06:18:19]Write to MH i2c: E2 08 00 83 27 80 0D 03 02 00 00 00 00 25 [06:18:19]Write i2c OK [06:18:19]MH_I2C_Read... [06:18:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:18:19]Read from MH i2c: E2 [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: E2 0B 00 [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: E2 0B 00 83 27 00 92 DB 7F 43 67 4D B2 D8 90 00 93 [06:18:19]RAPDU: 92 DB 7F 43 67 4D B2 D8 90 00 [06:18:19]wFMCommunicate OK [06:18:19]SAM_PROTO_SignData done [06:18:19]FM_MakeSignedData done [06:18:19]CreateOFDProtocolMessage [06:18:19]wFMCommunicate request_size=4 [06:18:19]MH_SAM_APDU [06:18:19]CAPDU: 80 11 00 00 [06:18:19]Write to MH i2c: E2 08 00 84 27 80 11 00 00 00 00 00 00 25 [06:18:19]Write i2c OK [06:18:19]MH_I2C_Read... [06:18:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:18:19]Read from MH i2c: E2 [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: E2 17 00 [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: E2 17 00 84 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 80 [06:18:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:18:19]wFMCommunicate OK [06:18:19]CreateOFDProtocolMessage done [06:18:19]OFDSenderStorePacket 118077 [06:18:19]StoreOFDPacket docnum=118077 [06:18:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2A CF 07 01 BE 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2D 91 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3D CD 01 00 35 04 06 00 B4 DB AB 38 35 03 92 DB 7F 43 67 4D B2 D8 [06:18:19]CheckFolder [06:18:19]dirname=/storage/ofd_packets [06:18:19]CheckFolder done [06:18:19]ProducePacketName [06:18:19]name=ofd_packets/00118077 [06:18:19]NVStorageSaveData ofd_packets/00118077 [06:18:19]File name is /storage/ofd_packets/00118077 [06:18:19]Write 301 bytes [06:18:19]NVStorageSaveData done [06:18:19]OFDSenderStorePacket done [06:18:19]KKMCreateOFDPacket done [06:18:19]NVStorageSaveData kkm_last_timestamp [06:18:19]File name is /storage/kkm_last_timestamp [06:18:19]Write 4 bytes [06:18:19]NVStorageSaveData done [06:18:19]ExternCall_PrintAddStr [06:18:19]wPrintStart [06:18:19]Write to MH i2c: 01 00 00 85 27 AC [06:18:19]Write i2c OK [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: 01 [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: 01 07 00 [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: 01 07 00 85 27 00 00 00 00 00 FF 0F C1 [06:18:19]RasterBufferAndPrint [06:18:19]line Счет N : (1)948947 [06:18:19]line ИНН: 02508201610067 [06:18:19]line Контрольно-Кассовый Чек [06:18:19]line ПРОДАЖА [06:18:19]line ТРК (МРК, ГНК) : 31 [06:18:19]line Товар: 2710124130 [06:18:19]line Аи-92-К-4 [06:18:19]line 7.380 * 67.80 [06:18:19]line = 500.36 [06:18:19]line НДС 12% НСП 1% [06:18:19]line > о реализуемом товаре [06:18:19]line ОКРУГЛЕНИЕ: -0.36 [06:18:19]line ИТОГО: 500.00 [06:18:19]line Внесено: 500.00 [06:18:19]line СДАЧА: 0.00 [06:18:19]line НСП 1% : 4.43 [06:18:19]line НДС 12% : 53.14 [06:18:19]line Наличными: 500.00 [06:18:19]line Безнал.: 0.00 [06:18:19]line Место: АЗС № 134 "Партнер Нефть" [06:18:19]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:18:19]line СНО: Общий режим [06:18:19]line Чек 20 27.07.2024 06:18 [06:18:19]line Смена: 432 ФФД: 1.0 [06:18:19]line ЗНМ: 0300000044 [06:18:19]line РНМ: 0000000000092660 [06:18:19]line Версия ККМ: 001 [06:18:19]line ФМ: 0000000000874939 [06:18:19]line ФД: 118077 [06:18:19]line ФПД: 198855563425027 [06:18:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T061821&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118077&fm=198855563425027&tin=02508201610067®Number=0000000000092660&sum=50000 [06:18:19]written 0, free lines is 4095 [06:18:19]OFD Sender: Processing packet 118077 [packets to send 85, broken 84] [06:18:19]ProducePacketName [06:18:19]name=ofd_packets/00118077 [06:18:19]OFD Sender: To server: pG, [06:18:19]CommunicateWithHost lk.salyk.kg:30040 [06:18:19]ConnectInit lk.salyk.kg [06:18:20]Connected sock=10 [06:18:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2A CF 07 01 BE 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2D 91 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3D CD 01 00 35 04 06 00 B4 DB AB 38 35 03 92 DB 7F 43 67 4D B2 D8 [06:18:20]Write to MH i2c: 01 00 00 AF 27 D6 [06:18:20]Write i2c OK [06:18:20]MH_I2C_Read... [06:18:20]Read from MH i2c: 01 [06:18:20]MH_I2C_Read... [06:18:20]Read from MH i2c: 01 07 00 [06:18:20]MH_I2C_Read... [06:18:20]Read from MH i2c: 01 07 00 AF 27 00 00 00 00 00 D3 0C BC [06:18:20]RasterBufferAndPrint [06:18:20]line [06:18:20]line [06:18:20]line [06:18:20]line [06:18:20]line [06:18:20]written 0, free lines is 3289 [06:18:20]MH_Cut [06:18:20]Write to MH i2c: D1 01 00 B6 27 01 AF [06:18:20]Write i2c OK [06:18:20]MH_I2C_Read... [06:18:20]Read from MH i2c: D1 [06:18:20]MH_I2C_Read... [06:18:20]Read from MH i2c: D1 01 00 [06:18:20]MH_I2C_Read... [06:18:20]Read from MH i2c: D1 01 00 B6 27 00 AE [06:18:20]Write to MH i2c: 01 00 00 B7 27 DE [06:18:20]Write i2c OK [06:18:20]MH_I2C_Read... [06:18:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 59 EA 47 00 23 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3D CD 01 00 F4 03 04 00 C0 3E A4 66 B6 04 01 00 00 3D F4 88 6D D6 D2 31 3C [06:18:20]CommunicateWithHost err = 0 [06:18:20]CheckOFDResponse [06:18:20]1017 (14) - 77093643461234 [06:18:20]1041 (16) - 0000000000874939 [06:18:20]1040 (4) - 118077 [06:18:20]1012 (4) - 27.07.2024 00:26 [06:18:20]1206 (1) - 0 [06:18:20]OFD Sender: Remove packet 118077 [06:18:20]ProducePacketName [06:18:20]name=ofd_packets/00118077 [06:18:20]NVStorageDeleteData [06:18:20]OFD Sender: No OFD packet to send [06:18:20]*** Cut start [06:18:20]*** Partial cut [06:18:20]*** CUTSNS_PIN = 1 [06:18:20]*** CUTSNS_PIN = 0 [06:18:21]*** Brake cut motor [06:18:21]Read from MH i2c: 01 [06:18:21]MH_I2C_Read... [06:18:21]*** Stop cut motor [06:18:21]*** Cut end [06:18:21]Read from MH i2c: 01 07 00 [06:18:21]MH_I2C_Read... [06:18:21]Read from MH i2c: 01 07 00 B7 27 00 00 00 00 00 FF 0F F3 [06:18:21]process_action close_receipt done [06:18:21]requested_data is exist [06:18:21]produce_requested_data [06:18:21]requested_item fm.sn is exist - process it [06:18:21]wFMCommunicate request_size=4 [06:18:21]MH_SAM_APDU [06:18:21]CAPDU: 80 11 00 00 [06:18:21]Write to MH i2c: E2 08 00 B8 27 80 11 00 00 00 00 00 00 59 [06:18:21]Write i2c OK [06:18:21]MH_I2C_Read... [06:18:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:18:21]Read from MH i2c: E2 [06:18:21]MH_I2C_Read... [06:18:21]Read from MH i2c: E2 17 00 [06:18:21]MH_I2C_Read... [06:18:21]Read from MH i2c: E2 17 00 B8 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B4 [06:18:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:18:21]wFMCommunicate OK [06:18:21]requested_item fd.num is exist - process it [06:18:21]SAM_PROTO_GetFieldsCounters [06:18:21]wFMCommunicate request_size=4 [06:18:21]MH_SAM_APDU [06:18:21]CAPDU: 80 13 00 00 [06:18:21]Write to MH i2c: E2 08 00 B9 27 80 13 00 00 00 00 00 00 5C [06:18:21]Write i2c OK [06:18:21]MH_I2C_Read... [06:18:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:18:21]Read from MH i2c: E2 [06:18:21]MH_I2C_Read... [06:18:21]Read from MH i2c: E2 62 00 [06:18:21]MH_I2C_Read... [06:18:21]Read from MH i2c: E2 62 00 B9 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3D CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [06:18:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3D CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:18:21]wFMCommunicate OK [06:18:21]SAM_PROTO_GetFieldsCounters done [06:18:21]requested_item shift.num is exist - process it [06:18:21]requested_item shift.opened is exist - process it [06:18:21]req_shift_opened [06:18:21]FM_GetShiftState [06:18:21]SAM_PROTO_GetShiftState [06:18:21]wFMCommunicate request_size=4 [06:18:21]MH_SAM_APDU [06:18:21]CAPDU: 80 13 01 00 [06:18:21]Write to MH i2c: E2 08 00 BA 27 80 13 01 00 00 00 00 00 5E [06:18:21]Write i2c OK [06:18:21]MH_I2C_Read... [06:18:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:18:21]Read from MH i2c: E2 [06:18:21]MH_I2C_Read... [06:18:21]Read from MH i2c: E2 0E 00 [06:18:21]MH_I2C_Read... [06:18:21]Read from MH i2c: E2 0E 00 BA 27 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 EB [06:18:21]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [06:18:21]wFMCommunicate OK [06:18:21]SAM_PROTO_GetShiftState done [06:18:21]FM_GetShiftState done [06:18:21]req_shift_opened done [06:18:21]requested_item shift.open_date is exist - process it [06:18:21]req_shift_open_date [06:18:21]req_shift_open_date done [06:18:21]produce_requested_data done [06:18:21]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118077,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [06:18:21]process_action_free close_receipt [06:18:21]json_value_free [06:18:21]json_value_free done [06:18:21]process_json_proto returns [06:18:21]Send response to host [06:18:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118077,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [06:18:21]free response buf [06:18:21]execute_script done [06:18:21]execute_script returns [06:18:21]free content buf [06:18:21]Sock 7.Close socket [06:18:21]Sock 7.Thread stoped [06:18:25]OFD Sender: No OFD packet to send [06:18:30]OFD Sender: No OFD packet to send [06:18:35]OFD Sender: No OFD packet to send [06:18:40]OFD Sender: No OFD packet to send [06:18:45]OFD Sender: No OFD packet to send [06:18:50]OFD Sender: No OFD packet to send [06:18:55]OFD Sender: No OFD packet to send [06:19:00]OFD Sender: No OFD packet to send [06:19:05]OFD Sender: No OFD packet to send [06:19:10]OFD Sender: No OFD packet to send [06:19:15]OFD Sender: No OFD packet to send [06:19:20]OFD Sender: No OFD packet to send [06:19:25]OFD Sender: No OFD packet to send [06:19:30]OFD Sender: No OFD packet to send [06:19:35]OFD Sender: No OFD packet to send [06:19:40]OFD Sender: No OFD packet to send [06:19:45]OFD Sender: No OFD packet to send [06:19:50]OFD Sender: No OFD packet to send [06:19:55]OFD Sender: No OFD packet to send [06:20:00]OFD Sender: No OFD packet to send [06:20:05]OFD Sender: No OFD packet to send [06:20:10]OFD Sender: No OFD packet to send [06:20:15]OFD Sender: No OFD packet to send [06:20:20]OFD Sender: No OFD packet to send [06:20:25]OFD Sender: No OFD packet to send [06:20:30]OFD Sender: No OFD packet to send [06:20:35]OFD Sender: No OFD packet to send [06:20:40]OFD Sender: No OFD packet to send [06:20:45]OFD Sender: No OFD packet to send [06:20:50]OFD Sender: No OFD packet to send [06:20:55]OFD Sender: No OFD packet to send [06:21:00]OFD Sender: No OFD packet to send [06:21:05]OFD Sender: No OFD packet to send [06:21:10]OFD Sender: No OFD packet to send [06:21:15]OFD Sender: No OFD packet to send [06:21:20]OFD Sender: No OFD packet to send [06:21:25]OFD Sender: No OFD packet to send [06:21:30]OFD Sender: No OFD packet to send [06:21:35]OFD Sender: No OFD packet to send [06:21:40]OFD Sender: No OFD packet to send [06:21:45]OFD Sender: No OFD packet to send [06:21:50]OFD Sender: No OFD packet to send [06:21:55]OFD Sender: No OFD packet to send [06:22:00]OFD Sender: No OFD packet to send [06:22:05]OFD Sender: No OFD packet to send [06:22:10]OFD Sender: No OFD packet to send [06:22:15]OFD Sender: No OFD packet to send [06:22:20]OFD Sender: No OFD packet to send [06:22:25]OFD Sender: No OFD packet to send [06:22:30]OFD Sender: No OFD packet to send [06:22:35]OFD Sender: No OFD packet to send [06:22:40]OFD Sender: No OFD packet to send [06:22:46]OFD Sender: No OFD packet to send [06:22:51]OFD Sender: No OFD packet to send [06:22:56]OFD Sender: No OFD packet to send [06:23:01]OFD Sender: No OFD packet to send [06:23:06]OFD Sender: No OFD packet to send [06:23:11]OFD Sender: No OFD packet to send [06:23:16]OFD Sender: No OFD packet to send [06:23:21]OFD Sender: No OFD packet to send [06:23:26]OFD Sender: No OFD packet to send [06:23:31]OFD Sender: No OFD packet to send [06:23:36]OFD Sender: No OFD packet to send [06:23:41]OFD Sender: No OFD packet to send [06:23:46]OFD Sender: No OFD packet to send [06:23:51]OFD Sender: No OFD packet to send [06:23:56]OFD Sender: No OFD packet to send [06:24:01]OFD Sender: No OFD packet to send [06:24:06]OFD Sender: No OFD packet to send [06:24:11]OFD Sender: No OFD packet to send [06:24:16]OFD Sender: No OFD packet to send [06:24:21]OFD Sender: No OFD packet to send [06:24:26]OFD Sender: No OFD packet to send [06:24:31]OFD Sender: No OFD packet to send [06:24:36]OFD Sender: No OFD packet to send [06:24:41]OFD Sender: No OFD packet to send [06:24:46]OFD Sender: No OFD packet to send [06:24:51]OFD Sender: No OFD packet to send [06:24:56]OFD Sender: No OFD packet to send [06:25:01]OFD Sender: No OFD packet to send [06:25:06]OFD Sender: No OFD packet to send [06:25:11]OFD Sender: No OFD packet to send [06:25:16]OFD Sender: No OFD packet to send [06:25:21]OFD Sender: No OFD packet to send [06:25:26]OFD Sender: No OFD packet to send [06:25:31]OFD Sender: No OFD packet to send [06:25:36]OFD Sender: No OFD packet to send [06:25:41]OFD Sender: No OFD packet to send [06:25:46]OFD Sender: No OFD packet to send [06:25:51]OFD Sender: No OFD packet to send [06:25:56]OFD Sender: No OFD packet to send [06:26:01]OFD Sender: No OFD packet to send [06:26:06]OFD Sender: No OFD packet to send [06:26:11]OFD Sender: No OFD packet to send [06:26:16]OFD Sender: No OFD packet to send [06:26:21]OFD Sender: No OFD packet to send [06:26:26]OFD Sender: No OFD packet to send [06:26:31]OFD Sender: No OFD packet to send [06:26:36]OFD Sender: No OFD packet to send [06:26:41]OFD Sender: No OFD packet to send [06:26:46]OFD Sender: No OFD packet to send [06:26:51]OFD Sender: No OFD packet to send [06:26:56]OFD Sender: No OFD packet to send [06:27:01]OFD Sender: No OFD packet to send [06:27:06]OFD Sender: No OFD packet to send [06:27:11]OFD Sender: No OFD packet to send [06:27:16]OFD Sender: No OFD packet to send [06:27:21]OFD Sender: No OFD packet to send [06:27:26]OFD Sender: No OFD packet to send [06:27:31]OFD Sender: No OFD packet to send [06:27:36]OFD Sender: No OFD packet to send [06:27:41]OFD Sender: No OFD packet to send [06:27:46]OFD Sender: No OFD packet to send [06:27:51]OFD Sender: No OFD packet to send [06:27:56]OFD Sender: No OFD packet to send [06:28:01]OFD Sender: No OFD packet to send [06:28:06]OFD Sender: No OFD packet to send [06:28:11]OFD Sender: No OFD packet to send [06:28:16]OFD Sender: No OFD packet to send [06:28:21]OFD Sender: No OFD packet to send [06:28:26]OFD Sender: No OFD packet to send [06:28:31]OFD Sender: No OFD packet to send [06:28:36]OFD Sender: No OFD packet to send [06:28:41]OFD Sender: No OFD packet to send [06:28:46]OFD Sender: No OFD packet to send [06:28:51]OFD Sender: No OFD packet to send [06:28:56]OFD Sender: No OFD packet to send [06:29:01]OFD Sender: No OFD packet to send [06:29:06]OFD Sender: No OFD packet to send [06:29:11]OFD Sender: No OFD packet to send [06:29:16]OFD Sender: No OFD packet to send [06:29:21]OFD Sender: No OFD packet to send [06:29:26]OFD Sender: No OFD packet to send [06:29:31]OFD Sender: No OFD packet to send [06:29:36]OFD Sender: No OFD packet to send [06:29:41]OFD Sender: No OFD packet to send [06:29:46]OFD Sender: No OFD packet to send [06:29:51]OFD Sender: No OFD packet to send [06:29:56]OFD Sender: No OFD packet to send [06:30:01]OFD Sender: No OFD packet to send [06:30:06]OFD Sender: No OFD packet to send [06:30:11]OFD Sender: No OFD packet to send [06:30:16]OFD Sender: No OFD packet to send [06:30:21]OFD Sender: No OFD packet to send [06:30:26]OFD Sender: No OFD packet to send [06:30:31]OFD Sender: No OFD packet to send [06:30:36]OFD Sender: No OFD packet to send [06:30:41]OFD Sender: No OFD packet to send [06:30:46]OFD Sender: No OFD packet to send [06:30:51]OFD Sender: No OFD packet to send [06:30:56]OFD Sender: No OFD packet to send [06:31:01]OFD Sender: No OFD packet to send [06:31:06]OFD Sender: No OFD packet to send [06:31:11]OFD Sender: No OFD packet to send [06:31:16]OFD Sender: No OFD packet to send [06:31:21]OFD Sender: No OFD packet to send [06:31:26]OFD Sender: No OFD packet to send [06:31:31]OFD Sender: No OFD packet to send [06:31:36]OFD Sender: No OFD packet to send [06:31:41]OFD Sender: No OFD packet to send [06:31:46]OFD Sender: No OFD packet to send [06:31:51]OFD Sender: No OFD packet to send [06:31:56]OFD Sender: No OFD packet to send [06:32:01]OFD Sender: No OFD packet to send [06:32:06]OFD Sender: No OFD packet to send [06:32:11]OFD Sender: No OFD packet to send [06:32:16]OFD Sender: No OFD packet to send [06:32:21]OFD Sender: No OFD packet to send [06:32:26]OFD Sender: No OFD packet to send [06:32:31]OFD Sender: No OFD packet to send [06:32:36]OFD Sender: No OFD packet to send [06:32:41]OFD Sender: No OFD packet to send [06:32:46]OFD Sender: No OFD packet to send [06:32:51]OFD Sender: No OFD packet to send [06:32:56]OFD Sender: No OFD packet to send [06:33:01]OFD Sender: No OFD packet to send [06:33:06]OFD Sender: No OFD packet to send [06:33:11]OFD Sender: No OFD packet to send [06:33:16]OFD Sender: No OFD packet to send [06:33:21]OFD Sender: No OFD packet to send [06:33:26]OFD Sender: No OFD packet to send [06:33:31]OFD Sender: No OFD packet to send [06:33:36]OFD Sender: No OFD packet to send [06:33:41]OFD Sender: No OFD packet to send [06:33:46]OFD Sender: No OFD packet to send [06:33:51]OFD Sender: No OFD packet to send [06:33:56]OFD Sender: No OFD packet to send [06:34:01]OFD Sender: No OFD packet to send [06:34:06]OFD Sender: No OFD packet to send [06:34:11]OFD Sender: No OFD packet to send [06:34:16]OFD Sender: No OFD packet to send [06:34:21]OFD Sender: No OFD packet to send [06:34:26]OFD Sender: No OFD packet to send [06:34:31]OFD Sender: No OFD packet to send [06:34:36]OFD Sender: No OFD packet to send [06:34:41]OFD Sender: No OFD packet to send [06:34:46]OFD Sender: No OFD packet to send [06:34:51]OFD Sender: No OFD packet to send [06:34:56]OFD Sender: No OFD packet to send [06:35:01]OFD Sender: No OFD packet to send [06:35:06]OFD Sender: No OFD packet to send [06:35:11]OFD Sender: No OFD packet to send [06:35:16]OFD Sender: No OFD packet to send [06:35:21]OFD Sender: No OFD packet to send [06:35:26]OFD Sender: No OFD packet to send [06:35:31]OFD Sender: No OFD packet to send [06:35:36]OFD Sender: No OFD packet to send [06:35:41]OFD Sender: No OFD packet to send [06:35:46]OFD Sender: No OFD packet to send [06:35:51]OFD Sender: No OFD packet to send [06:35:56]OFD Sender: No OFD packet to send [06:36:01]OFD Sender: No OFD packet to send [06:36:06]OFD Sender: No OFD packet to send [06:36:11]OFD Sender: No OFD packet to send [06:36:16]OFD Sender: No OFD packet to send [06:36:21]OFD Sender: No OFD packet to send [06:36:26]OFD Sender: No OFD packet to send [06:36:31]OFD Sender: No OFD packet to send [06:36:36]OFD Sender: No OFD packet to send [06:36:41]OFD Sender: No OFD packet to send [06:36:46]OFD Sender: No OFD packet to send [06:36:51]OFD Sender: No OFD packet to send [06:36:56]OFD Sender: No OFD packet to send [06:37:01]OFD Sender: No OFD packet to send [06:37:06]OFD Sender: No OFD packet to send [06:37:11]OFD Sender: No OFD packet to send [06:37:16]OFD Sender: No OFD packet to send [06:37:21]OFD Sender: No OFD packet to send [06:37:26]OFD Sender: No OFD packet to send [06:37:31]OFD Sender: No OFD packet to send [06:37:36]OFD Sender: No OFD packet to send [06:37:41]OFD Sender: No OFD packet to send [06:37:46]OFD Sender: No OFD packet to send [06:37:51]OFD Sender: No OFD packet to send [06:37:56]OFD Sender: No OFD packet to send [06:38:01]OFD Sender: No OFD packet to send [06:38:06]OFD Sender: No OFD packet to send [06:38:11]OFD Sender: No OFD packet to send [06:38:16]OFD Sender: No OFD packet to send [06:38:21]OFD Sender: No OFD packet to send [06:38:26]OFD Sender: No OFD packet to send [06:38:31]OFD Sender: No OFD packet to send [06:38:36]OFD Sender: No OFD packet to send [06:38:42]OFD Sender: No OFD packet to send [06:38:47]OFD Sender: No OFD packet to send [06:38:52]OFD Sender: No OFD packet to send [06:38:57]OFD Sender: No OFD packet to send [06:39:02]OFD Sender: No OFD packet to send [06:39:07]OFD Sender: No OFD packet to send [06:39:12]OFD Sender: No OFD packet to send [06:39:17]OFD Sender: No OFD packet to send [06:39:22]OFD Sender: No OFD packet to send [06:39:27]OFD Sender: No OFD packet to send [06:39:32]OFD Sender: No OFD packet to send [06:39:37]OFD Sender: No OFD packet to send [06:39:42]OFD Sender: No OFD packet to send [06:39:47]OFD Sender: No OFD packet to send [06:39:52]OFD Sender: No OFD packet to send [06:39:57]OFD Sender: No OFD packet to send [06:40:02]OFD Sender: No OFD packet to send [06:40:07]OFD Sender: No OFD packet to send [06:40:12]OFD Sender: No OFD packet to send [06:40:17]OFD Sender: No OFD packet to send [06:40:22]OFD Sender: No OFD packet to send [06:40:27]OFD Sender: No OFD packet to send [06:40:32]OFD Sender: No OFD packet to send [06:40:37]OFD Sender: No OFD packet to send [06:40:42]OFD Sender: No OFD packet to send [06:40:47]OFD Sender: No OFD packet to send [06:40:52]OFD Sender: No OFD packet to send [06:40:57]OFD Sender: No OFD packet to send [06:41:02]OFD Sender: No OFD packet to send [06:41:07]OFD Sender: No OFD packet to send [06:41:12]OFD Sender: No OFD packet to send [06:41:17]OFD Sender: No OFD packet to send [06:41:22]OFD Sender: No OFD packet to send [06:41:27]OFD Sender: No OFD packet to send [06:41:32]OFD Sender: No OFD packet to send [06:41:37]OFD Sender: No OFD packet to send [06:41:42]OFD Sender: No OFD packet to send [06:41:47]OFD Sender: No OFD packet to send [06:41:52]OFD Sender: No OFD packet to send [06:41:57]OFD Sender: No OFD packet to send [06:42:02]OFD Sender: No OFD packet to send [06:42:07]OFD Sender: No OFD packet to send [06:42:12]OFD Sender: No OFD packet to send [06:42:17]OFD Sender: No OFD packet to send [06:42:22]OFD Sender: No OFD packet to send [06:42:27]OFD Sender: No OFD packet to send [06:42:32]OFD Sender: No OFD packet to send [06:42:37]OFD Sender: No OFD packet to send [06:42:42]OFD Sender: No OFD packet to send [06:42:47]OFD Sender: No OFD packet to send [06:42:52]OFD Sender: No OFD packet to send [06:42:57]OFD Sender: No OFD packet to send [06:43:02]OFD Sender: No OFD packet to send [06:43:07]OFD Sender: No OFD packet to send [06:43:12]OFD Sender: No OFD packet to send [06:43:17]OFD Sender: No OFD packet to send [06:43:22]OFD Sender: No OFD packet to send [06:43:27]OFD Sender: No OFD packet to send [06:43:32]OFD Sender: No OFD packet to send [06:43:37]OFD Sender: No OFD packet to send [06:43:42]OFD Sender: No OFD packet to send [06:43:47]OFD Sender: No OFD packet to send [06:43:52]OFD Sender: No OFD packet to send [06:43:57]OFD Sender: No OFD packet to send [06:44:02]OFD Sender: No OFD packet to send [06:44:07]OFD Sender: No OFD packet to send [06:44:12]OFD Sender: No OFD packet to send [06:44:17]OFD Sender: No OFD packet to send [06:44:22]OFD Sender: No OFD packet to send [06:44:27]OFD Sender: No OFD packet to send [06:44:32]OFD Sender: No OFD packet to send [06:44:37]OFD Sender: No OFD packet to send [06:44:42]OFD Sender: No OFD packet to send [06:44:47]OFD Sender: No OFD packet to send [06:44:52]OFD Sender: No OFD packet to send [06:44:57]OFD Sender: No OFD packet to send [06:45:02]OFD Sender: No OFD packet to send [06:45:07]OFD Sender: No OFD packet to send [06:45:12]OFD Sender: No OFD packet to send [06:45:17]OFD Sender: No OFD packet to send [06:45:22]OFD Sender: No OFD packet to send [06:45:27]OFD Sender: No OFD packet to send [06:45:32]OFD Sender: No OFD packet to send [06:45:37]OFD Sender: No OFD packet to send [06:45:42]OFD Sender: No OFD packet to send [06:45:47]OFD Sender: No OFD packet to send [06:45:52]OFD Sender: No OFD packet to send [06:45:57]OFD Sender: No OFD packet to send [06:46:02]OFD Sender: No OFD packet to send [06:46:07]OFD Sender: No OFD packet to send [06:46:12]OFD Sender: No OFD packet to send [06:46:17]OFD Sender: No OFD packet to send [06:46:22]OFD Sender: No OFD packet to send [06:46:27]OFD Sender: No OFD packet to send [06:46:32]OFD Sender: No OFD packet to send [06:46:37]OFD Sender: No OFD packet to send [06:46:42]OFD Sender: No OFD packet to send [06:46:47]OFD Sender: No OFD packet to send [06:46:52]OFD Sender: No OFD packet to send [06:46:57]OFD Sender: No OFD packet to send [06:47:02]OFD Sender: No OFD packet to send [06:47:07]OFD Sender: No OFD packet to send [06:47:12]OFD Sender: No OFD packet to send [06:47:16]accept exits with 9 [06:47:16]New connection [06:47:16]New thread 3067428196 created [06:47:16]Thread 3067284836 joined [06:47:16]Waiting for new connection... [06:47:16] Sock 9.Parse request [06:47:16]Sock 9.Check first char [06:47:16]Sock 9.First char is OK [06:47:16]request: POST /json_proto HTTP/1.0 [06:47:16]Method: POST [06:47:16]URL: /json_proto [06:47:16]Method is POST - this is cgi request [06:47:16]url: /json_proto [06:47:16]query_string will be loaded in cgi processing [06:47:16]execute_cgi json_proto POST (null) [06:47:16]execute_cgi path=json_proto method=POST [06:47:16]POST find Content-Length [06:47:16]Host: 172.17.45.7:8080 [06:47:16]Content-Length: 819 [06:47:16]Content-Type: application/json [06:47:16] [06:47:16]POST finish read [06:47:16]Found Content-Length = 819 [06:47:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 42.000, "sum" : 3200.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", "total" : 3200.00, "payments": [ { "type": 1, "sum" : 3200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:47:16]execute_script... [06:47: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)948948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 42.000, "sum" : 3200.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", "total" : 3200.00, "payments": [ { "type": 1, "sum" : 3200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:47:16]POST & json_proto [06:47:16]process_json_proto [06:47:16]json parsed OK: [06:47:16]protocol is kg_v1.0 [06:47:16]action value=close_receipt [06:47:16]process_action close_receipt [06:47:16]cmd_close_receipt [06:47:16]MH_GetDate [06:47:16]Write to MH i2c: F0 00 00 BB 27 D1 [06:47:16]Write i2c OK [06:47:16]MH_I2C_Read... [06:47:16]Read from MH i2c: F0 [06:47:16]MH_I2C_Read... [06:47:16]Read from MH i2c: F0 09 00 [06:47:16]MH_I2C_Read... [06:47:16]Read from MH i2c: F0 09 00 BB 27 00 F8 97 A4 66 90 0F 3E 66 B6 [06:47:16]GetLastDocTimeStamp 1722061101 [06:47:16]current date 1722062840 [06:47:16]FM_GetShiftState [06:47:16]SAM_PROTO_GetShiftState [06:47:16]wFMCommunicate request_size=4 [06:47:16]MH_SAM_APDU [06:47:16]CAPDU: 80 13 01 00 [06:47:16]Write to MH i2c: E2 08 00 BC 27 80 13 01 00 00 00 00 00 60 [06:47:16]Write i2c OK [06:47:16]MH_I2C_Read... [06:47:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:47:16]Read from MH i2c: E2 [06:47:16]MH_I2C_Read... [06:47:16]Read from MH i2c: E2 0E 00 [06:47:16]MH_I2C_Read... [06:47:16]Read from MH i2c: E2 0E 00 BC 27 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 ED [06:47:16]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [06:47:16]wFMCommunicate OK [06:47:16]SAM_PROTO_GetShiftState done [06:47:16]FM_GetShiftState done [06:47:16]opened in 1722038845 [06:47:16]opened+sec_in_day 1722125245 [06:47:16]quantity*price = 320040 [06:47:16]sum+1 = 320041 [06:47:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 3200.00 НСП 1% : 28.32 НДС 12% : 339.86 Наличными: 0.00 Безнал.: 3200.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 21 27.07.2024 06:47 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118078 ФПД: 139386230580102 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T064720&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118078&fm=139386230580102&tin=02508201610067®Number=0000000000092660&sum=320000 [06:47:17]StoreToDocumentArchive [06:47:17]shift 432 fd 118078 [06:47:17]save to /storage/0432/doc_00118078 [06:47:17]save last doc name /storage/0432/doc_00118078 to /storage/kkm_last_doc_name [06:47:17]save OK [06:47:17]Clear old archive folders... [06:47:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:47:17]tlvbuf is 006E99A0 [06:47:17]SAM_PROTO_ClearQueue [06:47:17]wFMCommunicate request_size=4 [06:47:17]MH_SAM_APDU [06:47:17]CAPDU: 80 09 00 00 [06:47:17]Write to MH i2c: E2 08 00 C9 27 80 09 00 00 00 00 00 00 62 [06:47:17]Write i2c OK [06:47:17]MH_I2C_Read... [06:47:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:47:17]Read from MH i2c: E2 [06:47:17]MH_I2C_Read... [06:47:17]Read from MH i2c: E2 03 00 [06:47:17]MH_I2C_Read... [06:47:17]Read from MH i2c: E2 03 00 C9 27 00 90 00 64 [06:47:17]RAPDU: 90 00 [06:47:17]wFMCommunicate OK [06:47:17]SAM_PROTO_ClearQueue done [06:47:17]KKMCreateOFDPacket [06:47:17]OFDProtocolAddRootSTLVToBuf [06:47:17]FM_MakeSignedData [06:47:17]FM_MakeSignedData [06:47:17]SAM_PROTO_SignData [06:47:17]wFMCommunicate request_size=4 [06:47:17]MH_SAM_APDU [06:47:17]CAPDU: 80 0D 01 02 [06:47:17]Write to MH i2c: E2 08 00 CA 27 80 0D 01 02 00 00 00 00 6A [06:47:17]Write i2c OK [06:47:17]MH_I2C_Read... [06:47:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:47:17]Read from MH i2c: E2 [06:47:17]MH_I2C_Read... [06:47:17]Read from MH i2c: E2 03 00 [06:47:17]MH_I2C_Read... [06:47:17]Read from MH i2c: E2 03 00 CA 27 00 90 00 65 [06:47:17]RAPDU: 90 00 [06:47:17]wFMCommunicate OK [06:47:17]wFMCommunicate request_size=255 [06:47:17]MH_SAM_APDU [06:47: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 A4 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 28 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 E2 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 F8 97 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3E CD 01 00 35 04 06 00 7E C5 62 C2 [06:47:17]Write to MH i2c: E2 02 01 CB 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 A4 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 28 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 E2 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 F8 97 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3E CD 01 00 35 04 06 00 7E C5 62 C2 00 00 74 [06:47:17]Write i2c OK [06:47:17]MH_I2C_Read... [06:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:47:18]Read from MH i2c: E2 [06:47:18]MH_I2C_Read... [06:47:18]Read from MH i2c: E2 03 00 [06:47:18]MH_I2C_Read... [06:47:18]Read from MH i2c: E2 03 00 CB 27 00 90 00 66 [06:47:18]RAPDU: 90 00 [06:47:18]wFMCommunicate OK [06:47:18]wFMCommunicate request_size=7 [06:47:18]MH_SAM_APDU [06:47:18]CAPDU: 80 0D 02 02 02 A3 86 [06:47:18]Write to MH i2c: E2 0A 00 CC 27 80 0D 02 02 02 00 A3 86 00 00 9A [06:47:18]Write i2c OK [06:47:18]MH_I2C_Read... [06:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:47:18]Read from MH i2c: E2 [06:47:18]MH_I2C_Read... [06:47:18]Read from MH i2c: E2 03 00 [06:47:18]MH_I2C_Read... [06:47:18]Read from MH i2c: E2 03 00 CC 27 00 90 00 67 [06:47:18]RAPDU: 90 00 [06:47:18]wFMCommunicate OK [06:47:18]wFMCommunicate request_size=4 [06:47:18]MH_SAM_APDU [06:47:18]CAPDU: 80 0D 03 02 [06:47:18]Write to MH i2c: E2 08 00 CD 27 80 0D 03 02 00 00 00 00 6F [06:47:18]Write i2c OK [06:47:18]MH_I2C_Read... [06:47:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:47:18]Read from MH i2c: E2 [06:47:18]MH_I2C_Read... [06:47:18]Read from MH i2c: E2 0B 00 [06:47:18]MH_I2C_Read... [06:47:18]Read from MH i2c: E2 0B 00 CD 27 00 F0 68 B5 8E 07 A2 F9 EB 90 00 98 [06:47:18]RAPDU: F0 68 B5 8E 07 A2 F9 EB 90 00 [06:47:18]wFMCommunicate OK [06:47:18]SAM_PROTO_SignData done [06:47:18]FM_MakeSignedData done [06:47:18]CreateOFDProtocolMessage [06:47:18]wFMCommunicate request_size=4 [06:47:18]MH_SAM_APDU [06:47:18]CAPDU: 80 11 00 00 [06:47:18]Write to MH i2c: E2 08 00 CE 27 80 11 00 00 00 00 00 00 6F [06:47:18]Write i2c OK [06:47:18]MH_I2C_Read... [06:47:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:47:18]Read from MH i2c: E2 [06:47:18]MH_I2C_Read... [06:47:18]Read from MH i2c: E2 17 00 [06:47:18]MH_I2C_Read... [06:47:18]Read from MH i2c: E2 17 00 CE 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CA [06:47:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:47:18]wFMCommunicate OK [06:47:18]CreateOFDProtocolMessage done [06:47:18]OFDSenderStorePacket 118078 [06:47:18]StoreOFDPacket docnum=118078 [06:47:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 04 D4 04 01 81 D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 A4 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 28 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 E2 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 F8 97 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3E CD 01 00 35 04 06 00 7E C5 62 C2 A3 86 F0 68 B5 8E 07 A2 F9 EB [06:47:18]CheckFolder [06:47:18]dirname=/storage/ofd_packets [06:47:18]CheckFolder done [06:47:18]ProducePacketName [06:47:18]name=ofd_packets/00118078 [06:47:18]NVStorageSaveData ofd_packets/00118078 [06:47:18]File name is /storage/ofd_packets/00118078 [06:47:18]Write 298 bytes [06:47:18]NVStorageSaveData done [06:47:18]OFDSenderStorePacket done [06:47:18]KKMCreateOFDPacket done [06:47:18]NVStorageSaveData kkm_last_timestamp [06:47:18]File name is /storage/kkm_last_timestamp [06:47:18]Write 4 bytes [06:47:18]NVStorageSaveData done [06:47:18]ExternCall_PrintAddStr [06:47:18]wPrintStart [06:47:18]Write to MH i2c: 01 00 00 CF 27 F6 [06:47:18]Write i2c OK [06:47:18]MH_I2C_Read... [06:47:18]Read from MH i2c: 01 [06:47:18]MH_I2C_Read... [06:47:18]Read from MH i2c: 01 07 00 [06:47:18]MH_I2C_Read... [06:47:18]Read from MH i2c: 01 07 00 CF 27 00 00 00 00 00 FF 0F 0B [06:47:18]RasterBufferAndPrint [06:47:18]line Счет N : (1)948948 [06:47:18]line ИНН: 02508201610067 [06:47:18]line Контрольно-Кассовый Чек [06:47:18]line ПРОДАЖА [06:47:18]line ТРК (МРК, ГНК) : 21 [06:47:18]line Товар: 2710194800 [06:47:18]line ДТ-К-5 [06:47:18]line 42.000 * 76.20 [06:47:18]line = 3200.40 [06:47:18]line НДС 12% НСП 1% [06:47:18]line > о реализуемом товаре [06:47:18]line ОКРУГЛЕНИЕ: -0.40 [06:47:18]line ИТОГО: 3200.00 [06:47:18]line НСП 1% : 28.32 [06:47:18]line НДС 12% : 339.86 [06:47:18]line Наличными: 0.00 [06:47:18]line Безнал.: 3200.00 [06:47:18]line Место: АЗС № 134 "Партнер Нефть" [06:47:18]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:47:18]line СНО: Общий режим [06:47:18]line Чек 21 27.07.2024 06:47 [06:47:18]line Смена: 432 ФФД: 1.0 [06:47:18]line ЗНМ: 0300000044 [06:47:18]line РНМ: 0000000000092660 [06:47:18]line Версия ККМ: 001 [06:47:18]line Платежная система: O! деньги [06:47:18]line ФМ: 0000000000874939 [06:47:18]line ФД: 118078 [06:47:18]line ФПД: 139386230580102 [06:47:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T064720&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118078&fm=139386230580102&tin=02508201610067®Number=0000000000092660&sum=320000 [06:47:18]OFD Sender: Processing packet 118078 [packets to send 85, broken 84] [06:47:18]ProducePacketName [06:47:18]name=ofd_packets/00118078 [06:47:18]OFD Sender: To server: pG, [06:47:18]CommunicateWithHost lk.salyk.kg:30040 [06:47:18]ConnectInit lk.salyk.kg [06:47:18]written 0, free lines is 4095 [06:47:18]Connected sock=10 [06:47:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 04 D4 04 01 81 D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 A4 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 28 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 E2 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 F8 97 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3E CD 01 00 35 04 06 00 7E C5 62 C2 A3 86 F0 68 B5 8E 07 A2 F9 EB [06:47:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 95 83 47 00 50 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 34 39 33 39 10 04 04 00 3E CD 01 00 F4 03 04 00 8B 45 A4 66 B6 04 01 00 00 B3 80 ED 17 1E 79 DE B7 [06:47:19]CommunicateWithHost err = 0 [06:47:19]CheckOFDResponse [06:47:19]1017 (14) - 77093643461234 [06:47:19]1041 (16) - 0000000000874939 [06:47:19]1040 (4) - 118078 [06:47:19]1012 (4) - 27.07.2024 00:55 [06:47:19]1206 (1) - 0 [06:47:19]OFD Sender: Remove packet 118078 [06:47:19]ProducePacketName [06:47:19]name=ofd_packets/00118078 [06:47:19]NVStorageDeleteData [06:47:19]Write to MH i2c: 01 00 00 F9 27 20 [06:47:19]Write i2c OK [06:47:19]MH_I2C_Read... [06:47:19]Read from MH i2c: 01 [06:47:19]MH_I2C_Read... [06:47:19]Read from MH i2c: 01 07 00 [06:47:19]MH_I2C_Read... [06:47:19]Read from MH i2c: 01 07 00 F9 27 00 00 00 00 00 CF 0C 02 [06:47:19]RasterBufferAndPrint [06:47:19]line [06:47:19]line [06:47:19]line [06:47:19]line [06:47:19]line [06:47:19]written 0, free lines is 3285 [06:47:19]MH_Cut [06:47:19]Write to MH i2c: D1 01 00 00 28 01 FA [06:47:19]Write i2c OK [06:47:19]MH_I2C_Read... [06:47:19]Read from MH i2c: D1 [06:47:19]MH_I2C_Read... [06:47:19]Read from MH i2c: D1 01 00 [06:47:19]MH_I2C_Read... [06:47:19]Read from MH i2c: D1 01 00 00 28 00 F9 [06:47:19]Write to MH i2c: 01 00 00 01 28 29 [06:47:19]Write i2c OK [06:47:19]MH_I2C_Read... [06:47:19]OFD Sender: No OFD packet to send [06:47:19]*** Cut start [06:47:19]*** Partial cut [06:47:19]*** CUTSNS_PIN = 1 [06:47:20]*** CUTSNS_PIN = 0 [06:47:20]*** Brake cut motor [06:47:20]Read from MH i2c: 01 [06:47:20]MH_I2C_Read... [06:47:20]*** Stop cut motor [06:47:20]*** Cut end [06:47:20]Read from MH i2c: 01 07 00 [06:47:20]MH_I2C_Read... [06:47:20]Read from MH i2c: 01 07 00 01 28 00 00 00 00 00 FF 0F 3E [06:47:20]process_action close_receipt done [06:47:20]requested_data is exist [06:47:20]produce_requested_data [06:47:20]requested_item fm.sn is exist - process it [06:47:20]wFMCommunicate request_size=4 [06:47:20]MH_SAM_APDU [06:47:20]CAPDU: 80 11 00 00 [06:47:20]Write to MH i2c: E2 08 00 02 28 80 11 00 00 00 00 00 00 A4 [06:47:20]Write i2c OK [06:47:20]MH_I2C_Read... [06:47:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:47:20]Read from MH i2c: E2 [06:47:20]MH_I2C_Read... [06:47:20]Read from MH i2c: E2 17 00 [06:47:20]MH_I2C_Read... [06:47:20]Read from MH i2c: E2 17 00 02 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FF [06:47:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:47:20]wFMCommunicate OK [06:47:20]requested_item fd.num is exist - process it [06:47:20]SAM_PROTO_GetFieldsCounters [06:47:20]wFMCommunicate request_size=4 [06:47:20]MH_SAM_APDU [06:47:20]CAPDU: 80 13 00 00 [06:47:20]Write to MH i2c: E2 08 00 03 28 80 13 00 00 00 00 00 00 A7 [06:47:20]Write i2c OK [06:47:20]MH_I2C_Read... [06:47:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:47:20]Read from MH i2c: E2 [06:47:20]MH_I2C_Read... [06:47:20]Read from MH i2c: E2 62 00 [06:47:20]MH_I2C_Read... [06:47:20]Read from MH i2c: E2 62 00 03 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3E CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [06:47:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3E CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:47:20]wFMCommunicate OK [06:47:20]SAM_PROTO_GetFieldsCounters done [06:47:20]requested_item shift.num is exist - process it [06:47:20]requested_item shift.opened is exist - process it [06:47:20]req_shift_opened [06:47:20]FM_GetShiftState [06:47:20]SAM_PROTO_GetShiftState [06:47:20]wFMCommunicate request_size=4 [06:47:20]MH_SAM_APDU [06:47:20]CAPDU: 80 13 01 00 [06:47:20]Write to MH i2c: E2 08 00 04 28 80 13 01 00 00 00 00 00 A9 [06:47:20]Write i2c OK [06:47:20]MH_I2C_Read... [06:47:20]Read from MH i2c: E2 [06:47:20]MH_I2C_Read... [06:47:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:47:20]Read from MH i2c: E2 0E 00 [06:47:20]MH_I2C_Read... [06:47:20]Read from MH i2c: E2 0E 00 04 28 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 36 [06:47:20]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [06:47:20]wFMCommunicate OK [06:47:20]SAM_PROTO_GetShiftState done [06:47:20]FM_GetShiftState done [06:47:20]req_shift_opened done [06:47:20]requested_item shift.open_date is exist - process it [06:47:20]req_shift_open_date [06:47:20]req_shift_open_date done [06:47:20]produce_requested_data done [06:47:20]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118078,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [06:47:20]process_action_free close_receipt [06:47:20]json_value_free [06:47:20]json_value_free done [06:47:20]process_json_proto returns [06:47:20]Send response to host [06:47:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118078,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [06:47:20]free response buf [06:47:20]execute_script done [06:47:20]execute_script returns [06:47:20]free content buf [06:47:20]Sock 9.Close socket [06:47:20]Sock 9.Thread stoped [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]accept exits with 7 [06:50:14]New connection [06:50:14]New thread 3067284836 created [06:50:14]Thread 3067428196 joined [06:50:14]Waiting for new connection... [06:50:14] Sock 7.Parse request [06:50:14]Sock 7.Check first char [06:50:14]Sock 7.First char is OK [06:50:14]request: POST /json_proto HTTP/1.0 [06:50:14]Method: POST [06:50:14]URL: /json_proto [06:50:14]Method is POST - this is cgi request [06:50:14]url: /json_proto [06:50:14]query_string will be loaded in cgi processing [06:50:14]execute_cgi json_proto POST (null) [06:50:14]execute_cgi path=json_proto method=POST [06:50:14]POST find Content-Length [06:50:14]Host: 172.17.45.7:8080 [06:50:14]Content-Length: 822 [06:50:14]Content-Type: application/json [06:50:14] [06:50:14]POST finish read [06:50:14]Found Content-Length = 822 [06:50:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:50:14]execute_script... [06: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)948949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:50:14]POST & json_proto [06:50:14]process_json_proto [06:50:14]json parsed OK: [06:50:14]protocol is kg_v1.0 [06:50:14]action value=close_receipt [06:50:14]process_action close_receipt [06:50:14]cmd_close_receipt [06:50:14]MH_GetDate [06:50:14]Write to MH i2c: F0 00 00 05 28 1C [06:50:14]Write i2c OK [06:50:14]MH_I2C_Read... [06:50:14]Read from MH i2c: F0 [06:50:14]MH_I2C_Read... [06:50:14]Read from MH i2c: F0 09 00 [06:50:14]MH_I2C_Read... [06:50:14]Read from MH i2c: F0 09 00 05 28 00 AA 98 A4 66 90 0F 3E 66 B4 [06:50:14]GetLastDocTimeStamp 1722062840 [06:50:14]current date 1722063018 [06:50:14]FM_GetShiftState [06:50:14]SAM_PROTO_GetShiftState [06:50:14]wFMCommunicate request_size=4 [06:50:14]MH_SAM_APDU [06:50:14]CAPDU: 80 13 01 00 [06:50:14]Write to MH i2c: E2 08 00 06 28 80 13 01 00 00 00 00 00 AB [06:50:14]Write i2c OK [06:50:14]MH_I2C_Read... [06:50:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:50:14]Read from MH i2c: E2 [06:50:14]MH_I2C_Read... [06:50:14]Read from MH i2c: E2 0E 00 [06:50:14]MH_I2C_Read... [06:50:14]Read from MH i2c: E2 0E 00 06 28 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 38 [06:50:14]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [06:50:14]wFMCommunicate OK [06:50:14]SAM_PROTO_GetShiftState done [06:50:14]FM_GetShiftState done [06:50:14]opened in 1722038845 [06:50:14]opened+sec_in_day 1722125245 [06:50:14]quantity*price = 100005 [06:50:14]sum+1 = 100006 [06:50:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 22 27.07.2024 06:50 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118079 ФПД: 192603148098813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T065018&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118079&fm=192603148098813&tin=02508201610067®Number=0000000000092660&sum=100000 [06:50:15]StoreToDocumentArchive [06:50:15]shift 432 fd 118079 [06:50:15]save to /storage/0432/doc_00118079 [06:50:15]save last doc name /storage/0432/doc_00118079 to /storage/kkm_last_doc_name [06:50:15]save OK [06:50:15]Clear old archive folders... [06:50:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:50:15]tlvbuf is 007115B0 [06:50:15]SAM_PROTO_ClearQueue [06:50:15]wFMCommunicate request_size=4 [06:50:15]MH_SAM_APDU [06:50:15]CAPDU: 80 09 00 00 [06:50:15]Write to MH i2c: E2 08 00 13 28 80 09 00 00 00 00 00 00 AD [06:50:15]Write i2c OK [06:50:15]MH_I2C_Read... [06:50:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:50:15]Read from MH i2c: E2 [06:50:15]MH_I2C_Read... [06:50:15]Read from MH i2c: E2 03 00 [06:50:15]MH_I2C_Read... [06:50:15]Read from MH i2c: E2 03 00 13 28 00 90 00 AF [06:50:15]RAPDU: 90 00 [06:50:15]wFMCommunicate OK [06:50:15]SAM_PROTO_ClearQueue done [06:50:15]KKMCreateOFDPacket [06:50:15]OFDProtocolAddRootSTLVToBuf [06:50:15]FM_MakeSignedData [06:50:15]FM_MakeSignedData [06:50:15]SAM_PROTO_SignData [06:50:15]wFMCommunicate request_size=4 [06:50:15]MH_SAM_APDU [06:50:15]CAPDU: 80 0D 01 02 [06:50:15]Write to MH i2c: E2 08 00 14 28 80 0D 01 02 00 00 00 00 B5 [06:50:15]Write i2c OK [06:50:15]MH_I2C_Read... [06:50:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:50:15]Read from MH i2c: E2 [06:50:15]MH_I2C_Read... [06:50:15]Read from MH i2c: E2 03 00 [06:50:15]MH_I2C_Read... [06:50:15]Read from MH i2c: E2 03 00 14 28 00 90 00 B0 [06:50:15]RAPDU: 90 00 [06:50:15]wFMCommunicate OK [06:50:15]wFMCommunicate request_size=255 [06:50:15]MH_SAM_APDU [06:50: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 AA 98 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3F CD 01 00 35 04 06 00 AF [06:50:15]Write to MH i2c: E2 02 01 15 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 AA 98 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3F CD 01 00 35 04 06 00 AF 00 00 97 [06:50:15]Write i2c OK [06:50:15]MH_I2C_Read... [06:50:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:50:16]Read from MH i2c: E2 [06:50:16]MH_I2C_Read... [06:50:16]Read from MH i2c: E2 03 00 [06:50:16]MH_I2C_Read... [06:50:16]Read from MH i2c: E2 03 00 15 28 00 90 00 B1 [06:50:16]RAPDU: 90 00 [06:50:16]wFMCommunicate OK [06:50:16]wFMCommunicate request_size=10 [06:50:16]MH_SAM_APDU [06:50:16]CAPDU: 80 0D 02 02 05 2B EA 39 9C FD [06:50:16]Write to MH i2c: E2 0D 00 16 28 80 0D 02 02 05 00 2B EA 39 9C FD 00 00 A9 [06:50:16]Write i2c OK [06:50:16]MH_I2C_Read... [06:50:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:50:16]Read from MH i2c: E2 [06:50:16]MH_I2C_Read... [06:50:16]Read from MH i2c: E2 03 00 [06:50:16]MH_I2C_Read... [06:50:16]Read from MH i2c: E2 03 00 16 28 00 90 00 B2 [06:50:16]RAPDU: 90 00 [06:50:16]wFMCommunicate OK [06:50:16]wFMCommunicate request_size=4 [06:50:16]MH_SAM_APDU [06:50:16]CAPDU: 80 0D 03 02 [06:50:16]Write to MH i2c: E2 08 00 17 28 80 0D 03 02 00 00 00 00 BA [06:50:16]Write i2c OK [06:50:16]MH_I2C_Read... [06:50:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:50:16]Read from MH i2c: E2 [06:50:16]MH_I2C_Read... [06:50:16]Read from MH i2c: E2 0B 00 [06:50:16]MH_I2C_Read... [06:50:16]Read from MH i2c: E2 0B 00 17 28 00 30 ED 0B F1 79 25 89 BD 90 00 B8 [06:50:16]RAPDU: 30 ED 0B F1 79 25 89 BD 90 00 [06:50:16]wFMCommunicate OK [06:50:16]SAM_PROTO_SignData done [06:50:16]FM_MakeSignedData done [06:50:16]CreateOFDProtocolMessage [06:50:16]wFMCommunicate request_size=4 [06:50:16]MH_SAM_APDU [06:50:16]CAPDU: 80 11 00 00 [06:50:16]Write to MH i2c: E2 08 00 18 28 80 11 00 00 00 00 00 00 BA [06:50:16]Write i2c OK [06:50:16]MH_I2C_Read... [06:50:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:50:16]Read from MH i2c: E2 [06:50:16]MH_I2C_Read... [06:50:16]Read from MH i2c: E2 17 00 [06:50:16]MH_I2C_Read... [06:50:16]Read from MH i2c: E2 17 00 18 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 15 [06:50:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:50:16]wFMCommunicate OK [06:50:16]CreateOFDProtocolMessage done [06:50:16]OFDSenderStorePacket 118079 [06:50:16]StoreOFDPacket docnum=118079 [06:50:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A1 FC 07 01 66 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 AA 98 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3F CD 01 00 35 04 06 00 AF 2B EA 39 9C FD 30 ED 0B F1 79 25 89 BD [06:50:16]CheckFolder [06:50:16]dirname=/storage/ofd_packets [06:50:16]CheckFolder done [06:50:16]ProducePacketName [06:50:16]name=ofd_packets/00118079 [06:50:16]NVStorageSaveData ofd_packets/00118079 [06:50:16]File name is /storage/ofd_packets/00118079 [06:50:16]Write 301 bytes [06:50:16]NVStorageSaveData done [06:50:16]OFDSenderStorePacket done [06:50:16]KKMCreateOFDPacket done [06:50:16]NVStorageSaveData kkm_last_timestamp [06:50:16]File name is /storage/kkm_last_timestamp [06:50:16]Write 4 bytes [06:50:16]NVStorageSaveData done [06:50:16]ExternCall_PrintAddStr [06:50:16]wPrintStart [06:50:16]Write to MH i2c: 01 00 00 19 28 41 [06:50:16]Write i2c OK [06:50:16]MH_I2C_Read... [06:50:16]Read from MH i2c: 01 [06:50:16]MH_I2C_Read... [06:50:16]Read from MH i2c: 01 07 00 [06:50:16]MH_I2C_Read... [06:50:16]Read from MH i2c: 01 07 00 19 28 00 00 00 00 00 FF 0F 56 [06:50:16]RasterBufferAndPrint [06:50:16]line Счет N : (1)948949 [06:50:16]line ИНН: 02508201610067 [06:50:16]line Контрольно-Кассовый Чек [06:50:16]line ПРОДАЖА [06:50:16]line ТРК (МРК, ГНК) : 61 [06:50:16]line Товар: 2710124130 [06:50:16]line Аи-92-К-4 [06:50:16]line 14.750 * 67.80 [06:50:16]line = 1000.05 [06:50:16]line НДС 12% НСП 1% [06:50:16]line > о реализуемом товаре [06:50:16]line ОКРУГЛЕНИЕ: -0.05 [06:50:16]line ИТОГО: 1000.00 [06:50:16]line НСП 1% : 8.85 [06:50:16]line НДС 12% : 106.20 [06:50:16]line Наличными: 0.00 [06:50:16]line Безнал.: 1000.00 [06:50:16]line Место: АЗС № 134 "Партнер Нефть" [06:50:16]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:50:16]line СНО: Общий режим [06:50:16]line Чек 22 27.07.2024 06:50 [06:50:16]line Смена: 432 ФФД: 1.0 [06:50:16]line ЗНМ: 0300000044 [06:50:16]line РНМ: 0000000000092660 [06:50:16]line Версия ККМ: 001 [06:50:16]line Платежная система: O! деньги [06:50:16]line ФМ: 0000000000874939 [06:50:16]line ФД: 118079 [06:50:16]line ФПД: 192603148098813 [06:50:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T065018&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118079&fm=192603148098813&tin=02508201610067®Number=0000000000092660&sum=100000 [06:50:16]OFD Sender: Processing packet 118079 [packets to send 85, broken 84] [06:50:16]ProducePacketName [06:50:16]name=ofd_packets/00118079 [06:50:16]OFD Sender: To server: pG, [06:50:16]CommunicateWithHost lk.salyk.kg:30040 [06:50:16]ConnectInit lk.salyk.kg [06:50:16]written 0, free lines is 4095 [06:50:16]Connected sock=11 [06: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 34 39 33 39 0F 01 00 00 A1 FC 07 01 66 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 AA 98 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3F CD 01 00 35 04 06 00 AF 2B EA 39 9C FD 30 ED 0B F1 79 25 89 BD [06:50:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F2 17 47 00 CB 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3F CD 01 00 F4 03 04 00 3D 46 A4 66 B6 04 01 00 00 D5 7B CC 06 64 32 63 0D [06:50:16]CommunicateWithHost err = 0 [06:50:16]CheckOFDResponse [06:50:16]1017 (14) - 77093643461234 [06:50:16]1041 (16) - 0000000000874939 [06:50:16]1040 (4) - 118079 [06:50:16]1012 (4) - 27.07.2024 00:58 [06:50:16]1206 (1) - 0 [06:50:16]OFD Sender: Remove packet 118079 [06:50:16]ProducePacketName [06:50:16]name=ofd_packets/00118079 [06:50:16]NVStorageDeleteData [06:50:17]Write to MH i2c: 01 00 00 43 28 6B [06:50:17]Write i2c OK [06:50:17]MH_I2C_Read... [06:50:17]Read from MH i2c: 01 [06:50:17]MH_I2C_Read... [06:50:17]Read from MH i2c: 01 07 00 [06:50:17]MH_I2C_Read... [06:50:17]Read from MH i2c: 01 07 00 43 28 00 00 00 00 00 DE 0C 5C [06:50:17]RasterBufferAndPrint [06:50:17]line [06:50:17]line [06:50:17]line [06:50:17]line [06:50:17]line [06:50:17]written 0, free lines is 3300 [06:50:17]MH_Cut [06:50:17]Write to MH i2c: D1 01 00 4A 28 01 44 [06:50:17]Write i2c OK [06:50:17]MH_I2C_Read... [06:50:17]Read from MH i2c: D1 [06:50:17]MH_I2C_Read... [06:50:17]Read from MH i2c: D1 01 00 [06:50:17]MH_I2C_Read... [06:50:17]Read from MH i2c: D1 01 00 4A 28 00 43 [06:50:17]Write to MH i2c: 01 00 00 4B 28 73 [06:50:17]Write i2c OK [06:50:17]MH_I2C_Read... [06:50:17]OFD Sender: No OFD packet to send [06:50:17]*** Cut start [06:50:17]*** Partial cut [06:50:17]*** CUTSNS_PIN = 1 [06:50:17]*** CUTSNS_PIN = 0 [06:50:18]*** Brake cut motor [06:50:18]Read from MH i2c: 01 [06:50:18]MH_I2C_Read... [06:50:18]*** Stop cut motor [06:50:18]*** Cut end [06:50:18]Read from MH i2c: 01 07 00 [06:50:18]MH_I2C_Read... [06:50:18]Read from MH i2c: 01 07 00 4B 28 00 00 00 00 00 FF 0F 88 [06:50:18]process_action close_receipt done [06:50:18]requested_data is exist [06:50:18]produce_requested_data [06:50:18]requested_item fm.sn is exist - process it [06:50:18]wFMCommunicate request_size=4 [06:50:18]MH_SAM_APDU [06:50:18]CAPDU: 80 11 00 00 [06:50:18]Write to MH i2c: E2 08 00 4C 28 80 11 00 00 00 00 00 00 EE [06:50:18]Write i2c OK [06:50:18]MH_I2C_Read... [06:50:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:50:18]Read from MH i2c: E2 [06:50:18]MH_I2C_Read... [06:50:18]Read from MH i2c: E2 17 00 [06:50:18]MH_I2C_Read... [06:50:18]Read from MH i2c: E2 17 00 4C 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 49 [06:50:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:50:18]wFMCommunicate OK [06:50:18]requested_item fd.num is exist - process it [06:50:18]SAM_PROTO_GetFieldsCounters [06:50:18]wFMCommunicate request_size=4 [06:50:18]MH_SAM_APDU [06:50:18]CAPDU: 80 13 00 00 [06:50:18]Write to MH i2c: E2 08 00 4D 28 80 13 00 00 00 00 00 00 F1 [06:50:18]Write i2c OK [06:50:18]MH_I2C_Read... [06:50:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:50:18]Read from MH i2c: E2 [06:50:18]MH_I2C_Read... [06:50:18]Read from MH i2c: E2 62 00 [06:50:18]MH_I2C_Read... [06:50:18]Read from MH i2c: E2 62 00 4D 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3F CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [06: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3F CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:50:18]wFMCommunicate OK [06:50:18]SAM_PROTO_GetFieldsCounters done [06:50:18]requested_item shift.num is exist - process it [06:50:18]requested_item shift.opened is exist - process it [06:50:18]req_shift_opened [06:50:18]FM_GetShiftState [06:50:18]SAM_PROTO_GetShiftState [06:50:18]wFMCommunicate request_size=4 [06:50:18]MH_SAM_APDU [06:50:18]CAPDU: 80 13 01 00 [06:50:18]Write to MH i2c: E2 08 00 4E 28 80 13 01 00 00 00 00 00 F3 [06:50:18]Write i2c OK [06:50:18]MH_I2C_Read... [06:50:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:50:18]Read from MH i2c: E2 [06:50:18]MH_I2C_Read... [06:50:18]Read from MH i2c: E2 0E 00 [06:50:18]MH_I2C_Read... [06:50:18]Read from MH i2c: E2 0E 00 4E 28 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 80 [06:50:18]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [06:50:18]wFMCommunicate OK [06:50:18]SAM_PROTO_GetShiftState done [06:50:18]FM_GetShiftState done [06:50:18]req_shift_opened done [06:50:18]requested_item shift.open_date is exist - process it [06:50:18]req_shift_open_date [06:50:18]req_shift_open_date done [06:50:18]produce_requested_data done [06:50:18]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118079,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [06:50:18]process_action_free close_receipt [06:50:18]json_value_free [06:50:18]json_value_free done [06:50:18]process_json_proto returns [06:50:18]Send response to host [06:50:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118079,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [06:50:18]free response buf [06:50:18]execute_script done [06:50:18]execute_script returns [06:50:18]free content buf [06:50:18]Sock 7.Close socket [06:50:18]Sock 7.Thread stoped [06:50:22]OFD Sender: No OFD packet to send [06:50:27]OFD Sender: No OFD packet to send [06:50:32]OFD Sender: No OFD packet to send [06:50:37]OFD Sender: No OFD packet to send [06:50:42]OFD Sender: No OFD packet to send [06:50:47]OFD Sender: No OFD packet to send [06:50:52]OFD Sender: No OFD packet to send [06:50:57]OFD Sender: No OFD packet to send [06:51:02]OFD Sender: No OFD packet to send [06:51:07]OFD Sender: No OFD packet to send [06:51:12]OFD Sender: No OFD packet to send [06:51:17]OFD Sender: No OFD packet to send [06:51:22]OFD Sender: No OFD packet to send [06:51:27]OFD Sender: No OFD packet to send [06:51:32]OFD Sender: No OFD packet to send [06:51:37]OFD Sender: No OFD packet to send [06:51:42]OFD Sender: No OFD packet to send [06:51:47]OFD Sender: No OFD packet to send [06:51:52]OFD Sender: No OFD packet to send [06:51:57]OFD Sender: No OFD packet to send [06:52:02]OFD Sender: No OFD packet to send [06:52:07]OFD Sender: No OFD packet to send [06:52:09]accept exits with 9 [06:52:09]New connection [06:52:09]New thread 3067428196 created [06:52:09]Thread 3067284836 joined [06:52:09]Waiting for new connection... [06:52:09] Sock 9.Parse request [06:52:09]Sock 9.Check first char [06:52:09]Sock 9.First char is OK [06:52:09]request: POST /json_proto HTTP/1.0 [06:52:09]Method: POST [06:52:09]URL: /json_proto [06:52:09]Method is POST - this is cgi request [06:52:09]url: /json_proto [06:52:09]query_string will be loaded in cgi processing [06:52:09]execute_cgi json_proto POST (null) [06:52:09]execute_cgi path=json_proto method=POST [06:52:09]POST find Content-Length [06:52:09]Host: 172.17.45.7:8080 [06:52:09]Content-Length: 822 [06:52:09]Content-Type: application/json [06:52:09] [06:52:09]POST finish read [06:52:09]Found Content-Length = 822 [06:52:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:52:09]execute_script... [06: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)948950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:52:09]POST & json_proto [06:52:09]process_json_proto [06:52:09]json parsed OK: [06:52:09]protocol is kg_v1.0 [06:52:09]action value=close_receipt [06:52:09]process_action close_receipt [06:52:09]cmd_close_receipt [06:52:09]MH_GetDate [06:52:09]Write to MH i2c: F0 00 00 4F 28 66 [06:52:09]Write i2c OK [06:52:09]MH_I2C_Read... [06:52:09]Read from MH i2c: F0 [06:52:09]MH_I2C_Read... [06:52:09]Read from MH i2c: F0 09 00 [06:52:09]MH_I2C_Read... [06:52:09]Read from MH i2c: F0 09 00 4F 28 00 1D 99 A4 66 90 0F 3E 66 72 [06:52:09]GetLastDocTimeStamp 1722063018 [06:52:09]current date 1722063133 [06:52:09]FM_GetShiftState [06:52:09]SAM_PROTO_GetShiftState [06:52:09]wFMCommunicate request_size=4 [06:52:09]MH_SAM_APDU [06:52:09]CAPDU: 80 13 01 00 [06:52:09]Write to MH i2c: E2 08 00 50 28 80 13 01 00 00 00 00 00 F5 [06:52:09]Write i2c OK [06:52:09]MH_I2C_Read... [06:52:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:52:09]Read from MH i2c: E2 [06:52:09]MH_I2C_Read... [06:52:09]Read from MH i2c: E2 0E 00 [06:52:09]MH_I2C_Read... [06:52:09]Read from MH i2c: E2 0E 00 50 28 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 82 [06:52:09]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [06:52:09]wFMCommunicate OK [06:52:09]SAM_PROTO_GetShiftState done [06:52:09]FM_GetShiftState done [06:52:09]opened in 1722038845 [06:52:09]opened+sec_in_day 1722125245 [06:52:09]quantity*price = 100005 [06:52:09]sum+1 = 100006 [06:52:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 23 27.07.2024 06:52 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118080 ФПД: 106984634936634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T065213&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118080&fm=106984634936634&tin=02508201610067®Number=0000000000092660&sum=100000 [06:52:10]StoreToDocumentArchive [06:52:10]shift 432 fd 118080 [06:52:10]save to /storage/0432/doc_00118080 [06:52:10]save last doc name /storage/0432/doc_00118080 to /storage/kkm_last_doc_name [06:52:10]save OK [06:52:10]Clear old archive folders... [06:52:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:52:10]tlvbuf is 00711320 [06:52:10]SAM_PROTO_ClearQueue [06:52:10]wFMCommunicate request_size=4 [06:52:10]MH_SAM_APDU [06:52:10]CAPDU: 80 09 00 00 [06:52:10]Write to MH i2c: E2 08 00 5D 28 80 09 00 00 00 00 00 00 F7 [06:52:10]Write i2c OK [06:52:10]MH_I2C_Read... [06:52:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:52:10]Read from MH i2c: E2 [06:52:10]MH_I2C_Read... [06:52:10]Read from MH i2c: E2 03 00 [06:52:10]MH_I2C_Read... [06:52:10]Read from MH i2c: E2 03 00 5D 28 00 90 00 F9 [06:52:10]RAPDU: 90 00 [06:52:10]wFMCommunicate OK [06:52:10]SAM_PROTO_ClearQueue done [06:52:10]KKMCreateOFDPacket [06:52:10]OFDProtocolAddRootSTLVToBuf [06:52:10]FM_MakeSignedData [06:52:10]FM_MakeSignedData [06:52:10]SAM_PROTO_SignData [06:52:10]wFMCommunicate request_size=4 [06:52:10]MH_SAM_APDU [06:52:10]CAPDU: 80 0D 01 02 [06:52:10]Write to MH i2c: E2 08 00 5E 28 80 0D 01 02 00 00 00 00 FF [06:52:10]Write i2c OK [06:52:10]MH_I2C_Read... [06:52:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:52:10]Read from MH i2c: E2 [06:52:10]MH_I2C_Read... [06:52:10]Read from MH i2c: E2 03 00 [06:52:10]MH_I2C_Read... [06:52:10]Read from MH i2c: E2 03 00 5E 28 00 90 00 FA [06:52:10]RAPDU: 90 00 [06:52:10]wFMCommunicate OK [06:52:10]wFMCommunicate request_size=255 [06:52:10]MH_SAM_APDU [06: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 1D 99 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 40 CD 01 00 35 04 06 00 61 [06:52:10]Write to MH i2c: E2 02 01 5F 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 1D 99 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 40 CD 01 00 35 04 06 00 61 00 00 09 [06:52:10]Write i2c OK [06:52:10]MH_I2C_Read... [06:52:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:52:10]Read from MH i2c: E2 [06:52:10]MH_I2C_Read... [06:52:10]Read from MH i2c: E2 03 00 [06:52:10]MH_I2C_Read... [06:52:10]Read from MH i2c: E2 03 00 5F 28 00 90 00 FB [06:52:10]RAPDU: 90 00 [06:52:10]wFMCommunicate OK [06:52:10]wFMCommunicate request_size=10 [06:52:10]MH_SAM_APDU [06:52:10]CAPDU: 80 0D 02 02 05 4D 4D 29 6D 3A [06:52:10]Write to MH i2c: E2 0D 00 60 28 80 0D 02 02 05 00 4D 4D 29 6D 3A 00 00 76 [06:52:10]Write i2c OK [06:52:10]MH_I2C_Read... [06:52:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:52:11]Read from MH i2c: E2 [06:52:11]MH_I2C_Read... [06:52:11]Read from MH i2c: E2 03 00 [06:52:11]MH_I2C_Read... [06:52:11]Read from MH i2c: E2 03 00 60 28 00 90 00 FC [06:52:11]RAPDU: 90 00 [06:52:11]wFMCommunicate OK [06:52:11]wFMCommunicate request_size=4 [06:52:11]MH_SAM_APDU [06:52:11]CAPDU: 80 0D 03 02 [06:52:11]Write to MH i2c: E2 08 00 61 28 80 0D 03 02 00 00 00 00 04 [06:52:11]Write i2c OK [06:52:11]MH_I2C_Read... [06:52:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:52:11]Read from MH i2c: E2 [06:52:11]MH_I2C_Read... [06:52:11]Read from MH i2c: E2 0B 00 [06:52:11]MH_I2C_Read... [06:52:11]Read from MH i2c: E2 0B 00 61 28 00 67 9B 1F 3B BF C5 E8 82 90 00 4F [06:52:11]RAPDU: 67 9B 1F 3B BF C5 E8 82 90 00 [06:52:11]wFMCommunicate OK [06:52:11]SAM_PROTO_SignData done [06:52:11]FM_MakeSignedData done [06:52:11]CreateOFDProtocolMessage [06:52:11]wFMCommunicate request_size=4 [06:52:11]MH_SAM_APDU [06:52:11]CAPDU: 80 11 00 00 [06:52:11]Write to MH i2c: E2 08 00 62 28 80 11 00 00 00 00 00 00 04 [06:52:11]Write i2c OK [06:52:11]MH_I2C_Read... [06:52:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:52:11]Read from MH i2c: E2 [06:52:11]MH_I2C_Read... [06:52:11]Read from MH i2c: E2 17 00 [06:52:11]MH_I2C_Read... [06:52:11]Read from MH i2c: E2 17 00 62 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5F [06:52:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:52:11]wFMCommunicate OK [06:52:11]CreateOFDProtocolMessage done [06:52:11]OFDSenderStorePacket 118080 [06:52:11]StoreOFDPacket docnum=118080 [06:52:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 13 C0 07 01 48 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 1D 99 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 40 CD 01 00 35 04 06 00 61 4D 4D 29 6D 3A 67 9B 1F 3B BF C5 E8 82 [06:52:11]CheckFolder [06:52:11]dirname=/storage/ofd_packets [06:52:11]CheckFolder done [06:52:11]ProducePacketName [06:52:11]name=ofd_packets/00118080 [06:52:11]NVStorageSaveData ofd_packets/00118080 [06:52:11]File name is /storage/ofd_packets/00118080 [06:52:11]Write 301 bytes [06:52:11]NVStorageSaveData done [06:52:11]OFDSenderStorePacket done [06:52:11]KKMCreateOFDPacket done [06:52:11]NVStorageSaveData kkm_last_timestamp [06:52:11]File name is /storage/kkm_last_timestamp [06:52:11]Write 4 bytes [06:52:11]NVStorageSaveData done [06:52:11]ExternCall_PrintAddStr [06:52:11]wPrintStart [06:52:11]Write to MH i2c: 01 00 00 63 28 8B [06:52:11]Write i2c OK [06:52:11]MH_I2C_Read... [06:52:11]Read from MH i2c: 01 [06:52:11]MH_I2C_Read... [06:52:11]Read from MH i2c: 01 07 00 [06:52:11]MH_I2C_Read... [06:52:11]Read from MH i2c: 01 07 00 63 28 00 00 00 00 00 FF 0F A0 [06:52:11]RasterBufferAndPrint [06:52:11]line Счет N : (1)948950 [06:52:11]line ИНН: 02508201610067 [06:52:11]line Контрольно-Кассовый Чек [06:52:11]line ПРОДАЖА [06:52:11]line ТРК (МРК, ГНК) : 51 [06:52:11]line Товар: 2710124130 [06:52:11]line Аи-92-К-4 [06:52:11]line 14.750 * 67.80 [06:52:11]line = 1000.05 [06:52:11]line НДС 12% НСП 1% [06:52:11]line > о реализуемом товаре [06:52:11]line ОКРУГЛЕНИЕ: -0.05 [06:52:11]line ИТОГО: 1000.00 [06:52:11]line НСП 1% : 8.85 [06:52:11]line НДС 12% : 106.20 [06:52:11]line Наличными: 0.00 [06:52:11]line Безнал.: 1000.00 [06:52:11]line Место: АЗС № 134 "Партнер Нефть" [06:52:11]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:52:11]line СНО: Общий режим [06:52:11]line Чек 23 27.07.2024 06:52 [06:52:11]line Смена: 432 ФФД: 1.0 [06:52:11]line ЗНМ: 0300000044 [06:52:11]line РНМ: 0000000000092660 [06:52:11]line Версия ККМ: 001 [06:52:11]line Платежная система: O! деньги [06:52:11]line ФМ: 0000000000874939 [06:52:11]line ФД: 118080 [06:52:11]line ФПД: 106984634936634 [06:52:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T065213&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118080&fm=106984634936634&tin=02508201610067®Number=0000000000092660&sum=100000 [06:52:11]written 0, free lines is 4095 [06:52:11]OFD Sender: Processing packet 118080 [packets to send 85, broken 84] [06:52:11]ProducePacketName [06:52:11]name=ofd_packets/00118080 [06:52:11]OFD Sender: To server: pG, [06:52:11]CommunicateWithHost lk.salyk.kg:30040 [06:52:11]ConnectInit lk.salyk.kg [06:52:11]Connected sock=10 [06: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 34 39 33 39 0F 01 00 00 13 C0 07 01 48 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 1D 99 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 40 CD 01 00 35 04 06 00 61 4D 4D 29 6D 3A 67 9B 1F 3B BF C5 E8 82 [06:52:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 9A C1 47 00 14 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 40 CD 01 00 F4 03 04 00 B0 46 A4 66 B6 04 01 00 00 DE B9 D0 12 06 EF A0 A3 [06:52:11]CommunicateWithHost err = 0 [06:52:11]CheckOFDResponse [06:52:11]1017 (14) - 77093643461234 [06:52:11]1041 (16) - 0000000000874939 [06:52:11]1040 (4) - 118080 [06:52:11]1012 (4) - 27.07.2024 01:00 [06:52:11]1206 (1) - 0 [06:52:11]OFD Sender: Remove packet 118080 [06:52:11]ProducePacketName [06:52:11]name=ofd_packets/00118080 [06:52:11]NVStorageDeleteData [06:52:11]Write to MH i2c: 01 00 00 8D 28 B5 [06:52:11]Write i2c OK [06:52:11]MH_I2C_Read... [06:52:11]Read from MH i2c: 01 [06:52:11]MH_I2C_Read... [06:52:11]Read from MH i2c: 01 07 00 [06:52:11]MH_I2C_Read... [06:52:11]Read from MH i2c: 01 07 00 8D 28 00 00 00 00 00 D1 0C 99 [06:52:11]RasterBufferAndPrint [06:52:11]line [06:52:11]line [06:52:11]line [06:52:11]line [06:52:11]line [06:52:11]written 0, free lines is 3287 [06:52:11]MH_Cut [06:52:11]Write to MH i2c: D1 01 00 94 28 01 8E [06:52:11]Write i2c OK [06:52:11]MH_I2C_Read... [06:52:11]Read from MH i2c: D1 [06:52:11]MH_I2C_Read... [06:52:11]Read from MH i2c: D1 01 00 [06:52:11]MH_I2C_Read... [06:52:11]Read from MH i2c: D1 01 00 94 28 00 8D [06:52:11]Write to MH i2c: 01 00 00 95 28 BD [06:52:11]Write i2c OK [06:52:11]MH_I2C_Read... [06:52:12]OFD Sender: No OFD packet to send [06:52:12]*** Cut start [06:52:12]*** Partial cut [06:52:12]*** CUTSNS_PIN = 1 [06:52:12]*** CUTSNS_PIN = 0 [06:52:12]*** Brake cut motor [06:52:13]Read from MH i2c: 01 [06:52:13]MH_I2C_Read... [06:52:13]*** Stop cut motor [06:52:13]*** Cut end [06:52:13]Read from MH i2c: 01 07 00 [06:52:13]MH_I2C_Read... [06:52:13]Read from MH i2c: 01 07 00 95 28 00 00 00 00 00 FF 0F D2 [06:52:13]process_action close_receipt done [06:52:13]requested_data is exist [06:52:13]produce_requested_data [06:52:13]requested_item fm.sn is exist - process it [06:52:13]wFMCommunicate request_size=4 [06:52:13]MH_SAM_APDU [06:52:13]CAPDU: 80 11 00 00 [06:52:13]Write to MH i2c: E2 08 00 96 28 80 11 00 00 00 00 00 00 38 [06:52:13]Write i2c OK [06:52:13]MH_I2C_Read... [06:52:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:52:13]Read from MH i2c: E2 [06:52:13]MH_I2C_Read... [06:52:13]Read from MH i2c: E2 17 00 [06:52:13]MH_I2C_Read... [06:52:13]Read from MH i2c: E2 17 00 96 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 93 [06:52:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:52:13]wFMCommunicate OK [06:52:13]requested_item fd.num is exist - process it [06:52:13]SAM_PROTO_GetFieldsCounters [06:52:13]wFMCommunicate request_size=4 [06:52:13]MH_SAM_APDU [06:52:13]CAPDU: 80 13 00 00 [06:52:13]Write to MH i2c: E2 08 00 97 28 80 13 00 00 00 00 00 00 3B [06:52:13]Write i2c OK [06:52:13]MH_I2C_Read... [06:52:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:52:13]Read from MH i2c: E2 [06:52:13]MH_I2C_Read... [06:52:13]Read from MH i2c: E2 62 00 [06:52:13]MH_I2C_Read... [06:52:13]Read from MH i2c: E2 62 00 97 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 40 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [06: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 40 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:52:13]wFMCommunicate OK [06:52:13]SAM_PROTO_GetFieldsCounters done [06:52:13]requested_item shift.num is exist - process it [06:52:13]requested_item shift.opened is exist - process it [06:52:13]req_shift_opened [06:52:13]FM_GetShiftState [06:52:13]SAM_PROTO_GetShiftState [06:52:13]wFMCommunicate request_size=4 [06:52:13]MH_SAM_APDU [06:52:13]CAPDU: 80 13 01 00 [06:52:13]Write to MH i2c: E2 08 00 98 28 80 13 01 00 00 00 00 00 3D [06:52:13]Write i2c OK [06:52:13]MH_I2C_Read... [06:52:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:52:13]Read from MH i2c: E2 [06:52:13]MH_I2C_Read... [06:52:13]Read from MH i2c: E2 0E 00 [06:52:13]MH_I2C_Read... [06:52:13]Read from MH i2c: E2 0E 00 98 28 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 CA [06:52:13]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [06:52:13]wFMCommunicate OK [06:52:13]SAM_PROTO_GetShiftState done [06:52:13]FM_GetShiftState done [06:52:13]req_shift_opened done [06:52:13]requested_item shift.open_date is exist - process it [06:52:13]req_shift_open_date [06:52:13]req_shift_open_date done [06:52:13]produce_requested_data done [06:52:13]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118080,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [06:52:13]process_action_free close_receipt [06:52:13]json_value_free [06:52:13]json_value_free done [06:52:13]process_json_proto returns [06:52:13]Send response to host [06:52:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118080,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [06:52:13]free response buf [06:52:13]execute_script done [06:52:13]execute_script returns [06:52:13]free content buf [06:52:13]Sock 9.Close socket [06:52:13]Sock 9.Thread stoped [06:52:17]OFD Sender: No OFD packet to send [06:52:22]OFD Sender: No OFD packet to send [06:52:27]OFD Sender: No OFD packet to send [06:52:32]OFD Sender: No OFD packet to send [06:52:37]OFD Sender: No OFD packet to send [06:52:42]OFD Sender: No OFD packet to send [06:52:47]OFD Sender: No OFD packet to send [06:52:52]OFD Sender: No OFD packet to send [06:52:57]OFD Sender: No OFD packet to send [06:53:02]OFD Sender: No OFD packet to send [06:53:07]OFD Sender: No OFD packet to send [06:53:12]OFD Sender: No OFD packet to send [06:53:17]OFD Sender: No OFD packet to send [06:53:22]OFD Sender: No OFD packet to send [06:53:27]OFD Sender: No OFD packet to send [06:53:32]OFD Sender: No OFD packet to send [06:53:33]accept exits with 7 [06:53:33]New connection [06:53:33]New thread 3067284836 created [06:53:33]Thread 3067428196 joined [06:53:33]Waiting for new connection... [06:53:33] Sock 7.Parse request [06:53:33]Sock 7.Check first char [06:53:33]Sock 7.First char is OK [06:53:33]request: POST /json_proto HTTP/1.0 [06:53:33]Method: POST [06:53:33]URL: /json_proto [06:53:33]Method is POST - this is cgi request [06:53:33]url: /json_proto [06:53:33]query_string will be loaded in cgi processing [06:53:33]execute_cgi json_proto POST (null) [06:53:33]execute_cgi path=json_proto method=POST [06:53:33]POST find Content-Length [06:53:33]Host: 172.17.45.7:8080 [06:53:33]Content-Length: 834 [06:53:33]Content-Type: application/json [06:53:33] [06:53:33]POST finish read [06:53:33]Found Content-Length = 834 [06:53:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.20, "quantity" : 6.690, "sum" : 449.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 449.00, "payments": [ { "type": 1, "sum" : 449.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:53:33]execute_script... [06:53: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)948951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.20, "quantity" : 6.690, "sum" : 449.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 449.00, "payments": [ { "type": 1, "sum" : 449.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:53:33]POST & json_proto [06:53:33]process_json_proto [06:53:33]json parsed OK: [06:53:33]protocol is kg_v1.0 [06:53:33]action value=close_receipt [06:53:33]process_action close_receipt [06:53:33]cmd_close_receipt [06:53:33]MH_GetDate [06:53:33]Write to MH i2c: F0 00 00 99 28 B0 [06:53:33]Write i2c OK [06:53:33]MH_I2C_Read... [06:53:33]Read from MH i2c: F0 [06:53:33]MH_I2C_Read... [06:53:33]Read from MH i2c: F0 09 00 [06:53:33]MH_I2C_Read... [06:53:33]Read from MH i2c: F0 09 00 99 28 00 71 99 A4 66 90 0F 3E 66 10 [06:53:33]GetLastDocTimeStamp 1722063133 [06:53:33]current date 1722063217 [06:53:33]FM_GetShiftState [06:53:33]SAM_PROTO_GetShiftState [06:53:33]wFMCommunicate request_size=4 [06:53:33]MH_SAM_APDU [06:53:33]CAPDU: 80 13 01 00 [06:53:33]Write to MH i2c: E2 08 00 9A 28 80 13 01 00 00 00 00 00 3F [06:53:33]Write i2c OK [06:53:33]MH_I2C_Read... [06:53:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:53:33]Read from MH i2c: E2 [06:53:33]MH_I2C_Read... [06:53:33]Read from MH i2c: E2 0E 00 [06:53:33]MH_I2C_Read... [06:53:33]Read from MH i2c: E2 0E 00 9A 28 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 CC [06:53:33]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [06:53:33]wFMCommunicate OK [06:53:33]SAM_PROTO_GetShiftState done [06:53:33]FM_GetShiftState done [06:53:33]opened in 1722038845 [06:53:33]opened+sec_in_day 1722125245 [06:53:33]quantity*price = 44956 [06:53:33]sum+1 = 44958 [06:53:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 449.00 НСП 1% : 3.98 НДС 12% : 47.74 Наличными: 0.00 Безнал.: 449.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 24 27.07.2024 06:53 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874939 ФД: 118081 ФПД: 238223613463190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T065337&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118081&fm=238223613463190&tin=02508201610067®Number=0000000000092660&sum=44900 [06:53:34]StoreToDocumentArchive [06:53:34]shift 432 fd 118081 [06:53:34]save to /storage/0432/doc_00118081 [06:53:34]save last doc name /storage/0432/doc_00118081 to /storage/kkm_last_doc_name [06:53:34]save OK [06:53:34]Clear old archive folders... [06:53:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:53:34]tlvbuf is 006D5640 [06:53:34]SAM_PROTO_ClearQueue [06:53:34]wFMCommunicate request_size=4 [06:53:34]MH_SAM_APDU [06:53:34]CAPDU: 80 09 00 00 [06:53:34]Write to MH i2c: E2 08 00 A7 28 80 09 00 00 00 00 00 00 41 [06:53:34]Write i2c OK [06:53:34]MH_I2C_Read... [06:53:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:53:34]Read from MH i2c: E2 [06:53:34]MH_I2C_Read... [06:53:34]Read from MH i2c: E2 03 00 [06:53:34]MH_I2C_Read... [06:53:34]Read from MH i2c: E2 03 00 A7 28 00 90 00 43 [06:53:34]RAPDU: 90 00 [06:53:34]wFMCommunicate OK [06:53:34]SAM_PROTO_ClearQueue done [06:53:34]KKMCreateOFDPacket [06:53:34]OFDProtocolAddRootSTLVToBuf [06:53:34]FM_MakeSignedData [06:53:34]FM_MakeSignedData [06:53:34]SAM_PROTO_SignData [06:53:34]wFMCommunicate request_size=4 [06:53:34]MH_SAM_APDU [06:53:34]CAPDU: 80 0D 01 02 [06:53:34]Write to MH i2c: E2 08 00 A8 28 80 0D 01 02 00 00 00 00 49 [06:53:34]Write i2c OK [06:53:34]MH_I2C_Read... [06:53:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:53:34]Read from MH i2c: E2 [06:53:34]MH_I2C_Read... [06:53:34]Read from MH i2c: E2 03 00 [06:53:34]MH_I2C_Read... [06:53:34]Read from MH i2c: E2 03 00 A8 28 00 90 00 44 [06:53:34]RAPDU: 90 00 [06:53:34]wFMCommunicate OK [06:53:34]wFMCommunicate request_size=255 [06:53:34]MH_SAM_APDU [06:53:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 22 1A 00 00 00 00 00 37 04 06 00 40 1A 00 00 00 00 13 04 06 00 9D AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 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 A6 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 71 99 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 41 CD 01 00 35 04 06 00 D8 [06:53:34]Write to MH i2c: E2 02 01 A9 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 34 FF 03 08 00 03 22 1A 00 00 00 00 00 37 04 06 00 40 1A 00 00 00 00 13 04 06 00 9D AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 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 A6 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 71 99 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 41 CD 01 00 35 04 06 00 D8 00 00 6B [06:53:34]Write i2c OK [06:53:34]MH_I2C_Read... [06:53:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:53:34]Read from MH i2c: E2 [06:53:34]MH_I2C_Read... [06:53:34]Read from MH i2c: E2 03 00 [06:53:34]MH_I2C_Read... [06:53:34]Read from MH i2c: E2 03 00 A9 28 00 90 00 45 [06:53:34]RAPDU: 90 00 [06:53:34]wFMCommunicate OK [06:53:34]wFMCommunicate request_size=10 [06:53:34]MH_SAM_APDU [06:53:34]CAPDU: 80 0D 02 02 05 A9 C1 DB 8A 96 [06:53:34]Write to MH i2c: E2 0D 00 AA 28 80 0D 02 02 05 00 A9 C1 DB 8A 96 00 00 BB [06:53:34]Write i2c OK [06:53:34]MH_I2C_Read... [06:53:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:53:35]Read from MH i2c: E2 [06:53:35]MH_I2C_Read... [06:53:35]Read from MH i2c: E2 03 00 [06:53:35]MH_I2C_Read... [06:53:35]Read from MH i2c: E2 03 00 AA 28 00 90 00 46 [06:53:35]RAPDU: 90 00 [06:53:35]wFMCommunicate OK [06:53:35]wFMCommunicate request_size=4 [06:53:35]MH_SAM_APDU [06:53:35]CAPDU: 80 0D 03 02 [06:53:35]Write to MH i2c: E2 08 00 AB 28 80 0D 03 02 00 00 00 00 4E [06:53:35]Write i2c OK [06:53:35]MH_I2C_Read... [06:53:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:53:35]Read from MH i2c: E2 [06:53:35]MH_I2C_Read... [06:53:35]Read from MH i2c: E2 0B 00 [06:53:35]MH_I2C_Read... [06:53:35]Read from MH i2c: E2 0B 00 AB 28 00 1B E9 01 53 AB 71 41 E2 90 00 E6 [06:53:35]RAPDU: 1B E9 01 53 AB 71 41 E2 90 00 [06:53:35]wFMCommunicate OK [06:53:35]SAM_PROTO_SignData done [06:53:35]FM_MakeSignedData done [06:53:35]CreateOFDProtocolMessage [06:53:35]wFMCommunicate request_size=4 [06:53:35]MH_SAM_APDU [06:53:35]CAPDU: 80 11 00 00 [06:53:35]Write to MH i2c: E2 08 00 AC 28 80 11 00 00 00 00 00 00 4E [06:53:35]Write i2c OK [06:53:35]MH_I2C_Read... [06:53:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:53:35]Read from MH i2c: E2 [06:53:35]MH_I2C_Read... [06:53:35]Read from MH i2c: E2 17 00 [06:53:35]MH_I2C_Read... [06:53:35]Read from MH i2c: E2 17 00 AC 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A9 [06:53:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:53:35]wFMCommunicate OK [06:53:35]CreateOFDProtocolMessage done [06:53:35]OFDSenderStorePacket 118081 [06:53:35]StoreOFDPacket docnum=118081 [06:53:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 DF AA 07 01 C3 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 22 1A 00 00 00 00 00 37 04 06 00 40 1A 00 00 00 00 13 04 06 00 9D AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 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 A6 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 71 99 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 41 CD 01 00 35 04 06 00 D8 A9 C1 DB 8A 96 1B E9 01 53 AB 71 41 E2 [06:53:35]CheckFolder [06:53:35]dirname=/storage/ofd_packets [06:53:35]CheckFolder done [06:53:35]ProducePacketName [06:53:35]name=ofd_packets/00118081 [06:53:35]NVStorageSaveData ofd_packets/00118081 [06:53:35]File name is /storage/ofd_packets/00118081 [06:53:35]Write 301 bytes [06:53:35]NVStorageSaveData done [06:53:35]OFDSenderStorePacket done [06:53:35]KKMCreateOFDPacket done [06:53:35]NVStorageSaveData kkm_last_timestamp [06:53:35]File name is /storage/kkm_last_timestamp [06:53:35]Write 4 bytes [06:53:35]NVStorageSaveData done [06:53:35]ExternCall_PrintAddStr [06:53:35]wPrintStart [06:53:35]Write to MH i2c: 01 00 00 AD 28 D5 [06:53:35]Write i2c OK [06:53:35]MH_I2C_Read... [06:53:35]Read from MH i2c: 01 [06:53:35]MH_I2C_Read... [06:53:35]Read from MH i2c: 01 07 00 [06:53:35]MH_I2C_Read... [06:53:35]Read from MH i2c: 01 07 00 AD 28 00 00 00 00 00 FF 0F EA [06:53:35]RasterBufferAndPrint [06:53:35]line Счет N : (1)948951 [06:53:35]line ИНН: 02508201610067 [06:53:35]line Контрольно-Кассовый Чек [06:53:35]line ПРОДАЖА [06:53:35]line ТРК (МРК, ГНК) : 31 [06:53:35]line Товар: 2710124130 [06:53:35]line Аи-92-К-4 [06:53:35]line 6.690 * 67.20 [06:53:35]line = 449.57 [06:53:35]line НДС 12% НСП 1% [06:53:35]line > о реализуемом товаре [06:53:35]line ОКРУГЛЕНИЕ: -0.57 [06:53:35]line ИТОГО: 449.00 [06:53:35]line НСП 1% : 3.98 [06:53:35]line НДС 12% : 47.74 [06:53:35]line Наличными: 0.00 [06:53:35]line Безнал.: 449.00 [06:53:35]line Место: АЗС № 134 "Партнер Нефть" [06:53:35]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:53:35]line СНО: Общий режим [06:53:35]line Чек 24 27.07.2024 06:53 [06:53:35]line Смена: 432 ФФД: 1.0 [06:53:35]line ЗНМ: 0300000044 [06:53:35]line РНМ: 0000000000092660 [06:53:35]line Версия ККМ: 001 [06:53:35]line Платежная система: Бакай Банк [06:53:35]line ФМ: 0000000000874939 [06:53:35]line ФД: 118081 [06:53:35]line ФПД: 238223613463190 [06:53:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T065337&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118081&fm=238223613463190&tin=02508201610067®Number=0000000000092660&sum=44900 [06:53:35]written 0, free lines is 4095 [06:53:35]OFD Sender: Processing packet 118081 [packets to send 85, broken 84] [06:53:35]ProducePacketName [06:53:35]name=ofd_packets/00118081 [06:53:35]OFD Sender: To server: pG, [06:53:35]CommunicateWithHost lk.salyk.kg:30040 [06:53:35]ConnectInit lk.salyk.kg [06:53:35]Connected sock=10 [06:53:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 DF AA 07 01 C3 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 22 1A 00 00 00 00 00 37 04 06 00 40 1A 00 00 00 00 13 04 06 00 9D AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 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 A6 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 71 99 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 41 CD 01 00 35 04 06 00 D8 A9 C1 DB 8A 96 1B E9 01 53 AB 71 41 E2 [06:53:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 10 8B 47 00 E2 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 41 CD 01 00 F4 03 04 00 04 47 A4 66 B6 04 01 00 00 66 DE 22 88 B3 BB FD 9D [06:53:35]CommunicateWithHost err = 0 [06:53:35]CheckOFDResponse [06:53:35]1017 (14) - 77093643461234 [06:53:35]1041 (16) - 0000000000874939 [06:53:35]1040 (4) - 118081 [06:53:35]1012 (4) - 27.07.2024 01:01 [06:53:35]1206 (1) - 0 [06:53:35]OFD Sender: Remove packet 118081 [06:53:35]ProducePacketName [06:53:35]name=ofd_packets/00118081 [06:53:35]NVStorageDeleteData [06:53:35]Write to MH i2c: 01 00 00 D7 28 FF [06:53:35]Write i2c OK [06:53:35]MH_I2C_Read... [06:53:35]Read from MH i2c: 01 [06:53:35]MH_I2C_Read... [06:53:35]Read from MH i2c: 01 07 00 [06:53:35]MH_I2C_Read... [06:53:35]Read from MH i2c: 01 07 00 D7 28 00 00 00 00 00 D1 0C E3 [06:53:35]RasterBufferAndPrint [06:53:35]line [06:53:35]line [06:53:35]line [06:53:35]line [06:53:35]line [06:53:35]written 0, free lines is 3288 [06:53:35]MH_Cut [06:53:35]Write to MH i2c: D1 01 00 DE 28 01 D8 [06:53:35]Write i2c OK [06:53:35]MH_I2C_Read... [06:53:35]Read from MH i2c: D1 [06:53:35]MH_I2C_Read... [06:53:35]Read from MH i2c: D1 01 00 [06:53:35]MH_I2C_Read... [06:53:35]Read from MH i2c: D1 01 00 DE 28 00 D7 [06:53:35]Write to MH i2c: 01 00 00 DF 28 07 [06:53:35]Write i2c OK [06:53:35]MH_I2C_Read... [06:53:36]OFD Sender: No OFD packet to send [06:53:36]*** Cut start [06:53:36]*** Partial cut [06:53:36]*** CUTSNS_PIN = 1 [06:53:36]*** CUTSNS_PIN = 0 [06:53:36]*** Brake cut motor [06:53:37]Read from MH i2c: 01 [06:53:37]MH_I2C_Read... [06:53:37]*** Stop cut motor [06:53:37]*** Cut end [06:53:37]Read from MH i2c: 01 07 00 [06:53:37]MH_I2C_Read... [06:53:37]Read from MH i2c: 01 07 00 DF 28 00 00 00 00 00 FF 0F 1C [06:53:37]process_action close_receipt done [06:53:37]requested_data is exist [06:53:37]produce_requested_data [06:53:37]requested_item fm.sn is exist - process it [06:53:37]wFMCommunicate request_size=4 [06:53:37]MH_SAM_APDU [06:53:37]CAPDU: 80 11 00 00 [06:53:37]Write to MH i2c: E2 08 00 E0 28 80 11 00 00 00 00 00 00 82 [06:53:37]Write i2c OK [06:53:37]MH_I2C_Read... [06:53:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:53:37]Read from MH i2c: E2 [06:53:37]MH_I2C_Read... [06:53:37]Read from MH i2c: E2 17 00 [06:53:37]MH_I2C_Read... [06:53:37]Read from MH i2c: E2 17 00 E0 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DD [06:53:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:53:37]wFMCommunicate OK [06:53:37]requested_item fd.num is exist - process it [06:53:37]SAM_PROTO_GetFieldsCounters [06:53:37]wFMCommunicate request_size=4 [06:53:37]MH_SAM_APDU [06:53:37]CAPDU: 80 13 00 00 [06:53:37]Write to MH i2c: E2 08 00 E1 28 80 13 00 00 00 00 00 00 85 [06:53:37]Write i2c OK [06:53:37]MH_I2C_Read... [06:53:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:53:37]Read from MH i2c: E2 [06:53:37]MH_I2C_Read... [06:53:37]Read from MH i2c: E2 62 00 [06:53:37]MH_I2C_Read... [06:53:37]Read from MH i2c: E2 62 00 E1 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 41 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [06:53:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 41 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:53:37]wFMCommunicate OK [06:53:37]SAM_PROTO_GetFieldsCounters done [06:53:37]requested_item shift.num is exist - process it [06:53:37]requested_item shift.opened is exist - process it [06:53:37]req_shift_opened [06:53:37]FM_GetShiftState [06:53:37]SAM_PROTO_GetShiftState [06:53:37]wFMCommunicate request_size=4 [06:53:37]MH_SAM_APDU [06:53:37]CAPDU: 80 13 01 00 [06:53:37]Write to MH i2c: E2 08 00 E2 28 80 13 01 00 00 00 00 00 87 [06:53:37]Write i2c OK [06:53:37]MH_I2C_Read... [06:53:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:53:37]Read from MH i2c: E2 [06:53:37]MH_I2C_Read... [06:53:37]Read from MH i2c: E2 0E 00 [06:53:37]MH_I2C_Read... [06:53:37]Read from MH i2c: E2 0E 00 E2 28 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 14 [06:53:37]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [06:53:37]wFMCommunicate OK [06:53:37]SAM_PROTO_GetShiftState done [06:53:37]FM_GetShiftState done [06:53:37]req_shift_opened done [06:53:37]requested_item shift.open_date is exist - process it [06:53:37]req_shift_open_date [06:53:37]req_shift_open_date done [06:53:37]produce_requested_data done [06:53:37]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118081,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [06:53:37]process_action_free close_receipt [06:53:37]json_value_free [06:53:37]json_value_free done [06:53:37]process_json_proto returns [06:53:37]Send response to host [06:53:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118081,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [06:53:37]free response buf [06:53:37]execute_script done [06:53:37]execute_script returns [06:53:37]free content buf [06:53:37]Sock 7.Close socket [06:53:37]Sock 7.Thread stoped [06:53:41]OFD Sender: No OFD packet to send [06:53:46]OFD Sender: No OFD packet to send [06:53:51]OFD Sender: No OFD packet to send [06:53:56]OFD Sender: No OFD packet to send [06:54:01]OFD Sender: No OFD packet to send [06:54:06]OFD Sender: No OFD packet to send [06:54:11]OFD Sender: No OFD packet to send [06:54:16]OFD Sender: No OFD packet to send [06:54:21]OFD Sender: No OFD packet to send [06:54:26]OFD Sender: No OFD packet to send [06:54:31]OFD Sender: No OFD packet to send [06:54:36]OFD Sender: No OFD packet to send [06:54:41]OFD Sender: No OFD packet to send [06:54:46]OFD Sender: No OFD packet to send [06:54:51]OFD Sender: No OFD packet to send [06:54:56]OFD Sender: No OFD packet to send [06:55:01]OFD Sender: No OFD packet to send [06:55:06]OFD Sender: No OFD packet to send [06:55:11]OFD Sender: No OFD packet to send [06:55:16]OFD Sender: No OFD packet to send [06:55:21]OFD Sender: No OFD packet to send [06:55:26]OFD Sender: No OFD packet to send [06:55:31]OFD Sender: No OFD packet to send [06:55:36]OFD Sender: No OFD packet to send [06:55:41]OFD Sender: No OFD packet to send [06:55:46]OFD Sender: No OFD packet to send [06:55:51]OFD Sender: No OFD packet to send [06:55:56]OFD Sender: No OFD packet to send [06:56:01]OFD Sender: No OFD packet to send [06:56:06]OFD Sender: No OFD packet to send [06:56:11]OFD Sender: No OFD packet to send [06:56:16]OFD Sender: No OFD packet to send [06:56:21]OFD Sender: No OFD packet to send [06:56:26]OFD Sender: No OFD packet to send [06:56:31]OFD Sender: No OFD packet to send [06:56:36]OFD Sender: No OFD packet to send [06:56:41]OFD Sender: No OFD packet to send [06:56:46]OFD Sender: No OFD packet to send [06:56:51]OFD Sender: No OFD packet to send [06:56:56]OFD Sender: No OFD packet to send [06:57:01]OFD Sender: No OFD packet to send [06:57:06]OFD Sender: No OFD packet to send [06:57:11]OFD Sender: No OFD packet to send [06:57:16]OFD Sender: No OFD packet to send [06:57:21]OFD Sender: No OFD packet to send [06:57:26]OFD Sender: No OFD packet to send [06:57:31]OFD Sender: No OFD packet to send [06:57:36]OFD Sender: No OFD packet to send [06:57:41]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58:41]OFD Sender: No OFD packet to send [06:58:46]OFD Sender: No OFD packet to send [06:58:51]OFD Sender: No OFD packet to send [06:58:56]OFD Sender: No OFD packet to send [06:59:01]OFD Sender: No OFD packet to send [06:59:06]OFD Sender: No OFD packet to send [06:59:11]OFD Sender: No OFD packet to send [06:59:16]OFD Sender: No OFD packet to send [06:59:21]OFD Sender: No OFD packet to send [06:59:26]OFD Sender: No OFD packet to send [06:59:31]OFD Sender: No OFD packet to send [06:59:36]OFD Sender: No OFD packet to send [06:59:41]OFD Sender: No OFD packet to send [06:59:46]OFD Sender: No OFD packet to send [06:59:51]OFD Sender: No OFD packet to send [06:59:56]OFD Sender: No OFD packet to send [07:00:01]OFD Sender: No OFD packet to send [07:00:06]OFD Sender: No OFD packet to send [07:00:11]OFD Sender: No OFD packet to send [07:00:16]OFD Sender: No OFD packet to send [07:00:21]OFD Sender: No OFD packet to send [07:00:26]OFD Sender: No OFD packet to send [07:00:31]OFD Sender: No OFD packet to send [07:00:36]OFD Sender: No OFD packet to send [07:00:41]OFD Sender: No OFD packet to send [07:00:46]OFD Sender: No OFD packet to send [07:00:51]OFD Sender: No OFD packet to send [07:00:56]OFD Sender: No OFD packet to send [07:01:01]OFD Sender: No OFD packet to send [07:01:06]OFD Sender: No OFD packet to send [07:01:11]OFD Sender: No OFD packet to send [07:01:16]OFD Sender: No OFD packet to send [07:01:21]OFD Sender: No OFD packet to send [07:01:26]OFD Sender: No OFD packet to send [07:01:31]OFD Sender: No OFD packet to send [07:01:36]OFD Sender: No OFD packet to send [07:01:41]OFD Sender: No OFD packet to send [07:01:46]OFD Sender: No OFD packet to send [07:01:51]OFD Sender: No OFD packet to send [07:01:56]OFD Sender: No OFD packet to send [07:02:01]OFD Sender: No OFD packet to send [07:02:06]OFD Sender: No OFD packet to send [07:02:11]OFD Sender: No OFD packet to send [07:02:16]OFD Sender: No OFD packet to send [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:17]OFD Sender: No OFD packet to send [07:05:22]OFD Sender: No OFD packet to send [07:05:27]OFD Sender: No OFD packet to send [07:05:32]OFD Sender: No OFD packet to send [07:05:37]OFD Sender: No OFD packet to send [07:05:42]OFD Sender: No OFD packet to send [07:05:47]OFD Sender: No OFD packet to send [07:05:52]OFD Sender: No OFD packet to send [07:05:54]accept exits with 9 [07:05:54]New connection [07:05:54]New thread 3067428196 created [07:05:54]Thread 3067284836 joined [07:05:54]Waiting for new connection... [07:05:54] Sock 9.Parse request [07:05:54]Sock 9.Check first char [07:05:54]Sock 9.First char is OK [07:05:54]request: POST /json_proto HTTP/1.0 [07:05:54]Method: POST [07:05:54]URL: /json_proto [07:05:54]Method is POST - this is cgi request [07:05:54]url: /json_proto [07:05:54]query_string will be loaded in cgi processing [07:05:54]execute_cgi json_proto POST (null) [07:05:54]execute_cgi path=json_proto method=POST [07:05:54]POST find Content-Length [07:05:54]Host: 172.17.45.7:8080 [07:05:54]Content-Length: 819 [07:05:54]Content-Type: application/json [07:05:54] [07:05:54]POST finish read [07:05:54]Found Content-Length = 819 [07:05:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.370, "sum" : 3990.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3990.00, "payments": [ { "type": 1, "sum" : 3990.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:05:54]execute_script... [07:05: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)948952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.370, "sum" : 3990.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3990.00, "payments": [ { "type": 1, "sum" : 3990.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:05:54]POST & json_proto [07:05:54]process_json_proto [07:05:54]json parsed OK: [07:05:54]protocol is kg_v1.0 [07:05:54]action value=close_receipt [07:05:54]process_action close_receipt [07:05:54]cmd_close_receipt [07:05:54]MH_GetDate [07:05:54]Write to MH i2c: F0 00 00 E3 28 FA [07:05:54]Write i2c OK [07:05:54]MH_I2C_Read... [07:05:54]Read from MH i2c: F0 [07:05:54]MH_I2C_Read... [07:05:54]Read from MH i2c: F0 09 00 [07:05:54]MH_I2C_Read... [07:05:54]Read from MH i2c: F0 09 00 E3 28 00 55 9C A4 66 90 0F 3E 66 41 [07:05:54]GetLastDocTimeStamp 1722063217 [07:05:54]current date 1722063957 [07:05:54]FM_GetShiftState [07:05:54]SAM_PROTO_GetShiftState [07:05:54]wFMCommunicate request_size=4 [07:05:54]MH_SAM_APDU [07:05:54]CAPDU: 80 13 01 00 [07:05:54]Write to MH i2c: E2 08 00 E4 28 80 13 01 00 00 00 00 00 89 [07:05:54]Write i2c OK [07:05:54]MH_I2C_Read... [07:05:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:05:54]Read from MH i2c: E2 [07:05:54]MH_I2C_Read... [07:05:54]Read from MH i2c: E2 0E 00 [07:05:54]MH_I2C_Read... [07:05:54]Read from MH i2c: E2 0E 00 E4 28 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 16 [07:05:54]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [07:05:54]wFMCommunicate OK [07:05:54]SAM_PROTO_GetShiftState done [07:05:54]FM_GetShiftState done [07:05:54]opened in 1722038845 [07:05:54]opened+sec_in_day 1722125245 [07:05:54]quantity*price = 399059 [07:05:54]sum+1 = 399060 [07:05:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 3990.00 НСП 1% : 35.31 НДС 12% : 423.78 Наличными: 0.00 Безнал.: 3990.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 25 27.07.2024 07:05 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118082 ФПД: 123231073776785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T070557&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118082&fm=123231073776785&tin=02508201610067®Number=0000000000092660&sum=399000 [07:05:55]StoreToDocumentArchive [07:05:55]shift 432 fd 118082 [07:05:55]save to /storage/0432/doc_00118082 [07:05:55]save last doc name /storage/0432/doc_00118082 to /storage/kkm_last_doc_name [07:05:55]save OK [07:05:55]Clear old archive folders... [07:05:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:05:55]tlvbuf is 006BD650 [07:05:55]SAM_PROTO_ClearQueue [07:05:55]wFMCommunicate request_size=4 [07:05:55]MH_SAM_APDU [07:05:55]CAPDU: 80 09 00 00 [07:05:55]Write to MH i2c: E2 08 00 F1 28 80 09 00 00 00 00 00 00 8B [07:05:55]Write i2c OK [07:05:55]MH_I2C_Read... [07:05:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:05:55]Read from MH i2c: E2 [07:05:55]MH_I2C_Read... [07:05:55]Read from MH i2c: E2 03 00 [07:05:55]MH_I2C_Read... [07:05:55]Read from MH i2c: E2 03 00 F1 28 00 90 00 8D [07:05:55]RAPDU: 90 00 [07:05:55]wFMCommunicate OK [07:05:55]SAM_PROTO_ClearQueue done [07:05:55]KKMCreateOFDPacket [07:05:55]OFDProtocolAddRootSTLVToBuf [07:05:55]FM_MakeSignedData [07:05:55]FM_MakeSignedData [07:05:55]SAM_PROTO_SignData [07:05:55]wFMCommunicate request_size=4 [07:05:55]MH_SAM_APDU [07:05:55]CAPDU: 80 0D 01 02 [07:05:55]Write to MH i2c: E2 08 00 F2 28 80 0D 01 02 00 00 00 00 93 [07:05:55]Write i2c OK [07:05:55]MH_I2C_Read... [07:05:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:05:55]Read from MH i2c: E2 [07:05:55]MH_I2C_Read... [07:05:55]Read from MH i2c: E2 03 00 [07:05:55]MH_I2C_Read... [07:05:55]Read from MH i2c: E2 03 00 F2 28 00 90 00 8E [07:05:55]RAPDU: 90 00 [07:05:55]wFMCommunicate OK [07:05:55]wFMCommunicate request_size=255 [07:05:55]MH_SAM_APDU [07:05: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 92 CC 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 16 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 16 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 16 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 55 9C A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 42 CD 01 00 35 04 06 00 70 13 F8 60 [07:05:55]Write to MH i2c: E2 02 01 F3 28 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 92 CC 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 16 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 16 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 16 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 55 9C A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 42 CD 01 00 35 04 06 00 70 13 F8 60 00 00 48 [07:05:55]Write i2c OK [07:05:55]MH_I2C_Read... [07:05:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:05:55]Read from MH i2c: E2 [07:05:55]MH_I2C_Read... [07:05:55]Read from MH i2c: E2 03 00 [07:05:55]MH_I2C_Read... [07:05:55]Read from MH i2c: E2 03 00 F3 28 00 90 00 8F [07:05:55]RAPDU: 90 00 [07:05:55]wFMCommunicate OK [07:05:55]wFMCommunicate request_size=7 [07:05:55]MH_SAM_APDU [07:05:55]CAPDU: 80 0D 02 02 02 B4 91 [07:05:55]Write to MH i2c: E2 0A 00 F4 28 80 0D 02 02 02 00 B4 91 00 00 DF [07:05:55]Write i2c OK [07:05:55]MH_I2C_Read... [07:05:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:05:55]Read from MH i2c: E2 [07:05:55]MH_I2C_Read... [07:05:55]Read from MH i2c: E2 03 00 [07:05:55]MH_I2C_Read... [07:05:55]Read from MH i2c: E2 03 00 F4 28 00 90 00 90 [07:05:55]RAPDU: 90 00 [07:05:55]wFMCommunicate OK [07:05:55]wFMCommunicate request_size=4 [07:05:55]MH_SAM_APDU [07:05:55]CAPDU: 80 0D 03 02 [07:05:55]Write to MH i2c: E2 08 00 F5 28 80 0D 03 02 00 00 00 00 98 [07:05:55]Write i2c OK [07:05:55]MH_I2C_Read... [07:05:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:05:55]Read from MH i2c: E2 [07:05:55]MH_I2C_Read... [07:05:55]Read from MH i2c: E2 0B 00 [07:05:55]MH_I2C_Read... [07:05:55]Read from MH i2c: E2 0B 00 F5 28 00 09 5F 91 E4 4B 88 CD FC 90 00 12 [07:05:55]RAPDU: 09 5F 91 E4 4B 88 CD FC 90 00 [07:05:55]wFMCommunicate OK [07:05:55]SAM_PROTO_SignData done [07:05:55]FM_MakeSignedData done [07:05:55]CreateOFDProtocolMessage [07:05:55]wFMCommunicate request_size=4 [07:05:55]MH_SAM_APDU [07:05:55]CAPDU: 80 11 00 00 [07:05:55]Write to MH i2c: E2 08 00 F6 28 80 11 00 00 00 00 00 00 98 [07:05:55]Write i2c OK [07:05:55]MH_I2C_Read... [07:05:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:05:55]Read from MH i2c: E2 [07:05:55]MH_I2C_Read... [07:05:55]Read from MH i2c: E2 17 00 [07:05:55]MH_I2C_Read... [07:05:55]Read from MH i2c: E2 17 00 F6 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F3 [07:05:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:05:55]wFMCommunicate OK [07:05:55]CreateOFDProtocolMessage done [07:05:55]OFDSenderStorePacket 118082 [07:05:55]StoreOFDPacket docnum=118082 [07:05:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 1A A3 04 01 C2 6D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 92 CC 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 16 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 16 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 16 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 55 9C A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 42 CD 01 00 35 04 06 00 70 13 F8 60 B4 91 09 5F 91 E4 4B 88 CD FC [07:05:55]CheckFolder [07:05:55]dirname=/storage/ofd_packets [07:05:55]CheckFolder done [07:05:55]ProducePacketName [07:05:55]name=ofd_packets/00118082 [07:05:55]NVStorageSaveData ofd_packets/00118082 [07:05:55]File name is /storage/ofd_packets/00118082 [07:05:55]Write 298 bytes [07:05:55]NVStorageSaveData done [07:05:55]OFDSenderStorePacket done [07:05:55]KKMCreateOFDPacket done [07:05:55]NVStorageSaveData kkm_last_timestamp [07:05:55]File name is /storage/kkm_last_timestamp [07:05:55]Write 4 bytes [07:05:55]NVStorageSaveData done [07:05:55]ExternCall_PrintAddStr [07:05:55]wPrintStart [07:05:55]Write to MH i2c: 01 00 00 F7 28 1F [07:05:55]Write i2c OK [07:05:55]MH_I2C_Read... [07:05:55]Read from MH i2c: 01 [07:05:55]MH_I2C_Read... [07:05:55]Read from MH i2c: 01 07 00 [07:05:55]MH_I2C_Read... [07:05:55]Read from MH i2c: 01 07 00 F7 28 00 00 00 00 00 FF 0F 34 [07:05:55]RasterBufferAndPrint [07:05:55]line Счет N : (1)948952 [07:05:55]line ИНН: 02508201610067 [07:05:55]line Контрольно-Кассовый Чек [07:05:55]line ПРОДАЖА [07:05:55]line ТРК (МРК, ГНК) : 34 [07:05:55]line Товар: 2710194800 [07:05:55]line ДТ-К-5 [07:05:55]line 52.370 * 76.20 [07:05:55]line = 3990.59 [07:05:55]line НДС 12% НСП 1% [07:05:55]line > о реализуемом товаре [07:05:55]line ОКРУГЛЕНИЕ: -0.59 [07:05:55]line ИТОГО: 3990.00 [07:05:55]line НСП 1% : 35.31 [07:05:55]line НДС 12% : 423.78 [07:05:55]line Наличными: 0.00 [07:05:55]line Безнал.: 3990.00 [07:05:55]line Место: АЗС № 134 "Партнер Нефть" [07:05:55]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:05:55]line СНО: Общий режим [07:05:55]line Чек 25 27.07.2024 07:05 [07:05:55]line Смена: 432 ФФД: 1.0 [07:05:55]line ЗНМ: 0300000044 [07:05:55]line РНМ: 0000000000092660 [07:05:55]line Версия ККМ: 001 [07:05:55]line Платежная система: O! деньги [07:05:55]line ФМ: 0000000000874939 [07:05:55]line ФД: 118082 [07:05:55]line ФПД: 123231073776785 [07:05:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T070557&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118082&fm=123231073776785&tin=02508201610067®Number=0000000000092660&sum=399000 [07:05:56]OFD Sender: Processing packet 118082 [packets to send 85, broken 84] [07:05:56]ProducePacketName [07:05:56]name=ofd_packets/00118082 [07:05:56]OFD Sender: To server: pG, [07:05:56]CommunicateWithHost lk.salyk.kg:30040 [07:05:56]ConnectInit lk.salyk.kg [07:05:56]written 0, free lines is 4095 [07:05:56]Connected sock=11 [07:05:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 1A A3 04 01 C2 6D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 92 CC 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 16 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 16 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 16 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 55 9C A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 42 CD 01 00 35 04 06 00 70 13 F8 60 B4 91 09 5F 91 E4 4B 88 CD FC [07:05:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F2 00 47 00 31 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 42 CD 01 00 F4 03 04 00 E9 49 A4 66 B6 04 01 00 00 DA 2B 78 0A 5B 04 FD 60 [07:05:56]CommunicateWithHost err = 0 [07:05:56]CheckOFDResponse [07:05:56]1017 (14) - 77093643461234 [07:05:56]1041 (16) - 0000000000874939 [07:05:56]1040 (4) - 118082 [07:05:56]1012 (4) - 27.07.2024 01:14 [07:05:56]1206 (1) - 0 [07:05:56]OFD Sender: Remove packet 118082 [07:05:56]ProducePacketName [07:05:56]name=ofd_packets/00118082 [07:05:56]NVStorageDeleteData [07:05:56]Write to MH i2c: 01 00 00 21 29 4A [07:05:56]Write i2c OK [07:05:56]MH_I2C_Read... [07:05:56]Read from MH i2c: 01 [07:05:56]MH_I2C_Read... [07:05:56]Read from MH i2c: 01 07 00 [07:05:56]MH_I2C_Read... [07:05:56]Read from MH i2c: 01 07 00 21 29 00 00 00 00 00 DC 0C 39 [07:05:56]RasterBufferAndPrint [07:05:56]line [07:05:56]line [07:05:56]line [07:05:56]line [07:05:56]line [07:05:56]written 0, free lines is 3298 [07:05:56]MH_Cut [07:05:56]Write to MH i2c: D1 01 00 28 29 01 23 [07:05:56]Write i2c OK [07:05:56]MH_I2C_Read... [07:05:56]Read from MH i2c: D1 [07:05:56]MH_I2C_Read... [07:05:56]Read from MH i2c: D1 01 00 [07:05:56]MH_I2C_Read... [07:05:56]Read from MH i2c: D1 01 00 28 29 00 22 [07:05:56]Write to MH i2c: 01 00 00 29 29 52 [07:05:56]Write i2c OK [07:05:56]MH_I2C_Read... [07:05:57]OFD Sender: No OFD packet to send [07:05:57]*** Cut start [07:05:57]*** Partial cut [07:05:57]*** CUTSNS_PIN = 1 [07:05:57]*** CUTSNS_PIN = 0 [07:05:57]*** Brake cut motor [07:05:58]Read from MH i2c: 01 [07:05:58]MH_I2C_Read... [07:05:58]*** Stop cut motor [07:05:58]*** Cut end [07:05:58]Read from MH i2c: 01 07 00 [07:05:58]MH_I2C_Read... [07:05:58]Read from MH i2c: 01 07 00 29 29 00 00 00 00 00 FF 0F 67 [07:05:58]process_action close_receipt done [07:05:58]requested_data is exist [07:05:58]produce_requested_data [07:05:58]requested_item fm.sn is exist - process it [07:05:58]wFMCommunicate request_size=4 [07:05:58]MH_SAM_APDU [07:05:58]CAPDU: 80 11 00 00 [07:05:58]Write to MH i2c: E2 08 00 2A 29 80 11 00 00 00 00 00 00 CD [07:05:58]Write i2c OK [07:05:58]MH_I2C_Read... [07:05:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:05:58]Read from MH i2c: E2 [07:05:58]MH_I2C_Read... [07:05:58]Read from MH i2c: E2 17 00 [07:05:58]MH_I2C_Read... [07:05:58]Read from MH i2c: E2 17 00 2A 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 28 [07:05:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:05:58]wFMCommunicate OK [07:05:58]requested_item fd.num is exist - process it [07:05:58]SAM_PROTO_GetFieldsCounters [07:05:58]wFMCommunicate request_size=4 [07:05:58]MH_SAM_APDU [07:05:58]CAPDU: 80 13 00 00 [07:05:58]Write to MH i2c: E2 08 00 2B 29 80 13 00 00 00 00 00 00 D0 [07:05:58]Write i2c OK [07:05:58]MH_I2C_Read... [07:05:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:05:58]Read from MH i2c: E2 [07:05:58]MH_I2C_Read... [07:05:58]Read from MH i2c: E2 62 00 [07:05:58]MH_I2C_Read... [07:05:58]Read from MH i2c: E2 62 00 2B 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 42 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [07:05:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 42 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:05:58]wFMCommunicate OK [07:05:58]SAM_PROTO_GetFieldsCounters done [07:05:58]requested_item shift.num is exist - process it [07:05:58]requested_item shift.opened is exist - process it [07:05:58]req_shift_opened [07:05:58]FM_GetShiftState [07:05:58]SAM_PROTO_GetShiftState [07:05:58]wFMCommunicate request_size=4 [07:05:58]MH_SAM_APDU [07:05:58]CAPDU: 80 13 01 00 [07:05:58]Write to MH i2c: E2 08 00 2C 29 80 13 01 00 00 00 00 00 D2 [07:05:58]Write i2c OK [07:05:58]MH_I2C_Read... [07:05:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:05:58]Read from MH i2c: E2 [07:05:58]MH_I2C_Read... [07:05:58]Read from MH i2c: E2 0E 00 [07:05:58]MH_I2C_Read... [07:05:58]Read from MH i2c: E2 0E 00 2C 29 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 5F [07:05:58]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [07:05:58]wFMCommunicate OK [07:05:58]SAM_PROTO_GetShiftState done [07:05:58]FM_GetShiftState done [07:05:58]req_shift_opened done [07:05:58]requested_item shift.open_date is exist - process it [07:05:58]req_shift_open_date [07:05:58]req_shift_open_date done [07:05:58]produce_requested_data done [07:05:58]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118082,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [07:05:58]process_action_free close_receipt [07:05:58]json_value_free [07:05:58]json_value_free done [07:05:58]process_json_proto returns [07:05:58]Send response to host [07:05:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118082,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [07:05:58]free response buf [07:05:58]execute_script done [07:05:58]execute_script returns [07:05:58]free content buf [07:05:58]Sock 9.Close socket [07:05:58]Sock 9.Thread stoped [07:06:02]OFD Sender: No OFD packet to send [07:06:07]OFD Sender: No OFD packet to send [07:06:12]OFD Sender: No OFD packet to send [07:06:17]OFD Sender: No OFD packet to send [07:06:22]OFD Sender: No OFD packet to send [07:06:27]OFD Sender: No OFD packet to send [07:06:32]OFD Sender: No OFD packet to send [07:06:37]OFD Sender: No OFD packet to send [07:06:42]OFD Sender: No OFD packet to send [07:06:47]OFD Sender: No OFD packet to send [07:06:52]OFD Sender: No OFD packet to send [07:06:57]OFD Sender: No OFD packet to send [07:07:02]OFD Sender: No OFD packet to send [07:07:07]OFD Sender: No OFD packet to send [07:07:12]OFD Sender: No OFD packet to send [07:07:17]OFD Sender: No OFD packet to send [07:07:22]OFD Sender: No OFD packet to send [07:07:27]OFD Sender: No OFD packet to send [07:07:32]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:07]OFD Sender: No OFD packet to send [07:08:12]OFD Sender: No OFD packet to send [07:08:17]OFD Sender: No OFD packet to send [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:47]OFD Sender: No OFD packet to send [07:08:52]OFD Sender: No OFD packet to send [07:08:57]OFD Sender: No OFD packet to send [07:09:02]OFD Sender: No OFD packet to send [07:09:07]OFD Sender: No OFD packet to send [07:09:12]OFD Sender: No OFD packet to send [07:09:17]OFD Sender: No OFD packet to send [07:09:22]OFD Sender: No OFD packet to send [07:09:27]OFD Sender: No OFD packet to send [07:09:32]OFD Sender: No OFD packet to send [07:09:37]OFD Sender: No OFD packet to send [07:09:42]OFD Sender: No OFD packet to send [07:09:47]OFD Sender: No OFD packet to send [07:09:52]OFD Sender: No OFD packet to send [07:09:57]OFD Sender: No OFD packet to send [07:10:02]OFD Sender: No OFD packet to send [07:10:07]OFD Sender: No OFD packet to send [07:10:12]OFD Sender: No OFD packet to send [07:10:17]OFD Sender: No OFD packet to send [07:10:22]OFD Sender: No OFD packet to send [07:10:27]OFD Sender: No OFD packet to send [07:10:32]OFD Sender: No OFD packet to send [07:10:37]OFD Sender: No OFD packet to send [07:10:42]OFD Sender: No OFD packet to send [07:10:47]OFD Sender: No OFD packet to send [07:10:52]OFD Sender: No OFD packet to send [07:10:57]OFD Sender: No OFD packet to send [07:11:02]OFD Sender: No OFD packet to send [07:11:07]OFD Sender: No OFD packet to send [07:11:12]OFD Sender: No OFD packet to send [07:11:17]OFD Sender: No OFD packet to send [07:11:22]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:07]accept exits with 7 [07:12:07]New connection [07:12:07]New thread 3067284836 created [07:12:07]Thread 3067428196 joined [07:12:07]Waiting for new connection... [07:12:07] Sock 7.Parse request [07:12:07]Sock 7.Check first char [07:12:07]Sock 7.First char is OK [07:12:07]request: POST /json_proto HTTP/1.0 [07:12:07]Method: POST [07:12:07]URL: /json_proto [07:12:07]Method is POST - this is cgi request [07:12:07]url: /json_proto [07:12:07]query_string will be loaded in cgi processing [07:12:07]execute_cgi json_proto POST (null) [07:12:07]execute_cgi path=json_proto method=POST [07:12:07]POST find Content-Length [07:12:07]Host: 172.17.45.7:8080 [07:12:07]Content-Length: 678 [07:12:07]Content-Type: application/json [07:12:07] [07:12:07]POST finish read [07:12:07]Found Content-Length = 678 [07:12:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [07:12:07]execute_script... [07:12: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)948953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [07:12:07]POST & json_proto [07:12:07]process_json_proto [07:12:07]json parsed OK: [07:12:07]protocol is kg_v1.0 [07:12:07]action value=close_receipt [07:12:07]process_action close_receipt [07:12:07]cmd_close_receipt [07:12:07]MH_GetDate [07:12:07]Write to MH i2c: F0 00 00 2D 29 45 [07:12:07]Write i2c OK [07:12:07]MH_I2C_Read... [07:12:07]Read from MH i2c: F0 [07:12:07]MH_I2C_Read... [07:12:07]Read from MH i2c: F0 09 00 [07:12:07]MH_I2C_Read... [07:12:07]Read from MH i2c: F0 09 00 2D 29 00 CB 9D A4 66 90 0F 3E 66 03 [07:12:07]GetLastDocTimeStamp 1722063957 [07:12:07]current date 1722064331 [07:12:07]FM_GetShiftState [07:12:07]SAM_PROTO_GetShiftState [07:12:07]wFMCommunicate request_size=4 [07:12:07]MH_SAM_APDU [07:12:07]CAPDU: 80 13 01 00 [07:12:07]Write to MH i2c: E2 08 00 2E 29 80 13 01 00 00 00 00 00 D4 [07:12:07]Write i2c OK [07:12:07]MH_I2C_Read... [07:12:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:07]Read from MH i2c: E2 [07:12:07]MH_I2C_Read... [07:12:07]Read from MH i2c: E2 0E 00 [07:12:07]MH_I2C_Read... [07:12:07]Read from MH i2c: E2 0E 00 2E 29 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 61 [07:12:07]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [07:12:07]wFMCommunicate OK [07:12:07]SAM_PROTO_GetShiftState done [07:12:07]FM_GetShiftState done [07:12:07]opened in 1722038845 [07:12:07]opened+sec_in_day 1722125245 [07:12:07]quantity*price = 70037 [07:12:07]sum+1 = 70038 [07:12:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 26 27.07.2024 07:12 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118083 ФПД: 127666088763928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T071211&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118083&fm=127666088763928&tin=02508201610067®Number=0000000000092660&sum=70000 [07:12:08]StoreToDocumentArchive [07:12:08]shift 432 fd 118083 [07:12:08]save to /storage/0432/doc_00118083 [07:12:08]save last doc name /storage/0432/doc_00118083 to /storage/kkm_last_doc_name [07:12:08]save OK [07:12:08]Clear old archive folders... [07:12:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:12:08]tlvbuf is 007271B0 [07:12:08]SAM_PROTO_ClearQueue [07:12:08]wFMCommunicate request_size=4 [07:12:08]MH_SAM_APDU [07:12:08]CAPDU: 80 09 00 00 [07:12:08]Write to MH i2c: E2 08 00 3B 29 80 09 00 00 00 00 00 00 D6 [07:12:08]Write i2c OK [07:12:08]MH_I2C_Read... [07:12:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:12:08]Read from MH i2c: E2 [07:12:08]MH_I2C_Read... [07:12:08]Read from MH i2c: E2 03 00 [07:12:08]MH_I2C_Read... [07:12:08]Read from MH i2c: E2 03 00 3B 29 00 90 00 D8 [07:12:08]RAPDU: 90 00 [07:12:08]wFMCommunicate OK [07:12:08]SAM_PROTO_ClearQueue done [07:12:08]KKMCreateOFDPacket [07:12:08]OFDProtocolAddRootSTLVToBuf [07:12:08]FM_MakeSignedData [07:12:08]FM_MakeSignedData [07:12:08]SAM_PROTO_SignData [07:12:08]wFMCommunicate request_size=4 [07:12:08]MH_SAM_APDU [07:12:08]CAPDU: 80 0D 01 02 [07:12:08]Write to MH i2c: E2 08 00 3C 29 80 0D 01 02 00 00 00 00 DE [07:12:08]Write i2c OK [07:12:08]MH_I2C_Read... [07:12:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:12:09]Read from MH i2c: E2 [07:12:09]MH_I2C_Read... [07:12:09]Read from MH i2c: E2 03 00 [07:12:09]MH_I2C_Read... [07:12:09]Read from MH i2c: E2 03 00 3C 29 00 90 00 D9 [07:12:09]RAPDU: 90 00 [07:12:09]wFMCommunicate OK [07:12:09]wFMCommunicate request_size=255 [07:12:09]MH_SAM_APDU [07:12: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 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 1A 00 00 00 F4 03 04 00 CB 9D A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 43 CD 01 00 35 04 06 00 74 [07:12:09]Write to MH i2c: E2 02 01 3D 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 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 1A 00 00 00 F4 03 04 00 CB 9D A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 43 CD 01 00 35 04 06 00 74 00 00 0B [07:12:09]Write i2c OK [07:12:09]MH_I2C_Read... [07:12:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:09]Read from MH i2c: E2 [07:12:09]MH_I2C_Read... [07:12:09]Read from MH i2c: E2 03 00 [07:12:09]MH_I2C_Read... [07:12:09]Read from MH i2c: E2 03 00 3D 29 00 90 00 DA [07:12:09]RAPDU: 90 00 [07:12:09]wFMCommunicate OK [07:12:09]wFMCommunicate request_size=10 [07:12:09]MH_SAM_APDU [07:12:09]CAPDU: 80 0D 02 02 05 1C 93 DE E2 18 [07:12:09]Write to MH i2c: E2 0D 00 3E 29 80 0D 02 02 05 00 1C 93 DE E2 18 00 00 72 [07:12:09]Write i2c OK [07:12:09]MH_I2C_Read... [07:12:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:09]Read from MH i2c: E2 [07:12:09]MH_I2C_Read... [07:12:09]Read from MH i2c: E2 03 00 [07:12:09]MH_I2C_Read... [07:12:09]Read from MH i2c: E2 03 00 3E 29 00 90 00 DB [07:12:09]RAPDU: 90 00 [07:12:09]wFMCommunicate OK [07:12:09]wFMCommunicate request_size=4 [07:12:09]MH_SAM_APDU [07:12:09]CAPDU: 80 0D 03 02 [07:12:09]Write to MH i2c: E2 08 00 3F 29 80 0D 03 02 00 00 00 00 E3 [07:12:09]Write i2c OK [07:12:09]MH_I2C_Read... [07:12:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:12:09]Read from MH i2c: E2 [07:12:09]MH_I2C_Read... [07:12:09]Read from MH i2c: E2 0B 00 [07:12:09]MH_I2C_Read... [07:12:09]Read from MH i2c: E2 0B 00 3F 29 00 C1 FA BB 74 66 61 55 1B 90 00 05 [07:12:09]RAPDU: C1 FA BB 74 66 61 55 1B 90 00 [07:12:09]wFMCommunicate OK [07:12:09]SAM_PROTO_SignData done [07:12:09]FM_MakeSignedData done [07:12:09]CreateOFDProtocolMessage [07:12:09]wFMCommunicate request_size=4 [07:12:09]MH_SAM_APDU [07:12:09]CAPDU: 80 11 00 00 [07:12:09]Write to MH i2c: E2 08 00 40 29 80 11 00 00 00 00 00 00 E3 [07:12:09]Write i2c OK [07:12:09]MH_I2C_Read... [07:12:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:09]Read from MH i2c: E2 [07:12:09]MH_I2C_Read... [07:12:09]Read from MH i2c: E2 17 00 [07:12:09]MH_I2C_Read... [07:12:09]Read from MH i2c: E2 17 00 40 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3E [07:12:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:12:09]wFMCommunicate OK [07:12:09]CreateOFDProtocolMessage done [07:12:09]OFDSenderStorePacket 118083 [07:12:09]StoreOFDPacket docnum=118083 [07:12:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B5 6A 07 01 5E 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 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 1A 00 00 00 F4 03 04 00 CB 9D A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 43 CD 01 00 35 04 06 00 74 1C 93 DE E2 18 C1 FA BB 74 66 61 55 1B [07:12:09]CheckFolder [07:12:09]dirname=/storage/ofd_packets [07:12:09]CheckFolder done [07:12:09]ProducePacketName [07:12:09]name=ofd_packets/00118083 [07:12:09]NVStorageSaveData ofd_packets/00118083 [07:12:09]File name is /storage/ofd_packets/00118083 [07:12:09]Write 301 bytes [07:12:09]NVStorageSaveData done [07:12:09]OFDSenderStorePacket done [07:12:09]KKMCreateOFDPacket done [07:12:09]NVStorageSaveData kkm_last_timestamp [07:12:09]File name is /storage/kkm_last_timestamp [07:12:09]Write 4 bytes [07:12:09]NVStorageSaveData done [07:12:09]ExternCall_PrintAddStr [07:12:09]wPrintStart [07:12:09]Write to MH i2c: 01 00 00 41 29 6A [07:12:09]Write i2c OK [07:12:09]MH_I2C_Read... [07:12:09]Read from MH i2c: 01 [07:12:09]MH_I2C_Read... [07:12:09]Read from MH i2c: 01 07 00 [07:12:09]MH_I2C_Read... [07:12:09]Read from MH i2c: 01 07 00 41 29 00 00 00 00 00 FF 0F 7F [07:12:09]RasterBufferAndPrint [07:12:09]line Счет N : (1)948953 [07:12:09]line ИНН: 02508201610067 [07:12:09]line Контрольно-Кассовый Чек [07:12:09]line ПРОДАЖА [07:12:09]line ТРК (МРК, ГНК) : 41 [07:12:09]line Товар: 2710124130 [07:12:09]line Аи-92-К-4 [07:12:09]line 10.330 * 67.80 [07:12:09]line = 700.37 [07:12:09]line НДС 12% НСП 1% [07:12:09]line > о реализуемом товаре [07:12:09]line ОКРУГЛЕНИЕ: -0.37 [07:12:09]line ИТОГО: 700.00 [07:12:09]line Внесено: 700.00 [07:12:09]line СДАЧА: 0.00 [07:12:09]line НСП 1% : 6.20 [07:12:09]line НДС 12% : 74.38 [07:12:09]line Наличными: 700.00 [07:12:09]line Безнал.: 0.00 [07:12:09]line Место: АЗС № 134 "Партнер Нефть" [07:12:09]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:12:09]line СНО: Общий режим [07:12:09]line Чек 26 27.07.2024 07:12 [07:12:09]line Смена: 432 ФФД: 1.0 [07:12:09]line ЗНМ: 0300000044 [07:12:09]line РНМ: 0000000000092660 [07:12:09]line Версия ККМ: 001 [07:12:09]line ФМ: 0000000000874939 [07:12:09]line ФД: 118083 [07:12:09]line ФПД: 127666088763928 [07:12:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T071211&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118083&fm=127666088763928&tin=02508201610067®Number=0000000000092660&sum=70000 [07:12:09]written 0, free lines is 4095 [07:12:09]OFD Sender: Processing packet 118083 [packets to send 85, broken 84] [07:12:09]ProducePacketName [07:12:09]name=ofd_packets/00118083 [07:12:09]OFD Sender: To server: pG, [07:12:09]CommunicateWithHost lk.salyk.kg:30040 [07:12:09]ConnectInit lk.salyk.kg [07:12:09]Connected sock=10 [07:12:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B5 6A 07 01 5E 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 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 1A 00 00 00 F4 03 04 00 CB 9D A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 43 CD 01 00 35 04 06 00 74 1C 93 DE E2 18 C1 FA BB 74 66 61 55 1B [07:12:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 85 BE 47 00 E6 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 43 CD 01 00 F4 03 04 00 5E 4B A4 66 B6 04 01 00 00 6F 01 35 9B 3B 4F A2 72 [07:12:09]CommunicateWithHost err = 0 [07:12:09]CheckOFDResponse [07:12:09]1017 (14) - 77093643461234 [07:12:09]1041 (16) - 0000000000874939 [07:12:09]1040 (4) - 118083 [07:12:09]1012 (4) - 27.07.2024 01:20 [07:12:09]1206 (1) - 0 [07:12:09]OFD Sender: Remove packet 118083 [07:12:09]ProducePacketName [07:12:09]name=ofd_packets/00118083 [07:12:09]NVStorageDeleteData [07:12:09]Write to MH i2c: 01 00 00 6B 29 94 [07:12:09]Write i2c OK [07:12:09]MH_I2C_Read... [07:12:09]Read from MH i2c: 01 [07:12:09]MH_I2C_Read... [07:12:09]Read from MH i2c: 01 07 00 [07:12:09]MH_I2C_Read... [07:12:09]Read from MH i2c: 01 07 00 6B 29 00 00 00 00 00 DD 0C 84 [07:12:09]RasterBufferAndPrint [07:12:09]line [07:12:09]line [07:12:09]line [07:12:09]line [07:12:09]line [07:12:09]written 0, free lines is 3299 [07:12:09]MH_Cut [07:12:09]Write to MH i2c: D1 01 00 72 29 01 6D [07:12:09]Write i2c OK [07:12:09]MH_I2C_Read... [07:12:09]Read from MH i2c: D1 [07:12:09]MH_I2C_Read... [07:12:09]Read from MH i2c: D1 01 00 [07:12:09]MH_I2C_Read... [07:12:09]Read from MH i2c: D1 01 00 72 29 00 6C [07:12:09]Write to MH i2c: 01 00 00 73 29 9C [07:12:09]Write i2c OK [07:12:09]MH_I2C_Read... [07:12:10]OFD Sender: No OFD packet to send [07:12:10]*** Cut start [07:12:10]*** Partial cut [07:12:10]*** CUTSNS_PIN = 1 [07:12:10]*** CUTSNS_PIN = 0 [07:12:10]*** Brake cut motor [07:12:11]Read from MH i2c: 01 [07:12:11]MH_I2C_Read... [07:12:11]*** Stop cut motor [07:12:11]*** Cut end [07:12:11]Read from MH i2c: 01 07 00 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: 01 07 00 73 29 00 00 00 00 00 FF 0F B1 [07:12:11]process_action close_receipt done [07:12:11]requested_data is exist [07:12:11]produce_requested_data [07:12:11]requested_item fm.sn is exist - process it [07:12:11]wFMCommunicate request_size=4 [07:12:11]MH_SAM_APDU [07:12:11]CAPDU: 80 11 00 00 [07:12:11]Write to MH i2c: E2 08 00 74 29 80 11 00 00 00 00 00 00 17 [07:12:11]Write i2c OK [07:12:11]MH_I2C_Read... [07:12:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:11]Read from MH i2c: E2 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 17 00 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 17 00 74 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 72 [07:12:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:12:11]wFMCommunicate OK [07:12:11]requested_item fd.num is exist - process it [07:12:11]SAM_PROTO_GetFieldsCounters [07:12:11]wFMCommunicate request_size=4 [07:12:11]MH_SAM_APDU [07:12:11]CAPDU: 80 13 00 00 [07:12:11]Write to MH i2c: E2 08 00 75 29 80 13 00 00 00 00 00 00 1A [07:12:11]Write i2c OK [07:12:11]MH_I2C_Read... [07:12:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:12:11]Read from MH i2c: E2 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 62 00 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 62 00 75 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 43 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [07:12:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 43 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:12:11]wFMCommunicate OK [07:12:11]SAM_PROTO_GetFieldsCounters done [07:12:11]requested_item shift.num is exist - process it [07:12:11]requested_item shift.opened is exist - process it [07:12:11]req_shift_opened [07:12:11]FM_GetShiftState [07:12:11]SAM_PROTO_GetShiftState [07:12:11]wFMCommunicate request_size=4 [07:12:11]MH_SAM_APDU [07:12:11]CAPDU: 80 13 01 00 [07:12:11]Write to MH i2c: E2 08 00 76 29 80 13 01 00 00 00 00 00 1C [07:12:11]Write i2c OK [07:12:11]MH_I2C_Read... [07:12:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:11]Read from MH i2c: E2 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 0E 00 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 0E 00 76 29 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 A9 [07:12:11]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [07:12:11]wFMCommunicate OK [07:12:11]SAM_PROTO_GetShiftState done [07:12:11]FM_GetShiftState done [07:12:11]req_shift_opened done [07:12:11]requested_item shift.open_date is exist - process it [07:12:11]req_shift_open_date [07:12:11]req_shift_open_date done [07:12:11]produce_requested_data done [07:12:11]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118083,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [07:12:11]process_action_free close_receipt [07:12:11]json_value_free [07:12:11]json_value_free done [07:12:11]process_json_proto returns [07:12:11]Send response to host [07:12:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118083,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [07:12:11]free response buf [07:12:11]execute_script done [07:12:11]execute_script returns [07:12:11]free content buf [07:12:11]Sock 7.Close socket [07:12:11]Sock 7.Thread stoped [07:12:15]OFD Sender: No OFD packet to send [07:12:20]OFD Sender: No OFD packet to send [07:12:25]OFD Sender: No OFD packet to send [07:12:30]OFD Sender: No OFD packet to send [07:12:35]OFD Sender: No OFD packet to send [07:12:40]OFD Sender: No OFD packet to send [07:12:45]OFD Sender: No OFD packet to send [07:12:50]OFD Sender: No OFD packet to send [07:12:55]OFD Sender: No OFD packet to send [07:13:00]OFD Sender: No OFD packet to send [07:13:05]OFD Sender: No OFD packet to send [07:13:10]OFD Sender: No OFD packet to send [07:13:15]OFD Sender: No OFD packet to send [07:13:20]OFD Sender: No OFD packet to send [07:13:25]OFD Sender: No OFD packet to send [07:13:30]OFD Sender: No OFD packet to send [07:13:35]OFD Sender: No OFD packet to send [07:13:40]OFD Sender: No OFD packet to send [07:13:45]OFD Sender: No OFD packet to send [07:13:50]OFD Sender: No OFD packet to send [07:13:55]OFD Sender: No OFD packet to send [07:14:00]OFD Sender: No OFD packet to send [07:14:05]OFD Sender: No OFD packet to send [07:14:10]OFD Sender: No OFD packet to send [07:14:15]OFD Sender: No OFD packet to send [07:14:20]OFD Sender: No OFD packet to send [07:14:25]OFD Sender: No OFD packet to send [07:14:30]OFD Sender: No OFD packet to send [07:14:35]OFD Sender: No OFD packet to send [07:14:40]OFD Sender: No OFD packet to send [07:14:45]OFD Sender: No OFD packet to send [07:14:50]OFD Sender: No OFD packet to send [07:14:55]OFD Sender: No OFD packet to send [07:14:56]accept exits with 9 [07:14:56]New connection [07:14:56]New thread 3067428196 created [07:14:56]Thread 3067284836 joined [07:14:56]Waiting for new connection... [07:14:56] Sock 9.Parse request [07:14:56]Sock 9.Check first char [07:14:56]Sock 9.First char is OK [07:14:56]request: POST /json_proto HTTP/1.0 [07:14:56]Method: POST [07:14:56]URL: /json_proto [07:14:56]Method is POST - this is cgi request [07:14:56]url: /json_proto [07:14:56]query_string will be loaded in cgi processing [07:14:56]execute_cgi json_proto POST (null) [07:14:56]execute_cgi path=json_proto method=POST [07:14:56]POST find Content-Length [07:14:56]Host: 172.17.45.7:8080 [07:14:56]Content-Length: 677 [07:14:56]Content-Type: application/json [07:14:56] [07:14:56]POST finish read [07:14:56]Found Content-Length = 677 [07:14:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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" ] } } [07:14:56]execute_script... [07: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)948954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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" ] } } [07:14:56]POST & json_proto [07:14:56]process_json_proto [07:14:56]json parsed OK: [07:14:56]protocol is kg_v1.0 [07:14:56]action value=close_receipt [07:14:56]process_action close_receipt [07:14:56]cmd_close_receipt [07:14:56]MH_GetDate [07:14:56]Write to MH i2c: F0 00 00 77 29 8F [07:14:56]Write i2c OK [07:14:56]MH_I2C_Read... [07:14:56]Read from MH i2c: F0 [07:14:56]MH_I2C_Read... [07:14:56]Read from MH i2c: F0 09 00 [07:14:56]MH_I2C_Read... [07:14:56]Read from MH i2c: F0 09 00 77 29 00 74 9E A4 66 90 0F 3E 66 F7 [07:14:56]GetLastDocTimeStamp 1722064331 [07:14:56]current date 1722064500 [07:14:56]FM_GetShiftState [07:14:56]SAM_PROTO_GetShiftState [07:14:56]wFMCommunicate request_size=4 [07:14:56]MH_SAM_APDU [07:14:56]CAPDU: 80 13 01 00 [07:14:56]Write to MH i2c: E2 08 00 78 29 80 13 01 00 00 00 00 00 1E [07:14:56]Write i2c OK [07:14:56]MH_I2C_Read... [07:14:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:14:56]Read from MH i2c: E2 [07:14:56]MH_I2C_Read... [07:14:56]Read from MH i2c: E2 0E 00 [07:14:56]MH_I2C_Read... [07:14:56]Read from MH i2c: E2 0E 00 78 29 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 AB [07:14:56]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [07:14:56]wFMCommunicate OK [07:14:56]SAM_PROTO_GetShiftState done [07:14:56]FM_GetShiftState done [07:14:56]opened in 1722038845 [07:14:56]opened+sec_in_day 1722125245 [07:14:56]quantity*price = 30035 [07:14:56]sum+1 = 30036 [07:14:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 27 27.07.2024 07:15 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118084 ФПД: 224175141268010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T071500&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118084&fm=224175141268010&tin=02508201610067®Number=0000000000092660&sum=30000 [07:14:57]StoreToDocumentArchive [07:14:57]shift 432 fd 118084 [07:14:57]save to /storage/0432/doc_00118084 [07:14:57]save last doc name /storage/0432/doc_00118084 to /storage/kkm_last_doc_name [07:14:57]save OK [07:14:57]Clear old archive folders... [07:14:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:14:57]tlvbuf is 006B93E0 [07:14:57]SAM_PROTO_ClearQueue [07:14:57]wFMCommunicate request_size=4 [07:14:57]MH_SAM_APDU [07:14:57]CAPDU: 80 09 00 00 [07:14:57]Write to MH i2c: E2 08 00 85 29 80 09 00 00 00 00 00 00 20 [07:14:57]Write i2c OK [07:14:57]MH_I2C_Read... [07:14:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:14:57]Read from MH i2c: E2 [07:14:57]MH_I2C_Read... [07:14:57]Read from MH i2c: E2 03 00 [07:14:57]MH_I2C_Read... [07:14:57]Read from MH i2c: E2 03 00 85 29 00 90 00 22 [07:14:57]RAPDU: 90 00 [07:14:57]wFMCommunicate OK [07:14:57]SAM_PROTO_ClearQueue done [07:14:57]KKMCreateOFDPacket [07:14:57]OFDProtocolAddRootSTLVToBuf [07:14:57]FM_MakeSignedData [07:14:57]FM_MakeSignedData [07:14:57]SAM_PROTO_SignData [07:14:57]wFMCommunicate request_size=4 [07:14:57]MH_SAM_APDU [07:14:57]CAPDU: 80 0D 01 02 [07:14:57]Write to MH i2c: E2 08 00 86 29 80 0D 01 02 00 00 00 00 28 [07:14:57]Write i2c OK [07:14:57]MH_I2C_Read... [07:14:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:14:57]Read from MH i2c: E2 [07:14:57]MH_I2C_Read... [07:14:57]Read from MH i2c: E2 03 00 [07:14:57]MH_I2C_Read... [07:14:57]Read from MH i2c: E2 03 00 86 29 00 90 00 23 [07:14:57]RAPDU: 90 00 [07:14:57]wFMCommunicate OK [07:14:57]wFMCommunicate request_size=255 [07:14:57]MH_SAM_APDU [07:14: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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 74 9E A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 44 CD 01 00 35 04 06 00 CB [07:14:57]Write to MH i2c: E2 02 01 87 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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 74 9E A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 44 CD 01 00 35 04 06 00 CB 00 00 90 [07:14:57]Write i2c OK [07:14:57]MH_I2C_Read... [07:14:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:14:57]Read from MH i2c: E2 [07:14:57]MH_I2C_Read... [07:14:57]Read from MH i2c: E2 03 00 [07:14:57]MH_I2C_Read... [07:14:57]Read from MH i2c: E2 03 00 87 29 00 90 00 24 [07:14:57]RAPDU: 90 00 [07:14:57]wFMCommunicate OK [07:14:57]wFMCommunicate request_size=10 [07:14:57]MH_SAM_APDU [07:14:57]CAPDU: 80 0D 02 02 05 E2 D7 A9 AA 2A [07:14:57]Write to MH i2c: E2 0D 00 88 29 80 0D 02 02 05 00 E2 D7 A9 AA 2A 00 00 6B [07:14:57]Write i2c OK [07:14:57]MH_I2C_Read... [07:14:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:14:57]Read from MH i2c: E2 [07:14:57]MH_I2C_Read... [07:14:57]Read from MH i2c: E2 03 00 [07:14:57]MH_I2C_Read... [07:14:57]Read from MH i2c: E2 03 00 88 29 00 90 00 25 [07:14:57]RAPDU: 90 00 [07:14:57]wFMCommunicate OK [07:14:57]wFMCommunicate request_size=4 [07:14:57]MH_SAM_APDU [07:14:57]CAPDU: 80 0D 03 02 [07:14:57]Write to MH i2c: E2 08 00 89 29 80 0D 03 02 00 00 00 00 2D [07:14:57]Write i2c OK [07:14:57]MH_I2C_Read... [07:14:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:14:58]Read from MH i2c: E2 [07:14:58]MH_I2C_Read... [07:14:58]Read from MH i2c: E2 0B 00 [07:14:58]MH_I2C_Read... [07:14:58]Read from MH i2c: E2 0B 00 89 29 00 9F 00 39 CC 5F 4D 50 CC 90 00 9A [07:14:58]RAPDU: 9F 00 39 CC 5F 4D 50 CC 90 00 [07:14:58]wFMCommunicate OK [07:14:58]SAM_PROTO_SignData done [07:14:58]FM_MakeSignedData done [07:14:58]CreateOFDProtocolMessage [07:14:58]wFMCommunicate request_size=4 [07:14:58]MH_SAM_APDU [07:14:58]CAPDU: 80 11 00 00 [07:14:58]Write to MH i2c: E2 08 00 8A 29 80 11 00 00 00 00 00 00 2D [07:14:58]Write i2c OK [07:14:58]MH_I2C_Read... [07:14:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:14:58]Read from MH i2c: E2 [07:14:58]MH_I2C_Read... [07:14:58]Read from MH i2c: E2 17 00 [07:14:58]MH_I2C_Read... [07:14:58]Read from MH i2c: E2 17 00 8A 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 88 [07:14:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:14:58]wFMCommunicate OK [07:14:58]CreateOFDProtocolMessage done [07:14:58]OFDSenderStorePacket 118084 [07:14:58]StoreOFDPacket docnum=118084 [07:14:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F3 1A 07 01 ED 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 74 9E A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 44 CD 01 00 35 04 06 00 CB E2 D7 A9 AA 2A 9F 00 39 CC 5F 4D 50 CC [07:14:58]CheckFolder [07:14:58]dirname=/storage/ofd_packets [07:14:58]CheckFolder done [07:14:58]ProducePacketName [07:14:58]name=ofd_packets/00118084 [07:14:58]NVStorageSaveData ofd_packets/00118084 [07:14:58]File name is /storage/ofd_packets/00118084 [07:14:58]Write 301 bytes [07:14:58]NVStorageSaveData done [07:14:58]OFDSenderStorePacket done [07:14:58]KKMCreateOFDPacket done [07:14:58]NVStorageSaveData kkm_last_timestamp [07:14:58]File name is /storage/kkm_last_timestamp [07:14:58]Write 4 bytes [07:14:58]NVStorageSaveData done [07:14:58]ExternCall_PrintAddStr [07:14:58]wPrintStart [07:14:58]Write to MH i2c: 01 00 00 8B 29 B4 [07:14:58]Write i2c OK [07:14:58]MH_I2C_Read... [07:14:58]Read from MH i2c: 01 [07:14:58]MH_I2C_Read... [07:14:58]Read from MH i2c: 01 07 00 [07:14:58]MH_I2C_Read... [07:14:58]Read from MH i2c: 01 07 00 8B 29 00 00 00 00 00 FF 0F C9 [07:14:58]RasterBufferAndPrint [07:14:58]line Счет N : (1)948954 [07:14:58]line ИНН: 02508201610067 [07:14:58]line Контрольно-Кассовый Чек [07:14:58]line ПРОДАЖА [07:14:58]line ТРК (МРК, ГНК) : 31 [07:14:58]line Товар: 2710124130 [07:14:58]line Аи-92-К-4 [07:14:58]line 4.430 * 67.80 [07:14:58]line = 300.35 [07:14:58]line НДС 12% НСП 1% [07:14:58]line > о реализуемом товаре [07:14:58]line ОКРУГЛЕНИЕ: -0.35 [07:14:58]line ИТОГО: 300.00 [07:14:58]line Внесено: 300.00 [07:14:58]line СДАЧА: 0.00 [07:14:58]line НСП 1% : 2.66 [07:14:58]line НДС 12% : 31.90 [07:14:58]line Наличными: 300.00 [07:14:58]line Безнал.: 0.00 [07:14:58]line Место: АЗС № 134 "Партнер Нефть" [07:14:58]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:14:58]line СНО: Общий режим [07:14:58]line Чек 27 27.07.2024 07:15 [07:14:58]line Смена: 432 ФФД: 1.0 [07:14:58]line ЗНМ: 0300000044 [07:14:58]line РНМ: 0000000000092660 [07:14:58]line Версия ККМ: 001 [07:14:58]line ФМ: 0000000000874939 [07:14:58]line ФД: 118084 [07:14:58]line ФПД: 224175141268010 [07:14:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T071500&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118084&fm=224175141268010&tin=02508201610067®Number=0000000000092660&sum=30000 [07:14:58]written 0, free lines is 4095 [07:14:58]OFD Sender: Processing packet 118084 [packets to send 85, broken 84] [07:14:58]ProducePacketName [07:14:58]name=ofd_packets/00118084 [07:14:58]OFD Sender: To server: pG, [07:14:58]CommunicateWithHost lk.salyk.kg:30040 [07:14:58]ConnectInit lk.salyk.kg [07:14:58]Connected sock=10 [07: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 34 39 33 39 0F 01 00 00 F3 1A 07 01 ED 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 74 9E A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 44 CD 01 00 35 04 06 00 CB E2 D7 A9 AA 2A 9F 00 39 CC 5F 4D 50 CC [07:14:58]Write to MH i2c: 01 00 00 B5 29 DE [07:14:58]Write i2c OK [07:14:58]MH_I2C_Read... [07:14:58]Read from MH i2c: 01 [07:14:58]MH_I2C_Read... [07:14:58]Read from MH i2c: 01 07 00 [07:14:58]MH_I2C_Read... [07:14:58]Read from MH i2c: 01 07 00 B5 29 00 00 00 00 00 D6 0C C7 [07:14:58]RasterBufferAndPrint [07:14:58]line [07:14:58]line [07:14:58]line [07:14:58]line [07:14:58]line [07:14:58]written 0, free lines is 3293 [07:14:58]MH_Cut [07:14:58]Write to MH i2c: D1 01 00 BC 29 01 B7 [07:14:58]Write i2c OK [07:14:58]MH_I2C_Read... [07:14:58]Read from MH i2c: D1 [07:14:58]MH_I2C_Read... [07:14:58]Read from MH i2c: D1 01 00 [07:14:58]MH_I2C_Read... [07:14:58]Read from MH i2c: D1 01 00 BC 29 00 B6 [07:14:58]Write to MH i2c: 01 00 00 BD 29 E6 [07:14:58]Write i2c OK [07:14:58]MH_I2C_Read... [07:14:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A0 AB 47 00 DD 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 44 CD 01 00 F4 03 04 00 07 4C A4 66 B6 04 01 00 00 D5 17 B3 05 57 B1 E8 ED [07:14:58]CommunicateWithHost err = 0 [07:14:58]CheckOFDResponse [07:14:58]1017 (14) - 77093643461234 [07:14:58]1041 (16) - 0000000000874939 [07:14:58]1040 (4) - 118084 [07:14:58]1012 (4) - 27.07.2024 01:23 [07:14:58]1206 (1) - 0 [07:14:58]OFD Sender: Remove packet 118084 [07:14:58]ProducePacketName [07:14:58]name=ofd_packets/00118084 [07:14:58]NVStorageDeleteData [07:14:59]OFD Sender: No OFD packet to send [07:14:59]*** Cut start [07:14:59]*** Partial cut [07:14:59]*** CUTSNS_PIN = 1 [07:14:59]*** CUTSNS_PIN = 0 [07:14:59]*** Brake cut motor [07:14:59]Read from MH i2c: 01 [07:14:59]MH_I2C_Read... [07:14:59]*** Stop cut motor [07:14:59]*** Cut end [07:14:59]Read from MH i2c: 01 07 00 [07:14:59]MH_I2C_Read... [07:14:59]Read from MH i2c: 01 07 00 BD 29 00 00 00 00 00 FF 0F FB [07:14:59]process_action close_receipt done [07:14:59]requested_data is exist [07:14:59]produce_requested_data [07:14:59]requested_item fm.sn is exist - process it [07:14:59]wFMCommunicate request_size=4 [07:14:59]MH_SAM_APDU [07:14:59]CAPDU: 80 11 00 00 [07:14:59]Write to MH i2c: E2 08 00 BE 29 80 11 00 00 00 00 00 00 61 [07:14:59]Write i2c OK [07:14:59]MH_I2C_Read... [07:14:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:14:59]Read from MH i2c: E2 [07:14:59]MH_I2C_Read... [07:14:59]Read from MH i2c: E2 17 00 [07:14:59]MH_I2C_Read... [07:14:59]Read from MH i2c: E2 17 00 BE 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BC [07:14:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:14:59]wFMCommunicate OK [07:14:59]requested_item fd.num is exist - process it [07:14:59]SAM_PROTO_GetFieldsCounters [07:14:59]wFMCommunicate request_size=4 [07:14:59]MH_SAM_APDU [07:14:59]CAPDU: 80 13 00 00 [07:14:59]Write to MH i2c: E2 08 00 BF 29 80 13 00 00 00 00 00 00 64 [07:14:59]Write i2c OK [07:14:59]MH_I2C_Read... [07:15:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:15:00]Read from MH i2c: E2 [07:15:00]MH_I2C_Read... [07:15:00]Read from MH i2c: E2 62 00 [07:15:00]MH_I2C_Read... [07:15:00]Read from MH i2c: E2 62 00 BF 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 44 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [07: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 44 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:15:00]wFMCommunicate OK [07:15:00]SAM_PROTO_GetFieldsCounters done [07:15:00]requested_item shift.num is exist - process it [07:15:00]requested_item shift.opened is exist - process it [07:15:00]req_shift_opened [07:15:00]FM_GetShiftState [07:15:00]SAM_PROTO_GetShiftState [07:15:00]wFMCommunicate request_size=4 [07:15:00]MH_SAM_APDU [07:15:00]CAPDU: 80 13 01 00 [07:15:00]Write to MH i2c: E2 08 00 C0 29 80 13 01 00 00 00 00 00 66 [07:15:00]Write i2c OK [07:15:00]MH_I2C_Read... [07:15:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:15:00]Read from MH i2c: E2 [07:15:00]MH_I2C_Read... [07:15:00]Read from MH i2c: E2 0E 00 [07:15:00]MH_I2C_Read... [07:15:00]Read from MH i2c: E2 0E 00 C0 29 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 F3 [07:15:00]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [07:15:00]wFMCommunicate OK [07:15:00]SAM_PROTO_GetShiftState done [07:15:00]FM_GetShiftState done [07:15:00]req_shift_opened done [07:15:00]requested_item shift.open_date is exist - process it [07:15:00]req_shift_open_date [07:15:00]req_shift_open_date done [07:15:00]produce_requested_data done [07:15:00]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118084,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [07:15:00]process_action_free close_receipt [07:15:00]json_value_free [07:15:00]json_value_free done [07:15:00]process_json_proto returns [07:15:00]Send response to host [07:15:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118084,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [07:15:00]free response buf [07:15:00]execute_script done [07:15:00]execute_script returns [07:15:00]free content buf [07:15:00]Sock 9.Close socket [07:15:00]Sock 9.Thread stoped [07:15:04]OFD Sender: No OFD packet to send [07:15:09]OFD Sender: No OFD packet to send [07:15:14]OFD Sender: No OFD packet to send [07:15:19]OFD Sender: No OFD packet to send [07:15:24]OFD Sender: No OFD packet to send [07:15:29]OFD Sender: No OFD packet to send [07:15:34]OFD Sender: No OFD packet to send [07:15:39]OFD Sender: No OFD packet to send [07:15:44]OFD Sender: No OFD packet to send [07:15:49]OFD Sender: No OFD packet to send [07:15:54]OFD Sender: No OFD packet to send [07:15:59]OFD Sender: No OFD packet to send [07:16:04]OFD Sender: No OFD packet to send [07:16:09]OFD Sender: No OFD packet to send [07:16:14]OFD Sender: No OFD packet to send [07:16:19]OFD Sender: No OFD packet to send [07:16:24]OFD Sender: No OFD packet to send [07:16:29]OFD Sender: No OFD packet to send [07:16:34]OFD Sender: No OFD packet to send [07:16:39]OFD Sender: No OFD packet to send [07:16:44]OFD Sender: No OFD packet to send [07:16:49]OFD Sender: No OFD packet to send [07:16:54]OFD Sender: No OFD packet to send [07:16:59]OFD Sender: No OFD packet to send [07:17:04]OFD Sender: No OFD packet to send [07:17:09]OFD Sender: No OFD packet to send [07:17:14]OFD Sender: No OFD packet to send [07:17:19]OFD Sender: No OFD packet to send [07:17:24]OFD Sender: No OFD packet to send [07:17:29]OFD Sender: No OFD packet to send [07:17:34]OFD Sender: No OFD packet to send [07:17:39]OFD Sender: No OFD packet to send [07:17:44]OFD Sender: No OFD packet to send [07:17:49]OFD Sender: No OFD packet to send [07:17:54]OFD Sender: No OFD packet to send [07:17:59]OFD Sender: No OFD packet to send [07:18:04]OFD Sender: No OFD packet to send [07:18:09]OFD Sender: No OFD packet to send [07:18:14]OFD Sender: No OFD packet to send [07:18:19]OFD Sender: No OFD packet to send [07:18:24]OFD Sender: No OFD packet to send [07:18:29]OFD Sender: No OFD packet to send [07:18:34]OFD Sender: No OFD packet to send [07:18:39]OFD Sender: No OFD packet to send [07:18:44]OFD Sender: No OFD packet to send [07:18:49]OFD Sender: No OFD packet to send [07:18:54]OFD Sender: No OFD packet to send [07:18:59]OFD Sender: No OFD packet to send [07:19:04]OFD Sender: No OFD packet to send [07:19:09]OFD Sender: No OFD packet to send [07:19:14]OFD Sender: No OFD packet to send [07:19:19]OFD Sender: No OFD packet to send [07:19:24]OFD Sender: No OFD packet to send [07:19:29]OFD Sender: No OFD packet to send [07:19:34]OFD Sender: No OFD packet to send [07:19:39]OFD Sender: No OFD packet to send [07:19:44]OFD Sender: No OFD packet to send [07:19:49]OFD Sender: No OFD packet to send [07:19:54]OFD Sender: No OFD packet to send [07:19:59]OFD Sender: No OFD packet to send [07:20:04]OFD Sender: No OFD packet to send [07:20:09]OFD Sender: No OFD packet to send [07:20:14]OFD Sender: No OFD packet to send [07:20:19]OFD Sender: No OFD packet to send [07:20:24]OFD Sender: No OFD packet to send [07:20:29]OFD Sender: No OFD packet to send [07:20:34]OFD Sender: No OFD packet to send [07:20:39]OFD Sender: No OFD packet to send [07:20:44]OFD Sender: No OFD packet to send [07:20:49]OFD Sender: No OFD packet to send [07:20:54]OFD Sender: No OFD packet to send [07:20:59]OFD Sender: No OFD packet to send [07:21:04]OFD Sender: No OFD packet to send [07:21:09]OFD Sender: No OFD packet to send [07:21:14]OFD Sender: No OFD packet to send [07:21:19]OFD Sender: No OFD packet to send [07:21:24]OFD Sender: No OFD packet to send [07:21:29]OFD Sender: No OFD packet to send [07:21:34]OFD Sender: No OFD packet to send [07:21:39]OFD Sender: No OFD packet to send [07:21:44]OFD Sender: No OFD packet to send [07:21:49]OFD Sender: No OFD packet to send [07:21:54]OFD Sender: No OFD packet to send [07:21:59]OFD Sender: No OFD packet to send [07:22:04]OFD Sender: No OFD packet to send [07:22:09]OFD Sender: No OFD packet to send [07:22:14]OFD Sender: No OFD packet to send [07:22:19]OFD Sender: No OFD packet to send [07:22:24]OFD Sender: No OFD packet to send [07:22:29]OFD Sender: No OFD packet to send [07:22:34]OFD Sender: No OFD packet to send [07:22:39]OFD Sender: No OFD packet to send [07:22:44]OFD Sender: No OFD packet to send [07:22:49]OFD Sender: No OFD packet to send [07:22:54]OFD Sender: No OFD packet to send [07:22:59]OFD Sender: No OFD packet to send [07:23:04]OFD Sender: No OFD packet to send [07:23:09]OFD Sender: No OFD packet to send [07:23:14]OFD Sender: No OFD packet to send [07:23:19]OFD Sender: No OFD packet to send [07:23:24]OFD Sender: No OFD packet to send [07:23:29]OFD Sender: No OFD packet to send [07:23:34]OFD Sender: No OFD packet to send [07:23:39]OFD Sender: No OFD packet to send [07:23:44]OFD Sender: No OFD packet to send [07:23:49]OFD Sender: No OFD packet to send [07:23:54]OFD Sender: No OFD packet to send [07:23:59]OFD Sender: No OFD packet to send [07:24:04]OFD Sender: No OFD packet to send [07:24:09]OFD Sender: No OFD packet to send [07:24:14]OFD Sender: No OFD packet to send [07:24:19]OFD Sender: No OFD packet to send [07:24:24]OFD Sender: No OFD packet to send [07:24:29]OFD Sender: No OFD packet to send [07:24:34]OFD Sender: No OFD packet to send [07:24:39]OFD Sender: No OFD packet to send [07:24:44]OFD Sender: No OFD packet to send [07:24:49]OFD Sender: No OFD packet to send [07:24:54]OFD Sender: No OFD packet to send [07:24:59]OFD Sender: No OFD packet to send [07:25:04]OFD Sender: No OFD packet to send [07:25:09]OFD Sender: No OFD packet to send [07:25:14]OFD Sender: No OFD packet to send [07:25:19]OFD Sender: No OFD packet to send [07:25:24]OFD Sender: No OFD packet to send [07:25:29]OFD Sender: No OFD packet to send [07:25:34]OFD Sender: No OFD packet to send [07:25:39]OFD Sender: No OFD packet to send [07:25:44]OFD Sender: No OFD packet to send [07:25:49]OFD Sender: No OFD packet to send [07:25:54]OFD Sender: No OFD packet to send [07:25:59]OFD Sender: No OFD packet to send [07:26:04]OFD Sender: No OFD packet to send [07:26:09]OFD Sender: No OFD packet to send [07:26:14]OFD Sender: No OFD packet to send [07:26:19]OFD Sender: No OFD packet to send [07:26:24]OFD Sender: No OFD packet to send [07:26:29]OFD Sender: No OFD packet to send [07:26:34]OFD Sender: No OFD packet to send [07:26:39]OFD Sender: No OFD packet to send [07:26:44]OFD Sender: No OFD packet to send [07:26:49]OFD Sender: No OFD packet to send [07:26:54]OFD Sender: No OFD packet to send [07:26:59]OFD Sender: No OFD packet to send [07:27:04]OFD Sender: No OFD packet to send [07:27:09]OFD Sender: No OFD packet to send [07:27:15]OFD Sender: No OFD packet to send [07:27:20]OFD Sender: No OFD packet to send [07:27:25]OFD Sender: No OFD packet to send [07:27:30]OFD Sender: No OFD packet to send [07:27:35]OFD Sender: No OFD packet to send [07:27:40]OFD Sender: No OFD packet to send [07:27:45]OFD Sender: No OFD packet to send [07:27:50]OFD Sender: No OFD packet to send [07:27:55]OFD Sender: No OFD packet to send [07:28:00]OFD Sender: No OFD packet to send [07:28:05]OFD Sender: No OFD packet to send [07:28:10]OFD Sender: No OFD packet to send [07:28:15]OFD Sender: No OFD packet to send [07:28:19]accept exits with 7 [07:28:19]New connection [07:28:19]New thread 3067284836 created [07:28:19]Thread 3067428196 joined [07:28:19]Waiting for new connection... [07:28:19] Sock 7.Parse request [07:28:19]Sock 7.Check first char [07:28:19]Sock 7.First char is OK [07:28:19]request: POST /json_proto HTTP/1.0 [07:28:19]Method: POST [07:28:19]URL: /json_proto [07:28:19]Method is POST - this is cgi request [07:28:19]url: /json_proto [07:28:19]query_string will be loaded in cgi processing [07:28:19]execute_cgi json_proto POST (null) [07:28:19]execute_cgi path=json_proto method=POST [07:28:19]POST find Content-Length [07:28:19]Host: 172.17.45.7:8080 [07:28:19]Content-Length: 679 [07:28:19]Content-Type: application/json [07:28:19] [07:28:19]POST finish read [07:28:19]Found Content-Length = 679 [07:28:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 23.630, "sum" : 1800.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:28:19]execute_script... [07:28: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)948955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 23.630, "sum" : 1800.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:28:19]POST & json_proto [07:28:19]process_json_proto [07:28:19]json parsed OK: [07:28:19]protocol is kg_v1.0 [07:28:19]action value=close_receipt [07:28:19]process_action close_receipt [07:28:19]cmd_close_receipt [07:28:19]MH_GetDate [07:28:19]Write to MH i2c: F0 00 00 C1 29 D9 [07:28:19]Write i2c OK [07:28:19]MH_I2C_Read... [07:28:19]Read from MH i2c: F0 [07:28:19]MH_I2C_Read... [07:28:19]Read from MH i2c: F0 09 00 [07:28:19]MH_I2C_Read... [07:28:19]Read from MH i2c: F0 09 00 C1 29 00 96 A1 A4 66 90 0F 3E 66 66 [07:28:19]GetLastDocTimeStamp 1722064500 [07:28:19]current date 1722065302 [07:28:19]FM_GetShiftState [07:28:19]SAM_PROTO_GetShiftState [07:28:19]wFMCommunicate request_size=4 [07:28:19]MH_SAM_APDU [07:28:19]CAPDU: 80 13 01 00 [07:28:19]Write to MH i2c: E2 08 00 C2 29 80 13 01 00 00 00 00 00 68 [07:28:19]Write i2c OK [07:28:19]MH_I2C_Read... [07:28:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:19]Read from MH i2c: E2 [07:28:19]MH_I2C_Read... [07:28:19]Read from MH i2c: E2 0E 00 [07:28:19]MH_I2C_Read... [07:28:19]Read from MH i2c: E2 0E 00 C2 29 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 F5 [07:28:19]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [07:28:19]wFMCommunicate OK [07:28:19]SAM_PROTO_GetShiftState done [07:28:19]FM_GetShiftState done [07:28:19]opened in 1722038845 [07:28:19]opened+sec_in_day 1722125245 [07:28:19]quantity*price = 180060 [07:28:19]sum+1 = 180062 [07:28:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.21 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 28 27.07.2024 07:28 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118085 ФПД: 169606653119043 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T072822&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118085&fm=169606653119043&tin=02508201610067®Number=0000000000092660&sum=180000 [07:28:20]StoreToDocumentArchive [07:28:20]shift 432 fd 118085 [07:28:20]save to /storage/0432/doc_00118085 [07:28:20]save last doc name /storage/0432/doc_00118085 to /storage/kkm_last_doc_name [07:28:20]save OK [07:28:20]Clear old archive folders... [07:28:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:28:20]tlvbuf is 0077B100 [07:28:20]SAM_PROTO_ClearQueue [07:28:20]wFMCommunicate request_size=4 [07:28:20]MH_SAM_APDU [07:28:20]CAPDU: 80 09 00 00 [07:28:20]Write to MH i2c: E2 08 00 CF 29 80 09 00 00 00 00 00 00 6A [07:28:20]Write i2c OK [07:28:20]MH_I2C_Read... [07:28:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:28:20]Read from MH i2c: E2 [07:28:20]MH_I2C_Read... [07:28:20]Read from MH i2c: E2 03 00 [07:28:20]MH_I2C_Read... [07:28:20]Read from MH i2c: E2 03 00 CF 29 00 90 00 6C [07:28:20]RAPDU: 90 00 [07:28:20]wFMCommunicate OK [07:28:20]SAM_PROTO_ClearQueue done [07:28:20]KKMCreateOFDPacket [07:28:20]OFDProtocolAddRootSTLVToBuf [07:28:20]FM_MakeSignedData [07:28:20]FM_MakeSignedData [07:28:20]SAM_PROTO_SignData [07:28:20]wFMCommunicate request_size=4 [07:28:20]MH_SAM_APDU [07:28:20]CAPDU: 80 0D 01 02 [07:28:20]Write to MH i2c: E2 08 00 D0 29 80 0D 01 02 00 00 00 00 72 [07:28:20]Write i2c OK [07:28:20]MH_I2C_Read... [07:28:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:28:20]Read from MH i2c: E2 [07:28:20]MH_I2C_Read... [07:28:20]Read from MH i2c: E2 03 00 [07:28:20]MH_I2C_Read... [07:28:20]Read from MH i2c: E2 03 00 D0 29 00 90 00 6D [07:28:20]RAPDU: 90 00 [07:28:20]wFMCommunicate OK [07:28:20]wFMCommunicate request_size=255 [07:28:20]MH_SAM_APDU [07:28:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 96 A1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 45 CD 01 00 35 04 06 00 9A 41 A0 4F [07:28:20]Write to MH i2c: E2 02 01 D1 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 96 A1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 45 CD 01 00 35 04 06 00 9A 41 A0 4F 00 00 6A [07:28:20]Write i2c OK [07:28:20]MH_I2C_Read... [07:28:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:28:20]Read from MH i2c: E2 [07:28:20]MH_I2C_Read... [07:28:20]Read from MH i2c: E2 03 00 [07:28:20]MH_I2C_Read... [07:28:20]Read from MH i2c: E2 03 00 D1 29 00 90 00 6E [07:28:20]RAPDU: 90 00 [07:28:20]wFMCommunicate OK [07:28:20]wFMCommunicate request_size=7 [07:28:20]MH_SAM_APDU [07:28:20]CAPDU: 80 0D 02 02 02 8A 43 [07:28:20]Write to MH i2c: E2 0A 00 D2 29 80 0D 02 02 02 00 8A 43 00 00 46 [07:28:20]Write i2c OK [07:28:20]MH_I2C_Read... [07:28:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:28:20]Read from MH i2c: E2 [07:28:20]MH_I2C_Read... [07:28:20]Read from MH i2c: E2 03 00 [07:28:20]MH_I2C_Read... [07:28:20]Read from MH i2c: E2 03 00 D2 29 00 90 00 6F [07:28:20]RAPDU: 90 00 [07:28:20]wFMCommunicate OK [07:28:20]wFMCommunicate request_size=4 [07:28:20]MH_SAM_APDU [07:28:20]CAPDU: 80 0D 03 02 [07:28:20]Write to MH i2c: E2 08 00 D3 29 80 0D 03 02 00 00 00 00 77 [07:28:20]Write i2c OK [07:28:20]MH_I2C_Read... [07:28:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:28:20]Read from MH i2c: E2 [07:28:20]MH_I2C_Read... [07:28:20]Read from MH i2c: E2 0B 00 [07:28:20]MH_I2C_Read... [07:28:20]Read from MH i2c: E2 0B 00 D3 29 00 D9 D9 A4 7E 60 C5 69 31 90 00 0B [07:28:20]RAPDU: D9 D9 A4 7E 60 C5 69 31 90 00 [07:28:20]wFMCommunicate OK [07:28:20]SAM_PROTO_SignData done [07:28:20]FM_MakeSignedData done [07:28:20]CreateOFDProtocolMessage [07:28:20]wFMCommunicate request_size=4 [07:28:20]MH_SAM_APDU [07:28:20]CAPDU: 80 11 00 00 [07:28:20]Write to MH i2c: E2 08 00 D4 29 80 11 00 00 00 00 00 00 77 [07:28:20]Write i2c OK [07:28:20]MH_I2C_Read... [07:28:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:20]Read from MH i2c: E2 [07:28:20]MH_I2C_Read... [07:28:20]Read from MH i2c: E2 17 00 [07:28:20]MH_I2C_Read... [07:28:20]Read from MH i2c: E2 17 00 D4 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D2 [07:28:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:28:20]wFMCommunicate OK [07:28:20]CreateOFDProtocolMessage done [07:28:20]OFDSenderStorePacket 118085 [07:28:20]StoreOFDPacket docnum=118085 [07:28:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 9D E1 04 01 E4 BC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 96 A1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 45 CD 01 00 35 04 06 00 9A 41 A0 4F 8A 43 D9 D9 A4 7E 60 C5 69 31 [07:28:20]CheckFolder [07:28:20]dirname=/storage/ofd_packets [07:28:20]CheckFolder done [07:28:20]ProducePacketName [07:28:20]name=ofd_packets/00118085 [07:28:20]NVStorageSaveData ofd_packets/00118085 [07:28:20]File name is /storage/ofd_packets/00118085 [07:28:20]Write 298 bytes [07:28:20]NVStorageSaveData done [07:28:20]OFDSenderStorePacket done [07:28:20]KKMCreateOFDPacket done [07:28:20]NVStorageSaveData kkm_last_timestamp [07:28:20]File name is /storage/kkm_last_timestamp [07:28:20]Write 4 bytes [07:28:20]NVStorageSaveData done [07:28:20]ExternCall_PrintAddStr [07:28:20]wPrintStart [07:28:20]Write to MH i2c: 01 00 00 D5 29 FE [07:28:20]Write i2c OK [07:28:20]MH_I2C_Read... [07:28:20]Read from MH i2c: 01 [07:28:20]MH_I2C_Read... [07:28:20]Read from MH i2c: 01 07 00 [07:28:20]MH_I2C_Read... [07:28:20]Read from MH i2c: 01 07 00 D5 29 00 00 00 00 00 FF 0F 13 [07:28:20]RasterBufferAndPrint [07:28:20]line Счет N : (1)948955 [07:28:20]line ИНН: 02508201610067 [07:28:20]line Контрольно-Кассовый Чек [07:28:20]line ПРОДАЖА [07:28:20]line ТРК (МРК, ГНК) : 21 [07:28:20]line Товар: 2710194800 [07:28:20]line ДТ-К-5 [07:28:20]line 23.630 * 76.20 [07:28:20]line = 1800.61 [07:28:20]line НДС 12% НСП 1% [07:28:20]line > о реализуемом товаре [07:28:20]line ОКРУГЛЕНИЕ: -0.61 [07:28:20]line ИТОГО: 1800.00 [07:28:20]line Внесено: 1800.00 [07:28:20]line СДАЧА: 0.00 [07:28:20]line НСП 1% : 15.93 [07:28:20]line НДС 12% : 191.21 [07:28:20]line Наличными: 1800.00 [07:28:20]line Безнал.: 0.00 [07:28:20]line Место: АЗС № 134 "Партнер Нефть" [07:28:20]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:28:20]line СНО: Общий режим [07:28:20]line Чек 28 27.07.2024 07:28 [07:28:20]line Смена: 432 ФФД: 1.0 [07:28:20]line ЗНМ: 0300000044 [07:28:20]line РНМ: 0000000000092660 [07:28:20]line Версия ККМ: 001 [07:28:20]line ФМ: 0000000000874939 [07:28:20]line ФД: 118085 [07:28:20]line ФПД: 169606653119043 [07:28:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T072822&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118085&fm=169606653119043&tin=02508201610067®Number=0000000000092660&sum=180000 [07:28:21]OFD Sender: Processing packet 118085 [packets to send 85, broken 84] [07:28:21]ProducePacketName [07:28:21]name=ofd_packets/00118085 [07:28:21]OFD Sender: To server: pG, [07:28:21]CommunicateWithHost lk.salyk.kg:30040 [07:28:21]ConnectInit lk.salyk.kg [07:28:21]written 0, free lines is 4095 [07:28:21]Connected sock=10 [07:28:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 9D E1 04 01 E4 BC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 96 A1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 45 CD 01 00 35 04 06 00 9A 41 A0 4F 8A 43 D9 D9 A4 7E 60 C5 69 31 [07:28:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 88 D5 47 00 6C 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 45 CD 01 00 F4 03 04 00 2A 4F A4 66 B6 04 01 00 00 18 EA 84 FC D0 37 D4 62 [07:28:21]CommunicateWithHost err = 0 [07:28:21]CheckOFDResponse [07:28:21]1017 (14) - 77093643461234 [07:28:21]1041 (16) - 0000000000874939 [07:28:21]1040 (4) - 118085 [07:28:21]1012 (4) - 27.07.2024 01:36 [07:28:21]1206 (1) - 0 [07:28:21]OFD Sender: Remove packet 118085 [07:28:21]ProducePacketName [07:28:21]name=ofd_packets/00118085 [07:28:21]NVStorageDeleteData [07:28:21]Write to MH i2c: 01 00 00 FF 29 28 [07:28:21]Write i2c OK [07:28:21]MH_I2C_Read... [07:28:21]Read from MH i2c: 01 [07:28:21]MH_I2C_Read... [07:28:21]Read from MH i2c: 01 07 00 [07:28:21]MH_I2C_Read... [07:28:21]Read from MH i2c: 01 07 00 FF 29 00 00 00 00 00 CF 0C 0A [07:28:21]RasterBufferAndPrint [07:28:21]line [07:28:21]line [07:28:21]line [07:28:21]line [07:28:21]line [07:28:21]written 0, free lines is 3285 [07:28:21]MH_Cut [07:28:21]Write to MH i2c: D1 01 00 06 2A 01 02 [07:28:21]Write i2c OK [07:28:21]MH_I2C_Read... [07:28:21]Read from MH i2c: D1 [07:28:21]MH_I2C_Read... [07:28:21]Read from MH i2c: D1 01 00 [07:28:21]MH_I2C_Read... [07:28:21]Read from MH i2c: D1 01 00 06 2A 00 01 [07:28:21]Write to MH i2c: 01 00 00 07 2A 31 [07:28:21]Write i2c OK [07:28:21]MH_I2C_Read... [07:28:21]OFD Sender: No OFD packet to send [07:28:22]*** Cut start [07:28:22]*** Partial cut [07:28:22]*** CUTSNS_PIN = 1 [07:28:22]*** CUTSNS_PIN = 0 [07:28:22]*** Brake cut motor [07:28:22]Read from MH i2c: 01 [07:28:22]MH_I2C_Read... [07:28:22]*** Stop cut motor [07:28:22]*** Cut end [07:28:22]Read from MH i2c: 01 07 00 [07:28:22]MH_I2C_Read... [07:28:22]Read from MH i2c: 01 07 00 07 2A 00 00 00 00 00 FF 0F 46 [07:28:22]process_action close_receipt done [07:28:22]requested_data is exist [07:28:22]produce_requested_data [07:28:22]requested_item fm.sn is exist - process it [07:28:22]wFMCommunicate request_size=4 [07:28:22]MH_SAM_APDU [07:28:22]CAPDU: 80 11 00 00 [07:28:22]Write to MH i2c: E2 08 00 08 2A 80 11 00 00 00 00 00 00 AC [07:28:22]Write i2c OK [07:28:22]MH_I2C_Read... [07:28:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:23]Read from MH i2c: E2 [07:28:23]MH_I2C_Read... [07:28:23]Read from MH i2c: E2 17 00 [07:28:23]MH_I2C_Read... [07:28:23]Read from MH i2c: E2 17 00 08 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 07 [07:28:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:28:23]wFMCommunicate OK [07:28:23]requested_item fd.num is exist - process it [07:28:23]SAM_PROTO_GetFieldsCounters [07:28:23]wFMCommunicate request_size=4 [07:28:23]MH_SAM_APDU [07:28:23]CAPDU: 80 13 00 00 [07:28:23]Write to MH i2c: E2 08 00 09 2A 80 13 00 00 00 00 00 00 AF [07:28:23]Write i2c OK [07:28:23]MH_I2C_Read... [07:28:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:28:23]Read from MH i2c: E2 [07:28:23]MH_I2C_Read... [07:28:23]Read from MH i2c: E2 62 00 [07:28:23]MH_I2C_Read... [07:28:23]Read from MH i2c: E2 62 00 09 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 45 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [07:28:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 45 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:28:23]wFMCommunicate OK [07:28:23]SAM_PROTO_GetFieldsCounters done [07:28:23]requested_item shift.num is exist - process it [07:28:23]requested_item shift.opened is exist - process it [07:28:23]req_shift_opened [07:28:23]FM_GetShiftState [07:28:23]SAM_PROTO_GetShiftState [07:28:23]wFMCommunicate request_size=4 [07:28:23]MH_SAM_APDU [07:28:23]CAPDU: 80 13 01 00 [07:28:23]Write to MH i2c: E2 08 00 0A 2A 80 13 01 00 00 00 00 00 B1 [07:28:23]Write i2c OK [07:28:23]MH_I2C_Read... [07:28:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:23]Read from MH i2c: E2 [07:28:23]MH_I2C_Read... [07:28:23]Read from MH i2c: E2 0E 00 [07:28:23]MH_I2C_Read... [07:28:23]Read from MH i2c: E2 0E 00 0A 2A 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 3E [07:28:23]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [07:28:23]wFMCommunicate OK [07:28:23]SAM_PROTO_GetShiftState done [07:28:23]FM_GetShiftState done [07:28:23]req_shift_opened done [07:28:23]requested_item shift.open_date is exist - process it [07:28:23]req_shift_open_date [07:28:23]req_shift_open_date done [07:28:23]produce_requested_data done [07:28:23]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118085,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [07:28:23]process_action_free close_receipt [07:28:23]json_value_free [07:28:23]json_value_free done [07:28:23]process_json_proto returns [07:28:23]Send response to host [07:28:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118085,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [07:28:23]free response buf [07:28:23]execute_script done [07:28:23]execute_script returns [07:28:23]free content buf [07:28:23]Sock 7.Close socket [07:28:23]Sock 7.Thread stoped [07:28:26]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:49]accept exits with 9 [07:28:49]New connection [07:28:49]New thread 3067428196 created [07:28:49]Thread 3067284836 joined [07:28:49]Waiting for new connection... [07:28:49] Sock 9.Parse request [07:28:49]Sock 9.Check first char [07:28:49]Sock 9.First char is OK [07:28:49]request: POST /json_proto HTTP/1.0 [07:28:49]Method: POST [07:28:49]URL: /json_proto [07:28:49]Method is POST - this is cgi request [07:28:49]url: /json_proto [07:28:49]query_string will be loaded in cgi processing [07:28:49]execute_cgi json_proto POST (null) [07:28:49]execute_cgi path=json_proto method=POST [07:28:49]POST find Content-Length [07:28:49]Host: 172.17.45.7:8080 [07:28:49]Content-Length: 674 [07:28:49]Content-Type: application/json [07:28:49] [07:28:49]POST finish read [07:28:49]Found Content-Length = 674 [07:28:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:28:49]execute_script... [07:28: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)948956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:28:49]POST & json_proto [07:28:49]process_json_proto [07:28:49]json parsed OK: [07:28:49]protocol is kg_v1.0 [07:28:49]action value=close_receipt [07:28:49]process_action close_receipt [07:28:49]cmd_close_receipt [07:28:49]MH_GetDate [07:28:49]Write to MH i2c: F0 00 00 0B 2A 24 [07:28:49]Write i2c OK [07:28:49]MH_I2C_Read... [07:28:49]Read from MH i2c: F0 [07:28:49]MH_I2C_Read... [07:28:49]Read from MH i2c: F0 09 00 [07:28:49]MH_I2C_Read... [07:28:49]Read from MH i2c: F0 09 00 0B 2A 00 B5 A1 A4 66 90 0F 3E 66 D0 [07:28:49]GetLastDocTimeStamp 1722065302 [07:28:49]current date 1722065333 [07:28:49]FM_GetShiftState [07:28:49]SAM_PROTO_GetShiftState [07:28:49]wFMCommunicate request_size=4 [07:28:49]MH_SAM_APDU [07:28:49]CAPDU: 80 13 01 00 [07:28:49]Write to MH i2c: E2 08 00 0C 2A 80 13 01 00 00 00 00 00 B3 [07:28:49]Write i2c OK [07:28:49]MH_I2C_Read... [07:28:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:49]Read from MH i2c: E2 [07:28:49]MH_I2C_Read... [07:28:49]Read from MH i2c: E2 0E 00 [07:28:49]MH_I2C_Read... [07:28:49]Read from MH i2c: E2 0E 00 0C 2A 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 40 [07:28:49]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [07:28:49]wFMCommunicate OK [07:28:49]SAM_PROTO_GetShiftState done [07:28:49]FM_GetShiftState done [07:28:49]opened in 1722038845 [07:28:49]opened+sec_in_day 1722125245 [07:28:49]quantity*price = 60045 [07:28:49]sum+1 = 60047 [07:28:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 29 27.07.2024 07:28 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118086 ФПД: 47858297664817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T072853&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118086&fm=47858297664817&tin=02508201610067®Number=0000000000092660&sum=60000 [07:28:50]StoreToDocumentArchive [07:28:50]shift 432 fd 118086 [07:28:50]save to /storage/0432/doc_00118086 [07:28:50]save last doc name /storage/0432/doc_00118086 to /storage/kkm_last_doc_name [07:28:50]save OK [07:28:50]Clear old archive folders... [07:28:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:28:50]tlvbuf is 00769080 [07:28:50]SAM_PROTO_ClearQueue [07:28:50]wFMCommunicate request_size=4 [07:28:50]MH_SAM_APDU [07:28:50]CAPDU: 80 09 00 00 [07:28:50]Write to MH i2c: E2 08 00 19 2A 80 09 00 00 00 00 00 00 B5 [07:28:50]Write i2c OK [07:28:50]MH_I2C_Read... [07:28:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:28:50]Read from MH i2c: E2 [07:28:50]MH_I2C_Read... [07:28:50]Read from MH i2c: E2 03 00 [07:28:50]MH_I2C_Read... [07:28:50]Read from MH i2c: E2 03 00 19 2A 00 90 00 B7 [07:28:50]RAPDU: 90 00 [07:28:50]wFMCommunicate OK [07:28:50]SAM_PROTO_ClearQueue done [07:28:50]KKMCreateOFDPacket [07:28:50]OFDProtocolAddRootSTLVToBuf [07:28:50]FM_MakeSignedData [07:28:50]FM_MakeSignedData [07:28:50]SAM_PROTO_SignData [07:28:50]wFMCommunicate request_size=4 [07:28:50]MH_SAM_APDU [07:28:50]CAPDU: 80 0D 01 02 [07:28:50]Write to MH i2c: E2 08 00 1A 2A 80 0D 01 02 00 00 00 00 BD [07:28:50]Write i2c OK [07:28:50]MH_I2C_Read... [07:28:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:28:50]Read from MH i2c: E2 [07:28:50]MH_I2C_Read... [07:28:50]Read from MH i2c: E2 03 00 [07:28:50]MH_I2C_Read... [07:28:50]Read from MH i2c: E2 03 00 1A 2A 00 90 00 B8 [07:28:50]RAPDU: 90 00 [07:28:50]wFMCommunicate OK [07:28:50]wFMCommunicate request_size=255 [07:28:50]MH_SAM_APDU [07:28:50]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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 B5 A1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 46 CD 01 00 35 04 06 00 2B 86 E0 D4 [07:28:50]Write to MH i2c: E2 02 01 1B 2A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 B5 A1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 46 CD 01 00 35 04 06 00 2B 86 E0 D4 00 00 B5 [07:28:50]Write i2c OK [07:28:50]MH_I2C_Read... [07:28:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:28:51]Read from MH i2c: E2 [07:28:51]MH_I2C_Read... [07:28:51]Read from MH i2c: E2 03 00 [07:28:51]MH_I2C_Read... [07:28:51]Read from MH i2c: E2 03 00 1B 2A 00 90 00 B9 [07:28:51]RAPDU: 90 00 [07:28:51]wFMCommunicate OK [07:28:51]wFMCommunicate request_size=7 [07:28:51]MH_SAM_APDU [07:28:51]CAPDU: 80 0D 02 02 02 F5 31 [07:28:51]Write to MH i2c: E2 0A 00 1C 2A 80 0D 02 02 02 00 F5 31 00 00 EA [07:28:51]Write i2c OK [07:28:51]MH_I2C_Read... [07:28:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:28:51]Read from MH i2c: E2 [07:28:51]MH_I2C_Read... [07:28:51]Read from MH i2c: E2 03 00 [07:28:51]MH_I2C_Read... [07:28:51]Read from MH i2c: E2 03 00 1C 2A 00 90 00 BA [07:28:51]RAPDU: 90 00 [07:28:51]wFMCommunicate OK [07:28:51]wFMCommunicate request_size=4 [07:28:51]MH_SAM_APDU [07:28:51]CAPDU: 80 0D 03 02 [07:28:51]Write to MH i2c: E2 08 00 1D 2A 80 0D 03 02 00 00 00 00 C2 [07:28:51]Write i2c OK [07:28:51]MH_I2C_Read... [07:28:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:28:51]Read from MH i2c: E2 [07:28:51]MH_I2C_Read... [07:28:51]Read from MH i2c: E2 0B 00 [07:28:51]MH_I2C_Read... [07:28:51]Read from MH i2c: E2 0B 00 1D 2A 00 67 58 74 32 CF 28 A5 FE 90 00 C2 [07:28:51]RAPDU: 67 58 74 32 CF 28 A5 FE 90 00 [07:28:51]wFMCommunicate OK [07:28:51]SAM_PROTO_SignData done [07:28:51]FM_MakeSignedData done [07:28:51]CreateOFDProtocolMessage [07:28:51]wFMCommunicate request_size=4 [07:28:51]MH_SAM_APDU [07:28:51]CAPDU: 80 11 00 00 [07:28:51]Write to MH i2c: E2 08 00 1E 2A 80 11 00 00 00 00 00 00 C2 [07:28:51]Write i2c OK [07:28:51]MH_I2C_Read... [07:28:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:51]Read from MH i2c: E2 [07:28:51]MH_I2C_Read... [07:28:51]Read from MH i2c: E2 17 00 [07:28:51]MH_I2C_Read... [07:28:51]Read from MH i2c: E2 17 00 1E 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1D [07:28:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:28:51]wFMCommunicate OK [07:28:51]CreateOFDProtocolMessage done [07:28:51]OFDSenderStorePacket 118086 [07:28:51]StoreOFDPacket docnum=118086 [07:28:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 0D 5C 04 01 73 45 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 B5 A1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 46 CD 01 00 35 04 06 00 2B 86 E0 D4 F5 31 67 58 74 32 CF 28 A5 FE [07:28:51]CheckFolder [07:28:51]dirname=/storage/ofd_packets [07:28:51]CheckFolder done [07:28:51]ProducePacketName [07:28:51]name=ofd_packets/00118086 [07:28:51]NVStorageSaveData ofd_packets/00118086 [07:28:51]File name is /storage/ofd_packets/00118086 [07:28:51]Write 298 bytes [07:28:51]NVStorageSaveData done [07:28:51]OFDSenderStorePacket done [07:28:51]KKMCreateOFDPacket done [07:28:51]NVStorageSaveData kkm_last_timestamp [07:28:51]File name is /storage/kkm_last_timestamp [07:28:51]Write 4 bytes [07:28:51]NVStorageSaveData done [07:28:51]ExternCall_PrintAddStr [07:28:51]wPrintStart [07:28:51]Write to MH i2c: 01 00 00 1F 2A 49 [07:28:51]Write i2c OK [07:28:51]MH_I2C_Read... [07:28:51]Read from MH i2c: 01 [07:28:51]MH_I2C_Read... [07:28:51]Read from MH i2c: 01 07 00 [07:28:51]MH_I2C_Read... [07:28:51]Read from MH i2c: 01 07 00 1F 2A 00 00 00 00 00 FF 0F 5E [07:28:51]RasterBufferAndPrint [07:28:51]line Счет N : (1)948956 [07:28:51]line ИНН: 02508201610067 [07:28:51]line Контрольно-Кассовый Чек [07:28:51]line ПРОДАЖА [07:28:51]line ТРК (МРК, ГНК) : 34 [07:28:51]line Товар: 2710194800 [07:28:51]line ДТ-К-5 [07:28:51]line 7.880 * 76.20 [07:28:51]line = 600.46 [07:28:51]line НДС 12% НСП 1% [07:28:51]line > о реализуемом товаре [07:28:51]line ОКРУГЛЕНИЕ: -0.46 [07:28:51]line ИТОГО: 600.00 [07:28:51]line Внесено: 600.00 [07:28:51]line СДАЧА: 0.00 [07:28:51]line НСП 1% : 5.31 [07:28:51]line НДС 12% : 63.77 [07:28:51]line Наличными: 600.00 [07:28:51]line Безнал.: 0.00 [07:28:51]line Место: АЗС № 134 "Партнер Нефть" [07:28:51]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:28:51]line СНО: Общий режим [07:28:51]line Чек 29 27.07.2024 07:28 [07:28:51]line Смена: 432 ФФД: 1.0 [07:28:51]line ЗНМ: 0300000044 [07:28:51]line РНМ: 0000000000092660 [07:28:51]line Версия ККМ: 001 [07:28:51]line ФМ: 0000000000874939 [07:28:51]line ФД: 118086 [07:28:51]line ФПД: 47858297664817 [07:28:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T072853&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118086&fm=47858297664817&tin=02508201610067®Number=0000000000092660&sum=60000 [07:28:51]OFD Sender: Processing packet 118086 [packets to send 85, broken 84] [07:28:51]ProducePacketName [07:28:51]name=ofd_packets/00118086 [07:28:51]OFD Sender: To server: pG, [07:28:51]CommunicateWithHost lk.salyk.kg:30040 [07:28:51]ConnectInit lk.salyk.kg [07:28:51]written 0, free lines is 4095 [07:28:51]Connected sock=10 [07:28:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 0D 5C 04 01 73 45 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 B5 A1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 46 CD 01 00 35 04 06 00 2B 86 E0 D4 F5 31 67 58 74 32 CF 28 A5 FE [07:28:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 2A 6F 47 00 D2 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 46 CD 01 00 F4 03 04 00 48 4F A4 66 B6 04 01 00 00 5F 46 F3 2A 67 89 3F 19 [07:28:51]CommunicateWithHost err = 0 [07:28:51]CheckOFDResponse [07:28:51]1017 (14) - 77093643461234 [07:28:51]1041 (16) - 0000000000874939 [07:28:51]1040 (4) - 118086 [07:28:51]1012 (4) - 27.07.2024 01:37 [07:28:51]1206 (1) - 0 [07:28:51]OFD Sender: Remove packet 118086 [07:28:51]ProducePacketName [07:28:51]name=ofd_packets/00118086 [07:28:51]NVStorageDeleteData [07:28:52]Write to MH i2c: 01 00 00 49 2A 73 [07:28:52]Write i2c OK [07:28:52]MH_I2C_Read... [07:28:52]Read from MH i2c: 01 [07:28:52]MH_I2C_Read... [07:28:52]Read from MH i2c: 01 07 00 [07:28:52]MH_I2C_Read... [07:28:52]Read from MH i2c: 01 07 00 49 2A 00 00 00 00 00 CD 0C 53 [07:28:52]RasterBufferAndPrint [07:28:52]line [07:28:52]line [07:28:52]line [07:28:52]line [07:28:52]line [07:28:52]written 0, free lines is 3283 [07:28:52]MH_Cut [07:28:52]Write to MH i2c: D1 01 00 50 2A 01 4C [07:28:52]Write i2c OK [07:28:52]MH_I2C_Read... [07:28:52]Read from MH i2c: D1 [07:28:52]MH_I2C_Read... [07:28:52]Read from MH i2c: D1 01 00 [07:28:52]MH_I2C_Read... [07:28:52]Read from MH i2c: D1 01 00 50 2A 00 4B [07:28:52]Write to MH i2c: 01 00 00 51 2A 7B [07:28:52]Write i2c OK [07:28:52]MH_I2C_Read... [07:28:52]OFD Sender: No OFD packet to send [07:28:52]*** Cut start [07:28:52]*** Partial cut [07:28:52]*** CUTSNS_PIN = 1 [07:28:52]*** CUTSNS_PIN = 0 [07:28:53]*** Brake cut motor [07:28:53]Read from MH i2c: 01 [07:28:53]MH_I2C_Read... [07:28:53]*** Stop cut motor [07:28:53]*** Cut end [07:28:53]Read from MH i2c: 01 07 00 [07:28:53]MH_I2C_Read... [07:28:53]Read from MH i2c: 01 07 00 51 2A 00 00 00 00 00 FF 0F 90 [07:28:53]process_action close_receipt done [07:28:53]requested_data is exist [07:28:53]produce_requested_data [07:28:53]requested_item fm.sn is exist - process it [07:28:53]wFMCommunicate request_size=4 [07:28:53]MH_SAM_APDU [07:28:53]CAPDU: 80 11 00 00 [07:28:53]Write to MH i2c: E2 08 00 52 2A 80 11 00 00 00 00 00 00 F6 [07:28:53]Write i2c OK [07:28:53]MH_I2C_Read... [07:28:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:53]Read from MH i2c: E2 [07:28:53]MH_I2C_Read... [07:28:53]Read from MH i2c: E2 17 00 [07:28:53]MH_I2C_Read... [07:28:53]Read from MH i2c: E2 17 00 52 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 51 [07:28:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:28:53]wFMCommunicate OK [07:28:53]requested_item fd.num is exist - process it [07:28:53]SAM_PROTO_GetFieldsCounters [07:28:53]wFMCommunicate request_size=4 [07:28:53]MH_SAM_APDU [07:28:53]CAPDU: 80 13 00 00 [07:28:53]Write to MH i2c: E2 08 00 53 2A 80 13 00 00 00 00 00 00 F9 [07:28:53]Write i2c OK [07:28:53]MH_I2C_Read... [07:28:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:28:53]Read from MH i2c: E2 [07:28:53]MH_I2C_Read... [07:28:53]Read from MH i2c: E2 62 00 [07:28:53]MH_I2C_Read... [07:28:53]Read from MH i2c: E2 62 00 53 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 46 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [07:28:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 46 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:28:53]wFMCommunicate OK [07:28:53]SAM_PROTO_GetFieldsCounters done [07:28:53]requested_item shift.num is exist - process it [07:28:53]requested_item shift.opened is exist - process it [07:28:53]req_shift_opened [07:28:53]FM_GetShiftState [07:28:53]SAM_PROTO_GetShiftState [07:28:53]wFMCommunicate request_size=4 [07:28:53]MH_SAM_APDU [07:28:53]CAPDU: 80 13 01 00 [07:28:53]Write to MH i2c: E2 08 00 54 2A 80 13 01 00 00 00 00 00 FB [07:28:53]Write i2c OK [07:28:53]MH_I2C_Read... [07:28:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:53]Read from MH i2c: E2 [07:28:53]MH_I2C_Read... [07:28:53]Read from MH i2c: E2 0E 00 [07:28:53]MH_I2C_Read... [07:28:53]Read from MH i2c: E2 0E 00 54 2A 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 88 [07:28:53]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [07:28:53]wFMCommunicate OK [07:28:53]SAM_PROTO_GetShiftState done [07:28:53]FM_GetShiftState done [07:28:53]req_shift_opened done [07:28:53]requested_item shift.open_date is exist - process it [07:28:53]req_shift_open_date [07:28:53]req_shift_open_date done [07:28:53]produce_requested_data done [07:28:53]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118086,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [07:28:53]process_action_free close_receipt [07:28:53]json_value_free [07:28:53]json_value_free done [07:28:53]process_json_proto returns [07:28:53]Send response to host [07:28:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118086,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [07:28:53]free response buf [07:28:53]execute_script done [07:28:53]execute_script returns [07:28:53]free content buf [07:28:53]Sock 9.Close socket [07:28:53]Sock 9.Thread stoped [07:28:57]OFD Sender: No OFD packet to send [07:29:02]OFD Sender: No OFD packet to send [07:29:07]OFD Sender: No OFD packet to send [07:29:12]OFD Sender: No OFD packet to send [07:29:17]OFD Sender: No OFD packet to send [07:29:22]OFD Sender: No OFD packet to send [07:29:27]OFD Sender: No OFD packet to send [07:29:32]OFD Sender: No OFD packet to send [07:29:37]OFD Sender: No OFD packet to send [07:29:42]OFD Sender: No OFD packet to send [07:29:47]OFD Sender: No OFD packet to send [07:29:52]OFD Sender: No OFD packet to send [07:29:57]OFD Sender: No OFD packet to send [07:30:02]OFD Sender: No OFD packet to send [07:30:07]OFD Sender: No OFD packet to send [07:30:12]OFD Sender: No OFD packet to send [07:30:17]OFD Sender: No OFD packet to send [07:30:22]OFD Sender: No OFD packet to send [07:30:27]OFD Sender: No OFD packet to send [07:30:32]OFD Sender: No OFD packet to send [07:30:37]OFD Sender: No OFD packet to send [07:30:42]OFD Sender: No OFD packet to send [07:30:47]OFD Sender: No OFD packet to send [07:30:52]OFD Sender: No OFD packet to send [07:30:57]OFD Sender: No OFD packet to send [07:31:02]OFD Sender: No OFD packet to send [07:31:07]OFD Sender: No OFD packet to send [07:31:12]OFD Sender: No OFD packet to send [07:31:17]OFD Sender: No OFD packet to send [07:31:22]OFD Sender: No OFD packet to send [07:31:27]OFD Sender: No OFD packet to send [07:31:32]OFD Sender: No OFD packet to send [07:31:37]OFD Sender: No OFD packet to send [07:31:42]OFD Sender: No OFD packet to send [07:31:47]OFD Sender: No OFD packet to send [07:31:52]OFD Sender: No OFD packet to send [07:31:57]OFD Sender: No OFD packet to send [07:32:02]OFD Sender: No OFD packet to send [07:32:07]OFD Sender: No OFD packet to send [07:32:12]OFD Sender: No OFD packet to send [07:32:17]OFD Sender: No OFD packet to send [07:32:22]OFD Sender: No OFD packet to send [07:32:27]OFD Sender: No OFD packet to send [07:32:32]OFD Sender: No OFD packet to send [07:32:37]OFD Sender: No OFD packet to send [07:32:42]OFD Sender: No OFD packet to send [07:32:47]OFD Sender: No OFD packet to send [07:32:52]OFD Sender: No OFD packet to send [07:32:57]OFD Sender: No OFD packet to send [07:33:02]OFD Sender: No OFD packet to send [07:33:07]OFD Sender: No OFD packet to send [07:33:12]OFD Sender: No OFD packet to send [07:33:17]OFD Sender: No OFD packet to send [07:33:22]OFD Sender: No OFD packet to send [07:33:27]OFD Sender: No OFD packet to send [07:33:32]OFD Sender: No OFD packet to send [07:33:37]OFD Sender: No OFD packet to send [07:33:42]OFD Sender: No OFD packet to send [07:33:47]OFD Sender: No OFD packet to send [07:33:52]OFD Sender: No OFD packet to send [07:33:57]OFD Sender: No OFD packet to send [07:34:02]OFD Sender: No OFD packet to send [07:34:07]OFD Sender: No OFD packet to send [07:34:12]OFD Sender: No OFD packet to send [07:34:17]OFD Sender: No OFD packet to send [07:34:22]OFD Sender: No OFD packet to send [07:34:24]accept exits with 7 [07:34:24]New connection [07:34:24]New thread 3067284836 created [07:34:24]Thread 3067428196 joined [07:34:24]Waiting for new connection... [07:34:24] Sock 7.Parse request [07:34:24]Sock 7.Check first char [07:34:24]Sock 7.First char is OK [07:34:24]request: POST /json_proto HTTP/1.0 [07:34:24]Method: POST [07:34:24]URL: /json_proto [07:34:24]Method is POST - this is cgi request [07:34:24]url: /json_proto [07:34:24]query_string will be loaded in cgi processing [07:34:24]execute_cgi json_proto POST (null) [07:34:24]execute_cgi path=json_proto method=POST [07:34:24]POST find Content-Length [07:34:24]Host: 172.17.45.7:8080 [07:34:24]Content-Length: 682 [07:34:24]Content-Type: application/json [07:34:24] [07:34:24]POST finish read [07:34:24]Found Content-Length = 682 [07:34:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:34:24]execute_script... [07:34: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)948957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:34:24]POST & json_proto [07:34:24]process_json_proto [07:34:24]json parsed OK: [07:34:24]protocol is kg_v1.0 [07:34:24]action value=close_receipt [07:34:24]process_action close_receipt [07:34:24]cmd_close_receipt [07:34:24]MH_GetDate [07:34:24]Write to MH i2c: F0 00 00 55 2A 6E [07:34:24]Write i2c OK [07:34:24]MH_I2C_Read... [07:34:24]Read from MH i2c: F0 [07:34:24]MH_I2C_Read... [07:34:24]Read from MH i2c: F0 09 00 [07:34:24]MH_I2C_Read... [07:34:24]Read from MH i2c: F0 09 00 55 2A 00 04 A3 A4 66 90 0F 3E 66 6B [07:34:24]GetLastDocTimeStamp 1722065333 [07:34:24]current date 1722065668 [07:34:24]FM_GetShiftState [07:34:24]SAM_PROTO_GetShiftState [07:34:24]wFMCommunicate request_size=4 [07:34:24]MH_SAM_APDU [07:34:24]CAPDU: 80 13 01 00 [07:34:24]Write to MH i2c: E2 08 00 56 2A 80 13 01 00 00 00 00 00 FD [07:34:24]Write i2c OK [07:34:24]MH_I2C_Read... [07:34:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:34:24]Read from MH i2c: E2 [07:34:24]MH_I2C_Read... [07:34:24]Read from MH i2c: E2 0E 00 [07:34:24]MH_I2C_Read... [07:34:24]Read from MH i2c: E2 0E 00 56 2A 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 8A [07:34:24]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [07:34:24]wFMCommunicate OK [07:34:24]SAM_PROTO_GetShiftState done [07:34:24]FM_GetShiftState done [07:34:24]opened in 1722038845 [07:34:24]opened+sec_in_day 1722125245 [07:34:24]quantity*price = 100005 [07:34:24]sum+1 = 100006 [07:34:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 30 27.07.2024 07:34 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118087 ФПД: 257221072826500 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T073428&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118087&fm=257221072826500&tin=02508201610067®Number=0000000000092660&sum=100000 [07:34:26]StoreToDocumentArchive [07:34:26]shift 432 fd 118087 [07:34:26]save to /storage/0432/doc_00118087 [07:34:26]save last doc name /storage/0432/doc_00118087 to /storage/kkm_last_doc_name [07:34:26]save OK [07:34:26]Clear old archive folders... [07:34:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:34:26]tlvbuf is B6F4E920 [07:34:26]SAM_PROTO_ClearQueue [07:34:26]wFMCommunicate request_size=4 [07:34:26]MH_SAM_APDU [07:34:26]CAPDU: 80 09 00 00 [07:34:26]Write to MH i2c: E2 08 00 63 2A 80 09 00 00 00 00 00 00 FF [07:34:26]Write i2c OK [07:34:26]MH_I2C_Read... [07:34:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:34:26]Read from MH i2c: E2 [07:34:26]MH_I2C_Read... [07:34:26]Read from MH i2c: E2 03 00 [07:34:26]MH_I2C_Read... [07:34:26]Read from MH i2c: E2 03 00 63 2A 00 90 00 01 [07:34:26]RAPDU: 90 00 [07:34:26]wFMCommunicate OK [07:34:26]SAM_PROTO_ClearQueue done [07:34:26]KKMCreateOFDPacket [07:34:26]OFDProtocolAddRootSTLVToBuf [07:34:26]FM_MakeSignedData [07:34:26]FM_MakeSignedData [07:34:26]SAM_PROTO_SignData [07:34:26]wFMCommunicate request_size=4 [07:34:26]MH_SAM_APDU [07:34:26]CAPDU: 80 0D 01 02 [07:34:26]Write to MH i2c: E2 08 00 64 2A 80 0D 01 02 00 00 00 00 07 [07:34:26]Write i2c OK [07:34:26]MH_I2C_Read... [07:34:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:34:26]Read from MH i2c: E2 [07:34:26]MH_I2C_Read... [07:34:26]Read from MH i2c: E2 03 00 [07:34:26]MH_I2C_Read... [07:34:26]Read from MH i2c: E2 03 00 64 2A 00 90 00 02 [07:34:26]RAPDU: 90 00 [07:34:26]wFMCommunicate OK [07:34:26]wFMCommunicate request_size=255 [07:34:26]MH_SAM_APDU [07:34: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 04 A3 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 47 CD 01 00 35 04 06 00 E9 [07:34:26]Write to MH i2c: E2 02 01 65 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 04 A3 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 47 CD 01 00 35 04 06 00 E9 00 00 98 [07:34:26]Write i2c OK [07:34:26]MH_I2C_Read... [07:34:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:34:26]Read from MH i2c: E2 [07:34:26]MH_I2C_Read... [07:34:26]Read from MH i2c: E2 03 00 [07:34:26]MH_I2C_Read... [07:34:26]Read from MH i2c: E2 03 00 65 2A 00 90 00 03 [07:34:26]RAPDU: 90 00 [07:34:26]wFMCommunicate OK [07:34:26]wFMCommunicate request_size=10 [07:34:26]MH_SAM_APDU [07:34:26]CAPDU: 80 0D 02 02 05 F0 F2 AC B0 84 [07:34:26]Write to MH i2c: E2 0D 00 66 2A 80 0D 02 02 05 00 F0 F2 AC B0 84 00 00 D6 [07:34:26]Write i2c OK [07:34:26]MH_I2C_Read... [07:34:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:34:26]Read from MH i2c: E2 [07:34:26]MH_I2C_Read... [07:34:26]Read from MH i2c: E2 03 00 [07:34:26]MH_I2C_Read... [07:34:26]Read from MH i2c: E2 03 00 66 2A 00 90 00 04 [07:34:26]RAPDU: 90 00 [07:34:26]wFMCommunicate OK [07:34:26]wFMCommunicate request_size=4 [07:34:26]MH_SAM_APDU [07:34:26]CAPDU: 80 0D 03 02 [07:34:26]Write to MH i2c: E2 08 00 67 2A 80 0D 03 02 00 00 00 00 0C [07:34:26]Write i2c OK [07:34:26]MH_I2C_Read... [07:34:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:34:26]Read from MH i2c: E2 [07:34:26]MH_I2C_Read... [07:34:26]Read from MH i2c: E2 0B 00 [07:34:26]MH_I2C_Read... [07:34:26]Read from MH i2c: E2 0B 00 67 2A 00 05 5D 6F 91 8C 4E 81 D4 90 00 9E [07:34:26]RAPDU: 05 5D 6F 91 8C 4E 81 D4 90 00 [07:34:26]wFMCommunicate OK [07:34:26]SAM_PROTO_SignData done [07:34:26]FM_MakeSignedData done [07:34:26]CreateOFDProtocolMessage [07:34:26]wFMCommunicate request_size=4 [07:34:26]MH_SAM_APDU [07:34:26]CAPDU: 80 11 00 00 [07:34:26]Write to MH i2c: E2 08 00 68 2A 80 11 00 00 00 00 00 00 0C [07:34:26]Write i2c OK [07:34:26]MH_I2C_Read... [07:34:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:34:26]Read from MH i2c: E2 [07:34:26]MH_I2C_Read... [07:34:26]Read from MH i2c: E2 17 00 [07:34:26]MH_I2C_Read... [07:34:26]Read from MH i2c: E2 17 00 68 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 67 [07:34:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:34:26]wFMCommunicate OK [07:34:26]CreateOFDProtocolMessage done [07:34:26]OFDSenderStorePacket 118087 [07:34:26]StoreOFDPacket docnum=118087 [07:34:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 82 76 07 01 57 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 04 A3 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 47 CD 01 00 35 04 06 00 E9 F0 F2 AC B0 84 05 5D 6F 91 8C 4E 81 D4 [07:34:26]CheckFolder [07:34:26]dirname=/storage/ofd_packets [07:34:26]CheckFolder done [07:34:26]ProducePacketName [07:34:26]name=ofd_packets/00118087 [07:34:26]NVStorageSaveData ofd_packets/00118087 [07:34:26]File name is /storage/ofd_packets/00118087 [07:34:26]Write 301 bytes [07:34:26]NVStorageSaveData done [07:34:26]OFDSenderStorePacket done [07:34:26]KKMCreateOFDPacket done [07:34:26]NVStorageSaveData kkm_last_timestamp [07:34:26]File name is /storage/kkm_last_timestamp [07:34:26]Write 4 bytes [07:34:26]NVStorageSaveData done [07:34:26]ExternCall_PrintAddStr [07:34:26]wPrintStart [07:34:26]Write to MH i2c: 01 00 00 69 2A 93 [07:34:26]Write i2c OK [07:34:26]MH_I2C_Read... [07:34:26]Read from MH i2c: 01 [07:34:26]MH_I2C_Read... [07:34:26]Read from MH i2c: 01 07 00 [07:34:26]MH_I2C_Read... [07:34:26]Read from MH i2c: 01 07 00 69 2A 00 00 00 00 00 FF 0F A8 [07:34:26]RasterBufferAndPrint [07:34:26]line Счет N : (1)948957 [07:34:26]line ИНН: 02508201610067 [07:34:26]line Контрольно-Кассовый Чек [07:34:26]line ПРОДАЖА [07:34:26]line ТРК (МРК, ГНК) : 31 [07:34:26]line Товар: 2710124130 [07:34:26]line Аи-92-К-4 [07:34:26]line 14.750 * 67.80 [07:34:26]line = 1000.05 [07:34:26]line НДС 12% НСП 1% [07:34:26]line > о реализуемом товаре [07:34:26]line ОКРУГЛЕНИЕ: -0.05 [07:34:26]line ИТОГО: 1000.00 [07:34:26]line Внесено: 1000.00 [07:34:26]line СДАЧА: 0.00 [07:34:26]line НСП 1% : 8.85 [07:34:26]line НДС 12% : 106.20 [07:34:26]line Наличными: 1000.00 [07:34:26]line Безнал.: 0.00 [07:34:26]line Место: АЗС № 134 "Партнер Нефть" [07:34:26]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:34:26]line СНО: Общий режим [07:34:26]line Чек 30 27.07.2024 07:34 [07:34:26]line Смена: 432 ФФД: 1.0 [07:34:26]line ЗНМ: 0300000044 [07:34:26]line РНМ: 0000000000092660 [07:34:26]line Версия ККМ: 001 [07:34:26]line ФМ: 0000000000874939 [07:34:26]line ФД: 118087 [07:34:26]line ФПД: 257221072826500 [07:34:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T073428&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118087&fm=257221072826500&tin=02508201610067®Number=0000000000092660&sum=100000 [07:34:26]OFD Sender: Processing packet 118087 [packets to send 85, broken 84] [07:34:26]ProducePacketName [07:34:26]name=ofd_packets/00118087 [07:34:26]OFD Sender: To server: pG, [07:34:26]CommunicateWithHost lk.salyk.kg:30040 [07:34:26]ConnectInit lk.salyk.kg [07:34:26]written 0, free lines is 4095 [07:34:27]Connected sock=10 [07:34:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 82 76 07 01 57 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 04 A3 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 47 CD 01 00 35 04 06 00 E9 F0 F2 AC B0 84 05 5D 6F 91 8C 4E 81 D4 [07:34:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 7E 7F 47 00 B9 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 34 39 33 39 10 04 04 00 47 CD 01 00 F4 03 04 00 98 50 A4 66 B6 04 01 00 00 1D 10 71 B1 7D 1E 38 18 [07:34:27]CommunicateWithHost err = 0 [07:34:27]CheckOFDResponse [07:34:27]1017 (14) - 77093643461234 [07:34:27]1041 (16) - 0000000000874939 [07:34:27]1040 (4) - 118087 [07:34:27]1012 (4) - 27.07.2024 01:42 [07:34:27]1206 (1) - 0 [07:34:27]OFD Sender: Remove packet 118087 [07:34:27]ProducePacketName [07:34:27]name=ofd_packets/00118087 [07:34:27]NVStorageDeleteData [07:34:27]Write to MH i2c: 01 00 00 93 2A BD [07:34:27]Write i2c OK [07:34:27]MH_I2C_Read... [07:34:27]Read from MH i2c: 01 [07:34:27]MH_I2C_Read... [07:34:27]Read from MH i2c: 01 07 00 [07:34:27]MH_I2C_Read... [07:34:27]Read from MH i2c: 01 07 00 93 2A 00 00 00 00 00 D1 0C A1 [07:34:27]RasterBufferAndPrint [07:34:27]line [07:34:27]line [07:34:27]line [07:34:27]line [07:34:27]line [07:34:27]written 0, free lines is 3285 [07:34:27]MH_Cut [07:34:27]Write to MH i2c: D1 01 00 9A 2A 01 96 [07:34:27]Write i2c OK [07:34:27]MH_I2C_Read... [07:34:27]Read from MH i2c: D1 [07:34:27]MH_I2C_Read... [07:34:27]Read from MH i2c: D1 01 00 [07:34:27]MH_I2C_Read... [07:34:27]Read from MH i2c: D1 01 00 9A 2A 00 95 [07:34:27]Write to MH i2c: 01 00 00 9B 2A C5 [07:34:27]Write i2c OK [07:34:27]MH_I2C_Read... [07:34:27]OFD Sender: No OFD packet to send [07:34:28]*** Cut start [07:34:28]*** Partial cut [07:34:28]*** CUTSNS_PIN = 1 [07:34:28]*** CUTSNS_PIN = 0 [07:34:28]*** Brake cut motor [07:34:28]Read from MH i2c: 01 [07:34:28]MH_I2C_Read... [07:34:28]*** Stop cut motor [07:34:28]*** Cut end [07:34:28]Read from MH i2c: 01 07 00 [07:34:28]MH_I2C_Read... [07:34:28]Read from MH i2c: 01 07 00 9B 2A 00 00 00 00 00 FF 0F DA [07:34:28]process_action close_receipt done [07:34:28]requested_data is exist [07:34:28]produce_requested_data [07:34:28]requested_item fm.sn is exist - process it [07:34:28]wFMCommunicate request_size=4 [07:34:28]MH_SAM_APDU [07:34:28]CAPDU: 80 11 00 00 [07:34:28]Write to MH i2c: E2 08 00 9C 2A 80 11 00 00 00 00 00 00 40 [07:34:28]Write i2c OK [07:34:28]MH_I2C_Read... [07:34:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:34:28]Read from MH i2c: E2 [07:34:28]MH_I2C_Read... [07:34:28]Read from MH i2c: E2 17 00 [07:34:28]MH_I2C_Read... [07:34:28]Read from MH i2c: E2 17 00 9C 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9B [07:34:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:34:28]wFMCommunicate OK [07:34:28]requested_item fd.num is exist - process it [07:34:28]SAM_PROTO_GetFieldsCounters [07:34:28]wFMCommunicate request_size=4 [07:34:28]MH_SAM_APDU [07:34:28]CAPDU: 80 13 00 00 [07:34:28]Write to MH i2c: E2 08 00 9D 2A 80 13 00 00 00 00 00 00 43 [07:34:28]Write i2c OK [07:34:28]MH_I2C_Read... [07:34:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:34:28]Read from MH i2c: E2 [07:34:28]MH_I2C_Read... [07:34:28]Read from MH i2c: E2 62 00 [07:34:28]MH_I2C_Read... [07:34:28]Read from MH i2c: E2 62 00 9D 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 47 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [07:34:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 47 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:34:28]wFMCommunicate OK [07:34:28]SAM_PROTO_GetFieldsCounters done [07:34:28]requested_item shift.num is exist - process it [07:34:28]requested_item shift.opened is exist - process it [07:34:28]req_shift_opened [07:34:28]FM_GetShiftState [07:34:28]SAM_PROTO_GetShiftState [07:34:28]wFMCommunicate request_size=4 [07:34:28]MH_SAM_APDU [07:34:28]CAPDU: 80 13 01 00 [07:34:28]Write to MH i2c: E2 08 00 9E 2A 80 13 01 00 00 00 00 00 45 [07:34:28]Write i2c OK [07:34:28]MH_I2C_Read... [07:34:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:34:28]Read from MH i2c: E2 [07:34:28]MH_I2C_Read... [07:34:28]Read from MH i2c: E2 0E 00 [07:34:28]MH_I2C_Read... [07:34:28]Read from MH i2c: E2 0E 00 9E 2A 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 D2 [07:34:28]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [07:34:28]wFMCommunicate OK [07:34:28]SAM_PROTO_GetShiftState done [07:34:28]FM_GetShiftState done [07:34:28]req_shift_opened done [07:34:28]requested_item shift.open_date is exist - process it [07:34:28]req_shift_open_date [07:34:28]req_shift_open_date done [07:34:28]produce_requested_data done [07:34:28]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118087,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [07:34:28]process_action_free close_receipt [07:34:28]json_value_free [07:34:28]json_value_free done [07:34:28]process_json_proto returns [07:34:28]Send response to host [07:34:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118087,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [07:34:28]free response buf [07:34:28]execute_script done [07:34:28]execute_script returns [07:34:28]free content buf [07:34:28]Sock 7.Close socket [07:34:28]Sock 7.Thread stoped [07:34:32]OFD Sender: No OFD packet to send [07:34:37]OFD Sender: No OFD packet to send [07:34:42]OFD Sender: No OFD packet to send [07:34:47]OFD Sender: No OFD packet to send [07:34:52]OFD Sender: No OFD packet to send [07:34:57]OFD Sender: No OFD packet to send [07:35:02]OFD Sender: No OFD packet to send [07:35:07]OFD Sender: No OFD packet to send [07:35:12]OFD Sender: No OFD packet to send [07:35:17]OFD Sender: No OFD packet to send [07:35:22]OFD Sender: No OFD packet to send [07:35:27]OFD Sender: No OFD packet to send [07:35:32]OFD Sender: No OFD packet to send [07:35:37]OFD Sender: No OFD packet to send [07:35:42]OFD Sender: No OFD packet to send [07:35:47]OFD Sender: No OFD packet to send [07:35:52]OFD Sender: No OFD packet to send [07:35:57]OFD Sender: No OFD packet to send [07:36:02]OFD Sender: No OFD packet to send [07:36:07]OFD Sender: No OFD packet to send [07:36:12]OFD Sender: No OFD packet to send [07:36:17]OFD Sender: No OFD packet to send [07:36:22]OFD Sender: No OFD packet to send [07:36:27]OFD Sender: No OFD packet to send [07:36:32]OFD Sender: No OFD packet to send [07:36:37]OFD Sender: No OFD packet to send [07:36:42]OFD Sender: No OFD packet to send [07:36:47]OFD Sender: No OFD packet to send [07:36:52]OFD Sender: No OFD packet to send [07:36:57]OFD Sender: No OFD packet to send [07:37:02]OFD Sender: No OFD packet to send [07:37:07]OFD Sender: No OFD packet to send [07:37:12]OFD Sender: No OFD packet to send [07:37:17]OFD Sender: No OFD packet to send [07:37:22]OFD Sender: No OFD packet to send [07:37:27]OFD Sender: No OFD packet to send [07:37:32]OFD Sender: No OFD packet to send [07:37:37]OFD Sender: No OFD packet to send [07:37:42]OFD Sender: No OFD packet to send [07:37:47]OFD Sender: No OFD packet to send [07:37:52]OFD Sender: No OFD packet to send [07:37:57]OFD Sender: No OFD packet to send [07:38:02]OFD Sender: No OFD packet to send [07:38:07]OFD Sender: No OFD packet to send [07:38:12]OFD Sender: No OFD packet to send [07:38:17]OFD Sender: No OFD packet to send [07:38:22]OFD Sender: No OFD packet to send [07:38:27]OFD Sender: No OFD packet to send [07:38:32]OFD Sender: No OFD packet to send [07:38:37]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:47]OFD Sender: No OFD packet to send [07:38:52]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:49]accept exits with 9 [07:40:49]New connection [07:40:49]New thread 3067428196 created [07:40:49]Thread 3067284836 joined [07:40:49]Waiting for new connection... [07:40:49] Sock 9.Parse request [07:40:49]Sock 9.Check first char [07:40:49]Sock 9.First char is OK [07:40:49]request: POST /json_proto HTTP/1.0 [07:40:49]Method: POST [07:40:49]URL: /json_proto [07:40:49]Method is POST - this is cgi request [07:40:49]url: /json_proto [07:40:49]query_string will be loaded in cgi processing [07:40:49]execute_cgi json_proto POST (null) [07:40:49]execute_cgi path=json_proto method=POST [07:40:49]POST find Content-Length [07:40:49]Host: 172.17.45.7:8080 [07:40:49]Content-Length: 677 [07:40:49]Content-Type: application/json [07:40:49] [07:40:49]POST finish read [07:40:49]Found Content-Length = 677 [07:40:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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" ] } } [07:40:49]execute_script... [07:40:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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" ] } } [07:40:49]POST & json_proto [07:40:49]process_json_proto [07:40:49]json parsed OK: [07:40:49]protocol is kg_v1.0 [07:40:49]action value=close_receipt [07:40:49]process_action close_receipt [07:40:49]cmd_close_receipt [07:40:49]MH_GetDate [07:40:49]Write to MH i2c: F0 00 00 9F 2A B8 [07:40:49]Write i2c OK [07:40:49]MH_I2C_Read... [07:40:49]Read from MH i2c: F0 [07:40:49]MH_I2C_Read... [07:40:49]Read from MH i2c: F0 09 00 [07:40:49]MH_I2C_Read... [07:40:49]Read from MH i2c: F0 09 00 9F 2A 00 85 A4 A4 66 90 0F 3E 66 37 [07:40:49]GetLastDocTimeStamp 1722065668 [07:40:49]current date 1722066053 [07:40:49]FM_GetShiftState [07:40:49]SAM_PROTO_GetShiftState [07:40:49]wFMCommunicate request_size=4 [07:40:49]MH_SAM_APDU [07:40:49]CAPDU: 80 13 01 00 [07:40:49]Write to MH i2c: E2 08 00 A0 2A 80 13 01 00 00 00 00 00 47 [07:40:49]Write i2c OK [07:40:49]MH_I2C_Read... [07:40:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:40:50]Read from MH i2c: E2 [07:40:50]MH_I2C_Read... [07:40:50]Read from MH i2c: E2 0E 00 [07:40:50]MH_I2C_Read... [07:40:50]Read from MH i2c: E2 0E 00 A0 2A 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 D4 [07:40:50]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [07:40:50]wFMCommunicate OK [07:40:50]SAM_PROTO_GetShiftState done [07:40:50]FM_GetShiftState done [07:40:50]opened in 1722038845 [07:40:50]opened+sec_in_day 1722125245 [07:40:50]quantity*price = 20001 [07:40:50]sum+1 = 20002 [07:40:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 31 27.07.2024 07:40 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118088 ФПД: 175638298949596 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T074053&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118088&fm=175638298949596&tin=02508201610067®Number=0000000000092660&sum=20000 [07:40:51]StoreToDocumentArchive [07:40:51]shift 432 fd 118088 [07:40:51]save to /storage/0432/doc_00118088 [07:40:51]save last doc name /storage/0432/doc_00118088 to /storage/kkm_last_doc_name [07:40:51]save OK [07:40:51]Clear old archive folders... [07:40:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:40:51]tlvbuf is 0077B380 [07:40:51]SAM_PROTO_ClearQueue [07:40:51]wFMCommunicate request_size=4 [07:40:51]MH_SAM_APDU [07:40:51]CAPDU: 80 09 00 00 [07:40:51]Write to MH i2c: E2 08 00 AD 2A 80 09 00 00 00 00 00 00 49 [07:40:51]Write i2c OK [07:40:51]MH_I2C_Read... [07:40:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:40:51]Read from MH i2c: E2 [07:40:51]MH_I2C_Read... [07:40:51]Read from MH i2c: E2 03 00 [07:40:51]MH_I2C_Read... [07:40:51]Read from MH i2c: E2 03 00 AD 2A 00 90 00 4B [07:40:51]RAPDU: 90 00 [07:40:51]wFMCommunicate OK [07:40:51]SAM_PROTO_ClearQueue done [07:40:51]KKMCreateOFDPacket [07:40:51]OFDProtocolAddRootSTLVToBuf [07:40:51]FM_MakeSignedData [07:40:51]FM_MakeSignedData [07:40:51]SAM_PROTO_SignData [07:40:51]wFMCommunicate request_size=4 [07:40:51]MH_SAM_APDU [07:40:51]CAPDU: 80 0D 01 02 [07:40:51]Write to MH i2c: E2 08 00 AE 2A 80 0D 01 02 00 00 00 00 51 [07:40:51]Write i2c OK [07:40:51]MH_I2C_Read... [07:40:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:40:51]Read from MH i2c: E2 [07:40:51]MH_I2C_Read... [07:40:51]Read from MH i2c: E2 03 00 [07:40:51]MH_I2C_Read... [07:40:51]Read from MH i2c: E2 03 00 AE 2A 00 90 00 4C [07:40:51]RAPDU: 90 00 [07:40:51]wFMCommunicate OK [07:40:51]wFMCommunicate request_size=255 [07:40:51]MH_SAM_APDU [07:40:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 85 A4 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 48 CD 01 00 35 04 06 00 9F [07:40:51]Write to MH i2c: E2 02 01 AF 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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 85 A4 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 48 CD 01 00 35 04 06 00 9F 00 00 8F [07:40:51]Write i2c OK [07:40:51]MH_I2C_Read... [07:40:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:40:51]Read from MH i2c: E2 [07:40:51]MH_I2C_Read... [07:40:51]Read from MH i2c: E2 03 00 [07:40:51]MH_I2C_Read... [07:40:51]Read from MH i2c: E2 03 00 AF 2A 00 90 00 4D [07:40:51]RAPDU: 90 00 [07:40:51]wFMCommunicate OK [07:40:51]wFMCommunicate request_size=10 [07:40:51]MH_SAM_APDU [07:40:51]CAPDU: 80 0D 02 02 05 BD FA 6A F7 DC [07:40:51]Write to MH i2c: E2 0D 00 B0 2A 80 0D 02 02 05 00 BD FA 6A F7 DC 00 00 52 [07:40:51]Write i2c OK [07:40:51]MH_I2C_Read... [07:40:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:40:51]Read from MH i2c: E2 [07:40:51]MH_I2C_Read... [07:40:51]Read from MH i2c: E2 03 00 [07:40:51]MH_I2C_Read... [07:40:51]Read from MH i2c: E2 03 00 B0 2A 00 90 00 4E [07:40:51]RAPDU: 90 00 [07:40:51]wFMCommunicate OK [07:40:51]wFMCommunicate request_size=4 [07:40:51]MH_SAM_APDU [07:40:51]CAPDU: 80 0D 03 02 [07:40:51]Write to MH i2c: E2 08 00 B1 2A 80 0D 03 02 00 00 00 00 56 [07:40:51]Write i2c OK [07:40:51]MH_I2C_Read... [07:40:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:40:51]Read from MH i2c: E2 [07:40:51]MH_I2C_Read... [07:40:51]Read from MH i2c: E2 0B 00 [07:40:51]MH_I2C_Read... [07:40:51]Read from MH i2c: E2 0B 00 B1 2A 00 D2 91 1A 73 D5 10 9D 6F 90 00 38 [07:40:51]RAPDU: D2 91 1A 73 D5 10 9D 6F 90 00 [07:40:51]wFMCommunicate OK [07:40:51]SAM_PROTO_SignData done [07:40:51]FM_MakeSignedData done [07:40:51]CreateOFDProtocolMessage [07:40:51]wFMCommunicate request_size=4 [07:40:51]MH_SAM_APDU [07:40:51]CAPDU: 80 11 00 00 [07:40:51]Write to MH i2c: E2 08 00 B2 2A 80 11 00 00 00 00 00 00 56 [07:40:51]Write i2c OK [07:40:51]MH_I2C_Read... [07:40:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:40:51]Read from MH i2c: E2 [07:40:51]MH_I2C_Read... [07:40:51]Read from MH i2c: E2 17 00 [07:40:51]MH_I2C_Read... [07:40:51]Read from MH i2c: E2 17 00 B2 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B1 [07:40:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:40:51]wFMCommunicate OK [07:40:51]CreateOFDProtocolMessage done [07:40:51]OFDSenderStorePacket 118088 [07:40:51]StoreOFDPacket docnum=118088 [07:40:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 09 7F 07 01 95 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 85 A4 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 48 CD 01 00 35 04 06 00 9F BD FA 6A F7 DC D2 91 1A 73 D5 10 9D 6F [07:40:51]CheckFolder [07:40:51]dirname=/storage/ofd_packets [07:40:51]CheckFolder done [07:40:51]ProducePacketName [07:40:51]name=ofd_packets/00118088 [07:40:51]NVStorageSaveData ofd_packets/00118088 [07:40:51]File name is /storage/ofd_packets/00118088 [07:40:51]Write 301 bytes [07:40:51]NVStorageSaveData done [07:40:51]OFDSenderStorePacket done [07:40:51]KKMCreateOFDPacket done [07:40:51]NVStorageSaveData kkm_last_timestamp [07:40:51]File name is /storage/kkm_last_timestamp [07:40:51]Write 4 bytes [07:40:51]NVStorageSaveData done [07:40:51]ExternCall_PrintAddStr [07:40:51]wPrintStart [07:40:51]Write to MH i2c: 01 00 00 B3 2A DD [07:40:51]Write i2c OK [07:40:51]MH_I2C_Read... [07:40:51]Read from MH i2c: 01 [07:40:51]MH_I2C_Read... [07:40:51]Read from MH i2c: 01 07 00 [07:40:51]MH_I2C_Read... [07:40:51]Read from MH i2c: 01 07 00 B3 2A 00 00 00 00 00 FF 0F F2 [07:40:51]RasterBufferAndPrint [07:40:51]line Счет N : (1)948959 [07:40:51]line ИНН: 02508201610067 [07:40:51]line Контрольно-Кассовый Чек [07:40:51]line ПРОДАЖА [07:40:51]line ТРК (МРК, ГНК) : 61 [07:40:51]line Товар: 2710124130 [07:40:51]line Аи-92-К-4 [07:40:51]line 2.950 * 67.80 [07:40:51]line = 200.01 [07:40:51]line НДС 12% НСП 1% [07:40:51]line > о реализуемом товаре [07:40:51]line ОКРУГЛЕНИЕ: -0.01 [07:40:51]line ИТОГО: 200.00 [07:40:51]line Внесено: 200.00 [07:40:51]line СДАЧА: 0.00 [07:40:51]line НСП 1% : 1.77 [07:40:51]line НДС 12% : 21.24 [07:40:51]line Наличными: 200.00 [07:40:51]line Безнал.: 0.00 [07:40:51]line Место: АЗС № 134 "Партнер Нефть" [07:40:51]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:40:51]line СНО: Общий режим [07:40:51]line Чек 31 27.07.2024 07:40 [07:40:51]line Смена: 432 ФФД: 1.0 [07:40:51]line ЗНМ: 0300000044 [07:40:51]line РНМ: 0000000000092660 [07:40:51]line Версия ККМ: 001 [07:40:51]line ФМ: 0000000000874939 [07:40:51]line ФД: 118088 [07:40:51]line ФПД: 175638298949596 [07:40:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T074053&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118088&fm=175638298949596&tin=02508201610067®Number=0000000000092660&sum=20000 [07:40:52]OFD Sender: Processing packet 118088 [packets to send 85, broken 84] [07:40:52]ProducePacketName [07:40:52]name=ofd_packets/00118088 [07:40:52]OFD Sender: To server: pG, [07:40:52]CommunicateWithHost lk.salyk.kg:30040 [07:40:52]ConnectInit lk.salyk.kg [07:40:52]written 0, free lines is 4095 [07:40:52]Connected sock=11 [07:40:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 09 7F 07 01 95 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 85 A4 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 48 CD 01 00 35 04 06 00 9F BD FA 6A F7 DC D2 91 1A 73 D5 10 9D 6F [07:40:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 30 C7 47 00 C0 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 48 CD 01 00 F4 03 04 00 19 52 A4 66 B6 04 01 00 00 0F 68 CF EA F9 30 EA 38 [07:40:52]CommunicateWithHost err = 0 [07:40:52]CheckOFDResponse [07:40:52]1017 (14) - 77093643461234 [07:40:52]1041 (16) - 0000000000874939 [07:40:52]1040 (4) - 118088 [07:40:52]1012 (4) - 27.07.2024 01:49 [07:40:52]1206 (1) - 0 [07:40:52]OFD Sender: Remove packet 118088 [07:40:52]ProducePacketName [07:40:52]name=ofd_packets/00118088 [07:40:52]NVStorageDeleteData [07:40:52]Write to MH i2c: 01 00 00 DD 2A 07 [07:40:52]Write i2c OK [07:40:52]MH_I2C_Read... [07:40:52]Read from MH i2c: 01 [07:40:52]MH_I2C_Read... [07:40:52]Read from MH i2c: 01 07 00 [07:40:52]MH_I2C_Read... [07:40:52]Read from MH i2c: 01 07 00 DD 2A 00 00 00 00 00 C7 0C E1 [07:40:52]RasterBufferAndPrint [07:40:52]line [07:40:52]line [07:40:52]line [07:40:52]line [07:40:52]line [07:40:52]written 0, free lines is 3278 [07:40:52]MH_Cut [07:40:52]Write to MH i2c: D1 01 00 E4 2A 01 E0 [07:40:52]Write i2c OK [07:40:52]MH_I2C_Read... [07:40:52]Read from MH i2c: D1 [07:40:52]MH_I2C_Read... [07:40:52]Read from MH i2c: D1 01 00 [07:40:52]MH_I2C_Read... [07:40:52]Read from MH i2c: D1 01 00 E4 2A 00 DF [07:40:52]Write to MH i2c: 01 00 00 E5 2A 0F [07:40:52]Write i2c OK [07:40:52]MH_I2C_Read... [07:40:52]OFD Sender: No OFD packet to send [07:40:53]*** Cut start [07:40:53]*** Partial cut [07:40:53]*** CUTSNS_PIN = 1 [07:40:53]*** CUTSNS_PIN = 0 [07:40:53]*** Brake cut motor [07:40:53]Read from MH i2c: 01 [07:40:53]MH_I2C_Read... [07:40:53]*** Stop cut motor [07:40:53]*** Cut end [07:40:53]Read from MH i2c: 01 07 00 [07:40:53]MH_I2C_Read... [07:40:53]Read from MH i2c: 01 07 00 E5 2A 00 00 00 00 00 FF 0F 24 [07:40:53]process_action close_receipt done [07:40:53]requested_data is exist [07:40:53]produce_requested_data [07:40:53]requested_item fm.sn is exist - process it [07:40:53]wFMCommunicate request_size=4 [07:40:53]MH_SAM_APDU [07:40:53]CAPDU: 80 11 00 00 [07:40:53]Write to MH i2c: E2 08 00 E6 2A 80 11 00 00 00 00 00 00 8A [07:40:53]Write i2c OK [07:40:53]MH_I2C_Read... [07:40:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:40:53]Read from MH i2c: E2 [07:40:53]MH_I2C_Read... [07:40:53]Read from MH i2c: E2 17 00 [07:40:53]MH_I2C_Read... [07:40:53]Read from MH i2c: E2 17 00 E6 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E5 [07:40:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:40:53]wFMCommunicate OK [07:40:53]requested_item fd.num is exist - process it [07:40:53]SAM_PROTO_GetFieldsCounters [07:40:53]wFMCommunicate request_size=4 [07:40:53]MH_SAM_APDU [07:40:53]CAPDU: 80 13 00 00 [07:40:53]Write to MH i2c: E2 08 00 E7 2A 80 13 00 00 00 00 00 00 8D [07:40:53]Write i2c OK [07:40:53]MH_I2C_Read... [07:40:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:40:54]Read from MH i2c: E2 [07:40:54]MH_I2C_Read... [07:40:54]Read from MH i2c: E2 62 00 [07:40:54]MH_I2C_Read... [07:40:54]Read from MH i2c: E2 62 00 E7 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 48 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [07:40:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 48 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:40:54]wFMCommunicate OK [07:40:54]SAM_PROTO_GetFieldsCounters done [07:40:54]requested_item shift.num is exist - process it [07:40:54]requested_item shift.opened is exist - process it [07:40:54]req_shift_opened [07:40:54]FM_GetShiftState [07:40:54]SAM_PROTO_GetShiftState [07:40:54]wFMCommunicate request_size=4 [07:40:54]MH_SAM_APDU [07:40:54]CAPDU: 80 13 01 00 [07:40:54]Write to MH i2c: E2 08 00 E8 2A 80 13 01 00 00 00 00 00 8F [07:40:54]Write i2c OK [07:40:54]MH_I2C_Read... [07:40:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:40:54]Read from MH i2c: E2 [07:40:54]MH_I2C_Read... [07:40:54]Read from MH i2c: E2 0E 00 [07:40:54]MH_I2C_Read... [07:40:54]Read from MH i2c: E2 0E 00 E8 2A 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 1C [07:40:54]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [07:40:54]wFMCommunicate OK [07:40:54]SAM_PROTO_GetShiftState done [07:40:54]FM_GetShiftState done [07:40:54]req_shift_opened done [07:40:54]requested_item shift.open_date is exist - process it [07:40:54]req_shift_open_date [07:40:54]req_shift_open_date done [07:40:54]produce_requested_data done [07:40:54]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118088,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [07:40:54]process_action_free close_receipt [07:40:54]json_value_free [07:40:54]json_value_free done [07:40:54]process_json_proto returns [07:40:54]Send response to host [07:40:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118088,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [07:40:54]free response buf [07:40:54]execute_script done [07:40:54]execute_script returns [07:40:54]free content buf [07:40:54]Sock 9.Close socket [07:40:54]Sock 9.Thread stoped [07:40:57]OFD Sender: No OFD packet to send [07:41:02]OFD Sender: No OFD packet to send [07:41:07]OFD Sender: No OFD packet to send [07:41:12]OFD Sender: No OFD packet to send [07:41:17]OFD Sender: No OFD packet to send [07:41:22]OFD Sender: No OFD packet to send [07:41:27]OFD Sender: No OFD packet to send [07:41:32]OFD Sender: No OFD packet to send [07:41:37]OFD Sender: No OFD packet to send [07:41:42]OFD Sender: No OFD packet to send [07:41:47]OFD Sender: No OFD packet to send [07:41:52]OFD Sender: No OFD packet to send [07:41:57]OFD Sender: No OFD packet to send [07:42:02]OFD Sender: No OFD packet to send [07:42:07]OFD Sender: No OFD packet to send [07:42:12]OFD Sender: No OFD packet to send [07:42:17]OFD Sender: No OFD packet to send [07:42:22]OFD Sender: No OFD packet to send [07:42:27]OFD Sender: No OFD packet to send [07:42:32]OFD Sender: No OFD packet to send [07:42:37]OFD Sender: No OFD packet to send [07:42:42]OFD Sender: No OFD packet to send [07:42:47]OFD Sender: No OFD packet to send [07:42:52]OFD Sender: No OFD packet to send [07:42:57]OFD Sender: No OFD packet to send [07:42:58]accept exits with 7 [07:42:58]New connection [07:42:58]New thread 3067284836 created [07:42:58]Thread 3067428196 joined [07:42:58]Waiting for new connection... [07:42:58] Sock 7.Parse request [07:42:58]Sock 7.Check first char [07:42:58]Sock 7.First char is OK [07:42:58]request: POST /json_proto HTTP/1.0 [07:42:58]Method: POST [07:42:58]URL: /json_proto [07:42:58]Method is POST - this is cgi request [07:42:58]url: /json_proto [07:42:58]query_string will be loaded in cgi processing [07:42:58]execute_cgi json_proto POST (null) [07:42:58]execute_cgi path=json_proto method=POST [07:42:58]POST find Content-Length [07:42:58]Host: 172.17.45.7:8080 [07:42:58]Content-Length: 679 [07:42:58]Content-Type: application/json [07:42:58] [07:42:58]POST finish read [07:42:58]Found Content-Length = 679 [07:42:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:58]execute_script... [07:42:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:58]POST & json_proto [07:42:58]process_json_proto [07:42:58]json parsed OK: [07:42:58]protocol is kg_v1.0 [07:42:58]action value=close_receipt [07:42:58]process_action close_receipt [07:42:58]cmd_close_receipt [07:42:58]MH_GetDate [07:42:58]Write to MH i2c: F0 00 00 E9 2A 02 [07:42:58]Write i2c OK [07:42:58]MH_I2C_Read... [07:42:58]Read from MH i2c: F0 [07:42:58]MH_I2C_Read... [07:42:58]Read from MH i2c: F0 09 00 [07:42:58]MH_I2C_Read... [07:42:58]Read from MH i2c: F0 09 00 E9 2A 00 06 A5 A4 66 90 0F 3E 66 03 [07:42:58]GetLastDocTimeStamp 1722066053 [07:42:58]current date 1722066182 [07:42:58]FM_GetShiftState [07:42:58]SAM_PROTO_GetShiftState [07:42:58]wFMCommunicate request_size=4 [07:42:58]MH_SAM_APDU [07:42:58]CAPDU: 80 13 01 00 [07:42:58]Write to MH i2c: E2 08 00 EA 2A 80 13 01 00 00 00 00 00 91 [07:42:58]Write i2c OK [07:42:58]MH_I2C_Read... [07:42:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:58]Read from MH i2c: E2 [07:42:58]MH_I2C_Read... [07:42:58]Read from MH i2c: E2 0E 00 [07:42:58]MH_I2C_Read... [07:42:58]Read from MH i2c: E2 0E 00 EA 2A 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 1E [07:42:58]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [07:42:58]wFMCommunicate OK [07:42:58]SAM_PROTO_GetShiftState done [07:42:58]FM_GetShiftState done [07:42:58]opened in 1722038845 [07:42:58]opened+sec_in_day 1722125245 [07:42:58]quantity*price = 140055 [07:42:58]sum+1 = 140057 [07:42:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.73 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 32 27.07.2024 07:43 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118089 ФПД: 108371652671533 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T074302&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118089&fm=108371652671533&tin=02508201610067®Number=0000000000092660&sum=140000 [07:42:59]StoreToDocumentArchive [07:42:59]shift 432 fd 118089 [07:42:59]save to /storage/0432/doc_00118089 [07:42:59]save last doc name /storage/0432/doc_00118089 to /storage/kkm_last_doc_name [07:42:59]save OK [07:42:59]Clear old archive folders... [07:42:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:42:59]tlvbuf is B6FC9010 [07:42:59]SAM_PROTO_ClearQueue [07:42:59]wFMCommunicate request_size=4 [07:42:59]MH_SAM_APDU [07:42:59]CAPDU: 80 09 00 00 [07:42:59]Write to MH i2c: E2 08 00 F7 2A 80 09 00 00 00 00 00 00 93 [07:42:59]Write i2c OK [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: E2 [07:42:59]MH_I2C_Read... [07:42:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:42:59]Read from MH i2c: E2 03 00 [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: E2 03 00 F7 2A 00 90 00 95 [07:42:59]RAPDU: 90 00 [07:42:59]wFMCommunicate OK [07:42:59]SAM_PROTO_ClearQueue done [07:42:59]KKMCreateOFDPacket [07:42:59]OFDProtocolAddRootSTLVToBuf [07:42:59]FM_MakeSignedData [07:42:59]FM_MakeSignedData [07:42:59]SAM_PROTO_SignData [07:42:59]wFMCommunicate request_size=4 [07:42:59]MH_SAM_APDU [07:42:59]CAPDU: 80 0D 01 02 [07:42:59]Write to MH i2c: E2 08 00 F8 2A 80 0D 01 02 00 00 00 00 9B [07:42:59]Write i2c OK [07:42:59]MH_I2C_Read... [07:42:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:42:59]Read from MH i2c: E2 [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: E2 03 00 [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: E2 03 00 F8 2A 00 90 00 96 [07:42:59]RAPDU: 90 00 [07:42:59]wFMCommunicate OK [07:42:59]wFMCommunicate request_size=255 [07:42:59]MH_SAM_APDU [07:42: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 06 A5 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 49 CD 01 00 35 04 06 00 62 90 3D DC [07:42:59]Write to MH i2c: E2 02 01 F9 2A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 06 A5 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 49 CD 01 00 35 04 06 00 62 90 3D DC 00 00 12 [07:42:59]Write i2c OK [07:42:59]MH_I2C_Read... [07:42:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:59]Read from MH i2c: E2 [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: E2 03 00 [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: E2 03 00 F9 2A 00 90 00 97 [07:42:59]RAPDU: 90 00 [07:42:59]wFMCommunicate OK [07:42:59]wFMCommunicate request_size=7 [07:42:59]MH_SAM_APDU [07:42:59]CAPDU: 80 0D 02 02 02 78 2D [07:42:59]Write to MH i2c: E2 0A 00 FA 2A 80 0D 02 02 02 00 78 2D 00 00 47 [07:42:59]Write i2c OK [07:42:59]MH_I2C_Read... [07:42:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:59]Read from MH i2c: E2 [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: E2 03 00 [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: E2 03 00 FA 2A 00 90 00 98 [07:42:59]RAPDU: 90 00 [07:42:59]wFMCommunicate OK [07:42:59]wFMCommunicate request_size=4 [07:42:59]MH_SAM_APDU [07:42:59]CAPDU: 80 0D 03 02 [07:42:59]Write to MH i2c: E2 08 00 FB 2A 80 0D 03 02 00 00 00 00 A0 [07:42:59]Write i2c OK [07:42:59]MH_I2C_Read... [07:42:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:42:59]Read from MH i2c: E2 [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: E2 0B 00 [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: E2 0B 00 FB 2A 00 4E 54 6C 15 5F 2D DC 0E 90 00 3A [07:42:59]RAPDU: 4E 54 6C 15 5F 2D DC 0E 90 00 [07:42:59]wFMCommunicate OK [07:42:59]SAM_PROTO_SignData done [07:42:59]FM_MakeSignedData done [07:42:59]CreateOFDProtocolMessage [07:42:59]wFMCommunicate request_size=4 [07:42:59]MH_SAM_APDU [07:42:59]CAPDU: 80 11 00 00 [07:42:59]Write to MH i2c: E2 08 00 FC 2A 80 11 00 00 00 00 00 00 A0 [07:42:59]Write i2c OK [07:42:59]MH_I2C_Read... [07:42:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:59]Read from MH i2c: E2 [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: E2 17 00 [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: E2 17 00 FC 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FB [07:42:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:42:59]wFMCommunicate OK [07:42:59]CreateOFDProtocolMessage done [07:42:59]OFDSenderStorePacket 118089 [07:42:59]StoreOFDPacket docnum=118089 [07:42:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 8A 35 04 01 6D BA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 06 A5 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 49 CD 01 00 35 04 06 00 62 90 3D DC 78 2D 4E 54 6C 15 5F 2D DC 0E [07:42:59]CheckFolder [07:42:59]dirname=/storage/ofd_packets [07:42:59]CheckFolder done [07:42:59]ProducePacketName [07:42:59]name=ofd_packets/00118089 [07:42:59]NVStorageSaveData ofd_packets/00118089 [07:42:59]File name is /storage/ofd_packets/00118089 [07:42:59]Write 298 bytes [07:42:59]NVStorageSaveData done [07:42:59]OFDSenderStorePacket done [07:42:59]KKMCreateOFDPacket done [07:42:59]NVStorageSaveData kkm_last_timestamp [07:42:59]File name is /storage/kkm_last_timestamp [07:42:59]Write 4 bytes [07:42:59]NVStorageSaveData done [07:42:59]ExternCall_PrintAddStr [07:42:59]wPrintStart [07:42:59]Write to MH i2c: 01 00 00 FD 2A 27 [07:42:59]Write i2c OK [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: 01 [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: 01 07 00 [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: 01 07 00 FD 2A 00 00 00 00 00 FF 0F 3C [07:42:59]RasterBufferAndPrint [07:42:59]line Счет N : (1)948960 [07:42:59]line ИНН: 02508201610067 [07:42:59]line Контрольно-Кассовый Чек [07:42:59]line ПРОДАЖА [07:42:59]line ТРК (МРК, ГНК) : 44 [07:42:59]line Товар: 2710194800 [07:42:59]line ДТ-К-5 [07:42:59]line 18.380 * 76.20 [07:42:59]line = 1400.56 [07:42:59]line НДС 12% НСП 1% [07:42:59]line > о реализуемом товаре [07:42:59]line ОКРУГЛЕНИЕ: -0.56 [07:42:59]line ИТОГО: 1400.00 [07:42:59]line Внесено: 1400.00 [07:42:59]line СДАЧА: 0.00 [07:42:59]line НСП 1% : 12.39 [07:42:59]line НДС 12% : 148.73 [07:42:59]line Наличными: 1400.00 [07:42:59]line Безнал.: 0.00 [07:42:59]line Место: АЗС № 134 "Партнер Нефть" [07:42:59]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:42:59]line СНО: Общий режим [07:42:59]line Чек 32 27.07.2024 07:43 [07:42:59]line Смена: 432 ФФД: 1.0 [07:42:59]line ЗНМ: 0300000044 [07:42:59]line РНМ: 0000000000092660 [07:42:59]line Версия ККМ: 001 [07:42:59]line ФМ: 0000000000874939 [07:42:59]line ФД: 118089 [07:42:59]line ФПД: 108371652671533 [07:43:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T074302&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118089&fm=108371652671533&tin=02508201610067®Number=0000000000092660&sum=140000 [07:43:00]OFD Sender: Processing packet 118089 [packets to send 85, broken 84] [07:43:00]ProducePacketName [07:43:00]name=ofd_packets/00118089 [07:43:00]OFD Sender: To server: pG, [07:43:00]CommunicateWithHost lk.salyk.kg:30040 [07:43:00]ConnectInit lk.salyk.kg [07:43:00]written 0, free lines is 4095 [07:43:00]Connected sock=10 [07:43:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 8A 35 04 01 6D BA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 06 A5 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 49 CD 01 00 35 04 06 00 62 90 3D DC 78 2D 4E 54 6C 15 5F 2D DC 0E [07:43:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 99 F2 47 00 28 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 49 CD 01 00 F4 03 04 00 99 52 A4 66 B6 04 01 00 00 86 D7 9B 20 62 5F EE CB [07:43:00]CommunicateWithHost err = 0 [07:43:00]CheckOFDResponse [07:43:00]1017 (14) - 77093643461234 [07:43:00]1041 (16) - 0000000000874939 [07:43:00]1040 (4) - 118089 [07:43:00]1012 (4) - 27.07.2024 01:51 [07:43:00]1206 (1) - 0 [07:43:00]OFD Sender: Remove packet 118089 [07:43:00]ProducePacketName [07:43:00]name=ofd_packets/00118089 [07:43:00]NVStorageDeleteData [07:43:00]Write to MH i2c: 01 00 00 27 2B 52 [07:43:00]Write i2c OK [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: 01 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: 01 07 00 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: 01 07 00 27 2B 00 00 00 00 00 D1 0C 36 [07:43:00]RasterBufferAndPrint [07:43:00]line [07:43:00]line [07:43:00]line [07:43:00]line [07:43:00]line [07:43:00]written 0, free lines is 3287 [07:43:00]MH_Cut [07:43:00]Write to MH i2c: D1 01 00 2E 2B 01 2B [07:43:00]Write i2c OK [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: D1 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: D1 01 00 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: D1 01 00 2E 2B 00 2A [07:43:00]Write to MH i2c: 01 00 00 2F 2B 5A [07:43:00]Write i2c OK [07:43:00]MH_I2C_Read... [07:43:01]OFD Sender: No OFD packet to send [07:43:01]*** Cut start [07:43:01]*** Partial cut [07:43:01]*** CUTSNS_PIN = 1 [07:43:01]*** CUTSNS_PIN = 0 [07:43:01]*** Brake cut motor [07:43:02]Read from MH i2c: 01 [07:43:02]MH_I2C_Read... [07:43:02]*** Stop cut motor [07:43:02]*** Cut end [07:43:02]Read from MH i2c: 01 07 00 [07:43:02]MH_I2C_Read... [07:43:02]Read from MH i2c: 01 07 00 2F 2B 00 00 00 00 00 FF 0F 6F [07:43:02]process_action close_receipt done [07:43:02]requested_data is exist [07:43:02]produce_requested_data [07:43:02]requested_item fm.sn is exist - process it [07:43:02]wFMCommunicate request_size=4 [07:43:02]MH_SAM_APDU [07:43:02]CAPDU: 80 11 00 00 [07:43:02]Write to MH i2c: E2 08 00 30 2B 80 11 00 00 00 00 00 00 D5 [07:43:02]Write i2c OK [07:43:02]MH_I2C_Read... [07:43:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:02]Read from MH i2c: E2 [07:43:02]MH_I2C_Read... [07:43:02]Read from MH i2c: E2 17 00 [07:43:02]MH_I2C_Read... [07:43:02]Read from MH i2c: E2 17 00 30 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 30 [07:43:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:43:02]wFMCommunicate OK [07:43:02]requested_item fd.num is exist - process it [07:43:02]SAM_PROTO_GetFieldsCounters [07:43:02]wFMCommunicate request_size=4 [07:43:02]MH_SAM_APDU [07:43:02]CAPDU: 80 13 00 00 [07:43:02]Write to MH i2c: E2 08 00 31 2B 80 13 00 00 00 00 00 00 D8 [07:43:02]Write i2c OK [07:43:02]MH_I2C_Read... [07:43:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:43:02]Read from MH i2c: E2 [07:43:02]MH_I2C_Read... [07:43:02]Read from MH i2c: E2 62 00 [07:43:02]MH_I2C_Read... [07:43:02]Read from MH i2c: E2 62 00 31 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 49 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [07:43:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 49 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:43:02]wFMCommunicate OK [07:43:02]SAM_PROTO_GetFieldsCounters done [07:43:02]requested_item shift.num is exist - process it [07:43:02]requested_item shift.opened is exist - process it [07:43:02]req_shift_opened [07:43:02]FM_GetShiftState [07:43:02]SAM_PROTO_GetShiftState [07:43:02]wFMCommunicate request_size=4 [07:43:02]MH_SAM_APDU [07:43:02]CAPDU: 80 13 01 00 [07:43:02]Write to MH i2c: E2 08 00 32 2B 80 13 01 00 00 00 00 00 DA [07:43:02]Write i2c OK [07:43:02]MH_I2C_Read... [07:43:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:02]Read from MH i2c: E2 [07:43:02]MH_I2C_Read... [07:43:02]Read from MH i2c: E2 0E 00 [07:43:02]MH_I2C_Read... [07:43:02]Read from MH i2c: E2 0E 00 32 2B 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 67 [07:43:02]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [07:43:02]wFMCommunicate OK [07:43:02]SAM_PROTO_GetShiftState done [07:43:02]FM_GetShiftState done [07:43:02]req_shift_opened done [07:43:02]requested_item shift.open_date is exist - process it [07:43:02]req_shift_open_date [07:43:02]req_shift_open_date done [07:43:02]produce_requested_data done [07:43:02]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118089,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [07:43:02]process_action_free close_receipt [07:43:02]json_value_free [07:43:02]json_value_free done [07:43:02]process_json_proto returns [07:43:02]Send response to host [07:43:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118089,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [07:43:02]free response buf [07:43:02]execute_script done [07:43:02]execute_script returns [07:43:02]free content buf [07:43:02]Sock 7.Close socket [07:43:02]Sock 7.Thread stoped [07:43:06]OFD Sender: No OFD packet to send [07:43:11]OFD Sender: No OFD packet to send [07:43:16]OFD Sender: No OFD packet to send [07:43:21]OFD Sender: No OFD packet to send [07:43:26]OFD Sender: No OFD packet to send [07:43:31]OFD Sender: No OFD packet to send [07:43:36]OFD Sender: No OFD packet to send [07:43:41]OFD Sender: No OFD packet to send [07:43:46]OFD Sender: No OFD packet to send [07:43:51]OFD Sender: No OFD packet to send [07:43:56]OFD Sender: No OFD packet to send [07:44:01]OFD Sender: No OFD packet to send [07:44:06]OFD Sender: No OFD packet to send [07:44:11]OFD Sender: No OFD packet to send [07:44:16]OFD Sender: No OFD packet to send [07:44:21]OFD Sender: No OFD packet to send [07:44:26]OFD Sender: No OFD packet to send [07:44:31]OFD Sender: No OFD packet to send [07:44:36]OFD Sender: No OFD packet to send [07:44:41]OFD Sender: No OFD packet to send [07:44:46]OFD Sender: No OFD packet to send [07:44:51]OFD Sender: No OFD packet to send [07:44:56]OFD Sender: No OFD packet to send [07:45:01]OFD Sender: No OFD packet to send [07:45:06]OFD Sender: No OFD packet to send [07:45:11]OFD Sender: No OFD packet to send [07:45:16]OFD Sender: No OFD packet to send [07:45:21]OFD Sender: No OFD packet to send [07:45:26]OFD Sender: No OFD packet to send [07:45:31]OFD Sender: No OFD packet to send [07:45:36]OFD Sender: No OFD packet to send [07:45:41]OFD Sender: No OFD packet to send [07:45:46]OFD Sender: No OFD packet to send [07:45:49]accept exits with 9 [07:45:49]New connection [07:45:49]New thread 3067428196 created [07:45:49]Thread 3067284836 joined [07:45:49]Waiting for new connection... [07:45:49] Sock 9.Parse request [07:45:49]Sock 9.Check first char [07:45:49]Sock 9.First char is OK [07:45:49]request: POST /json_proto HTTP/1.0 [07:45:49]Method: POST [07:45:49]URL: /json_proto [07:45:49]Method is POST - this is cgi request [07:45:49]url: /json_proto [07:45:49]query_string will be loaded in cgi processing [07:45:49]execute_cgi json_proto POST (null) [07:45:49]execute_cgi path=json_proto method=POST [07:45:49]POST find Content-Length [07:45:49]Host: 172.17.45.7:8080 [07:45:49]Content-Length: 682 [07:45:49]Content-Type: application/json [07:45:49] [07:45:49]POST finish read [07:45:49]Found Content-Length = 682 [07:45:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.550, "sum" : 1005.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1005.00, "total" : 1005.00, "payments": [ { "type": 0, "sum" : 1005.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:45:49]execute_script... [07:45:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.550, "sum" : 1005.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1005.00, "total" : 1005.00, "payments": [ { "type": 0, "sum" : 1005.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:45:49]POST & json_proto [07:45:49]process_json_proto [07:45:49]json parsed OK: [07:45:49]protocol is kg_v1.0 [07:45:49]action value=close_receipt [07:45:49]process_action close_receipt [07:45:49]cmd_close_receipt [07:45:49]MH_GetDate [07:45:49]Write to MH i2c: F0 00 00 33 2B 4D [07:45:49]Write i2c OK [07:45:49]MH_I2C_Read... [07:45:49]Read from MH i2c: F0 [07:45:49]MH_I2C_Read... [07:45:49]Read from MH i2c: F0 09 00 [07:45:49]MH_I2C_Read... [07:45:49]Read from MH i2c: F0 09 00 33 2B 00 B1 A5 A4 66 90 0F 3E 66 F9 [07:45:49]GetLastDocTimeStamp 1722066182 [07:45:49]current date 1722066353 [07:45:49]FM_GetShiftState [07:45:49]SAM_PROTO_GetShiftState [07:45:49]wFMCommunicate request_size=4 [07:45:49]MH_SAM_APDU [07:45:49]CAPDU: 80 13 01 00 [07:45:49]Write to MH i2c: E2 08 00 34 2B 80 13 01 00 00 00 00 00 DC [07:45:49]Write i2c OK [07:45:49]MH_I2C_Read... [07:45:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:45:49]Read from MH i2c: E2 [07:45:49]MH_I2C_Read... [07:45:49]Read from MH i2c: E2 0E 00 [07:45:49]MH_I2C_Read... [07:45:49]Read from MH i2c: E2 0E 00 34 2B 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 69 [07:45:49]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [07:45:49]wFMCommunicate OK [07:45:49]SAM_PROTO_GetShiftState done [07:45:49]FM_GetShiftState done [07:45:49]opened in 1722038845 [07:45:49]opened+sec_in_day 1722125245 [07:45:49]quantity*price = 100541 [07:45:49]sum+1 = 100542 [07:45:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1005.00 Внесено: 1005.00 СДАЧА: 0.00 НСП 1% : 8.90 НДС 12% : 106.77 Наличными: 1005.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 33 27.07.2024 07:45 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118090 ФПД: 40225648222226 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T074553&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118090&fm=40225648222226&tin=02508201610067®Number=0000000000092660&sum=100500 [07:45:50]StoreToDocumentArchive [07:45:50]shift 432 fd 118090 [07:45:50]save to /storage/0432/doc_00118090 [07:45:50]save last doc name /storage/0432/doc_00118090 to /storage/kkm_last_doc_name [07:45:50]save OK [07:45:50]Clear old archive folders... [07:45:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:45:50]tlvbuf is B6E1C100 [07:45:50]SAM_PROTO_ClearQueue [07:45:50]wFMCommunicate request_size=4 [07:45:50]MH_SAM_APDU [07:45:50]CAPDU: 80 09 00 00 [07:45:50]Write to MH i2c: E2 08 00 41 2B 80 09 00 00 00 00 00 00 DE [07:45:50]Write i2c OK [07:45:50]MH_I2C_Read... [07:45:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:45:50]Read from MH i2c: E2 [07:45:50]MH_I2C_Read... [07:45:50]Read from MH i2c: E2 03 00 [07:45:50]MH_I2C_Read... [07:45:50]Read from MH i2c: E2 03 00 41 2B 00 90 00 E0 [07:45:50]RAPDU: 90 00 [07:45:50]wFMCommunicate OK [07:45:50]SAM_PROTO_ClearQueue done [07:45:50]KKMCreateOFDPacket [07:45:50]OFDProtocolAddRootSTLVToBuf [07:45:50]FM_MakeSignedData [07:45:50]FM_MakeSignedData [07:45:50]SAM_PROTO_SignData [07:45:50]wFMCommunicate request_size=4 [07:45:50]MH_SAM_APDU [07:45:50]CAPDU: 80 0D 01 02 [07:45:50]Write to MH i2c: E2 08 00 42 2B 80 0D 01 02 00 00 00 00 E6 [07:45:50]Write i2c OK [07:45:50]MH_I2C_Read... [07:45:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:45:50]Read from MH i2c: E2 [07:45:50]MH_I2C_Read... [07:45:50]Read from MH i2c: E2 03 00 [07:45:50]MH_I2C_Read... [07:45:50]Read from MH i2c: E2 03 00 42 2B 00 90 00 E1 [07:45:50]RAPDU: 90 00 [07:45:50]wFMCommunicate OK [07:45:50]wFMCommunicate request_size=255 [07:45:50]MH_SAM_APDU [07:45:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 EE 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BD 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 29 00 00 00 00 07 04 06 00 94 88 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 B1 A5 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4A CD 01 00 35 04 06 00 24 [07:45:50]Write to MH i2c: E2 02 01 43 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 EE 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BD 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 29 00 00 00 00 07 04 06 00 94 88 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 B1 A5 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4A CD 01 00 35 04 06 00 24 00 00 7B [07:45:50]Write i2c OK [07:45:50]MH_I2C_Read... [07:45:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:45:51]Read from MH i2c: E2 [07:45:51]MH_I2C_Read... [07:45:51]Read from MH i2c: E2 03 00 [07:45:51]MH_I2C_Read... [07:45:51]Read from MH i2c: E2 03 00 43 2B 00 90 00 E2 [07:45:51]RAPDU: 90 00 [07:45:51]wFMCommunicate OK [07:45:51]wFMCommunicate request_size=10 [07:45:51]MH_SAM_APDU [07:45:51]CAPDU: 80 0D 02 02 05 95 C3 79 20 12 [07:45:51]Write to MH i2c: E2 0D 00 44 2B 80 0D 02 02 05 00 95 C3 79 20 12 00 00 F6 [07:45:51]Write i2c OK [07:45:51]MH_I2C_Read... [07:45:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:45:51]Read from MH i2c: E2 [07:45:51]MH_I2C_Read... [07:45:51]Read from MH i2c: E2 03 00 [07:45:51]MH_I2C_Read... [07:45:51]Read from MH i2c: E2 03 00 44 2B 00 90 00 E3 [07:45:51]RAPDU: 90 00 [07:45:51]wFMCommunicate OK [07:45:51]wFMCommunicate request_size=4 [07:45:51]MH_SAM_APDU [07:45:51]CAPDU: 80 0D 03 02 [07:45:51]Write to MH i2c: E2 08 00 45 2B 80 0D 03 02 00 00 00 00 EB [07:45:51]Write i2c OK [07:45:51]MH_I2C_Read... [07:45:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:45:51]Read from MH i2c: E2 [07:45:51]MH_I2C_Read... [07:45:51]Read from MH i2c: E2 0B 00 [07:45:51]MH_I2C_Read... [07:45:51]Read from MH i2c: E2 0B 00 45 2B 00 7E EE 16 1B A3 1A 78 AD 90 00 6B [07:45:51]RAPDU: 7E EE 16 1B A3 1A 78 AD 90 00 [07:45:51]wFMCommunicate OK [07:45:51]SAM_PROTO_SignData done [07:45:51]FM_MakeSignedData done [07:45:51]CreateOFDProtocolMessage [07:45:51]wFMCommunicate request_size=4 [07:45:51]MH_SAM_APDU [07:45:51]CAPDU: 80 11 00 00 [07:45:51]Write to MH i2c: E2 08 00 46 2B 80 11 00 00 00 00 00 00 EB [07:45:51]Write i2c OK [07:45:51]MH_I2C_Read... [07:45:51]OFD Sender: No OFD packet to send [07:45:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:45:51]Read from MH i2c: E2 [07:45:51]MH_I2C_Read... [07:45:51]Read from MH i2c: E2 17 00 [07:45:51]MH_I2C_Read... [07:45:51]Read from MH i2c: E2 17 00 46 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 46 [07:45:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:45:51]wFMCommunicate OK [07:45:51]CreateOFDProtocolMessage done [07:45:51]OFDSenderStorePacket 118090 [07:45:51]StoreOFDPacket docnum=118090 [07:45:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 96 F1 07 01 36 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 EE 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BD 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 29 00 00 00 00 07 04 06 00 94 88 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 B1 A5 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4A CD 01 00 35 04 06 00 24 95 C3 79 20 12 7E EE 16 1B A3 1A 78 AD [07:45:51]CheckFolder [07:45:51]dirname=/storage/ofd_packets [07:45:51]CheckFolder done [07:45:51]ProducePacketName [07:45:51]name=ofd_packets/00118090 [07:45:51]NVStorageSaveData ofd_packets/00118090 [07:45:51]File name is /storage/ofd_packets/00118090 [07:45:51]Write 301 bytes [07:45:51]NVStorageSaveData done [07:45:51]OFDSenderStorePacket done [07:45:51]KKMCreateOFDPacket done [07:45:51]NVStorageSaveData kkm_last_timestamp [07:45:51]File name is /storage/kkm_last_timestamp [07:45:51]Write 4 bytes [07:45:51]NVStorageSaveData done [07:45:51]ExternCall_PrintAddStr [07:45:51]wPrintStart [07:45:51]Write to MH i2c: 01 00 00 47 2B 72 [07:45:51]Write i2c OK [07:45:51]MH_I2C_Read... [07:45:51]Read from MH i2c: 01 [07:45:51]MH_I2C_Read... [07:45:51]Read from MH i2c: 01 07 00 [07:45:51]MH_I2C_Read... [07:45:51]Read from MH i2c: 01 07 00 47 2B 00 00 00 00 00 FF 0F 87 [07:45:51]RasterBufferAndPrint [07:45:51]line Счет N : (1)948961 [07:45:51]line ИНН: 02508201610067 [07:45:51]line Контрольно-Кассовый Чек [07:45:51]line ПРОДАЖА [07:45:51]line ТРК (МРК, ГНК) : 53 [07:45:51]line Товар: 2710124500 [07:45:51]line Аи-95-К-3 [07:45:51]line 13.550 * 74.20 [07:45:51]line = 1005.41 [07:45:51]line НДС 12% НСП 1% [07:45:51]line > о реализуемом товаре [07:45:51]line ОКРУГЛЕНИЕ: -0.41 [07:45:51]line ИТОГО: 1005.00 [07:45:51]line Внесено: 1005.00 [07:45:51]line СДАЧА: 0.00 [07:45:51]line НСП 1% : 8.90 [07:45:51]line НДС 12% : 106.77 [07:45:51]line Наличными: 1005.00 [07:45:51]line Безнал.: 0.00 [07:45:51]line Место: АЗС № 134 "Партнер Нефть" [07:45:51]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:45:51]line СНО: Общий режим [07:45:51]line Чек 33 27.07.2024 07:45 [07:45:51]line Смена: 432 ФФД: 1.0 [07:45:51]line ЗНМ: 0300000044 [07:45:51]line РНМ: 0000000000092660 [07:45:51]line Версия ККМ: 001 [07:45:51]line ФМ: 0000000000874939 [07:45:51]line ФД: 118090 [07:45:51]line ФПД: 40225648222226 [07:45:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T074553&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118090&fm=40225648222226&tin=02508201610067®Number=0000000000092660&sum=100500 [07:45:51]OFD Sender: Processing packet 118090 [packets to send 85, broken 84] [07:45:51]ProducePacketName [07:45:51]name=ofd_packets/00118090 [07:45:51]OFD Sender: To server: pG, [07:45:51]CommunicateWithHost lk.salyk.kg:30040 [07:45:51]ConnectInit lk.salyk.kg [07:45:51]written 0, free lines is 4095 [07:45:51]Connected sock=10 [07:45:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 96 F1 07 01 36 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 EE 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BD 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 29 00 00 00 00 07 04 06 00 94 88 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 B1 A5 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4A CD 01 00 35 04 06 00 24 95 C3 79 20 12 7E EE 16 1B A3 1A 78 AD [07:45:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 BF CC 47 00 5F B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4A CD 01 00 F4 03 04 00 44 53 A4 66 B6 04 01 00 00 56 FF 1A EB 4C 6B 54 32 [07:45:51]CommunicateWithHost err = 0 [07:45:51]CheckOFDResponse [07:45:51]1017 (14) - 77093643461234 [07:45:51]1041 (16) - 0000000000874939 [07:45:51]1040 (4) - 118090 [07:45:51]1012 (4) - 27.07.2024 01:54 [07:45:51]1206 (1) - 0 [07:45:51]OFD Sender: Remove packet 118090 [07:45:51]ProducePacketName [07:45:51]name=ofd_packets/00118090 [07:45:51]NVStorageDeleteData [07:45:52]Write to MH i2c: 01 00 00 71 2B 9C [07:45:52]Write i2c OK [07:45:52]MH_I2C_Read... [07:45:52]Read from MH i2c: 01 [07:45:52]MH_I2C_Read... [07:45:52]Read from MH i2c: 01 07 00 [07:45:52]MH_I2C_Read... [07:45:52]Read from MH i2c: 01 07 00 71 2B 00 00 00 00 00 CC 0C 7B [07:45:52]RasterBufferAndPrint [07:45:52]line [07:45:52]line [07:45:52]line [07:45:52]line [07:45:52]line [07:45:52]written 0, free lines is 3282 [07:45:52]MH_Cut [07:45:52]Write to MH i2c: D1 01 00 78 2B 01 75 [07:45:52]Write i2c OK [07:45:52]MH_I2C_Read... [07:45:52]Read from MH i2c: D1 [07:45:52]MH_I2C_Read... [07:45:52]Read from MH i2c: D1 01 00 [07:45:52]MH_I2C_Read... [07:45:52]Read from MH i2c: D1 01 00 78 2B 00 74 [07:45:52]Write to MH i2c: 01 00 00 79 2B A4 [07:45:52]Write i2c OK [07:45:52]MH_I2C_Read... [07:45:52]OFD Sender: No OFD packet to send [07:45:52]*** Cut start [07:45:52]*** Partial cut [07:45:52]*** CUTSNS_PIN = 1 [07:45:52]*** CUTSNS_PIN = 0 [07:45:53]*** Brake cut motor [07:45:53]Read from MH i2c: 01 [07:45:53]MH_I2C_Read... [07:45:53]*** Stop cut motor [07:45:53]*** Cut end [07:45:53]Read from MH i2c: 01 07 00 [07:45:53]MH_I2C_Read... [07:45:53]Read from MH i2c: 01 07 00 79 2B 00 00 00 00 00 FF 0F B9 [07:45:53]process_action close_receipt done [07:45:53]requested_data is exist [07:45:53]produce_requested_data [07:45:53]requested_item fm.sn is exist - process it [07:45:53]wFMCommunicate request_size=4 [07:45:53]MH_SAM_APDU [07:45:53]CAPDU: 80 11 00 00 [07:45:53]Write to MH i2c: E2 08 00 7A 2B 80 11 00 00 00 00 00 00 1F [07:45:53]Write i2c OK [07:45:53]MH_I2C_Read... [07:45:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:45:53]Read from MH i2c: E2 [07:45:53]MH_I2C_Read... [07:45:53]Read from MH i2c: E2 17 00 [07:45:53]MH_I2C_Read... [07:45:53]Read from MH i2c: E2 17 00 7A 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7A [07:45:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:45:53]wFMCommunicate OK [07:45:53]requested_item fd.num is exist - process it [07:45:53]SAM_PROTO_GetFieldsCounters [07:45:53]wFMCommunicate request_size=4 [07:45:53]MH_SAM_APDU [07:45:53]CAPDU: 80 13 00 00 [07:45:53]Write to MH i2c: E2 08 00 7B 2B 80 13 00 00 00 00 00 00 22 [07:45:53]Write i2c OK [07:45:53]MH_I2C_Read... [07:45:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:45:53]Read from MH i2c: E2 [07:45:53]MH_I2C_Read... [07:45:53]Read from MH i2c: E2 62 00 [07:45:53]MH_I2C_Read... [07:45:53]Read from MH i2c: E2 62 00 7B 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4A CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [07:45:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4A CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:45:53]wFMCommunicate OK [07:45:53]SAM_PROTO_GetFieldsCounters done [07:45:53]requested_item shift.num is exist - process it [07:45:53]requested_item shift.opened is exist - process it [07:45:53]req_shift_opened [07:45:53]FM_GetShiftState [07:45:53]SAM_PROTO_GetShiftState [07:45:53]wFMCommunicate request_size=4 [07:45:53]MH_SAM_APDU [07:45:53]CAPDU: 80 13 01 00 [07:45:53]Write to MH i2c: E2 08 00 7C 2B 80 13 01 00 00 00 00 00 24 [07:45:53]Write i2c OK [07:45:53]MH_I2C_Read... [07:45:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:45:53]Read from MH i2c: E2 [07:45:53]MH_I2C_Read... [07:45:53]Read from MH i2c: E2 0E 00 [07:45:53]MH_I2C_Read... [07:45:53]Read from MH i2c: E2 0E 00 7C 2B 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 B1 [07:45:53]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [07:45:53]wFMCommunicate OK [07:45:53]SAM_PROTO_GetShiftState done [07:45:53]FM_GetShiftState done [07:45:53]req_shift_opened done [07:45:53]requested_item shift.open_date is exist - process it [07:45:53]req_shift_open_date [07:45:53]req_shift_open_date done [07:45:53]produce_requested_data done [07:45:53]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118090,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [07:45:53]process_action_free close_receipt [07:45:53]json_value_free [07:45:53]json_value_free done [07:45:53]process_json_proto returns [07:45:53]Send response to host [07:45:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118090,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [07:45:53]free response buf [07:45:53]execute_script done [07:45:53]execute_script returns [07:45:53]free content buf [07:45:53]Sock 9.Close socket [07:45:53]Sock 9.Thread stoped [07:45:57]OFD Sender: No OFD packet to send [07:46:02]OFD Sender: No OFD packet to send [07:46:07]OFD Sender: No OFD packet to send [07:46:12]OFD Sender: No OFD packet to send [07:46:17]OFD Sender: No OFD packet to send [07:46:22]OFD Sender: No OFD packet to send [07:46:27]OFD Sender: No OFD packet to send [07:46:32]OFD Sender: No OFD packet to send [07:46:37]OFD Sender: No OFD packet to send [07:46:42]OFD Sender: No OFD packet to send [07:46:47]OFD Sender: No OFD packet to send [07:46:52]OFD Sender: No OFD packet to send [07:46:57]OFD Sender: No OFD packet to send [07:47:02]OFD Sender: No OFD packet to send [07:47:07]OFD Sender: No OFD packet to send [07:47:12]OFD Sender: No OFD packet to send [07:47:17]OFD Sender: No OFD packet to send [07:47:22]OFD Sender: No OFD packet to send [07:47:27]OFD Sender: No OFD packet to send [07:47:32]OFD Sender: No OFD packet to send [07:47:37]OFD Sender: No OFD packet to send [07:47:42]accept exits with 7 [07:47:42]New connection [07:47:42]New thread 3067284836 created [07:47:42]Thread 3067428196 joined [07:47:42]Waiting for new connection... [07:47:42] Sock 7.Parse request [07:47:42]Sock 7.Check first char [07:47:42]Sock 7.First char is OK [07:47:42]request: POST /json_proto HTTP/1.0 [07:47:42]Method: POST [07:47:42]URL: /json_proto [07:47:42]Method is POST - this is cgi request [07:47:42]url: /json_proto [07:47:42]query_string will be loaded in cgi processing [07:47:42]execute_cgi json_proto POST (null) [07:47:42]execute_cgi path=json_proto method=POST [07:47:42]POST find Content-Length [07:47:42]Host: 172.17.45.7:8080 [07:47:42]Content-Length: 678 [07:47:42]Content-Type: application/json [07:47:42] [07:47:42]POST finish read [07:47:42]Found Content-Length = 678 [07:47:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [07:47:42]execute_script... [07:47:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [07:47:42]POST & json_proto [07:47:42]process_json_proto [07:47:42]json parsed OK: [07:47:42]protocol is kg_v1.0 [07:47:42]action value=close_receipt [07:47:42]process_action close_receipt [07:47:42]cmd_close_receipt [07:47:42]MH_GetDate [07:47:42]Write to MH i2c: F0 00 00 7D 2B 97 [07:47:42]Write i2c OK [07:47:42]MH_I2C_Read... [07:47:42]Read from MH i2c: F0 [07:47:42]MH_I2C_Read... [07:47:42]Read from MH i2c: F0 09 00 [07:47:42]MH_I2C_Read... [07:47:42]Read from MH i2c: F0 09 00 7D 2B 00 22 A6 A4 66 90 0F 3E 66 B5 [07:47:42]GetLastDocTimeStamp 1722066353 [07:47:42]current date 1722066466 [07:47:42]FM_GetShiftState [07:47:42]SAM_PROTO_GetShiftState [07:47:42]wFMCommunicate request_size=4 [07:47:42]MH_SAM_APDU [07:47:42]CAPDU: 80 13 01 00 [07:47:42]Write to MH i2c: E2 08 00 7E 2B 80 13 01 00 00 00 00 00 26 [07:47:42]Write i2c OK [07:47:42]MH_I2C_Read... [07:47:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:47:42]Read from MH i2c: E2 [07:47:42]MH_I2C_Read... [07:47:42]Read from MH i2c: E2 0E 00 [07:47:42]MH_I2C_Read... [07:47:42]Read from MH i2c: E2 0E 00 7E 2B 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 B3 [07:47:42]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [07:47:42]wFMCommunicate OK [07:47:42]SAM_PROTO_GetShiftState done [07:47:42]FM_GetShiftState done [07:47:42]opened in 1722038845 [07:47:42]opened+sec_in_day 1722125245 [07:47:42]quantity*price = 70037 [07:47:42]sum+1 = 70038 [07:47:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 34 27.07.2024 07:47 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118091 ФПД: 91008702231697 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T074746&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118091&fm=91008702231697&tin=02508201610067®Number=0000000000092660&sum=70000 [07:47:43]StoreToDocumentArchive [07:47:43]shift 432 fd 118091 [07:47:43]save to /storage/0432/doc_00118091 [07:47:43]save last doc name /storage/0432/doc_00118091 to /storage/kkm_last_doc_name [07:47:43]save OK [07:47:43]Clear old archive folders... [07:47:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:47:43]tlvbuf is 006F7DE0 [07:47:43]SAM_PROTO_ClearQueue [07:47:43]wFMCommunicate request_size=4 [07:47:43]MH_SAM_APDU [07:47:43]CAPDU: 80 09 00 00 [07:47:43]Write to MH i2c: E2 08 00 8B 2B 80 09 00 00 00 00 00 00 28 [07:47:43]Write i2c OK [07:47:43]MH_I2C_Read... [07:47:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:47:43]Read from MH i2c: E2 [07:47:43]MH_I2C_Read... [07:47:43]Read from MH i2c: E2 03 00 [07:47:43]MH_I2C_Read... [07:47:43]Read from MH i2c: E2 03 00 8B 2B 00 90 00 2A [07:47:43]RAPDU: 90 00 [07:47:43]wFMCommunicate OK [07:47:43]SAM_PROTO_ClearQueue done [07:47:43]KKMCreateOFDPacket [07:47:43]OFDProtocolAddRootSTLVToBuf [07:47:43]FM_MakeSignedData [07:47:43]FM_MakeSignedData [07:47:43]SAM_PROTO_SignData [07:47:43]wFMCommunicate request_size=4 [07:47:43]MH_SAM_APDU [07:47:43]CAPDU: 80 0D 01 02 [07:47:43]Write to MH i2c: E2 08 00 8C 2B 80 0D 01 02 00 00 00 00 30 [07:47:43]Write i2c OK [07:47:43]MH_I2C_Read... [07:47:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:47:43]Read from MH i2c: E2 [07:47:43]MH_I2C_Read... [07:47:43]Read from MH i2c: E2 03 00 [07:47:43]MH_I2C_Read... [07:47:43]Read from MH i2c: E2 03 00 8C 2B 00 90 00 2B [07:47:43]RAPDU: 90 00 [07:47:43]wFMCommunicate OK [07:47:43]wFMCommunicate request_size=255 [07:47:43]MH_SAM_APDU [07:47:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 22 00 00 00 F4 03 04 00 22 A6 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4B CD 01 00 35 04 06 00 52 [07:47:43]Write to MH i2c: E2 02 01 8D 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 22 00 00 00 F4 03 04 00 22 A6 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4B CD 01 00 35 04 06 00 52 00 00 AB [07:47:43]Write i2c OK [07:47:43]MH_I2C_Read... [07:47:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:47:43]Read from MH i2c: E2 [07:47:43]MH_I2C_Read... [07:47:43]Read from MH i2c: E2 03 00 [07:47:43]MH_I2C_Read... [07:47:43]Read from MH i2c: E2 03 00 8D 2B 00 90 00 2C [07:47:43]RAPDU: 90 00 [07:47:43]wFMCommunicate OK [07:47:43]wFMCommunicate request_size=10 [07:47:43]MH_SAM_APDU [07:47:43]CAPDU: 80 0D 02 02 05 C5 9D 5E 34 91 [07:47:43]Write to MH i2c: E2 0D 00 8E 2B 80 0D 02 02 05 00 C5 9D 5E 34 91 00 00 C2 [07:47:43]Write i2c OK [07:47:43]MH_I2C_Read... [07:47:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:47:43]Read from MH i2c: E2 [07:47:43]MH_I2C_Read... [07:47:43]Read from MH i2c: E2 03 00 [07:47:43]MH_I2C_Read... [07:47:43]Read from MH i2c: E2 03 00 8E 2B 00 90 00 2D [07:47:43]RAPDU: 90 00 [07:47:43]wFMCommunicate OK [07:47:43]wFMCommunicate request_size=4 [07:47:43]MH_SAM_APDU [07:47:43]CAPDU: 80 0D 03 02 [07:47:43]Write to MH i2c: E2 08 00 8F 2B 80 0D 03 02 00 00 00 00 35 [07:47:43]Write i2c OK [07:47:43]MH_I2C_Read... [07:47:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:47:44]Read from MH i2c: E2 [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: E2 0B 00 [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: E2 0B 00 8F 2B 00 89 C0 0E 1A 5E F0 AF 03 90 00 A7 [07:47:44]RAPDU: 89 C0 0E 1A 5E F0 AF 03 90 00 [07:47:44]wFMCommunicate OK [07:47:44]SAM_PROTO_SignData done [07:47:44]FM_MakeSignedData done [07:47:44]CreateOFDProtocolMessage [07:47:44]wFMCommunicate request_size=4 [07:47:44]MH_SAM_APDU [07:47:44]CAPDU: 80 11 00 00 [07:47:44]Write to MH i2c: E2 08 00 90 2B 80 11 00 00 00 00 00 00 35 [07:47:44]Write i2c OK [07:47:44]MH_I2C_Read... [07:47:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:44]Read from MH i2c: E2 [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: E2 17 00 [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: E2 17 00 90 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 90 [07:47:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:47:44]wFMCommunicate OK [07:47:44]CreateOFDProtocolMessage done [07:47:44]OFDSenderStorePacket 118091 [07:47:44]StoreOFDPacket docnum=118091 [07:47:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 5E 05 07 01 C6 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 22 00 00 00 F4 03 04 00 22 A6 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4B CD 01 00 35 04 06 00 52 C5 9D 5E 34 91 89 C0 0E 1A 5E F0 AF 03 [07:47:44]CheckFolder [07:47:44]dirname=/storage/ofd_packets [07:47:44]CheckFolder done [07:47:44]ProducePacketName [07:47:44]name=ofd_packets/00118091 [07:47:44]NVStorageSaveData ofd_packets/00118091 [07:47:44]File name is /storage/ofd_packets/00118091 [07:47:44]Write 301 bytes [07:47:44]NVStorageSaveData done [07:47:44]OFDSenderStorePacket done [07:47:44]KKMCreateOFDPacket done [07:47:44]NVStorageSaveData kkm_last_timestamp [07:47:44]File name is /storage/kkm_last_timestamp [07:47:44]Write 4 bytes [07:47:44]NVStorageSaveData done [07:47:44]ExternCall_PrintAddStr [07:47:44]wPrintStart [07:47:44]Write to MH i2c: 01 00 00 91 2B BC [07:47:44]Write i2c OK [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: 01 [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: 01 07 00 [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: 01 07 00 91 2B 00 00 00 00 00 FF 0F D1 [07:47:44]RasterBufferAndPrint [07:47:44]line Счет N : (1)948962 [07:47:44]line ИНН: 02508201610067 [07:47:44]line Контрольно-Кассовый Чек [07:47:44]line ПРОДАЖА [07:47:44]line ТРК (МРК, ГНК) : 31 [07:47:44]line Товар: 2710124130 [07:47:44]line Аи-92-К-4 [07:47:44]line 10.330 * 67.80 [07:47:44]line = 700.37 [07:47:44]line НДС 12% НСП 1% [07:47:44]line > о реализуемом товаре [07:47:44]line ОКРУГЛЕНИЕ: -0.37 [07:47:44]line ИТОГО: 700.00 [07:47:44]line Внесено: 700.00 [07:47:44]line СДАЧА: 0.00 [07:47:44]line НСП 1% : 6.20 [07:47:44]line НДС 12% : 74.38 [07:47:44]line Наличными: 700.00 [07:47:44]line Безнал.: 0.00 [07:47:44]line Место: АЗС № 134 "Партнер Нефть" [07:47:44]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:47:44]line СНО: Общий режим [07:47:44]line Чек 34 27.07.2024 07:47 [07:47:44]line Смена: 432 ФФД: 1.0 [07:47:44]line ЗНМ: 0300000044 [07:47:44]line РНМ: 0000000000092660 [07:47:44]line Версия ККМ: 001 [07:47:44]line ФМ: 0000000000874939 [07:47:44]line ФД: 118091 [07:47:44]line ФПД: 91008702231697 [07:47:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T074746&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118091&fm=91008702231697&tin=02508201610067®Number=0000000000092660&sum=70000 [07:47:44]OFD Sender: Processing packet 118091 [packets to send 85, broken 84] [07:47:44]ProducePacketName [07:47:44]name=ofd_packets/00118091 [07:47:44]OFD Sender: To server: pG, [07:47:44]CommunicateWithHost lk.salyk.kg:30040 [07:47:44]ConnectInit lk.salyk.kg [07:47:44]written 0, free lines is 4095 [07:47:44]Connected sock=10 [07:47:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 5E 05 07 01 C6 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 22 00 00 00 F4 03 04 00 22 A6 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4B CD 01 00 35 04 06 00 52 C5 9D 5E 34 91 89 C0 0E 1A 5E F0 AF 03 [07:47:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 BB 8F 47 00 F2 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 34 39 33 39 10 04 04 00 4B CD 01 00 F4 03 04 00 B5 53 A4 66 B6 04 01 00 00 AF 9F 87 CE 0A 03 2F 74 [07:47:44]CommunicateWithHost err = 0 [07:47:44]CheckOFDResponse [07:47:44]1017 (14) - 77093643461234 [07:47:44]1041 (16) - 0000000000874939 [07:47:44]1040 (4) - 118091 [07:47:44]1012 (4) - 27.07.2024 01:56 [07:47:44]1206 (1) - 0 [07:47:44]OFD Sender: Remove packet 118091 [07:47:44]ProducePacketName [07:47:44]name=ofd_packets/00118091 [07:47:44]NVStorageDeleteData [07:47:44]Write to MH i2c: 01 00 00 BB 2B E6 [07:47:44]Write i2c OK [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: 01 [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: 01 07 00 [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: 01 07 00 BB 2B 00 00 00 00 00 C5 0C BE [07:47:44]RasterBufferAndPrint [07:47:44]line [07:47:44]line [07:47:44]line [07:47:44]line [07:47:44]line [07:47:44]written 0, free lines is 3274 [07:47:44]MH_Cut [07:47:44]Write to MH i2c: D1 01 00 C2 2B 01 BF [07:47:44]Write i2c OK [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: D1 [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: D1 01 00 [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: D1 01 00 C2 2B 00 BE [07:47:44]Write to MH i2c: 01 00 00 C3 2B EE [07:47:44]Write i2c OK [07:47:44]MH_I2C_Read... [07:47:45]OFD Sender: No OFD packet to send [07:47:45]*** Cut start [07:47:45]*** Partial cut [07:47:45]*** CUTSNS_PIN = 1 [07:47:45]*** CUTSNS_PIN = 0 [07:47:45]*** Brake cut motor [07:47:46]Read from MH i2c: 01 [07:47:46]MH_I2C_Read... [07:47:46]*** Stop cut motor [07:47:46]*** Cut end [07:47:46]Read from MH i2c: 01 07 00 [07:47:46]MH_I2C_Read... [07:47:46]Read from MH i2c: 01 07 00 C3 2B 00 00 00 00 00 FF 0F 03 [07:47:46]process_action close_receipt done [07:47:46]requested_data is exist [07:47:46]produce_requested_data [07:47:46]requested_item fm.sn is exist - process it [07:47:46]wFMCommunicate request_size=4 [07:47:46]MH_SAM_APDU [07:47:46]CAPDU: 80 11 00 00 [07:47:46]Write to MH i2c: E2 08 00 C4 2B 80 11 00 00 00 00 00 00 69 [07:47:46]Write i2c OK [07:47:46]MH_I2C_Read... [07:47:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:46]Read from MH i2c: E2 [07:47:46]MH_I2C_Read... [07:47:46]Read from MH i2c: E2 17 00 [07:47:46]MH_I2C_Read... [07:47:46]Read from MH i2c: E2 17 00 C4 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C4 [07:47:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:47:46]wFMCommunicate OK [07:47:46]requested_item fd.num is exist - process it [07:47:46]SAM_PROTO_GetFieldsCounters [07:47:46]wFMCommunicate request_size=4 [07:47:46]MH_SAM_APDU [07:47:46]CAPDU: 80 13 00 00 [07:47:46]Write to MH i2c: E2 08 00 C5 2B 80 13 00 00 00 00 00 00 6C [07:47:46]Write i2c OK [07:47:46]MH_I2C_Read... [07:47:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:47:46]Read from MH i2c: E2 [07:47:46]MH_I2C_Read... [07:47:46]Read from MH i2c: E2 62 00 [07:47:46]MH_I2C_Read... [07:47:46]Read from MH i2c: E2 62 00 C5 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4B CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [07:47:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4B CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:47:46]wFMCommunicate OK [07:47:46]SAM_PROTO_GetFieldsCounters done [07:47:46]requested_item shift.num is exist - process it [07:47:46]requested_item shift.opened is exist - process it [07:47:46]req_shift_opened [07:47:46]FM_GetShiftState [07:47:46]SAM_PROTO_GetShiftState [07:47:46]wFMCommunicate request_size=4 [07:47:46]MH_SAM_APDU [07:47:46]CAPDU: 80 13 01 00 [07:47:46]Write to MH i2c: E2 08 00 C6 2B 80 13 01 00 00 00 00 00 6E [07:47:46]Write i2c OK [07:47:46]MH_I2C_Read... [07:47:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:47:46]Read from MH i2c: E2 [07:47:46]MH_I2C_Read... [07:47:46]Read from MH i2c: E2 0E 00 [07:47:46]MH_I2C_Read... [07:47:46]Read from MH i2c: E2 0E 00 C6 2B 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 FB [07:47:46]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [07:47:46]wFMCommunicate OK [07:47:46]SAM_PROTO_GetShiftState done [07:47:46]FM_GetShiftState done [07:47:46]req_shift_opened done [07:47:46]requested_item shift.open_date is exist - process it [07:47:46]req_shift_open_date [07:47:46]req_shift_open_date done [07:47:46]produce_requested_data done [07:47:46]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118091,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [07:47:46]process_action_free close_receipt [07:47:46]json_value_free [07:47:46]json_value_free done [07:47:46]process_json_proto returns [07:47:46]Send response to host [07:47:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118091,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [07:47:46]free response buf [07:47:46]execute_script done [07:47:46]execute_script returns [07:47:46]free content buf [07:47:46]Sock 7.Close socket [07:47:46]Sock 7.Thread stoped [07:47:50]OFD Sender: No OFD packet to send [07:47:55]OFD Sender: No OFD packet to send [07:48:00]OFD Sender: No OFD packet to send [07:48:05]OFD Sender: No OFD packet to send [07:48:10]OFD Sender: No OFD packet to send [07:48:15]OFD Sender: No OFD packet to send [07:48:20]OFD Sender: No OFD packet to send [07:48:25]OFD Sender: No OFD packet to send [07:48:30]OFD Sender: No OFD packet to send [07:48:35]OFD Sender: No OFD packet to send [07:48:40]OFD Sender: No OFD packet to send [07:48:45]OFD Sender: No OFD packet to send [07:48:50]OFD Sender: No OFD packet to send [07:48:55]OFD Sender: No OFD packet to send [07:49:00]OFD Sender: No OFD packet to send [07:49:05]OFD Sender: No OFD packet to send [07:49:10]OFD Sender: No OFD packet to send [07:49:15]OFD Sender: No OFD packet to send [07:49:20]OFD Sender: No OFD packet to send [07:49:25]OFD Sender: No OFD packet to send [07:49:30]OFD Sender: No OFD packet to send [07:49:35]OFD Sender: No OFD packet to send [07:49:40]OFD Sender: No OFD packet to send [07:49:45]OFD Sender: No OFD packet to send [07:49:50]OFD Sender: No OFD packet to send [07:49:55]OFD Sender: No OFD packet to send [07:50:00]OFD Sender: No OFD packet to send [07:50:05]OFD Sender: No OFD packet to send [07:50:10]OFD Sender: No OFD packet to send [07:50:15]OFD Sender: No OFD packet to send [07:50:20]OFD Sender: No OFD packet to send [07:50:25]OFD Sender: No OFD packet to send [07:50:30]OFD Sender: No OFD packet to send [07:50:35]OFD Sender: No OFD packet to send [07:50:40]OFD Sender: No OFD packet to send [07:50:45]OFD Sender: No OFD packet to send [07:50:50]OFD Sender: No OFD packet to send [07:50:55]OFD Sender: No OFD packet to send [07:51:00]OFD Sender: No OFD packet to send [07:51:05]OFD Sender: No OFD packet to send [07:51:10]OFD Sender: No OFD packet to send [07:51:15]OFD Sender: No OFD packet to send [07:51:20]OFD Sender: No OFD packet to send [07:51:25]OFD Sender: No OFD packet to send [07:51:30]OFD Sender: No OFD packet to send [07:51:35]OFD Sender: No OFD packet to send [07:51:40]OFD Sender: No OFD packet to send [07:51:45]OFD Sender: No OFD packet to send [07:51:50]OFD Sender: No OFD packet to send [07:51:55]OFD Sender: No OFD packet to send [07:52:00]OFD Sender: No OFD packet to send [07:52:05]OFD Sender: No OFD packet to send [07:52:10]OFD Sender: No OFD packet to send [07:52:15]OFD Sender: No OFD packet to send [07:52:20]OFD Sender: No OFD packet to send [07:52:25]OFD Sender: No OFD packet to send [07:52:30]OFD Sender: No OFD packet to send [07:52:35]OFD Sender: No OFD packet to send [07:52:40]OFD Sender: No OFD packet to send [07:52:45]OFD Sender: No OFD packet to send [07:52:50]OFD Sender: No OFD packet to send [07:52:55]OFD Sender: No OFD packet to send [07:53:00]OFD Sender: No OFD packet to send [07:53:05]OFD Sender: No OFD packet to send [07:53:10]OFD Sender: No OFD packet to send [07:53:15]OFD Sender: No OFD packet to send [07:53:20]OFD Sender: No OFD packet to send [07:53:25]OFD Sender: No OFD packet to send [07:53:30]OFD Sender: No OFD packet to send [07:53:35]OFD Sender: No OFD packet to send [07:53:40]OFD Sender: No OFD packet to send [07:53:45]OFD Sender: No OFD packet to send [07:53:50]OFD Sender: No OFD packet to send [07:53:55]OFD Sender: No OFD packet to send [07:54:00]OFD Sender: No OFD packet to send [07:54:05]OFD Sender: No OFD packet to send [07:54:10]OFD Sender: No OFD packet to send [07:54:15]OFD Sender: No OFD packet to send [07:54:20]OFD Sender: No OFD packet to send [07:54:25]OFD Sender: No OFD packet to send [07:54:30]OFD Sender: No OFD packet to send [07:54:35]OFD Sender: No OFD packet to send [07:54:40]OFD Sender: No OFD packet to send [07:54:45]OFD Sender: No OFD packet to send [07:54:50]OFD Sender: No OFD packet to send [07:54:55]OFD Sender: No OFD packet to send [07:55:00]OFD Sender: No OFD packet to send [07:55:05]OFD Sender: No OFD packet to send [07:55:10]OFD Sender: No OFD packet to send [07:55:15]OFD Sender: No OFD packet to send [07:55:20]OFD Sender: No OFD packet to send [07:55:25]OFD Sender: No OFD packet to send [07:55:30]OFD Sender: No OFD packet to send [07:55:35]OFD Sender: No OFD packet to send [07:55:40]OFD Sender: No OFD packet to send [07:55:45]OFD Sender: No OFD packet to send [07:55:50]OFD Sender: No OFD packet to send [07:55:55]OFD Sender: No OFD packet to send [07:56:00]OFD Sender: No OFD packet to send [07:56:05]OFD Sender: No OFD packet to send [07:56:10]OFD Sender: No OFD packet to send [07:56:15]OFD Sender: No OFD packet to send [07:56:20]OFD Sender: No OFD packet to send [07:56:25]OFD Sender: No OFD packet to send [07:56:30]OFD Sender: No OFD packet to send [07:56:35]OFD Sender: No OFD packet to send [07:56:40]OFD Sender: No OFD packet to send [07:56:45]OFD Sender: No OFD packet to send [07:56:50]OFD Sender: No OFD packet to send [07:56:55]OFD Sender: No OFD packet to send [07:57:00]OFD Sender: No OFD packet to send [07:57:05]OFD Sender: No OFD packet to send [07:57:10]OFD Sender: No OFD packet to send [07:57:15]OFD Sender: No OFD packet to send [07:57:20]OFD Sender: No OFD packet to send [07:57:25]OFD Sender: No OFD packet to send [07:57:30]OFD Sender: No OFD packet to send [07:57:35]OFD Sender: No OFD packet to send [07:57:40]OFD Sender: No OFD packet to send [07:57:45]OFD Sender: No OFD packet to send [07:57:50]OFD Sender: No OFD packet to send [07:57:55]OFD Sender: No OFD packet to send [07:58:00]OFD Sender: No OFD packet to send [07:58:05]OFD Sender: No OFD packet to send [07:58:10]OFD Sender: No OFD packet to send [07:58:15]OFD Sender: No OFD packet to send [07:58:20]OFD Sender: No OFD packet to send [07:58:25]OFD Sender: No OFD packet to send [07:58:30]OFD Sender: No OFD packet to send [07:58:35]OFD Sender: No OFD packet to send [07:58:40]OFD Sender: No OFD packet to send [07:58:45]OFD Sender: No OFD packet to send [07:58:50]OFD Sender: No OFD packet to send [07:58:55]OFD Sender: No OFD packet to send [07:59:00]OFD Sender: No OFD packet to send [07:59:05]OFD Sender: No OFD packet to send [07:59:10]OFD Sender: No OFD packet to send [07:59:15]OFD Sender: No OFD packet to send [07:59:20]OFD Sender: No OFD packet to send [07:59:25]OFD Sender: No OFD packet to send [07:59:30]OFD Sender: No OFD packet to send [07:59:35]OFD Sender: No OFD packet to send [07:59:40]OFD Sender: No OFD packet to send [07:59:45]OFD Sender: No OFD packet to send [07:59:50]OFD Sender: No OFD packet to send [07:59:55]OFD Sender: No OFD packet to send [08:00:00]OFD Sender: No OFD packet to send [08:00:05]OFD Sender: No OFD packet to send [08:00:10]OFD Sender: No OFD packet to send [08:00:15]OFD Sender: No OFD packet to send [08:00:20]OFD Sender: No OFD packet to send [08:00:25]OFD Sender: No OFD packet to send [08:00:31]OFD Sender: No OFD packet to send [08:00:36]OFD Sender: No OFD packet to send [08:00:37]accept exits with 9 [08:00:37]New connection [08:00:37]New thread 3067428196 created [08:00:37]Thread 3067284836 joined [08:00:37]Waiting for new connection... [08:00:37] Sock 9.Parse request [08:00:37]Sock 9.Check first char [08:00:37]Sock 9.First char is OK [08:00:37]request: POST /json_proto HTTP/1.0 [08:00:37]Method: POST [08:00:37]URL: /json_proto [08:00:37]Method is POST - this is cgi request [08:00:37]url: /json_proto [08:00:37]query_string will be loaded in cgi processing [08:00:37]execute_cgi json_proto POST (null) [08:00:37]execute_cgi path=json_proto method=POST [08:00:37]POST find Content-Length [08:00:37]Host: 172.17.45.7:8080 [08:00:37]Content-Length: 678 [08:00:37]Content-Type: application/json [08:00:37] [08:00:37]POST finish read [08:00:37]Found Content-Length = 678 [08:00:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.480, "sum" : 710.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 710.00, "total" : 710.00, "payments": [ { "type": 0, "sum" : 710.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:37]execute_script... [08:00: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)948963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.480, "sum" : 710.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 710.00, "total" : 710.00, "payments": [ { "type": 0, "sum" : 710.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:37]POST & json_proto [08:00:37]process_json_proto [08:00:37]json parsed OK: [08:00:37]protocol is kg_v1.0 [08:00:37]action value=close_receipt [08:00:37]process_action close_receipt [08:00:37]cmd_close_receipt [08:00:37]MH_GetDate [08:00:37]Write to MH i2c: F0 00 00 C7 2B E1 [08:00:37]Write i2c OK [08:00:37]MH_I2C_Read... [08:00:37]Read from MH i2c: F0 [08:00:37]MH_I2C_Read... [08:00:37]Read from MH i2c: F0 09 00 [08:00:37]MH_I2C_Read... [08:00:37]Read from MH i2c: F0 09 00 C7 2B 00 29 A9 A4 66 90 0F 3E 66 09 [08:00:37]GetLastDocTimeStamp 1722066466 [08:00:37]current date 1722067241 [08:00:37]FM_GetShiftState [08:00:37]SAM_PROTO_GetShiftState [08:00:37]wFMCommunicate request_size=4 [08:00:37]MH_SAM_APDU [08:00:37]CAPDU: 80 13 01 00 [08:00:37]Write to MH i2c: E2 08 00 C8 2B 80 13 01 00 00 00 00 00 70 [08:00:37]Write i2c OK [08:00:37]MH_I2C_Read... [08:00:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:37]Read from MH i2c: E2 [08:00:37]MH_I2C_Read... [08:00:37]Read from MH i2c: E2 0E 00 [08:00:37]MH_I2C_Read... [08:00:37]Read from MH i2c: E2 0E 00 C8 2B 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 FD [08:00:37]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [08:00:37]wFMCommunicate OK [08:00:37]SAM_PROTO_GetShiftState done [08:00:37]FM_GetShiftState done [08:00:37]opened in 1722038845 [08:00:37]opened+sec_in_day 1722125245 [08:00:37]quantity*price = 71054 [08:00:37]sum+1 = 71055 [08:00:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 710.00 Внесено: 710.00 СДАЧА: 0.00 НСП 1% : 6.29 НДС 12% : 75.46 Наличными: 710.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 35 27.07.2024 08:00 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118092 ФПД: 124679162104932 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T080041&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118092&fm=124679162104932&tin=02508201610067®Number=0000000000092660&sum=71000 [08:00:38]StoreToDocumentArchive [08:00:38]shift 432 fd 118092 [08:00:38]save to /storage/0432/doc_00118092 [08:00:38]save last doc name /storage/0432/doc_00118092 to /storage/kkm_last_doc_name [08:00:38]save OK [08:00:38]Clear old archive folders... [08:00:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:00:38]tlvbuf is 006E2F20 [08:00:38]SAM_PROTO_ClearQueue [08:00:38]wFMCommunicate request_size=4 [08:00:38]MH_SAM_APDU [08:00:38]CAPDU: 80 09 00 00 [08:00:38]Write to MH i2c: E2 08 00 D5 2B 80 09 00 00 00 00 00 00 72 [08:00:38]Write i2c OK [08:00:38]MH_I2C_Read... [08:00:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:00:38]Read from MH i2c: E2 [08:00:38]MH_I2C_Read... [08:00:38]Read from MH i2c: E2 03 00 [08:00:38]MH_I2C_Read... [08:00:38]Read from MH i2c: E2 03 00 D5 2B 00 90 00 74 [08:00:38]RAPDU: 90 00 [08:00:38]wFMCommunicate OK [08:00:38]SAM_PROTO_ClearQueue done [08:00:38]KKMCreateOFDPacket [08:00:38]OFDProtocolAddRootSTLVToBuf [08:00:38]FM_MakeSignedData [08:00:38]FM_MakeSignedData [08:00:38]SAM_PROTO_SignData [08:00:38]wFMCommunicate request_size=4 [08:00:38]MH_SAM_APDU [08:00:38]CAPDU: 80 0D 01 02 [08:00:38]Write to MH i2c: E2 08 00 D6 2B 80 0D 01 02 00 00 00 00 7A [08:00:38]Write i2c OK [08:00:38]MH_I2C_Read... [08:00:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:00:38]Read from MH i2c: E2 [08:00:38]MH_I2C_Read... [08:00:38]Read from MH i2c: E2 03 00 [08:00:38]MH_I2C_Read... [08:00:38]Read from MH i2c: E2 03 00 D6 2B 00 90 00 75 [08:00:38]RAPDU: 90 00 [08:00:38]wFMCommunicate OK [08:00:38]wFMCommunicate request_size=255 [08:00:38]MH_SAM_APDU [08:00: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 34 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 8E 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 1D 00 00 00 00 07 04 06 00 58 15 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 00 00 00 F4 03 04 00 29 A9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4C CD 01 00 35 04 06 00 71 [08:00:38]Write to MH i2c: E2 02 01 D7 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 8E 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 1D 00 00 00 00 07 04 06 00 58 15 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 00 00 00 F4 03 04 00 29 A9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4C CD 01 00 35 04 06 00 71 00 00 00 [08:00:38]Write i2c OK [08:00:38]MH_I2C_Read... [08:00:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:39]Read from MH i2c: E2 [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: E2 03 00 [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: E2 03 00 D7 2B 00 90 00 76 [08:00:39]RAPDU: 90 00 [08:00:39]wFMCommunicate OK [08:00:39]wFMCommunicate request_size=10 [08:00:39]MH_SAM_APDU [08:00:39]CAPDU: 80 0D 02 02 05 65 21 2B 0C 64 [08:00:39]Write to MH i2c: E2 0D 00 D8 2B 80 0D 02 02 05 00 65 21 2B 0C 64 00 00 A8 [08:00:39]Write i2c OK [08:00:39]MH_I2C_Read... [08:00:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:39]Read from MH i2c: E2 [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: E2 03 00 [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: E2 03 00 D8 2B 00 90 00 77 [08:00:39]RAPDU: 90 00 [08:00:39]wFMCommunicate OK [08:00:39]wFMCommunicate request_size=4 [08:00:39]MH_SAM_APDU [08:00:39]CAPDU: 80 0D 03 02 [08:00:39]Write to MH i2c: E2 08 00 D9 2B 80 0D 03 02 00 00 00 00 7F [08:00:39]Write i2c OK [08:00:39]MH_I2C_Read... [08:00:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:00:39]Read from MH i2c: E2 [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: E2 0B 00 [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: E2 0B 00 D9 2B 00 D1 BF 06 F3 F8 27 14 15 90 00 51 [08:00:39]RAPDU: D1 BF 06 F3 F8 27 14 15 90 00 [08:00:39]wFMCommunicate OK [08:00:39]SAM_PROTO_SignData done [08:00:39]FM_MakeSignedData done [08:00:39]CreateOFDProtocolMessage [08:00:39]wFMCommunicate request_size=4 [08:00:39]MH_SAM_APDU [08:00:39]CAPDU: 80 11 00 00 [08:00:39]Write to MH i2c: E2 08 00 DA 2B 80 11 00 00 00 00 00 00 7F [08:00:39]Write i2c OK [08:00:39]MH_I2C_Read... [08:00:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:39]Read from MH i2c: E2 [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: E2 17 00 [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: E2 17 00 DA 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DA [08:00:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:00:39]wFMCommunicate OK [08:00:39]CreateOFDProtocolMessage done [08:00:39]OFDSenderStorePacket 118092 [08:00:39]StoreOFDPacket docnum=118092 [08:00:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E2 EA 07 01 A5 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 8E 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 1D 00 00 00 00 07 04 06 00 58 15 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 00 00 00 F4 03 04 00 29 A9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4C CD 01 00 35 04 06 00 71 65 21 2B 0C 64 D1 BF 06 F3 F8 27 14 15 [08:00:39]CheckFolder [08:00:39]dirname=/storage/ofd_packets [08:00:39]CheckFolder done [08:00:39]ProducePacketName [08:00:39]name=ofd_packets/00118092 [08:00:39]NVStorageSaveData ofd_packets/00118092 [08:00:39]File name is /storage/ofd_packets/00118092 [08:00:39]Write 301 bytes [08:00:39]NVStorageSaveData done [08:00:39]OFDSenderStorePacket done [08:00:39]KKMCreateOFDPacket done [08:00:39]NVStorageSaveData kkm_last_timestamp [08:00:39]File name is /storage/kkm_last_timestamp [08:00:39]Write 4 bytes [08:00:39]NVStorageSaveData done [08:00:39]ExternCall_PrintAddStr [08:00:39]wPrintStart [08:00:39]Write to MH i2c: 01 00 00 DB 2B 06 [08:00:39]Write i2c OK [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: 01 [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: 01 07 00 [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: 01 07 00 DB 2B 00 00 00 00 00 FF 0F 1B [08:00:39]RasterBufferAndPrint [08:00:39]line Счет N : (1)948963 [08:00:39]line ИНН: 02508201610067 [08:00:39]line Контрольно-Кассовый Чек [08:00:39]line ПРОДАЖА [08:00:39]line ТРК (МРК, ГНК) : 41 [08:00:39]line Товар: 2710124130 [08:00:39]line Аи-92-К-4 [08:00:39]line 10.480 * 67.80 [08:00:39]line = 710.54 [08:00:39]line НДС 12% НСП 1% [08:00:39]line > о реализуемом товаре [08:00:39]line ОКРУГЛЕНИЕ: -0.54 [08:00:39]line ИТОГО: 710.00 [08:00:39]line Внесено: 710.00 [08:00:39]line СДАЧА: 0.00 [08:00:39]line НСП 1% : 6.29 [08:00:39]line НДС 12% : 75.46 [08:00:39]line Наличными: 710.00 [08:00:39]line Безнал.: 0.00 [08:00:39]line Место: АЗС № 134 "Партнер Нефть" [08:00:39]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:00:39]line СНО: Общий режим [08:00:39]line Чек 35 27.07.2024 08:00 [08:00:39]line Смена: 432 ФФД: 1.0 [08:00:39]line ЗНМ: 0300000044 [08:00:39]line РНМ: 0000000000092660 [08:00:39]line Версия ККМ: 001 [08:00:39]line ФМ: 0000000000874939 [08:00:39]line ФД: 118092 [08:00:39]line ФПД: 124679162104932 [08:00:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T080041&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118092&fm=124679162104932&tin=02508201610067®Number=0000000000092660&sum=71000 [08:00:39]OFD Sender: Processing packet 118092 [packets to send 85, broken 84] [08:00:39]ProducePacketName [08:00:39]name=ofd_packets/00118092 [08:00:39]OFD Sender: To server: pG, [08:00:39]CommunicateWithHost lk.salyk.kg:30040 [08:00:39]ConnectInit lk.salyk.kg [08:00:39]written 0, free lines is 4095 [08:00:39]Connected sock=11 [08:00:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E2 EA 07 01 A5 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 8E 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 1D 00 00 00 00 07 04 06 00 58 15 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 00 00 00 F4 03 04 00 29 A9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4C CD 01 00 35 04 06 00 71 65 21 2B 0C 64 D1 BF 06 F3 F8 27 14 15 [08:00:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 2F 39 47 00 62 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 34 39 33 39 10 04 04 00 4C CD 01 00 F4 03 04 00 BC 56 A4 66 B6 04 01 00 00 3C F5 91 4C 3B FC 1C 77 [08:00:39]CommunicateWithHost err = 0 [08:00:39]CheckOFDResponse [08:00:39]1017 (14) - 77093643461234 [08:00:39]1041 (16) - 0000000000874939 [08:00:39]1040 (4) - 118092 [08:00:39]1012 (4) - 27.07.2024 02:09 [08:00:39]1206 (1) - 0 [08:00:39]OFD Sender: Remove packet 118092 [08:00:39]ProducePacketName [08:00:39]name=ofd_packets/00118092 [08:00:39]NVStorageDeleteData [08:00:40]Write to MH i2c: 01 00 00 05 2C 31 [08:00:40]Write i2c OK [08:00:40]MH_I2C_Read... [08:00:40]Read from MH i2c: 01 [08:00:40]MH_I2C_Read... [08:00:40]Read from MH i2c: 01 07 00 [08:00:40]MH_I2C_Read... [08:00:40]Read from MH i2c: 01 07 00 05 2C 00 00 00 00 00 CD 0C 11 [08:00:40]RasterBufferAndPrint [08:00:40]line [08:00:40]line [08:00:40]line [08:00:40]line [08:00:40]line [08:00:40]written 0, free lines is 3283 [08:00:40]MH_Cut [08:00:40]Write to MH i2c: D1 01 00 0C 2C 01 0A [08:00:40]Write i2c OK [08:00:40]MH_I2C_Read... [08:00:40]Read from MH i2c: D1 [08:00:40]MH_I2C_Read... [08:00:40]Read from MH i2c: D1 01 00 [08:00:40]MH_I2C_Read... [08:00:40]Read from MH i2c: D1 01 00 0C 2C 00 09 [08:00:40]Write to MH i2c: 01 00 00 0D 2C 39 [08:00:40]Write i2c OK [08:00:40]MH_I2C_Read... [08:00:40]OFD Sender: No OFD packet to send [08:00:40]*** Cut start [08:00:40]*** Partial cut [08:00:40]*** CUTSNS_PIN = 1 [08:00:40]*** CUTSNS_PIN = 0 [08:00:41]*** Brake cut motor [08:00:41]Read from MH i2c: 01 [08:00:41]MH_I2C_Read... [08:00:41]*** Stop cut motor [08:00:41]*** Cut end [08:00:41]Read from MH i2c: 01 07 00 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: 01 07 00 0D 2C 00 00 00 00 00 FF 0F 4E [08:00:41]process_action close_receipt done [08:00:41]requested_data is exist [08:00:41]produce_requested_data [08:00:41]requested_item fm.sn is exist - process it [08:00:41]wFMCommunicate request_size=4 [08:00:41]MH_SAM_APDU [08:00:41]CAPDU: 80 11 00 00 [08:00:41]Write to MH i2c: E2 08 00 0E 2C 80 11 00 00 00 00 00 00 B4 [08:00:41]Write i2c OK [08:00:41]MH_I2C_Read... [08:00:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:41]Read from MH i2c: E2 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: E2 17 00 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: E2 17 00 0E 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0F [08:00:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:00:41]wFMCommunicate OK [08:00:41]requested_item fd.num is exist - process it [08:00:41]SAM_PROTO_GetFieldsCounters [08:00:41]wFMCommunicate request_size=4 [08:00:41]MH_SAM_APDU [08:00:41]CAPDU: 80 13 00 00 [08:00:41]Write to MH i2c: E2 08 00 0F 2C 80 13 00 00 00 00 00 00 B7 [08:00:41]Write i2c OK [08:00:41]MH_I2C_Read... [08:00:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:00:41]Read from MH i2c: E2 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: E2 62 00 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: E2 62 00 0F 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4C CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [08:00:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4C CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:00:41]wFMCommunicate OK [08:00:41]SAM_PROTO_GetFieldsCounters done [08:00:41]requested_item shift.num is exist - process it [08:00:41]requested_item shift.opened is exist - process it [08:00:41]req_shift_opened [08:00:41]FM_GetShiftState [08:00:41]SAM_PROTO_GetShiftState [08:00:41]wFMCommunicate request_size=4 [08:00:41]MH_SAM_APDU [08:00:41]CAPDU: 80 13 01 00 [08:00:41]Write to MH i2c: E2 08 00 10 2C 80 13 01 00 00 00 00 00 B9 [08:00:41]Write i2c OK [08:00:41]MH_I2C_Read... [08:00:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:41]Read from MH i2c: E2 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: E2 0E 00 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: E2 0E 00 10 2C 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 46 [08:00:41]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [08:00:41]wFMCommunicate OK [08:00:41]SAM_PROTO_GetShiftState done [08:00:41]FM_GetShiftState done [08:00:41]req_shift_opened done [08:00:41]requested_item shift.open_date is exist - process it [08:00:41]req_shift_open_date [08:00:41]req_shift_open_date done [08:00:41]produce_requested_data done [08:00:41]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118092,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [08:00:41]process_action_free close_receipt [08:00:41]json_value_free [08:00:41]json_value_free done [08:00:41]process_json_proto returns [08:00:41]Send response to host [08:00:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118092,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [08:00:41]free response buf [08:00:41]execute_script done [08:00:41]execute_script returns [08:00:41]free content buf [08:00:41]Sock 9.Close socket [08:00:41]Sock 9.Thread stoped [08:00:45]OFD Sender: No OFD packet to send [08:00:50]OFD Sender: No OFD packet to send [08:00:55]OFD Sender: No OFD packet to send [08:01:00]OFD Sender: No OFD packet to send [08:01:00]accept exits with 7 [08:01:00]New connection [08:01:00]New thread 3067284836 created [08:01:00]Thread 3067428196 joined [08:01:00]Waiting for new connection... [08:01:00] Sock 7.Parse request [08:01:00]Sock 7.Check first char [08:01:00]Sock 7.First char is OK [08:01:00]request: POST /json_proto HTTP/1.0 [08:01:00]Method: POST [08:01:00]URL: /json_proto [08:01:00]Method is POST - this is cgi request [08:01:00]url: /json_proto [08:01:00]query_string will be loaded in cgi processing [08:01:00]execute_cgi json_proto POST (null) [08:01:00]execute_cgi path=json_proto method=POST [08:01:00]POST find Content-Length [08:01:00]Host: 172.17.45.7:8080 [08:01:00]Content-Length: 677 [08:01:00]Content-Type: application/json [08:01:00] [08:01:00]POST finish read [08:01:00]Found Content-Length = 677 [08:01:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:01:00]execute_script... [08:01: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)948964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:01:00]POST & json_proto [08:01:00]process_json_proto [08:01:00]json parsed OK: [08:01:00]protocol is kg_v1.0 [08:01:00]action value=close_receipt [08:01:00]process_action close_receipt [08:01:00]cmd_close_receipt [08:01:00]MH_GetDate [08:01:00]Write to MH i2c: F0 00 00 11 2C 2C [08:01:00]Write i2c OK [08:01:00]MH_I2C_Read... [08:01:00]Read from MH i2c: F0 [08:01:00]MH_I2C_Read... [08:01:00]Read from MH i2c: F0 09 00 [08:01:00]MH_I2C_Read... [08:01:00]Read from MH i2c: F0 09 00 11 2C 00 40 A9 A4 66 90 0F 3E 66 6B [08:01:00]GetLastDocTimeStamp 1722067241 [08:01:00]current date 1722067264 [08:01:00]FM_GetShiftState [08:01:00]SAM_PROTO_GetShiftState [08:01:00]wFMCommunicate request_size=4 [08:01:00]MH_SAM_APDU [08:01:00]CAPDU: 80 13 01 00 [08:01:00]Write to MH i2c: E2 08 00 12 2C 80 13 01 00 00 00 00 00 BB [08:01:00]Write i2c OK [08:01:00]MH_I2C_Read... [08:01:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:00]Read from MH i2c: E2 [08:01:00]MH_I2C_Read... [08:01:00]Read from MH i2c: E2 0E 00 [08:01:00]MH_I2C_Read... [08:01:00]Read from MH i2c: E2 0E 00 12 2C 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 48 [08:01:00]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [08:01:00]wFMCommunicate OK [08:01:00]SAM_PROTO_GetShiftState done [08:01:00]FM_GetShiftState done [08:01:00]opened in 1722038845 [08:01:00]opened+sec_in_day 1722125245 [08:01:00]quantity*price = 50036 [08:01:00]sum+1 = 50037 [08:01:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 36 27.07.2024 08:01 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118093 ФПД: 199949580133872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T080104&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118093&fm=199949580133872&tin=02508201610067®Number=0000000000092660&sum=50000 [08:01:01]StoreToDocumentArchive [08:01:01]shift 432 fd 118093 [08:01:01]save to /storage/0432/doc_00118093 [08:01:01]save last doc name /storage/0432/doc_00118093 to /storage/kkm_last_doc_name [08:01:01]save OK [08:01:01]Clear old archive folders... [08:01:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:01:01]tlvbuf is B6F4E4D0 [08:01:01]SAM_PROTO_ClearQueue [08:01:01]wFMCommunicate request_size=4 [08:01:01]MH_SAM_APDU [08:01:01]CAPDU: 80 09 00 00 [08:01:01]Write to MH i2c: E2 08 00 1F 2C 80 09 00 00 00 00 00 00 BD [08:01:01]Write i2c OK [08:01:01]MH_I2C_Read... [08:01:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:01:01]Read from MH i2c: E2 [08:01:01]MH_I2C_Read... [08:01:01]Read from MH i2c: E2 03 00 [08:01:01]MH_I2C_Read... [08:01:01]Read from MH i2c: E2 03 00 1F 2C 00 90 00 BF [08:01:01]RAPDU: 90 00 [08:01:01]wFMCommunicate OK [08:01:01]SAM_PROTO_ClearQueue done [08:01:01]KKMCreateOFDPacket [08:01:01]OFDProtocolAddRootSTLVToBuf [08:01:01]FM_MakeSignedData [08:01:01]FM_MakeSignedData [08:01:01]SAM_PROTO_SignData [08:01:01]wFMCommunicate request_size=4 [08:01:01]MH_SAM_APDU [08:01:01]CAPDU: 80 0D 01 02 [08:01:01]Write to MH i2c: E2 08 00 20 2C 80 0D 01 02 00 00 00 00 C5 [08:01:01]Write i2c OK [08:01:01]MH_I2C_Read... [08:01:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:01:01]Read from MH i2c: E2 [08:01:01]MH_I2C_Read... [08:01:01]Read from MH i2c: E2 03 00 [08:01:01]MH_I2C_Read... [08:01:01]Read from MH i2c: E2 03 00 20 2C 00 90 00 C0 [08:01:01]RAPDU: 90 00 [08:01:01]wFMCommunicate OK [08:01:01]wFMCommunicate request_size=255 [08:01:01]MH_SAM_APDU [08:01: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 40 A9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4D CD 01 00 35 04 06 00 B5 [08:01:01]Write to MH i2c: E2 02 01 21 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 40 A9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4D CD 01 00 35 04 06 00 B5 00 00 E1 [08:01:01]Write i2c OK [08:01:01]MH_I2C_Read... [08:01:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:02]Read from MH i2c: E2 [08:01:02]MH_I2C_Read... [08:01:02]Read from MH i2c: E2 03 00 [08:01:02]MH_I2C_Read... [08:01:02]Read from MH i2c: E2 03 00 21 2C 00 90 00 C1 [08:01:02]RAPDU: 90 00 [08:01:02]wFMCommunicate OK [08:01:02]wFMCommunicate request_size=10 [08:01:02]MH_SAM_APDU [08:01:02]CAPDU: 80 0D 02 02 05 DA 63 B2 65 F0 [08:01:02]Write to MH i2c: E2 0D 00 22 2C 80 0D 02 02 05 00 DA 63 B2 65 F0 00 00 16 [08:01:02]Write i2c OK [08:01:02]MH_I2C_Read... [08:01:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:02]Read from MH i2c: E2 [08:01:02]MH_I2C_Read... [08:01:02]Read from MH i2c: E2 03 00 [08:01:02]MH_I2C_Read... [08:01:02]Read from MH i2c: E2 03 00 22 2C 00 90 00 C2 [08:01:02]RAPDU: 90 00 [08:01:02]wFMCommunicate OK [08:01:02]wFMCommunicate request_size=4 [08:01:02]MH_SAM_APDU [08:01:02]CAPDU: 80 0D 03 02 [08:01:02]Write to MH i2c: E2 08 00 23 2C 80 0D 03 02 00 00 00 00 CA [08:01:02]Write i2c OK [08:01:02]MH_I2C_Read... [08:01:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:01:02]Read from MH i2c: E2 [08:01:02]MH_I2C_Read... [08:01:02]Read from MH i2c: E2 0B 00 [08:01:02]MH_I2C_Read... [08:01:02]Read from MH i2c: E2 0B 00 23 2C 00 CE CC 7D 81 46 0C 3A 1B 90 00 0A [08:01:02]RAPDU: CE CC 7D 81 46 0C 3A 1B 90 00 [08:01:02]wFMCommunicate OK [08:01:02]SAM_PROTO_SignData done [08:01:02]FM_MakeSignedData done [08:01:02]CreateOFDProtocolMessage [08:01:02]wFMCommunicate request_size=4 [08:01:02]MH_SAM_APDU [08:01:02]CAPDU: 80 11 00 00 [08:01:02]Write to MH i2c: E2 08 00 24 2C 80 11 00 00 00 00 00 00 CA [08:01:02]Write i2c OK [08:01:02]MH_I2C_Read... [08:01:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:02]Read from MH i2c: E2 [08:01:02]MH_I2C_Read... [08:01:02]Read from MH i2c: E2 17 00 [08:01:02]MH_I2C_Read... [08:01:02]Read from MH i2c: E2 17 00 24 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 25 [08:01:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:01:02]wFMCommunicate OK [08:01:02]CreateOFDProtocolMessage done [08:01:02]OFDSenderStorePacket 118093 [08:01:02]StoreOFDPacket docnum=118093 [08:01:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 32 28 07 01 6E 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 40 A9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4D CD 01 00 35 04 06 00 B5 DA 63 B2 65 F0 CE CC 7D 81 46 0C 3A 1B [08:01:02]CheckFolder [08:01:02]dirname=/storage/ofd_packets [08:01:02]CheckFolder done [08:01:02]ProducePacketName [08:01:02]name=ofd_packets/00118093 [08:01:02]NVStorageSaveData ofd_packets/00118093 [08:01:02]File name is /storage/ofd_packets/00118093 [08:01:02]Write 301 bytes [08:01:02]NVStorageSaveData done [08:01:02]OFDSenderStorePacket done [08:01:02]KKMCreateOFDPacket done [08:01:02]NVStorageSaveData kkm_last_timestamp [08:01:02]File name is /storage/kkm_last_timestamp [08:01:02]Write 4 bytes [08:01:02]NVStorageSaveData done [08:01:02]ExternCall_PrintAddStr [08:01:02]wPrintStart [08:01:02]Write to MH i2c: 01 00 00 25 2C 51 [08:01:02]Write i2c OK [08:01:02]MH_I2C_Read... [08:01:02]Read from MH i2c: 01 [08:01:02]MH_I2C_Read... [08:01:02]Read from MH i2c: 01 07 00 [08:01:02]MH_I2C_Read... [08:01:02]Read from MH i2c: 01 07 00 25 2C 00 00 00 00 00 FF 0F 66 [08:01:02]RasterBufferAndPrint [08:01:02]line Счет N : (1)948964 [08:01:02]line ИНН: 02508201610067 [08:01:02]line Контрольно-Кассовый Чек [08:01:02]line ПРОДАЖА [08:01:02]line ТРК (МРК, ГНК) : 31 [08:01:02]line Товар: 2710124130 [08:01:02]line Аи-92-К-4 [08:01:02]line 7.380 * 67.80 [08:01:02]line = 500.36 [08:01:02]line НДС 12% НСП 1% [08:01:02]line > о реализуемом товаре [08:01:02]line ОКРУГЛЕНИЕ: -0.36 [08:01:02]line ИТОГО: 500.00 [08:01:02]line Внесено: 500.00 [08:01:02]line СДАЧА: 0.00 [08:01:02]line НСП 1% : 4.43 [08:01:02]line НДС 12% : 53.14 [08:01:02]line Наличными: 500.00 [08:01:02]line Безнал.: 0.00 [08:01:02]line Место: АЗС № 134 "Партнер Нефть" [08:01:02]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:01:02]line СНО: Общий режим [08:01:02]line Чек 36 27.07.2024 08:01 [08:01:02]line Смена: 432 ФФД: 1.0 [08:01:02]line ЗНМ: 0300000044 [08:01:02]line РНМ: 0000000000092660 [08:01:02]line Версия ККМ: 001 [08:01:02]line ФМ: 0000000000874939 [08:01:02]line ФД: 118093 [08:01:02]line ФПД: 199949580133872 [08:01:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T080104&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118093&fm=199949580133872&tin=02508201610067®Number=0000000000092660&sum=50000 [08:01:02]OFD Sender: Processing packet 118093 [packets to send 85, broken 84] [08:01:02]ProducePacketName [08:01:02]name=ofd_packets/00118093 [08:01:02]OFD Sender: To server: pG, [08:01:02]CommunicateWithHost lk.salyk.kg:30040 [08:01:02]ConnectInit lk.salyk.kg [08:01:02]written 0, free lines is 4095 [08:01:02]Connected sock=10 [08:01:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 32 28 07 01 6E 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 40 A9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4D CD 01 00 35 04 06 00 B5 DA 63 B2 65 F0 CE CC 7D 81 46 0C 3A 1B [08:01:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A4 8B 47 00 39 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4D CD 01 00 F4 03 04 00 D3 56 A4 66 B6 04 01 00 00 1F 9F DA D9 4D E3 A9 AD [08:01:02]CommunicateWithHost err = 0 [08:01:02]CheckOFDResponse [08:01:02]1017 (14) - 77093643461234 [08:01:02]1041 (16) - 0000000000874939 [08:01:02]1040 (4) - 118093 [08:01:02]1012 (4) - 27.07.2024 02:09 [08:01:02]1206 (1) - 0 [08:01:02]OFD Sender: Remove packet 118093 [08:01:02]ProducePacketName [08:01:02]name=ofd_packets/00118093 [08:01:02]NVStorageDeleteData [08:01:02]Write to MH i2c: 01 00 00 4F 2C 7B [08:01:02]Write i2c OK [08:01:02]MH_I2C_Read... [08:01:02]Read from MH i2c: 01 [08:01:02]MH_I2C_Read... [08:01:02]Read from MH i2c: 01 07 00 [08:01:02]MH_I2C_Read... [08:01:02]Read from MH i2c: 01 07 00 4F 2C 00 00 00 00 00 CA 0C 58 [08:01:02]RasterBufferAndPrint [08:01:02]line [08:01:02]line [08:01:02]line [08:01:02]line [08:01:02]line [08:01:02]written 0, free lines is 3282 [08:01:02]MH_Cut [08:01:02]Write to MH i2c: D1 01 00 56 2C 01 54 [08:01:03]Write i2c OK [08:01:03]MH_I2C_Read... [08:01:03]Read from MH i2c: D1 [08:01:03]MH_I2C_Read... [08:01:03]Read from MH i2c: D1 01 00 [08:01:03]MH_I2C_Read... [08:01:03]Read from MH i2c: D1 01 00 56 2C 00 53 [08:01:03]Write to MH i2c: 01 00 00 57 2C 83 [08:01:03]Write i2c OK [08:01:03]MH_I2C_Read... [08:01:03]OFD Sender: No OFD packet to send [08:01:03]*** Cut start [08:01:03]*** Partial cut [08:01:03]*** CUTSNS_PIN = 1 [08:01:03]*** CUTSNS_PIN = 0 [08:01:04]*** Brake cut motor [08:01:04]Read from MH i2c: 01 [08:01:04]MH_I2C_Read... [08:01:04]*** Stop cut motor [08:01:04]*** Cut end [08:01:04]Read from MH i2c: 01 07 00 [08:01:04]MH_I2C_Read... [08:01:04]Read from MH i2c: 01 07 00 57 2C 00 00 00 00 00 FF 0F 98 [08:01:04]process_action close_receipt done [08:01:04]requested_data is exist [08:01:04]produce_requested_data [08:01:04]requested_item fm.sn is exist - process it [08:01:04]wFMCommunicate request_size=4 [08:01:04]MH_SAM_APDU [08:01:04]CAPDU: 80 11 00 00 [08:01:04]Write to MH i2c: E2 08 00 58 2C 80 11 00 00 00 00 00 00 FE [08:01:04]Write i2c OK [08:01:04]MH_I2C_Read... [08:01:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:04]Read from MH i2c: E2 [08:01:04]MH_I2C_Read... [08:01:04]Read from MH i2c: E2 17 00 [08:01:04]MH_I2C_Read... [08:01:04]Read from MH i2c: E2 17 00 58 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 59 [08:01:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:01:04]wFMCommunicate OK [08:01:04]requested_item fd.num is exist - process it [08:01:04]SAM_PROTO_GetFieldsCounters [08:01:04]wFMCommunicate request_size=4 [08:01:04]MH_SAM_APDU [08:01:04]CAPDU: 80 13 00 00 [08:01:04]Write to MH i2c: E2 08 00 59 2C 80 13 00 00 00 00 00 00 01 [08:01:04]Write i2c OK [08:01:04]MH_I2C_Read... [08:01:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:01:04]Read from MH i2c: E2 [08:01:04]MH_I2C_Read... [08:01:04]Read from MH i2c: E2 62 00 [08:01:04]MH_I2C_Read... [08:01:04]Read from MH i2c: E2 62 00 59 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4D CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [08:01:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4D CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:01:04]wFMCommunicate OK [08:01:04]SAM_PROTO_GetFieldsCounters done [08:01:04]requested_item shift.num is exist - process it [08:01:04]requested_item shift.opened is exist - process it [08:01:04]req_shift_opened [08:01:04]FM_GetShiftState [08:01:04]SAM_PROTO_GetShiftState [08:01:04]wFMCommunicate request_size=4 [08:01:04]MH_SAM_APDU [08:01:04]CAPDU: 80 13 01 00 [08:01:04]Write to MH i2c: E2 08 00 5A 2C 80 13 01 00 00 00 00 00 03 [08:01:04]Write i2c OK [08:01:04]MH_I2C_Read... [08:01:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:04]Read from MH i2c: E2 [08:01:04]MH_I2C_Read... [08:01:04]Read from MH i2c: E2 0E 00 [08:01:04]MH_I2C_Read... [08:01:04]Read from MH i2c: E2 0E 00 5A 2C 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 90 [08:01:04]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [08:01:04]wFMCommunicate OK [08:01:04]SAM_PROTO_GetShiftState done [08:01:04]FM_GetShiftState done [08:01:04]req_shift_opened done [08:01:04]requested_item shift.open_date is exist - process it [08:01:04]req_shift_open_date [08:01:04]req_shift_open_date done [08:01:04]produce_requested_data done [08:01:04]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118093,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [08:01:04]process_action_free close_receipt [08:01:04]json_value_free [08:01:04]json_value_free done [08:01:04]process_json_proto returns [08:01:04]Send response to host [08:01:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118093,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [08:01:04]free response buf [08:01:04]execute_script done [08:01:04]execute_script returns [08:01:04]free content buf [08:01:04]Sock 7.Close socket [08:01:04]Sock 7.Thread stoped [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:49]accept exits with 9 [08:02:49]New connection [08:02:49]New thread 3067428196 created [08:02:49]Thread 3067284836 joined [08:02:49]Waiting for new connection... [08:02:49] Sock 9.Parse request [08:02:49]Sock 9.Check first char [08:02:49]Sock 9.First char is OK [08:02:49]request: POST /json_proto HTTP/1.0 [08:02:49]Method: POST [08:02:49]URL: /json_proto [08:02:49]Method is POST - this is cgi request [08:02:49]url: /json_proto [08:02:49]query_string will be loaded in cgi processing [08:02:49]execute_cgi json_proto POST (null) [08:02:49]execute_cgi path=json_proto method=POST [08:02:49]POST find Content-Length [08:02:49]Host: 172.17.45.7:8080 [08:02:49]Content-Length: 819 [08:02:49]Content-Type: application/json [08:02:49] [08:02:49]POST finish read [08:02:49]Found Content-Length = 819 [08:02:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.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", "total" : 2500.00, "payments": [ { "type": 1, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:02:49]execute_script... [08:02: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)948966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.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", "total" : 2500.00, "payments": [ { "type": 1, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:02:49]POST & json_proto [08:02:49]process_json_proto [08:02:49]json parsed OK: [08:02:49]protocol is kg_v1.0 [08:02:49]action value=close_receipt [08:02:49]process_action close_receipt [08:02:49]cmd_close_receipt [08:02:49]MH_GetDate [08:02:49]Write to MH i2c: F0 00 00 5B 2C 76 [08:02:49]Write i2c OK [08:02:49]MH_I2C_Read... [08:02:49]Read from MH i2c: F0 [08:02:49]MH_I2C_Read... [08:02:49]Read from MH i2c: F0 09 00 [08:02:49]MH_I2C_Read... [08:02:49]Read from MH i2c: F0 09 00 5B 2C 00 AD A9 A4 66 90 0F 3E 66 22 [08:02:49]GetLastDocTimeStamp 1722067264 [08:02:49]current date 1722067373 [08:02:49]FM_GetShiftState [08:02:49]SAM_PROTO_GetShiftState [08:02:49]wFMCommunicate request_size=4 [08:02:49]MH_SAM_APDU [08:02:49]CAPDU: 80 13 01 00 [08:02:49]Write to MH i2c: E2 08 00 5C 2C 80 13 01 00 00 00 00 00 05 [08:02:49]Write i2c OK [08:02:49]MH_I2C_Read... [08:02:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:49]Read from MH i2c: E2 [08:02:49]MH_I2C_Read... [08:02:49]Read from MH i2c: E2 0E 00 [08:02:49]MH_I2C_Read... [08:02:49]Read from MH i2c: E2 0E 00 5C 2C 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 92 [08:02:49]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [08:02:49]wFMCommunicate OK [08:02:49]SAM_PROTO_GetShiftState done [08:02:49]FM_GetShiftState done [08:02:49]opened in 1722038845 [08:02:49]opened+sec_in_day 1722125245 [08:02:49]quantity*price = 250012 [08:02:49]sum+1 = 250013 [08:02:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 0.00 Безнал.: 2500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 37 27.07.2024 08:02 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118094 ФПД: 235852254851504 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T080253&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118094&fm=235852254851504&tin=02508201610067®Number=0000000000092660&sum=250000 [08:02:50]StoreToDocumentArchive [08:02:50]shift 432 fd 118094 [08:02:50]save to /storage/0432/doc_00118094 [08:02:50]save last doc name /storage/0432/doc_00118094 to /storage/kkm_last_doc_name [08:02:50]save OK [08:02:50]Clear old archive folders... [08:02:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:02:50]tlvbuf is 006E33C0 [08:02:50]SAM_PROTO_ClearQueue [08:02:50]wFMCommunicate request_size=4 [08:02:50]MH_SAM_APDU [08:02:50]CAPDU: 80 09 00 00 [08:02:50]Write to MH i2c: E2 08 00 69 2C 80 09 00 00 00 00 00 00 07 [08:02:50]Write i2c OK [08:02:50]MH_I2C_Read... [08:02:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:02:50]Read from MH i2c: E2 [08:02:50]MH_I2C_Read... [08:02:50]Read from MH i2c: E2 03 00 [08:02:50]MH_I2C_Read... [08:02:50]Read from MH i2c: E2 03 00 69 2C 00 90 00 09 [08:02:50]RAPDU: 90 00 [08:02:50]wFMCommunicate OK [08:02:50]SAM_PROTO_ClearQueue done [08:02:50]KKMCreateOFDPacket [08:02:50]OFDProtocolAddRootSTLVToBuf [08:02:50]FM_MakeSignedData [08:02:50]FM_MakeSignedData [08:02:50]SAM_PROTO_SignData [08:02:50]wFMCommunicate request_size=4 [08:02:50]MH_SAM_APDU [08:02:50]CAPDU: 80 0D 01 02 [08:02:50]Write to MH i2c: E2 08 00 6A 2C 80 0D 01 02 00 00 00 00 0F [08:02:50]Write i2c OK [08:02:50]MH_I2C_Read... [08:02:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:02:50]Read from MH i2c: E2 [08:02:50]MH_I2C_Read... [08:02:50]Read from MH i2c: E2 03 00 [08:02:50]MH_I2C_Read... [08:02:50]Read from MH i2c: E2 03 00 6A 2C 00 90 00 0A [08:02:50]RAPDU: 90 00 [08:02:50]wFMCommunicate OK [08:02:50]wFMCommunicate request_size=255 [08:02:50]MH_SAM_APDU [08:02:50]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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 AD A9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4E CD 01 00 35 04 06 00 D6 81 A1 DE [08:02:50]Write to MH i2c: E2 02 01 6B 2C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 AD A9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4E CD 01 00 35 04 06 00 D6 81 A1 DE 00 00 28 [08:02:50]Write i2c OK [08:02:50]MH_I2C_Read... [08:02:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:50]Read from MH i2c: E2 [08:02:50]MH_I2C_Read... [08:02:50]Read from MH i2c: E2 03 00 [08:02:50]MH_I2C_Read... [08:02:50]Read from MH i2c: E2 03 00 6B 2C 00 90 00 0B [08:02:50]RAPDU: 90 00 [08:02:50]wFMCommunicate OK [08:02:50]wFMCommunicate request_size=7 [08:02:50]MH_SAM_APDU [08:02:50]CAPDU: 80 0D 02 02 02 B1 B0 [08:02:50]Write to MH i2c: E2 0A 00 6C 2C 80 0D 02 02 02 00 B1 B0 00 00 77 [08:02:50]Write i2c OK [08:02:50]MH_I2C_Read... [08:02:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:50]Read from MH i2c: E2 [08:02:50]MH_I2C_Read... [08:02:50]Read from MH i2c: E2 03 00 [08:02:50]MH_I2C_Read... [08:02:50]Read from MH i2c: E2 03 00 6C 2C 00 90 00 0C [08:02:50]RAPDU: 90 00 [08:02:50]wFMCommunicate OK [08:02:50]wFMCommunicate request_size=4 [08:02:50]MH_SAM_APDU [08:02:50]CAPDU: 80 0D 03 02 [08:02:50]Write to MH i2c: E2 08 00 6D 2C 80 0D 03 02 00 00 00 00 14 [08:02:50]Write i2c OK [08:02:50]MH_I2C_Read... [08:02:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:02:50]Read from MH i2c: E2 [08:02:50]MH_I2C_Read... [08:02:50]Read from MH i2c: E2 0B 00 [08:02:50]MH_I2C_Read... [08:02:50]Read from MH i2c: E2 0B 00 6D 2C 00 35 E7 6D 83 D5 3A 66 E8 90 00 7E [08:02:50]RAPDU: 35 E7 6D 83 D5 3A 66 E8 90 00 [08:02:50]wFMCommunicate OK [08:02:50]SAM_PROTO_SignData done [08:02:50]FM_MakeSignedData done [08:02:50]CreateOFDProtocolMessage [08:02:50]wFMCommunicate request_size=4 [08:02:50]MH_SAM_APDU [08:02:50]CAPDU: 80 11 00 00 [08:02:50]Write to MH i2c: E2 08 00 6E 2C 80 11 00 00 00 00 00 00 14 [08:02:50]Write i2c OK [08:02:50]MH_I2C_Read... [08:02:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:50]Read from MH i2c: E2 [08:02:50]MH_I2C_Read... [08:02:50]Read from MH i2c: E2 17 00 [08:02:50]MH_I2C_Read... [08:02:50]Read from MH i2c: E2 17 00 6E 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6F [08:02:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:02:50]wFMCommunicate OK [08:02:50]CreateOFDProtocolMessage done [08:02:50]OFDSenderStorePacket 118094 [08:02:50]StoreOFDPacket docnum=118094 [08:02:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 AA AB 04 01 81 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 AD A9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4E CD 01 00 35 04 06 00 D6 81 A1 DE B1 B0 35 E7 6D 83 D5 3A 66 E8 [08:02:50]CheckFolder [08:02:50]dirname=/storage/ofd_packets [08:02:50]CheckFolder done [08:02:50]ProducePacketName [08:02:50]name=ofd_packets/00118094 [08:02:50]NVStorageSaveData ofd_packets/00118094 [08:02:50]File name is /storage/ofd_packets/00118094 [08:02:50]Write 298 bytes [08:02:50]NVStorageSaveData done [08:02:50]OFDSenderStorePacket done [08:02:50]KKMCreateOFDPacket done [08:02:50]NVStorageSaveData kkm_last_timestamp [08:02:50]File name is /storage/kkm_last_timestamp [08:02:50]Write 4 bytes [08:02:50]NVStorageSaveData done [08:02:50]ExternCall_PrintAddStr [08:02:50]wPrintStart [08:02:50]Write to MH i2c: 01 00 00 6F 2C 9B [08:02:51]Write i2c OK [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: 01 [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: 01 07 00 [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: 01 07 00 6F 2C 00 00 00 00 00 FF 0F B0 [08:02:51]RasterBufferAndPrint [08:02:51]line Счет N : (1)948966 [08:02:51]line ИНН: 02508201610067 [08:02:51]line Контрольно-Кассовый Чек [08:02:51]line ПРОДАЖА [08:02:51]line ТРК (МРК, ГНК) : 54 [08:02:51]line Товар: 2710194800 [08:02:51]line ДТ-К-5 [08:02:51]line 32.810 * 76.20 [08:02:51]line = 2500.12 [08:02:51]line НДС 12% НСП 1% [08:02:51]line > о реализуемом товаре [08:02:51]line ОКРУГЛЕНИЕ: -0.12 [08:02:51]line ИТОГО: 2500.00 [08:02:51]line НСП 1% : 22.12 [08:02:51]line НДС 12% : 265.50 [08:02:51]line Наличными: 0.00 [08:02:51]line Безнал.: 2500.00 [08:02:51]line Место: АЗС № 134 "Партнер Нефть" [08:02:51]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:02:51]line СНО: Общий режим [08:02:51]line Чек 37 27.07.2024 08:02 [08:02:51]line Смена: 432 ФФД: 1.0 [08:02:51]line ЗНМ: 0300000044 [08:02:51]line РНМ: 0000000000092660 [08:02:51]line Версия ККМ: 001 [08:02:51]line Платежная система: O! деньги [08:02:51]line ФМ: 0000000000874939 [08:02:51]line ФД: 118094 [08:02:51]line ФПД: 235852254851504 [08:02:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T080253&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118094&fm=235852254851504&tin=02508201610067®Number=0000000000092660&sum=250000 [08:02:51]OFD Sender: Processing packet 118094 [packets to send 85, broken 84] [08:02:51]ProducePacketName [08:02:51]name=ofd_packets/00118094 [08:02:51]OFD Sender: To server: pG, [08:02:51]CommunicateWithHost lk.salyk.kg:30040 [08:02:51]ConnectInit lk.salyk.kg [08:02:51]written 0, free lines is 4095 [08:02:51]Connected sock=10 [08:02:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 AA AB 04 01 81 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 AD A9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4E CD 01 00 35 04 06 00 D6 81 A1 DE B1 B0 35 E7 6D 83 D5 3A 66 E8 [08:02:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B3 A6 47 00 80 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4E CD 01 00 F4 03 04 00 40 57 A4 66 B6 04 01 00 00 E7 2A 2B B4 AA 43 B0 43 [08:02:51]CommunicateWithHost err = 0 [08:02:51]CheckOFDResponse [08:02:51]1017 (14) - 77093643461234 [08:02:51]1041 (16) - 0000000000874939 [08:02:51]1040 (4) - 118094 [08:02:51]1012 (4) - 27.07.2024 02:11 [08:02:51]1206 (1) - 0 [08:02:51]OFD Sender: Remove packet 118094 [08:02:51]ProducePacketName [08:02:51]name=ofd_packets/00118094 [08:02:51]NVStorageDeleteData [08:02:51]Write to MH i2c: 01 00 00 99 2C C5 [08:02:51]Write i2c OK [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: 01 [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: 01 07 00 [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: 01 07 00 99 2C 00 00 00 00 00 CA 0C A2 [08:02:51]RasterBufferAndPrint [08:02:51]line [08:02:51]line [08:02:51]line [08:02:51]line [08:02:51]line [08:02:51]written 0, free lines is 3280 [08:02:51]MH_Cut [08:02:51]Write to MH i2c: D1 01 00 A0 2C 01 9E [08:02:51]Write i2c OK [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: D1 [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: D1 01 00 [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: D1 01 00 A0 2C 00 9D [08:02:51]Write to MH i2c: 01 00 00 A1 2C CD [08:02:51]Write i2c OK [08:02:51]MH_I2C_Read... [08:02:52]OFD Sender: No OFD packet to send [08:02:52]*** Cut start [08:02:52]*** Partial cut [08:02:52]*** CUTSNS_PIN = 1 [08:02:52]*** CUTSNS_PIN = 0 [08:02:52]*** Brake cut motor [08:02:53]Read from MH i2c: 01 [08:02:53]MH_I2C_Read... [08:02:53]*** Stop cut motor [08:02:53]*** Cut end [08:02:53]Read from MH i2c: 01 07 00 [08:02:53]MH_I2C_Read... [08:02:53]Read from MH i2c: 01 07 00 A1 2C 00 00 00 00 00 FF 0F E2 [08:02:53]process_action close_receipt done [08:02:53]requested_data is exist [08:02:53]produce_requested_data [08:02:53]requested_item fm.sn is exist - process it [08:02:53]wFMCommunicate request_size=4 [08:02:53]MH_SAM_APDU [08:02:53]CAPDU: 80 11 00 00 [08:02:53]Write to MH i2c: E2 08 00 A2 2C 80 11 00 00 00 00 00 00 48 [08:02:53]Write i2c OK [08:02:53]MH_I2C_Read... [08:02:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:53]Read from MH i2c: E2 [08:02:53]MH_I2C_Read... [08:02:53]Read from MH i2c: E2 17 00 [08:02:53]MH_I2C_Read... [08:02:53]Read from MH i2c: E2 17 00 A2 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A3 [08:02:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:02:53]wFMCommunicate OK [08:02:53]requested_item fd.num is exist - process it [08:02:53]SAM_PROTO_GetFieldsCounters [08:02:53]wFMCommunicate request_size=4 [08:02:53]MH_SAM_APDU [08:02:53]CAPDU: 80 13 00 00 [08:02:53]Write to MH i2c: E2 08 00 A3 2C 80 13 00 00 00 00 00 00 4B [08:02:53]Write i2c OK [08:02:53]MH_I2C_Read... [08:02:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:02:53]Read from MH i2c: E2 [08:02:53]MH_I2C_Read... [08:02:53]Read from MH i2c: E2 62 00 [08:02:53]MH_I2C_Read... [08:02:53]Read from MH i2c: E2 62 00 A3 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4E CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [08:02:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4E CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:02:53]wFMCommunicate OK [08:02:53]SAM_PROTO_GetFieldsCounters done [08:02:53]requested_item shift.num is exist - process it [08:02:53]requested_item shift.opened is exist - process it [08:02:53]req_shift_opened [08:02:53]FM_GetShiftState [08:02:53]SAM_PROTO_GetShiftState [08:02:53]wFMCommunicate request_size=4 [08:02:53]MH_SAM_APDU [08:02:53]CAPDU: 80 13 01 00 [08:02:53]Write to MH i2c: E2 08 00 A4 2C 80 13 01 00 00 00 00 00 4D [08:02:53]Write i2c OK [08:02:53]MH_I2C_Read... [08:02:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:53]Read from MH i2c: E2 [08:02:53]MH_I2C_Read... [08:02:53]Read from MH i2c: E2 0E 00 [08:02:53]MH_I2C_Read... [08:02:53]Read from MH i2c: E2 0E 00 A4 2C 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 DA [08:02:53]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [08:02:53]wFMCommunicate OK [08:02:53]SAM_PROTO_GetShiftState done [08:02:53]FM_GetShiftState done [08:02:53]req_shift_opened done [08:02:53]requested_item shift.open_date is exist - process it [08:02:53]req_shift_open_date [08:02:53]req_shift_open_date done [08:02:53]produce_requested_data done [08:02:53]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118094,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [08:02:53]process_action_free close_receipt [08:02:53]json_value_free [08:02:53]json_value_free done [08:02:53]process_json_proto returns [08:02:53]Send response to host [08:02:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118094,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [08:02:53]free response buf [08:02:53]execute_script done [08:02:53]execute_script returns [08:02:53]free content buf [08:02:53]Sock 9.Close socket [08:02:53]Sock 9.Thread stoped [08:02:57]OFD Sender: No OFD packet to send [08:03:02]OFD Sender: No OFD packet to send [08:03:07]OFD Sender: No OFD packet to send [08:03:12]OFD Sender: No OFD packet to send [08:03:14]accept exits with 7 [08:03:14]New connection [08:03:14]New thread 3067284836 created [08:03:14]Thread 3067428196 joined [08:03:14]Waiting for new connection... [08:03:14] Sock 7.Parse request [08:03:14]Sock 7.Check first char [08:03:14]Sock 7.First char is OK [08:03:14]request: POST /json_proto HTTP/1.0 [08:03:14]Method: POST [08:03:14]URL: /json_proto [08:03:14]Method is POST - this is cgi request [08:03:14]url: /json_proto [08:03:14]query_string will be loaded in cgi processing [08:03:14]execute_cgi json_proto POST (null) [08:03:14]execute_cgi path=json_proto method=POST [08:03:14]POST find Content-Length [08:03:14]Host: 172.17.45.7:8080 [08:03:14]Content-Length: 819 [08:03:14]Content-Type: application/json [08:03:14] [08:03:14]POST finish read [08:03:14]Found Content-Length = 819 [08:03:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:14]execute_script... [08:03:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:14]POST & json_proto [08:03:14]process_json_proto [08:03:14]json parsed OK: [08:03:14]protocol is kg_v1.0 [08:03:14]action value=close_receipt [08:03:14]process_action close_receipt [08:03:14]cmd_close_receipt [08:03:14]MH_GetDate [08:03:14]Write to MH i2c: F0 00 00 A5 2C C0 [08:03:14]Write i2c OK [08:03:14]MH_I2C_Read... [08:03:14]Read from MH i2c: F0 [08:03:14]MH_I2C_Read... [08:03:14]Read from MH i2c: F0 09 00 [08:03:14]MH_I2C_Read... [08:03:14]Read from MH i2c: F0 09 00 A5 2C 00 C6 A9 A4 66 90 0F 3E 66 85 [08:03:14]GetLastDocTimeStamp 1722067373 [08:03:14]current date 1722067398 [08:03:14]FM_GetShiftState [08:03:14]SAM_PROTO_GetShiftState [08:03:14]wFMCommunicate request_size=4 [08:03:14]MH_SAM_APDU [08:03:14]CAPDU: 80 13 01 00 [08:03:14]Write to MH i2c: E2 08 00 A6 2C 80 13 01 00 00 00 00 00 4F [08:03:14]Write i2c OK [08:03:14]MH_I2C_Read... [08:03:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:14]Read from MH i2c: E2 [08:03:14]MH_I2C_Read... [08:03:14]Read from MH i2c: E2 0E 00 [08:03:14]MH_I2C_Read... [08:03:14]Read from MH i2c: E2 0E 00 A6 2C 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 DC [08:03:14]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [08:03:14]wFMCommunicate OK [08:03:14]SAM_PROTO_GetShiftState done [08:03:14]FM_GetShiftState done [08:03:14]opened in 1722038845 [08:03:14]opened+sec_in_day 1722125245 [08:03:14]quantity*price = 300075 [08:03:14]sum+1 = 300077 [08:03:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 38 27.07.2024 08:03 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118095 ФПД: 78668865737675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T080318&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118095&fm=78668865737675&tin=02508201610067®Number=0000000000092660&sum=300000 [08:03:15]StoreToDocumentArchive [08:03:15]shift 432 fd 118095 [08:03:15]save to /storage/0432/doc_00118095 [08:03:15]save last doc name /storage/0432/doc_00118095 to /storage/kkm_last_doc_name [08:03:15]save OK [08:03:15]Clear old archive folders... [08:03:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:03:15]tlvbuf is 00710D70 [08:03:15]SAM_PROTO_ClearQueue [08:03:15]wFMCommunicate request_size=4 [08:03:15]MH_SAM_APDU [08:03:15]CAPDU: 80 09 00 00 [08:03:15]Write to MH i2c: E2 08 00 B3 2C 80 09 00 00 00 00 00 00 51 [08:03:15]Write i2c OK [08:03:15]MH_I2C_Read... [08:03:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:03:16]Read from MH i2c: E2 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: E2 03 00 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: E2 03 00 B3 2C 00 90 00 53 [08:03:16]RAPDU: 90 00 [08:03:16]wFMCommunicate OK [08:03:16]SAM_PROTO_ClearQueue done [08:03:16]KKMCreateOFDPacket [08:03:16]OFDProtocolAddRootSTLVToBuf [08:03:16]FM_MakeSignedData [08:03:16]FM_MakeSignedData [08:03:16]SAM_PROTO_SignData [08:03:16]wFMCommunicate request_size=4 [08:03:16]MH_SAM_APDU [08:03:16]CAPDU: 80 0D 01 02 [08:03:16]Write to MH i2c: E2 08 00 B4 2C 80 0D 01 02 00 00 00 00 59 [08:03:16]Write i2c OK [08:03:16]MH_I2C_Read... [08:03:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:03:16]Read from MH i2c: E2 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: E2 03 00 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: E2 03 00 B4 2C 00 90 00 54 [08:03:16]RAPDU: 90 00 [08:03:16]wFMCommunicate OK [08:03:16]wFMCommunicate request_size=255 [08:03:16]MH_SAM_APDU [08:03:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 C6 A9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4F CD 01 00 35 04 06 00 47 8C 85 CC [08:03:16]Write to MH i2c: E2 02 01 B5 2C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 C6 A9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4F CD 01 00 35 04 06 00 47 8C 85 CC 00 00 B1 [08:03:16]Write i2c OK [08:03:16]MH_I2C_Read... [08:03:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:16]Read from MH i2c: E2 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: E2 03 00 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: E2 03 00 B5 2C 00 90 00 55 [08:03:16]RAPDU: 90 00 [08:03:16]wFMCommunicate OK [08:03:16]wFMCommunicate request_size=7 [08:03:16]MH_SAM_APDU [08:03:16]CAPDU: 80 0D 02 02 02 13 CB [08:03:16]Write to MH i2c: E2 0A 00 B6 2C 80 0D 02 02 02 00 13 CB 00 00 3E [08:03:16]Write i2c OK [08:03:16]MH_I2C_Read... [08:03:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:16]Read from MH i2c: E2 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: E2 03 00 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: E2 03 00 B6 2C 00 90 00 56 [08:03:16]RAPDU: 90 00 [08:03:16]wFMCommunicate OK [08:03:16]wFMCommunicate request_size=4 [08:03:16]MH_SAM_APDU [08:03:16]CAPDU: 80 0D 03 02 [08:03:16]Write to MH i2c: E2 08 00 B7 2C 80 0D 03 02 00 00 00 00 5E [08:03:16]Write i2c OK [08:03:16]MH_I2C_Read... [08:03:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:03:16]Read from MH i2c: E2 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: E2 0B 00 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: E2 0B 00 B7 2C 00 59 BC 7A 15 69 08 A1 97 90 00 AC [08:03:16]RAPDU: 59 BC 7A 15 69 08 A1 97 90 00 [08:03:16]wFMCommunicate OK [08:03:16]SAM_PROTO_SignData done [08:03:16]FM_MakeSignedData done [08:03:16]CreateOFDProtocolMessage [08:03:16]wFMCommunicate request_size=4 [08:03:16]MH_SAM_APDU [08:03:16]CAPDU: 80 11 00 00 [08:03:16]Write to MH i2c: E2 08 00 B8 2C 80 11 00 00 00 00 00 00 5E [08:03:16]Write i2c OK [08:03:16]MH_I2C_Read... [08:03:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:16]Read from MH i2c: E2 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: E2 17 00 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: E2 17 00 B8 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B9 [08:03:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:03:16]wFMCommunicate OK [08:03:16]CreateOFDProtocolMessage done [08:03:16]OFDSenderStorePacket 118095 [08:03:16]StoreOFDPacket docnum=118095 [08:03:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 04 ED 04 01 66 A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 C6 A9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4F CD 01 00 35 04 06 00 47 8C 85 CC 13 CB 59 BC 7A 15 69 08 A1 97 [08:03:16]CheckFolder [08:03:16]dirname=/storage/ofd_packets [08:03:16]CheckFolder done [08:03:16]ProducePacketName [08:03:16]name=ofd_packets/00118095 [08:03:16]NVStorageSaveData ofd_packets/00118095 [08:03:16]File name is /storage/ofd_packets/00118095 [08:03:16]Write 298 bytes [08:03:16]NVStorageSaveData done [08:03:16]OFDSenderStorePacket done [08:03:16]KKMCreateOFDPacket done [08:03:16]NVStorageSaveData kkm_last_timestamp [08:03:16]File name is /storage/kkm_last_timestamp [08:03:16]Write 4 bytes [08:03:16]NVStorageSaveData done [08:03:16]ExternCall_PrintAddStr [08:03:16]wPrintStart [08:03:16]Write to MH i2c: 01 00 00 B9 2C E5 [08:03:16]Write i2c OK [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: 01 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: 01 07 00 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: 01 07 00 B9 2C 00 00 00 00 00 FF 0F FA [08:03:16]RasterBufferAndPrint [08:03:16]line Счет N : (1)948965 [08:03:16]line ИНН: 02508201610067 [08:03:16]line Контрольно-Кассовый Чек [08:03:16]line ПРОДАЖА [08:03:16]line ТРК (МРК, ГНК) : 21 [08:03:16]line Товар: 2710194800 [08:03:16]line ДТ-К-5 [08:03:16]line 39.380 * 76.20 [08:03:16]line = 3000.76 [08:03:16]line НДС 12% НСП 1% [08:03:16]line > о реализуемом товаре [08:03:16]line ОКРУГЛЕНИЕ: -0.76 [08:03:16]line ИТОГО: 3000.00 [08:03:16]line НСП 1% : 26.55 [08:03:16]line НДС 12% : 318.66 [08:03:16]line Наличными: 0.00 [08:03:16]line Безнал.: 3000.00 [08:03:16]line Место: АЗС № 134 "Партнер Нефть" [08:03:16]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:03:16]line СНО: Общий режим [08:03:16]line Чек 38 27.07.2024 08:03 [08:03:16]line Смена: 432 ФФД: 1.0 [08:03:16]line ЗНМ: 0300000044 [08:03:16]line РНМ: 0000000000092660 [08:03:16]line Версия ККМ: 001 [08:03:16]line Платежная система: O! деньги [08:03:16]line ФМ: 0000000000874939 [08:03:16]line ФД: 118095 [08:03:16]line ФПД: 78668865737675 [08:03:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T080318&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118095&fm=78668865737675&tin=02508201610067®Number=0000000000092660&sum=300000 [08:03:16]OFD Sender: Processing packet 118095 [packets to send 85, broken 84] [08:03:16]ProducePacketName [08:03:16]name=ofd_packets/00118095 [08:03:16]OFD Sender: To server: pG, [08:03:16]CommunicateWithHost lk.salyk.kg:30040 [08:03:16]ConnectInit lk.salyk.kg [08:03:16]written 0, free lines is 4095 [08:03:16]Connected sock=10 [08:03:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 04 ED 04 01 66 A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 C6 A9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4F CD 01 00 35 04 06 00 47 8C 85 CC 13 CB 59 BC 7A 15 69 08 A1 97 [08:03:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 48 D6 47 00 86 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 34 39 33 39 10 04 04 00 4F CD 01 00 F4 03 04 00 5A 57 A4 66 B6 04 01 00 00 26 EF F2 0F CE C5 2A 5B [08:03:17]CommunicateWithHost err = 0 [08:03:17]CheckOFDResponse [08:03:17]1017 (14) - 77093643461234 [08:03:17]1041 (16) - 0000000000874939 [08:03:17]1040 (4) - 118095 [08:03:17]1012 (4) - 27.07.2024 02:11 [08:03:17]1206 (1) - 0 [08:03:17]OFD Sender: Remove packet 118095 [08:03:17]ProducePacketName [08:03:17]name=ofd_packets/00118095 [08:03:17]NVStorageDeleteData [08:03:17]Write to MH i2c: 01 00 00 E3 2C 0F [08:03:17]Write i2c OK [08:03:17]MH_I2C_Read... [08:03:17]Read from MH i2c: 01 [08:03:17]MH_I2C_Read... [08:03:17]Read from MH i2c: 01 07 00 [08:03:17]MH_I2C_Read... [08:03:17]Read from MH i2c: 01 07 00 E3 2C 00 00 00 00 00 DA 0C FC [08:03:17]RasterBufferAndPrint [08:03:17]line [08:03:17]line [08:03:17]line [08:03:17]line [08:03:17]line [08:03:17]written 0, free lines is 3297 [08:03:17]MH_Cut [08:03:17]Write to MH i2c: D1 01 00 EA 2C 01 E8 [08:03:17]Write i2c OK [08:03:17]MH_I2C_Read... [08:03:17]Read from MH i2c: D1 [08:03:17]MH_I2C_Read... [08:03:17]Read from MH i2c: D1 01 00 [08:03:17]MH_I2C_Read... [08:03:17]Read from MH i2c: D1 01 00 EA 2C 00 E7 [08:03:17]Write to MH i2c: 01 00 00 EB 2C 17 [08:03:17]Write i2c OK [08:03:17]MH_I2C_Read... [08:03:17]OFD Sender: No OFD packet to send [08:03:18]*** Cut start [08:03:18]*** Partial cut [08:03:18]*** CUTSNS_PIN = 1 [08:03:18]*** CUTSNS_PIN = 0 [08:03:18]*** Brake cut motor [08:03:18]Read from MH i2c: 01 [08:03:18]MH_I2C_Read... [08:03:18]*** Stop cut motor [08:03:18]*** Cut end [08:03:18]Read from MH i2c: 01 07 00 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: 01 07 00 EB 2C 00 00 00 00 00 FF 0F 2C [08:03:18]process_action close_receipt done [08:03:18]requested_data is exist [08:03:18]produce_requested_data [08:03:18]requested_item fm.sn is exist - process it [08:03:18]wFMCommunicate request_size=4 [08:03:18]MH_SAM_APDU [08:03:18]CAPDU: 80 11 00 00 [08:03:18]Write to MH i2c: E2 08 00 EC 2C 80 11 00 00 00 00 00 00 92 [08:03:18]Write i2c OK [08:03:18]MH_I2C_Read... [08:03:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:18]Read from MH i2c: E2 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: E2 17 00 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: E2 17 00 EC 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 ED [08:03:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:03:18]wFMCommunicate OK [08:03:18]requested_item fd.num is exist - process it [08:03:18]SAM_PROTO_GetFieldsCounters [08:03:18]wFMCommunicate request_size=4 [08:03:18]MH_SAM_APDU [08:03:18]CAPDU: 80 13 00 00 [08:03:18]Write to MH i2c: E2 08 00 ED 2C 80 13 00 00 00 00 00 00 95 [08:03:18]Write i2c OK [08:03:18]MH_I2C_Read... [08:03:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:03:18]Read from MH i2c: E2 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: E2 62 00 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: E2 62 00 ED 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4F CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [08:03:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4F CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:03:18]wFMCommunicate OK [08:03:18]SAM_PROTO_GetFieldsCounters done [08:03:18]requested_item shift.num is exist - process it [08:03:18]requested_item shift.opened is exist - process it [08:03:18]req_shift_opened [08:03:18]FM_GetShiftState [08:03:18]SAM_PROTO_GetShiftState [08:03:18]wFMCommunicate request_size=4 [08:03:18]MH_SAM_APDU [08:03:18]CAPDU: 80 13 01 00 [08:03:18]Write to MH i2c: E2 08 00 EE 2C 80 13 01 00 00 00 00 00 97 [08:03:18]Write i2c OK [08:03:18]MH_I2C_Read... [08:03:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:18]Read from MH i2c: E2 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: E2 0E 00 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: E2 0E 00 EE 2C 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 24 [08:03:18]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [08:03:18]wFMCommunicate OK [08:03:18]SAM_PROTO_GetShiftState done [08:03:18]FM_GetShiftState done [08:03:18]req_shift_opened done [08:03:18]requested_item shift.open_date is exist - process it [08:03:18]req_shift_open_date [08:03:18]req_shift_open_date done [08:03:18]produce_requested_data done [08:03:18]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118095,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [08:03:18]process_action_free close_receipt [08:03:18]json_value_free [08:03:18]json_value_free done [08:03:18]process_json_proto returns [08:03:18]Send response to host [08:03:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118095,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [08:03:18]free response buf [08:03:18]execute_script done [08:03:18]execute_script returns [08:03:18]free content buf [08:03:18]Sock 7.Close socket [08:03:18]Sock 7.Thread stoped [08:03:22]OFD Sender: No OFD packet to send [08:03:27]OFD Sender: No OFD packet to send [08:03:32]OFD Sender: No OFD packet to send [08:03:37]OFD Sender: No OFD packet to send [08:03:42]OFD Sender: No OFD packet to send [08:03:47]OFD Sender: No OFD packet to send [08:03:52]OFD Sender: No OFD packet to send [08:03:57]OFD Sender: No OFD packet to send [08:04:02]OFD Sender: No OFD packet to send [08:04:07]OFD Sender: No OFD packet to send [08:04:12]OFD Sender: No OFD packet to send [08:04:17]OFD Sender: No OFD packet to send [08:04:22]OFD Sender: No OFD packet to send [08:04:27]OFD Sender: No OFD packet to send [08:04:32]OFD Sender: No OFD packet to send [08:04:37]OFD Sender: No OFD packet to send [08:04:42]OFD Sender: No OFD packet to send [08:04:47]OFD Sender: No OFD packet to send [08:04:52]OFD Sender: No OFD packet to send [08:04:57]OFD Sender: No OFD packet to send [08:05:02]OFD Sender: No OFD packet to send [08:05:07]OFD Sender: No OFD packet to send [08:05:12]OFD Sender: No OFD packet to send [08:05:17]OFD Sender: No OFD packet to send [08:05:22]OFD Sender: No OFD packet to send [08:05:27]OFD Sender: No OFD packet to send [08:05:32]OFD Sender: No OFD packet to send [08:05:37]OFD Sender: No OFD packet to send [08:05:42]OFD Sender: No OFD packet to send [08:05:47]OFD Sender: No OFD packet to send [08:05:52]OFD Sender: No OFD packet to send [08:05:57]OFD Sender: No OFD packet to send [08:06:02]OFD Sender: No OFD packet to send [08:06:07]OFD Sender: No OFD packet to send [08:06:12]OFD Sender: No OFD packet to send [08:06:17]OFD Sender: No OFD packet to send [08:06:22]OFD Sender: No OFD packet to send [08:06:27]OFD Sender: No OFD packet to send [08:06:32]OFD Sender: No OFD packet to send [08:06:37]OFD Sender: No OFD packet to send [08:06:42]OFD Sender: No OFD packet to send [08:06:47]OFD Sender: No OFD packet to send [08:06:52]OFD Sender: No OFD packet to send [08:06:54]accept exits with 9 [08:06:54]New connection [08:06:54]New thread 3067428196 created [08:06:54]Thread 3067284836 joined [08:06:54]Waiting for new connection... [08:06:54] Sock 9.Parse request [08:06:54]Sock 9.Check first char [08:06:54]Sock 9.First char is OK [08:06:54]request: POST /json_proto HTTP/1.0 [08:06:54]Method: POST [08:06:54]URL: /json_proto [08:06:54]Method is POST - this is cgi request [08:06:54]url: /json_proto [08:06:54]query_string will be loaded in cgi processing [08:06:54]execute_cgi json_proto POST (null) [08:06:54]execute_cgi path=json_proto method=POST [08:06:54]POST find Content-Length [08:06:54]Host: 172.17.45.7:8080 [08:06:54]Content-Length: 819 [08:06:54]Content-Type: application/json [08:06:54] [08:06:54]POST finish read [08:06:54]Found Content-Length = 819 [08:06:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:54]execute_script... [08:06: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)948967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:54]POST & json_proto [08:06:54]process_json_proto [08:06:54]json parsed OK: [08:06:54]protocol is kg_v1.0 [08:06:54]action value=close_receipt [08:06:54]process_action close_receipt [08:06:54]cmd_close_receipt [08:06:54]MH_GetDate [08:06:54]Write to MH i2c: F0 00 00 EF 2C 0A [08:06:54]Write i2c OK [08:06:54]MH_I2C_Read... [08:06:54]Read from MH i2c: F0 [08:06:54]MH_I2C_Read... [08:06:54]Read from MH i2c: F0 09 00 [08:06:54]MH_I2C_Read... [08:06:54]Read from MH i2c: F0 09 00 EF 2C 00 A2 AA A4 66 90 0F 3E 66 AC [08:06:54]GetLastDocTimeStamp 1722067398 [08:06:54]current date 1722067618 [08:06:54]FM_GetShiftState [08:06:54]SAM_PROTO_GetShiftState [08:06:54]wFMCommunicate request_size=4 [08:06:54]MH_SAM_APDU [08:06:54]CAPDU: 80 13 01 00 [08:06:54]Write to MH i2c: E2 08 00 F0 2C 80 13 01 00 00 00 00 00 99 [08:06:54]Write i2c OK [08:06:54]MH_I2C_Read... [08:06:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:55]Read from MH i2c: E2 [08:06:55]MH_I2C_Read... [08:06:55]Read from MH i2c: E2 0E 00 [08:06:55]MH_I2C_Read... [08:06:55]Read from MH i2c: E2 0E 00 F0 2C 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 26 [08:06:55]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [08:06:55]wFMCommunicate OK [08:06:55]SAM_PROTO_GetShiftState done [08:06:55]FM_GetShiftState done [08:06:55]opened in 1722038845 [08:06:55]opened+sec_in_day 1722125245 [08:06:55]quantity*price = 200025 [08:06:55]sum+1 = 200026 [08:06:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 39 27.07.2024 08:06 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118096 ФПД: 148838003352722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T080658&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118096&fm=148838003352722&tin=02508201610067®Number=0000000000092660&sum=200000 [08:06:56]StoreToDocumentArchive [08:06:56]shift 432 fd 118096 [08:06:56]save to /storage/0432/doc_00118096 [08:06:56]save last doc name /storage/0432/doc_00118096 to /storage/kkm_last_doc_name [08:06:56]save OK [08:06:56]Clear old archive folders... [08:06:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:06:56]tlvbuf is 006E3310 [08:06:56]SAM_PROTO_ClearQueue [08:06:56]wFMCommunicate request_size=4 [08:06:56]MH_SAM_APDU [08:06:56]CAPDU: 80 09 00 00 [08:06:56]Write to MH i2c: E2 08 00 FD 2C 80 09 00 00 00 00 00 00 9B [08:06:56]Write i2c OK [08:06:56]MH_I2C_Read... [08:06:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:06:56]Read from MH i2c: E2 [08:06:56]MH_I2C_Read... [08:06:56]Read from MH i2c: E2 03 00 [08:06:56]MH_I2C_Read... [08:06:56]Read from MH i2c: E2 03 00 FD 2C 00 90 00 9D [08:06:56]RAPDU: 90 00 [08:06:56]wFMCommunicate OK [08:06:56]SAM_PROTO_ClearQueue done [08:06:56]KKMCreateOFDPacket [08:06:56]OFDProtocolAddRootSTLVToBuf [08:06:56]FM_MakeSignedData [08:06:56]FM_MakeSignedData [08:06:56]SAM_PROTO_SignData [08:06:56]wFMCommunicate request_size=4 [08:06:56]MH_SAM_APDU [08:06:56]CAPDU: 80 0D 01 02 [08:06:56]Write to MH i2c: E2 08 00 FE 2C 80 0D 01 02 00 00 00 00 A3 [08:06:56]Write i2c OK [08:06:56]MH_I2C_Read... [08:06:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:06:56]Read from MH i2c: E2 [08:06:56]MH_I2C_Read... [08:06:56]Read from MH i2c: E2 03 00 [08:06:56]MH_I2C_Read... [08:06:56]Read from MH i2c: E2 03 00 FE 2C 00 90 00 9E [08:06:56]RAPDU: 90 00 [08:06:56]wFMCommunicate OK [08:06:56]wFMCommunicate request_size=255 [08:06:56]MH_SAM_APDU [08:06: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 A2 AA A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 50 CD 01 00 35 04 06 00 87 5E 0C 51 [08:06:56]Write to MH i2c: E2 02 01 FF 2C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 A2 AA A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 50 CD 01 00 35 04 06 00 87 5E 0C 51 00 00 AF [08:06:56]Write i2c OK [08:06:56]MH_I2C_Read... [08:06:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:56]Read from MH i2c: E2 [08:06:56]MH_I2C_Read... [08:06:56]Read from MH i2c: E2 03 00 [08:06:56]MH_I2C_Read... [08:06:56]Read from MH i2c: E2 03 00 FF 2C 00 90 00 9F [08:06:56]RAPDU: 90 00 [08:06:56]wFMCommunicate OK [08:06:56]wFMCommunicate request_size=7 [08:06:56]MH_SAM_APDU [08:06:56]CAPDU: 80 0D 02 02 02 A4 92 [08:06:56]Write to MH i2c: E2 0A 00 00 2D 80 0D 02 02 02 00 A4 92 00 00 E1 [08:06:56]Write i2c OK [08:06:56]MH_I2C_Read... [08:06:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:56]Read from MH i2c: E2 [08:06:56]MH_I2C_Read... [08:06:56]Read from MH i2c: E2 03 00 [08:06:56]MH_I2C_Read... [08:06:56]Read from MH i2c: E2 03 00 00 2D 00 90 00 A1 [08:06:56]RAPDU: 90 00 [08:06:56]wFMCommunicate OK [08:06:56]wFMCommunicate request_size=4 [08:06:56]MH_SAM_APDU [08:06:56]CAPDU: 80 0D 03 02 [08:06:56]Write to MH i2c: E2 08 00 01 2D 80 0D 03 02 00 00 00 00 A9 [08:06:56]Write i2c OK [08:06:56]MH_I2C_Read... [08:06:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:06:56]Read from MH i2c: E2 [08:06:56]MH_I2C_Read... [08:06:56]Read from MH i2c: E2 0B 00 [08:06:56]MH_I2C_Read... [08:06:56]Read from MH i2c: E2 0B 00 01 2D 00 AC 35 8A 4B ED 1C 10 4A 90 00 C3 [08:06:56]RAPDU: AC 35 8A 4B ED 1C 10 4A 90 00 [08:06:56]wFMCommunicate OK [08:06:56]SAM_PROTO_SignData done [08:06:56]FM_MakeSignedData done [08:06:56]CreateOFDProtocolMessage [08:06:56]wFMCommunicate request_size=4 [08:06:56]MH_SAM_APDU [08:06:56]CAPDU: 80 11 00 00 [08:06:56]Write to MH i2c: E2 08 00 02 2D 80 11 00 00 00 00 00 00 A9 [08:06:56]Write i2c OK [08:06:56]MH_I2C_Read... [08:06:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:56]Read from MH i2c: E2 [08:06:56]MH_I2C_Read... [08:06:56]Read from MH i2c: E2 17 00 [08:06:56]MH_I2C_Read... [08:06:56]Read from MH i2c: E2 17 00 02 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 04 [08:06:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:06:56]wFMCommunicate OK [08:06:56]CreateOFDProtocolMessage done [08:06:56]OFDSenderStorePacket 118096 [08:06:56]StoreOFDPacket docnum=118096 [08:06:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 FA B9 04 01 73 3E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 A2 AA A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 50 CD 01 00 35 04 06 00 87 5E 0C 51 A4 92 AC 35 8A 4B ED 1C 10 4A [08:06:56]CheckFolder [08:06:56]dirname=/storage/ofd_packets [08:06:56]CheckFolder done [08:06:56]ProducePacketName [08:06:56]name=ofd_packets/00118096 [08:06:56]NVStorageSaveData ofd_packets/00118096 [08:06:56]File name is /storage/ofd_packets/00118096 [08:06:56]Write 298 bytes [08:06:56]NVStorageSaveData done [08:06:56]OFDSenderStorePacket done [08:06:56]KKMCreateOFDPacket done [08:06:56]NVStorageSaveData kkm_last_timestamp [08:06:56]File name is /storage/kkm_last_timestamp [08:06:56]Write 4 bytes [08:06:56]NVStorageSaveData done [08:06:56]ExternCall_PrintAddStr [08:06:56]wPrintStart [08:06:56]Write to MH i2c: 01 00 00 03 2D 30 [08:06:56]Write i2c OK [08:06:56]MH_I2C_Read... [08:06:56]Read from MH i2c: 01 [08:06:56]MH_I2C_Read... [08:06:56]Read from MH i2c: 01 07 00 [08:06:56]MH_I2C_Read... [08:06:56]Read from MH i2c: 01 07 00 03 2D 00 00 00 00 00 FF 0F 45 [08:06:56]RasterBufferAndPrint [08:06:56]line Счет N : (1)948967 [08:06:56]line ИНН: 02508201610067 [08:06:56]line Контрольно-Кассовый Чек [08:06:56]line ПРОДАЖА [08:06:56]line ТРК (МРК, ГНК) : 34 [08:06:56]line Товар: 2710194800 [08:06:56]line ДТ-К-5 [08:06:56]line 26.250 * 76.20 [08:06:56]line = 2000.25 [08:06:56]line НДС 12% НСП 1% [08:06:56]line > о реализуемом товаре [08:06:56]line ОКРУГЛЕНИЕ: -0.25 [08:06:56]line ИТОГО: 2000.00 [08:06:56]line НСП 1% : 17.70 [08:06:56]line НДС 12% : 212.42 [08:06:56]line Наличными: 0.00 [08:06:56]line Безнал.: 2000.00 [08:06:56]line Место: АЗС № 134 "Партнер Нефть" [08:06:56]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:06:56]line СНО: Общий режим [08:06:56]line Чек 39 27.07.2024 08:06 [08:06:56]line Смена: 432 ФФД: 1.0 [08:06:56]line ЗНМ: 0300000044 [08:06:56]line РНМ: 0000000000092660 [08:06:56]line Версия ККМ: 001 [08:06:56]line Платежная система: O! деньги [08:06:56]line ФМ: 0000000000874939 [08:06:56]line ФД: 118096 [08:06:56]line ФПД: 148838003352722 [08:06:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T080658&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118096&fm=148838003352722&tin=02508201610067®Number=0000000000092660&sum=200000 [08:06:57]OFD Sender: Processing packet 118096 [packets to send 85, broken 84] [08:06:57]ProducePacketName [08:06:57]name=ofd_packets/00118096 [08:06:57]OFD Sender: To server: pG, [08:06:57]CommunicateWithHost lk.salyk.kg:30040 [08:06:57]ConnectInit lk.salyk.kg [08:06:57]written 0, free lines is 4095 [08:06:57]Connected sock=10 [08:06:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 FA B9 04 01 73 3E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 A2 AA A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 50 CD 01 00 35 04 06 00 87 5E 0C 51 A4 92 AC 35 8A 4B ED 1C 10 4A [08:06:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 FE E4 47 00 51 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 34 39 33 39 10 04 04 00 50 CD 01 00 F4 03 04 00 36 58 A4 66 B6 04 01 00 00 CE D5 4C 1D F5 AE F1 AB [08:06:57]CommunicateWithHost err = 0 [08:06:57]CheckOFDResponse [08:06:57]1017 (14) - 77093643461234 [08:06:57]1041 (16) - 0000000000874939 [08:06:57]1040 (4) - 118096 [08:06:57]1012 (4) - 27.07.2024 02:15 [08:06:57]1206 (1) - 0 [08:06:57]OFD Sender: Remove packet 118096 [08:06:57]ProducePacketName [08:06:57]name=ofd_packets/00118096 [08:06:57]NVStorageDeleteData [08:06:57]Write to MH i2c: 01 00 00 2D 2D 5A [08:06:57]Write i2c OK [08:06:57]MH_I2C_Read... [08:06:57]Read from MH i2c: 01 [08:06:57]MH_I2C_Read... [08:06:57]Read from MH i2c: 01 07 00 [08:06:57]MH_I2C_Read... [08:06:57]Read from MH i2c: 01 07 00 2D 2D 00 00 00 00 00 D3 0C 40 [08:06:57]RasterBufferAndPrint [08:06:57]line [08:06:57]line [08:06:57]line [08:06:57]line [08:06:57]line [08:06:57]written 0, free lines is 3290 [08:06:57]MH_Cut [08:06:57]Write to MH i2c: D1 01 00 34 2D 01 33 [08:06:57]Write i2c OK [08:06:57]MH_I2C_Read... [08:06:57]Read from MH i2c: D1 [08:06:57]MH_I2C_Read... [08:06:57]Read from MH i2c: D1 01 00 [08:06:57]MH_I2C_Read... [08:06:57]Read from MH i2c: D1 01 00 34 2D 00 32 [08:06:57]Write to MH i2c: 01 00 00 35 2D 62 [08:06:57]Write i2c OK [08:06:57]MH_I2C_Read... [08:06:57]OFD Sender: No OFD packet to send [08:06:58]*** Cut start [08:06:58]*** Partial cut [08:06:58]*** CUTSNS_PIN = 1 [08:06:58]*** CUTSNS_PIN = 0 [08:06:58]*** Brake cut motor [08:06:58]Read from MH i2c: 01 [08:06:58]MH_I2C_Read... [08:06:58]*** Stop cut motor [08:06:58]*** Cut end [08:06:58]Read from MH i2c: 01 07 00 [08:06:58]MH_I2C_Read... [08:06:58]Read from MH i2c: 01 07 00 35 2D 00 00 00 00 00 FF 0F 77 [08:06:58]process_action close_receipt done [08:06:58]requested_data is exist [08:06:58]produce_requested_data [08:06:58]requested_item fm.sn is exist - process it [08:06:58]wFMCommunicate request_size=4 [08:06:58]MH_SAM_APDU [08:06:58]CAPDU: 80 11 00 00 [08:06:58]Write to MH i2c: E2 08 00 36 2D 80 11 00 00 00 00 00 00 DD [08:06:58]Write i2c OK [08:06:58]MH_I2C_Read... [08:06:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:58]Read from MH i2c: E2 [08:06:58]MH_I2C_Read... [08:06:58]Read from MH i2c: E2 17 00 [08:06:58]MH_I2C_Read... [08:06:58]Read from MH i2c: E2 17 00 36 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 38 [08:06:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:06:58]wFMCommunicate OK [08:06:58]requested_item fd.num is exist - process it [08:06:58]SAM_PROTO_GetFieldsCounters [08:06:58]wFMCommunicate request_size=4 [08:06:58]MH_SAM_APDU [08:06:58]CAPDU: 80 13 00 00 [08:06:58]Write to MH i2c: E2 08 00 37 2D 80 13 00 00 00 00 00 00 E0 [08:06:58]Write i2c OK [08:06:58]MH_I2C_Read... [08:06:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:06:59]Read from MH i2c: E2 [08:06:59]MH_I2C_Read... [08:06:59]Read from MH i2c: E2 62 00 [08:06:59]MH_I2C_Read... [08:06:59]Read from MH i2c: E2 62 00 37 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 50 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [08:06:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 50 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:06:59]wFMCommunicate OK [08:06:59]SAM_PROTO_GetFieldsCounters done [08:06:59]requested_item shift.num is exist - process it [08:06:59]requested_item shift.opened is exist - process it [08:06:59]req_shift_opened [08:06:59]FM_GetShiftState [08:06:59]SAM_PROTO_GetShiftState [08:06:59]wFMCommunicate request_size=4 [08:06:59]MH_SAM_APDU [08:06:59]CAPDU: 80 13 01 00 [08:06:59]Write to MH i2c: E2 08 00 38 2D 80 13 01 00 00 00 00 00 E2 [08:06:59]Write i2c OK [08:06:59]MH_I2C_Read... [08:06:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:59]Read from MH i2c: E2 [08:06:59]MH_I2C_Read... [08:06:59]Read from MH i2c: E2 0E 00 [08:06:59]MH_I2C_Read... [08:06:59]Read from MH i2c: E2 0E 00 38 2D 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 6F [08:06:59]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [08:06:59]wFMCommunicate OK [08:06:59]SAM_PROTO_GetShiftState done [08:06:59]FM_GetShiftState done [08:06:59]req_shift_opened done [08:06:59]requested_item shift.open_date is exist - process it [08:06:59]req_shift_open_date [08:06:59]req_shift_open_date done [08:06:59]produce_requested_data done [08:06:59]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118096,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [08:06:59]process_action_free close_receipt [08:06:59]json_value_free [08:06:59]json_value_free done [08:06:59]process_json_proto returns [08:06:59]Send response to host [08:06:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118096,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [08:06:59]free response buf [08:06:59]execute_script done [08:06:59]execute_script returns [08:06:59]free content buf [08:06:59]Sock 9.Close socket [08:06:59]Sock 9.Thread stoped [08:07:02]OFD Sender: No OFD packet to send [08:07:07]OFD Sender: No OFD packet to send [08:07:12]OFD Sender: No OFD packet to send [08:07:17]OFD Sender: No OFD packet to send [08:07:22]OFD Sender: No OFD packet to send [08:07:27]OFD Sender: No OFD packet to send [08:07:32]OFD Sender: No OFD packet to send [08:07:37]OFD Sender: No OFD packet to send [08:07:42]OFD Sender: No OFD packet to send [08:07:47]OFD Sender: No OFD packet to send [08:07:52]OFD Sender: No OFD packet to send [08:07:57]OFD Sender: No OFD packet to send [08:08:02]OFD Sender: No OFD packet to send [08:08:07]OFD Sender: No OFD packet to send [08:08:12]OFD Sender: No OFD packet to send [08:08:17]OFD Sender: No OFD packet to send [08:08:22]OFD Sender: No OFD packet to send [08:08:27]OFD Sender: No OFD packet to send [08:08:32]OFD Sender: No OFD packet to send [08:08:37]OFD Sender: No OFD packet to send [08:08:42]OFD Sender: No OFD packet to send [08:08:47]OFD Sender: No OFD packet to send [08:08:52]OFD Sender: No OFD packet to send [08:08:57]OFD Sender: No OFD packet to send [08:09:02]OFD Sender: No OFD packet to send [08:09:07]OFD Sender: No OFD packet to send [08:09:12]OFD Sender: No OFD packet to send [08:09:17]OFD Sender: No OFD packet to send [08:09:22]OFD Sender: No OFD packet to send [08:09:27]OFD Sender: No OFD packet to send [08:09:32]OFD Sender: No OFD packet to send [08:09:37]OFD Sender: No OFD packet to send [08:09:42]OFD Sender: No OFD packet to send [08:09:47]OFD Sender: No OFD packet to send [08:09:53]OFD Sender: No OFD packet to send [08:09:58]OFD Sender: No OFD packet to send [08:10:03]OFD Sender: No OFD packet to send [08:10:08]OFD Sender: No OFD packet to send [08:10:13]OFD Sender: No OFD packet to send [08:10:18]OFD Sender: No OFD packet to send [08:10:21]accept exits with 7 [08:10:21]New connection [08:10:21]New thread 3067284836 created [08:10:21]Thread 3067428196 joined [08:10:21]Waiting for new connection... [08:10:21] Sock 7.Parse request [08:10:21]Sock 7.Check first char [08:10:21]Sock 7.First char is OK [08:10:21]request: POST /json_proto HTTP/1.0 [08:10:21]Method: POST [08:10:21]URL: /json_proto [08:10:21]Method is POST - this is cgi request [08:10:21]url: /json_proto [08:10:21]query_string will be loaded in cgi processing [08:10:21]execute_cgi json_proto POST (null) [08:10:21]execute_cgi path=json_proto method=POST [08:10:21]POST find Content-Length [08:10:21]Host: 172.17.45.7:8080 [08:10:21]Content-Length: 682 [08:10:21]Content-Type: application/json [08:10:21] [08:10:21]POST finish read [08:10:21]Found Content-Length = 682 [08:10:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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:10:21]execute_script... [08:10: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)948968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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:10:21]POST & json_proto [08:10:21]process_json_proto [08:10:21]json parsed OK: [08:10:21]protocol is kg_v1.0 [08:10:21]action value=close_receipt [08:10:21]process_action close_receipt [08:10:21]cmd_close_receipt [08:10:21]MH_GetDate [08:10:21]Write to MH i2c: F0 00 00 39 2D 55 [08:10:21]Write i2c OK [08:10:21]MH_I2C_Read... [08:10:21]Read from MH i2c: F0 [08:10:21]MH_I2C_Read... [08:10:21]Read from MH i2c: F0 09 00 [08:10:21]MH_I2C_Read... [08:10:21]Read from MH i2c: F0 09 00 39 2D 00 71 AB A4 66 90 0F 3E 66 C7 [08:10:21]GetLastDocTimeStamp 1722067618 [08:10:21]current date 1722067825 [08:10:21]FM_GetShiftState [08:10:21]SAM_PROTO_GetShiftState [08:10:21]wFMCommunicate request_size=4 [08:10:21]MH_SAM_APDU [08:10:21]CAPDU: 80 13 01 00 [08:10:21]Write to MH i2c: E2 08 00 3A 2D 80 13 01 00 00 00 00 00 E4 [08:10:21]Write i2c OK [08:10:21]MH_I2C_Read... [08:10:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:21]Read from MH i2c: E2 [08:10:21]MH_I2C_Read... [08:10:21]Read from MH i2c: E2 0E 00 [08:10:21]MH_I2C_Read... [08:10:21]Read from MH i2c: E2 0E 00 3A 2D 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 71 [08:10:21]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [08:10:21]wFMCommunicate OK [08:10:21]SAM_PROTO_GetShiftState done [08:10:21]FM_GetShiftState done [08:10:21]opened in 1722038845 [08:10:21]opened+sec_in_day 1722125245 [08:10:21]quantity*price = 150041 [08:10:21]sum+1 = 150042 [08:10:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 40 27.07.2024 08:10 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118097 ФПД: 126734394081859 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T081025&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118097&fm=126734394081859&tin=02508201610067®Number=0000000000092660&sum=150000 [08:10:22]StoreToDocumentArchive [08:10:22]shift 432 fd 118097 [08:10:22]save to /storage/0432/doc_00118097 [08:10:22]save last doc name /storage/0432/doc_00118097 to /storage/kkm_last_doc_name [08:10:22]save OK [08:10:22]Clear old archive folders... [08:10:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:10:22]tlvbuf is 0078A7C0 [08:10:22]SAM_PROTO_ClearQueue [08:10:22]wFMCommunicate request_size=4 [08:10:22]MH_SAM_APDU [08:10:22]CAPDU: 80 09 00 00 [08:10:22]Write to MH i2c: E2 08 00 47 2D 80 09 00 00 00 00 00 00 E6 [08:10:22]Write i2c OK [08:10:22]MH_I2C_Read... [08:10:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:10:22]Read from MH i2c: E2 [08:10:22]MH_I2C_Read... [08:10:22]Read from MH i2c: E2 03 00 [08:10:22]MH_I2C_Read... [08:10:22]Read from MH i2c: E2 03 00 47 2D 00 90 00 E8 [08:10:22]RAPDU: 90 00 [08:10:22]wFMCommunicate OK [08:10:22]SAM_PROTO_ClearQueue done [08:10:22]KKMCreateOFDPacket [08:10:22]OFDProtocolAddRootSTLVToBuf [08:10:22]FM_MakeSignedData [08:10:22]FM_MakeSignedData [08:10:22]SAM_PROTO_SignData [08:10:22]wFMCommunicate request_size=4 [08:10:22]MH_SAM_APDU [08:10:22]CAPDU: 80 0D 01 02 [08:10:22]Write to MH i2c: E2 08 00 48 2D 80 0D 01 02 00 00 00 00 EE [08:10:22]Write i2c OK [08:10:22]MH_I2C_Read... [08:10:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:10:22]Read from MH i2c: E2 [08:10:22]MH_I2C_Read... [08:10:22]Read from MH i2c: E2 03 00 [08:10:22]MH_I2C_Read... [08:10:22]Read from MH i2c: E2 03 00 48 2D 00 90 00 E9 [08:10:22]RAPDU: 90 00 [08:10:22]wFMCommunicate OK [08:10:22]wFMCommunicate request_size=255 [08:10:22]MH_SAM_APDU [08:10: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 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 28 00 00 00 F4 03 04 00 71 AB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 51 CD 01 00 35 04 06 00 73 [08:10:22]Write to MH i2c: E2 02 01 49 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 28 00 00 00 F4 03 04 00 71 AB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 51 CD 01 00 35 04 06 00 73 00 00 78 [08:10:22]Write i2c OK [08:10:22]MH_I2C_Read... [08:10:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:23]Read from MH i2c: E2 [08:10:23]MH_I2C_Read... [08:10:23]Read from MH i2c: E2 03 00 [08:10:23]MH_I2C_Read... [08:10:23]Read from MH i2c: E2 03 00 49 2D 00 90 00 EA [08:10:23]RAPDU: 90 00 [08:10:23]wFMCommunicate OK [08:10:23]wFMCommunicate request_size=10 [08:10:23]MH_SAM_APDU [08:10:23]CAPDU: 80 0D 02 02 05 43 A6 8A 42 43 [08:10:23]Write to MH i2c: E2 0D 00 4A 2D 80 0D 02 02 05 00 43 A6 8A 42 43 00 00 F3 [08:10:23]Write i2c OK [08:10:23]MH_I2C_Read... [08:10:23]OFD Sender: No OFD packet to send [08:10:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:23]Read from MH i2c: E2 [08:10:23]MH_I2C_Read... [08:10:23]Read from MH i2c: E2 03 00 [08:10:23]MH_I2C_Read... [08:10:23]Read from MH i2c: E2 03 00 4A 2D 00 90 00 EB [08:10:23]RAPDU: 90 00 [08:10:23]wFMCommunicate OK [08:10:23]wFMCommunicate request_size=4 [08:10:23]MH_SAM_APDU [08:10:23]CAPDU: 80 0D 03 02 [08:10:23]Write to MH i2c: E2 08 00 4B 2D 80 0D 03 02 00 00 00 00 F3 [08:10:23]Write i2c OK [08:10:23]MH_I2C_Read... [08:10:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:10:23]Read from MH i2c: E2 [08:10:23]MH_I2C_Read... [08:10:23]Read from MH i2c: E2 0B 00 [08:10:23]MH_I2C_Read... [08:10:23]Read from MH i2c: E2 0B 00 4B 2D 00 D0 F7 2C 2C 14 58 06 F3 90 00 78 [08:10:23]RAPDU: D0 F7 2C 2C 14 58 06 F3 90 00 [08:10:23]wFMCommunicate OK [08:10:23]SAM_PROTO_SignData done [08:10:23]FM_MakeSignedData done [08:10:23]CreateOFDProtocolMessage [08:10:23]wFMCommunicate request_size=4 [08:10:23]MH_SAM_APDU [08:10:23]CAPDU: 80 11 00 00 [08:10:23]Write to MH i2c: E2 08 00 4C 2D 80 11 00 00 00 00 00 00 F3 [08:10:23]Write i2c OK [08:10:23]MH_I2C_Read... [08:10:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:23]Read from MH i2c: E2 [08:10:23]MH_I2C_Read... [08:10:23]Read from MH i2c: E2 17 00 [08:10:23]MH_I2C_Read... [08:10:23]Read from MH i2c: E2 17 00 4C 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4E [08:10:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:10:23]wFMCommunicate OK [08:10:23]CreateOFDProtocolMessage done [08:10:23]OFDSenderStorePacket 118097 [08:10:23]StoreOFDPacket docnum=118097 [08:10:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7F 36 07 01 E4 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 28 00 00 00 F4 03 04 00 71 AB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 51 CD 01 00 35 04 06 00 73 43 A6 8A 42 43 D0 F7 2C 2C 14 58 06 F3 [08:10:23]CheckFolder [08:10:23]dirname=/storage/ofd_packets [08:10:23]CheckFolder done [08:10:23]ProducePacketName [08:10:23]name=ofd_packets/00118097 [08:10:23]NVStorageSaveData ofd_packets/00118097 [08:10:23]File name is /storage/ofd_packets/00118097 [08:10:23]Write 301 bytes [08:10:23]NVStorageSaveData done [08:10:23]OFDSenderStorePacket done [08:10:23]KKMCreateOFDPacket done [08:10:23]NVStorageSaveData kkm_last_timestamp [08:10:23]File name is /storage/kkm_last_timestamp [08:10:23]Write 4 bytes [08:10:23]NVStorageSaveData done [08:10:23]ExternCall_PrintAddStr [08:10:23]wPrintStart [08:10:23]Write to MH i2c: 01 00 00 4D 2D 7A [08:10:23]Write i2c OK [08:10:23]MH_I2C_Read... [08:10:23]Read from MH i2c: 01 [08:10:23]MH_I2C_Read... [08:10:23]Read from MH i2c: 01 07 00 [08:10:23]MH_I2C_Read... [08:10:23]Read from MH i2c: 01 07 00 4D 2D 00 00 00 00 00 FF 0F 8F [08:10:23]RasterBufferAndPrint [08:10:23]line Счет N : (1)948968 [08:10:23]line ИНН: 02508201610067 [08:10:23]line Контрольно-Кассовый Чек [08:10:23]line ПРОДАЖА [08:10:23]line ТРК (МРК, ГНК) : 31 [08:10:23]line Товар: 2710124130 [08:10:23]line Аи-92-К-4 [08:10:23]line 22.130 * 67.80 [08:10:23]line = 1500.41 [08:10:23]line НДС 12% НСП 1% [08:10:23]line > о реализуемом товаре [08:10:23]line ОКРУГЛЕНИЕ: -0.41 [08:10:23]line ИТОГО: 1500.00 [08:10:23]line Внесено: 1500.00 [08:10:23]line СДАЧА: 0.00 [08:10:23]line НСП 1% : 13.28 [08:10:23]line НДС 12% : 159.34 [08:10:23]line Наличными: 1500.00 [08:10:23]line Безнал.: 0.00 [08:10:23]line Место: АЗС № 134 "Партнер Нефть" [08:10:23]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:10:23]line СНО: Общий режим [08:10:23]line Чек 40 27.07.2024 08:10 [08:10:23]line Смена: 432 ФФД: 1.0 [08:10:23]line ЗНМ: 0300000044 [08:10:23]line РНМ: 0000000000092660 [08:10:23]line Версия ККМ: 001 [08:10:23]line ФМ: 0000000000874939 [08:10:23]line ФД: 118097 [08:10:23]line ФПД: 126734394081859 [08:10:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T081025&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118097&fm=126734394081859&tin=02508201610067®Number=0000000000092660&sum=150000 [08:10:23]OFD Sender: Processing packet 118097 [packets to send 85, broken 84] [08:10:23]ProducePacketName [08:10:23]name=ofd_packets/00118097 [08:10:23]OFD Sender: To server: pG, [08:10:23]CommunicateWithHost lk.salyk.kg:30040 [08:10:23]ConnectInit lk.salyk.kg [08:10:23]written 0, free lines is 4095 [08:10:23]Connected sock=10 [08:10:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7F 36 07 01 E4 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 28 00 00 00 F4 03 04 00 71 AB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 51 CD 01 00 35 04 06 00 73 43 A6 8A 42 43 D0 F7 2C 2C 14 58 06 F3 [08:10:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E9 74 47 00 AA 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 34 39 33 39 10 04 04 00 51 CD 01 00 F4 03 04 00 04 59 A4 66 B6 04 01 00 00 78 8A D9 05 11 EA FC 94 [08:10:23]CommunicateWithHost err = 0 [08:10:23]CheckOFDResponse [08:10:23]1017 (14) - 77093643461234 [08:10:23]1041 (16) - 0000000000874939 [08:10:23]1040 (4) - 118097 [08:10:23]1012 (4) - 27.07.2024 02:18 [08:10:23]1206 (1) - 0 [08:10:23]OFD Sender: Remove packet 118097 [08:10:23]ProducePacketName [08:10:23]name=ofd_packets/00118097 [08:10:23]NVStorageDeleteData [08:10:23]Write to MH i2c: 01 00 00 77 2D A4 [08:10:23]Write i2c OK [08:10:23]MH_I2C_Read... [08:10:23]Read from MH i2c: 01 [08:10:23]MH_I2C_Read... [08:10:23]Read from MH i2c: 01 07 00 [08:10:23]MH_I2C_Read... [08:10:23]Read from MH i2c: 01 07 00 77 2D 00 00 00 00 00 CC 0C 83 [08:10:23]RasterBufferAndPrint [08:10:23]line [08:10:23]line [08:10:23]line [08:10:23]line [08:10:23]line [08:10:23]written 0, free lines is 3283 [08:10:23]MH_Cut [08:10:23]Write to MH i2c: D1 01 00 7E 2D 01 7D [08:10:23]Write i2c OK [08:10:23]MH_I2C_Read... [08:10:23]Read from MH i2c: D1 [08:10:23]MH_I2C_Read... [08:10:23]Read from MH i2c: D1 01 00 [08:10:23]MH_I2C_Read... [08:10:23]Read from MH i2c: D1 01 00 7E 2D 00 7C [08:10:23]Write to MH i2c: 01 00 00 7F 2D AC [08:10:23]Write i2c OK [08:10:23]MH_I2C_Read... [08:10:24]OFD Sender: No OFD packet to send [08:10:24]*** Cut start [08:10:24]*** Partial cut [08:10:24]*** CUTSNS_PIN = 1 [08:10:24]*** CUTSNS_PIN = 0 [08:10:24]*** Brake cut motor [08:10:25]Read from MH i2c: 01 [08:10:25]MH_I2C_Read... [08:10:25]*** Stop cut motor [08:10:25]*** Cut end [08:10:25]Read from MH i2c: 01 07 00 [08:10:25]MH_I2C_Read... [08:10:25]Read from MH i2c: 01 07 00 7F 2D 00 00 00 00 00 FF 0F C1 [08:10:25]process_action close_receipt done [08:10:25]requested_data is exist [08:10:25]produce_requested_data [08:10:25]requested_item fm.sn is exist - process it [08:10:25]wFMCommunicate request_size=4 [08:10:25]MH_SAM_APDU [08:10:25]CAPDU: 80 11 00 00 [08:10:25]Write to MH i2c: E2 08 00 80 2D 80 11 00 00 00 00 00 00 27 [08:10:25]Write i2c OK [08:10:25]MH_I2C_Read... [08:10:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:25]Read from MH i2c: E2 [08:10:25]MH_I2C_Read... [08:10:25]Read from MH i2c: E2 17 00 [08:10:25]MH_I2C_Read... [08:10:25]Read from MH i2c: E2 17 00 80 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 82 [08:10:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:10:25]wFMCommunicate OK [08:10:25]requested_item fd.num is exist - process it [08:10:25]SAM_PROTO_GetFieldsCounters [08:10:25]wFMCommunicate request_size=4 [08:10:25]MH_SAM_APDU [08:10:25]CAPDU: 80 13 00 00 [08:10:25]Write to MH i2c: E2 08 00 81 2D 80 13 00 00 00 00 00 00 2A [08:10:25]Write i2c OK [08:10:25]MH_I2C_Read... [08:10:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:10:25]Read from MH i2c: E2 [08:10:25]MH_I2C_Read... [08:10:25]Read from MH i2c: E2 62 00 [08:10:25]MH_I2C_Read... [08:10:25]Read from MH i2c: E2 62 00 81 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 51 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [08:10:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 51 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:10:25]wFMCommunicate OK [08:10:25]SAM_PROTO_GetFieldsCounters done [08:10:25]requested_item shift.num is exist - process it [08:10:25]requested_item shift.opened is exist - process it [08:10:25]req_shift_opened [08:10:25]FM_GetShiftState [08:10:25]SAM_PROTO_GetShiftState [08:10:25]wFMCommunicate request_size=4 [08:10:25]MH_SAM_APDU [08:10:25]CAPDU: 80 13 01 00 [08:10:25]Write to MH i2c: E2 08 00 82 2D 80 13 01 00 00 00 00 00 2C [08:10:25]Write i2c OK [08:10:25]MH_I2C_Read... [08:10:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:25]Read from MH i2c: E2 [08:10:25]MH_I2C_Read... [08:10:25]Read from MH i2c: E2 0E 00 [08:10:25]MH_I2C_Read... [08:10:25]Read from MH i2c: E2 0E 00 82 2D 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 B9 [08:10:25]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [08:10:25]wFMCommunicate OK [08:10:25]SAM_PROTO_GetShiftState done [08:10:25]FM_GetShiftState done [08:10:25]req_shift_opened done [08:10:25]requested_item shift.open_date is exist - process it [08:10:25]req_shift_open_date [08:10:25]req_shift_open_date done [08:10:25]produce_requested_data done [08:10:25]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118097,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [08:10:25]process_action_free close_receipt [08:10:25]json_value_free [08:10:25]json_value_free done [08:10:25]process_json_proto returns [08:10:25]Send response to host [08:10:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118097,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [08:10:25]free response buf [08:10:25]execute_script done [08:10:25]execute_script returns [08:10:25]free content buf [08:10:25]Sock 7.Close socket [08:10:25]Sock 7.Thread stoped [08:10:29]OFD Sender: No OFD packet to send [08:10:34]OFD Sender: No OFD packet to send [08:10:39]OFD Sender: No OFD packet to send [08:10:44]OFD Sender: No OFD packet to send [08:10:49]OFD Sender: No OFD packet to send [08:10:54]OFD Sender: No OFD packet to send [08:10:59]OFD Sender: No OFD packet to send [08:11:04]OFD Sender: No OFD packet to send [08:11:09]OFD Sender: No OFD packet to send [08:11:14]OFD Sender: No OFD packet to send [08:11:19]OFD Sender: No OFD packet to send [08:11:24]OFD Sender: No OFD packet to send [08:11:29]OFD Sender: No OFD packet to send [08:11:34]OFD Sender: No OFD packet to send [08:11:39]OFD Sender: No OFD packet to send [08:11:44]OFD Sender: No OFD packet to send [08:11:49]OFD Sender: No OFD packet to send [08:11:54]OFD Sender: No OFD packet to send [08:11:59]OFD Sender: No OFD packet to send [08:12:04]OFD Sender: No OFD packet to send [08:12:09]OFD Sender: No OFD packet to send [08:12:14]OFD Sender: No OFD packet to send [08:12:19]OFD Sender: No OFD packet to send [08:12:24]OFD Sender: No OFD packet to send [08:12:29]OFD Sender: No OFD packet to send [08:12:34]OFD Sender: No OFD packet to send [08:12:39]OFD Sender: No OFD packet to send [08:12:44]OFD Sender: No OFD packet to send [08:12:49]OFD Sender: No OFD packet to send [08:12:54]OFD Sender: No OFD packet to send [08:12:59]OFD Sender: No OFD packet to send [08:13:04]OFD Sender: No OFD packet to send [08:13:09]OFD Sender: No OFD packet to send [08:13:14]OFD Sender: No OFD packet to send [08:13:19]OFD Sender: No OFD packet to send [08:13:24]OFD Sender: No OFD packet to send [08:13:29]OFD Sender: No OFD packet to send [08:13:34]OFD Sender: No OFD packet to send [08:13:39]OFD Sender: No OFD packet to send [08:13:44]OFD Sender: No OFD packet to send [08:13:49]OFD Sender: No OFD packet to send [08:13:54]OFD Sender: No OFD packet to send [08:13:59]OFD Sender: No OFD packet to send [08:14:04]OFD Sender: No OFD packet to send [08:14:09]OFD Sender: No OFD packet to send [08:14:14]OFD Sender: No OFD packet to send [08:14:19]OFD Sender: No OFD packet to send [08:14:24]OFD Sender: No OFD packet to send [08:14:29]OFD Sender: No OFD packet to send [08:14:34]OFD Sender: No OFD packet to send [08:14:39]OFD Sender: No OFD packet to send [08:14:44]OFD Sender: No OFD packet to send [08:14:49]OFD Sender: No OFD packet to send [08:14:54]OFD Sender: No OFD packet to send [08:14:59]OFD Sender: No OFD packet to send [08:15:04]OFD Sender: No OFD packet to send [08:15:09]OFD Sender: No OFD packet to send [08:15:14]OFD Sender: No OFD packet to send [08:15:19]OFD Sender: No OFD packet to send [08:15:24]OFD Sender: No OFD packet to send [08:15:29]OFD Sender: No OFD packet to send [08:15:34]OFD Sender: No OFD packet to send [08:15:39]OFD Sender: No OFD packet to send [08:15:44]OFD Sender: No OFD packet to send [08:15:49]OFD Sender: No OFD packet to send [08:15:54]OFD Sender: No OFD packet to send [08:15:59]OFD Sender: No OFD packet to send [08:16:04]OFD Sender: No OFD packet to send [08:16:09]OFD Sender: No OFD packet to send [08:16:14]OFD Sender: No OFD packet to send [08:16:19]OFD Sender: No OFD packet to send [08:16:24]OFD Sender: No OFD packet to send [08:16:29]OFD Sender: No OFD packet to send [08:16:34]OFD Sender: No OFD packet to send [08:16:39]OFD Sender: No OFD packet to send [08:16:44]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:54]OFD Sender: No OFD packet to send [08:20:59]OFD Sender: No OFD packet to send [08:21:04]OFD Sender: No OFD packet to send [08:21:09]OFD Sender: No OFD packet to send [08:21:14]OFD Sender: No OFD packet to send [08:21:19]OFD Sender: No OFD packet to send [08:21:24]OFD Sender: No OFD packet to send [08:21:29]OFD Sender: No OFD packet to send [08:21:35]OFD Sender: No OFD packet to send [08:21:40]OFD Sender: No OFD packet to send [08:21:45]OFD Sender: No OFD packet to send [08:21:50]OFD Sender: No OFD packet to send [08:21:55]OFD Sender: No OFD packet to send [08:22:00]OFD Sender: No OFD packet to send [08:22:05]OFD Sender: No OFD packet to send [08:22:10]OFD Sender: No OFD packet to send [08:22:15]OFD Sender: No OFD packet to send [08:22:20]OFD Sender: No OFD packet to send [08:22:25]OFD Sender: No OFD packet to send [08:22:30]OFD Sender: No OFD packet to send [08:22:35]OFD Sender: No OFD packet to send [08:22:40]OFD Sender: No OFD packet to send [08:22:45]OFD Sender: No OFD packet to send [08:22:50]OFD Sender: No OFD packet to send [08:22:55]OFD Sender: No OFD packet to send [08:23:00]OFD Sender: No OFD packet to send [08:23:05]OFD Sender: No OFD packet to send [08:23:10]OFD Sender: No OFD packet to send [08:23:15]OFD Sender: No OFD packet to send [08:23:20]OFD Sender: No OFD packet to send [08:23:25]OFD Sender: No OFD packet to send [08:23:30]OFD Sender: No OFD packet to send [08:23:35]OFD Sender: No OFD packet to send [08:23:40]OFD Sender: No OFD packet to send [08:23:45]OFD Sender: No OFD packet to send [08:23:50]OFD Sender: No OFD packet to send [08:23:54]accept exits with 9 [08:23:54]New connection [08:23:54]New thread 3067428196 created [08:23:54]Thread 3067284836 joined [08:23:54]Waiting for new connection... [08:23:54] Sock 9.Parse request [08:23:54]Sock 9.Check first char [08:23:54]Sock 9.First char is OK [08:23:54]request: POST /json_proto HTTP/1.0 [08:23:54]Method: POST [08:23:54]URL: /json_proto [08:23:54]Method is POST - this is cgi request [08:23:54]url: /json_proto [08:23:54]query_string will be loaded in cgi processing [08:23:54]execute_cgi json_proto POST (null) [08:23:54]execute_cgi path=json_proto method=POST [08:23:54]POST find Content-Length [08:23:54]Host: 172.17.45.7:8080 [08:23:54]Content-Length: 820 [08:23:54]Content-Type: application/json [08:23:54] [08:23:54]POST finish read [08:23:54]Found Content-Length = 820 [08:23:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 127.960, "sum" : 9750.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", "total" : 9750.00, "payments": [ { "type": 1, "sum" : 9750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:54]execute_script... [08:23: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)948969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 127.960, "sum" : 9750.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", "total" : 9750.00, "payments": [ { "type": 1, "sum" : 9750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:54]POST & json_proto [08:23:54]process_json_proto [08:23:54]json parsed OK: [08:23:54]protocol is kg_v1.0 [08:23:54]action value=close_receipt [08:23:54]process_action close_receipt [08:23:54]cmd_close_receipt [08:23:54]MH_GetDate [08:23:54]Write to MH i2c: F0 00 00 83 2D 9F [08:23:54]Write i2c OK [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: F0 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: F0 09 00 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: F0 09 00 83 2D 00 9E AE A4 66 90 0F 3E 66 41 [08:23:54]GetLastDocTimeStamp 1722067825 [08:23:54]current date 1722068638 [08:23:54]FM_GetShiftState [08:23:54]SAM_PROTO_GetShiftState [08:23:54]wFMCommunicate request_size=4 [08:23:54]MH_SAM_APDU [08:23:54]CAPDU: 80 13 01 00 [08:23:54]Write to MH i2c: E2 08 00 84 2D 80 13 01 00 00 00 00 00 2E [08:23:54]Write i2c OK [08:23:54]MH_I2C_Read... [08:23:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:54]Read from MH i2c: E2 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: E2 0E 00 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: E2 0E 00 84 2D 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 BB [08:23:54]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [08:23:54]wFMCommunicate OK [08:23:54]SAM_PROTO_GetShiftState done [08:23:54]FM_GetShiftState done [08:23:54]opened in 1722038845 [08:23:54]opened+sec_in_day 1722125245 [08:23:54]quantity*price = 975055 [08:23:54]sum+1 = 975056 [08:23:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 9750.00 НСП 1% : 86.29 НДС 12% : 1035.46 Наличными: 0.00 Безнал.: 9750.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 41 27.07.2024 08:23 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118098 ФПД: 60190358569763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T082358&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118098&fm=60190358569763&tin=02508201610067®Number=0000000000092660&sum=975000 [08:23:55]StoreToDocumentArchive [08:23:55]shift 432 fd 118098 [08:23:55]save to /storage/0432/doc_00118098 [08:23:55]save last doc name /storage/0432/doc_00118098 to /storage/kkm_last_doc_name [08:23:55]save OK [08:23:55]Clear old archive folders... [08:23:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:23:55]tlvbuf is 006CE140 [08:23:55]SAM_PROTO_ClearQueue [08:23:55]wFMCommunicate request_size=4 [08:23:55]MH_SAM_APDU [08:23:55]CAPDU: 80 09 00 00 [08:23:55]Write to MH i2c: E2 08 00 91 2D 80 09 00 00 00 00 00 00 30 [08:23:55]Write i2c OK [08:23:55]MH_I2C_Read... [08:23:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:23:55]Read from MH i2c: E2 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 03 00 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 03 00 91 2D 00 90 00 32 [08:23:55]RAPDU: 90 00 [08:23:55]wFMCommunicate OK [08:23:55]SAM_PROTO_ClearQueue done [08:23:55]KKMCreateOFDPacket [08:23:55]OFDProtocolAddRootSTLVToBuf [08:23:55]FM_MakeSignedData [08:23:55]FM_MakeSignedData [08:23:55]SAM_PROTO_SignData [08:23:55]wFMCommunicate request_size=4 [08:23:55]MH_SAM_APDU [08:23:55]CAPDU: 80 0D 01 02 [08:23:55]Write to MH i2c: E2 08 00 92 2D 80 0D 01 02 00 00 00 00 38 [08:23:55]Write i2c OK [08:23:55]MH_I2C_Read... [08:23:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:23:55]Read from MH i2c: E2 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 03 00 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 03 00 92 2D 00 90 00 33 [08:23:55]RAPDU: 90 00 [08:23:55]wFMCommunicate OK [08:23:55]wFMCommunicate request_size=255 [08:23:55]MH_SAM_APDU [08:23: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D8 F3 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF E0 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 E0 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 21 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 94 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 E0 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 9E AE A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 52 CD 01 00 35 04 06 00 36 BE 28 F1 [08:23:55]Write to MH i2c: E2 02 01 93 2D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D8 F3 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF E0 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 E0 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 21 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 94 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 E0 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 9E AE A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 52 CD 01 00 35 04 06 00 36 BE 28 F1 00 00 58 [08:23:55]Write i2c OK [08:23:55]MH_I2C_Read... [08:23:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:55]Read from MH i2c: E2 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 03 00 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 03 00 93 2D 00 90 00 34 [08:23:55]RAPDU: 90 00 [08:23:55]wFMCommunicate OK [08:23:55]wFMCommunicate request_size=7 [08:23:55]MH_SAM_APDU [08:23:55]CAPDU: 80 0D 02 02 02 03 23 [08:23:55]Write to MH i2c: E2 0A 00 94 2D 80 0D 02 02 02 00 03 23 00 00 65 [08:23:55]Write i2c OK [08:23:55]MH_I2C_Read... [08:23:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:55]Read from MH i2c: E2 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 03 00 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 03 00 94 2D 00 90 00 35 [08:23:55]RAPDU: 90 00 [08:23:55]wFMCommunicate OK [08:23:55]wFMCommunicate request_size=4 [08:23:55]MH_SAM_APDU [08:23:55]CAPDU: 80 0D 03 02 [08:23:55]Write to MH i2c: E2 08 00 95 2D 80 0D 03 02 00 00 00 00 3D [08:23:55]Write i2c OK [08:23:55]MH_I2C_Read... [08:23:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:23:55]Read from MH i2c: E2 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 0B 00 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 0B 00 95 2D 00 CF 6D F4 E9 B4 FD 02 7F 90 00 89 [08:23:55]RAPDU: CF 6D F4 E9 B4 FD 02 7F 90 00 [08:23:55]wFMCommunicate OK [08:23:55]SAM_PROTO_SignData done [08:23:55]FM_MakeSignedData done [08:23:55]CreateOFDProtocolMessage [08:23:55]wFMCommunicate request_size=4 [08:23:55]MH_SAM_APDU [08:23:55]CAPDU: 80 11 00 00 [08:23:55]Write to MH i2c: E2 08 00 96 2D 80 11 00 00 00 00 00 00 3D [08:23:55]Write i2c OK [08:23:55]MH_I2C_Read... [08:23:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:55]Read from MH i2c: E2 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 17 00 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 17 00 96 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 98 [08:23:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:23:55]wFMCommunicate OK [08:23:55]CreateOFDProtocolMessage done [08:23:55]OFDSenderStorePacket 118098 [08:23:55]StoreOFDPacket docnum=118098 [08:23:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 7B 46 04 01 EF 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D8 F3 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF E0 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 E0 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 21 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 94 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 E0 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 9E AE A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 52 CD 01 00 35 04 06 00 36 BE 28 F1 03 23 CF 6D F4 E9 B4 FD 02 7F [08:23:55]CheckFolder [08:23:55]dirname=/storage/ofd_packets [08:23:55]CheckFolder done [08:23:55]ProducePacketName [08:23:55]name=ofd_packets/00118098 [08:23:55]NVStorageSaveData ofd_packets/00118098 [08:23:55]File name is /storage/ofd_packets/00118098 [08:23:55]Write 298 bytes [08:23:55]NVStorageSaveData done [08:23:55]OFDSenderStorePacket done [08:23:55]KKMCreateOFDPacket done [08:23:55]NVStorageSaveData kkm_last_timestamp [08:23:55]File name is /storage/kkm_last_timestamp [08:23:55]Write 4 bytes [08:23:55]NVStorageSaveData done [08:23:55]ExternCall_PrintAddStr [08:23:55]wPrintStart [08:23:55]Write to MH i2c: 01 00 00 97 2D C4 [08:23:55]Write i2c OK [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: 01 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: 01 07 00 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: 01 07 00 97 2D 00 00 00 00 00 FF 0F D9 [08:23:55]RasterBufferAndPrint [08:23:55]line Счет N : (1)948969 [08:23:55]line ИНН: 02508201610067 [08:23:55]line Контрольно-Кассовый Чек [08:23:55]line ПРОДАЖА [08:23:55]line ТРК (МРК, ГНК) : 11 [08:23:55]line Товар: 2710194800 [08:23:55]line ДТ-К-5 [08:23:55]line 127.960 * 76.20 [08:23:55]line = 9750.55 [08:23:55]line НДС 12% НСП 1% [08:23:55]line > о реализуемом товаре [08:23:55]line ОКРУГЛЕНИЕ: -0.55 [08:23:55]line ИТОГО: 9750.00 [08:23:55]line НСП 1% : 86.29 [08:23:55]line НДС 12% : 1035.46 [08:23:55]line Наличными: 0.00 [08:23:55]line Безнал.: 9750.00 [08:23:55]line Место: АЗС № 134 "Партнер Нефть" [08:23:55]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:23:55]line СНО: Общий режим [08:23:55]line Чек 41 27.07.2024 08:23 [08:23:55]line Смена: 432 ФФД: 1.0 [08:23:55]line ЗНМ: 0300000044 [08:23:55]line РНМ: 0000000000092660 [08:23:55]line Версия ККМ: 001 [08:23:55]line Платежная система: O! деньги [08:23:55]line ФМ: 0000000000874939 [08:23:55]line ФД: 118098 [08:23:55]line ФПД: 60190358569763 [08:23:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T082358&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118098&fm=60190358569763&tin=02508201610067®Number=0000000000092660&sum=975000 [08:23:56]OFD Sender: Processing packet 118098 [packets to send 85, broken 84] [08:23:56]ProducePacketName [08:23:56]name=ofd_packets/00118098 [08:23:56]OFD Sender: To server: pG, [08:23:56]CommunicateWithHost lk.salyk.kg:30040 [08:23:56]ConnectInit lk.salyk.kg [08:23:56]written 0, free lines is 4095 [08:23:56]Connected sock=10 [08:23:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 7B 46 04 01 EF 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D8 F3 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF E0 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 E0 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 21 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 94 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 E0 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 9E AE A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 52 CD 01 00 35 04 06 00 36 BE 28 F1 03 23 CF 6D F4 E9 B4 FD 02 7F [08:23:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 60 6D 47 00 FE 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 52 CD 01 00 F4 03 04 00 31 5C A4 66 B6 04 01 00 00 FA 36 D8 26 49 C1 25 26 [08:23:56]CommunicateWithHost err = 0 [08:23:56]CheckOFDResponse [08:23:56]1017 (14) - 77093643461234 [08:23:56]1041 (16) - 0000000000874939 [08:23:56]1040 (4) - 118098 [08:23:56]1012 (4) - 27.07.2024 02:32 [08:23:56]1206 (1) - 0 [08:23:56]OFD Sender: Remove packet 118098 [08:23:56]ProducePacketName [08:23:56]name=ofd_packets/00118098 [08:23:56]NVStorageDeleteData [08:23:56]Write to MH i2c: 01 00 00 C1 2D EE [08:23:56]Write i2c OK [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: 01 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: 01 07 00 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: 01 07 00 C1 2D 00 00 00 00 00 CC 0C CD [08:23:56]RasterBufferAndPrint [08:23:56]line [08:23:56]line [08:23:56]line [08:23:56]line [08:23:56]line [08:23:56]written 0, free lines is 3281 [08:23:56]MH_Cut [08:23:56]Write to MH i2c: D1 01 00 C8 2D 01 C7 [08:23:56]Write i2c OK [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: D1 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: D1 01 00 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: D1 01 00 C8 2D 00 C6 [08:23:56]Write to MH i2c: 01 00 00 C9 2D F6 [08:23:56]Write i2c OK [08:23:56]MH_I2C_Read... [08:23:56]OFD Sender: No OFD packet to send [08:23:57]*** Cut start [08:23:57]*** Partial cut [08:23:57]*** CUTSNS_PIN = 1 [08:23:57]*** CUTSNS_PIN = 0 [08:23:57]*** Brake cut motor [08:23:57]Read from MH i2c: 01 [08:23:57]MH_I2C_Read... [08:23:57]*** Stop cut motor [08:23:57]*** Cut end [08:23:57]Read from MH i2c: 01 07 00 [08:23:57]MH_I2C_Read... [08:23:57]Read from MH i2c: 01 07 00 C9 2D 00 00 00 00 00 FF 0F 0B [08:23:57]process_action close_receipt done [08:23:57]requested_data is exist [08:23:57]produce_requested_data [08:23:57]requested_item fm.sn is exist - process it [08:23:57]wFMCommunicate request_size=4 [08:23:57]MH_SAM_APDU [08:23:57]CAPDU: 80 11 00 00 [08:23:57]Write to MH i2c: E2 08 00 CA 2D 80 11 00 00 00 00 00 00 71 [08:23:57]Write i2c OK [08:23:57]MH_I2C_Read... [08:23:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:58]Read from MH i2c: E2 [08:23:58]MH_I2C_Read... [08:23:58]Read from MH i2c: E2 17 00 [08:23:58]MH_I2C_Read... [08:23:58]Read from MH i2c: E2 17 00 CA 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CC [08:23:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:23:58]wFMCommunicate OK [08:23:58]requested_item fd.num is exist - process it [08:23:58]SAM_PROTO_GetFieldsCounters [08:23:58]wFMCommunicate request_size=4 [08:23:58]MH_SAM_APDU [08:23:58]CAPDU: 80 13 00 00 [08:23:58]Write to MH i2c: E2 08 00 CB 2D 80 13 00 00 00 00 00 00 74 [08:23:58]Write i2c OK [08:23:58]MH_I2C_Read... [08:23:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:58]Read from MH i2c: E2 [08:23:58]MH_I2C_Read... [08:23:58]Read from MH i2c: E2 62 00 [08:23:58]MH_I2C_Read... [08:23:58]Read from MH i2c: E2 62 00 CB 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 52 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [08:23:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 52 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:23:58]wFMCommunicate OK [08:23:58]SAM_PROTO_GetFieldsCounters done [08:23:58]requested_item shift.num is exist - process it [08:23:58]requested_item shift.opened is exist - process it [08:23:58]req_shift_opened [08:23:58]FM_GetShiftState [08:23:58]SAM_PROTO_GetShiftState [08:23:58]wFMCommunicate request_size=4 [08:23:58]MH_SAM_APDU [08:23:58]CAPDU: 80 13 01 00 [08:23:58]Write to MH i2c: E2 08 00 CC 2D 80 13 01 00 00 00 00 00 76 [08:23:58]Write i2c OK [08:23:58]MH_I2C_Read... [08:23:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:58]Read from MH i2c: E2 [08:23:58]MH_I2C_Read... [08:23:58]Read from MH i2c: E2 0E 00 [08:23:58]MH_I2C_Read... [08:23:58]Read from MH i2c: E2 0E 00 CC 2D 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 03 [08:23:58]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [08:23:58]wFMCommunicate OK [08:23:58]SAM_PROTO_GetShiftState done [08:23:58]FM_GetShiftState done [08:23:58]req_shift_opened done [08:23:58]requested_item shift.open_date is exist - process it [08:23:58]req_shift_open_date [08:23:58]req_shift_open_date done [08:23:58]produce_requested_data done [08:23:58]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118098,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [08:23:58]process_action_free close_receipt [08:23:58]json_value_free [08:23:58]json_value_free done [08:23:58]process_json_proto returns [08:23:58]Send response to host [08:23:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118098,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [08:23:58]free response buf [08:23:58]execute_script done [08:23:58]execute_script returns [08:23:58]free content buf [08:23:58]Sock 9.Close socket [08:23:58]Sock 9.Thread stoped [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:42]OFD Sender: No OFD packet to send [08:24:47]OFD Sender: No OFD packet to send [08:24:52]OFD Sender: No OFD packet to send [08:24:57]OFD Sender: No OFD packet to send [08:25:02]OFD Sender: No OFD packet to send [08:25:03]accept exits with 7 [08:25:03]New connection [08:25:03]New thread 3067284836 created [08:25:03]Thread 3067428196 joined [08:25:03]Waiting for new connection... [08:25:03] Sock 7.Parse request [08:25:03]Sock 7.Check first char [08:25:03]Sock 7.First char is OK [08:25:03]request: POST /json_proto HTTP/1.0 [08:25:03]Method: POST [08:25:03]URL: /json_proto [08:25:03]Method is POST - this is cgi request [08:25:03]url: /json_proto [08:25:03]query_string will be loaded in cgi processing [08:25:03]execute_cgi json_proto POST (null) [08:25:03]execute_cgi path=json_proto method=POST [08:25:03]POST find Content-Length [08:25:03]Host: 172.17.45.7:8080 [08:25:03]Content-Length: 677 [08:25:03]Content-Type: application/json [08:25:03] [08:25:03]POST finish read [08:25:03]Found Content-Length = 677 [08:25:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:25:03]execute_script... [08:25: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)948970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:25:03]POST & json_proto [08:25:03]process_json_proto [08:25:03]json parsed OK: [08:25:03]protocol is kg_v1.0 [08:25:03]action value=close_receipt [08:25:03]process_action close_receipt [08:25:03]cmd_close_receipt [08:25:03]MH_GetDate [08:25:03]Write to MH i2c: F0 00 00 CD 2D E9 [08:25:03]Write i2c OK [08:25:03]MH_I2C_Read... [08:25:03]Read from MH i2c: F0 [08:25:03]MH_I2C_Read... [08:25:03]Read from MH i2c: F0 09 00 [08:25:03]MH_I2C_Read... [08:25:03]Read from MH i2c: F0 09 00 CD 2D 00 E3 AE A4 66 90 0F 3E 66 D0 [08:25:03]GetLastDocTimeStamp 1722068638 [08:25:03]current date 1722068707 [08:25:03]FM_GetShiftState [08:25:03]SAM_PROTO_GetShiftState [08:25:03]wFMCommunicate request_size=4 [08:25:03]MH_SAM_APDU [08:25:03]CAPDU: 80 13 01 00 [08:25:03]Write to MH i2c: E2 08 00 CE 2D 80 13 01 00 00 00 00 00 78 [08:25:03]Write i2c OK [08:25:03]MH_I2C_Read... [08:25:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:03]Read from MH i2c: E2 [08:25:03]MH_I2C_Read... [08:25:03]Read from MH i2c: E2 0E 00 [08:25:03]MH_I2C_Read... [08:25:03]Read from MH i2c: E2 0E 00 CE 2D 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 05 [08:25:03]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [08:25:03]wFMCommunicate OK [08:25:03]SAM_PROTO_GetShiftState done [08:25:03]FM_GetShiftState done [08:25:03]opened in 1722038845 [08:25:03]opened+sec_in_day 1722125245 [08:25:03]quantity*price = 50036 [08:25:03]sum+1 = 50037 [08:25:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 42 27.07.2024 08:25 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118099 ФПД: 28180276450081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T082507&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118099&fm=28180276450081&tin=02508201610067®Number=0000000000092660&sum=50000 [08:25:04]StoreToDocumentArchive [08:25:04]shift 432 fd 118099 [08:25:04]save to /storage/0432/doc_00118099 [08:25:04]save last doc name /storage/0432/doc_00118099 to /storage/kkm_last_doc_name [08:25:04]save OK [08:25:04]Clear old archive folders... [08:25:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:25:04]tlvbuf is 006D9720 [08:25:04]SAM_PROTO_ClearQueue [08:25:04]wFMCommunicate request_size=4 [08:25:04]MH_SAM_APDU [08:25:04]CAPDU: 80 09 00 00 [08:25:04]Write to MH i2c: E2 08 00 DB 2D 80 09 00 00 00 00 00 00 7A [08:25:04]Write i2c OK [08:25:04]MH_I2C_Read... [08:25:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:25:04]Read from MH i2c: E2 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: E2 03 00 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: E2 03 00 DB 2D 00 90 00 7C [08:25:04]RAPDU: 90 00 [08:25:04]wFMCommunicate OK [08:25:04]SAM_PROTO_ClearQueue done [08:25:04]KKMCreateOFDPacket [08:25:04]OFDProtocolAddRootSTLVToBuf [08:25:04]FM_MakeSignedData [08:25:04]FM_MakeSignedData [08:25:04]SAM_PROTO_SignData [08:25:04]wFMCommunicate request_size=4 [08:25:04]MH_SAM_APDU [08:25:04]CAPDU: 80 0D 01 02 [08:25:04]Write to MH i2c: E2 08 00 DC 2D 80 0D 01 02 00 00 00 00 82 [08:25:04]Write i2c OK [08:25:04]MH_I2C_Read... [08:25:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:25:04]Read from MH i2c: E2 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: E2 03 00 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: E2 03 00 DC 2D 00 90 00 7D [08:25:04]RAPDU: 90 00 [08:25:04]wFMCommunicate OK [08:25:04]wFMCommunicate request_size=255 [08:25:04]MH_SAM_APDU [08:25: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2A 00 00 00 F4 03 04 00 E3 AE A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 53 CD 01 00 35 04 06 00 19 [08:25:04]Write to MH i2c: E2 02 01 DD 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2A 00 00 00 F4 03 04 00 E3 AE A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 53 CD 01 00 35 04 06 00 19 00 00 B6 [08:25:04]Write i2c OK [08:25:04]MH_I2C_Read... [08:25:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:04]Read from MH i2c: E2 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: E2 03 00 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: E2 03 00 DD 2D 00 90 00 7E [08:25:04]RAPDU: 90 00 [08:25:04]wFMCommunicate OK [08:25:04]wFMCommunicate request_size=10 [08:25:04]MH_SAM_APDU [08:25:04]CAPDU: 80 0D 02 02 05 A1 3B 5E 13 21 [08:25:04]Write to MH i2c: E2 0D 00 DE 2D 80 0D 02 02 05 00 A1 3B 5E 13 21 00 00 FD [08:25:04]Write i2c OK [08:25:04]MH_I2C_Read... [08:25:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:05]Read from MH i2c: E2 [08:25:05]MH_I2C_Read... [08:25:05]Read from MH i2c: E2 03 00 [08:25:05]MH_I2C_Read... [08:25:05]Read from MH i2c: E2 03 00 DE 2D 00 90 00 7F [08:25:05]RAPDU: 90 00 [08:25:05]wFMCommunicate OK [08:25:05]wFMCommunicate request_size=4 [08:25:05]MH_SAM_APDU [08:25:05]CAPDU: 80 0D 03 02 [08:25:05]Write to MH i2c: E2 08 00 DF 2D 80 0D 03 02 00 00 00 00 87 [08:25:05]Write i2c OK [08:25:05]MH_I2C_Read... [08:25:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:25:05]Read from MH i2c: E2 [08:25:05]MH_I2C_Read... [08:25:05]Read from MH i2c: E2 0B 00 [08:25:05]MH_I2C_Read... [08:25:05]Read from MH i2c: E2 0B 00 DF 2D 00 CB 12 5E FF C9 1B 25 22 90 00 ED [08:25:05]RAPDU: CB 12 5E FF C9 1B 25 22 90 00 [08:25:05]wFMCommunicate OK [08:25:05]SAM_PROTO_SignData done [08:25:05]FM_MakeSignedData done [08:25:05]CreateOFDProtocolMessage [08:25:05]wFMCommunicate request_size=4 [08:25:05]MH_SAM_APDU [08:25:05]CAPDU: 80 11 00 00 [08:25:05]Write to MH i2c: E2 08 00 E0 2D 80 11 00 00 00 00 00 00 87 [08:25:05]Write i2c OK [08:25:05]MH_I2C_Read... [08:25:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:05]Read from MH i2c: E2 [08:25:05]MH_I2C_Read... [08:25:05]Read from MH i2c: E2 17 00 [08:25:05]MH_I2C_Read... [08:25:05]Read from MH i2c: E2 17 00 E0 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E2 [08:25:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:25:05]wFMCommunicate OK [08:25:05]CreateOFDProtocolMessage done [08:25:05]OFDSenderStorePacket 118099 [08:25:05]StoreOFDPacket docnum=118099 [08:25:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 70 39 07 01 AB 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2A 00 00 00 F4 03 04 00 E3 AE A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 53 CD 01 00 35 04 06 00 19 A1 3B 5E 13 21 CB 12 5E FF C9 1B 25 22 [08:25:05]CheckFolder [08:25:05]dirname=/storage/ofd_packets [08:25:05]CheckFolder done [08:25:05]ProducePacketName [08:25:05]name=ofd_packets/00118099 [08:25:05]NVStorageSaveData ofd_packets/00118099 [08:25:05]File name is /storage/ofd_packets/00118099 [08:25:05]Write 301 bytes [08:25:05]NVStorageSaveData done [08:25:05]OFDSenderStorePacket done [08:25:05]KKMCreateOFDPacket done [08:25:05]NVStorageSaveData kkm_last_timestamp [08:25:05]File name is /storage/kkm_last_timestamp [08:25:05]Write 4 bytes [08:25:05]NVStorageSaveData done [08:25:05]ExternCall_PrintAddStr [08:25:05]wPrintStart [08:25:05]Write to MH i2c: 01 00 00 E1 2D 0E [08:25:05]Write i2c OK [08:25:05]MH_I2C_Read... [08:25:05]Read from MH i2c: 01 [08:25:05]MH_I2C_Read... [08:25:05]Read from MH i2c: 01 07 00 [08:25:05]MH_I2C_Read... [08:25:05]Read from MH i2c: 01 07 00 E1 2D 00 00 00 00 00 FF 0F 23 [08:25:05]RasterBufferAndPrint [08:25:05]line Счет N : (1)948970 [08:25:05]line ИНН: 02508201610067 [08:25:05]line Контрольно-Кассовый Чек [08:25:05]line ПРОДАЖА [08:25:05]line ТРК (МРК, ГНК) : 41 [08:25:05]line Товар: 2710124130 [08:25:05]line Аи-92-К-4 [08:25:05]line 7.380 * 67.80 [08:25:05]line = 500.36 [08:25:05]line НДС 12% НСП 1% [08:25:05]line > о реализуемом товаре [08:25:05]line ОКРУГЛЕНИЕ: -0.36 [08:25:05]line ИТОГО: 500.00 [08:25:05]line Внесено: 500.00 [08:25:05]line СДАЧА: 0.00 [08:25:05]line НСП 1% : 4.43 [08:25:05]line НДС 12% : 53.14 [08:25:05]line Наличными: 500.00 [08:25:05]line Безнал.: 0.00 [08:25:05]line Место: АЗС № 134 "Партнер Нефть" [08:25:05]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:25:05]line СНО: Общий режим [08:25:05]line Чек 42 27.07.2024 08:25 [08:25:05]line Смена: 432 ФФД: 1.0 [08:25:05]line ЗНМ: 0300000044 [08:25:05]line РНМ: 0000000000092660 [08:25:05]line Версия ККМ: 001 [08:25:05]line ФМ: 0000000000874939 [08:25:05]line ФД: 118099 [08:25:05]line ФПД: 28180276450081 [08:25:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T082507&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118099&fm=28180276450081&tin=02508201610067®Number=0000000000092660&sum=50000 [08:25:05]written 0, free lines is 4095 [08:25:05]OFD Sender: Processing packet 118099 [packets to send 85, broken 84] [08:25:05]ProducePacketName [08:25:05]name=ofd_packets/00118099 [08:25:05]OFD Sender: To server: pG, [08:25:05]CommunicateWithHost lk.salyk.kg:30040 [08:25:05]ConnectInit lk.salyk.kg [08:25:05]Connected sock=10 [08:25:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 70 39 07 01 AB 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2A 00 00 00 F4 03 04 00 E3 AE A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 53 CD 01 00 35 04 06 00 19 A1 3B 5E 13 21 CB 12 5E FF C9 1B 25 22 [08:25:05]Write to MH i2c: 01 00 00 0B 2E 39 [08:25:05]Write i2c OK [08:25:05]MH_I2C_Read... [08:25:05]Read from MH i2c: 01 [08:25:05]MH_I2C_Read... [08:25:05]Read from MH i2c: 01 07 00 [08:25:05]MH_I2C_Read... [08:25:05]Read from MH i2c: 01 07 00 0B 2E 00 00 00 00 00 DC 0C 28 [08:25:05]RasterBufferAndPrint [08:25:05]line [08:25:05]line [08:25:05]line [08:25:05]line [08:25:05]line [08:25:05]written 0, free lines is 3298 [08:25:05]MH_Cut [08:25:05]Write to MH i2c: D1 01 00 12 2E 01 12 [08:25:05]Write i2c OK [08:25:05]MH_I2C_Read... [08:25:05]Read from MH i2c: D1 [08:25:05]MH_I2C_Read... [08:25:05]Read from MH i2c: D1 01 00 [08:25:05]MH_I2C_Read... [08:25:05]Read from MH i2c: D1 01 00 12 2E 00 11 [08:25:05]Write to MH i2c: 01 00 00 13 2E 41 [08:25:05]Write i2c OK [08:25:05]MH_I2C_Read... [08:25:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 18 A1 47 00 47 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 53 CD 01 00 F4 03 04 00 76 5C A4 66 B6 04 01 00 00 C6 33 7A 48 4D 55 4B 3D [08:25:05]CommunicateWithHost err = 0 [08:25:05]CheckOFDResponse [08:25:05]1017 (14) - 77093643461234 [08:25:05]1041 (16) - 0000000000874939 [08:25:05]1040 (4) - 118099 [08:25:05]1012 (4) - 27.07.2024 02:33 [08:25:05]1206 (1) - 0 [08:25:05]OFD Sender: Remove packet 118099 [08:25:05]ProducePacketName [08:25:05]name=ofd_packets/00118099 [08:25:05]NVStorageDeleteData [08:25:06]OFD Sender: No OFD packet to send [08:25:06]*** Cut start [08:25:06]*** Partial cut [08:25:06]*** CUTSNS_PIN = 1 [08:25:06]*** CUTSNS_PIN = 0 [08:25:06]*** Brake cut motor [08:25:06]Read from MH i2c: 01 [08:25:06]MH_I2C_Read... [08:25:06]*** Stop cut motor [08:25:06]*** Cut end [08:25:06]Read from MH i2c: 01 07 00 [08:25:06]MH_I2C_Read... [08:25:06]Read from MH i2c: 01 07 00 13 2E 00 00 00 00 00 FF 0F 56 [08:25:06]process_action close_receipt done [08:25:06]requested_data is exist [08:25:06]produce_requested_data [08:25:06]requested_item fm.sn is exist - process it [08:25:06]wFMCommunicate request_size=4 [08:25:06]MH_SAM_APDU [08:25:06]CAPDU: 80 11 00 00 [08:25:06]Write to MH i2c: E2 08 00 14 2E 80 11 00 00 00 00 00 00 BC [08:25:06]Write i2c OK [08:25:06]MH_I2C_Read... [08:25:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:06]Read from MH i2c: E2 [08:25:06]MH_I2C_Read... [08:25:06]Read from MH i2c: E2 17 00 [08:25:06]MH_I2C_Read... [08:25:06]Read from MH i2c: E2 17 00 14 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 17 [08:25:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:25:06]wFMCommunicate OK [08:25:06]requested_item fd.num is exist - process it [08:25:06]SAM_PROTO_GetFieldsCounters [08:25:06]wFMCommunicate request_size=4 [08:25:06]MH_SAM_APDU [08:25:06]CAPDU: 80 13 00 00 [08:25:06]Write to MH i2c: E2 08 00 15 2E 80 13 00 00 00 00 00 00 BF [08:25:06]Write i2c OK [08:25:06]MH_I2C_Read... [08:25:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:25:07]Read from MH i2c: E2 [08:25:07]MH_I2C_Read... [08:25:07]Read from MH i2c: E2 62 00 [08:25:07]MH_I2C_Read... [08:25:07]Read from MH i2c: E2 62 00 15 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 53 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [08:25:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 53 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:25:07]wFMCommunicate OK [08:25:07]SAM_PROTO_GetFieldsCounters done [08:25:07]requested_item shift.num is exist - process it [08:25:07]requested_item shift.opened is exist - process it [08:25:07]req_shift_opened [08:25:07]FM_GetShiftState [08:25:07]SAM_PROTO_GetShiftState [08:25:07]wFMCommunicate request_size=4 [08:25:07]MH_SAM_APDU [08:25:07]CAPDU: 80 13 01 00 [08:25:07]Write to MH i2c: E2 08 00 16 2E 80 13 01 00 00 00 00 00 C1 [08:25:07]Write i2c OK [08:25:07]MH_I2C_Read... [08:25:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:07]Read from MH i2c: E2 [08:25:07]MH_I2C_Read... [08:25:07]Read from MH i2c: E2 0E 00 [08:25:07]MH_I2C_Read... [08:25:07]Read from MH i2c: E2 0E 00 16 2E 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 4E [08:25:07]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [08:25:07]wFMCommunicate OK [08:25:07]SAM_PROTO_GetShiftState done [08:25:07]FM_GetShiftState done [08:25:07]req_shift_opened done [08:25:07]requested_item shift.open_date is exist - process it [08:25:07]req_shift_open_date [08:25:07]req_shift_open_date done [08:25:07]produce_requested_data done [08:25:07]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118099,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [08:25:07]process_action_free close_receipt [08:25:07]json_value_free [08:25:07]json_value_free done [08:25:07]process_json_proto returns [08:25:07]Send response to host [08:25:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118099,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [08:25:07]free response buf [08:25:07]execute_script done [08:25:07]execute_script returns [08:25:07]free content buf [08:25:07]Sock 7.Close socket [08:25:07]Sock 7.Thread stoped [08:25:11]OFD Sender: No OFD packet to send [08:25:16]OFD Sender: No OFD packet to send [08:25:21]OFD Sender: No OFD packet to send [08:25:26]OFD Sender: No OFD packet to send [08:25:31]OFD Sender: No OFD packet to send [08:25:36]OFD Sender: No OFD packet to send [08:25:41]OFD Sender: No OFD packet to send [08:25:46]OFD Sender: No OFD packet to send [08:25:51]OFD Sender: No OFD packet to send [08:25:56]OFD Sender: No OFD packet to send [08:26:01]OFD Sender: No OFD packet to send [08:26:06]OFD Sender: No OFD packet to send [08:26:11]OFD Sender: No OFD packet to send [08:26:16]OFD Sender: No OFD packet to send [08:26:21]OFD Sender: No OFD packet to send [08:26:26]OFD Sender: No OFD packet to send [08:26:31]OFD Sender: No OFD packet to send [08:26:36]OFD Sender: No OFD packet to send [08:26:41]OFD Sender: No OFD packet to send [08:26:46]OFD Sender: No OFD packet to send [08:26:51]OFD Sender: No OFD packet to send [08:26:56]OFD Sender: No OFD packet to send [08:27:01]OFD Sender: No OFD packet to send [08:27:06]OFD Sender: No OFD packet to send [08:27:11]OFD Sender: No OFD packet to send [08:27:16]OFD Sender: No OFD packet to send [08:27:21]OFD Sender: No OFD packet to send [08:27:26]OFD Sender: No OFD packet to send [08:27:31]OFD Sender: No OFD packet to send [08:27:36]OFD Sender: No OFD packet to send [08:27:41]OFD Sender: No OFD packet to send [08:27:46]OFD Sender: No OFD packet to send [08:27:51]OFD Sender: No OFD packet to send [08:27:56]OFD Sender: No OFD packet to send [08:28:01]OFD Sender: No OFD packet to send [08:28:06]OFD Sender: No OFD packet to send [08:28:11]OFD Sender: No OFD packet to send [08:28:16]OFD Sender: No OFD packet to send [08:28:21]OFD Sender: No OFD packet to send [08:28:26]OFD Sender: No OFD packet to send [08:28:31]OFD Sender: No OFD packet to send [08:28:36]OFD Sender: No OFD packet to send [08:28:41]OFD Sender: No OFD packet to send [08:28:46]OFD Sender: No OFD packet to send [08:28:51]OFD Sender: No OFD packet to send [08:28:56]OFD Sender: No OFD packet to send [08:29:01]OFD Sender: No OFD packet to send [08:29:06]OFD Sender: No OFD packet to send [08:29:11]OFD Sender: No OFD packet to send [08:29:16]OFD Sender: No OFD packet to send [08:29:21]OFD Sender: No OFD packet to send [08:29:26]OFD Sender: No OFD packet to send [08:29:31]OFD Sender: No OFD packet to send [08:29:36]OFD Sender: No OFD packet to send [08:29:41]OFD Sender: No OFD packet to send [08:29:46]OFD Sender: No OFD packet to send [08:29:51]OFD Sender: No OFD packet to send [08:29:56]OFD Sender: No OFD packet to send [08:30:01]OFD Sender: No OFD packet to send [08:30:06]OFD Sender: No OFD packet to send [08:30:11]OFD Sender: No OFD packet to send [08:30:16]OFD Sender: No OFD packet to send [08:30:21]OFD Sender: No OFD packet to send [08:30:26]OFD Sender: No OFD packet to send [08:30:31]OFD Sender: No OFD packet to send [08:30:36]OFD Sender: No OFD packet to send [08:30:41]OFD Sender: No OFD packet to send [08:30:46]OFD Sender: No OFD packet to send [08:30:51]OFD Sender: No OFD packet to send [08:30:56]OFD Sender: No OFD packet to send [08:31:01]OFD Sender: No OFD packet to send [08:31:06]OFD Sender: No OFD packet to send [08:31:11]OFD Sender: No OFD packet to send [08:31:16]OFD Sender: No OFD packet to send [08:31:21]OFD Sender: No OFD packet to send [08:31:26]OFD Sender: No OFD packet to send [08:31:31]OFD Sender: No OFD packet to send [08:31:36]OFD Sender: No OFD packet to send [08:31:41]OFD Sender: No OFD packet to send [08:31:46]OFD Sender: No OFD packet to send [08:31:51]OFD Sender: No OFD packet to send [08:31:56]OFD Sender: No OFD packet to send [08:32:01]OFD Sender: No OFD packet to send [08:32:06]OFD Sender: No OFD packet to send [08:32:11]OFD Sender: No OFD packet to send [08:32:16]OFD Sender: No OFD packet to send [08:32:21]OFD Sender: No OFD packet to send [08:32:26]OFD Sender: No OFD packet to send [08:32:31]OFD Sender: No OFD packet to send [08:32:36]OFD Sender: No OFD packet to send [08:32:41]OFD Sender: No OFD packet to send [08:32:46]OFD Sender: No OFD packet to send [08:32:51]OFD Sender: No OFD packet to send [08:32:56]OFD Sender: No OFD packet to send [08:33:01]OFD Sender: No OFD packet to send [08:33:06]OFD Sender: No OFD packet to send [08:33:11]OFD Sender: No OFD packet to send [08:33:16]OFD Sender: No OFD packet to send [08:33:21]OFD Sender: No OFD packet to send [08:33:26]OFD Sender: No OFD packet to send [08:33:31]OFD Sender: No OFD packet to send [08:33:36]OFD Sender: No OFD packet to send [08:33:41]OFD Sender: No OFD packet to send [08:33:46]OFD Sender: No OFD packet to send [08:33:51]OFD Sender: No OFD packet to send [08:33:56]OFD Sender: No OFD packet to send [08:34:01]OFD Sender: No OFD packet to send [08:34:06]OFD Sender: No OFD packet to send [08:34:11]OFD Sender: No OFD packet to send [08:34:16]OFD Sender: No OFD packet to send [08:34:21]OFD Sender: No OFD packet to send [08:34:26]OFD Sender: No OFD packet to send [08:34:31]OFD Sender: No OFD packet to send [08:34:36]OFD Sender: No OFD packet to send [08:34:41]OFD Sender: No OFD packet to send [08:34: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:20]accept exits with 9 [08:36:20]New connection [08:36:20]New thread 3067428196 created [08:36:20]Thread 3067284836 joined [08:36:20]Waiting for new connection... [08:36:20] Sock 9.Parse request [08:36:20]Sock 9.Check first char [08:36:20]Sock 9.First char is OK [08:36:20]request: POST /json_proto HTTP/1.0 [08:36:20]Method: POST [08:36:20]URL: /json_proto [08:36:20]Method is POST - this is cgi request [08:36:20]url: /json_proto [08:36:20]query_string will be loaded in cgi processing [08:36:20]execute_cgi json_proto POST (null) [08:36:20]execute_cgi path=json_proto method=POST [08:36:20]POST find Content-Length [08:36:20]Host: 172.17.45.7:8080 [08:36:20]Content-Length: 679 [08:36:20]Content-Type: application/json [08:36:20] [08:36:20]POST finish read [08:36:20]Found Content-Length = 679 [08:36:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:20]execute_script... [08:36: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)948971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:20]POST & json_proto [08:36:20]process_json_proto [08:36:20]json parsed OK: [08:36:20]protocol is kg_v1.0 [08:36:20]action value=close_receipt [08:36:20]process_action close_receipt [08:36:20]cmd_close_receipt [08:36:20]MH_GetDate [08:36:20]Write to MH i2c: F0 00 00 17 2E 34 [08:36:20]Write i2c OK [08:36:20]MH_I2C_Read... [08:36:20]Read from MH i2c: F0 [08:36:20]MH_I2C_Read... [08:36:20]Read from MH i2c: F0 09 00 [08:36:20]MH_I2C_Read... [08:36:20]Read from MH i2c: F0 09 00 17 2E 00 88 B1 A4 66 90 0F 3E 66 C3 [08:36:20]GetLastDocTimeStamp 1722068707 [08:36:20]current date 1722069384 [08:36:20]FM_GetShiftState [08:36:20]SAM_PROTO_GetShiftState [08:36:20]wFMCommunicate request_size=4 [08:36:20]MH_SAM_APDU [08:36:20]CAPDU: 80 13 01 00 [08:36:20]Write to MH i2c: E2 08 00 18 2E 80 13 01 00 00 00 00 00 C3 [08:36:20]Write i2c OK [08:36:20]MH_I2C_Read... [08:36:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:20]Read from MH i2c: E2 [08:36:20]MH_I2C_Read... [08:36:20]Read from MH i2c: E2 0E 00 [08:36:20]MH_I2C_Read... [08:36:20]Read from MH i2c: E2 0E 00 18 2E 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 50 [08:36:20]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [08:36:20]wFMCommunicate OK [08:36:20]SAM_PROTO_GetShiftState done [08:36:20]FM_GetShiftState done [08:36:20]opened in 1722038845 [08:36:20]opened+sec_in_day 1722125245 [08:36:20]quantity*price = 100050 [08:36:20]sum+1 = 100052 [08:36:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 43 27.07.2024 08:36 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118100 ФПД: 119613314993495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T083624&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118100&fm=119613314993495&tin=02508201610067®Number=0000000000092660&sum=100000 [08:36:21]StoreToDocumentArchive [08:36:21]shift 432 fd 118100 [08:36:21]save to /storage/0432/doc_00118100 [08:36:21]save last doc name /storage/0432/doc_00118100 to /storage/kkm_last_doc_name [08:36:21]save OK [08:36:21]Clear old archive folders... [08:36:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:36:21]tlvbuf is B6FC9390 [08:36:21]SAM_PROTO_ClearQueue [08:36:21]wFMCommunicate request_size=4 [08:36:21]MH_SAM_APDU [08:36:21]CAPDU: 80 09 00 00 [08:36:21]Write to MH i2c: E2 08 00 25 2E 80 09 00 00 00 00 00 00 C5 [08:36:21]Write i2c OK [08:36:21]MH_I2C_Read... [08:36:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:36:21]Read from MH i2c: E2 [08:36:21]MH_I2C_Read... [08:36:21]Read from MH i2c: E2 03 00 [08:36:21]MH_I2C_Read... [08:36:21]Read from MH i2c: E2 03 00 25 2E 00 90 00 C7 [08:36:21]RAPDU: 90 00 [08:36:21]wFMCommunicate OK [08:36:21]SAM_PROTO_ClearQueue done [08:36:21]KKMCreateOFDPacket [08:36:21]OFDProtocolAddRootSTLVToBuf [08:36:21]FM_MakeSignedData [08:36:21]FM_MakeSignedData [08:36:21]SAM_PROTO_SignData [08:36:21]wFMCommunicate request_size=4 [08:36:21]MH_SAM_APDU [08:36:21]CAPDU: 80 0D 01 02 [08:36:21]Write to MH i2c: E2 08 00 26 2E 80 0D 01 02 00 00 00 00 CD [08:36:21]Write i2c OK [08:36:21]MH_I2C_Read... [08:36:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:36:21]Read from MH i2c: E2 [08:36:21]MH_I2C_Read... [08:36:21]Read from MH i2c: E2 03 00 [08:36:21]MH_I2C_Read... [08:36:21]Read from MH i2c: E2 03 00 26 2E 00 90 00 C8 [08:36:21]RAPDU: 90 00 [08:36:21]wFMCommunicate OK [08:36:21]wFMCommunicate request_size=255 [08:36:21]MH_SAM_APDU [08:36:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 88 B1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 54 CD 01 00 35 04 06 00 6C C9 A5 26 [08:36:21]Write to MH i2c: E2 02 01 27 2E 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 88 B1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 54 CD 01 00 35 04 06 00 6C C9 A5 26 00 00 9E [08:36:21]Write i2c OK [08:36:21]MH_I2C_Read... [08:36:22]OFD Sender: No OFD packet to send [08:36:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:22]Read from MH i2c: E2 [08:36:22]MH_I2C_Read... [08:36:22]Read from MH i2c: E2 03 00 [08:36:22]MH_I2C_Read... [08:36:22]Read from MH i2c: E2 03 00 27 2E 00 90 00 C9 [08:36:22]RAPDU: 90 00 [08:36:22]wFMCommunicate OK [08:36:22]wFMCommunicate request_size=7 [08:36:22]MH_SAM_APDU [08:36:22]CAPDU: 80 0D 02 02 02 8D 57 [08:36:22]Write to MH i2c: E2 0A 00 28 2E 80 0D 02 02 02 00 8D 57 00 00 B8 [08:36:22]Write i2c OK [08:36:22]MH_I2C_Read... [08:36:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:22]Read from MH i2c: E2 [08:36:22]MH_I2C_Read... [08:36:22]Read from MH i2c: E2 03 00 [08:36:22]MH_I2C_Read... [08:36:22]Read from MH i2c: E2 03 00 28 2E 00 90 00 CA [08:36:22]RAPDU: 90 00 [08:36:22]wFMCommunicate OK [08:36:22]wFMCommunicate request_size=4 [08:36:22]MH_SAM_APDU [08:36:22]CAPDU: 80 0D 03 02 [08:36:22]Write to MH i2c: E2 08 00 29 2E 80 0D 03 02 00 00 00 00 D2 [08:36:22]Write i2c OK [08:36:22]MH_I2C_Read... [08:36:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:36:22]Read from MH i2c: E2 [08:36:22]MH_I2C_Read... [08:36:22]Read from MH i2c: E2 0B 00 [08:36:22]MH_I2C_Read... [08:36:22]Read from MH i2c: E2 0B 00 29 2E 00 24 44 E8 9E 5E 46 60 68 90 00 2D [08:36:22]RAPDU: 24 44 E8 9E 5E 46 60 68 90 00 [08:36:22]wFMCommunicate OK [08:36:22]SAM_PROTO_SignData done [08:36:22]FM_MakeSignedData done [08:36:22]CreateOFDProtocolMessage [08:36:22]wFMCommunicate request_size=4 [08:36:22]MH_SAM_APDU [08:36:22]CAPDU: 80 11 00 00 [08:36:22]Write to MH i2c: E2 08 00 2A 2E 80 11 00 00 00 00 00 00 D2 [08:36:22]Write i2c OK [08:36:22]MH_I2C_Read... [08:36:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:22]Read from MH i2c: E2 [08:36:22]MH_I2C_Read... [08:36:22]Read from MH i2c: E2 17 00 [08:36:22]MH_I2C_Read... [08:36:22]Read from MH i2c: E2 17 00 2A 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2D [08:36:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:36:22]wFMCommunicate OK [08:36:22]CreateOFDProtocolMessage done [08:36:22]OFDSenderStorePacket 118100 [08:36:22]StoreOFDPacket docnum=118100 [08:36:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 A8 1E 04 01 63 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 88 B1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 54 CD 01 00 35 04 06 00 6C C9 A5 26 8D 57 24 44 E8 9E 5E 46 60 68 [08:36:22]CheckFolder [08:36:22]dirname=/storage/ofd_packets [08:36:22]CheckFolder done [08:36:22]ProducePacketName [08:36:22]name=ofd_packets/00118100 [08:36:22]NVStorageSaveData ofd_packets/00118100 [08:36:22]File name is /storage/ofd_packets/00118100 [08:36:22]Write 298 bytes [08:36:22]NVStorageSaveData done [08:36:22]OFDSenderStorePacket done [08:36:22]KKMCreateOFDPacket done [08:36:22]NVStorageSaveData kkm_last_timestamp [08:36:22]File name is /storage/kkm_last_timestamp [08:36:22]Write 4 bytes [08:36:22]NVStorageSaveData done [08:36:22]ExternCall_PrintAddStr [08:36:22]wPrintStart [08:36:22]Write to MH i2c: 01 00 00 2B 2E 59 [08:36:22]Write i2c OK [08:36:22]MH_I2C_Read... [08:36:22]Read from MH i2c: 01 [08:36:22]MH_I2C_Read... [08:36:22]Read from MH i2c: 01 07 00 [08:36:22]MH_I2C_Read... [08:36:22]Read from MH i2c: 01 07 00 2B 2E 00 00 00 00 00 FF 0F 6E [08:36:22]RasterBufferAndPrint [08:36:22]line Счет N : (1)948971 [08:36:22]line ИНН: 02508201610067 [08:36:22]line Контрольно-Кассовый Чек [08:36:22]line ПРОДАЖА [08:36:22]line ТРК (МРК, ГНК) : 34 [08:36:22]line Товар: 2710194800 [08:36:22]line ДТ-К-5 [08:36:22]line 13.130 * 76.20 [08:36:22]line = 1000.51 [08:36:22]line НДС 12% НСП 1% [08:36:22]line > о реализуемом товаре [08:36:22]line ОКРУГЛЕНИЕ: -0.51 [08:36:22]line ИТОГО: 1000.00 [08:36:22]line Внесено: 1000.00 [08:36:22]line СДАЧА: 0.00 [08:36:22]line НСП 1% : 8.85 [08:36:22]line НДС 12% : 106.25 [08:36:22]line Наличными: 1000.00 [08:36:22]line Безнал.: 0.00 [08:36:22]line Место: АЗС № 134 "Партнер Нефть" [08:36:22]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:36:22]line СНО: Общий режим [08:36:22]line Чек 43 27.07.2024 08:36 [08:36:22]line Смена: 432 ФФД: 1.0 [08:36:22]line ЗНМ: 0300000044 [08:36:22]line РНМ: 0000000000092660 [08:36:22]line Версия ККМ: 001 [08:36:22]line ФМ: 0000000000874939 [08:36:22]line ФД: 118100 [08:36:22]line ФПД: 119613314993495 [08:36:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T083624&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118100&fm=119613314993495&tin=02508201610067®Number=0000000000092660&sum=100000 [08:36:22]OFD Sender: Processing packet 118100 [packets to send 85, broken 84] [08:36:22]ProducePacketName [08:36:22]name=ofd_packets/00118100 [08:36:22]OFD Sender: To server: pG, [08:36:22]CommunicateWithHost lk.salyk.kg:30040 [08:36:22]ConnectInit lk.salyk.kg [08:36:22]written 0, free lines is 4095 [08:36:22]Connected sock=10 [08:36:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 A8 1E 04 01 63 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 88 B1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 54 CD 01 00 35 04 06 00 6C C9 A5 26 8D 57 24 44 E8 9E 5E 46 60 68 [08:36:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 33 15 47 00 74 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 34 39 33 39 10 04 04 00 54 CD 01 00 F4 03 04 00 1B 5F A4 66 B6 04 01 00 00 AD C9 54 E5 4D 51 98 32 [08:36:22]CommunicateWithHost err = 0 [08:36:22]CheckOFDResponse [08:36:22]1017 (14) - 77093643461234 [08:36:22]1041 (16) - 0000000000874939 [08:36:22]1040 (4) - 118100 [08:36:22]1012 (4) - 27.07.2024 02:44 [08:36:22]1206 (1) - 0 [08:36:22]OFD Sender: Remove packet 118100 [08:36:22]ProducePacketName [08:36:22]name=ofd_packets/00118100 [08:36:22]NVStorageDeleteData [08:36:22]Write to MH i2c: 01 00 00 55 2E 83 [08:36:22]Write i2c OK [08:36:22]MH_I2C_Read... [08:36:22]Read from MH i2c: 01 [08:36:22]MH_I2C_Read... [08:36:22]Read from MH i2c: 01 07 00 [08:36:22]MH_I2C_Read... [08:36:22]Read from MH i2c: 01 07 00 55 2E 00 00 00 00 00 CD 0C 63 [08:36:22]RasterBufferAndPrint [08:36:22]line [08:36:22]line [08:36:22]line [08:36:22]line [08:36:22]line [08:36:22]written 0, free lines is 3283 [08:36:22]MH_Cut [08:36:22]Write to MH i2c: D1 01 00 5C 2E 01 5C [08:36:22]Write i2c OK [08:36:22]MH_I2C_Read... [08:36:22]Read from MH i2c: D1 [08:36:22]MH_I2C_Read... [08:36:22]Read from MH i2c: D1 01 00 [08:36:22]MH_I2C_Read... [08:36:22]Read from MH i2c: D1 01 00 5C 2E 00 5B [08:36:22]Write to MH i2c: 01 00 00 5D 2E 8B [08:36:22]Write i2c OK [08:36:22]MH_I2C_Read... [08:36:23]OFD Sender: No OFD packet to send [08:36:23]*** Cut start [08:36:23]*** Partial cut [08:36:23]*** CUTSNS_PIN = 1 [08:36:23]*** CUTSNS_PIN = 0 [08:36:23]*** Brake cut motor [08:36:24]Read from MH i2c: 01 [08:36:24]MH_I2C_Read... [08:36:24]*** Stop cut motor [08:36:24]*** Cut end [08:36:24]Read from MH i2c: 01 07 00 [08:36:24]MH_I2C_Read... [08:36:24]Read from MH i2c: 01 07 00 5D 2E 00 00 00 00 00 FF 0F A0 [08:36:24]process_action close_receipt done [08:36:24]requested_data is exist [08:36:24]produce_requested_data [08:36:24]requested_item fm.sn is exist - process it [08:36:24]wFMCommunicate request_size=4 [08:36:24]MH_SAM_APDU [08:36:24]CAPDU: 80 11 00 00 [08:36:24]Write to MH i2c: E2 08 00 5E 2E 80 11 00 00 00 00 00 00 06 [08:36:24]Write i2c OK [08:36:24]MH_I2C_Read... [08:36:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:24]Read from MH i2c: E2 [08:36:24]MH_I2C_Read... [08:36:24]Read from MH i2c: E2 17 00 [08:36:24]MH_I2C_Read... [08:36:24]Read from MH i2c: E2 17 00 5E 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 61 [08:36:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:36:24]wFMCommunicate OK [08:36:24]requested_item fd.num is exist - process it [08:36:24]SAM_PROTO_GetFieldsCounters [08:36:24]wFMCommunicate request_size=4 [08:36:24]MH_SAM_APDU [08:36:24]CAPDU: 80 13 00 00 [08:36:24]Write to MH i2c: E2 08 00 5F 2E 80 13 00 00 00 00 00 00 09 [08:36:24]Write i2c OK [08:36:24]MH_I2C_Read... [08:36:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:36:24]Read from MH i2c: E2 [08:36:24]MH_I2C_Read... [08:36:24]Read from MH i2c: E2 62 00 [08:36:24]MH_I2C_Read... [08:36:24]Read from MH i2c: E2 62 00 5F 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 54 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [08:36:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 54 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:36:24]wFMCommunicate OK [08:36:24]SAM_PROTO_GetFieldsCounters done [08:36:24]requested_item shift.num is exist - process it [08:36:24]requested_item shift.opened is exist - process it [08:36:24]req_shift_opened [08:36:24]FM_GetShiftState [08:36:24]SAM_PROTO_GetShiftState [08:36:24]wFMCommunicate request_size=4 [08:36:24]MH_SAM_APDU [08:36:24]CAPDU: 80 13 01 00 [08:36:24]Write to MH i2c: E2 08 00 60 2E 80 13 01 00 00 00 00 00 0B [08:36:24]Write i2c OK [08:36:24]MH_I2C_Read... [08:36:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:24]Read from MH i2c: E2 [08:36:24]MH_I2C_Read... [08:36:24]Read from MH i2c: E2 0E 00 [08:36:24]MH_I2C_Read... [08:36:24]Read from MH i2c: E2 0E 00 60 2E 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 98 [08:36:24]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [08:36:24]wFMCommunicate OK [08:36:24]SAM_PROTO_GetShiftState done [08:36:24]FM_GetShiftState done [08:36:24]req_shift_opened done [08:36:24]requested_item shift.open_date is exist - process it [08:36:24]req_shift_open_date [08:36:24]req_shift_open_date done [08:36:24]produce_requested_data done [08:36:24]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118100,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [08:36:24]process_action_free close_receipt [08:36:24]json_value_free [08:36:24]json_value_free done [08:36:24]process_json_proto returns [08:36:24]Send response to host [08:36:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118100,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [08:36:24]free response buf [08:36:24]execute_script done [08:36:24]execute_script returns [08:36:24]free content buf [08:36:24]Sock 9.Close socket [08:36:24]Sock 9.Thread stoped [08:36:28]OFD Sender: No OFD packet to send [08:36:33]OFD Sender: No OFD packet to send [08:36:38]OFD Sender: No OFD packet to send [08:36:43]OFD Sender: No OFD packet to send [08:36:48]OFD Sender: No OFD packet to send [08:36:53]OFD Sender: No OFD packet to send [08:36:58]OFD Sender: No OFD packet to send [08:37:03]OFD Sender: No OFD packet to send [08:37:08]OFD Sender: No OFD packet to send [08:37:13]OFD Sender: No OFD packet to send [08:37:18]OFD Sender: No OFD packet to send [08:37:23]OFD Sender: No OFD packet to send [08:37:28]OFD Sender: No OFD packet to send [08:37:33]OFD Sender: No OFD packet to send [08:37:38]OFD Sender: No OFD packet to send [08:37:43]OFD Sender: No OFD packet to send [08:37:48]OFD Sender: No OFD packet to send [08:37:53]OFD Sender: No OFD packet to send [08:37:58]OFD Sender: No OFD packet to send [08:38:03]OFD Sender: No OFD packet to send [08:38:08]OFD Sender: No OFD packet to send [08:38:13]OFD Sender: No OFD packet to send [08:38:18]OFD Sender: No OFD packet to send [08:38:23]OFD Sender: No OFD packet to send [08:38:28]OFD Sender: No OFD packet to send [08:38:33]OFD Sender: No OFD packet to send [08:38:38]OFD Sender: No OFD packet to send [08:38:43]OFD Sender: No OFD packet to send [08:38:48]OFD Sender: No OFD packet to send [08:38:53]OFD Sender: No OFD packet to send [08:38:58]OFD Sender: No OFD packet to send [08:39:03]OFD Sender: No OFD packet to send [08:39:08]OFD Sender: No OFD packet to send [08:39:13]OFD Sender: No OFD packet to send [08:39:18]OFD Sender: No OFD packet to send [08:39:23]OFD Sender: No OFD packet to send [08:39:28]OFD Sender: No OFD packet to send [08:39:33]OFD Sender: No OFD packet to send [08:39:38]OFD Sender: No OFD packet to send [08:39:43]OFD Sender: No OFD packet to send [08:39:48]OFD Sender: No OFD packet to send [08:39:53]OFD Sender: No OFD packet to send [08:39:58]OFD Sender: No OFD packet to send [08:40:03]OFD Sender: No OFD packet to send [08:40:08]OFD Sender: No OFD packet to send [08:40:13]OFD Sender: No OFD packet to send [08:40:18]OFD Sender: No OFD packet to send [08:40:23]OFD Sender: No OFD packet to send [08:40:28]OFD Sender: No OFD packet to send [08:40:33]OFD Sender: No OFD packet to send [08:40:38]OFD Sender: No OFD packet to send [08:40:43]OFD Sender: No OFD packet to send [08:40:48]OFD Sender: No OFD packet to send [08:40:53]OFD Sender: No OFD packet to send [08:40:58]OFD Sender: No OFD packet to send [08:41:03]OFD Sender: No OFD packet to send [08:41:08]OFD Sender: No OFD packet to send [08:41:13]OFD Sender: No OFD packet to send [08:41:18]OFD Sender: No OFD packet to send [08:41:23]OFD Sender: No OFD packet to send [08:41:28]OFD Sender: No OFD packet to send [08:41:33]OFD Sender: No OFD packet to send [08:41:38]OFD Sender: No OFD packet to send [08:41:43]OFD Sender: No OFD packet to send [08:41:48]OFD Sender: No OFD packet to send [08:41:53]OFD Sender: No OFD packet to send [08:41:58]OFD Sender: No OFD packet to send [08:42:03]OFD Sender: No OFD packet to send [08:42:08]OFD Sender: No OFD packet to send [08:42:13]OFD Sender: No OFD packet to send [08:42:18]OFD Sender: No OFD packet to send [08:42:23]OFD Sender: No OFD packet to send [08:42:27]accept exits with 7 [08:42:27]New connection [08:42:27]New thread 3067284836 created [08:42:27]Thread 3067428196 joined [08:42:27]Waiting for new connection... [08:42:27] Sock 7.Parse request [08:42:27]Sock 7.Check first char [08:42:27]Sock 7.First char is OK [08:42:27]request: POST /json_proto HTTP/1.0 [08:42:27]Method: POST [08:42:27]URL: /json_proto [08:42:27]Method is POST - this is cgi request [08:42:27]url: /json_proto [08:42:27]query_string will be loaded in cgi processing [08:42:27]execute_cgi json_proto POST (null) [08:42:27]execute_cgi path=json_proto method=POST [08:42:27]POST find Content-Length [08:42:27]Host: 172.17.45.7:8080 [08:42:27]Content-Length: 677 [08:42:27]Content-Type: application/json [08:42:27] [08:42:27]POST finish read [08:42:27]Found Content-Length = 677 [08:42:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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" ] } } [08:42:27]execute_script... [08:42: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)948972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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" ] } } [08:42:27]POST & json_proto [08:42:27]process_json_proto [08:42:27]json parsed OK: [08:42:27]protocol is kg_v1.0 [08:42:27]action value=close_receipt [08:42:27]process_action close_receipt [08:42:27]cmd_close_receipt [08:42:27]MH_GetDate [08:42:27]Write to MH i2c: F0 00 00 61 2E 7E [08:42:27]Write i2c OK [08:42:27]MH_I2C_Read... [08:42:27]Read from MH i2c: F0 [08:42:27]MH_I2C_Read... [08:42:27]Read from MH i2c: F0 09 00 [08:42:27]MH_I2C_Read... [08:42:27]Read from MH i2c: F0 09 00 61 2E 00 F7 B2 A4 66 90 0F 3E 66 7D [08:42:27]GetLastDocTimeStamp 1722069384 [08:42:27]current date 1722069751 [08:42:27]FM_GetShiftState [08:42:27]SAM_PROTO_GetShiftState [08:42:27]wFMCommunicate request_size=4 [08:42:27]MH_SAM_APDU [08:42:27]CAPDU: 80 13 01 00 [08:42:27]Write to MH i2c: E2 08 00 62 2E 80 13 01 00 00 00 00 00 0D [08:42:27]Write i2c OK [08:42:27]MH_I2C_Read... [08:42:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:27]Read from MH i2c: E2 [08:42:27]MH_I2C_Read... [08:42:27]Read from MH i2c: E2 0E 00 [08:42:27]MH_I2C_Read... [08:42:27]Read from MH i2c: E2 0E 00 62 2E 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 9A [08:42:27]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [08:42:27]wFMCommunicate OK [08:42:27]SAM_PROTO_GetShiftState done [08:42:27]FM_GetShiftState done [08:42:27]opened in 1722038845 [08:42:27]opened+sec_in_day 1722125245 [08:42:27]quantity*price = 20001 [08:42:27]sum+1 = 20002 [08:42:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 44 27.07.2024 08:42 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118101 ФПД: 218346620094007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T084231&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118101&fm=218346620094007&tin=02508201610067®Number=0000000000092660&sum=20000 [08:42:28]StoreToDocumentArchive [08:42:28]shift 432 fd 118101 [08:42:28]save to /storage/0432/doc_00118101 [08:42:28]save last doc name /storage/0432/doc_00118101 to /storage/kkm_last_doc_name [08:42:28]save OK [08:42:28]Clear old archive folders... [08:42:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:42:28]tlvbuf is 006E3080 [08:42:28]SAM_PROTO_ClearQueue [08:42:28]wFMCommunicate request_size=4 [08:42:28]MH_SAM_APDU [08:42:28]CAPDU: 80 09 00 00 [08:42:28]Write to MH i2c: E2 08 00 6F 2E 80 09 00 00 00 00 00 00 0F [08:42:28]Write i2c OK [08:42:28]MH_I2C_Read... [08:42:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:42:28]Read from MH i2c: E2 [08:42:28]MH_I2C_Read... [08:42:28]Read from MH i2c: E2 03 00 [08:42:28]MH_I2C_Read... [08:42:28]Read from MH i2c: E2 03 00 6F 2E 00 90 00 11 [08:42:28]RAPDU: 90 00 [08:42:28]wFMCommunicate OK [08:42:28]SAM_PROTO_ClearQueue done [08:42:28]KKMCreateOFDPacket [08:42:28]OFDProtocolAddRootSTLVToBuf [08:42:28]FM_MakeSignedData [08:42:28]FM_MakeSignedData [08:42:28]SAM_PROTO_SignData [08:42:28]wFMCommunicate request_size=4 [08:42:28]MH_SAM_APDU [08:42:28]CAPDU: 80 0D 01 02 [08:42:28]Write to MH i2c: E2 08 00 70 2E 80 0D 01 02 00 00 00 00 17 [08:42:28]Write i2c OK [08:42:28]MH_I2C_Read... [08:42:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:42:28]Read from MH i2c: E2 [08:42:28]MH_I2C_Read... [08:42:28]Read from MH i2c: E2 03 00 [08:42:28]MH_I2C_Read... [08:42:28]Read from MH i2c: E2 03 00 70 2E 00 90 00 12 [08:42:28]RAPDU: 90 00 [08:42:28]wFMCommunicate OK [08:42:28]wFMCommunicate request_size=255 [08:42:28]MH_SAM_APDU [08:42: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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 F7 B2 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 55 CD 01 00 35 04 06 00 C6 [08:42:28]Write to MH i2c: E2 02 01 71 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 F7 B2 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 55 CD 01 00 35 04 06 00 C6 00 00 16 [08:42:28]Write i2c OK [08:42:28]MH_I2C_Read... [08:42:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:29]Read from MH i2c: E2 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: E2 03 00 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: E2 03 00 71 2E 00 90 00 13 [08:42:29]RAPDU: 90 00 [08:42:29]wFMCommunicate OK [08:42:29]wFMCommunicate request_size=10 [08:42:29]MH_SAM_APDU [08:42:29]CAPDU: 80 0D 02 02 05 95 C8 BA 86 37 [08:42:29]Write to MH i2c: E2 0D 00 72 2E 80 0D 02 02 05 00 95 C8 BA 86 37 00 00 F8 [08:42:29]Write i2c OK [08:42:29]MH_I2C_Read... [08:42:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:29]Read from MH i2c: E2 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: E2 03 00 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: E2 03 00 72 2E 00 90 00 14 [08:42:29]RAPDU: 90 00 [08:42:29]wFMCommunicate OK [08:42:29]wFMCommunicate request_size=4 [08:42:29]MH_SAM_APDU [08:42:29]CAPDU: 80 0D 03 02 [08:42:29]Write to MH i2c: E2 08 00 73 2E 80 0D 03 02 00 00 00 00 1C [08:42:29]Write i2c OK [08:42:29]MH_I2C_Read... [08:42:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:42:29]Read from MH i2c: E2 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: E2 0B 00 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: E2 0B 00 73 2E 00 80 08 D8 73 04 FA 69 CF 90 00 26 [08:42:29]RAPDU: 80 08 D8 73 04 FA 69 CF 90 00 [08:42:29]wFMCommunicate OK [08:42:29]SAM_PROTO_SignData done [08:42:29]FM_MakeSignedData done [08:42:29]CreateOFDProtocolMessage [08:42:29]wFMCommunicate request_size=4 [08:42:29]MH_SAM_APDU [08:42:29]CAPDU: 80 11 00 00 [08:42:29]Write to MH i2c: E2 08 00 74 2E 80 11 00 00 00 00 00 00 1C [08:42:29]Write i2c OK [08:42:29]MH_I2C_Read... [08:42:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:29]Read from MH i2c: E2 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: E2 17 00 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: E2 17 00 74 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 77 [08:42:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:42:29]wFMCommunicate OK [08:42:29]CreateOFDProtocolMessage done [08:42:29]OFDSenderStorePacket 118101 [08:42:29]StoreOFDPacket docnum=118101 [08:42:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 5E 06 07 01 5F 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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 F7 B2 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 55 CD 01 00 35 04 06 00 C6 95 C8 BA 86 37 80 08 D8 73 04 FA 69 CF [08:42:29]CheckFolder [08:42:29]dirname=/storage/ofd_packets [08:42:29]CheckFolder done [08:42:29]ProducePacketName [08:42:29]name=ofd_packets/00118101 [08:42:29]NVStorageSaveData ofd_packets/00118101 [08:42:29]File name is /storage/ofd_packets/00118101 [08:42:29]Write 301 bytes [08:42:29]NVStorageSaveData done [08:42:29]OFDSenderStorePacket done [08:42:29]KKMCreateOFDPacket done [08:42:29]NVStorageSaveData kkm_last_timestamp [08:42:29]File name is /storage/kkm_last_timestamp [08:42:29]Write 4 bytes [08:42:29]NVStorageSaveData done [08:42:29]ExternCall_PrintAddStr [08:42:29]wPrintStart [08:42:29]Write to MH i2c: 01 00 00 75 2E A3 [08:42:29]Write i2c OK [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: 01 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: 01 07 00 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: 01 07 00 75 2E 00 00 00 00 00 FF 0F B8 [08:42:29]RasterBufferAndPrint [08:42:29]line Счет N : (1)948972 [08:42:29]line ИНН: 02508201610067 [08:42:29]line Контрольно-Кассовый Чек [08:42:29]line ПРОДАЖА [08:42:29]line ТРК (МРК, ГНК) : 61 [08:42:29]line Товар: 2710124130 [08:42:29]line Аи-92-К-4 [08:42:29]line 2.950 * 67.80 [08:42:29]line = 200.01 [08:42:29]line НДС 12% НСП 1% [08:42:29]line > о реализуемом товаре [08:42:29]line ОКРУГЛЕНИЕ: -0.01 [08:42:29]line ИТОГО: 200.00 [08:42:29]line Внесено: 200.00 [08:42:29]line СДАЧА: 0.00 [08:42:29]line НСП 1% : 1.77 [08:42:29]line НДС 12% : 21.24 [08:42:29]line Наличными: 200.00 [08:42:29]line Безнал.: 0.00 [08:42:29]line Место: АЗС № 134 "Партнер Нефть" [08:42:29]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:42:29]line СНО: Общий режим [08:42:29]line Чек 44 27.07.2024 08:42 [08:42:29]line Смена: 432 ФФД: 1.0 [08:42:29]line ЗНМ: 0300000044 [08:42:29]line РНМ: 0000000000092660 [08:42:29]line Версия ККМ: 001 [08:42:29]line ФМ: 0000000000874939 [08:42:29]line ФД: 118101 [08:42:29]line ФПД: 218346620094007 [08:42:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T084231&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118101&fm=218346620094007&tin=02508201610067®Number=0000000000092660&sum=20000 [08:42:29]written 0, free lines is 4095 [08:42:29]OFD Sender: Processing packet 118101 [packets to send 85, broken 84] [08:42:29]ProducePacketName [08:42:29]name=ofd_packets/00118101 [08:42:29]OFD Sender: To server: pG, [08:42:29]CommunicateWithHost lk.salyk.kg:30040 [08:42:29]ConnectInit lk.salyk.kg [08:42:29]Connected sock=9 [08:42:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 5E 06 07 01 5F 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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 F7 B2 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 55 CD 01 00 35 04 06 00 C6 95 C8 BA 86 37 80 08 D8 73 04 FA 69 CF [08:42:29]Write to MH i2c: 01 00 00 9F 2E CD [08:42:29]Write i2c OK [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: 01 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: 01 07 00 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: 01 07 00 9F 2E 00 00 00 00 00 D2 0C B2 [08:42:29]RasterBufferAndPrint [08:42:29]line [08:42:29]line [08:42:29]line [08:42:29]line [08:42:29]line [08:42:29]written 0, free lines is 3288 [08:42:29]MH_Cut [08:42:29]Write to MH i2c: D1 01 00 A6 2E 01 A6 [08:42:29]Write i2c OK [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: D1 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: D1 01 00 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: D1 01 00 A6 2E 00 A5 [08:42:29]Write to MH i2c: 01 00 00 A7 2E D5 [08:42:29]Write i2c OK [08:42:29]MH_I2C_Read... [08:42:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E5 7E 47 00 EB 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 55 CD 01 00 F4 03 04 00 8B 60 A4 66 B6 04 01 00 00 A6 9F A9 62 DF 43 D7 34 [08:42:30]CommunicateWithHost err = 0 [08:42:30]CheckOFDResponse [08:42:30]1017 (14) - 77093643461234 [08:42:30]1041 (16) - 0000000000874939 [08:42:30]1040 (4) - 118101 [08:42:30]1012 (4) - 27.07.2024 02:50 [08:42:30]1206 (1) - 0 [08:42:30]OFD Sender: Remove packet 118101 [08:42:30]ProducePacketName [08:42:30]name=ofd_packets/00118101 [08:42:30]NVStorageDeleteData [08:42:30]OFD Sender: No OFD packet to send [08:42:30]*** Cut start [08:42:30]*** Partial cut [08:42:30]*** CUTSNS_PIN = 1 [08:42:30]*** CUTSNS_PIN = 0 [08:42:30]*** Brake cut motor [08:42:31]Read from MH i2c: 01 [08:42:31]MH_I2C_Read... [08:42:31]*** Stop cut motor [08:42:31]*** Cut end [08:42:31]Read from MH i2c: 01 07 00 [08:42:31]MH_I2C_Read... [08:42:31]Read from MH i2c: 01 07 00 A7 2E 00 00 00 00 00 FF 0F EA [08:42:31]process_action close_receipt done [08:42:31]requested_data is exist [08:42:31]produce_requested_data [08:42:31]requested_item fm.sn is exist - process it [08:42:31]wFMCommunicate request_size=4 [08:42:31]MH_SAM_APDU [08:42:31]CAPDU: 80 11 00 00 [08:42:31]Write to MH i2c: E2 08 00 A8 2E 80 11 00 00 00 00 00 00 50 [08:42:31]Write i2c OK [08:42:31]MH_I2C_Read... [08:42:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:31]Read from MH i2c: E2 [08:42:31]MH_I2C_Read... [08:42:31]Read from MH i2c: E2 17 00 [08:42:31]MH_I2C_Read... [08:42:31]Read from MH i2c: E2 17 00 A8 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AB [08:42:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:42:31]wFMCommunicate OK [08:42:31]requested_item fd.num is exist - process it [08:42:31]SAM_PROTO_GetFieldsCounters [08:42:31]wFMCommunicate request_size=4 [08:42:31]MH_SAM_APDU [08:42:31]CAPDU: 80 13 00 00 [08:42:31]Write to MH i2c: E2 08 00 A9 2E 80 13 00 00 00 00 00 00 53 [08:42:31]Write i2c OK [08:42:31]MH_I2C_Read... [08:42:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:42:31]Read from MH i2c: E2 [08:42:31]MH_I2C_Read... [08:42:31]Read from MH i2c: E2 62 00 [08:42:31]MH_I2C_Read... [08:42:31]Read from MH i2c: E2 62 00 A9 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 55 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [08:42:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 55 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:42:31]wFMCommunicate OK [08:42:31]SAM_PROTO_GetFieldsCounters done [08:42:31]requested_item shift.num is exist - process it [08:42:31]requested_item shift.opened is exist - process it [08:42:31]req_shift_opened [08:42:31]FM_GetShiftState [08:42:31]SAM_PROTO_GetShiftState [08:42:31]wFMCommunicate request_size=4 [08:42:31]MH_SAM_APDU [08:42:31]CAPDU: 80 13 01 00 [08:42:31]Write to MH i2c: E2 08 00 AA 2E 80 13 01 00 00 00 00 00 55 [08:42:31]Write i2c OK [08:42:31]MH_I2C_Read... [08:42:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:31]Read from MH i2c: E2 [08:42:31]MH_I2C_Read... [08:42:31]Read from MH i2c: E2 0E 00 [08:42:31]MH_I2C_Read... [08:42:31]Read from MH i2c: E2 0E 00 AA 2E 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 E2 [08:42:31]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [08:42:31]wFMCommunicate OK [08:42:31]SAM_PROTO_GetShiftState done [08:42:31]FM_GetShiftState done [08:42:31]req_shift_opened done [08:42:31]requested_item shift.open_date is exist - process it [08:42:31]req_shift_open_date [08:42:31]req_shift_open_date done [08:42:31]produce_requested_data done [08:42:31]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118101,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [08:42:31]process_action_free close_receipt [08:42:31]json_value_free [08:42:31]json_value_free done [08:42:31]process_json_proto returns [08:42:31]Send response to host [08:42:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118101,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [08:42:31]free response buf [08:42:31]execute_script done [08:42:31]execute_script returns [08:42:31]free content buf [08:42:31]Sock 7.Close socket [08:42:31]Sock 7.Thread stoped [08:42:35]OFD Sender: No OFD packet to send [08:42:40]OFD Sender: No OFD packet to send [08:42:45]OFD Sender: No OFD packet to send [08:42:50]OFD Sender: No OFD packet to send [08:42:55]OFD Sender: No OFD packet to send [08:43:00]OFD Sender: No OFD packet to send [08:43:05]OFD Sender: No OFD packet to send [08:43:10]OFD Sender: No OFD packet to send [08:43:15]OFD Sender: No OFD packet to send [08:43:20]OFD Sender: No OFD packet to send [08:43:25]OFD Sender: No OFD packet to send [08:43:30]OFD Sender: No OFD packet to send [08:43:35]OFD Sender: No OFD packet to send [08:43:40]OFD Sender: No OFD packet to send [08:43:45]OFD Sender: No OFD packet to send [08:43:50]OFD Sender: No OFD packet to send [08:43:55]OFD Sender: No OFD packet to send [08:44:00]OFD Sender: No OFD packet to send [08:44:05]OFD Sender: No OFD packet to send [08:44:10]OFD Sender: No OFD packet to send [08:44:15]OFD Sender: No OFD packet to send [08:44:20]OFD Sender: No OFD packet to send [08:44:25]OFD Sender: No OFD packet to send [08:44:30]OFD Sender: No OFD packet to send [08:44:35]OFD Sender: No OFD packet to send [08:44:40]OFD Sender: No OFD packet to send [08:44:45]OFD Sender: No OFD packet to send [08:44:50]OFD Sender: No OFD packet to send [08:44:55]OFD Sender: No OFD packet to send [08:45:00]OFD Sender: No OFD packet to send [08:45:05]OFD Sender: No OFD packet to send [08:45:05]accept exits with 10 [08:45:05]New connection [08:45:05]New thread 3067428196 created [08:45:05]Thread 3067284836 joined [08:45:05]Waiting for new connection... [08:45:05] Sock 10.Parse request [08:45:05]Sock 10.Check first char [08:45:05]Sock 10.First char is OK [08:45:05]request: POST /json_proto HTTP/1.0 [08:45:05]Method: POST [08:45:05]URL: /json_proto [08:45:05]Method is POST - this is cgi request [08:45:05]url: /json_proto [08:45:05]query_string will be loaded in cgi processing [08:45:05]execute_cgi json_proto POST (null) [08:45:05]execute_cgi path=json_proto method=POST [08:45:05]POST find Content-Length [08:45:05]Host: 172.17.45.7:8080 [08:45:05]Content-Length: 675 [08:45:05]Content-Type: application/json [08:45:05] [08:45:05]POST finish read [08:45:05]Found Content-Length = 675 [08:45:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:05]execute_script... [08:45:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:05]POST & json_proto [08:45:05]process_json_proto [08:45:05]json parsed OK: [08:45:05]protocol is kg_v1.0 [08:45:05]action value=close_receipt [08:45:05]process_action close_receipt [08:45:05]cmd_close_receipt [08:45:05]MH_GetDate [08:45:05]Write to MH i2c: F0 00 00 AB 2E C8 [08:45:05]Write i2c OK [08:45:05]MH_I2C_Read... [08:45:05]Read from MH i2c: F0 [08:45:05]MH_I2C_Read... [08:45:05]Read from MH i2c: F0 09 00 [08:45:05]MH_I2C_Read... [08:45:05]Read from MH i2c: F0 09 00 AB 2E 00 95 B3 A4 66 90 0F 3E 66 66 [08:45:05]GetLastDocTimeStamp 1722069751 [08:45:05]current date 1722069909 [08:45:05]FM_GetShiftState [08:45:05]SAM_PROTO_GetShiftState [08:45:05]wFMCommunicate request_size=4 [08:45:05]MH_SAM_APDU [08:45:05]CAPDU: 80 13 01 00 [08:45:05]Write to MH i2c: E2 08 00 AC 2E 80 13 01 00 00 00 00 00 57 [08:45:05]Write i2c OK [08:45:05]MH_I2C_Read... [08:45:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:05]Read from MH i2c: E2 [08:45:05]MH_I2C_Read... [08:45:05]Read from MH i2c: E2 0E 00 [08:45:05]MH_I2C_Read... [08:45:05]Read from MH i2c: E2 0E 00 AC 2E 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 E4 [08:45:05]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [08:45:05]wFMCommunicate OK [08:45:05]SAM_PROTO_GetShiftState done [08:45:05]FM_GetShiftState done [08:45:05]opened in 1722038845 [08:45:05]opened+sec_in_day 1722125245 [08:45:05]quantity*price = 80010 [08:45:05]sum+1 = 80011 [08:45:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 45 27.07.2024 08:45 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118102 ФПД: 227187237632796 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T084509&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118102&fm=227187237632796&tin=02508201610067®Number=0000000000092660&sum=80000 [08:45:06]StoreToDocumentArchive [08:45:06]shift 432 fd 118102 [08:45:06]save to /storage/0432/doc_00118102 [08:45:06]save last doc name /storage/0432/doc_00118102 to /storage/kkm_last_doc_name [08:45:06]save OK [08:45:06]Clear old archive folders... [08:45:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:45:06]tlvbuf is B6FCC770 [08:45:06]SAM_PROTO_ClearQueue [08:45:06]wFMCommunicate request_size=4 [08:45:06]MH_SAM_APDU [08:45:06]CAPDU: 80 09 00 00 [08:45:06]Write to MH i2c: E2 08 00 B9 2E 80 09 00 00 00 00 00 00 59 [08:45:06]Write i2c OK [08:45:06]MH_I2C_Read... [08:45:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:45:06]Read from MH i2c: E2 [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: E2 03 00 [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: E2 03 00 B9 2E 00 90 00 5B [08:45:06]RAPDU: 90 00 [08:45:06]wFMCommunicate OK [08:45:06]SAM_PROTO_ClearQueue done [08:45:06]KKMCreateOFDPacket [08:45:06]OFDProtocolAddRootSTLVToBuf [08:45:06]FM_MakeSignedData [08:45:06]FM_MakeSignedData [08:45:06]SAM_PROTO_SignData [08:45:06]wFMCommunicate request_size=4 [08:45:06]MH_SAM_APDU [08:45:06]CAPDU: 80 0D 01 02 [08:45:06]Write to MH i2c: E2 08 00 BA 2E 80 0D 01 02 00 00 00 00 61 [08:45:06]Write i2c OK [08:45:06]MH_I2C_Read... [08:45:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:45:07]Read from MH i2c: E2 [08:45:07]MH_I2C_Read... [08:45:07]Read from MH i2c: E2 03 00 [08:45:07]MH_I2C_Read... [08:45:07]Read from MH i2c: E2 03 00 BA 2E 00 90 00 5C [08:45:07]RAPDU: 90 00 [08:45:07]wFMCommunicate OK [08:45:07]wFMCommunicate request_size=255 [08:45:07]MH_SAM_APDU [08:45: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 95 B3 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 56 CD 01 00 35 04 06 00 CE A0 26 98 [08:45:07]Write to MH i2c: E2 02 01 BB 2E 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 95 B3 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 56 CD 01 00 35 04 06 00 CE A0 26 98 00 00 A4 [08:45:07]Write i2c OK [08:45:07]MH_I2C_Read... [08:45:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:07]Read from MH i2c: E2 [08:45:07]MH_I2C_Read... [08:45:07]Read from MH i2c: E2 03 00 [08:45:07]MH_I2C_Read... [08:45:07]Read from MH i2c: E2 03 00 BB 2E 00 90 00 5D [08:45:07]RAPDU: 90 00 [08:45:07]wFMCommunicate OK [08:45:07]wFMCommunicate request_size=7 [08:45:07]MH_SAM_APDU [08:45:07]CAPDU: 80 0D 02 02 02 BB 1C [08:45:07]Write to MH i2c: E2 0A 00 BC 2E 80 0D 02 02 02 00 BB 1C 00 00 3F [08:45:07]Write i2c OK [08:45:07]MH_I2C_Read... [08:45:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:07]Read from MH i2c: E2 [08:45:07]MH_I2C_Read... [08:45:07]Read from MH i2c: E2 03 00 [08:45:07]MH_I2C_Read... [08:45:07]Read from MH i2c: E2 03 00 BC 2E 00 90 00 5E [08:45:07]RAPDU: 90 00 [08:45:07]wFMCommunicate OK [08:45:07]wFMCommunicate request_size=4 [08:45:07]MH_SAM_APDU [08:45:07]CAPDU: 80 0D 03 02 [08:45:07]Write to MH i2c: E2 08 00 BD 2E 80 0D 03 02 00 00 00 00 66 [08:45:07]Write i2c OK [08:45:07]MH_I2C_Read... [08:45:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:45:07]Read from MH i2c: E2 [08:45:07]MH_I2C_Read... [08:45:07]Read from MH i2c: E2 0B 00 [08:45:07]MH_I2C_Read... [08:45:07]Read from MH i2c: E2 0B 00 BD 2E 00 60 0D 97 9A 9F C1 7E 36 90 00 19 [08:45:07]RAPDU: 60 0D 97 9A 9F C1 7E 36 90 00 [08:45:07]wFMCommunicate OK [08:45:07]SAM_PROTO_SignData done [08:45:07]FM_MakeSignedData done [08:45:07]CreateOFDProtocolMessage [08:45:07]wFMCommunicate request_size=4 [08:45:07]MH_SAM_APDU [08:45:07]CAPDU: 80 11 00 00 [08:45:07]Write to MH i2c: E2 08 00 BE 2E 80 11 00 00 00 00 00 00 66 [08:45:07]Write i2c OK [08:45:07]MH_I2C_Read... [08:45:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:07]Read from MH i2c: E2 [08:45:07]MH_I2C_Read... [08:45:07]Read from MH i2c: E2 17 00 [08:45:07]MH_I2C_Read... [08:45:07]Read from MH i2c: E2 17 00 BE 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C1 [08:45:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:45:07]wFMCommunicate OK [08:45:07]CreateOFDProtocolMessage done [08:45:07]OFDSenderStorePacket 118102 [08:45:07]StoreOFDPacket docnum=118102 [08:45:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 08 2D 04 01 50 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 95 B3 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 56 CD 01 00 35 04 06 00 CE A0 26 98 BB 1C 60 0D 97 9A 9F C1 7E 36 [08:45:07]CheckFolder [08:45:07]dirname=/storage/ofd_packets [08:45:07]CheckFolder done [08:45:07]ProducePacketName [08:45:07]name=ofd_packets/00118102 [08:45:07]NVStorageSaveData ofd_packets/00118102 [08:45:07]File name is /storage/ofd_packets/00118102 [08:45:07]Write 298 bytes [08:45:07]NVStorageSaveData done [08:45:07]OFDSenderStorePacket done [08:45:07]KKMCreateOFDPacket done [08:45:07]NVStorageSaveData kkm_last_timestamp [08:45:07]File name is /storage/kkm_last_timestamp [08:45:07]Write 4 bytes [08:45:07]NVStorageSaveData done [08:45:07]ExternCall_PrintAddStr [08:45:07]wPrintStart [08:45:07]Write to MH i2c: 01 00 00 BF 2E ED [08:45:07]Write i2c OK [08:45:07]MH_I2C_Read... [08:45:07]Read from MH i2c: 01 [08:45:07]MH_I2C_Read... [08:45:07]Read from MH i2c: 01 07 00 [08:45:07]MH_I2C_Read... [08:45:07]Read from MH i2c: 01 07 00 BF 2E 00 00 00 00 00 FF 0F 02 [08:45:07]RasterBufferAndPrint [08:45:07]line Счет N : (1)948973 [08:45:07]line ИНН: 02508201610067 [08:45:07]line Контрольно-Кассовый Чек [08:45:07]line ПРОДАЖА [08:45:07]line ТРК (МРК, ГНК) : 34 [08:45:07]line Товар: 2710194800 [08:45:07]line ДТ-К-5 [08:45:07]line 10.500 * 76.20 [08:45:07]line = 800.10 [08:45:07]line НДС 12% НСП 1% [08:45:07]line > о реализуемом товаре [08:45:07]line ОКРУГЛЕНИЕ: -0.10 [08:45:07]line ИТОГО: 800.00 [08:45:07]line Внесено: 800.00 [08:45:07]line СДАЧА: 0.00 [08:45:07]line НСП 1% : 7.08 [08:45:07]line НДС 12% : 84.97 [08:45:07]line Наличными: 800.00 [08:45:07]line Безнал.: 0.00 [08:45:07]line Место: АЗС № 134 "Партнер Нефть" [08:45:07]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:45:07]line СНО: Общий режим [08:45:07]line Чек 45 27.07.2024 08:45 [08:45:07]line Смена: 432 ФФД: 1.0 [08:45:07]line ЗНМ: 0300000044 [08:45:07]line РНМ: 0000000000092660 [08:45:07]line Версия ККМ: 001 [08:45:07]line ФМ: 0000000000874939 [08:45:07]line ФД: 118102 [08:45:07]line ФПД: 227187237632796 [08:45:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T084509&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118102&fm=227187237632796&tin=02508201610067®Number=0000000000092660&sum=80000 [08:45:07]OFD Sender: Processing packet 118102 [packets to send 85, broken 84] [08:45:07]ProducePacketName [08:45:07]name=ofd_packets/00118102 [08:45:07]OFD Sender: To server: pG, [08:45:07]CommunicateWithHost lk.salyk.kg:30040 [08:45:07]ConnectInit lk.salyk.kg [08:45:07]written 0, free lines is 4095 [08:45:07]Connected sock=9 [08:45:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 08 2D 04 01 50 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 95 B3 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 56 CD 01 00 35 04 06 00 CE A0 26 98 BB 1C 60 0D 97 9A 9F C1 7E 36 [08:45:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 11 70 47 00 98 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 56 CD 01 00 F4 03 04 00 29 61 A4 66 B6 04 01 00 00 42 07 29 19 0A BD DE 94 [08:45:08]CommunicateWithHost err = 0 [08:45:08]CheckOFDResponse [08:45:08]1017 (14) - 77093643461234 [08:45:08]1041 (16) - 0000000000874939 [08:45:08]1040 (4) - 118102 [08:45:08]1012 (4) - 27.07.2024 02:53 [08:45:08]1206 (1) - 0 [08:45:08]OFD Sender: Remove packet 118102 [08:45:08]ProducePacketName [08:45:08]name=ofd_packets/00118102 [08:45:08]NVStorageDeleteData [08:45:08]Write to MH i2c: 01 00 00 E9 2E 17 [08:45:08]Write i2c OK [08:45:08]MH_I2C_Read... [08:45:08]Read from MH i2c: 01 [08:45:08]MH_I2C_Read... [08:45:08]Read from MH i2c: 01 07 00 [08:45:08]MH_I2C_Read... [08:45:08]Read from MH i2c: 01 07 00 E9 2E 00 00 00 00 00 CA 0C F4 [08:45:08]RasterBufferAndPrint [08:45:08]line [08:45:08]line [08:45:08]line [08:45:08]line [08:45:08]line [08:45:08]written 0, free lines is 3280 [08:45:08]MH_Cut [08:45:08]Write to MH i2c: D1 01 00 F0 2E 01 F0 [08:45:08]Write i2c OK [08:45:08]MH_I2C_Read... [08:45:08]Read from MH i2c: D1 [08:45:08]MH_I2C_Read... [08:45:08]Read from MH i2c: D1 01 00 [08:45:08]MH_I2C_Read... [08:45:08]Read from MH i2c: D1 01 00 F0 2E 00 EF [08:45:08]Write to MH i2c: 01 00 00 F1 2E 1F [08:45:08]Write i2c OK [08:45:08]MH_I2C_Read... [08:45:08]OFD Sender: No OFD packet to send [08:45:09]*** Cut start [08:45:09]*** Partial cut [08:45:09]*** CUTSNS_PIN = 1 [08:45:09]*** CUTSNS_PIN = 0 [08:45:09]*** Brake cut motor [08:45:09]Read from MH i2c: 01 [08:45:09]MH_I2C_Read... [08:45:09]*** Stop cut motor [08:45:09]*** Cut end [08:45:09]Read from MH i2c: 01 07 00 [08:45:09]MH_I2C_Read... [08:45:09]Read from MH i2c: 01 07 00 F1 2E 00 00 00 00 00 FF 0F 34 [08:45:09]process_action close_receipt done [08:45:09]requested_data is exist [08:45:09]produce_requested_data [08:45:09]requested_item fm.sn is exist - process it [08:45:09]wFMCommunicate request_size=4 [08:45:09]MH_SAM_APDU [08:45:09]CAPDU: 80 11 00 00 [08:45:09]Write to MH i2c: E2 08 00 F2 2E 80 11 00 00 00 00 00 00 9A [08:45:09]Write i2c OK [08:45:09]MH_I2C_Read... [08:45:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:09]Read from MH i2c: E2 [08:45:09]MH_I2C_Read... [08:45:09]Read from MH i2c: E2 17 00 [08:45:09]MH_I2C_Read... [08:45:09]Read from MH i2c: E2 17 00 F2 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F5 [08:45:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:45:09]wFMCommunicate OK [08:45:09]requested_item fd.num is exist - process it [08:45:09]SAM_PROTO_GetFieldsCounters [08:45:09]wFMCommunicate request_size=4 [08:45:09]MH_SAM_APDU [08:45:09]CAPDU: 80 13 00 00 [08:45:09]Write to MH i2c: E2 08 00 F3 2E 80 13 00 00 00 00 00 00 9D [08:45:09]Write i2c OK [08:45:09]MH_I2C_Read... [08:45:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:45:09]Read from MH i2c: E2 [08:45:09]MH_I2C_Read... [08:45:09]Read from MH i2c: E2 62 00 [08:45:09]MH_I2C_Read... [08:45:09]Read from MH i2c: E2 62 00 F3 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 56 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [08:45:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 56 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:45:09]wFMCommunicate OK [08:45:09]SAM_PROTO_GetFieldsCounters done [08:45:09]requested_item shift.num is exist - process it [08:45:09]requested_item shift.opened is exist - process it [08:45:09]req_shift_opened [08:45:09]FM_GetShiftState [08:45:09]SAM_PROTO_GetShiftState [08:45:09]wFMCommunicate request_size=4 [08:45:09]MH_SAM_APDU [08:45:09]CAPDU: 80 13 01 00 [08:45:09]Write to MH i2c: E2 08 00 F4 2E 80 13 01 00 00 00 00 00 9F [08:45:09]Write i2c OK [08:45:09]MH_I2C_Read... [08:45:09]Read from MH i2c: E2 [08:45:09]MH_I2C_Read... [08:45:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:09]Read from MH i2c: E2 0E 00 [08:45:09]MH_I2C_Read... [08:45:09]Read from MH i2c: E2 0E 00 F4 2E 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 2C [08:45:09]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [08:45:09]wFMCommunicate OK [08:45:09]SAM_PROTO_GetShiftState done [08:45:09]FM_GetShiftState done [08:45:09]req_shift_opened done [08:45:09]requested_item shift.open_date is exist - process it [08:45:09]req_shift_open_date [08:45:09]req_shift_open_date done [08:45:09]produce_requested_data done [08:45:09]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118102,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [08:45:09]process_action_free close_receipt [08:45:09]json_value_free [08:45:09]json_value_free done [08:45:09]process_json_proto returns [08:45:09]Send response to host [08:45:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118102,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [08:45:09]free response buf [08:45:09]execute_script done [08:45:09]execute_script returns [08:45:09]free content buf [08:45:09]Sock 10.Close socket [08:45:09]Sock 10.Thread stoped [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:38]OFD Sender: No OFD packet to send [08:48:43]OFD Sender: No OFD packet to send [08:48:48]OFD Sender: No OFD packet to send [08:48:53]OFD Sender: No OFD packet to send [08:48:58]OFD Sender: No OFD packet to send [08:49:03]OFD Sender: No OFD packet to send [08:49:08]OFD Sender: No OFD packet to send [08:49:13]OFD Sender: No OFD packet to send [08:49:18]OFD Sender: No OFD packet to send [08:49:23]OFD Sender: No OFD packet to send [08:49:28]OFD Sender: No OFD packet to send [08:49:33]OFD Sender: No OFD packet to send [08:49:38]OFD Sender: No OFD packet to send [08:49:43]OFD Sender: No OFD packet to send [08:49:48]OFD Sender: No OFD packet to send [08:49:53]OFD Sender: No OFD packet to send [08:49:58]OFD Sender: No OFD packet to send [08:50:03]OFD Sender: No OFD packet to send [08:50:08]OFD Sender: No OFD packet to send [08:50:13]OFD Sender: No OFD packet to send [08:50:18]OFD Sender: No OFD packet to send [08:50:23]OFD Sender: No OFD packet to send [08:50:29]OFD Sender: No OFD packet to send [08:50:34]OFD Sender: No OFD packet to send [08:50:39]OFD Sender: No OFD packet to send [08:50:44]OFD Sender: No OFD packet to send [08:50:49]OFD Sender: No OFD packet to send [08:50:54]OFD Sender: No OFD packet to send [08:50:59]OFD Sender: No OFD packet to send [08:51:04]OFD Sender: No OFD packet to send [08:51:09]OFD Sender: No OFD packet to send [08:51:14]OFD Sender: No OFD packet to send [08:51:19]OFD Sender: No OFD packet to send [08:51:24]OFD Sender: No OFD packet to send [08:51:29]OFD Sender: No OFD packet to send [08:51:34]OFD Sender: No OFD packet to send [08:51:39]OFD Sender: No OFD packet to send [08:51:44]OFD Sender: No OFD packet to send [08:51:49]OFD Sender: No OFD packet to send [08:51:54]OFD Sender: No OFD packet to send [08:51:59]OFD Sender: No OFD packet to send [08:52:04]OFD Sender: No OFD packet to send [08:52:09]OFD Sender: No OFD packet to send [08:52:14]OFD Sender: No OFD packet to send [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:37]accept exits with 7 [08:52:37]New connection [08:52:37]New thread 3067284836 created [08:52:37]Thread 3067428196 joined [08:52:37]Waiting for new connection... [08:52:37] Sock 7.Parse request [08:52:37]Sock 7.Check first char [08:52:37]Sock 7.First char is OK [08:52:37]request: POST /json_proto HTTP/1.0 [08:52:37]Method: POST [08:52:37]URL: /json_proto [08:52:37]Method is POST - this is cgi request [08:52:37]url: /json_proto [08:52:37]query_string will be loaded in cgi processing [08:52:37]execute_cgi json_proto POST (null) [08:52:37]execute_cgi path=json_proto method=POST [08:52:37]POST find Content-Length [08:52:37]Host: 172.17.45.7:8080 [08:52:37]Content-Length: 682 [08:52:37]Content-Type: application/json [08:52:37] [08:52:37]POST finish read [08:52:37]Found Content-Length = 682 [08:52:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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:52:37]execute_script... [08:52: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)948974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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:52:37]POST & json_proto [08:52:37]process_json_proto [08:52:37]json parsed OK: [08:52:37]protocol is kg_v1.0 [08:52:37]action value=close_receipt [08:52:37]process_action close_receipt [08:52:37]cmd_close_receipt [08:52:37]MH_GetDate [08:52:37]Write to MH i2c: F0 00 00 F5 2E 12 [08:52:37]Write i2c OK [08:52:37]MH_I2C_Read... [08:52:37]Read from MH i2c: F0 [08:52:37]MH_I2C_Read... [08:52:37]Read from MH i2c: F0 09 00 [08:52:37]MH_I2C_Read... [08:52:37]Read from MH i2c: F0 09 00 F5 2E 00 59 B5 A4 66 90 0F 3E 66 76 [08:52:37]GetLastDocTimeStamp 1722069909 [08:52:37]current date 1722070361 [08:52:37]FM_GetShiftState [08:52:37]SAM_PROTO_GetShiftState [08:52:37]wFMCommunicate request_size=4 [08:52:37]MH_SAM_APDU [08:52:37]CAPDU: 80 13 01 00 [08:52:37]Write to MH i2c: E2 08 00 F6 2E 80 13 01 00 00 00 00 00 A1 [08:52:37]Write i2c OK [08:52:37]MH_I2C_Read... [08:52:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:37]Read from MH i2c: E2 [08:52:37]MH_I2C_Read... [08:52:37]Read from MH i2c: E2 0E 00 [08:52:37]MH_I2C_Read... [08:52:37]Read from MH i2c: E2 0E 00 F6 2E 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 2E [08:52:37]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [08:52:37]wFMCommunicate OK [08:52:37]SAM_PROTO_GetShiftState done [08:52:37]FM_GetShiftState done [08:52:37]opened in 1722038845 [08:52:37]opened+sec_in_day 1722125245 [08:52:37]quantity*price = 150041 [08:52:37]sum+1 = 150042 [08:52:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 46 27.07.2024 08:52 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118103 ФПД: 241386751113892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T085241&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118103&fm=241386751113892&tin=02508201610067®Number=0000000000092660&sum=150000 [08:52:38]StoreToDocumentArchive [08:52:38]shift 432 fd 118103 [08:52:38]save to /storage/0432/doc_00118103 [08:52:38]save last doc name /storage/0432/doc_00118103 to /storage/kkm_last_doc_name [08:52:38]save OK [08:52:38]Clear old archive folders... [08:52:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:52:38]tlvbuf is 0078A5A0 [08:52:38]SAM_PROTO_ClearQueue [08:52:38]wFMCommunicate request_size=4 [08:52:38]MH_SAM_APDU [08:52:38]CAPDU: 80 09 00 00 [08:52:38]Write to MH i2c: E2 08 00 03 2F 80 09 00 00 00 00 00 00 A4 [08:52:38]Write i2c OK [08:52:38]MH_I2C_Read... [08:52:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:52:38]Read from MH i2c: E2 [08:52:38]MH_I2C_Read... [08:52:38]Read from MH i2c: E2 03 00 [08:52:38]MH_I2C_Read... [08:52:38]Read from MH i2c: E2 03 00 03 2F 00 90 00 A6 [08:52:38]RAPDU: 90 00 [08:52:38]wFMCommunicate OK [08:52:38]SAM_PROTO_ClearQueue done [08:52:38]KKMCreateOFDPacket [08:52:38]OFDProtocolAddRootSTLVToBuf [08:52:38]FM_MakeSignedData [08:52:38]FM_MakeSignedData [08:52:38]SAM_PROTO_SignData [08:52:38]wFMCommunicate request_size=4 [08:52:38]MH_SAM_APDU [08:52:38]CAPDU: 80 0D 01 02 [08:52:38]Write to MH i2c: E2 08 00 04 2F 80 0D 01 02 00 00 00 00 AC [08:52:38]Write i2c OK [08:52:38]MH_I2C_Read... [08:52:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:52:38]Read from MH i2c: E2 [08:52:38]MH_I2C_Read... [08:52:38]Read from MH i2c: E2 03 00 [08:52:38]MH_I2C_Read... [08:52:38]Read from MH i2c: E2 03 00 04 2F 00 90 00 A7 [08:52:38]RAPDU: 90 00 [08:52:38]wFMCommunicate OK [08:52:38]wFMCommunicate request_size=255 [08:52:38]MH_SAM_APDU [08:52: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 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 2E 00 00 00 F4 03 04 00 59 B5 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 57 CD 01 00 35 04 06 00 DB [08:52:38]Write to MH i2c: E2 02 01 05 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 2E 00 00 00 F4 03 04 00 59 B5 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 57 CD 01 00 35 04 06 00 DB 00 00 9C [08:52:38]Write i2c OK [08:52:38]MH_I2C_Read... [08:52:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:39]Read from MH i2c: E2 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: E2 03 00 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: E2 03 00 05 2F 00 90 00 A8 [08:52:39]RAPDU: 90 00 [08:52:39]wFMCommunicate OK [08:52:39]wFMCommunicate request_size=10 [08:52:39]MH_SAM_APDU [08:52:39]CAPDU: 80 0D 02 02 05 8A 3B 8D BA A4 [08:52:39]Write to MH i2c: E2 0D 00 06 2F 80 0D 02 02 05 00 8A 3B 8D BA A4 00 00 69 [08:52:39]Write i2c OK [08:52:39]MH_I2C_Read... [08:52:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:39]Read from MH i2c: E2 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: E2 03 00 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: E2 03 00 06 2F 00 90 00 A9 [08:52:39]RAPDU: 90 00 [08:52:39]wFMCommunicate OK [08:52:39]wFMCommunicate request_size=4 [08:52:39]MH_SAM_APDU [08:52:39]CAPDU: 80 0D 03 02 [08:52:39]Write to MH i2c: E2 08 00 07 2F 80 0D 03 02 00 00 00 00 B1 [08:52:39]Write i2c OK [08:52:39]MH_I2C_Read... [08:52:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:52:39]Read from MH i2c: E2 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: E2 0B 00 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: E2 0B 00 07 2F 00 35 31 09 F3 52 E2 F4 5E 90 00 9A [08:52:39]RAPDU: 35 31 09 F3 52 E2 F4 5E 90 00 [08:52:39]wFMCommunicate OK [08:52:39]SAM_PROTO_SignData done [08:52:39]FM_MakeSignedData done [08:52:39]CreateOFDProtocolMessage [08:52:39]wFMCommunicate request_size=4 [08:52:39]MH_SAM_APDU [08:52:39]CAPDU: 80 11 00 00 [08:52:39]Write to MH i2c: E2 08 00 08 2F 80 11 00 00 00 00 00 00 B1 [08:52:39]Write i2c OK [08:52:39]MH_I2C_Read... [08:52:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:39]Read from MH i2c: E2 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: E2 17 00 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: E2 17 00 08 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0C [08:52:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:52:39]wFMCommunicate OK [08:52:39]CreateOFDProtocolMessage done [08:52:39]OFDSenderStorePacket 118103 [08:52:39]StoreOFDPacket docnum=118103 [08:52:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 9E 17 07 01 54 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 2E 00 00 00 F4 03 04 00 59 B5 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 57 CD 01 00 35 04 06 00 DB 8A 3B 8D BA A4 35 31 09 F3 52 E2 F4 5E [08:52:39]CheckFolder [08:52:39]dirname=/storage/ofd_packets [08:52:39]CheckFolder done [08:52:39]ProducePacketName [08:52:39]name=ofd_packets/00118103 [08:52:39]NVStorageSaveData ofd_packets/00118103 [08:52:39]File name is /storage/ofd_packets/00118103 [08:52:39]Write 301 bytes [08:52:39]NVStorageSaveData done [08:52:39]OFDSenderStorePacket done [08:52:39]KKMCreateOFDPacket done [08:52:39]NVStorageSaveData kkm_last_timestamp [08:52:39]File name is /storage/kkm_last_timestamp [08:52:39]Write 4 bytes [08:52:39]NVStorageSaveData done [08:52:39]ExternCall_PrintAddStr [08:52:39]wPrintStart [08:52:39]Write to MH i2c: 01 00 00 09 2F 38 [08:52:39]Write i2c OK [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: 01 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: 01 07 00 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: 01 07 00 09 2F 00 00 00 00 00 FF 0F 4D [08:52:39]RasterBufferAndPrint [08:52:39]line Счет N : (1)948974 [08:52:39]line ИНН: 02508201610067 [08:52:39]line Контрольно-Кассовый Чек [08:52:39]line ПРОДАЖА [08:52:39]line ТРК (МРК, ГНК) : 31 [08:52:39]line Товар: 2710124130 [08:52:39]line Аи-92-К-4 [08:52:39]line 22.130 * 67.80 [08:52:39]line = 1500.41 [08:52:39]line НДС 12% НСП 1% [08:52:39]line > о реализуемом товаре [08:52:39]line ОКРУГЛЕНИЕ: -0.41 [08:52:39]line ИТОГО: 1500.00 [08:52:39]line Внесено: 1500.00 [08:52:39]line СДАЧА: 0.00 [08:52:39]line НСП 1% : 13.28 [08:52:39]line НДС 12% : 159.34 [08:52:39]line Наличными: 1500.00 [08:52:39]line Безнал.: 0.00 [08:52:39]line Место: АЗС № 134 "Партнер Нефть" [08:52:39]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:52:39]line СНО: Общий режим [08:52:39]line Чек 46 27.07.2024 08:52 [08:52:39]line Смена: 432 ФФД: 1.0 [08:52:39]line ЗНМ: 0300000044 [08:52:39]line РНМ: 0000000000092660 [08:52:39]line Версия ККМ: 001 [08:52:39]line ФМ: 0000000000874939 [08:52:39]line ФД: 118103 [08:52:39]line ФПД: 241386751113892 [08:52:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T085241&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118103&fm=241386751113892&tin=02508201610067®Number=0000000000092660&sum=150000 [08:52:39]written 0, free lines is 4095 [08:52:39]OFD Sender: Processing packet 118103 [packets to send 85, broken 84] [08:52:39]ProducePacketName [08:52:39]name=ofd_packets/00118103 [08:52:39]OFD Sender: To server: pG, [08:52:39]CommunicateWithHost lk.salyk.kg:30040 [08:52:39]ConnectInit lk.salyk.kg [08:52:39]Connected sock=10 [08:52:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 9E 17 07 01 54 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 2E 00 00 00 F4 03 04 00 59 B5 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 57 CD 01 00 35 04 06 00 DB 8A 3B 8D BA A4 35 31 09 F3 52 E2 F4 5E [08:52:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 17 8C 47 00 34 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 57 CD 01 00 F4 03 04 00 EC 62 A4 66 B6 04 01 00 00 51 C3 74 55 BC 8F CE BD [08:52:39]CommunicateWithHost err = 0 [08:52:39]CheckOFDResponse [08:52:39]1017 (14) - 77093643461234 [08:52:39]1041 (16) - 0000000000874939 [08:52:39]1040 (4) - 118103 [08:52:39]1012 (4) - 27.07.2024 03:01 [08:52:39]1206 (1) - 0 [08:52:39]OFD Sender: Remove packet 118103 [08:52:39]ProducePacketName [08:52:39]name=ofd_packets/00118103 [08:52:39]NVStorageDeleteData [08:52:39]Write to MH i2c: 01 00 00 33 2F 62 [08:52:39]Write i2c OK [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: 01 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: 01 07 00 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: 01 07 00 33 2F 00 00 00 00 00 CC 0C 41 [08:52:39]RasterBufferAndPrint [08:52:39]line [08:52:39]line [08:52:39]line [08:52:39]line [08:52:39]line [08:52:39]written 0, free lines is 3283 [08:52:39]MH_Cut [08:52:39]Write to MH i2c: D1 01 00 3A 2F 01 3B [08:52:39]Write i2c OK [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: D1 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: D1 01 00 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: D1 01 00 3A 2F 00 3A [08:52:39]Write to MH i2c: 01 00 00 3B 2F 6A [08:52:39]Write i2c OK [08:52:39]MH_I2C_Read... [08:52:40]OFD Sender: No OFD packet to send [08:52:40]*** Cut start [08:52:40]*** Partial cut [08:52:40]*** CUTSNS_PIN = 1 [08:52:40]*** CUTSNS_PIN = 0 [08:52:40]*** Brake cut motor [08:52:41]Read from MH i2c: 01 [08:52:41]MH_I2C_Read... [08:52:41]*** Stop cut motor [08:52:41]*** Cut end [08:52:41]Read from MH i2c: 01 07 00 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: 01 07 00 3B 2F 00 00 00 00 00 FF 0F 7F [08:52:41]process_action close_receipt done [08:52:41]requested_data is exist [08:52:41]produce_requested_data [08:52:41]requested_item fm.sn is exist - process it [08:52:41]wFMCommunicate request_size=4 [08:52:41]MH_SAM_APDU [08:52:41]CAPDU: 80 11 00 00 [08:52:41]Write to MH i2c: E2 08 00 3C 2F 80 11 00 00 00 00 00 00 E5 [08:52:41]Write i2c OK [08:52:41]MH_I2C_Read... [08:52:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:41]Read from MH i2c: E2 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 17 00 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 17 00 3C 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 40 [08:52:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:52:41]wFMCommunicate OK [08:52:41]requested_item fd.num is exist - process it [08:52:41]SAM_PROTO_GetFieldsCounters [08:52:41]wFMCommunicate request_size=4 [08:52:41]MH_SAM_APDU [08:52:41]CAPDU: 80 13 00 00 [08:52:41]Write to MH i2c: E2 08 00 3D 2F 80 13 00 00 00 00 00 00 E8 [08:52:41]Write i2c OK [08:52:41]MH_I2C_Read... [08:52:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:41]Read from MH i2c: E2 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 62 00 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 62 00 3D 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 57 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [08:52:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 57 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:52:41]wFMCommunicate OK [08:52:41]SAM_PROTO_GetFieldsCounters done [08:52:41]requested_item shift.num is exist - process it [08:52:41]requested_item shift.opened is exist - process it [08:52:41]req_shift_opened [08:52:41]FM_GetShiftState [08:52:41]SAM_PROTO_GetShiftState [08:52:41]wFMCommunicate request_size=4 [08:52:41]MH_SAM_APDU [08:52:41]CAPDU: 80 13 01 00 [08:52:41]Write to MH i2c: E2 08 00 3E 2F 80 13 01 00 00 00 00 00 EA [08:52:41]Write i2c OK [08:52:41]MH_I2C_Read... [08:52:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:41]Read from MH i2c: E2 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 0E 00 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 0E 00 3E 2F 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 77 [08:52:41]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [08:52:41]wFMCommunicate OK [08:52:41]SAM_PROTO_GetShiftState done [08:52:41]FM_GetShiftState done [08:52:41]req_shift_opened done [08:52:41]requested_item shift.open_date is exist - process it [08:52:41]req_shift_open_date [08:52:41]req_shift_open_date done [08:52:41]produce_requested_data done [08:52:41]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118103,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [08:52:41]process_action_free close_receipt [08:52:41]json_value_free [08:52:41]json_value_free done [08:52:41]process_json_proto returns [08:52:41]Send response to host [08:52:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118103,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [08:52:41]free response buf [08:52:41]execute_script done [08:52:41]execute_script returns [08:52:41]free content buf [08:52:41]Sock 7.Close socket [08:52:41]Sock 7.Thread stoped [08:52:45]OFD Sender: No OFD packet to send [08:52:50]OFD Sender: No OFD packet to send [08:52:55]OFD Sender: No OFD packet to send [08:53:00]OFD Sender: No OFD packet to send [08:53:05]OFD Sender: No OFD packet to send [08:53:10]OFD Sender: No OFD packet to send [08:53:15]OFD Sender: No OFD packet to send [08:53:20]OFD Sender: No OFD packet to send [08:53:25]OFD Sender: No OFD packet to send [08:53:30]OFD Sender: No OFD packet to send [08:53:35]OFD Sender: No OFD packet to send [08:53:40]OFD Sender: No OFD packet to send [08:53:45]OFD Sender: No OFD packet to send [08:53:50]OFD Sender: No OFD packet to send [08:53:55]OFD Sender: No OFD packet to send [08:54:00]OFD Sender: No OFD packet to send [08:54:05]OFD Sender: No OFD packet to send [08:54:10]OFD Sender: No OFD packet to send [08:54:15]OFD Sender: No OFD packet to send [08:54:20]OFD Sender: No OFD packet to send [08:54:25]OFD Sender: No OFD packet to send [08:54:30]OFD Sender: No OFD packet to send [08:54:35]OFD Sender: No OFD packet to send [08:54:40]OFD Sender: No OFD packet to send [08:54:45]OFD Sender: No OFD packet to send [08:54:50]OFD Sender: No OFD packet to send [08:54:55]OFD Sender: No OFD packet to send [08:55:00]OFD Sender: No OFD packet to send [08:55:05]OFD Sender: No OFD packet to send [08:55:10]OFD Sender: No OFD packet to send [08:55:15]OFD Sender: No OFD packet to send [08:55:20]OFD Sender: No OFD packet to send [08:55:25]OFD Sender: No OFD packet to send [08:55:30]OFD Sender: No OFD packet to send [08:55:35]OFD Sender: No OFD packet to send [08:55:40]OFD Sender: No OFD packet to send [08:55:45]OFD Sender: No OFD packet to send [08:55:50]OFD Sender: No OFD packet to send [08:55:55]OFD Sender: No OFD packet to send [08:56:00]OFD Sender: No OFD packet to send [08:56:05]OFD Sender: No OFD packet to send [08:56:10]OFD Sender: No OFD packet to send [08:56:15]OFD Sender: No OFD packet to send [08:56:20]OFD Sender: No OFD packet to send [08:56:25]OFD Sender: No OFD packet to send [08:56:30]OFD Sender: No OFD packet to send [08:56:35]OFD Sender: No OFD packet to send [08:56:40]OFD Sender: No OFD packet to send [08:56:45]OFD Sender: No OFD packet to send [08:56:50]OFD Sender: No OFD packet to send [08:56:55]OFD Sender: No OFD packet to send [08:56:58]accept exits with 9 [08:56:58]New connection [08:56:58]New thread 3067428196 created [08:56:58]Thread 3067284836 joined [08:56:58]Waiting for new connection... [08:56:58] Sock 9.Parse request [08:56:58]Sock 9.Check first char [08:56:58]Sock 9.First char is OK [08:56:58]request: POST /json_proto HTTP/1.0 [08:56:58]Method: POST [08:56:58]URL: /json_proto [08:56:58]Method is POST - this is cgi request [08:56:58]url: /json_proto [08:56:58]query_string will be loaded in cgi processing [08:56:58]execute_cgi json_proto POST (null) [08:56:58]execute_cgi path=json_proto method=POST [08:56:58]POST find Content-Length [08:56:58]Host: 172.17.45.7:8080 [08:56:58]Content-Length: 682 [08:56:58]Content-Type: application/json [08:56:58] [08:56:58]POST finish read [08:56:58]Found Content-Length = 682 [08:56:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:56:58]execute_script... [08:56: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)948975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:56:58]POST & json_proto [08:56:58]process_json_proto [08:56:58]json parsed OK: [08:56:58]protocol is kg_v1.0 [08:56:58]action value=close_receipt [08:56:58]process_action close_receipt [08:56:58]cmd_close_receipt [08:56:58]MH_GetDate [08:56:58]Write to MH i2c: F0 00 00 3F 2F 5D [08:56:58]Write i2c OK [08:56:58]MH_I2C_Read... [08:56:58]Read from MH i2c: F0 [08:56:58]MH_I2C_Read... [08:56:58]Read from MH i2c: F0 09 00 [08:56:58]MH_I2C_Read... [08:56:58]Read from MH i2c: F0 09 00 3F 2F 00 5E B6 A4 66 90 0F 3E 66 C7 [08:56:58]GetLastDocTimeStamp 1722070361 [08:56:58]current date 1722070622 [08:56:58]FM_GetShiftState [08:56:58]SAM_PROTO_GetShiftState [08:56:58]wFMCommunicate request_size=4 [08:56:58]MH_SAM_APDU [08:56:58]CAPDU: 80 13 01 00 [08:56:58]Write to MH i2c: E2 08 00 40 2F 80 13 01 00 00 00 00 00 EC [08:56:58]Write i2c OK [08:56:58]MH_I2C_Read... [08:56:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:58]Read from MH i2c: E2 [08:56:58]MH_I2C_Read... [08:56:58]Read from MH i2c: E2 0E 00 [08:56:58]MH_I2C_Read... [08:56:58]Read from MH i2c: E2 0E 00 40 2F 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 79 [08:56:58]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [08:56:58]wFMCommunicate OK [08:56:58]SAM_PROTO_GetShiftState done [08:56:58]FM_GetShiftState done [08:56:58]opened in 1722038845 [08:56:58]opened+sec_in_day 1722125245 [08:56:58]quantity*price = 100005 [08:56:58]sum+1 = 100006 [08:56:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 47 27.07.2024 08:57 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118104 ФПД: 250711162445414 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T085702&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118104&fm=250711162445414&tin=02508201610067®Number=0000000000092660&sum=100000 [08:56:59]StoreToDocumentArchive [08:56:59]shift 432 fd 118104 [08:56:59]save to /storage/0432/doc_00118104 [08:56:59]save last doc name /storage/0432/doc_00118104 to /storage/kkm_last_doc_name [08:56:59]save OK [08:56:59]Clear old archive folders... [08:56:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:56:59]tlvbuf is 0071B600 [08:56:59]SAM_PROTO_ClearQueue [08:56:59]wFMCommunicate request_size=4 [08:56:59]MH_SAM_APDU [08:56:59]CAPDU: 80 09 00 00 [08:56:59]Write to MH i2c: E2 08 00 4D 2F 80 09 00 00 00 00 00 00 EE [08:56:59]Write i2c OK [08:56:59]MH_I2C_Read... [08:56:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:56:59]Read from MH i2c: E2 [08:56:59]MH_I2C_Read... [08:56:59]Read from MH i2c: E2 03 00 [08:56:59]MH_I2C_Read... [08:56:59]Read from MH i2c: E2 03 00 4D 2F 00 90 00 F0 [08:56:59]RAPDU: 90 00 [08:56:59]wFMCommunicate OK [08:56:59]SAM_PROTO_ClearQueue done [08:56:59]KKMCreateOFDPacket [08:56:59]OFDProtocolAddRootSTLVToBuf [08:56:59]FM_MakeSignedData [08:56:59]FM_MakeSignedData [08:56:59]SAM_PROTO_SignData [08:56:59]wFMCommunicate request_size=4 [08:56:59]MH_SAM_APDU [08:56:59]CAPDU: 80 0D 01 02 [08:56:59]Write to MH i2c: E2 08 00 4E 2F 80 0D 01 02 00 00 00 00 F6 [08:56:59]Write i2c OK [08:56:59]MH_I2C_Read... [08:56:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:56:59]Read from MH i2c: E2 [08:56:59]MH_I2C_Read... [08:56:59]Read from MH i2c: E2 03 00 [08:56:59]MH_I2C_Read... [08:56:59]Read from MH i2c: E2 03 00 4E 2F 00 90 00 F1 [08:56:59]RAPDU: 90 00 [08:56:59]wFMCommunicate OK [08:56:59]wFMCommunicate request_size=255 [08:56:59]MH_SAM_APDU [08:56: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 5E B6 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 58 CD 01 00 35 04 06 00 E4 [08:56:59]Write to MH i2c: E2 02 01 4F 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 5E B6 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 58 CD 01 00 35 04 06 00 E4 00 00 11 [08:56:59]Write i2c OK [08:56:59]MH_I2C_Read... [08:56:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:59]Read from MH i2c: E2 [08:56:59]MH_I2C_Read... [08:56:59]Read from MH i2c: E2 03 00 [08:56:59]MH_I2C_Read... [08:56:59]Read from MH i2c: E2 03 00 4F 2F 00 90 00 F2 [08:56:59]RAPDU: 90 00 [08:56:59]wFMCommunicate OK [08:56:59]wFMCommunicate request_size=10 [08:56:59]MH_SAM_APDU [08:56:59]CAPDU: 80 0D 02 02 05 05 3D C7 5E 66 [08:56:59]Write to MH i2c: E2 0D 00 50 2F 80 0D 02 02 05 00 05 3D C7 5E 66 00 00 D0 [08:56:59]Write i2c OK [08:56:59]MH_I2C_Read... [08:57:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:00]Read from MH i2c: E2 [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: E2 03 00 [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: E2 03 00 50 2F 00 90 00 F3 [08:57:00]RAPDU: 90 00 [08:57:00]wFMCommunicate OK [08:57:00]wFMCommunicate request_size=4 [08:57:00]MH_SAM_APDU [08:57:00]CAPDU: 80 0D 03 02 [08:57:00]Write to MH i2c: E2 08 00 51 2F 80 0D 03 02 00 00 00 00 FB [08:57:00]Write i2c OK [08:57:00]MH_I2C_Read... [08:57:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:00]Read from MH i2c: E2 [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: E2 0B 00 [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: E2 0B 00 51 2F 00 CD AC 55 F0 D9 B0 67 4B 90 00 F5 [08:57:00]RAPDU: CD AC 55 F0 D9 B0 67 4B 90 00 [08:57:00]wFMCommunicate OK [08:57:00]SAM_PROTO_SignData done [08:57:00]FM_MakeSignedData done [08:57:00]CreateOFDProtocolMessage [08:57:00]wFMCommunicate request_size=4 [08:57:00]MH_SAM_APDU [08:57:00]CAPDU: 80 11 00 00 [08:57:00]Write to MH i2c: E2 08 00 52 2F 80 11 00 00 00 00 00 00 FB [08:57:00]Write i2c OK [08:57:00]MH_I2C_Read... [08:57:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:00]Read from MH i2c: E2 [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: E2 17 00 [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: E2 17 00 52 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 56 [08:57:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:57:00]wFMCommunicate OK [08:57:00]CreateOFDProtocolMessage done [08:57:00]OFDSenderStorePacket 118104 [08:57:00]StoreOFDPacket docnum=118104 [08:57:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 47 6B 07 01 8C 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 5E B6 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 58 CD 01 00 35 04 06 00 E4 05 3D C7 5E 66 CD AC 55 F0 D9 B0 67 4B [08:57:00]CheckFolder [08:57:00]dirname=/storage/ofd_packets [08:57:00]CheckFolder done [08:57:00]ProducePacketName [08:57:00]name=ofd_packets/00118104 [08:57:00]NVStorageSaveData ofd_packets/00118104 [08:57:00]File name is /storage/ofd_packets/00118104 [08:57:00]Write 301 bytes [08:57:00]NVStorageSaveData done [08:57:00]OFDSenderStorePacket done [08:57:00]KKMCreateOFDPacket done [08:57:00]NVStorageSaveData kkm_last_timestamp [08:57:00]File name is /storage/kkm_last_timestamp [08:57:00]Write 4 bytes [08:57:00]NVStorageSaveData done [08:57:00]ExternCall_PrintAddStr [08:57:00]wPrintStart [08:57:00]Write to MH i2c: 01 00 00 53 2F 82 [08:57:00]Write i2c OK [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: 01 [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: 01 07 00 [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: 01 07 00 53 2F 00 00 00 00 00 FF 0F 97 [08:57:00]RasterBufferAndPrint [08:57:00]line Счет N : (1)948975 [08:57:00]line ИНН: 02508201610067 [08:57:00]line Контрольно-Кассовый Чек [08:57:00]line ПРОДАЖА [08:57:00]line ТРК (МРК, ГНК) : 31 [08:57:00]line Товар: 2710124130 [08:57:00]line Аи-92-К-4 [08:57:00]line 14.750 * 67.80 [08:57:00]line = 1000.05 [08:57:00]line НДС 12% НСП 1% [08:57:00]line > о реализуемом товаре [08:57:00]line ОКРУГЛЕНИЕ: -0.05 [08:57:00]line ИТОГО: 1000.00 [08:57:00]line Внесено: 1000.00 [08:57:00]line СДАЧА: 0.00 [08:57:00]line НСП 1% : 8.85 [08:57:00]line НДС 12% : 106.20 [08:57:00]line Наличными: 1000.00 [08:57:00]line Безнал.: 0.00 [08:57:00]line Место: АЗС № 134 "Партнер Нефть" [08:57:00]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:57:00]line СНО: Общий режим [08:57:00]line Чек 47 27.07.2024 08:57 [08:57:00]line Смена: 432 ФФД: 1.0 [08:57:00]line ЗНМ: 0300000044 [08:57:00]line РНМ: 0000000000092660 [08:57:00]line Версия ККМ: 001 [08:57:00]line ФМ: 0000000000874939 [08:57:00]line ФД: 118104 [08:57:00]line ФПД: 250711162445414 [08:57:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T085702&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118104&fm=250711162445414&tin=02508201610067®Number=0000000000092660&sum=100000 [08:57:00]OFD Sender: Processing packet 118104 [packets to send 85, broken 84] [08:57:00]ProducePacketName [08:57:00]name=ofd_packets/00118104 [08:57:00]OFD Sender: To server: pG, [08:57:00]CommunicateWithHost lk.salyk.kg:30040 [08:57:00]ConnectInit lk.salyk.kg [08:57:00]written 0, free lines is 4095 [08:57:00]Connected sock=10 [08:57:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 47 6B 07 01 8C 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 5E B6 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 58 CD 01 00 35 04 06 00 E4 05 3D C7 5E 66 CD AC 55 F0 D9 B0 67 4B [08:57:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 49 FF 47 00 CF 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 58 CD 01 00 F4 03 04 00 F1 63 A4 66 B6 04 01 00 00 3B 48 BF 2A 35 D0 97 D8 [08:57:00]CommunicateWithHost err = 0 [08:57:00]CheckOFDResponse [08:57:00]1017 (14) - 77093643461234 [08:57:00]1041 (16) - 0000000000874939 [08:57:00]1040 (4) - 118104 [08:57:00]1012 (4) - 27.07.2024 03:05 [08:57:00]1206 (1) - 0 [08:57:00]OFD Sender: Remove packet 118104 [08:57:00]ProducePacketName [08:57:00]name=ofd_packets/00118104 [08:57:00]NVStorageDeleteData [08:57:00]Write to MH i2c: 01 00 00 7D 2F AC [08:57:00]Write i2c OK [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: 01 [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: 01 07 00 [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: 01 07 00 7D 2F 00 00 00 00 00 D1 0C 90 [08:57:00]RasterBufferAndPrint [08:57:00]line [08:57:00]line [08:57:00]line [08:57:00]line [08:57:00]line [08:57:00]written 0, free lines is 3289 [08:57:00]MH_Cut [08:57:00]Write to MH i2c: D1 01 00 84 2F 01 85 [08:57:00]Write i2c OK [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: D1 [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: D1 01 00 [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: D1 01 00 84 2F 00 84 [08:57:00]Write to MH i2c: 01 00 00 85 2F B4 [08:57:00]Write i2c OK [08:57:00]MH_I2C_Read... [08:57:01]OFD Sender: No OFD packet to send [08:57:01]*** Cut start [08:57:01]*** Partial cut [08:57:01]*** CUTSNS_PIN = 1 [08:57:01]*** CUTSNS_PIN = 0 [08:57:01]*** Brake cut motor [08:57:02]Read from MH i2c: 01 [08:57:02]MH_I2C_Read... [08:57:02]*** Stop cut motor [08:57:02]*** Cut end [08:57:02]Read from MH i2c: 01 07 00 [08:57:02]MH_I2C_Read... [08:57:02]Read from MH i2c: 01 07 00 85 2F 00 00 00 00 00 FF 0F C9 [08:57:02]process_action close_receipt done [08:57:02]requested_data is exist [08:57:02]produce_requested_data [08:57:02]requested_item fm.sn is exist - process it [08:57:02]wFMCommunicate request_size=4 [08:57:02]MH_SAM_APDU [08:57:02]CAPDU: 80 11 00 00 [08:57:02]Write to MH i2c: E2 08 00 86 2F 80 11 00 00 00 00 00 00 2F [08:57:02]Write i2c OK [08:57:02]MH_I2C_Read... [08:57:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:02]Read from MH i2c: E2 [08:57:02]MH_I2C_Read... [08:57:02]Read from MH i2c: E2 17 00 [08:57:02]MH_I2C_Read... [08:57:02]Read from MH i2c: E2 17 00 86 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8A [08:57:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:57:02]wFMCommunicate OK [08:57:02]requested_item fd.num is exist - process it [08:57:02]SAM_PROTO_GetFieldsCounters [08:57:02]wFMCommunicate request_size=4 [08:57:02]MH_SAM_APDU [08:57:02]CAPDU: 80 13 00 00 [08:57:02]Write to MH i2c: E2 08 00 87 2F 80 13 00 00 00 00 00 00 32 [08:57:02]Write i2c OK [08:57:02]MH_I2C_Read... [08:57:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:02]Read from MH i2c: E2 [08:57:02]MH_I2C_Read... [08:57:02]Read from MH i2c: E2 62 00 [08:57:02]MH_I2C_Read... [08:57:02]Read from MH i2c: E2 62 00 87 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 58 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [08:57:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 58 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:57:02]wFMCommunicate OK [08:57:02]SAM_PROTO_GetFieldsCounters done [08:57:02]requested_item shift.num is exist - process it [08:57:02]requested_item shift.opened is exist - process it [08:57:02]req_shift_opened [08:57:02]FM_GetShiftState [08:57:02]SAM_PROTO_GetShiftState [08:57:02]wFMCommunicate request_size=4 [08:57:02]MH_SAM_APDU [08:57:02]CAPDU: 80 13 01 00 [08:57:02]Write to MH i2c: E2 08 00 88 2F 80 13 01 00 00 00 00 00 34 [08:57:02]Write i2c OK [08:57:02]MH_I2C_Read... [08:57:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:02]Read from MH i2c: E2 [08:57:02]MH_I2C_Read... [08:57:02]Read from MH i2c: E2 0E 00 [08:57:02]MH_I2C_Read... [08:57:02]Read from MH i2c: E2 0E 00 88 2F 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 C1 [08:57:02]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [08:57:02]wFMCommunicate OK [08:57:02]SAM_PROTO_GetShiftState done [08:57:02]FM_GetShiftState done [08:57:02]req_shift_opened done [08:57:02]requested_item shift.open_date is exist - process it [08:57:02]req_shift_open_date [08:57:02]req_shift_open_date done [08:57:02]produce_requested_data done [08:57:02]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118104,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [08:57:02]process_action_free close_receipt [08:57:02]json_value_free [08:57:02]json_value_free done [08:57:02]process_json_proto returns [08:57:02]Send response to host [08:57:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118104,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [08:57:02]free response buf [08:57:02]execute_script done [08:57:02]execute_script returns [08:57:02]free content buf [08:57:02]Sock 9.Close socket [08:57:02]Sock 9.Thread stoped [08:57:06]OFD Sender: No OFD packet to send [08:57:11]OFD Sender: No OFD packet to send [08:57:16]OFD Sender: No OFD packet to send [08:57:21]OFD Sender: No OFD packet to send [08:57:26]OFD Sender: No OFD packet to send [08:57:31]OFD Sender: No OFD packet to send [08:57:36]OFD Sender: No OFD packet to send [08:57:41]OFD Sender: No OFD packet to send [08:57:46]OFD Sender: No OFD packet to send [08:57:51]OFD Sender: No OFD packet to send [08:57:56]OFD Sender: No OFD packet to send [08:58:01]OFD Sender: No OFD packet to send [08:58:06]OFD Sender: No OFD packet to send [08:58:11]OFD Sender: No OFD packet to send [08:58:16]OFD Sender: No OFD packet to send [08:58:21]OFD Sender: No OFD packet to send [08:58:26]OFD Sender: No OFD packet to send [08:58:31]OFD Sender: No OFD packet to send [08:58:36]OFD Sender: No OFD packet to send [08:58:41]OFD Sender: No OFD packet to send [08:58:46]OFD Sender: No OFD packet to send [08:58:51]OFD Sender: No OFD packet to send [08:58:56]OFD Sender: No OFD packet to send [08:59:01]OFD Sender: No OFD packet to send [08:59:06]OFD Sender: No OFD packet to send [08:59:11]OFD Sender: No OFD packet to send [08:59:16]OFD Sender: No OFD packet to send [08:59:21]OFD Sender: No OFD packet to send [08:59:26]OFD Sender: No OFD packet to send [08:59:31]OFD Sender: No OFD packet to send [08:59:36]OFD Sender: No OFD packet to send [08:59:41]OFD Sender: No OFD packet to send [08:59:46]OFD Sender: No OFD packet to send [08:59:51]OFD Sender: No OFD packet to send [08:59:56]OFD Sender: No OFD packet to send [09:00:01]OFD Sender: No OFD packet to send [09:00:06]OFD Sender: No OFD packet to send [09:00:11]OFD Sender: No OFD packet to send [09:00:16]OFD Sender: No OFD packet to send [09:00:21]OFD Sender: No OFD packet to send [09:00:26]OFD Sender: No OFD packet to send [09:00:31]OFD Sender: No OFD packet to send [09:00:36]OFD Sender: No OFD packet to send [09:00:41]OFD Sender: No OFD packet to send [09:00:46]OFD Sender: No OFD packet to send [09:00:51]OFD Sender: No OFD packet to send [09:00:56]OFD Sender: No OFD packet to send [09:01:01]OFD Sender: No OFD packet to send [09:01:06]OFD Sender: No OFD packet to send [09:01:11]OFD Sender: No OFD packet to send [09:01:16]OFD Sender: No OFD packet to send [09:01:21]OFD Sender: No OFD packet to send [09:01:26]OFD Sender: No OFD packet to send [09:01:31]OFD Sender: No OFD packet to send [09:01:33]accept exits with 7 [09:01:33]New connection [09:01:33]New thread 3067284836 created [09:01:33]Thread 3067428196 joined [09:01:33]Waiting for new connection... [09:01:33] Sock 7.Parse request [09:01:33]Sock 7.Check first char [09:01:33]Sock 7.First char is OK [09:01:33]request: POST /json_proto HTTP/1.0 [09:01:33]Method: POST [09:01:33]URL: /json_proto [09:01:33]Method is POST - this is cgi request [09:01:33]url: /json_proto [09:01:33]query_string will be loaded in cgi processing [09:01:33]execute_cgi json_proto POST (null) [09:01:33]execute_cgi path=json_proto method=POST [09:01:33]POST find Content-Length [09:01:33]Host: 172.17.45.7:8080 [09:01:33]Content-Length: 677 [09:01:33]Content-Type: application/json [09:01:33] [09:01:33]POST finish read [09:01:33]Found Content-Length = 677 [09:01:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:33]execute_script... [09:01: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)948976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:33]POST & json_proto [09:01:33]process_json_proto [09:01:33]json parsed OK: [09:01:33]protocol is kg_v1.0 [09:01:33]action value=close_receipt [09:01:33]process_action close_receipt [09:01:33]cmd_close_receipt [09:01:33]MH_GetDate [09:01:33]Write to MH i2c: F0 00 00 89 2F A7 [09:01:33]Write i2c OK [09:01:33]MH_I2C_Read... [09:01:33]Read from MH i2c: F0 [09:01:33]MH_I2C_Read... [09:01:33]Read from MH i2c: F0 09 00 [09:01:33]MH_I2C_Read... [09:01:33]Read from MH i2c: F0 09 00 89 2F 00 71 B7 A4 66 90 0F 3E 66 25 [09:01:33]GetLastDocTimeStamp 1722070622 [09:01:33]current date 1722070897 [09:01:33]FM_GetShiftState [09:01:33]SAM_PROTO_GetShiftState [09:01:33]wFMCommunicate request_size=4 [09:01:33]MH_SAM_APDU [09:01:33]CAPDU: 80 13 01 00 [09:01:33]Write to MH i2c: E2 08 00 8A 2F 80 13 01 00 00 00 00 00 36 [09:01:33]Write i2c OK [09:01:33]MH_I2C_Read... [09:01:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:33]Read from MH i2c: E2 [09:01:33]MH_I2C_Read... [09:01:33]Read from MH i2c: E2 0E 00 [09:01:33]MH_I2C_Read... [09:01:33]Read from MH i2c: E2 0E 00 8A 2F 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 C3 [09:01:33]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:01:33]wFMCommunicate OK [09:01:33]SAM_PROTO_GetShiftState done [09:01:33]FM_GetShiftState done [09:01:33]opened in 1722038845 [09:01:33]opened+sec_in_day 1722125245 [09:01:33]quantity*price = 50036 [09:01:33]sum+1 = 50037 [09:01:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 48 27.07.2024 09:01 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118105 ФПД: 146190256443683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T090137&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118105&fm=146190256443683&tin=02508201610067®Number=0000000000092660&sum=50000 [09:01:34]StoreToDocumentArchive [09:01:34]shift 432 fd 118105 [09:01:34]save to /storage/0432/doc_00118105 [09:01:34]save last doc name /storage/0432/doc_00118105 to /storage/kkm_last_doc_name [09:01:34]save OK [09:01:34]Clear old archive folders... [09:01:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:01:34]tlvbuf is 006B9230 [09:01:34]SAM_PROTO_ClearQueue [09:01:34]wFMCommunicate request_size=4 [09:01:34]MH_SAM_APDU [09:01:34]CAPDU: 80 09 00 00 [09:01:34]Write to MH i2c: E2 08 00 97 2F 80 09 00 00 00 00 00 00 38 [09:01:34]Write i2c OK [09:01:34]MH_I2C_Read... [09:01:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:34]Read from MH i2c: E2 [09:01:34]MH_I2C_Read... [09:01:34]Read from MH i2c: E2 03 00 [09:01:34]MH_I2C_Read... [09:01:34]Read from MH i2c: E2 03 00 97 2F 00 90 00 3A [09:01:34]RAPDU: 90 00 [09:01:34]wFMCommunicate OK [09:01:34]SAM_PROTO_ClearQueue done [09:01:34]KKMCreateOFDPacket [09:01:34]OFDProtocolAddRootSTLVToBuf [09:01:34]FM_MakeSignedData [09:01:34]FM_MakeSignedData [09:01:34]SAM_PROTO_SignData [09:01:34]wFMCommunicate request_size=4 [09:01:34]MH_SAM_APDU [09:01:34]CAPDU: 80 0D 01 02 [09:01:34]Write to MH i2c: E2 08 00 98 2F 80 0D 01 02 00 00 00 00 40 [09:01:34]Write i2c OK [09:01:34]MH_I2C_Read... [09:01:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:34]Read from MH i2c: E2 [09:01:34]MH_I2C_Read... [09:01:34]Read from MH i2c: E2 03 00 [09:01:34]MH_I2C_Read... [09:01:34]Read from MH i2c: E2 03 00 98 2F 00 90 00 3B [09:01:34]RAPDU: 90 00 [09:01:34]wFMCommunicate OK [09:01:34]wFMCommunicate request_size=255 [09:01:34]MH_SAM_APDU [09:01:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 30 00 00 00 F4 03 04 00 71 B7 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 59 CD 01 00 35 04 06 00 84 [09:01:34]Write to MH i2c: E2 02 01 99 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 30 00 00 00 F4 03 04 00 71 B7 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 59 CD 01 00 35 04 06 00 84 00 00 82 [09:01:34]Write i2c OK [09:01:34]MH_I2C_Read... [09:01:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:35]Read from MH i2c: E2 [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: E2 03 00 [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: E2 03 00 99 2F 00 90 00 3C [09:01:35]RAPDU: 90 00 [09:01:35]wFMCommunicate OK [09:01:35]wFMCommunicate request_size=10 [09:01:35]MH_SAM_APDU [09:01:35]CAPDU: 80 0D 02 02 05 F5 92 4E 11 23 [09:01:35]Write to MH i2c: E2 0D 00 9A 2F 80 0D 02 02 05 00 F5 92 4E 11 23 00 00 56 [09:01:35]Write i2c OK [09:01:35]MH_I2C_Read... [09:01:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:35]Read from MH i2c: E2 [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: E2 03 00 [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: E2 03 00 9A 2F 00 90 00 3D [09:01:35]RAPDU: 90 00 [09:01:35]wFMCommunicate OK [09:01:35]wFMCommunicate request_size=4 [09:01:35]MH_SAM_APDU [09:01:35]CAPDU: 80 0D 03 02 [09:01:35]Write to MH i2c: E2 08 00 9B 2F 80 0D 03 02 00 00 00 00 45 [09:01:35]Write i2c OK [09:01:35]MH_I2C_Read... [09:01:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:35]Read from MH i2c: E2 [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: E2 0B 00 [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: E2 0B 00 9B 2F 00 E1 06 7F 7E 1F 2D 5D 27 90 00 FA [09:01:35]RAPDU: E1 06 7F 7E 1F 2D 5D 27 90 00 [09:01:35]wFMCommunicate OK [09:01:35]SAM_PROTO_SignData done [09:01:35]FM_MakeSignedData done [09:01:35]CreateOFDProtocolMessage [09:01:35]wFMCommunicate request_size=4 [09:01:35]MH_SAM_APDU [09:01:35]CAPDU: 80 11 00 00 [09:01:35]Write to MH i2c: E2 08 00 9C 2F 80 11 00 00 00 00 00 00 45 [09:01:35]Write i2c OK [09:01:35]MH_I2C_Read... [09:01:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:35]Read from MH i2c: E2 [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: E2 17 00 [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: E2 17 00 9C 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A0 [09:01:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:01:35]wFMCommunicate OK [09:01:35]CreateOFDProtocolMessage done [09:01:35]OFDSenderStorePacket 118105 [09:01:35]StoreOFDPacket docnum=118105 [09:01:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 3C 16 07 01 69 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 30 00 00 00 F4 03 04 00 71 B7 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 59 CD 01 00 35 04 06 00 84 F5 92 4E 11 23 E1 06 7F 7E 1F 2D 5D 27 [09:01:35]CheckFolder [09:01:35]dirname=/storage/ofd_packets [09:01:35]CheckFolder done [09:01:35]ProducePacketName [09:01:35]name=ofd_packets/00118105 [09:01:35]NVStorageSaveData ofd_packets/00118105 [09:01:35]File name is /storage/ofd_packets/00118105 [09:01:35]Write 301 bytes [09:01:35]NVStorageSaveData done [09:01:35]OFDSenderStorePacket done [09:01:35]KKMCreateOFDPacket done [09:01:35]NVStorageSaveData kkm_last_timestamp [09:01:35]File name is /storage/kkm_last_timestamp [09:01:35]Write 4 bytes [09:01:35]NVStorageSaveData done [09:01:35]ExternCall_PrintAddStr [09:01:35]wPrintStart [09:01:35]Write to MH i2c: 01 00 00 9D 2F CC [09:01:35]Write i2c OK [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: 01 [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: 01 07 00 [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: 01 07 00 9D 2F 00 00 00 00 00 FF 0F E1 [09:01:35]RasterBufferAndPrint [09:01:35]line Счет N : (1)948976 [09:01:35]line ИНН: 02508201610067 [09:01:35]line Контрольно-Кассовый Чек [09:01:35]line ПРОДАЖА [09:01:35]line ТРК (МРК, ГНК) : 31 [09:01:35]line Товар: 2710124130 [09:01:35]line Аи-92-К-4 [09:01:35]line 7.380 * 67.80 [09:01:35]line = 500.36 [09:01:35]line НДС 12% НСП 1% [09:01:35]line > о реализуемом товаре [09:01:35]line ОКРУГЛЕНИЕ: -0.36 [09:01:35]line ИТОГО: 500.00 [09:01:35]line Внесено: 500.00 [09:01:35]line СДАЧА: 0.00 [09:01:35]line НСП 1% : 4.43 [09:01:35]line НДС 12% : 53.14 [09:01:35]line Наличными: 500.00 [09:01:35]line Безнал.: 0.00 [09:01:35]line Место: АЗС № 134 "Партнер Нефть" [09:01:35]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:01:35]line СНО: Общий режим [09:01:35]line Чек 48 27.07.2024 09:01 [09:01:35]line Смена: 432 ФФД: 1.0 [09:01:35]line ЗНМ: 0300000044 [09:01:35]line РНМ: 0000000000092660 [09:01:35]line Версия ККМ: 001 [09:01:35]line ФМ: 0000000000874939 [09:01:35]line ФД: 118105 [09:01:35]line ФПД: 146190256443683 [09:01:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T090137&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118105&fm=146190256443683&tin=02508201610067®Number=0000000000092660&sum=50000 [09:01:35]OFD Sender: Processing packet 118105 [packets to send 85, broken 84] [09:01:35]ProducePacketName [09:01:35]name=ofd_packets/00118105 [09:01:35]OFD Sender: To server: pG, [09:01:35]CommunicateWithHost lk.salyk.kg:30040 [09:01:35]ConnectInit lk.salyk.kg [09:01:35]written 0, free lines is 4095 [09:01:35]Connected sock=10 [09:01:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 3C 16 07 01 69 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 30 00 00 00 F4 03 04 00 71 B7 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 59 CD 01 00 35 04 06 00 84 F5 92 4E 11 23 E1 06 7F 7E 1F 2D 5D 27 [09:01:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 53 B9 47 00 DF F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 59 CD 01 00 F4 03 04 00 04 65 A4 66 B6 04 01 00 00 4E 96 BB E0 62 D5 66 B1 [09:01:35]CommunicateWithHost err = 0 [09:01:35]CheckOFDResponse [09:01:35]1017 (14) - 77093643461234 [09:01:35]1041 (16) - 0000000000874939 [09:01:35]1040 (4) - 118105 [09:01:35]1012 (4) - 27.07.2024 03:09 [09:01:35]1206 (1) - 0 [09:01:35]OFD Sender: Remove packet 118105 [09:01:35]ProducePacketName [09:01:35]name=ofd_packets/00118105 [09:01:35]NVStorageDeleteData [09:01:35]Write to MH i2c: 01 00 00 C7 2F F6 [09:01:35]Write i2c OK [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: 01 [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: 01 07 00 [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: 01 07 00 C7 2F 00 00 00 00 00 D2 0C DB [09:01:35]RasterBufferAndPrint [09:01:35]line [09:01:35]line [09:01:35]line [09:01:35]line [09:01:35]line [09:01:35]written 0, free lines is 3288 [09:01:36]MH_Cut [09:01:36]Write to MH i2c: D1 01 00 CE 2F 01 CF [09:01:36]Write i2c OK [09:01:36]MH_I2C_Read... [09:01:36]Read from MH i2c: D1 [09:01:36]MH_I2C_Read... [09:01:36]Read from MH i2c: D1 01 00 [09:01:36]MH_I2C_Read... [09:01:36]Read from MH i2c: D1 01 00 CE 2F 00 CE [09:01:36]Write to MH i2c: 01 00 00 CF 2F FE [09:01:36]Write i2c OK [09:01:36]MH_I2C_Read... [09:01:36]OFD Sender: No OFD packet to send [09:01:36]*** Cut start [09:01:36]*** Partial cut [09:01:36]*** CUTSNS_PIN = 1 [09:01:36]*** CUTSNS_PIN = 0 [09:01:37]*** Brake cut motor [09:01:37]Read from MH i2c: 01 [09:01:37]MH_I2C_Read... [09:01:37]*** Stop cut motor [09:01:37]*** Cut end [09:01:37]Read from MH i2c: 01 07 00 [09:01:37]MH_I2C_Read... [09:01:37]Read from MH i2c: 01 07 00 CF 2F 00 00 00 00 00 FF 0F 13 [09:01:37]process_action close_receipt done [09:01:37]requested_data is exist [09:01:37]produce_requested_data [09:01:37]requested_item fm.sn is exist - process it [09:01:37]wFMCommunicate request_size=4 [09:01:37]MH_SAM_APDU [09:01:37]CAPDU: 80 11 00 00 [09:01:37]Write to MH i2c: E2 08 00 D0 2F 80 11 00 00 00 00 00 00 79 [09:01:37]Write i2c OK [09:01:37]MH_I2C_Read... [09:01:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:37]Read from MH i2c: E2 [09:01:37]MH_I2C_Read... [09:01:37]Read from MH i2c: E2 17 00 [09:01:37]MH_I2C_Read... [09:01:37]Read from MH i2c: E2 17 00 D0 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D4 [09:01:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:01:37]wFMCommunicate OK [09:01:37]requested_item fd.num is exist - process it [09:01:37]SAM_PROTO_GetFieldsCounters [09:01:37]wFMCommunicate request_size=4 [09:01:37]MH_SAM_APDU [09:01:37]CAPDU: 80 13 00 00 [09:01:37]Write to MH i2c: E2 08 00 D1 2F 80 13 00 00 00 00 00 00 7C [09:01:37]Write i2c OK [09:01:37]MH_I2C_Read... [09:01:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:37]Read from MH i2c: E2 [09:01:37]MH_I2C_Read... [09:01:37]Read from MH i2c: E2 62 00 [09:01:37]MH_I2C_Read... [09:01:37]Read from MH i2c: E2 62 00 D1 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 59 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [09:01:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 59 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:01:37]wFMCommunicate OK [09:01:37]SAM_PROTO_GetFieldsCounters done [09:01:37]requested_item shift.num is exist - process it [09:01:37]requested_item shift.opened is exist - process it [09:01:37]req_shift_opened [09:01:37]FM_GetShiftState [09:01:37]SAM_PROTO_GetShiftState [09:01:37]wFMCommunicate request_size=4 [09:01:37]MH_SAM_APDU [09:01:37]CAPDU: 80 13 01 00 [09:01:37]Write to MH i2c: E2 08 00 D2 2F 80 13 01 00 00 00 00 00 7E [09:01:37]Write i2c OK [09:01:37]MH_I2C_Read... [09:01:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:37]Read from MH i2c: E2 [09:01:37]MH_I2C_Read... [09:01:37]Read from MH i2c: E2 0E 00 [09:01:37]MH_I2C_Read... [09:01:37]Read from MH i2c: E2 0E 00 D2 2F 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 0B [09:01:37]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:01:37]wFMCommunicate OK [09:01:37]SAM_PROTO_GetShiftState done [09:01:37]FM_GetShiftState done [09:01:37]req_shift_opened done [09:01:37]requested_item shift.open_date is exist - process it [09:01:37]req_shift_open_date [09:01:37]req_shift_open_date done [09:01:37]produce_requested_data done [09:01:37]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118105,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [09:01:37]process_action_free close_receipt [09:01:37]json_value_free [09:01:37]json_value_free done [09:01:37]process_json_proto returns [09:01:37]Send response to host [09:01:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118105,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [09:01:37]free response buf [09:01:37]execute_script done [09:01:37]execute_script returns [09:01:37]free content buf [09:01:37]Sock 7.Close socket [09:01:37]Sock 7.Thread stoped [09:01:41]OFD Sender: No OFD packet to send [09:01:46]OFD Sender: No OFD packet to send [09:01:51]OFD Sender: No OFD packet to send [09:01:56]OFD Sender: No OFD packet to send [09:02:01]OFD Sender: No OFD packet to send [09:02:06]OFD Sender: No OFD packet to send [09:02:11]OFD Sender: No OFD packet to send [09:02:16]OFD Sender: No OFD packet to send [09:02:21]OFD Sender: No OFD packet to send [09:02:26]OFD Sender: No OFD packet to send [09:02:31]OFD Sender: No OFD packet to send [09:02:36]OFD Sender: No OFD packet to send [09:02:41]OFD Sender: No OFD packet to send [09:02:46]OFD Sender: No OFD packet to send [09:02:51]OFD Sender: No OFD packet to send [09:02:56]OFD Sender: No OFD packet to send [09:03:01]OFD Sender: No OFD packet to send [09:03:06]OFD Sender: No OFD packet to send [09:03:11]OFD Sender: No OFD packet to send [09:03:16]OFD Sender: No OFD packet to send [09:03:21]OFD Sender: No OFD packet to send [09:03:26]OFD Sender: No OFD packet to send [09:03:31]OFD Sender: No OFD packet to send [09:03:36]OFD Sender: No OFD packet to send [09:03:41]OFD Sender: No OFD packet to send [09:03:46]OFD Sender: No OFD packet to send [09:03:51]OFD Sender: No OFD packet to send [09:03:56]OFD Sender: No OFD packet to send [09:04:01]OFD Sender: No OFD packet to send [09:04:06]OFD Sender: No OFD packet to send [09:04:11]OFD Sender: No OFD packet to send [09:04:16]OFD Sender: No OFD packet to send [09:04:21]OFD Sender: No OFD packet to send [09:04:26]OFD Sender: No OFD packet to send [09:04:31]OFD Sender: No OFD packet to send [09:04:36]OFD Sender: No OFD packet to send [09:04:41]OFD Sender: No OFD packet to send [09:04:46]OFD Sender: No OFD packet to send [09:04:51]OFD Sender: No OFD packet to send [09:04:56]OFD Sender: No OFD packet to send [09:05:01]OFD Sender: No OFD packet to send [09:05:06]OFD Sender: No OFD packet to send [09:05:11]OFD Sender: No OFD packet to send [09:05:16]OFD Sender: No OFD packet to send [09:05:21]OFD Sender: No OFD packet to send [09:05:26]OFD Sender: No OFD packet to send [09:05:31]OFD Sender: No OFD packet to send [09:05:36]OFD Sender: No OFD packet to send [09:05:41]OFD Sender: No OFD packet to send [09:05:46]OFD Sender: No OFD packet to send [09:05:51]OFD Sender: No OFD packet to send [09:05:56]OFD Sender: No OFD packet to send [09:06:01]OFD Sender: No OFD packet to send [09:06:04]accept exits with 9 [09:06:04]New connection [09:06:04]New thread 3067428196 created [09:06:04]Thread 3067284836 joined [09:06:04]Waiting for new connection... [09:06:04] Sock 9.Parse request [09:06:04]Sock 9.Check first char [09:06:04]Sock 9.First char is OK [09:06:04]request: POST /json_proto HTTP/1.0 [09:06:04]Method: POST [09:06:04]URL: /json_proto [09:06:04]Method is POST - this is cgi request [09:06:04]url: /json_proto [09:06:04]query_string will be loaded in cgi processing [09:06:04]execute_cgi json_proto POST (null) [09:06:04]execute_cgi path=json_proto method=POST [09:06:04]POST find Content-Length [09:06:04]Host: 172.17.45.7:8080 [09:06:04]Content-Length: 819 [09:06:04]Content-Type: application/json [09:06:04] [09:06:04]POST finish read [09:06:04]Found Content-Length = 819 [09:06:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 62.990, "sum" : 4799.84, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 4799.00, "payments": [ { "type": 1, "sum" : 4799.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:04]execute_script... [09:06: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)948977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 62.990, "sum" : 4799.84, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 4799.00, "payments": [ { "type": 1, "sum" : 4799.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:04]POST & json_proto [09:06:04]process_json_proto [09:06:04]json parsed OK: [09:06:04]protocol is kg_v1.0 [09:06:04]action value=close_receipt [09:06:04]process_action close_receipt [09:06:04]cmd_close_receipt [09:06:04]MH_GetDate [09:06:04]Write to MH i2c: F0 00 00 D3 2F F1 [09:06:04]Write i2c OK [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: F0 [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: F0 09 00 [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: F0 09 00 D3 2F 00 80 B8 A4 66 90 0F 3E 66 7F [09:06:04]GetLastDocTimeStamp 1722070897 [09:06:04]current date 1722071168 [09:06:04]FM_GetShiftState [09:06:04]SAM_PROTO_GetShiftState [09:06:04]wFMCommunicate request_size=4 [09:06:04]MH_SAM_APDU [09:06:04]CAPDU: 80 13 01 00 [09:06:04]Write to MH i2c: E2 08 00 D4 2F 80 13 01 00 00 00 00 00 80 [09:06:04]Write i2c OK [09:06:04]MH_I2C_Read... [09:06:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:04]Read from MH i2c: E2 [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: E2 0E 00 [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: E2 0E 00 D4 2F 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 0D [09:06:04]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:06:04]wFMCommunicate OK [09:06:04]SAM_PROTO_GetShiftState done [09:06:04]FM_GetShiftState done [09:06:04]opened in 1722038845 [09:06:04]opened+sec_in_day 1722125245 [09:06:04]quantity*price = 479983 [09:06:04]sum+1 = 479985 [09:06:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.84 ИТОГО: 4799.00 НСП 1% : 42.48 НДС 12% : 509.72 Наличными: 0.00 Безнал.: 4799.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 49 27.07.2024 09:06 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118106 ФПД: 144858732301413 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T090608&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118106&fm=144858732301413&tin=02508201610067®Number=0000000000092660&sum=479900 [09:06:05]StoreToDocumentArchive [09:06:05]shift 432 fd 118106 [09:06:05]save to /storage/0432/doc_00118106 [09:06:05]save last doc name /storage/0432/doc_00118106 to /storage/kkm_last_doc_name [09:06:05]save OK [09:06:05]Clear old archive folders... [09:06:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:06:05]tlvbuf is 006CE850 [09:06:05]SAM_PROTO_ClearQueue [09:06:05]wFMCommunicate request_size=4 [09:06:05]MH_SAM_APDU [09:06:05]CAPDU: 80 09 00 00 [09:06:05]Write to MH i2c: E2 08 00 E1 2F 80 09 00 00 00 00 00 00 82 [09:06:05]Write i2c OK [09:06:05]MH_I2C_Read... [09:06:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:06]Read from MH i2c: E2 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 03 00 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 03 00 E1 2F 00 90 00 84 [09:06:06]RAPDU: 90 00 [09:06:06]wFMCommunicate OK [09:06:06]SAM_PROTO_ClearQueue done [09:06:06]KKMCreateOFDPacket [09:06:06]OFDProtocolAddRootSTLVToBuf [09:06:06]FM_MakeSignedData [09:06:06]FM_MakeSignedData [09:06:06]SAM_PROTO_SignData [09:06:06]wFMCommunicate request_size=4 [09:06:06]MH_SAM_APDU [09:06:06]CAPDU: 80 0D 01 02 [09:06:06]Write to MH i2c: E2 08 00 E2 2F 80 0D 01 02 00 00 00 00 8A [09:06:06]Write i2c OK [09:06:06]MH_I2C_Read... [09:06:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:06]Read from MH i2c: E2 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 03 00 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 03 00 E2 2F 00 90 00 85 [09:06:06]RAPDU: 90 00 [09:06:06]wFMCommunicate OK [09:06:06]wFMCommunicate request_size=255 [09:06:06]MH_SAM_APDU [09:06: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0E F6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F0 52 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 52 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C C7 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 52 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 80 B8 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5A CD 01 00 35 04 06 00 83 BF 8D 48 [09:06:06]Write to MH i2c: E2 02 01 E3 2F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0E F6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F0 52 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 52 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C C7 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 52 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 80 B8 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5A CD 01 00 35 04 06 00 83 BF 8D 48 00 00 F8 [09:06:06]Write i2c OK [09:06:06]MH_I2C_Read... [09:06:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:06]Read from MH i2c: E2 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 03 00 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 03 00 E3 2F 00 90 00 86 [09:06:06]RAPDU: 90 00 [09:06:06]wFMCommunicate OK [09:06:06]wFMCommunicate request_size=7 [09:06:06]MH_SAM_APDU [09:06:06]CAPDU: 80 0D 02 02 02 0C 65 [09:06:06]Write to MH i2c: E2 0A 00 E4 2F 80 0D 02 02 02 00 0C 65 00 00 02 [09:06:06]Write i2c OK [09:06:06]MH_I2C_Read... [09:06:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:06]Read from MH i2c: E2 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 03 00 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 03 00 E4 2F 00 90 00 87 [09:06:06]RAPDU: 90 00 [09:06:06]wFMCommunicate OK [09:06:06]wFMCommunicate request_size=4 [09:06:06]MH_SAM_APDU [09:06:06]CAPDU: 80 0D 03 02 [09:06:06]Write to MH i2c: E2 08 00 E5 2F 80 0D 03 02 00 00 00 00 8F [09:06:06]Write i2c OK [09:06:06]MH_I2C_Read... [09:06:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:06]Read from MH i2c: E2 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 0B 00 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 0B 00 E5 2F 00 D9 A0 DE E1 1E 6F CE 9B 90 00 BE [09:06:06]RAPDU: D9 A0 DE E1 1E 6F CE 9B 90 00 [09:06:06]wFMCommunicate OK [09:06:06]SAM_PROTO_SignData done [09:06:06]FM_MakeSignedData done [09:06:06]CreateOFDProtocolMessage [09:06:06]wFMCommunicate request_size=4 [09:06:06]MH_SAM_APDU [09:06:06]CAPDU: 80 11 00 00 [09:06:06]Write to MH i2c: E2 08 00 E6 2F 80 11 00 00 00 00 00 00 8F [09:06:06]Write i2c OK [09:06:06]MH_I2C_Read... [09:06:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:06]Read from MH i2c: E2 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 17 00 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 17 00 E6 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EA [09:06:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:06:06]wFMCommunicate OK [09:06:06]CreateOFDProtocolMessage done [09:06:06]OFDSenderStorePacket 118106 [09:06:06]StoreOFDPacket docnum=118106 [09:06:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 DE A8 04 01 5C 01 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0E F6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F0 52 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 52 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C C7 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 52 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 80 B8 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5A CD 01 00 35 04 06 00 83 BF 8D 48 0C 65 D9 A0 DE E1 1E 6F CE 9B [09:06:06]CheckFolder [09:06:06]dirname=/storage/ofd_packets [09:06:06]CheckFolder done [09:06:06]ProducePacketName [09:06:06]name=ofd_packets/00118106 [09:06:06]NVStorageSaveData ofd_packets/00118106 [09:06:06]File name is /storage/ofd_packets/00118106 [09:06:06]Write 298 bytes [09:06:06]NVStorageSaveData done [09:06:06]OFDSenderStorePacket done [09:06:06]KKMCreateOFDPacket done [09:06:06]NVStorageSaveData kkm_last_timestamp [09:06:06]File name is /storage/kkm_last_timestamp [09:06:06]Write 4 bytes [09:06:06]NVStorageSaveData done [09:06:06]ExternCall_PrintAddStr [09:06:06]wPrintStart [09:06:06]Write to MH i2c: 01 00 00 E7 2F 16 [09:06:06]Write i2c OK [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: 01 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: 01 07 00 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: 01 07 00 E7 2F 00 00 00 00 00 FF 0F 2B [09:06:06]RasterBufferAndPrint [09:06:06]line Счет N : (1)948977 [09:06:06]line ИНН: 02508201610067 [09:06:06]line Контрольно-Кассовый Чек [09:06:06]line ПРОДАЖА [09:06:06]line ТРК (МРК, ГНК) : 54 [09:06:06]line Товар: 2710194800 [09:06:06]line ДТ-К-5 [09:06:06]line 62.990 * 76.20 [09:06:06]line = 4799.84 [09:06:06]line НДС 12% НСП 1% [09:06:06]line > о реализуемом товаре [09:06:06]line ОКРУГЛЕНИЕ: -0.84 [09:06:06]line ИТОГО: 4799.00 [09:06:06]line НСП 1% : 42.48 [09:06:06]line НДС 12% : 509.72 [09:06:06]line Наличными: 0.00 [09:06:06]line Безнал.: 4799.00 [09:06:06]line Место: АЗС № 134 "Партнер Нефть" [09:06:06]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:06:06]line СНО: Общий режим [09:06:06]line Чек 49 27.07.2024 09:06 [09:06:06]line Смена: 432 ФФД: 1.0 [09:06:06]line ЗНМ: 0300000044 [09:06:06]line РНМ: 0000000000092660 [09:06:06]line Версия ККМ: 001 [09:06:06]line Платежная система: O! деньги [09:06:06]line ФМ: 0000000000874939 [09:06:06]line ФД: 118106 [09:06:06]line ФПД: 144858732301413 [09:06:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T090608&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118106&fm=144858732301413&tin=02508201610067®Number=0000000000092660&sum=479900 [09:06:06]OFD Sender: Processing packet 118106 [packets to send 85, broken 84] [09:06:06]ProducePacketName [09:06:06]name=ofd_packets/00118106 [09:06:06]OFD Sender: To server: pG, [09:06:06]CommunicateWithHost lk.salyk.kg:30040 [09:06:06]ConnectInit lk.salyk.kg [09:06:06]written 0, free lines is 4095 [09:06:06]Connected sock=10 [09:06:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 DE A8 04 01 5C 01 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0E F6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F0 52 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 52 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C C7 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 52 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 80 B8 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5A CD 01 00 35 04 06 00 83 BF 8D 48 0C 65 D9 A0 DE E1 1E 6F CE 9B [09:06:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 9A 7F 47 00 A2 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 34 39 33 39 10 04 04 00 5A CD 01 00 F4 03 04 00 14 66 A4 66 B6 04 01 00 00 3C F7 BD 72 80 44 57 23 [09:06:07]CommunicateWithHost err = 0 [09:06:07]CheckOFDResponse [09:06:07]1017 (14) - 77093643461234 [09:06:07]1041 (16) - 0000000000874939 [09:06:07]1040 (4) - 118106 [09:06:07]1012 (4) - 27.07.2024 03:14 [09:06:07]1206 (1) - 0 [09:06:07]OFD Sender: Remove packet 118106 [09:06:07]ProducePacketName [09:06:07]name=ofd_packets/00118106 [09:06:07]NVStorageDeleteData [09:06:07]Write to MH i2c: 01 00 00 11 30 41 [09:06:07]Write i2c OK [09:06:07]MH_I2C_Read... [09:06:07]Read from MH i2c: 01 [09:06:07]MH_I2C_Read... [09:06:07]Read from MH i2c: 01 07 00 [09:06:07]MH_I2C_Read... [09:06:07]Read from MH i2c: 01 07 00 11 30 00 00 00 00 00 DD 0C 31 [09:06:07]RasterBufferAndPrint [09:06:07]line [09:06:07]line [09:06:07]line [09:06:07]line [09:06:07]line [09:06:07]written 0, free lines is 3302 [09:06:07]MH_Cut [09:06:07]Write to MH i2c: D1 01 00 18 30 01 1A [09:06:07]Write i2c OK [09:06:07]MH_I2C_Read... [09:06:07]Read from MH i2c: D1 [09:06:07]MH_I2C_Read... [09:06:07]Read from MH i2c: D1 01 00 [09:06:07]MH_I2C_Read... [09:06:07]Read from MH i2c: D1 01 00 18 30 00 19 [09:06:07]Write to MH i2c: 01 00 00 19 30 49 [09:06:07]Write i2c OK [09:06:07]MH_I2C_Read... [09:06:07]OFD Sender: No OFD packet to send [09:06:08]*** Cut start [09:06:08]*** Partial cut [09:06:08]*** CUTSNS_PIN = 1 [09:06:08]*** CUTSNS_PIN = 0 [09:06:08]*** Brake cut motor [09:06:08]Read from MH i2c: 01 [09:06:08]MH_I2C_Read... [09:06:08]*** Stop cut motor [09:06:08]*** Cut end [09:06:08]Read from MH i2c: 01 07 00 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: 01 07 00 19 30 00 00 00 00 00 FF 0F 5E [09:06:08]process_action close_receipt done [09:06:08]requested_data is exist [09:06:08]produce_requested_data [09:06:08]requested_item fm.sn is exist - process it [09:06:08]wFMCommunicate request_size=4 [09:06:08]MH_SAM_APDU [09:06:08]CAPDU: 80 11 00 00 [09:06:08]Write to MH i2c: E2 08 00 1A 30 80 11 00 00 00 00 00 00 C4 [09:06:08]Write i2c OK [09:06:08]MH_I2C_Read... [09:06:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:08]Read from MH i2c: E2 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: E2 17 00 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: E2 17 00 1A 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1F [09:06:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:06:08]wFMCommunicate OK [09:06:08]requested_item fd.num is exist - process it [09:06:08]SAM_PROTO_GetFieldsCounters [09:06:08]wFMCommunicate request_size=4 [09:06:08]MH_SAM_APDU [09:06:08]CAPDU: 80 13 00 00 [09:06:08]Write to MH i2c: E2 08 00 1B 30 80 13 00 00 00 00 00 00 C7 [09:06:08]Write i2c OK [09:06:08]MH_I2C_Read... [09:06:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:08]Read from MH i2c: E2 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: E2 62 00 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: E2 62 00 1B 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5A CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [09:06:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5A CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:06:08]wFMCommunicate OK [09:06:08]SAM_PROTO_GetFieldsCounters done [09:06:08]requested_item shift.num is exist - process it [09:06:08]requested_item shift.opened is exist - process it [09:06:08]req_shift_opened [09:06:08]FM_GetShiftState [09:06:08]SAM_PROTO_GetShiftState [09:06:08]wFMCommunicate request_size=4 [09:06:08]MH_SAM_APDU [09:06:08]CAPDU: 80 13 01 00 [09:06:08]Write to MH i2c: E2 08 00 1C 30 80 13 01 00 00 00 00 00 C9 [09:06:08]Write i2c OK [09:06:08]MH_I2C_Read... [09:06:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:08]Read from MH i2c: E2 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: E2 0E 00 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: E2 0E 00 1C 30 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 56 [09:06:08]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:06:08]wFMCommunicate OK [09:06:08]SAM_PROTO_GetShiftState done [09:06:08]FM_GetShiftState done [09:06:08]req_shift_opened done [09:06:08]requested_item shift.open_date is exist - process it [09:06:08]req_shift_open_date [09:06:08]req_shift_open_date done [09:06:08]produce_requested_data done [09:06:08]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118106,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [09:06:08]process_action_free close_receipt [09:06:08]json_value_free [09:06:08]json_value_free done [09:06:08]process_json_proto returns [09:06:08]Send response to host [09:06:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118106,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [09:06:08]free response buf [09:06:08]execute_script done [09:06:08]execute_script returns [09:06:08]free content buf [09:06:08]Sock 9.Close socket [09:06:08]Sock 9.Thread stoped [09:06:12]OFD Sender: No OFD packet to send [09:06:17]OFD Sender: No OFD packet to send [09:06:22]OFD Sender: No OFD packet to send [09:06:27]accept exits with 7 [09:06:27]New connection [09:06:27]New thread 3067284836 created [09:06:27]Thread 3067428196 joined [09:06:27]Waiting for new connection... [09:06:27] Sock 7.Parse request [09:06:27]Sock 7.Check first char [09:06:27]Sock 7.First char is OK [09:06:27]request: POST /json_proto HTTP/1.0 [09:06:27]Method: POST [09:06:27]URL: /json_proto [09:06:27]Method is POST - this is cgi request [09:06:27]url: /json_proto [09:06:27]query_string will be loaded in cgi processing [09:06:27]execute_cgi json_proto POST (null) [09:06:27]execute_cgi path=json_proto method=POST [09:06:27]POST find Content-Length [09:06:27]Host: 172.17.45.7:8080 [09:06:27]Content-Length: 678 [09:06:27]Content-Type: application/json [09:06:27] [09:06:27]POST finish read [09:06:27]Found Content-Length = 678 [09:06:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "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:06:27]execute_script... [09:06:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "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:06:27]POST & json_proto [09:06:27]process_json_proto [09:06:27]json parsed OK: [09:06:27]protocol is kg_v1.0 [09:06:27]action value=close_receipt [09:06:27]process_action close_receipt [09:06:27]cmd_close_receipt [09:06:27]MH_GetDate [09:06:27]Write to MH i2c: F0 00 00 1D 30 3C [09:06:27]Write i2c OK [09:06:27]MH_I2C_Read... [09:06:27]Read from MH i2c: F0 [09:06:27]MH_I2C_Read... [09:06:27]Read from MH i2c: F0 09 00 [09:06:27]MH_I2C_Read... [09:06:27]Read from MH i2c: F0 09 00 1D 30 00 97 B8 A4 66 90 0F 3E 66 E1 [09:06:27]GetLastDocTimeStamp 1722071168 [09:06:27]current date 1722071191 [09:06:27]FM_GetShiftState [09:06:27]SAM_PROTO_GetShiftState [09:06:27]wFMCommunicate request_size=4 [09:06:27]MH_SAM_APDU [09:06:27]CAPDU: 80 13 01 00 [09:06:27]Write to MH i2c: E2 08 00 1E 30 80 13 01 00 00 00 00 00 CB [09:06:27]Write i2c OK [09:06:27]MH_I2C_Read... [09:06:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:27]Read from MH i2c: E2 [09:06:27]MH_I2C_Read... [09:06:27]Read from MH i2c: E2 0E 00 [09:06:27]MH_I2C_Read... [09:06:27]Read from MH i2c: E2 0E 00 1E 30 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 58 [09:06:27]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:06:27]wFMCommunicate OK [09:06:27]SAM_PROTO_GetShiftState done [09:06:27]FM_GetShiftState done [09:06:27]opened in 1722038845 [09:06:27]opened+sec_in_day 1722125245 [09:06:27]quantity*price = 80004 [09:06:27]sum+1 = 80005 [09:06:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 50 27.07.2024 09:06 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118107 ФПД: 42373891892155 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T090631&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118107&fm=42373891892155&tin=02508201610067®Number=0000000000092660&sum=80000 [09:06:28]StoreToDocumentArchive [09:06:28]shift 432 fd 118107 [09:06:28]save to /storage/0432/doc_00118107 [09:06:28]save last doc name /storage/0432/doc_00118107 to /storage/kkm_last_doc_name [09:06:28]save OK [09:06:28]Clear old archive folders... [09:06:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:06:28]tlvbuf is 006CE640 [09:06:28]SAM_PROTO_ClearQueue [09:06:28]wFMCommunicate request_size=4 [09:06:28]MH_SAM_APDU [09:06:28]CAPDU: 80 09 00 00 [09:06:28]Write to MH i2c: E2 08 00 2B 30 80 09 00 00 00 00 00 00 CD [09:06:28]Write i2c OK [09:06:28]MH_I2C_Read... [09:06:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:28]Read from MH i2c: E2 [09:06:28]MH_I2C_Read... [09:06:28]Read from MH i2c: E2 03 00 [09:06:28]MH_I2C_Read... [09:06:28]Read from MH i2c: E2 03 00 2B 30 00 90 00 CF [09:06:28]RAPDU: 90 00 [09:06:28]wFMCommunicate OK [09:06:28]SAM_PROTO_ClearQueue done [09:06:28]KKMCreateOFDPacket [09:06:28]OFDProtocolAddRootSTLVToBuf [09:06:28]FM_MakeSignedData [09:06:28]FM_MakeSignedData [09:06:28]SAM_PROTO_SignData [09:06:28]wFMCommunicate request_size=4 [09:06:28]MH_SAM_APDU [09:06:28]CAPDU: 80 0D 01 02 [09:06:28]Write to MH i2c: E2 08 00 2C 30 80 0D 01 02 00 00 00 00 D5 [09:06:28]Write i2c OK [09:06:28]MH_I2C_Read... [09:06:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:28]Read from MH i2c: E2 [09:06:28]MH_I2C_Read... [09:06:28]Read from MH i2c: E2 03 00 [09:06:28]MH_I2C_Read... [09:06:28]Read from MH i2c: E2 03 00 2C 30 00 90 00 D0 [09:06:28]RAPDU: 90 00 [09:06:28]wFMCommunicate OK [09:06:28]wFMCommunicate request_size=255 [09:06:28]MH_SAM_APDU [09:06: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 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 32 00 00 00 F4 03 04 00 97 B8 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5B CD 01 00 35 04 06 00 26 [09:06:28]Write to MH i2c: E2 02 01 2D 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 32 00 00 00 F4 03 04 00 97 B8 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5B CD 01 00 35 04 06 00 26 00 00 91 [09:06:28]Write i2c OK [09:06:28]MH_I2C_Read... [09:06:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:28]Read from MH i2c: E2 [09:06:28]MH_I2C_Read... [09:06:28]Read from MH i2c: E2 03 00 [09:06:28]MH_I2C_Read... [09:06:28]Read from MH i2c: E2 03 00 2D 30 00 90 00 D1 [09:06:28]RAPDU: 90 00 [09:06:28]wFMCommunicate OK [09:06:28]wFMCommunicate request_size=10 [09:06:28]MH_SAM_APDU [09:06:28]CAPDU: 80 0D 02 02 05 89 F0 C6 23 BB [09:06:28]Write to MH i2c: E2 0D 00 2E 30 80 0D 02 02 05 00 89 F0 C6 23 BB 00 00 FF [09:06:28]Write i2c OK [09:06:28]MH_I2C_Read... [09:06:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:28]Read from MH i2c: E2 [09:06:28]MH_I2C_Read... [09:06:28]Read from MH i2c: E2 03 00 [09:06:28]MH_I2C_Read... [09:06:28]Read from MH i2c: E2 03 00 2E 30 00 90 00 D2 [09:06:28]RAPDU: 90 00 [09:06:28]wFMCommunicate OK [09:06:28]wFMCommunicate request_size=4 [09:06:28]MH_SAM_APDU [09:06:28]CAPDU: 80 0D 03 02 [09:06:28]Write to MH i2c: E2 08 00 2F 30 80 0D 03 02 00 00 00 00 DA [09:06:28]Write i2c OK [09:06:28]MH_I2C_Read... [09:06:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:28]Read from MH i2c: E2 [09:06:28]MH_I2C_Read... [09:06:28]Read from MH i2c: E2 0B 00 [09:06:28]MH_I2C_Read... [09:06:28]Read from MH i2c: E2 0B 00 2F 30 00 34 14 B3 3B 90 05 86 9F 90 00 CB [09:06:28]RAPDU: 34 14 B3 3B 90 05 86 9F 90 00 [09:06:28]wFMCommunicate OK [09:06:28]SAM_PROTO_SignData done [09:06:28]FM_MakeSignedData done [09:06:28]CreateOFDProtocolMessage [09:06:28]wFMCommunicate request_size=4 [09:06:28]MH_SAM_APDU [09:06:28]CAPDU: 80 11 00 00 [09:06:28]Write to MH i2c: E2 08 00 30 30 80 11 00 00 00 00 00 00 DA [09:06:28]Write i2c OK [09:06:28]MH_I2C_Read... [09:06:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:28]Read from MH i2c: E2 [09:06:28]MH_I2C_Read... [09:06:28]Read from MH i2c: E2 17 00 [09:06:28]MH_I2C_Read... [09:06:28]Read from MH i2c: E2 17 00 30 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 35 [09:06:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:06:28]wFMCommunicate OK [09:06:28]CreateOFDProtocolMessage done [09:06:28]OFDSenderStorePacket 118107 [09:06:28]StoreOFDPacket docnum=118107 [09:06:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E6 7D 07 01 2F 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 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 32 00 00 00 F4 03 04 00 97 B8 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5B CD 01 00 35 04 06 00 26 89 F0 C6 23 BB 34 14 B3 3B 90 05 86 9F [09:06:28]CheckFolder [09:06:28]dirname=/storage/ofd_packets [09:06:28]CheckFolder done [09:06:28]ProducePacketName [09:06:28]name=ofd_packets/00118107 [09:06:28]NVStorageSaveData ofd_packets/00118107 [09:06:28]File name is /storage/ofd_packets/00118107 [09:06:28]Write 301 bytes [09:06:28]NVStorageSaveData done [09:06:28]OFDSenderStorePacket done [09:06:28]KKMCreateOFDPacket done [09:06:28]NVStorageSaveData kkm_last_timestamp [09:06:28]File name is /storage/kkm_last_timestamp [09:06:28]Write 4 bytes [09:06:28]NVStorageSaveData done [09:06:28]ExternCall_PrintAddStr [09:06:28]wPrintStart [09:06:28]Write to MH i2c: 01 00 00 31 30 61 [09:06:28]Write i2c OK [09:06:28]MH_I2C_Read... [09:06:28]Read from MH i2c: 01 [09:06:28]MH_I2C_Read... [09:06:28]Read from MH i2c: 01 07 00 [09:06:28]MH_I2C_Read... [09:06:28]Read from MH i2c: 01 07 00 31 30 00 00 00 00 00 FF 0F 76 [09:06:28]RasterBufferAndPrint [09:06:28]line Счет N : (1)948978 [09:06:28]line ИНН: 02508201610067 [09:06:28]line Контрольно-Кассовый Чек [09:06:28]line ПРОДАЖА [09:06:28]line ТРК (МРК, ГНК) : 51 [09:06:28]line Товар: 2710124130 [09:06:28]line Аи-92-К-4 [09:06:28]line 11.800 * 67.80 [09:06:28]line = 800.04 [09:06:28]line НДС 12% НСП 1% [09:06:28]line > о реализуемом товаре [09:06:28]line ОКРУГЛЕНИЕ: -0.04 [09:06:28]line ИТОГО: 800.00 [09:06:28]line Внесено: 800.00 [09:06:28]line СДАЧА: 0.00 [09:06:28]line НСП 1% : 7.08 [09:06:28]line НДС 12% : 84.96 [09:06:28]line Наличными: 800.00 [09:06:28]line Безнал.: 0.00 [09:06:28]line Место: АЗС № 134 "Партнер Нефть" [09:06:28]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:06:28]line СНО: Общий режим [09:06:28]line Чек 50 27.07.2024 09:06 [09:06:28]line Смена: 432 ФФД: 1.0 [09:06:28]line ЗНМ: 0300000044 [09:06:28]line РНМ: 0000000000092660 [09:06:28]line Версия ККМ: 001 [09:06:28]line ФМ: 0000000000874939 [09:06:28]line ФД: 118107 [09:06:28]line ФПД: 42373891892155 [09:06:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T090631&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118107&fm=42373891892155&tin=02508201610067®Number=0000000000092660&sum=80000 [09:06:29]OFD Sender: Processing packet 118107 [packets to send 85, broken 84] [09:06:29]ProducePacketName [09:06:29]name=ofd_packets/00118107 [09:06:29]OFD Sender: To server: pG, [09:06:29]CommunicateWithHost lk.salyk.kg:30040 [09:06:29]ConnectInit lk.salyk.kg [09:06:29]written 0, free lines is 4095 [09:06:29]Connected sock=11 [09:06:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E6 7D 07 01 2F 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 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 32 00 00 00 F4 03 04 00 97 B8 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5B CD 01 00 35 04 06 00 26 89 F0 C6 23 BB 34 14 B3 3B 90 05 86 9F [09:06:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 66 68 47 00 AA 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5B CD 01 00 F4 03 04 00 2A 66 A4 66 B6 04 01 00 00 68 3A 14 45 20 5E EF FB [09:06:29]CommunicateWithHost err = 0 [09:06:29]CheckOFDResponse [09:06:29]1017 (14) - 77093643461234 [09:06:29]1041 (16) - 0000000000874939 [09:06:29]1040 (4) - 118107 [09:06:29]1012 (4) - 27.07.2024 03:14 [09:06:29]1206 (1) - 0 [09:06:29]OFD Sender: Remove packet 118107 [09:06:29]ProducePacketName [09:06:29]name=ofd_packets/00118107 [09:06:29]NVStorageDeleteData [09:06:29]Write to MH i2c: 01 00 00 5B 30 8B [09:06:29]Write i2c OK [09:06:29]MH_I2C_Read... [09:06:29]Read from MH i2c: 01 [09:06:29]MH_I2C_Read... [09:06:29]Read from MH i2c: 01 07 00 [09:06:29]MH_I2C_Read... [09:06:29]Read from MH i2c: 01 07 00 5B 30 00 00 00 00 00 D3 0C 71 [09:06:29]RasterBufferAndPrint [09:06:29]line [09:06:29]line [09:06:29]line [09:06:29]line [09:06:29]line [09:06:29]written 0, free lines is 3290 [09:06:29]MH_Cut [09:06:29]Write to MH i2c: D1 01 00 62 30 01 64 [09:06:29]Write i2c OK [09:06:29]MH_I2C_Read... [09:06:29]Read from MH i2c: D1 [09:06:29]MH_I2C_Read... [09:06:29]Read from MH i2c: D1 01 00 [09:06:29]MH_I2C_Read... [09:06:29]Read from MH i2c: D1 01 00 62 30 00 63 [09:06:29]Write to MH i2c: 01 00 00 63 30 93 [09:06:29]Write i2c OK [09:06:29]MH_I2C_Read... [09:06:29]OFD Sender: No OFD packet to send [09:06:30]*** Cut start [09:06:30]*** Partial cut [09:06:30]*** CUTSNS_PIN = 1 [09:06:30]*** CUTSNS_PIN = 0 [09:06:30]*** Brake cut motor [09:06:30]Read from MH i2c: 01 [09:06:30]MH_I2C_Read... [09:06:30]*** Stop cut motor [09:06:30]*** Cut end [09:06:30]Read from MH i2c: 01 07 00 [09:06:30]MH_I2C_Read... [09:06:30]Read from MH i2c: 01 07 00 63 30 00 00 00 00 00 FF 0F A8 [09:06:30]process_action close_receipt done [09:06:30]requested_data is exist [09:06:30]produce_requested_data [09:06:30]requested_item fm.sn is exist - process it [09:06:30]wFMCommunicate request_size=4 [09:06:30]MH_SAM_APDU [09:06:30]CAPDU: 80 11 00 00 [09:06:30]Write to MH i2c: E2 08 00 64 30 80 11 00 00 00 00 00 00 0E [09:06:30]Write i2c OK [09:06:30]MH_I2C_Read... [09:06:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:30]Read from MH i2c: E2 [09:06:30]MH_I2C_Read... [09:06:30]Read from MH i2c: E2 17 00 [09:06:30]MH_I2C_Read... [09:06:30]Read from MH i2c: E2 17 00 64 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 69 [09:06:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:06:30]wFMCommunicate OK [09:06:30]requested_item fd.num is exist - process it [09:06:30]SAM_PROTO_GetFieldsCounters [09:06:30]wFMCommunicate request_size=4 [09:06:30]MH_SAM_APDU [09:06:30]CAPDU: 80 13 00 00 [09:06:30]Write to MH i2c: E2 08 00 65 30 80 13 00 00 00 00 00 00 11 [09:06:30]Write i2c OK [09:06:30]MH_I2C_Read... [09:06:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:31]Read from MH i2c: E2 [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: E2 62 00 [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: E2 62 00 65 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5B CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [09:06:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5B CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:06:31]wFMCommunicate OK [09:06:31]SAM_PROTO_GetFieldsCounters done [09:06:31]requested_item shift.num is exist - process it [09:06:31]requested_item shift.opened is exist - process it [09:06:31]req_shift_opened [09:06:31]FM_GetShiftState [09:06:31]SAM_PROTO_GetShiftState [09:06:31]wFMCommunicate request_size=4 [09:06:31]MH_SAM_APDU [09:06:31]CAPDU: 80 13 01 00 [09:06:31]Write to MH i2c: E2 08 00 66 30 80 13 01 00 00 00 00 00 13 [09:06:31]Write i2c OK [09:06:31]MH_I2C_Read... [09:06:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:31]Read from MH i2c: E2 [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: E2 0E 00 [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: E2 0E 00 66 30 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 A0 [09:06:31]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:06:31]wFMCommunicate OK [09:06:31]SAM_PROTO_GetShiftState done [09:06:31]FM_GetShiftState done [09:06:31]req_shift_opened done [09:06:31]requested_item shift.open_date is exist - process it [09:06:31]req_shift_open_date [09:06:31]req_shift_open_date done [09:06:31]produce_requested_data done [09:06:31]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118107,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [09:06:31]process_action_free close_receipt [09:06:31]json_value_free [09:06:31]json_value_free done [09:06:31]process_json_proto returns [09:06:31]Send response to host [09:06:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118107,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [09:06:31]free response buf [09:06:31]execute_script done [09:06:31]execute_script returns [09:06:31]free content buf [09:06:31]Sock 7.Close socket [09:06:31]Sock 7.Thread stoped [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:20]OFD Sender: No OFD packet to send [09:07:25]OFD Sender: No OFD packet to send [09:07:30]OFD Sender: No OFD packet to send [09:07:35]OFD Sender: No OFD packet to send [09:07:40]OFD Sender: No OFD packet to send [09:07:45]OFD Sender: No OFD packet to send [09:07:50]OFD Sender: No OFD packet to send [09:07:55]OFD Sender: No OFD packet to send [09:08:00]OFD Sender: No OFD packet to send [09:08:05]OFD Sender: No OFD packet to send [09:08:10]OFD Sender: No OFD packet to send [09:08:15]OFD Sender: No OFD packet to send [09:08:18]accept exits with 9 [09:08:18]New connection [09:08:18]New thread 3067428196 created [09:08:18]Thread 3067284836 joined [09:08:18]Waiting for new connection... [09:08:18] Sock 9.Parse request [09:08:18]Sock 9.Check first char [09:08:18]Sock 9.First char is OK [09:08:18]request: POST /json_proto HTTP/1.0 [09:08:18]Method: POST [09:08:18]URL: /json_proto [09:08:18]Method is POST - this is cgi request [09:08:18]url: /json_proto [09:08:18]query_string will be loaded in cgi processing [09:08:18]execute_cgi json_proto POST (null) [09:08:18]execute_cgi path=json_proto method=POST [09:08:18]POST find Content-Length [09:08:18]Host: 172.17.45.7:8080 [09:08:18]Content-Length: 677 [09:08:18]Content-Type: application/json [09:08:18] [09:08:18]POST finish read [09:08:18]Found Content-Length = 677 [09:08:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:18]execute_script... [09:08: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)948979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:18]POST & json_proto [09:08:18]process_json_proto [09:08:18]json parsed OK: [09:08:18]protocol is kg_v1.0 [09:08:18]action value=close_receipt [09:08:18]process_action close_receipt [09:08:18]cmd_close_receipt [09:08:18]MH_GetDate [09:08:18]Write to MH i2c: F0 00 00 67 30 86 [09:08:18]Write i2c OK [09:08:18]MH_I2C_Read... [09:08:18]Read from MH i2c: F0 [09:08:18]MH_I2C_Read... [09:08:18]Read from MH i2c: F0 09 00 [09:08:18]MH_I2C_Read... [09:08:18]Read from MH i2c: F0 09 00 67 30 00 06 B9 A4 66 90 0F 3E 66 9B [09:08:18]GetLastDocTimeStamp 1722071191 [09:08:18]current date 1722071302 [09:08:18]FM_GetShiftState [09:08:18]SAM_PROTO_GetShiftState [09:08:18]wFMCommunicate request_size=4 [09:08:18]MH_SAM_APDU [09:08:18]CAPDU: 80 13 01 00 [09:08:18]Write to MH i2c: E2 08 00 68 30 80 13 01 00 00 00 00 00 15 [09:08:18]Write i2c OK [09:08:18]MH_I2C_Read... [09:08:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:18]Read from MH i2c: E2 [09:08:18]MH_I2C_Read... [09:08:18]Read from MH i2c: E2 0E 00 [09:08:18]MH_I2C_Read... [09:08:18]Read from MH i2c: E2 0E 00 68 30 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 A2 [09:08:18]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:08:18]wFMCommunicate OK [09:08:18]SAM_PROTO_GetShiftState done [09:08:18]FM_GetShiftState done [09:08:18]opened in 1722038845 [09:08:18]opened+sec_in_day 1722125245 [09:08:18]quantity*price = 30035 [09:08:18]sum+1 = 30036 [09:08:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 51 27.07.2024 09:08 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118108 ФПД: 38487873014050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T090822&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118108&fm=38487873014050&tin=02508201610067®Number=0000000000092660&sum=30000 [09:08:19]StoreToDocumentArchive [09:08:19]shift 432 fd 118108 [09:08:19]save to /storage/0432/doc_00118108 [09:08:19]save last doc name /storage/0432/doc_00118108 to /storage/kkm_last_doc_name [09:08:19]save OK [09:08:19]Clear old archive folders... [09:08:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:08:19]tlvbuf is 006BD430 [09:08:19]SAM_PROTO_ClearQueue [09:08:19]wFMCommunicate request_size=4 [09:08:19]MH_SAM_APDU [09:08:19]CAPDU: 80 09 00 00 [09:08:19]Write to MH i2c: E2 08 00 75 30 80 09 00 00 00 00 00 00 17 [09:08:19]Write i2c OK [09:08:19]MH_I2C_Read... [09:08:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:19]Read from MH i2c: E2 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: E2 03 00 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: E2 03 00 75 30 00 90 00 19 [09:08:19]RAPDU: 90 00 [09:08:19]wFMCommunicate OK [09:08:19]SAM_PROTO_ClearQueue done [09:08:19]KKMCreateOFDPacket [09:08:19]OFDProtocolAddRootSTLVToBuf [09:08:19]FM_MakeSignedData [09:08:19]FM_MakeSignedData [09:08:19]SAM_PROTO_SignData [09:08:19]wFMCommunicate request_size=4 [09:08:19]MH_SAM_APDU [09:08:19]CAPDU: 80 0D 01 02 [09:08:19]Write to MH i2c: E2 08 00 76 30 80 0D 01 02 00 00 00 00 1F [09:08:19]Write i2c OK [09:08:19]MH_I2C_Read... [09:08:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:19]Read from MH i2c: E2 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: E2 03 00 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: E2 03 00 76 30 00 90 00 1A [09:08:19]RAPDU: 90 00 [09:08:19]wFMCommunicate OK [09:08:19]wFMCommunicate request_size=255 [09:08:19]MH_SAM_APDU [09:08: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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 06 B9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5C CD 01 00 35 04 06 00 23 [09:08:19]Write to MH i2c: E2 02 01 77 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 06 B9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5C CD 01 00 35 04 06 00 23 00 00 BC [09:08:19]Write i2c OK [09:08:19]MH_I2C_Read... [09:08:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:19]Read from MH i2c: E2 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: E2 03 00 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: E2 03 00 77 30 00 90 00 1B [09:08:19]RAPDU: 90 00 [09:08:19]wFMCommunicate OK [09:08:19]wFMCommunicate request_size=10 [09:08:19]MH_SAM_APDU [09:08:19]CAPDU: 80 0D 02 02 05 01 27 FF C9 22 [09:08:19]Write to MH i2c: E2 0D 00 78 30 80 0D 02 02 05 00 01 27 FF C9 22 00 00 3E [09:08:19]Write i2c OK [09:08:19]MH_I2C_Read... [09:08:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:19]Read from MH i2c: E2 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: E2 03 00 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: E2 03 00 78 30 00 90 00 1C [09:08:19]RAPDU: 90 00 [09:08:19]wFMCommunicate OK [09:08:19]wFMCommunicate request_size=4 [09:08:19]MH_SAM_APDU [09:08:19]CAPDU: 80 0D 03 02 [09:08:19]Write to MH i2c: E2 08 00 79 30 80 0D 03 02 00 00 00 00 24 [09:08:19]Write i2c OK [09:08:19]MH_I2C_Read... [09:08:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:19]Read from MH i2c: E2 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: E2 0B 00 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: E2 0B 00 79 30 00 48 7C 0F A0 97 94 91 54 90 00 A8 [09:08:19]RAPDU: 48 7C 0F A0 97 94 91 54 90 00 [09:08:19]wFMCommunicate OK [09:08:19]SAM_PROTO_SignData done [09:08:19]FM_MakeSignedData done [09:08:19]CreateOFDProtocolMessage [09:08:19]wFMCommunicate request_size=4 [09:08:19]MH_SAM_APDU [09:08:19]CAPDU: 80 11 00 00 [09:08:19]Write to MH i2c: E2 08 00 7A 30 80 11 00 00 00 00 00 00 24 [09:08:19]Write i2c OK [09:08:19]MH_I2C_Read... [09:08:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:19]Read from MH i2c: E2 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: E2 17 00 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: E2 17 00 7A 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7F [09:08:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:08:19]wFMCommunicate OK [09:08:19]CreateOFDProtocolMessage done [09:08:19]OFDSenderStorePacket 118108 [09:08:19]StoreOFDPacket docnum=118108 [09:08:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 3D 41 07 01 D5 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 06 B9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5C CD 01 00 35 04 06 00 23 01 27 FF C9 22 48 7C 0F A0 97 94 91 54 [09:08:19]CheckFolder [09:08:19]dirname=/storage/ofd_packets [09:08:19]CheckFolder done [09:08:19]ProducePacketName [09:08:19]name=ofd_packets/00118108 [09:08:19]NVStorageSaveData ofd_packets/00118108 [09:08:19]File name is /storage/ofd_packets/00118108 [09:08:19]Write 301 bytes [09:08:19]NVStorageSaveData done [09:08:19]OFDSenderStorePacket done [09:08:19]KKMCreateOFDPacket done [09:08:19]NVStorageSaveData kkm_last_timestamp [09:08:19]File name is /storage/kkm_last_timestamp [09:08:19]Write 4 bytes [09:08:19]NVStorageSaveData done [09:08:19]ExternCall_PrintAddStr [09:08:19]wPrintStart [09:08:19]Write to MH i2c: 01 00 00 7B 30 AB [09:08:19]Write i2c OK [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: 01 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: 01 07 00 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: 01 07 00 7B 30 00 00 00 00 00 FF 0F C0 [09:08:19]RasterBufferAndPrint [09:08:19]line Счет N : (1)948979 [09:08:19]line ИНН: 02508201610067 [09:08:19]line Контрольно-Кассовый Чек [09:08:19]line ПРОДАЖА [09:08:19]line ТРК (МРК, ГНК) : 31 [09:08:19]line Товар: 2710124130 [09:08:19]line Аи-92-К-4 [09:08:19]line 4.430 * 67.80 [09:08:19]line = 300.35 [09:08:19]line НДС 12% НСП 1% [09:08:19]line > о реализуемом товаре [09:08:19]line ОКРУГЛЕНИЕ: -0.35 [09:08:19]line ИТОГО: 300.00 [09:08:19]line Внесено: 300.00 [09:08:19]line СДАЧА: 0.00 [09:08:19]line НСП 1% : 2.66 [09:08:19]line НДС 12% : 31.90 [09:08:19]line Наличными: 300.00 [09:08:19]line Безнал.: 0.00 [09:08:19]line Место: АЗС № 134 "Партнер Нефть" [09:08:19]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:08:19]line СНО: Общий режим [09:08:19]line Чек 51 27.07.2024 09:08 [09:08:19]line Смена: 432 ФФД: 1.0 [09:08:19]line ЗНМ: 0300000044 [09:08:19]line РНМ: 0000000000092660 [09:08:19]line Версия ККМ: 001 [09:08:19]line ФМ: 0000000000874939 [09:08:19]line ФД: 118108 [09:08:19]line ФПД: 38487873014050 [09:08:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T090822&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118108&fm=38487873014050&tin=02508201610067®Number=0000000000092660&sum=30000 [09:08:19]written 0, free lines is 4095 [09:08:19]OFD Sender: Processing packet 118108 [packets to send 85, broken 84] [09:08:19]ProducePacketName [09:08:19]name=ofd_packets/00118108 [09:08:19]OFD Sender: To server: pG, [09:08:19]CommunicateWithHost lk.salyk.kg:30040 [09:08:19]ConnectInit lk.salyk.kg [09:08:20]Connected sock=11 [09:08:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 3D 41 07 01 D5 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 06 B9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5C CD 01 00 35 04 06 00 23 01 27 FF C9 22 48 7C 0F A0 97 94 91 54 [09:08:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C6 E0 47 00 3B 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 34 39 33 39 10 04 04 00 5C CD 01 00 F4 03 04 00 99 66 A4 66 B6 04 01 00 00 68 10 D6 5C 7C 97 D0 2D [09:08:20]CommunicateWithHost err = 0 [09:08:20]CheckOFDResponse [09:08:20]1017 (14) - 77093643461234 [09:08:20]1041 (16) - 0000000000874939 [09:08:20]1040 (4) - 118108 [09:08:20]1012 (4) - 27.07.2024 03:16 [09:08:20]1206 (1) - 0 [09:08:20]OFD Sender: Remove packet 118108 [09:08:20]ProducePacketName [09:08:20]name=ofd_packets/00118108 [09:08:20]NVStorageDeleteData [09:08:20]Write to MH i2c: 01 00 00 A5 30 D5 [09:08:20]Write i2c OK [09:08:20]MH_I2C_Read... [09:08:20]Read from MH i2c: 01 [09:08:20]MH_I2C_Read... [09:08:20]Read from MH i2c: 01 07 00 [09:08:20]MH_I2C_Read... [09:08:20]Read from MH i2c: 01 07 00 A5 30 00 00 00 00 00 DB 0C C3 [09:08:20]RasterBufferAndPrint [09:08:20]line [09:08:20]line [09:08:20]line [09:08:20]line [09:08:20]line [09:08:20]written 0, free lines is 3298 [09:08:20]MH_Cut [09:08:20]Write to MH i2c: D1 01 00 AC 30 01 AE [09:08:20]Write i2c OK [09:08:20]MH_I2C_Read... [09:08:20]Read from MH i2c: D1 [09:08:20]MH_I2C_Read... [09:08:20]Read from MH i2c: D1 01 00 [09:08:20]MH_I2C_Read... [09:08:20]Read from MH i2c: D1 01 00 AC 30 00 AD [09:08:20]Write to MH i2c: 01 00 00 AD 30 DD [09:08:20]Write i2c OK [09:08:20]MH_I2C_Read... [09:08:20]OFD Sender: No OFD packet to send [09:08:21]*** Cut start [09:08:21]*** Partial cut [09:08:21]*** CUTSNS_PIN = 1 [09:08:21]*** CUTSNS_PIN = 0 [09:08:21]*** Brake cut motor [09:08:21]Read from MH i2c: 01 [09:08:21]MH_I2C_Read... [09:08:21]*** Stop cut motor [09:08:21]*** Cut end [09:08:21]Read from MH i2c: 01 07 00 [09:08:21]MH_I2C_Read... [09:08:21]Read from MH i2c: 01 07 00 AD 30 00 00 00 00 00 FF 0F F2 [09:08:21]process_action close_receipt done [09:08:21]requested_data is exist [09:08:21]produce_requested_data [09:08:21]requested_item fm.sn is exist - process it [09:08:21]wFMCommunicate request_size=4 [09:08:21]MH_SAM_APDU [09:08:21]CAPDU: 80 11 00 00 [09:08:21]Write to MH i2c: E2 08 00 AE 30 80 11 00 00 00 00 00 00 58 [09:08:21]Write i2c OK [09:08:21]MH_I2C_Read... [09:08:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:21]Read from MH i2c: E2 [09:08:21]MH_I2C_Read... [09:08:21]Read from MH i2c: E2 17 00 [09:08:21]MH_I2C_Read... [09:08:21]Read from MH i2c: E2 17 00 AE 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B3 [09:08:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:08:21]wFMCommunicate OK [09:08:21]requested_item fd.num is exist - process it [09:08:21]SAM_PROTO_GetFieldsCounters [09:08:21]wFMCommunicate request_size=4 [09:08:21]MH_SAM_APDU [09:08:21]CAPDU: 80 13 00 00 [09:08:21]Write to MH i2c: E2 08 00 AF 30 80 13 00 00 00 00 00 00 5B [09:08:21]Write i2c OK [09:08:21]MH_I2C_Read... [09:08:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:21]Read from MH i2c: E2 [09:08:21]MH_I2C_Read... [09:08:21]Read from MH i2c: E2 62 00 [09:08:21]MH_I2C_Read... [09:08:21]Read from MH i2c: E2 62 00 AF 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5C CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [09:08:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5C CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:08:21]wFMCommunicate OK [09:08:21]SAM_PROTO_GetFieldsCounters done [09:08:21]requested_item shift.num is exist - process it [09:08:21]requested_item shift.opened is exist - process it [09:08:21]req_shift_opened [09:08:21]FM_GetShiftState [09:08:21]SAM_PROTO_GetShiftState [09:08:21]wFMCommunicate request_size=4 [09:08:21]MH_SAM_APDU [09:08:21]CAPDU: 80 13 01 00 [09:08:21]Write to MH i2c: E2 08 00 B0 30 80 13 01 00 00 00 00 00 5D [09:08:21]Write i2c OK [09:08:21]MH_I2C_Read... [09:08:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:21]Read from MH i2c: E2 [09:08:21]MH_I2C_Read... [09:08:21]Read from MH i2c: E2 0E 00 [09:08:21]MH_I2C_Read... [09:08:21]Read from MH i2c: E2 0E 00 B0 30 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 EA [09:08:21]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:08:21]wFMCommunicate OK [09:08:21]SAM_PROTO_GetShiftState done [09:08:21]FM_GetShiftState done [09:08:21]req_shift_opened done [09:08:21]requested_item shift.open_date is exist - process it [09:08:21]req_shift_open_date [09:08:21]req_shift_open_date done [09:08:21]produce_requested_data done [09:08:21]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118108,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [09:08:21]process_action_free close_receipt [09:08:21]json_value_free [09:08:21]json_value_free done [09:08:21]process_json_proto returns [09:08:21]Send response to host [09:08:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118108,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [09:08:21]free response buf [09:08:21]execute_script done [09:08:21]execute_script returns [09:08:21]free content buf [09:08:21]Sock 9.Close socket [09:08:21]Sock 9.Thread stoped [09:08:25]OFD Sender: No OFD packet to send [09:08:30]OFD Sender: No OFD packet to send [09:08:35]OFD Sender: No OFD packet to send [09:08:40]OFD Sender: No OFD packet to send [09:08:45]OFD Sender: No OFD packet to send [09:08:50]OFD Sender: No OFD packet to send [09:08:55]OFD Sender: No OFD packet to send [09:09:00]OFD Sender: No OFD packet to send [09:09:05]OFD Sender: No OFD packet to send [09:09:10]OFD Sender: No OFD packet to send [09:09:15]OFD Sender: No OFD packet to send [09:09:20]OFD Sender: No OFD packet to send [09:09:25]OFD Sender: No OFD packet to send [09:09:30]OFD Sender: No OFD packet to send [09:09:35]OFD Sender: No OFD packet to send [09:09:40]OFD Sender: No OFD packet to send [09:09:45]OFD Sender: No OFD packet to send [09:09:50]OFD Sender: No OFD packet to send [09:09:55]OFD Sender: No OFD packet to send [09:10:00]OFD Sender: No OFD packet to send [09:10:05]OFD Sender: No OFD packet to send [09:10:09]accept exits with 7 [09:10:09]New connection [09:10:09]New thread 3067284836 created [09:10:09]Thread 3067428196 joined [09:10:09]Waiting for new connection... [09:10:09] Sock 7.Parse request [09:10:09]Sock 7.Check first char [09:10:09]Sock 7.First char is OK [09:10:09]request: POST /json_proto HTTP/1.0 [09:10:09]Method: POST [09:10:09]URL: /json_proto [09:10:09]Method is POST - this is cgi request [09:10:09]url: /json_proto [09:10:09]query_string will be loaded in cgi processing [09:10:09]execute_cgi json_proto POST (null) [09:10:09]execute_cgi path=json_proto method=POST [09:10:09]POST find Content-Length [09:10:09]Host: 172.17.45.7:8080 [09:10:09]Content-Length: 677 [09:10:09]Content-Type: application/json [09:10:09] [09:10:09]POST finish read [09:10:09]Found Content-Length = 677 [09:10:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:09]execute_script... [09:10:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:09]POST & json_proto [09:10:09]process_json_proto [09:10:09]json parsed OK: [09:10:09]protocol is kg_v1.0 [09:10:09]action value=close_receipt [09:10:09]process_action close_receipt [09:10:09]cmd_close_receipt [09:10:09]MH_GetDate [09:10:09]Write to MH i2c: F0 00 00 B1 30 D0 [09:10:09]Write i2c OK [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: F0 [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: F0 09 00 [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: F0 09 00 B1 30 00 75 B9 A4 66 90 0F 3E 66 54 [09:10:09]GetLastDocTimeStamp 1722071302 [09:10:09]current date 1722071413 [09:10:09]FM_GetShiftState [09:10:09]SAM_PROTO_GetShiftState [09:10:09]wFMCommunicate request_size=4 [09:10:09]MH_SAM_APDU [09:10:09]CAPDU: 80 13 01 00 [09:10:09]Write to MH i2c: E2 08 00 B2 30 80 13 01 00 00 00 00 00 5F [09:10:09]Write i2c OK [09:10:09]MH_I2C_Read... [09:10:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:09]Read from MH i2c: E2 [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: E2 0E 00 [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: E2 0E 00 B2 30 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 EC [09:10:09]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:10:09]wFMCommunicate OK [09:10:09]SAM_PROTO_GetShiftState done [09:10:09]FM_GetShiftState done [09:10:09]opened in 1722038845 [09:10:09]opened+sec_in_day 1722125245 [09:10:09]quantity*price = 30035 [09:10:09]sum+1 = 30036 [09:10:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 52 27.07.2024 09:10 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118109 ФПД: 48732571431923 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T091013&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118109&fm=48732571431923&tin=02508201610067®Number=0000000000092660&sum=30000 [09:10:10]StoreToDocumentArchive [09:10:10]shift 432 fd 118109 [09:10:10]save to /storage/0432/doc_00118109 [09:10:10]save last doc name /storage/0432/doc_00118109 to /storage/kkm_last_doc_name [09:10:10]save OK [09:10:10]Clear old archive folders... [09:10:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:10:10]tlvbuf is 006A5A20 [09:10:10]SAM_PROTO_ClearQueue [09:10:10]wFMCommunicate request_size=4 [09:10:10]MH_SAM_APDU [09:10:10]CAPDU: 80 09 00 00 [09:10:10]Write to MH i2c: E2 08 00 BF 30 80 09 00 00 00 00 00 00 61 [09:10:10]Write i2c OK [09:10:10]MH_I2C_Read... [09:10:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:10:10]Read from MH i2c: E2 [09:10:10]MH_I2C_Read... [09:10:10]Read from MH i2c: E2 03 00 [09:10:10]MH_I2C_Read... [09:10:10]Read from MH i2c: E2 03 00 BF 30 00 90 00 63 [09:10:10]RAPDU: 90 00 [09:10:10]wFMCommunicate OK [09:10:10]SAM_PROTO_ClearQueue done [09:10:10]KKMCreateOFDPacket [09:10:10]OFDProtocolAddRootSTLVToBuf [09:10:10]FM_MakeSignedData [09:10:10]FM_MakeSignedData [09:10:10]SAM_PROTO_SignData [09:10:10]wFMCommunicate request_size=4 [09:10:10]MH_SAM_APDU [09:10:10]CAPDU: 80 0D 01 02 [09:10:10]Write to MH i2c: E2 08 00 C0 30 80 0D 01 02 00 00 00 00 69 [09:10:10]Write i2c OK [09:10:10]MH_I2C_Read... [09:10:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:10:10]Read from MH i2c: E2 [09:10:10]MH_I2C_Read... [09:10:10]Read from MH i2c: E2 03 00 [09:10:10]MH_I2C_Read... [09:10:10]Read from MH i2c: E2 03 00 C0 30 00 90 00 64 [09:10:10]RAPDU: 90 00 [09:10:10]wFMCommunicate OK [09:10:10]wFMCommunicate request_size=255 [09:10:10]MH_SAM_APDU [09:10:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 75 B9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5D CD 01 00 35 04 06 00 2C [09:10:10]Write to MH i2c: E2 02 01 C1 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 75 B9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5D CD 01 00 35 04 06 00 2C 00 00 80 [09:10:10]Write i2c OK [09:10:10]MH_I2C_Read... [09:10:10]OFD Sender: No OFD packet to send [09:10:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:11]Read from MH i2c: E2 [09:10:11]MH_I2C_Read... [09:10:11]Read from MH i2c: E2 03 00 [09:10:11]MH_I2C_Read... [09:10:11]Read from MH i2c: E2 03 00 C1 30 00 90 00 65 [09:10:11]RAPDU: 90 00 [09:10:11]wFMCommunicate OK [09:10:11]wFMCommunicate request_size=10 [09:10:11]MH_SAM_APDU [09:10:11]CAPDU: 80 0D 02 02 05 52 6F 9B F3 F3 [09:10:11]Write to MH i2c: E2 0D 00 C2 30 80 0D 02 02 05 00 52 6F 9B F3 F3 00 00 B8 [09:10:11]Write i2c OK [09:10:11]MH_I2C_Read... [09:10:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:11]Read from MH i2c: E2 [09:10:11]MH_I2C_Read... [09:10:11]Read from MH i2c: E2 03 00 [09:10:11]MH_I2C_Read... [09:10:11]Read from MH i2c: E2 03 00 C2 30 00 90 00 66 [09:10:11]RAPDU: 90 00 [09:10:11]wFMCommunicate OK [09:10:11]wFMCommunicate request_size=4 [09:10:11]MH_SAM_APDU [09:10:11]CAPDU: 80 0D 03 02 [09:10:11]Write to MH i2c: E2 08 00 C3 30 80 0D 03 02 00 00 00 00 6E [09:10:11]Write i2c OK [09:10:11]MH_I2C_Read... [09:10:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:10:11]Read from MH i2c: E2 [09:10:11]MH_I2C_Read... [09:10:11]Read from MH i2c: E2 0B 00 [09:10:11]MH_I2C_Read... [09:10:11]Read from MH i2c: E2 0B 00 C3 30 00 A8 B7 32 AB 7D F2 51 34 90 00 9F [09:10:11]RAPDU: A8 B7 32 AB 7D F2 51 34 90 00 [09:10:11]wFMCommunicate OK [09:10:11]SAM_PROTO_SignData done [09:10:11]FM_MakeSignedData done [09:10:11]CreateOFDProtocolMessage [09:10:11]wFMCommunicate request_size=4 [09:10:11]MH_SAM_APDU [09:10:11]CAPDU: 80 11 00 00 [09:10:11]Write to MH i2c: E2 08 00 C4 30 80 11 00 00 00 00 00 00 6E [09:10:11]Write i2c OK [09:10:11]MH_I2C_Read... [09:10:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:11]Read from MH i2c: E2 [09:10:11]MH_I2C_Read... [09:10:11]Read from MH i2c: E2 17 00 [09:10:11]MH_I2C_Read... [09:10:11]Read from MH i2c: E2 17 00 C4 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C9 [09:10:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:10:11]wFMCommunicate OK [09:10:11]CreateOFDProtocolMessage done [09:10:11]OFDSenderStorePacket 118109 [09:10:11]StoreOFDPacket docnum=118109 [09:10:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 FB F0 07 01 5C E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 75 B9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5D CD 01 00 35 04 06 00 2C 52 6F 9B F3 F3 A8 B7 32 AB 7D F2 51 34 [09:10:11]CheckFolder [09:10:11]dirname=/storage/ofd_packets [09:10:11]CheckFolder done [09:10:11]ProducePacketName [09:10:11]name=ofd_packets/00118109 [09:10:11]NVStorageSaveData ofd_packets/00118109 [09:10:11]File name is /storage/ofd_packets/00118109 [09:10:11]Write 301 bytes [09:10:11]NVStorageSaveData done [09:10:11]OFDSenderStorePacket done [09:10:11]KKMCreateOFDPacket done [09:10:11]NVStorageSaveData kkm_last_timestamp [09:10:11]File name is /storage/kkm_last_timestamp [09:10:11]Write 4 bytes [09:10:11]NVStorageSaveData done [09:10:11]ExternCall_PrintAddStr [09:10:11]wPrintStart [09:10:11]Write to MH i2c: 01 00 00 C5 30 F5 [09:10:11]Write i2c OK [09:10:11]MH_I2C_Read... [09:10:11]Read from MH i2c: 01 [09:10:11]MH_I2C_Read... [09:10:11]Read from MH i2c: 01 07 00 [09:10:11]MH_I2C_Read... [09:10:11]Read from MH i2c: 01 07 00 C5 30 00 00 00 00 00 FF 0F 0A [09:10:11]RasterBufferAndPrint [09:10:11]line Счет N : (1)948980 [09:10:11]line ИНН: 02508201610067 [09:10:11]line Контрольно-Кассовый Чек [09:10:11]line ПРОДАЖА [09:10:11]line ТРК (МРК, ГНК) : 41 [09:10:11]line Товар: 2710124130 [09:10:11]line Аи-92-К-4 [09:10:11]line 4.430 * 67.80 [09:10:11]line = 300.35 [09:10:11]line НДС 12% НСП 1% [09:10:11]line > о реализуемом товаре [09:10:11]line ОКРУГЛЕНИЕ: -0.35 [09:10:11]line ИТОГО: 300.00 [09:10:11]line Внесено: 300.00 [09:10:11]line СДАЧА: 0.00 [09:10:11]line НСП 1% : 2.66 [09:10:11]line НДС 12% : 31.90 [09:10:11]line Наличными: 300.00 [09:10:11]line Безнал.: 0.00 [09:10:11]line Место: АЗС № 134 "Партнер Нефть" [09:10:11]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:10:11]line СНО: Общий режим [09:10:11]line Чек 52 27.07.2024 09:10 [09:10:11]line Смена: 432 ФФД: 1.0 [09:10:11]line ЗНМ: 0300000044 [09:10:11]line РНМ: 0000000000092660 [09:10:11]line Версия ККМ: 001 [09:10:11]line ФМ: 0000000000874939 [09:10:11]line ФД: 118109 [09:10:11]line ФПД: 48732571431923 [09:10:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T091013&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118109&fm=48732571431923&tin=02508201610067®Number=0000000000092660&sum=30000 [09:10:11]OFD Sender: Processing packet 118109 [packets to send 85, broken 84] [09:10:11]ProducePacketName [09:10:11]name=ofd_packets/00118109 [09:10:11]OFD Sender: To server: pG, [09:10:11]CommunicateWithHost lk.salyk.kg:30040 [09:10:11]ConnectInit lk.salyk.kg [09:10:11]written 0, free lines is 4095 [09:10:11]Connected sock=10 [09:10:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 FB F0 07 01 5C E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 75 B9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5D CD 01 00 35 04 06 00 2C 52 6F 9B F3 F3 A8 B7 32 AB 7D F2 51 34 [09:10:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 32 AA 47 00 97 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5D CD 01 00 F4 03 04 00 09 67 A4 66 B6 04 01 00 00 38 BE 09 3D F6 E3 E2 69 [09:10:11]CommunicateWithHost err = 0 [09:10:11]CheckOFDResponse [09:10:11]1017 (14) - 77093643461234 [09:10:11]1041 (16) - 0000000000874939 [09:10:11]1040 (4) - 118109 [09:10:11]1012 (4) - 27.07.2024 03:18 [09:10:11]1206 (1) - 0 [09:10:11]OFD Sender: Remove packet 118109 [09:10:11]ProducePacketName [09:10:11]name=ofd_packets/00118109 [09:10:11]NVStorageDeleteData [09:10:12]Write to MH i2c: 01 00 00 EF 30 1F [09:10:12]Write i2c OK [09:10:12]MH_I2C_Read... [09:10:12]Read from MH i2c: 01 [09:10:12]MH_I2C_Read... [09:10:12]Read from MH i2c: 01 07 00 [09:10:12]MH_I2C_Read... [09:10:12]Read from MH i2c: 01 07 00 EF 30 00 00 00 00 00 DC 0C 0E [09:10:12]RasterBufferAndPrint [09:10:12]line [09:10:12]line [09:10:12]line [09:10:12]line [09:10:12]line [09:10:12]written 0, free lines is 3298 [09:10:12]MH_Cut [09:10:12]Write to MH i2c: D1 01 00 F6 30 01 F8 [09:10:12]Write i2c OK [09:10:12]MH_I2C_Read... [09:10:12]Read from MH i2c: D1 [09:10:12]MH_I2C_Read... [09:10:12]Read from MH i2c: D1 01 00 [09:10:12]MH_I2C_Read... [09:10:12]Read from MH i2c: D1 01 00 F6 30 00 F7 [09:10:12]Write to MH i2c: 01 00 00 F7 30 27 [09:10:12]Write i2c OK [09:10:12]MH_I2C_Read... [09:10:12]OFD Sender: No OFD packet to send [09:10:12]*** Cut start [09:10:12]*** Partial cut [09:10:12]*** CUTSNS_PIN = 1 [09:10:12]*** CUTSNS_PIN = 0 [09:10:13]*** Brake cut motor [09:10:13]Read from MH i2c: 01 [09:10:13]MH_I2C_Read... [09:10:13]*** Stop cut motor [09:10:13]*** Cut end [09:10:13]Read from MH i2c: 01 07 00 [09:10:13]MH_I2C_Read... [09:10:13]Read from MH i2c: 01 07 00 F7 30 00 00 00 00 00 FF 0F 3C [09:10:13]process_action close_receipt done [09:10:13]requested_data is exist [09:10:13]produce_requested_data [09:10:13]requested_item fm.sn is exist - process it [09:10:13]wFMCommunicate request_size=4 [09:10:13]MH_SAM_APDU [09:10:13]CAPDU: 80 11 00 00 [09:10:13]Write to MH i2c: E2 08 00 F8 30 80 11 00 00 00 00 00 00 A2 [09:10:13]Write i2c OK [09:10:13]MH_I2C_Read... [09:10:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:13]Read from MH i2c: E2 [09:10:13]MH_I2C_Read... [09:10:13]Read from MH i2c: E2 17 00 [09:10:13]MH_I2C_Read... [09:10:13]Read from MH i2c: E2 17 00 F8 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FD [09:10:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:10:13]wFMCommunicate OK [09:10:13]requested_item fd.num is exist - process it [09:10:13]SAM_PROTO_GetFieldsCounters [09:10:13]wFMCommunicate request_size=4 [09:10:13]MH_SAM_APDU [09:10:13]CAPDU: 80 13 00 00 [09:10:13]Write to MH i2c: E2 08 00 F9 30 80 13 00 00 00 00 00 00 A5 [09:10:13]Write i2c OK [09:10:13]MH_I2C_Read... [09:10:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:13]Read from MH i2c: E2 [09:10:13]MH_I2C_Read... [09:10:13]Read from MH i2c: E2 62 00 [09:10:13]MH_I2C_Read... [09:10:13]Read from MH i2c: E2 62 00 F9 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5D CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [09:10:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5D CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:10:13]wFMCommunicate OK [09:10:13]SAM_PROTO_GetFieldsCounters done [09:10:13]requested_item shift.num is exist - process it [09:10:13]requested_item shift.opened is exist - process it [09:10:13]req_shift_opened [09:10:13]FM_GetShiftState [09:10:13]SAM_PROTO_GetShiftState [09:10:13]wFMCommunicate request_size=4 [09:10:13]MH_SAM_APDU [09:10:13]CAPDU: 80 13 01 00 [09:10:13]Write to MH i2c: E2 08 00 FA 30 80 13 01 00 00 00 00 00 A7 [09:10:13]Write i2c OK [09:10:13]MH_I2C_Read... [09:10:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:13]Read from MH i2c: E2 [09:10:13]MH_I2C_Read... [09:10:13]Read from MH i2c: E2 0E 00 [09:10:13]MH_I2C_Read... [09:10:13]Read from MH i2c: E2 0E 00 FA 30 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 34 [09:10:13]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:10:13]wFMCommunicate OK [09:10:13]SAM_PROTO_GetShiftState done [09:10:13]FM_GetShiftState done [09:10:13]req_shift_opened done [09:10:13]requested_item shift.open_date is exist - process it [09:10:13]req_shift_open_date [09:10:13]req_shift_open_date done [09:10:13]produce_requested_data done [09:10:13]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118109,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [09:10:13]process_action_free close_receipt [09:10:13]json_value_free [09:10:13]json_value_free done [09:10:13]process_json_proto returns [09:10:13]Send response to host [09:10:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118109,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [09:10:13]free response buf [09:10:13]execute_script done [09:10:13]execute_script returns [09:10:13]free content buf [09:10:13]Sock 7.Close socket [09:10:13]Sock 7.Thread stoped [09:10:17]OFD Sender: No OFD packet to send [09:10:22]OFD Sender: No OFD packet to send [09:10:27]OFD Sender: No OFD packet to send [09:10:32]OFD Sender: No OFD packet to send [09:10:37]OFD Sender: No OFD packet to send [09:10:42]OFD Sender: No OFD packet to send [09:10:47]OFD Sender: No OFD packet to send [09:10:52]OFD Sender: No OFD packet to send [09:10:57]OFD Sender: No OFD packet to send [09:11:02]OFD Sender: No OFD packet to send [09:11:07]OFD Sender: No OFD packet to send [09:11:12]OFD Sender: No OFD packet to send [09:11:17]OFD Sender: No OFD packet to send [09:11:22]OFD Sender: No OFD packet to send [09:11:27]OFD Sender: No OFD packet to send [09:11:32]OFD Sender: No OFD packet to send [09:11:37]OFD Sender: No OFD packet to send [09:11:42]OFD Sender: No OFD packet to send [09:11:47]OFD Sender: No OFD packet to send [09:11:52]OFD Sender: No OFD packet to send [09:11:57]OFD Sender: No OFD packet to send [09:12:02]OFD Sender: No OFD packet to send [09:12:07]OFD Sender: No OFD packet to send [09:12:12]OFD Sender: No OFD packet to send [09:12:17]OFD Sender: No OFD packet to send [09:12:22]OFD Sender: No OFD packet to send [09:12:27]OFD Sender: No OFD packet to send [09:12:32]OFD Sender: No OFD packet to send [09:12:37]OFD Sender: No OFD packet to send [09:12:42]OFD Sender: No OFD packet to send [09:12:47]OFD Sender: No OFD packet to send [09:12:52]OFD Sender: No OFD packet to send [09:12:57]OFD Sender: No OFD packet to send [09:13:02]OFD Sender: No OFD packet to send [09:13:07]OFD Sender: No OFD packet to send [09:13:12]OFD Sender: No OFD packet to send [09:13:17]OFD Sender: No OFD packet to send [09:13:22]OFD Sender: No OFD packet to send [09:13:27]OFD Sender: No OFD packet to send [09:13:32]accept exits with 9 [09:13:32]New connection [09:13:32]New thread 3067428196 created [09:13:32]Thread 3067284836 joined [09:13:32]Waiting for new connection... [09:13:32] Sock 9.Parse request [09:13:32]Sock 9.Check first char [09:13:32]Sock 9.First char is OK [09:13:32]request: POST /json_proto HTTP/1.0 [09:13:32]Method: POST [09:13:32]URL: /json_proto [09:13:32]Method is POST - this is cgi request [09:13:32]url: /json_proto [09:13:32]query_string will be loaded in cgi processing [09:13:32]execute_cgi json_proto POST (null) [09:13:32]execute_cgi path=json_proto method=POST [09:13:32]POST find Content-Length [09:13:32]Host: 172.17.45.7:8080 [09:13:32]Content-Length: 819 [09:13:32]Content-Type: application/json [09:13:32] [09:13:32]POST finish read [09:13:32]Found Content-Length = 819 [09:13:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:32]execute_script... [09:13: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)948981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:32]POST & json_proto [09:13:32]process_json_proto [09:13:32]json parsed OK: [09:13:32]protocol is kg_v1.0 [09:13:32]action value=close_receipt [09:13:32]process_action close_receipt [09:13:32]cmd_close_receipt [09:13:32]MH_GetDate [09:13:32]Write to MH i2c: F0 00 00 FB 30 1A [09:13:32]Write i2c OK [09:13:32]MH_I2C_Read... [09:13:32]Read from MH i2c: F0 [09:13:32]MH_I2C_Read... [09:13:32]Read from MH i2c: F0 09 00 [09:13:32]MH_I2C_Read... [09:13:32]Read from MH i2c: F0 09 00 FB 30 00 40 BA A4 66 90 0F 3E 66 6A [09:13:32]GetLastDocTimeStamp 1722071413 [09:13:32]current date 1722071616 [09:13:32]FM_GetShiftState [09:13:32]SAM_PROTO_GetShiftState [09:13:32]wFMCommunicate request_size=4 [09:13:32]MH_SAM_APDU [09:13:32]CAPDU: 80 13 01 00 [09:13:32]Write to MH i2c: E2 08 00 FC 30 80 13 01 00 00 00 00 00 A9 [09:13:32]Write i2c OK [09:13:32]MH_I2C_Read... [09:13:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:32]Read from MH i2c: E2 [09:13:32]MH_I2C_Read... [09:13:32]Read from MH i2c: E2 0E 00 [09:13:32]MH_I2C_Read... [09:13:32]Read from MH i2c: E2 0E 00 FC 30 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 36 [09:13:32]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:13:32]wFMCommunicate OK [09:13:32]SAM_PROTO_GetShiftState done [09:13:32]FM_GetShiftState done [09:13:32]opened in 1722038845 [09:13:32]opened+sec_in_day 1722125245 [09:13:32]quantity*price = 200025 [09:13:32]sum+1 = 200026 [09:13:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 53 27.07.2024 09:13 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118110 ФПД: 32886327400384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T091336&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118110&fm=32886327400384&tin=02508201610067®Number=0000000000092660&sum=200000 [09:13:33]StoreToDocumentArchive [09:13:33]shift 432 fd 118110 [09:13:33]save to /storage/0432/doc_00118110 [09:13:33]save last doc name /storage/0432/doc_00118110 to /storage/kkm_last_doc_name [09:13:33]save OK [09:13:33]Clear old archive folders... [09:13:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:13:33]tlvbuf is 006BD2E0 [09:13:33]SAM_PROTO_ClearQueue [09:13:33]wFMCommunicate request_size=4 [09:13:33]MH_SAM_APDU [09:13:33]CAPDU: 80 09 00 00 [09:13:33]Write to MH i2c: E2 08 00 09 31 80 09 00 00 00 00 00 00 AC [09:13:33]Write i2c OK [09:13:33]MH_I2C_Read... [09:13:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:13:33]Read from MH i2c: E2 [09:13:33]MH_I2C_Read... [09:13:33]Read from MH i2c: E2 03 00 [09:13:33]MH_I2C_Read... [09:13:33]Read from MH i2c: E2 03 00 09 31 00 90 00 AE [09:13:33]RAPDU: 90 00 [09:13:33]wFMCommunicate OK [09:13:33]SAM_PROTO_ClearQueue done [09:13:33]KKMCreateOFDPacket [09:13:33]OFDProtocolAddRootSTLVToBuf [09:13:33]FM_MakeSignedData [09:13:33]FM_MakeSignedData [09:13:33]SAM_PROTO_SignData [09:13:33]wFMCommunicate request_size=4 [09:13:33]MH_SAM_APDU [09:13:33]CAPDU: 80 0D 01 02 [09:13:33]Write to MH i2c: E2 08 00 0A 31 80 0D 01 02 00 00 00 00 B4 [09:13:33]Write i2c OK [09:13:33]MH_I2C_Read... [09:13:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:13:33]Read from MH i2c: E2 [09:13:33]MH_I2C_Read... [09:13:33]Read from MH i2c: E2 03 00 [09:13:33]MH_I2C_Read... [09:13:33]Read from MH i2c: E2 03 00 0A 31 00 90 00 AF [09:13:33]RAPDU: 90 00 [09:13:33]wFMCommunicate OK [09:13:33]wFMCommunicate request_size=255 [09:13:33]MH_SAM_APDU [09:13: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 40 BA A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5E CD 01 00 35 04 06 00 1D E8 F1 DC [09:13:33]Write to MH i2c: E2 02 01 0B 31 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 40 BA A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5E CD 01 00 35 04 06 00 1D E8 F1 DC 00 00 1A [09:13:33]Write i2c OK [09:13:33]MH_I2C_Read... [09:13:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:33]Read from MH i2c: E2 [09:13:33]MH_I2C_Read... [09:13:33]Read from MH i2c: E2 03 00 [09:13:33]MH_I2C_Read... [09:13:33]Read from MH i2c: E2 03 00 0B 31 00 90 00 B0 [09:13:33]RAPDU: 90 00 [09:13:33]wFMCommunicate OK [09:13:33]wFMCommunicate request_size=7 [09:13:33]MH_SAM_APDU [09:13:33]CAPDU: 80 0D 02 02 02 D7 C0 [09:13:33]Write to MH i2c: E2 0A 00 0C 31 80 0D 02 02 02 00 D7 C0 00 00 52 [09:13:33]Write i2c OK [09:13:33]MH_I2C_Read... [09:13:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:33]Read from MH i2c: E2 [09:13:33]MH_I2C_Read... [09:13:33]Read from MH i2c: E2 03 00 [09:13:33]MH_I2C_Read... [09:13:33]Read from MH i2c: E2 03 00 0C 31 00 90 00 B1 [09:13:33]RAPDU: 90 00 [09:13:33]wFMCommunicate OK [09:13:33]wFMCommunicate request_size=4 [09:13:33]MH_SAM_APDU [09:13:33]CAPDU: 80 0D 03 02 [09:13:33]Write to MH i2c: E2 08 00 0D 31 80 0D 03 02 00 00 00 00 B9 [09:13:33]Write i2c OK [09:13:33]MH_I2C_Read... [09:13:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:13:33]Read from MH i2c: E2 [09:13:33]MH_I2C_Read... [09:13:33]Read from MH i2c: E2 0B 00 [09:13:33]MH_I2C_Read... [09:13:33]Read from MH i2c: E2 0B 00 0D 31 00 29 35 D3 8D 09 2D 84 BB 90 00 ED [09:13:33]RAPDU: 29 35 D3 8D 09 2D 84 BB 90 00 [09:13:33]wFMCommunicate OK [09:13:33]SAM_PROTO_SignData done [09:13:33]FM_MakeSignedData done [09:13:33]CreateOFDProtocolMessage [09:13:33]wFMCommunicate request_size=4 [09:13:33]MH_SAM_APDU [09:13:33]CAPDU: 80 11 00 00 [09:13:33]Write to MH i2c: E2 08 00 0E 31 80 11 00 00 00 00 00 00 B9 [09:13:33]Write i2c OK [09:13:33]MH_I2C_Read... [09:13:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:33]Read from MH i2c: E2 [09:13:33]MH_I2C_Read... [09:13:33]Read from MH i2c: E2 17 00 [09:13:33]MH_I2C_Read... [09:13:33]Read from MH i2c: E2 17 00 0E 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 14 [09:13:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:13:33]wFMCommunicate OK [09:13:33]CreateOFDProtocolMessage done [09:13:33]OFDSenderStorePacket 118110 [09:13:33]StoreOFDPacket docnum=118110 [09:13:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 2A 6C 04 01 CD CE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 40 BA A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5E CD 01 00 35 04 06 00 1D E8 F1 DC D7 C0 29 35 D3 8D 09 2D 84 BB [09:13:33]CheckFolder [09:13:33]dirname=/storage/ofd_packets [09:13:33]CheckFolder done [09:13:33]ProducePacketName [09:13:33]name=ofd_packets/00118110 [09:13:33]NVStorageSaveData ofd_packets/00118110 [09:13:33]File name is /storage/ofd_packets/00118110 [09:13:33]Write 298 bytes [09:13:33]NVStorageSaveData done [09:13:33]OFDSenderStorePacket done [09:13:33]KKMCreateOFDPacket done [09:13:33]NVStorageSaveData kkm_last_timestamp [09:13:33]File name is /storage/kkm_last_timestamp [09:13:33]Write 4 bytes [09:13:33]NVStorageSaveData done [09:13:33]ExternCall_PrintAddStr [09:13:33]wPrintStart [09:13:33]Write to MH i2c: 01 00 00 0F 31 40 [09:13:33]Write i2c OK [09:13:33]MH_I2C_Read... [09:13:33]Read from MH i2c: 01 [09:13:33]MH_I2C_Read... [09:13:33]Read from MH i2c: 01 07 00 [09:13:33]MH_I2C_Read... [09:13:33]Read from MH i2c: 01 07 00 0F 31 00 00 00 00 00 FF 0F 55 [09:13:33]RasterBufferAndPrint [09:13:33]line Счет N : (1)948981 [09:13:33]line ИНН: 02508201610067 [09:13:33]line Контрольно-Кассовый Чек [09:13:33]line ПРОДАЖА [09:13:33]line ТРК (МРК, ГНК) : 34 [09:13:33]line Товар: 2710194800 [09:13:33]line ДТ-К-5 [09:13:33]line 26.250 * 76.20 [09:13:33]line = 2000.25 [09:13:33]line НДС 12% НСП 1% [09:13:33]line > о реализуемом товаре [09:13:33]line ОКРУГЛЕНИЕ: -0.25 [09:13:33]line ИТОГО: 2000.00 [09:13:33]line НСП 1% : 17.70 [09:13:33]line НДС 12% : 212.42 [09:13:33]line Наличными: 0.00 [09:13:33]line Безнал.: 2000.00 [09:13:33]line Место: АЗС № 134 "Партнер Нефть" [09:13:33]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:13:33]line СНО: Общий режим [09:13:33]line Чек 53 27.07.2024 09:13 [09:13:33]line Смена: 432 ФФД: 1.0 [09:13:33]line ЗНМ: 0300000044 [09:13:33]line РНМ: 0000000000092660 [09:13:33]line Версия ККМ: 001 [09:13:33]line Платежная система: O! деньги [09:13:33]line ФМ: 0000000000874939 [09:13:33]line ФД: 118110 [09:13:33]line ФПД: 32886327400384 [09:13:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T091336&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118110&fm=32886327400384&tin=02508201610067®Number=0000000000092660&sum=200000 [09:13:34]OFD Sender: Processing packet 118110 [packets to send 85, broken 84] [09:13:34]ProducePacketName [09:13:34]name=ofd_packets/00118110 [09:13:34]OFD Sender: To server: pG, [09:13:34]CommunicateWithHost lk.salyk.kg:30040 [09:13:34]ConnectInit lk.salyk.kg [09:13:34]written 0, free lines is 4095 [09:13:34]Connected sock=10 [09:13:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 2A 6C 04 01 CD CE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 40 BA A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5E CD 01 00 35 04 06 00 1D E8 F1 DC D7 C0 29 35 D3 8D 09 2D 84 BB [09:13:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 5A 4F 47 00 B5 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5E CD 01 00 F4 03 04 00 D3 67 A4 66 B6 04 01 00 00 D0 43 B6 9F EA F9 9C FF [09:13:34]CommunicateWithHost err = 0 [09:13:34]CheckOFDResponse [09:13:34]1017 (14) - 77093643461234 [09:13:34]1041 (16) - 0000000000874939 [09:13:34]1040 (4) - 118110 [09:13:34]1012 (4) - 27.07.2024 03:21 [09:13:34]1206 (1) - 0 [09:13:34]OFD Sender: Remove packet 118110 [09:13:34]ProducePacketName [09:13:34]name=ofd_packets/00118110 [09:13:34]NVStorageDeleteData [09:13:34]Write to MH i2c: 01 00 00 39 31 6A [09:13:34]Write i2c OK [09:13:34]MH_I2C_Read... [09:13:34]Read from MH i2c: 01 [09:13:34]MH_I2C_Read... [09:13:34]Read from MH i2c: 01 07 00 [09:13:34]MH_I2C_Read... [09:13:34]Read from MH i2c: 01 07 00 39 31 00 00 00 00 00 D7 0C 54 [09:13:34]RasterBufferAndPrint [09:13:34]line [09:13:34]line [09:13:34]line [09:13:34]line [09:13:34]line [09:13:34]written 0, free lines is 3296 [09:13:34]MH_Cut [09:13:34]Write to MH i2c: D1 01 00 40 31 01 43 [09:13:34]Write i2c OK [09:13:34]MH_I2C_Read... [09:13:34]Read from MH i2c: D1 [09:13:34]MH_I2C_Read... [09:13:34]Read from MH i2c: D1 01 00 [09:13:34]MH_I2C_Read... [09:13:34]Read from MH i2c: D1 01 00 40 31 00 42 [09:13:34]Write to MH i2c: 01 00 00 41 31 72 [09:13:34]Write i2c OK [09:13:34]MH_I2C_Read... [09:13:35]OFD Sender: No OFD packet to send [09:13:35]*** Cut start [09:13:35]*** Partial cut [09:13:35]*** CUTSNS_PIN = 1 [09:13:35]*** CUTSNS_PIN = 0 [09:13:35]*** Brake cut motor [09:13:36]Read from MH i2c: 01 [09:13:36]MH_I2C_Read... [09:13:36]*** Stop cut motor [09:13:36]*** Cut end [09:13:36]Read from MH i2c: 01 07 00 [09:13:36]MH_I2C_Read... [09:13:36]Read from MH i2c: 01 07 00 41 31 00 00 00 00 00 FF 0F 87 [09:13:36]process_action close_receipt done [09:13:36]requested_data is exist [09:13:36]produce_requested_data [09:13:36]requested_item fm.sn is exist - process it [09:13:36]wFMCommunicate request_size=4 [09:13:36]MH_SAM_APDU [09:13:36]CAPDU: 80 11 00 00 [09:13:36]Write to MH i2c: E2 08 00 42 31 80 11 00 00 00 00 00 00 ED [09:13:36]Write i2c OK [09:13:36]MH_I2C_Read... [09:13:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:36]Read from MH i2c: E2 [09:13:36]MH_I2C_Read... [09:13:36]Read from MH i2c: E2 17 00 [09:13:36]MH_I2C_Read... [09:13:36]Read from MH i2c: E2 17 00 42 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 48 [09:13:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:13:36]wFMCommunicate OK [09:13:36]requested_item fd.num is exist - process it [09:13:36]SAM_PROTO_GetFieldsCounters [09:13:36]wFMCommunicate request_size=4 [09:13:36]MH_SAM_APDU [09:13:36]CAPDU: 80 13 00 00 [09:13:36]Write to MH i2c: E2 08 00 43 31 80 13 00 00 00 00 00 00 F0 [09:13:36]Write i2c OK [09:13:36]MH_I2C_Read... [09:13:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:36]Read from MH i2c: E2 [09:13:36]MH_I2C_Read... [09:13:36]Read from MH i2c: E2 62 00 [09:13:36]MH_I2C_Read... [09:13:36]Read from MH i2c: E2 62 00 43 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5E CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [09:13:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5E CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:13:36]wFMCommunicate OK [09:13:36]SAM_PROTO_GetFieldsCounters done [09:13:36]requested_item shift.num is exist - process it [09:13:36]requested_item shift.opened is exist - process it [09:13:36]req_shift_opened [09:13:36]FM_GetShiftState [09:13:36]SAM_PROTO_GetShiftState [09:13:36]wFMCommunicate request_size=4 [09:13:36]MH_SAM_APDU [09:13:36]CAPDU: 80 13 01 00 [09:13:36]Write to MH i2c: E2 08 00 44 31 80 13 01 00 00 00 00 00 F2 [09:13:36]Write i2c OK [09:13:36]MH_I2C_Read... [09:13:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:36]Read from MH i2c: E2 [09:13:36]MH_I2C_Read... [09:13:36]Read from MH i2c: E2 0E 00 [09:13:36]MH_I2C_Read... [09:13:36]Read from MH i2c: E2 0E 00 44 31 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 7F [09:13:36]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:13:36]wFMCommunicate OK [09:13:36]SAM_PROTO_GetShiftState done [09:13:36]FM_GetShiftState done [09:13:36]req_shift_opened done [09:13:36]requested_item shift.open_date is exist - process it [09:13:36]req_shift_open_date [09:13:36]req_shift_open_date done [09:13:36]produce_requested_data done [09:13:36]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118110,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [09:13:36]process_action_free close_receipt [09:13:36]json_value_free [09:13:36]json_value_free done [09:13:36]process_json_proto returns [09:13:36]Send response to host [09:13:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118110,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [09:13:36]free response buf [09:13:36]execute_script done [09:13:36]execute_script returns [09:13:36]free content buf [09:13:36]Sock 9.Close socket [09:13:36]Sock 9.Thread stoped [09:13:40]OFD Sender: No OFD packet to send [09:13:45]OFD Sender: No OFD packet to send [09:13:50]OFD Sender: No OFD packet to send [09:13:55]OFD Sender: No OFD packet to send [09:14:00]OFD Sender: No OFD packet to send [09:14:05]OFD Sender: No OFD packet to send [09:14:10]OFD Sender: No OFD packet to send [09:14:15]OFD Sender: No OFD packet to send [09:14:20]OFD Sender: No OFD packet to send [09:14:25]OFD Sender: No OFD packet to send [09:14:30]OFD Sender: No OFD packet to send [09:14:35]OFD Sender: No OFD packet to send [09:14:40]OFD Sender: No OFD packet to send [09:14:45]OFD Sender: No OFD packet to send [09:14:50]OFD Sender: No OFD packet to send [09:14:55]OFD Sender: No OFD packet to send [09:15:00]OFD Sender: No OFD packet to send [09:15:05]OFD Sender: No OFD packet to send [09:15:10]OFD Sender: No OFD packet to send [09:15:15]OFD Sender: No OFD packet to send [09:15:20]OFD Sender: No OFD packet to send [09:15:25]OFD Sender: No OFD packet to send [09:15:30]OFD Sender: No OFD packet to send [09:15:35]OFD Sender: No OFD packet to send [09:15:40]OFD Sender: No OFD packet to send [09:15:45]OFD Sender: No OFD packet to send [09:15:50]OFD Sender: No OFD packet to send [09:15:55]OFD Sender: No OFD packet to send [09:16:00]OFD Sender: No OFD packet to send [09:16:05]OFD Sender: No OFD packet to send [09:16:10]OFD Sender: No OFD packet to send [09:16:15]OFD Sender: No OFD packet to send [09:16:20]OFD Sender: No OFD packet to send [09:16:25]OFD Sender: No OFD packet to send [09:16:30]OFD Sender: No OFD packet to send [09:16:35]OFD Sender: No OFD packet to send [09:16:40]OFD Sender: No OFD packet to send [09:16:45]OFD Sender: No OFD packet to send [09:16:50]OFD Sender: No OFD packet to send [09:16:55]OFD Sender: No OFD packet to send [09:17:00]OFD Sender: No OFD packet to send [09:17:05]OFD Sender: No OFD packet to send [09:17:10]OFD Sender: No OFD packet to send [09:17:15]OFD Sender: No OFD packet to send [09:17:20]OFD Sender: No OFD packet to send [09:17:25]OFD Sender: No OFD packet to send [09:17:30]OFD Sender: No OFD packet to send [09:17:35]OFD Sender: No OFD packet to send [09:17:40]OFD Sender: No OFD packet to send [09:17:45]OFD Sender: No OFD packet to send [09:17:50]OFD Sender: No OFD packet to send [09:17:55]OFD Sender: No OFD packet to send [09:18:00]OFD Sender: No OFD packet to send [09:18:05]OFD Sender: No OFD packet to send [09:18:07]accept exits with 7 [09:18:07]New connection [09:18:07]New thread 3067284836 created [09:18:07]Thread 3067428196 joined [09:18:07]Waiting for new connection... [09:18:07] Sock 7.Parse request [09:18:07]Sock 7.Check first char [09:18:07]Sock 7.First char is OK [09:18:07]request: POST /json_proto HTTP/1.0 [09:18:07]Method: POST [09:18:07]URL: /json_proto [09:18:07]Method is POST - this is cgi request [09:18:07]url: /json_proto [09:18:07]query_string will be loaded in cgi processing [09:18:07]execute_cgi json_proto POST (null) [09:18:07]execute_cgi path=json_proto method=POST [09:18:07]POST find Content-Length [09:18:07]Host: 172.17.45.7:8080 [09:18:07]Content-Length: 682 [09:18:07]Content-Type: application/json [09:18:07] [09:18:07]POST finish read [09:18:07]Found Content-Length = 682 [09:18:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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:18:07]execute_script... [09:18:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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:18:07]POST & json_proto [09:18:07]process_json_proto [09:18:07]json parsed OK: [09:18:07]protocol is kg_v1.0 [09:18:07]action value=close_receipt [09:18:07]process_action close_receipt [09:18:07]cmd_close_receipt [09:18:07]MH_GetDate [09:18:07]Write to MH i2c: F0 00 00 45 31 65 [09:18:07]Write i2c OK [09:18:07]MH_I2C_Read... [09:18:07]Read from MH i2c: F0 [09:18:07]MH_I2C_Read... [09:18:07]Read from MH i2c: F0 09 00 [09:18:07]MH_I2C_Read... [09:18:07]Read from MH i2c: F0 09 00 45 31 00 54 BB A4 66 90 0F 3E 66 CA [09:18:07]GetLastDocTimeStamp 1722071616 [09:18:07]current date 1722071892 [09:18:07]FM_GetShiftState [09:18:07]SAM_PROTO_GetShiftState [09:18:07]wFMCommunicate request_size=4 [09:18:07]MH_SAM_APDU [09:18:07]CAPDU: 80 13 01 00 [09:18:07]Write to MH i2c: E2 08 00 46 31 80 13 01 00 00 00 00 00 F4 [09:18:07]Write i2c OK [09:18:07]MH_I2C_Read... [09:18:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:07]Read from MH i2c: E2 [09:18:07]MH_I2C_Read... [09:18:07]Read from MH i2c: E2 0E 00 [09:18:07]MH_I2C_Read... [09:18:07]Read from MH i2c: E2 0E 00 46 31 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 81 [09:18:07]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:18:07]wFMCommunicate OK [09:18:07]SAM_PROTO_GetShiftState done [09:18:07]FM_GetShiftState done [09:18:07]opened in 1722038845 [09:18:07]opened+sec_in_day 1722125245 [09:18:07]quantity*price = 200043 [09:18:07]sum+1 = 200044 [09:18:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 54 27.07.2024 09:18 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118111 ФПД: 43652656156201 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T091812&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118111&fm=43652656156201&tin=02508201610067®Number=0000000000092660&sum=200000 [09:18:09]StoreToDocumentArchive [09:18:09]shift 432 fd 118111 [09:18:09]save to /storage/0432/doc_00118111 [09:18:09]save last doc name /storage/0432/doc_00118111 to /storage/kkm_last_doc_name [09:18:09]save OK [09:18:09]Clear old archive folders... [09:18:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:18:09]tlvbuf is 006DD650 [09:18:09]SAM_PROTO_ClearQueue [09:18:09]wFMCommunicate request_size=4 [09:18:09]MH_SAM_APDU [09:18:09]CAPDU: 80 09 00 00 [09:18:09]Write to MH i2c: E2 08 00 53 31 80 09 00 00 00 00 00 00 F6 [09:18:09]Write i2c OK [09:18:09]MH_I2C_Read... [09:18:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:18:09]Read from MH i2c: E2 [09:18:09]MH_I2C_Read... [09:18:09]Read from MH i2c: E2 03 00 [09:18:09]MH_I2C_Read... [09:18:09]Read from MH i2c: E2 03 00 53 31 00 90 00 F8 [09:18:09]RAPDU: 90 00 [09:18:09]wFMCommunicate OK [09:18:09]SAM_PROTO_ClearQueue done [09:18:09]KKMCreateOFDPacket [09:18:09]OFDProtocolAddRootSTLVToBuf [09:18:09]FM_MakeSignedData [09:18:09]FM_MakeSignedData [09:18:09]SAM_PROTO_SignData [09:18:09]wFMCommunicate request_size=4 [09:18:09]MH_SAM_APDU [09:18:09]CAPDU: 80 0D 01 02 [09:18:09]Write to MH i2c: E2 08 00 54 31 80 0D 01 02 00 00 00 00 FE [09:18:09]Write i2c OK [09:18:09]MH_I2C_Read... [09:18:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:18:09]Read from MH i2c: E2 [09:18:09]MH_I2C_Read... [09:18:09]Read from MH i2c: E2 03 00 [09:18:09]MH_I2C_Read... [09:18:09]Read from MH i2c: E2 03 00 54 31 00 90 00 F9 [09:18:09]RAPDU: 90 00 [09:18:09]wFMCommunicate OK [09:18:09]wFMCommunicate request_size=255 [09:18:09]MH_SAM_APDU [09:18: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 54 BB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5F CD 01 00 35 04 06 00 27 [09:18:09]Write to MH i2c: E2 02 01 55 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 54 BB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5F CD 01 00 35 04 06 00 27 00 00 8D [09:18:09]Write i2c OK [09:18:09]MH_I2C_Read... [09:18:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:09]Read from MH i2c: E2 [09:18:09]MH_I2C_Read... [09:18:09]Read from MH i2c: E2 03 00 [09:18:09]MH_I2C_Read... [09:18:09]Read from MH i2c: E2 03 00 55 31 00 90 00 FA [09:18:09]RAPDU: 90 00 [09:18:09]wFMCommunicate OK [09:18:09]wFMCommunicate request_size=10 [09:18:09]MH_SAM_APDU [09:18:09]CAPDU: 80 0D 02 02 05 B3 AD 10 4E 29 [09:18:09]Write to MH i2c: E2 0D 00 56 31 80 0D 02 02 05 00 B3 AD 10 4E 29 00 00 F2 [09:18:09]Write i2c OK [09:18:09]MH_I2C_Read... [09:18:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:09]Read from MH i2c: E2 [09:18:09]MH_I2C_Read... [09:18:09]Read from MH i2c: E2 03 00 [09:18:09]MH_I2C_Read... [09:18:09]Read from MH i2c: E2 03 00 56 31 00 90 00 FB [09:18:09]RAPDU: 90 00 [09:18:09]wFMCommunicate OK [09:18:09]wFMCommunicate request_size=4 [09:18:09]MH_SAM_APDU [09:18:09]CAPDU: 80 0D 03 02 [09:18:09]Write to MH i2c: E2 08 00 57 31 80 0D 03 02 00 00 00 00 03 [09:18:09]Write i2c OK [09:18:09]MH_I2C_Read... [09:18:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:18:09]Read from MH i2c: E2 [09:18:09]MH_I2C_Read... [09:18:09]Read from MH i2c: E2 0B 00 [09:18:09]MH_I2C_Read... [09:18:09]Read from MH i2c: E2 0B 00 57 31 00 01 5B F2 63 6A 47 75 3E 90 00 19 [09:18:09]RAPDU: 01 5B F2 63 6A 47 75 3E 90 00 [09:18:09]wFMCommunicate OK [09:18:09]SAM_PROTO_SignData done [09:18:09]FM_MakeSignedData done [09:18:09]CreateOFDProtocolMessage [09:18:09]wFMCommunicate request_size=4 [09:18:09]MH_SAM_APDU [09:18:09]CAPDU: 80 11 00 00 [09:18:09]Write to MH i2c: E2 08 00 58 31 80 11 00 00 00 00 00 00 03 [09:18:09]Write i2c OK [09:18:09]MH_I2C_Read... [09:18:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:09]Read from MH i2c: E2 [09:18:09]MH_I2C_Read... [09:18:09]Read from MH i2c: E2 17 00 [09:18:09]MH_I2C_Read... [09:18:09]Read from MH i2c: E2 17 00 58 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5E [09:18:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:18:09]wFMCommunicate OK [09:18:09]CreateOFDProtocolMessage done [09:18:09]OFDSenderStorePacket 118111 [09:18:09]StoreOFDPacket docnum=118111 [09:18:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 14 B5 07 01 39 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 54 BB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5F CD 01 00 35 04 06 00 27 B3 AD 10 4E 29 01 5B F2 63 6A 47 75 3E [09:18:09]CheckFolder [09:18:09]dirname=/storage/ofd_packets [09:18:09]CheckFolder done [09:18:09]ProducePacketName [09:18:09]name=ofd_packets/00118111 [09:18:09]NVStorageSaveData ofd_packets/00118111 [09:18:09]File name is /storage/ofd_packets/00118111 [09:18:09]Write 301 bytes [09:18:09]NVStorageSaveData done [09:18:09]OFDSenderStorePacket done [09:18:09]KKMCreateOFDPacket done [09:18:09]NVStorageSaveData kkm_last_timestamp [09:18:09]File name is /storage/kkm_last_timestamp [09:18:09]Write 4 bytes [09:18:09]NVStorageSaveData done [09:18:09]ExternCall_PrintAddStr [09:18:09]wPrintStart [09:18:09]Write to MH i2c: 01 00 00 59 31 8A [09:18:09]Write i2c OK [09:18:09]MH_I2C_Read... [09:18:09]Read from MH i2c: 01 [09:18:09]MH_I2C_Read... [09:18:09]Read from MH i2c: 01 07 00 [09:18:09]MH_I2C_Read... [09:18:09]Read from MH i2c: 01 07 00 59 31 00 00 00 00 00 FF 0F 9F [09:18:09]RasterBufferAndPrint [09:18:09]line Счет N : (1)948982 [09:18:09]line ИНН: 02508201610067 [09:18:09]line Контрольно-Кассовый Чек [09:18:09]line ПРОДАЖА [09:18:09]line ТРК (МРК, ГНК) : 33 [09:18:09]line Товар: 2710124500 [09:18:09]line Аи-95-К-3 [09:18:09]line 26.960 * 74.20 [09:18:09]line = 2000.43 [09:18:09]line НДС 12% НСП 1% [09:18:09]line > о реализуемом товаре [09:18:09]line ОКРУГЛЕНИЕ: -0.43 [09:18:09]line ИТОГО: 2000.00 [09:18:09]line Внесено: 2000.00 [09:18:09]line СДАЧА: 0.00 [09:18:09]line НСП 1% : 17.70 [09:18:09]line НДС 12% : 212.43 [09:18:09]line Наличными: 2000.00 [09:18:09]line Безнал.: 0.00 [09:18:09]line Место: АЗС № 134 "Партнер Нефть" [09:18:09]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:18:09]line СНО: Общий режим [09:18:09]line Чек 54 27.07.2024 09:18 [09:18:09]line Смена: 432 ФФД: 1.0 [09:18:09]line ЗНМ: 0300000044 [09:18:09]line РНМ: 0000000000092660 [09:18:09]line Версия ККМ: 001 [09:18:09]line ФМ: 0000000000874939 [09:18:09]line ФД: 118111 [09:18:09]line ФПД: 43652656156201 [09:18:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T091812&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118111&fm=43652656156201&tin=02508201610067®Number=0000000000092660&sum=200000 [09:18:09]OFD Sender: Processing packet 118111 [packets to send 85, broken 84] [09:18:09]ProducePacketName [09:18:09]name=ofd_packets/00118111 [09:18:09]OFD Sender: To server: pG, [09:18:09]CommunicateWithHost lk.salyk.kg:30040 [09:18:09]ConnectInit lk.salyk.kg [09:18:09]written 0, free lines is 4095 [09:18:10]Connected sock=10 [09:18:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 14 B5 07 01 39 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 54 BB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5F CD 01 00 35 04 06 00 27 B3 AD 10 4E 29 01 5B F2 63 6A 47 75 3E [09:18:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 86 81 47 00 E2 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 34 39 33 39 10 04 04 00 5F CD 01 00 F4 03 04 00 E7 68 A4 66 B6 04 01 00 00 90 7C 8C C9 A0 F4 34 79 [09:18:10]CommunicateWithHost err = 0 [09:18:10]CheckOFDResponse [09:18:10]1017 (14) - 77093643461234 [09:18:10]1041 (16) - 0000000000874939 [09:18:10]1040 (4) - 118111 [09:18:10]1012 (4) - 27.07.2024 03:26 [09:18:10]1206 (1) - 0 [09:18:10]OFD Sender: Remove packet 118111 [09:18:10]ProducePacketName [09:18:10]name=ofd_packets/00118111 [09:18:10]NVStorageDeleteData [09:18:10]Write to MH i2c: 01 00 00 83 31 B4 [09:18:10]Write i2c OK [09:18:10]MH_I2C_Read... [09:18:10]Read from MH i2c: 01 [09:18:10]MH_I2C_Read... [09:18:10]Read from MH i2c: 01 07 00 [09:18:10]MH_I2C_Read... [09:18:10]Read from MH i2c: 01 07 00 83 31 00 00 00 00 00 EF 0C B6 [09:18:10]RasterBufferAndPrint [09:18:10]line [09:18:10]line [09:18:10]line [09:18:10]line [09:18:10]line [09:18:10]written 0, free lines is 3317 [09:18:10]MH_Cut [09:18:10]Write to MH i2c: D1 01 00 8A 31 01 8D [09:18:10]Write i2c OK [09:18:10]MH_I2C_Read... [09:18:10]Read from MH i2c: D1 [09:18:10]MH_I2C_Read... [09:18:10]Read from MH i2c: D1 01 00 [09:18:10]MH_I2C_Read... [09:18:10]Read from MH i2c: D1 01 00 8A 31 00 8C [09:18:10]Write to MH i2c: 01 00 00 8B 31 BC [09:18:10]Write i2c OK [09:18:10]MH_I2C_Read... [09:18:10]OFD Sender: No OFD packet to send [09:18:11]*** Cut start [09:18:11]*** Partial cut [09:18:11]*** CUTSNS_PIN = 1 [09:18:11]*** CUTSNS_PIN = 0 [09:18:11]*** Brake cut motor [09:18:11]Read from MH i2c: 01 [09:18:11]MH_I2C_Read... [09:18:11]*** Stop cut motor [09:18:11]*** Cut end [09:18:11]Read from MH i2c: 01 07 00 [09:18:11]MH_I2C_Read... [09:18:11]Read from MH i2c: 01 07 00 8B 31 00 00 00 00 00 FF 0F D1 [09:18:11]process_action close_receipt done [09:18:11]requested_data is exist [09:18:11]produce_requested_data [09:18:11]requested_item fm.sn is exist - process it [09:18:11]wFMCommunicate request_size=4 [09:18:11]MH_SAM_APDU [09:18:11]CAPDU: 80 11 00 00 [09:18:11]Write to MH i2c: E2 08 00 8C 31 80 11 00 00 00 00 00 00 37 [09:18:11]Write i2c OK [09:18:11]MH_I2C_Read... [09:18:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:11]Read from MH i2c: E2 [09:18:11]MH_I2C_Read... [09:18:11]Read from MH i2c: E2 17 00 [09:18:11]MH_I2C_Read... [09:18:11]Read from MH i2c: E2 17 00 8C 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 92 [09:18:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:18:11]wFMCommunicate OK [09:18:11]requested_item fd.num is exist - process it [09:18:11]SAM_PROTO_GetFieldsCounters [09:18:11]wFMCommunicate request_size=4 [09:18:11]MH_SAM_APDU [09:18:11]CAPDU: 80 13 00 00 [09:18:11]Write to MH i2c: E2 08 00 8D 31 80 13 00 00 00 00 00 00 3A [09:18:11]Write i2c OK [09:18:11]MH_I2C_Read... [09:18:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:11]Read from MH i2c: E2 [09:18:11]MH_I2C_Read... [09:18:11]Read from MH i2c: E2 62 00 [09:18:11]MH_I2C_Read... [09:18:11]Read from MH i2c: E2 62 00 8D 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5F CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [09:18:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5F CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:18:11]wFMCommunicate OK [09:18:11]SAM_PROTO_GetFieldsCounters done [09:18:11]requested_item shift.num is exist - process it [09:18:11]requested_item shift.opened is exist - process it [09:18:11]req_shift_opened [09:18:11]FM_GetShiftState [09:18:11]SAM_PROTO_GetShiftState [09:18:11]wFMCommunicate request_size=4 [09:18:11]MH_SAM_APDU [09:18:11]CAPDU: 80 13 01 00 [09:18:11]Write to MH i2c: E2 08 00 8E 31 80 13 01 00 00 00 00 00 3C [09:18:11]Write i2c OK [09:18:11]MH_I2C_Read... [09:18:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:12]Read from MH i2c: E2 [09:18:12]MH_I2C_Read... [09:18:12]Read from MH i2c: E2 0E 00 [09:18:12]MH_I2C_Read... [09:18:12]Read from MH i2c: E2 0E 00 8E 31 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 C9 [09:18:12]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:18:12]wFMCommunicate OK [09:18:12]SAM_PROTO_GetShiftState done [09:18:12]FM_GetShiftState done [09:18:12]req_shift_opened done [09:18:12]requested_item shift.open_date is exist - process it [09:18:12]req_shift_open_date [09:18:12]req_shift_open_date done [09:18:12]produce_requested_data done [09:18:12]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118111,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [09:18:12]process_action_free close_receipt [09:18:12]json_value_free [09:18:12]json_value_free done [09:18:12]process_json_proto returns [09:18:12]Send response to host [09:18:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118111,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [09:18:12]free response buf [09:18:12]execute_script done [09:18:12]execute_script returns [09:18:12]free content buf [09:18:12]Sock 7.Close socket [09:18:12]Sock 7.Thread stoped [09:18:15]OFD Sender: No OFD packet to send [09:18:20]OFD Sender: No OFD packet to send [09:18:25]OFD Sender: No OFD packet to send [09:18:30]OFD Sender: No OFD packet to send [09:18:35]OFD Sender: No OFD packet to send [09:18:40]OFD Sender: No OFD packet to send [09:18:45]OFD Sender: No OFD packet to send [09:18:50]OFD Sender: No OFD packet to send [09:18:55]OFD Sender: No OFD packet to send [09:19:00]OFD Sender: No OFD packet to send [09:19:05]OFD Sender: No OFD packet to send [09:19:10]OFD Sender: No OFD packet to send [09:19:15]OFD Sender: No OFD packet to send [09:19:20]OFD Sender: No OFD packet to send [09:19:25]OFD Sender: No OFD packet to send [09:19:30]OFD Sender: No OFD packet to send [09:19:35]OFD Sender: No OFD packet to send [09:19:40]OFD Sender: No OFD packet to send [09:19:46]OFD Sender: No OFD packet to send [09:19:51]OFD Sender: No OFD packet to send [09:19:56]OFD Sender: No OFD packet to send [09:20:01]OFD Sender: No OFD packet to send [09:20:06]OFD Sender: No OFD packet to send [09:20:11]OFD Sender: No OFD packet to send [09:20:15]accept exits with 9 [09:20:15]New connection [09:20:15]New thread 3067428196 created [09:20:15]Thread 3067284836 joined [09:20:15]Waiting for new connection... [09:20:15] Sock 9.Parse request [09:20:15]Sock 9.Check first char [09:20:15]Sock 9.First char is OK [09:20:15]request: POST /json_proto HTTP/1.0 [09:20:15]Method: POST [09:20:15]URL: /json_proto [09:20:15]Method is POST - this is cgi request [09:20:15]url: /json_proto [09:20:15]query_string will be loaded in cgi processing [09:20:15]execute_cgi json_proto POST (null) [09:20:15]execute_cgi path=json_proto method=POST [09:20:15]POST find Content-Length [09:20:15]Host: 172.17.45.7:8080 [09:20:15]Content-Length: 679 [09:20:15]Content-Type: application/json [09:20:15] [09:20:15]POST finish read [09:20:15]Found Content-Length = 679 [09:20:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 14.110, "sum" : 1075.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1075.00, "total" : 1075.00, "payments": [ { "type": 0, "sum" : 1075.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:15]execute_script... [09:20: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)948983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 14.110, "sum" : 1075.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1075.00, "total" : 1075.00, "payments": [ { "type": 0, "sum" : 1075.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:15]POST & json_proto [09:20:15]process_json_proto [09:20:15]json parsed OK: [09:20:15]protocol is kg_v1.0 [09:20:15]action value=close_receipt [09:20:15]process_action close_receipt [09:20:15]cmd_close_receipt [09:20:15]MH_GetDate [09:20:15]Write to MH i2c: F0 00 00 8F 31 AF [09:20:15]Write i2c OK [09:20:15]MH_I2C_Read... [09:20:15]Read from MH i2c: F0 [09:20:15]MH_I2C_Read... [09:20:15]Read from MH i2c: F0 09 00 [09:20:15]MH_I2C_Read... [09:20:15]Read from MH i2c: F0 09 00 8F 31 00 D3 BB A4 66 90 0F 3E 66 93 [09:20:15]GetLastDocTimeStamp 1722071892 [09:20:15]current date 1722072019 [09:20:15]FM_GetShiftState [09:20:15]SAM_PROTO_GetShiftState [09:20:15]wFMCommunicate request_size=4 [09:20:15]MH_SAM_APDU [09:20:15]CAPDU: 80 13 01 00 [09:20:15]Write to MH i2c: E2 08 00 90 31 80 13 01 00 00 00 00 00 3E [09:20:15]Write i2c OK [09:20:15]MH_I2C_Read... [09:20:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:15]Read from MH i2c: E2 [09:20:15]MH_I2C_Read... [09:20:15]Read from MH i2c: E2 0E 00 [09:20:15]MH_I2C_Read... [09:20:15]Read from MH i2c: E2 0E 00 90 31 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 CB [09:20:15]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:20:15]wFMCommunicate OK [09:20:15]SAM_PROTO_GetShiftState done [09:20:15]FM_GetShiftState done [09:20:15]opened in 1722038845 [09:20:15]opened+sec_in_day 1722125245 [09:20:15]quantity*price = 107518 [09:20:15]sum+1 = 107519 [09:20:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 1075.00 Внесено: 1075.00 СДАЧА: 0.00 НСП 1% : 9.51 НДС 12% : 114.18 Наличными: 1075.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 55 27.07.2024 09:20 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118112 ФПД: 256225257302691 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T092019&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118112&fm=256225257302691&tin=02508201610067®Number=0000000000092660&sum=107500 [09:20:16]StoreToDocumentArchive [09:20:16]shift 432 fd 118112 [09:20:16]save to /storage/0432/doc_00118112 [09:20:16]save last doc name /storage/0432/doc_00118112 to /storage/kkm_last_doc_name [09:20:16]save OK [09:20:16]Clear old archive folders... [09:20:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:20:16]tlvbuf is B6E1C1A0 [09:20:16]SAM_PROTO_ClearQueue [09:20:16]wFMCommunicate request_size=4 [09:20:16]MH_SAM_APDU [09:20:16]CAPDU: 80 09 00 00 [09:20:16]Write to MH i2c: E2 08 00 9D 31 80 09 00 00 00 00 00 00 40 [09:20:16]Write i2c OK [09:20:16]MH_I2C_Read... [09:20:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:20:16]Read from MH i2c: E2 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: E2 03 00 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: E2 03 00 9D 31 00 90 00 42 [09:20:16]RAPDU: 90 00 [09:20:16]wFMCommunicate OK [09:20:16]SAM_PROTO_ClearQueue done [09:20:16]KKMCreateOFDPacket [09:20:16]OFDProtocolAddRootSTLVToBuf [09:20:16]FM_MakeSignedData [09:20:16]FM_MakeSignedData [09:20:16]SAM_PROTO_SignData [09:20:16]wFMCommunicate request_size=4 [09:20:16]MH_SAM_APDU [09:20:16]CAPDU: 80 0D 01 02 [09:20:16]Write to MH i2c: E2 08 00 9E 31 80 0D 01 02 00 00 00 00 48 [09:20:16]Write i2c OK [09:20:16]MH_I2C_Read... [09:20:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:20:16]Read from MH i2c: E2 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: E2 03 00 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: E2 03 00 9E 31 00 90 00 43 [09:20:16]RAPDU: 90 00 [09:20:16]wFMCommunicate OK [09:20:16]wFMCommunicate request_size=255 [09:20:16]MH_SAM_APDU [09:20: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 FE A3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC A3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 2C 00 00 00 00 07 04 06 00 EC A3 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 D3 BB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 60 CD 01 00 35 04 06 00 E9 09 17 71 [09:20:16]Write to MH i2c: E2 02 01 9F 31 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 FE A3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC A3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 2C 00 00 00 00 07 04 06 00 EC A3 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 D3 BB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 60 CD 01 00 35 04 06 00 E9 09 17 71 00 00 50 [09:20:16]Write i2c OK [09:20:16]MH_I2C_Read... [09:20:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:16]Read from MH i2c: E2 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: E2 03 00 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: E2 03 00 9F 31 00 90 00 44 [09:20:16]RAPDU: 90 00 [09:20:16]wFMCommunicate OK [09:20:16]wFMCommunicate request_size=7 [09:20:16]MH_SAM_APDU [09:20:16]CAPDU: 80 0D 02 02 02 AA A3 [09:20:16]Write to MH i2c: E2 0A 00 A0 31 80 0D 02 02 02 00 AA A3 00 00 9C [09:20:16]Write i2c OK [09:20:16]MH_I2C_Read... [09:20:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:16]Read from MH i2c: E2 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: E2 03 00 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: E2 03 00 A0 31 00 90 00 45 [09:20:16]RAPDU: 90 00 [09:20:16]wFMCommunicate OK [09:20:16]wFMCommunicate request_size=4 [09:20:16]MH_SAM_APDU [09:20:16]CAPDU: 80 0D 03 02 [09:20:16]Write to MH i2c: E2 08 00 A1 31 80 0D 03 02 00 00 00 00 4D [09:20:16]Write i2c OK [09:20:16]MH_I2C_Read... [09:20:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:20:16]Read from MH i2c: E2 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: E2 0B 00 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: E2 0B 00 A1 31 00 66 AD A6 DD 3B 79 8C A7 90 00 CB [09:20:16]RAPDU: 66 AD A6 DD 3B 79 8C A7 90 00 [09:20:16]wFMCommunicate OK [09:20:16]SAM_PROTO_SignData done [09:20:16]FM_MakeSignedData done [09:20:16]CreateOFDProtocolMessage [09:20:16]wFMCommunicate request_size=4 [09:20:16]MH_SAM_APDU [09:20:16]CAPDU: 80 11 00 00 [09:20:16]Write to MH i2c: E2 08 00 A2 31 80 11 00 00 00 00 00 00 4D [09:20:16]Write i2c OK [09:20:16]MH_I2C_Read... [09:20:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:16]Read from MH i2c: E2 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: E2 17 00 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: E2 17 00 A2 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A8 [09:20:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:20:16]wFMCommunicate OK [09:20:16]CreateOFDProtocolMessage done [09:20:16]OFDSenderStorePacket 118112 [09:20:16]StoreOFDPacket docnum=118112 [09:20:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 A7 12 04 01 8F F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 FE A3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC A3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 2C 00 00 00 00 07 04 06 00 EC A3 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 D3 BB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 60 CD 01 00 35 04 06 00 E9 09 17 71 AA A3 66 AD A6 DD 3B 79 8C A7 [09:20:16]CheckFolder [09:20:16]dirname=/storage/ofd_packets [09:20:16]CheckFolder done [09:20:16]ProducePacketName [09:20:16]name=ofd_packets/00118112 [09:20:16]NVStorageSaveData ofd_packets/00118112 [09:20:16]File name is /storage/ofd_packets/00118112 [09:20:16]Write 298 bytes [09:20:16]NVStorageSaveData done [09:20:16]OFDSenderStorePacket done [09:20:16]KKMCreateOFDPacket done [09:20:16]NVStorageSaveData kkm_last_timestamp [09:20:16]File name is /storage/kkm_last_timestamp [09:20:16]Write 4 bytes [09:20:16]NVStorageSaveData done [09:20:16]ExternCall_PrintAddStr [09:20:16]wPrintStart [09:20:16]Write to MH i2c: 01 00 00 A3 31 D4 [09:20:16]Write i2c OK [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: 01 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: 01 07 00 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: 01 07 00 A3 31 00 00 00 00 00 FF 0F E9 [09:20:16]RasterBufferAndPrint [09:20:16]line Счет N : (1)948983 [09:20:16]line ИНН: 02508201610067 [09:20:16]line Контрольно-Кассовый Чек [09:20:16]line ПРОДАЖА [09:20:16]line ТРК (МРК, ГНК) : 44 [09:20:16]line Товар: 2710194800 [09:20:16]line ДТ-К-5 [09:20:16]line 14.110 * 76.20 [09:20:16]line = 1075.18 [09:20:16]line НДС 12% НСП 1% [09:20:16]line > о реализуемом товаре [09:20:16]line ОКРУГЛЕНИЕ: -0.18 [09:20:16]line ИТОГО: 1075.00 [09:20:16]line Внесено: 1075.00 [09:20:16]line СДАЧА: 0.00 [09:20:16]line НСП 1% : 9.51 [09:20:16]line НДС 12% : 114.18 [09:20:16]line Наличными: 1075.00 [09:20:16]line Безнал.: 0.00 [09:20:16]line Место: АЗС № 134 "Партнер Нефть" [09:20:16]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:20:16]line СНО: Общий режим [09:20:16]line Чек 55 27.07.2024 09:20 [09:20:16]line Смена: 432 ФФД: 1.0 [09:20:16]line ЗНМ: 0300000044 [09:20:16]line РНМ: 0000000000092660 [09:20:16]line Версия ККМ: 001 [09:20:16]line ФМ: 0000000000874939 [09:20:16]line ФД: 118112 [09:20:16]line ФПД: 256225257302691 [09:20:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T092019&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118112&fm=256225257302691&tin=02508201610067®Number=0000000000092660&sum=107500 [09:20:17]OFD Sender: Processing packet 118112 [packets to send 85, broken 84] [09:20:17]ProducePacketName [09:20:17]name=ofd_packets/00118112 [09:20:17]OFD Sender: To server: pG, [09:20:17]CommunicateWithHost lk.salyk.kg:30040 [09:20:17]ConnectInit lk.salyk.kg [09:20:17]written 0, free lines is 4095 [09:20:17]Connected sock=10 [09:20:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 A7 12 04 01 8F F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 FE A3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC A3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 2C 00 00 00 00 07 04 06 00 EC A3 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 D3 BB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 60 CD 01 00 35 04 06 00 E9 09 17 71 AA A3 66 AD A6 DD 3B 79 8C A7 [09:20:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 39 62 47 00 EA A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 60 CD 01 00 F4 03 04 00 66 69 A4 66 B6 04 01 00 00 F0 25 BF 13 E9 E0 7B CE [09:20:17]CommunicateWithHost err = 0 [09:20:17]CheckOFDResponse [09:20:17]1017 (14) - 77093643461234 [09:20:17]1041 (16) - 0000000000874939 [09:20:17]1040 (4) - 118112 [09:20:17]1012 (4) - 27.07.2024 03:28 [09:20:17]1206 (1) - 0 [09:20:17]OFD Sender: Remove packet 118112 [09:20:17]ProducePacketName [09:20:17]name=ofd_packets/00118112 [09:20:17]NVStorageDeleteData [09:20:17]Write to MH i2c: 01 00 00 CD 31 FE [09:20:17]Write i2c OK [09:20:17]MH_I2C_Read... [09:20:17]Read from MH i2c: 01 [09:20:17]MH_I2C_Read... [09:20:17]Read from MH i2c: 01 07 00 [09:20:17]MH_I2C_Read... [09:20:17]Read from MH i2c: 01 07 00 CD 31 00 00 00 00 00 D0 0C E1 [09:20:17]RasterBufferAndPrint [09:20:17]line [09:20:17]line [09:20:17]line [09:20:17]line [09:20:17]line [09:20:17]written 0, free lines is 3287 [09:20:17]MH_Cut [09:20:17]Write to MH i2c: D1 01 00 D4 31 01 D7 [09:20:17]Write i2c OK [09:20:17]MH_I2C_Read... [09:20:17]Read from MH i2c: D1 [09:20:17]MH_I2C_Read... [09:20:17]Read from MH i2c: D1 01 00 [09:20:17]MH_I2C_Read... [09:20:17]Read from MH i2c: D1 01 00 D4 31 00 D6 [09:20:17]Write to MH i2c: 01 00 00 D5 31 06 [09:20:17]Write i2c OK [09:20:17]MH_I2C_Read... [09:20:18]OFD Sender: No OFD packet to send [09:20:18]*** Cut start [09:20:18]*** Partial cut [09:20:18]*** CUTSNS_PIN = 1 [09:20:18]*** CUTSNS_PIN = 0 [09:20:18]*** Brake cut motor [09:20:18]Read from MH i2c: 01 [09:20:18]MH_I2C_Read... [09:20:18]*** Stop cut motor [09:20:18]*** Cut end [09:20:18]Read from MH i2c: 01 07 00 [09:20:18]MH_I2C_Read... [09:20:18]Read from MH i2c: 01 07 00 D5 31 00 00 00 00 00 FF 0F 1B [09:20:18]process_action close_receipt done [09:20:18]requested_data is exist [09:20:18]produce_requested_data [09:20:18]requested_item fm.sn is exist - process it [09:20:18]wFMCommunicate request_size=4 [09:20:18]MH_SAM_APDU [09:20:18]CAPDU: 80 11 00 00 [09:20:18]Write to MH i2c: E2 08 00 D6 31 80 11 00 00 00 00 00 00 81 [09:20:18]Write i2c OK [09:20:18]MH_I2C_Read... [09:20:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:19]Read from MH i2c: E2 [09:20:19]MH_I2C_Read... [09:20:19]Read from MH i2c: E2 17 00 [09:20:19]MH_I2C_Read... [09:20:19]Read from MH i2c: E2 17 00 D6 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DC [09:20:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:20:19]wFMCommunicate OK [09:20:19]requested_item fd.num is exist - process it [09:20:19]SAM_PROTO_GetFieldsCounters [09:20:19]wFMCommunicate request_size=4 [09:20:19]MH_SAM_APDU [09:20:19]CAPDU: 80 13 00 00 [09:20:19]Write to MH i2c: E2 08 00 D7 31 80 13 00 00 00 00 00 00 84 [09:20:19]Write i2c OK [09:20:19]MH_I2C_Read... [09:20:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:19]Read from MH i2c: E2 [09:20:19]MH_I2C_Read... [09:20:19]Read from MH i2c: E2 62 00 [09:20:19]MH_I2C_Read... [09:20:19]Read from MH i2c: E2 62 00 D7 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 60 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [09:20:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 60 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:20:19]wFMCommunicate OK [09:20:19]SAM_PROTO_GetFieldsCounters done [09:20:19]requested_item shift.num is exist - process it [09:20:19]requested_item shift.opened is exist - process it [09:20:19]req_shift_opened [09:20:19]FM_GetShiftState [09:20:19]SAM_PROTO_GetShiftState [09:20:19]wFMCommunicate request_size=4 [09:20:19]MH_SAM_APDU [09:20:19]CAPDU: 80 13 01 00 [09:20:19]Write to MH i2c: E2 08 00 D8 31 80 13 01 00 00 00 00 00 86 [09:20:19]Write i2c OK [09:20:19]MH_I2C_Read... [09:20:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:19]Read from MH i2c: E2 [09:20:19]MH_I2C_Read... [09:20:19]Read from MH i2c: E2 0E 00 [09:20:19]MH_I2C_Read... [09:20:19]Read from MH i2c: E2 0E 00 D8 31 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 13 [09:20:19]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:20:19]wFMCommunicate OK [09:20:19]SAM_PROTO_GetShiftState done [09:20:19]FM_GetShiftState done [09:20:19]req_shift_opened done [09:20:19]requested_item shift.open_date is exist - process it [09:20:19]req_shift_open_date [09:20:19]req_shift_open_date done [09:20:19]produce_requested_data done [09:20:19]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118112,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [09:20:19]process_action_free close_receipt [09:20:19]json_value_free [09:20:19]json_value_free done [09:20:19]process_json_proto returns [09:20:19]Send response to host [09:20:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118112,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [09:20:19]free response buf [09:20:19]execute_script done [09:20:19]execute_script returns [09:20:19]free content buf [09:20:19]Sock 9.Close socket [09:20:19]Sock 9.Thread stoped [09:20:23]OFD Sender: No OFD packet to send [09:20:28]OFD Sender: No OFD packet to send [09:20:33]OFD Sender: No OFD packet to send [09:20:33]accept exits with 7 [09:20:33]New connection [09:20:33]New thread 3067284836 created [09:20:33]Thread 3067428196 joined [09:20:33]Waiting for new connection... [09:20:33] Sock 7.Parse request [09:20:33]Sock 7.Check first char [09:20:33]Sock 7.First char is OK [09:20:33]request: POST /json_proto HTTP/1.0 [09:20:33]Method: POST [09:20:33]URL: /json_proto [09:20:33]Method is POST - this is cgi request [09:20:33]url: /json_proto [09:20:33]query_string will be loaded in cgi processing [09:20:33]execute_cgi json_proto POST (null) [09:20:33]execute_cgi path=json_proto method=POST [09:20:33]POST find Content-Length [09:20:33]Host: 172.17.45.7:8080 [09:20:33]Content-Length: 677 [09:20:33]Content-Type: application/json [09:20:33] [09:20:33]POST finish read [09:20:33]Found Content-Length = 677 [09:20:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:20:33]execute_script... [09:20: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)948984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:20:33]POST & json_proto [09:20:33]process_json_proto [09:20:33]json parsed OK: [09:20:33]protocol is kg_v1.0 [09:20:33]action value=close_receipt [09:20:33]process_action close_receipt [09:20:33]cmd_close_receipt [09:20:33]MH_GetDate [09:20:33]Write to MH i2c: F0 00 00 D9 31 F9 [09:20:33]Write i2c OK [09:20:33]MH_I2C_Read... [09:20:33]Read from MH i2c: F0 [09:20:33]MH_I2C_Read... [09:20:33]Read from MH i2c: F0 09 00 [09:20:33]MH_I2C_Read... [09:20:33]Read from MH i2c: F0 09 00 D9 31 00 E5 BB A4 66 90 0F 3E 66 EF [09:20:33]GetLastDocTimeStamp 1722072019 [09:20:33]current date 1722072037 [09:20:33]FM_GetShiftState [09:20:33]SAM_PROTO_GetShiftState [09:20:33]wFMCommunicate request_size=4 [09:20:33]MH_SAM_APDU [09:20:33]CAPDU: 80 13 01 00 [09:20:33]Write to MH i2c: E2 08 00 DA 31 80 13 01 00 00 00 00 00 88 [09:20:33]Write i2c OK [09:20:33]MH_I2C_Read... [09:20:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:33]Read from MH i2c: E2 [09:20:33]MH_I2C_Read... [09:20:33]Read from MH i2c: E2 0E 00 [09:20:33]MH_I2C_Read... [09:20:33]Read from MH i2c: E2 0E 00 DA 31 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 15 [09:20:33]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:20:33]wFMCommunicate OK [09:20:33]SAM_PROTO_GetShiftState done [09:20:33]FM_GetShiftState done [09:20:33]opened in 1722038845 [09:20:33]opened+sec_in_day 1722125245 [09:20:33]quantity*price = 50010 [09:20:33]sum+1 = 50012 [09:20:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 56 27.07.2024 09:20 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118113 ФПД: 124160858031012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T092037&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118113&fm=124160858031012&tin=02508201610067®Number=0000000000092660&sum=50000 [09:20:34]StoreToDocumentArchive [09:20:34]shift 432 fd 118113 [09:20:34]save to /storage/0432/doc_00118113 [09:20:34]save last doc name /storage/0432/doc_00118113 to /storage/kkm_last_doc_name [09:20:34]save OK [09:20:34]Clear old archive folders... [09:20:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:20:34]tlvbuf is 006AF8D0 [09:20:34]SAM_PROTO_ClearQueue [09:20:34]wFMCommunicate request_size=4 [09:20:34]MH_SAM_APDU [09:20:34]CAPDU: 80 09 00 00 [09:20:34]Write to MH i2c: E2 08 00 E7 31 80 09 00 00 00 00 00 00 8A [09:20:34]Write i2c OK [09:20:34]MH_I2C_Read... [09:20:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:20:34]Read from MH i2c: E2 [09:20:34]MH_I2C_Read... [09:20:34]Read from MH i2c: E2 03 00 [09:20:34]MH_I2C_Read... [09:20:34]Read from MH i2c: E2 03 00 E7 31 00 90 00 8C [09:20:34]RAPDU: 90 00 [09:20:34]wFMCommunicate OK [09:20:34]SAM_PROTO_ClearQueue done [09:20:34]KKMCreateOFDPacket [09:20:34]OFDProtocolAddRootSTLVToBuf [09:20:34]FM_MakeSignedData [09:20:34]FM_MakeSignedData [09:20:34]SAM_PROTO_SignData [09:20:34]wFMCommunicate request_size=4 [09:20:34]MH_SAM_APDU [09:20:34]CAPDU: 80 0D 01 02 [09:20:34]Write to MH i2c: E2 08 00 E8 31 80 0D 01 02 00 00 00 00 92 [09:20:34]Write i2c OK [09:20:34]MH_I2C_Read... [09:20:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:20:34]Read from MH i2c: E2 [09:20:34]MH_I2C_Read... [09:20:34]Read from MH i2c: E2 03 00 [09:20:34]MH_I2C_Read... [09:20:34]Read from MH i2c: E2 03 00 E8 31 00 90 00 8D [09:20:34]RAPDU: 90 00 [09:20:34]wFMCommunicate OK [09:20:34]wFMCommunicate request_size=255 [09:20:34]MH_SAM_APDU [09:20:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 E5 BB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 61 CD 01 00 35 04 06 00 70 [09:20:34]Write to MH i2c: E2 02 01 E9 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 E5 BB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 61 CD 01 00 35 04 06 00 70 00 00 2F [09:20:34]Write i2c OK [09:20:34]MH_I2C_Read... [09:20:34]Read from MH i2c: E2 [09:20:35]MH_I2C_Read... [09:20:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:35]Read from MH i2c: E2 03 00 [09:20:35]MH_I2C_Read... [09:20:35]Read from MH i2c: E2 03 00 E9 31 00 90 00 8E [09:20:35]RAPDU: 90 00 [09:20:35]wFMCommunicate OK [09:20:35]wFMCommunicate request_size=10 [09:20:35]MH_SAM_APDU [09:20:35]CAPDU: 80 0D 02 02 05 EC 73 D6 83 A4 [09:20:35]Write to MH i2c: E2 0D 00 EA 31 80 0D 02 02 05 00 EC 73 D6 83 A4 00 00 FB [09:20:35]Write i2c OK [09:20:35]MH_I2C_Read... [09:20:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:35]Read from MH i2c: E2 [09:20:35]MH_I2C_Read... [09:20:35]Read from MH i2c: E2 03 00 [09:20:35]MH_I2C_Read... [09:20:35]Read from MH i2c: E2 03 00 EA 31 00 90 00 8F [09:20:35]RAPDU: 90 00 [09:20:35]wFMCommunicate OK [09:20:35]wFMCommunicate request_size=4 [09:20:35]MH_SAM_APDU [09:20:35]CAPDU: 80 0D 03 02 [09:20:35]Write to MH i2c: E2 08 00 EB 31 80 0D 03 02 00 00 00 00 97 [09:20:35]Write i2c OK [09:20:35]MH_I2C_Read... [09:20:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:20:35]Read from MH i2c: E2 [09:20:35]MH_I2C_Read... [09:20:35]Read from MH i2c: E2 0B 00 [09:20:35]MH_I2C_Read... [09:20:35]Read from MH i2c: E2 0B 00 EB 31 00 F2 B1 BA F2 7A 5B 88 CD 90 00 11 [09:20:35]RAPDU: F2 B1 BA F2 7A 5B 88 CD 90 00 [09:20:35]wFMCommunicate OK [09:20:35]SAM_PROTO_SignData done [09:20:35]FM_MakeSignedData done [09:20:35]CreateOFDProtocolMessage [09:20:35]wFMCommunicate request_size=4 [09:20:35]MH_SAM_APDU [09:20:35]CAPDU: 80 11 00 00 [09:20:35]Write to MH i2c: E2 08 00 EC 31 80 11 00 00 00 00 00 00 97 [09:20:35]Write i2c OK [09:20:35]MH_I2C_Read... [09:20:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:35]Read from MH i2c: E2 [09:20:35]MH_I2C_Read... [09:20:35]Read from MH i2c: E2 17 00 [09:20:35]MH_I2C_Read... [09:20:35]Read from MH i2c: E2 17 00 EC 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F2 [09:20:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:20:35]wFMCommunicate OK [09:20:35]CreateOFDProtocolMessage done [09:20:35]OFDSenderStorePacket 118113 [09:20:35]StoreOFDPacket docnum=118113 [09:20:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 71 38 07 01 91 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 E5 BB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 61 CD 01 00 35 04 06 00 70 EC 73 D6 83 A4 F2 B1 BA F2 7A 5B 88 CD [09:20:35]CheckFolder [09:20:35]dirname=/storage/ofd_packets [09:20:35]CheckFolder done [09:20:35]ProducePacketName [09:20:35]name=ofd_packets/00118113 [09:20:35]NVStorageSaveData ofd_packets/00118113 [09:20:35]File name is /storage/ofd_packets/00118113 [09:20:35]Write 301 bytes [09:20:35]NVStorageSaveData done [09:20:35]OFDSenderStorePacket done [09:20:35]KKMCreateOFDPacket done [09:20:35]NVStorageSaveData kkm_last_timestamp [09:20:35]File name is /storage/kkm_last_timestamp [09:20:35]Write 4 bytes [09:20:35]NVStorageSaveData done [09:20:35]ExternCall_PrintAddStr [09:20:35]wPrintStart [09:20:35]Write to MH i2c: 01 00 00 ED 31 1E [09:20:35]Write i2c OK [09:20:35]MH_I2C_Read... [09:20:35]Read from MH i2c: 01 [09:20:35]MH_I2C_Read... [09:20:35]Read from MH i2c: 01 07 00 [09:20:35]MH_I2C_Read... [09:20:35]Read from MH i2c: 01 07 00 ED 31 00 00 00 00 00 FF 0F 33 [09:20:35]RasterBufferAndPrint [09:20:35]line Счет N : (1)948984 [09:20:35]line ИНН: 02508201610067 [09:20:35]line Контрольно-Кассовый Чек [09:20:35]line ПРОДАЖА [09:20:35]line ТРК (МРК, ГНК) : 33 [09:20:35]line Товар: 2710124500 [09:20:35]line Аи-95-К-3 [09:20:35]line 6.740 * 74.20 [09:20:35]line = 500.11 [09:20:35]line НДС 12% НСП 1% [09:20:35]line > о реализуемом товаре [09:20:35]line ОКРУГЛЕНИЕ: -0.11 [09:20:35]line ИТОГО: 500.00 [09:20:35]line Внесено: 500.00 [09:20:35]line СДАЧА: 0.00 [09:20:35]line НСП 1% : 4.43 [09:20:35]line НДС 12% : 53.11 [09:20:35]line Наличными: 500.00 [09:20:35]line Безнал.: 0.00 [09:20:35]line Место: АЗС № 134 "Партнер Нефть" [09:20:35]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:20:35]line СНО: Общий режим [09:20:35]line Чек 56 27.07.2024 09:20 [09:20:35]line Смена: 432 ФФД: 1.0 [09:20:35]line ЗНМ: 0300000044 [09:20:35]line РНМ: 0000000000092660 [09:20:35]line Версия ККМ: 001 [09:20:35]line ФМ: 0000000000874939 [09:20:35]line ФД: 118113 [09:20:35]line ФПД: 124160858031012 [09:20:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T092037&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118113&fm=124160858031012&tin=02508201610067®Number=0000000000092660&sum=50000 [09:20:35]OFD Sender: Processing packet 118113 [packets to send 85, broken 84] [09:20:35]ProducePacketName [09:20:35]name=ofd_packets/00118113 [09:20:35]OFD Sender: To server: pG, [09:20:35]CommunicateWithHost lk.salyk.kg:30040 [09:20:35]ConnectInit lk.salyk.kg [09:20:35]written 0, free lines is 4095 [09:20:35]Connected sock=10 [09:20:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 71 38 07 01 91 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 E5 BB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 61 CD 01 00 35 04 06 00 70 EC 73 D6 83 A4 F2 B1 BA F2 7A 5B 88 CD [09:20:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 EF CC 47 00 9F 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 34 39 33 39 10 04 04 00 61 CD 01 00 F4 03 04 00 78 69 A4 66 B6 04 01 00 00 00 61 35 45 6F 1A FA 52 [09:20:35]CommunicateWithHost err = 0 [09:20:35]CheckOFDResponse [09:20:35]1017 (14) - 77093643461234 [09:20:35]1041 (16) - 0000000000874939 [09:20:35]1040 (4) - 118113 [09:20:35]1012 (4) - 27.07.2024 03:28 [09:20:35]1206 (1) - 0 [09:20:35]OFD Sender: Remove packet 118113 [09:20:35]ProducePacketName [09:20:35]name=ofd_packets/00118113 [09:20:35]NVStorageDeleteData [09:20:35]Write to MH i2c: 01 00 00 17 32 49 [09:20:35]Write i2c OK [09:20:35]MH_I2C_Read... [09:20:35]Read from MH i2c: 01 [09:20:35]MH_I2C_Read... [09:20:35]Read from MH i2c: 01 07 00 [09:20:35]MH_I2C_Read... [09:20:35]Read from MH i2c: 01 07 00 17 32 00 00 00 00 00 E1 0C 3D [09:20:35]RasterBufferAndPrint [09:20:35]line [09:20:35]line [09:20:35]line [09:20:35]line [09:20:35]line [09:20:35]written 0, free lines is 3303 [09:20:35]MH_Cut [09:20:35]Write to MH i2c: D1 01 00 1E 32 01 22 [09:20:35]Write i2c OK [09:20:35]MH_I2C_Read... [09:20:35]Read from MH i2c: D1 [09:20:35]MH_I2C_Read... [09:20:35]Read from MH i2c: D1 01 00 [09:20:35]MH_I2C_Read... [09:20:35]Read from MH i2c: D1 01 00 1E 32 00 21 [09:20:35]Write to MH i2c: 01 00 00 1F 32 51 [09:20:35]Write i2c OK [09:20:35]MH_I2C_Read... [09:20:36]OFD Sender: No OFD packet to send [09:20:36]*** Cut start [09:20:36]*** Partial cut [09:20:36]*** CUTSNS_PIN = 1 [09:20:36]*** CUTSNS_PIN = 0 [09:20:36]*** Brake cut motor [09:20:37]Read from MH i2c: 01 [09:20:37]MH_I2C_Read... [09:20:37]*** Stop cut motor [09:20:37]*** Cut end [09:20:37]Read from MH i2c: 01 07 00 [09:20:37]MH_I2C_Read... [09:20:37]Read from MH i2c: 01 07 00 1F 32 00 00 00 00 00 FF 0F 66 [09:20:37]process_action close_receipt done [09:20:37]requested_data is exist [09:20:37]produce_requested_data [09:20:37]requested_item fm.sn is exist - process it [09:20:37]wFMCommunicate request_size=4 [09:20:37]MH_SAM_APDU [09:20:37]CAPDU: 80 11 00 00 [09:20:37]Write to MH i2c: E2 08 00 20 32 80 11 00 00 00 00 00 00 CC [09:20:37]Write i2c OK [09:20:37]MH_I2C_Read... [09:20:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:37]Read from MH i2c: E2 [09:20:37]MH_I2C_Read... [09:20:37]Read from MH i2c: E2 17 00 [09:20:37]MH_I2C_Read... [09:20:37]Read from MH i2c: E2 17 00 20 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 27 [09:20:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:20:37]wFMCommunicate OK [09:20:37]requested_item fd.num is exist - process it [09:20:37]SAM_PROTO_GetFieldsCounters [09:20:37]wFMCommunicate request_size=4 [09:20:37]MH_SAM_APDU [09:20:37]CAPDU: 80 13 00 00 [09:20:37]Write to MH i2c: E2 08 00 21 32 80 13 00 00 00 00 00 00 CF [09:20:37]Write i2c OK [09:20:37]MH_I2C_Read... [09:20:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:37]Read from MH i2c: E2 [09:20:37]MH_I2C_Read... [09:20:37]Read from MH i2c: E2 62 00 [09:20:37]MH_I2C_Read... [09:20:37]Read from MH i2c: E2 62 00 21 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 61 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [09:20:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 61 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:20:37]wFMCommunicate OK [09:20:37]SAM_PROTO_GetFieldsCounters done [09:20:37]requested_item shift.num is exist - process it [09:20:37]requested_item shift.opened is exist - process it [09:20:37]req_shift_opened [09:20:37]FM_GetShiftState [09:20:37]SAM_PROTO_GetShiftState [09:20:37]wFMCommunicate request_size=4 [09:20:37]MH_SAM_APDU [09:20:37]CAPDU: 80 13 01 00 [09:20:37]Write to MH i2c: E2 08 00 22 32 80 13 01 00 00 00 00 00 D1 [09:20:37]Write i2c OK [09:20:37]MH_I2C_Read... [09:20:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:37]Read from MH i2c: E2 [09:20:37]MH_I2C_Read... [09:20:37]Read from MH i2c: E2 0E 00 [09:20:37]MH_I2C_Read... [09:20:37]Read from MH i2c: E2 0E 00 22 32 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 5E [09:20:37]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:20:37]wFMCommunicate OK [09:20:37]SAM_PROTO_GetShiftState done [09:20:37]FM_GetShiftState done [09:20:37]req_shift_opened done [09:20:37]requested_item shift.open_date is exist - process it [09:20:37]req_shift_open_date [09:20:37]req_shift_open_date done [09:20:37]produce_requested_data done [09:20:37]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118113,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [09:20:37]process_action_free close_receipt [09:20:37]json_value_free [09:20:37]json_value_free done [09:20:37]process_json_proto returns [09:20:37]Send response to host [09:20:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118113,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [09:20:37]free response buf [09:20:37]execute_script done [09:20:37]execute_script returns [09:20:37]free content buf [09:20:37]Sock 7.Close socket [09:20:37]Sock 7.Thread stoped [09:20:41]OFD Sender: No OFD packet to send [09:20:46]OFD Sender: No OFD packet to send [09:20:46]accept exits with 9 [09:20:46]New connection [09:20:46]New thread 3067428196 created [09:20:46]Thread 3067284836 joined [09:20:46]Waiting for new connection... [09:20:46] Sock 9.Parse request [09:20:46]Sock 9.Check first char [09:20:46]Sock 9.First char is OK [09:20:46]request: POST /json_proto HTTP/1.0 [09:20:46]Method: POST [09:20:46]URL: /json_proto [09:20:46]Method is POST - this is cgi request [09:20:46]url: /json_proto [09:20:46]query_string will be loaded in cgi processing [09:20:46]execute_cgi json_proto POST (null) [09:20:46]execute_cgi path=json_proto method=POST [09:20:46]POST find Content-Length [09:20:46]Host: 172.17.45.7:8080 [09:20:46]Content-Length: 677 [09:20:46]Content-Type: application/json [09:20:46] [09:20:46]POST finish read [09:20:46]Found Content-Length = 677 [09:20:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:46]execute_script... [09:20: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)948985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:46]POST & json_proto [09:20:46]process_json_proto [09:20:46]json parsed OK: [09:20:46]protocol is kg_v1.0 [09:20:46]action value=close_receipt [09:20:46]process_action close_receipt [09:20:46]cmd_close_receipt [09:20:46]MH_GetDate [09:20:46]Write to MH i2c: F0 00 00 23 32 44 [09:20:46]Write i2c OK [09:20:46]MH_I2C_Read... [09:20:46]Read from MH i2c: F0 [09:20:46]MH_I2C_Read... [09:20:46]Read from MH i2c: F0 09 00 [09:20:46]MH_I2C_Read... [09:20:46]Read from MH i2c: F0 09 00 23 32 00 F3 BB A4 66 90 0F 3E 66 48 [09:20:46]GetLastDocTimeStamp 1722072037 [09:20:46]current date 1722072051 [09:20:46]FM_GetShiftState [09:20:46]SAM_PROTO_GetShiftState [09:20:46]wFMCommunicate request_size=4 [09:20:46]MH_SAM_APDU [09:20:46]CAPDU: 80 13 01 00 [09:20:46]Write to MH i2c: E2 08 00 24 32 80 13 01 00 00 00 00 00 D3 [09:20:46]Write i2c OK [09:20:46]MH_I2C_Read... [09:20:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:46]Read from MH i2c: E2 [09:20:46]MH_I2C_Read... [09:20:46]Read from MH i2c: E2 0E 00 [09:20:46]MH_I2C_Read... [09:20:46]Read from MH i2c: E2 0E 00 24 32 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 60 [09:20:46]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:20:46]wFMCommunicate OK [09:20:46]SAM_PROTO_GetShiftState done [09:20:46]FM_GetShiftState done [09:20:46]opened in 1722038845 [09:20:46]opened+sec_in_day 1722125245 [09:20:46]quantity*price = 50010 [09:20:46]sum+1 = 50012 [09:20:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 57 27.07.2024 09:20 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118114 ФПД: 113209268781922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T092051&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118114&fm=113209268781922&tin=02508201610067®Number=0000000000092660&sum=50000 [09:20:48]StoreToDocumentArchive [09:20:48]shift 432 fd 118114 [09:20:48]save to /storage/0432/doc_00118114 [09:20:48]save last doc name /storage/0432/doc_00118114 to /storage/kkm_last_doc_name [09:20:48]save OK [09:20:48]Clear old archive folders... [09:20:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:20:48]tlvbuf is 00710C00 [09:20:48]SAM_PROTO_ClearQueue [09:20:48]wFMCommunicate request_size=4 [09:20:48]MH_SAM_APDU [09:20:48]CAPDU: 80 09 00 00 [09:20:48]Write to MH i2c: E2 08 00 31 32 80 09 00 00 00 00 00 00 D5 [09:20:48]Write i2c OK [09:20:48]MH_I2C_Read... [09:20:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:20:48]Read from MH i2c: E2 [09:20:48]MH_I2C_Read... [09:20:48]Read from MH i2c: E2 03 00 [09:20:48]MH_I2C_Read... [09:20:48]Read from MH i2c: E2 03 00 31 32 00 90 00 D7 [09:20:48]RAPDU: 90 00 [09:20:48]wFMCommunicate OK [09:20:48]SAM_PROTO_ClearQueue done [09:20:48]KKMCreateOFDPacket [09:20:48]OFDProtocolAddRootSTLVToBuf [09:20:48]FM_MakeSignedData [09:20:48]FM_MakeSignedData [09:20:48]SAM_PROTO_SignData [09:20:48]wFMCommunicate request_size=4 [09:20:48]MH_SAM_APDU [09:20:48]CAPDU: 80 0D 01 02 [09:20:48]Write to MH i2c: E2 08 00 32 32 80 0D 01 02 00 00 00 00 DD [09:20:48]Write i2c OK [09:20:48]MH_I2C_Read... [09:20:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:20:48]Read from MH i2c: E2 [09:20:48]MH_I2C_Read... [09:20:48]Read from MH i2c: E2 03 00 [09:20:48]MH_I2C_Read... [09:20:48]Read from MH i2c: E2 03 00 32 32 00 90 00 D8 [09:20:48]RAPDU: 90 00 [09:20:48]wFMCommunicate OK [09:20:48]wFMCommunicate request_size=255 [09:20:48]MH_SAM_APDU [09:20:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 F3 BB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 62 CD 01 00 35 04 06 00 66 [09:20:48]Write to MH i2c: E2 02 01 33 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 F3 BB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 62 CD 01 00 35 04 06 00 66 00 00 80 [09:20:48]Write i2c OK [09:20:48]MH_I2C_Read... [09:20:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:48]Read from MH i2c: E2 [09:20:48]MH_I2C_Read... [09:20:48]Read from MH i2c: E2 03 00 [09:20:48]MH_I2C_Read... [09:20:48]Read from MH i2c: E2 03 00 33 32 00 90 00 D9 [09:20:48]RAPDU: 90 00 [09:20:48]wFMCommunicate OK [09:20:48]wFMCommunicate request_size=10 [09:20:48]MH_SAM_APDU [09:20:48]CAPDU: 80 0D 02 02 05 F6 96 40 43 62 [09:20:48]Write to MH i2c: E2 0D 00 34 32 80 0D 02 02 05 00 F6 96 40 43 62 00 00 5B [09:20:48]Write i2c OK [09:20:48]MH_I2C_Read... [09:20:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:48]Read from MH i2c: E2 [09:20:48]MH_I2C_Read... [09:20:48]Read from MH i2c: E2 03 00 [09:20:48]MH_I2C_Read... [09:20:48]Read from MH i2c: E2 03 00 34 32 00 90 00 DA [09:20:48]RAPDU: 90 00 [09:20:48]wFMCommunicate OK [09:20:48]wFMCommunicate request_size=4 [09:20:48]MH_SAM_APDU [09:20:48]CAPDU: 80 0D 03 02 [09:20:48]Write to MH i2c: E2 08 00 35 32 80 0D 03 02 00 00 00 00 E2 [09:20:48]Write i2c OK [09:20:48]MH_I2C_Read... [09:20:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:20:48]Read from MH i2c: E2 [09:20:48]MH_I2C_Read... [09:20:48]Read from MH i2c: E2 0B 00 [09:20:48]MH_I2C_Read... [09:20:48]Read from MH i2c: E2 0B 00 35 32 00 17 5D 69 E5 7F 93 E7 B2 90 00 50 [09:20:48]RAPDU: 17 5D 69 E5 7F 93 E7 B2 90 00 [09:20:48]wFMCommunicate OK [09:20:48]SAM_PROTO_SignData done [09:20:48]FM_MakeSignedData done [09:20:48]CreateOFDProtocolMessage [09:20:48]wFMCommunicate request_size=4 [09:20:48]MH_SAM_APDU [09:20:48]CAPDU: 80 11 00 00 [09:20:48]Write to MH i2c: E2 08 00 36 32 80 11 00 00 00 00 00 00 E2 [09:20:48]Write i2c OK [09:20:48]MH_I2C_Read... [09:20:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:48]Read from MH i2c: E2 [09:20:48]MH_I2C_Read... [09:20:48]Read from MH i2c: E2 17 00 [09:20:48]MH_I2C_Read... [09:20:48]Read from MH i2c: E2 17 00 36 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3D [09:20:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:20:48]wFMCommunicate OK [09:20:48]CreateOFDProtocolMessage done [09:20:48]OFDSenderStorePacket 118114 [09:20:48]StoreOFDPacket docnum=118114 [09:20:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 22 BA 07 01 4D DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 F3 BB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 62 CD 01 00 35 04 06 00 66 F6 96 40 43 62 17 5D 69 E5 7F 93 E7 B2 [09:20:48]CheckFolder [09:20:48]dirname=/storage/ofd_packets [09:20:48]CheckFolder done [09:20:48]ProducePacketName [09:20:48]name=ofd_packets/00118114 [09:20:48]NVStorageSaveData ofd_packets/00118114 [09:20:48]File name is /storage/ofd_packets/00118114 [09:20:48]Write 301 bytes [09:20:48]NVStorageSaveData done [09:20:48]OFDSenderStorePacket done [09:20:48]KKMCreateOFDPacket done [09:20:48]NVStorageSaveData kkm_last_timestamp [09:20:48]File name is /storage/kkm_last_timestamp [09:20:48]Write 4 bytes [09:20:48]NVStorageSaveData done [09:20:48]ExternCall_PrintAddStr [09:20:48]wPrintStart [09:20:48]Write to MH i2c: 01 00 00 37 32 69 [09:20:48]Write i2c OK [09:20:48]MH_I2C_Read... [09:20:48]Read from MH i2c: 01 [09:20:48]MH_I2C_Read... [09:20:48]Read from MH i2c: 01 07 00 [09:20:48]MH_I2C_Read... [09:20:48]Read from MH i2c: 01 07 00 37 32 00 00 00 00 00 FF 0F 7E [09:20:48]RasterBufferAndPrint [09:20:48]line Счет N : (1)948985 [09:20:48]line ИНН: 02508201610067 [09:20:48]line Контрольно-Кассовый Чек [09:20:48]line ПРОДАЖА [09:20:48]line ТРК (МРК, ГНК) : 53 [09:20:48]line Товар: 2710124500 [09:20:48]line Аи-95-К-3 [09:20:48]line 6.740 * 74.20 [09:20:48]line = 500.11 [09:20:48]line НДС 12% НСП 1% [09:20:48]line > о реализуемом товаре [09:20:48]line ОКРУГЛЕНИЕ: -0.11 [09:20:48]line ИТОГО: 500.00 [09:20:48]line Внесено: 500.00 [09:20:48]line СДАЧА: 0.00 [09:20:48]line НСП 1% : 4.43 [09:20:48]line НДС 12% : 53.11 [09:20:48]line Наличными: 500.00 [09:20:48]line Безнал.: 0.00 [09:20:48]line Место: АЗС № 134 "Партнер Нефть" [09:20:48]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:20:48]line СНО: Общий режим [09:20:48]line Чек 57 27.07.2024 09:20 [09:20:48]line Смена: 432 ФФД: 1.0 [09:20:48]line ЗНМ: 0300000044 [09:20:48]line РНМ: 0000000000092660 [09:20:48]line Версия ККМ: 001 [09:20:48]line ФМ: 0000000000874939 [09:20:48]line ФД: 118114 [09:20:48]line ФПД: 113209268781922 [09:20:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T092051&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118114&fm=113209268781922&tin=02508201610067®Number=0000000000092660&sum=50000 [09:20:48]OFD Sender: Processing packet 118114 [packets to send 85, broken 84] [09:20:48]ProducePacketName [09:20:48]name=ofd_packets/00118114 [09:20:48]OFD Sender: To server: pG, [09:20:48]CommunicateWithHost lk.salyk.kg:30040 [09:20:48]ConnectInit lk.salyk.kg [09:20:48]written 0, free lines is 4095 [09:20:49]Connected sock=10 [09:20:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 22 BA 07 01 4D DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 F3 BB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 62 CD 01 00 35 04 06 00 66 F6 96 40 43 62 17 5D 69 E5 7F 93 E7 B2 [09:20:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A4 AF 47 00 1D 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 34 39 33 39 10 04 04 00 62 CD 01 00 F4 03 04 00 86 69 A4 66 B6 04 01 00 00 F7 5C 39 B9 1B FB 4C 19 [09:20:49]CommunicateWithHost err = 0 [09:20:49]CheckOFDResponse [09:20:49]1017 (14) - 77093643461234 [09:20:49]1041 (16) - 0000000000874939 [09:20:49]1040 (4) - 118114 [09:20:49]1012 (4) - 27.07.2024 03:29 [09:20:49]1206 (1) - 0 [09:20:49]OFD Sender: Remove packet 118114 [09:20:49]ProducePacketName [09:20:49]name=ofd_packets/00118114 [09:20:49]NVStorageDeleteData [09:20:49]Write to MH i2c: 01 00 00 61 32 93 [09:20:49]Write i2c OK [09:20:49]MH_I2C_Read... [09:20:49]Read from MH i2c: 01 [09:20:49]MH_I2C_Read... [09:20:49]Read from MH i2c: 01 07 00 [09:20:49]MH_I2C_Read... [09:20:49]Read from MH i2c: 01 07 00 61 32 00 00 00 00 00 E4 0C 8A [09:20:49]RasterBufferAndPrint [09:20:49]line [09:20:49]line [09:20:49]line [09:20:49]line [09:20:49]line [09:20:49]written 0, free lines is 3306 [09:20:49]MH_Cut [09:20:49]Write to MH i2c: D1 01 00 68 32 01 6C [09:20:49]Write i2c OK [09:20:49]MH_I2C_Read... [09:20:49]Read from MH i2c: D1 [09:20:49]MH_I2C_Read... [09:20:49]Read from MH i2c: D1 01 00 [09:20:49]MH_I2C_Read... [09:20:49]Read from MH i2c: D1 01 00 68 32 00 6B [09:20:49]Write to MH i2c: 01 00 00 69 32 9B [09:20:49]Write i2c OK [09:20:49]MH_I2C_Read... [09:20:49]OFD Sender: No OFD packet to send [09:20:50]*** Cut start [09:20:50]*** Partial cut [09:20:50]*** CUTSNS_PIN = 1 [09:20:50]*** CUTSNS_PIN = 0 [09:20:50]*** Brake cut motor [09:20:50]Read from MH i2c: 01 [09:20:50]MH_I2C_Read... [09:20:50]*** Stop cut motor [09:20:50]*** Cut end [09:20:50]Read from MH i2c: 01 07 00 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: 01 07 00 69 32 00 00 00 00 00 FF 0F B0 [09:20:50]process_action close_receipt done [09:20:50]requested_data is exist [09:20:50]produce_requested_data [09:20:50]requested_item fm.sn is exist - process it [09:20:50]wFMCommunicate request_size=4 [09:20:50]MH_SAM_APDU [09:20:50]CAPDU: 80 11 00 00 [09:20:50]Write to MH i2c: E2 08 00 6A 32 80 11 00 00 00 00 00 00 16 [09:20:50]Write i2c OK [09:20:50]MH_I2C_Read... [09:20:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:50]Read from MH i2c: E2 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 17 00 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 17 00 6A 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 71 [09:20:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:20:50]wFMCommunicate OK [09:20:50]requested_item fd.num is exist - process it [09:20:50]SAM_PROTO_GetFieldsCounters [09:20:50]wFMCommunicate request_size=4 [09:20:50]MH_SAM_APDU [09:20:50]CAPDU: 80 13 00 00 [09:20:50]Write to MH i2c: E2 08 00 6B 32 80 13 00 00 00 00 00 00 19 [09:20:50]Write i2c OK [09:20:50]MH_I2C_Read... [09:20:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:50]Read from MH i2c: E2 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 62 00 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 62 00 6B 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 62 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [09:20:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 62 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:20:50]wFMCommunicate OK [09:20:50]SAM_PROTO_GetFieldsCounters done [09:20:50]requested_item shift.num is exist - process it [09:20:50]requested_item shift.opened is exist - process it [09:20:50]req_shift_opened [09:20:50]FM_GetShiftState [09:20:50]SAM_PROTO_GetShiftState [09:20:50]wFMCommunicate request_size=4 [09:20:50]MH_SAM_APDU [09:20:50]CAPDU: 80 13 01 00 [09:20:50]Write to MH i2c: E2 08 00 6C 32 80 13 01 00 00 00 00 00 1B [09:20:50]Write i2c OK [09:20:50]MH_I2C_Read... [09:20:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:50]Read from MH i2c: E2 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 0E 00 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 0E 00 6C 32 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 A8 [09:20:50]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:20:50]wFMCommunicate OK [09:20:50]SAM_PROTO_GetShiftState done [09:20:50]FM_GetShiftState done [09:20:50]req_shift_opened done [09:20:50]requested_item shift.open_date is exist - process it [09:20:50]req_shift_open_date [09:20:50]req_shift_open_date done [09:20:50]produce_requested_data done [09:20:50]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118114,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [09:20:50]process_action_free close_receipt [09:20:50]json_value_free [09:20:50]json_value_free done [09:20:50]process_json_proto returns [09:20:50]Send response to host [09:20:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118114,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [09:20:50]free response buf [09:20:50]execute_script done [09:20:50]execute_script returns [09:20:50]free content buf [09:20:50]Sock 9.Close socket [09:20:50]Sock 9.Thread stoped [09:20:54]OFD Sender: No OFD packet to send [09:20:59]OFD Sender: No OFD packet to send [09:21:04]OFD Sender: No OFD packet to send [09:21:09]OFD Sender: No OFD packet to send [09:21:14]OFD Sender: No OFD packet to send [09:21:19]OFD Sender: No OFD packet to send [09:21:24]OFD Sender: No OFD packet to send [09:21:29]OFD Sender: No OFD packet to send [09:21:34]OFD Sender: No OFD packet to send [09:21:39]OFD Sender: No OFD packet to send [09:21:44]OFD Sender: No OFD packet to send [09:21:49]OFD Sender: No OFD packet to send [09:21:54]OFD Sender: No OFD packet to send [09:21:59]OFD Sender: No OFD packet to send [09:22:04]OFD Sender: No OFD packet to send [09:22:09]OFD Sender: No OFD packet to send [09:22:14]OFD Sender: No OFD packet to send [09:22:19]OFD Sender: No OFD packet to send [09:22:24]OFD Sender: No OFD packet to send [09:22:29]OFD Sender: No OFD packet to send [09:22:34]OFD Sender: No OFD packet to send [09:22:39]OFD Sender: No OFD packet to send [09:22:44]OFD Sender: No OFD packet to send [09:22:49]OFD Sender: No OFD packet to send [09:22:54]OFD Sender: No OFD packet to send [09:22:59]OFD Sender: No OFD packet to send [09:23:04]OFD Sender: No OFD packet to send [09:23:09]OFD Sender: No OFD packet to send [09:23:14]OFD Sender: No OFD packet to send [09:23:19]OFD Sender: No OFD packet to send [09:23:24]OFD Sender: No OFD packet to send [09:23:29]OFD Sender: No OFD packet to send [09:23:34]OFD Sender: No OFD packet to send [09:23:39]OFD Sender: No OFD packet to send [09:23:44]OFD Sender: No OFD packet to send [09:23:49]OFD Sender: No OFD packet to send [09:23:54]OFD Sender: No OFD packet to send [09:23:59]OFD Sender: No OFD packet to send [09:24:04]OFD Sender: No OFD packet to send [09:24:09]OFD Sender: No OFD packet to send [09:24:14]OFD Sender: No OFD packet to send [09:24:20]OFD Sender: No OFD packet to send [09:24:25]OFD Sender: No OFD packet to send [09:24:30]OFD Sender: No OFD packet to send [09:24:35]OFD Sender: No OFD packet to send [09:24:40]OFD Sender: No OFD packet to send [09:24:45]OFD Sender: No OFD packet to send [09:24:50]OFD Sender: No OFD packet to send [09:24:55]OFD Sender: No OFD packet to send [09:25:00]OFD Sender: No OFD packet to send [09:25:05]OFD Sender: No OFD packet to send [09:25:10]OFD Sender: No OFD packet to send [09:25:11]accept exits with 7 [09:25:11]New connection [09:25:11]New thread 3067284836 created [09:25:11]Thread 3067428196 joined [09:25:11]Waiting for new connection... [09:25:11] Sock 7.Parse request [09:25:11]Sock 7.Check first char [09:25:11]Sock 7.First char is OK [09:25:11]request: POST /json_proto HTTP/1.0 [09:25:11]Method: POST [09:25:11]URL: /json_proto [09:25:11]Method is POST - this is cgi request [09:25:11]url: /json_proto [09:25:11]query_string will be loaded in cgi processing [09:25:11]execute_cgi json_proto POST (null) [09:25:11]execute_cgi path=json_proto method=POST [09:25:11]POST find Content-Length [09:25:11]Host: 172.17.45.7:8080 [09:25:11]Content-Length: 677 [09:25:11]Content-Type: application/json [09:25:11] [09:25:11]POST finish read [09:25:11]Found Content-Length = 677 [09:25:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:11]execute_script... [09:25: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)948986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:11]POST & json_proto [09:25:11]process_json_proto [09:25:11]json parsed OK: [09:25:11]protocol is kg_v1.0 [09:25:11]action value=close_receipt [09:25:11]process_action close_receipt [09:25:11]cmd_close_receipt [09:25:11]MH_GetDate [09:25:11]Write to MH i2c: F0 00 00 6D 32 8E [09:25:11]Write i2c OK [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: F0 [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: F0 09 00 [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: F0 09 00 6D 32 00 FB BC A4 66 90 0F 3E 66 9B [09:25:11]GetLastDocTimeStamp 1722072051 [09:25:11]current date 1722072315 [09:25:11]FM_GetShiftState [09:25:11]SAM_PROTO_GetShiftState [09:25:11]wFMCommunicate request_size=4 [09:25:11]MH_SAM_APDU [09:25:11]CAPDU: 80 13 01 00 [09:25:11]Write to MH i2c: E2 08 00 6E 32 80 13 01 00 00 00 00 00 1D [09:25:11]Write i2c OK [09:25:11]MH_I2C_Read... [09:25:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:11]Read from MH i2c: E2 [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: E2 0E 00 [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: E2 0E 00 6E 32 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 AA [09:25:11]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:25:11]wFMCommunicate OK [09:25:11]SAM_PROTO_GetShiftState done [09:25:11]FM_GetShiftState done [09:25:11]opened in 1722038845 [09:25:11]opened+sec_in_day 1722125245 [09:25:11]quantity*price = 30035 [09:25:11]sum+1 = 30036 [09:25:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 58 27.07.2024 09:25 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118115 ФПД: 212349791900705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T092515&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118115&fm=212349791900705&tin=02508201610067®Number=0000000000092660&sum=30000 [09:25:12]StoreToDocumentArchive [09:25:12]shift 432 fd 118115 [09:25:12]save to /storage/0432/doc_00118115 [09:25:12]save last doc name /storage/0432/doc_00118115 to /storage/kkm_last_doc_name [09:25:12]save OK [09:25:12]Clear old archive folders... [09:25:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:25:12]tlvbuf is 00737AD0 [09:25:12]SAM_PROTO_ClearQueue [09:25:12]wFMCommunicate request_size=4 [09:25:12]MH_SAM_APDU [09:25:12]CAPDU: 80 09 00 00 [09:25:12]Write to MH i2c: E2 08 00 7B 32 80 09 00 00 00 00 00 00 1F [09:25:12]Write i2c OK [09:25:12]MH_I2C_Read... [09:25:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:12]Read from MH i2c: E2 [09:25:12]MH_I2C_Read... [09:25:12]Read from MH i2c: E2 03 00 [09:25:12]MH_I2C_Read... [09:25:12]Read from MH i2c: E2 03 00 7B 32 00 90 00 21 [09:25:12]RAPDU: 90 00 [09:25:12]wFMCommunicate OK [09:25:12]SAM_PROTO_ClearQueue done [09:25:12]KKMCreateOFDPacket [09:25:12]OFDProtocolAddRootSTLVToBuf [09:25:12]FM_MakeSignedData [09:25:12]FM_MakeSignedData [09:25:12]SAM_PROTO_SignData [09:25:12]wFMCommunicate request_size=4 [09:25:12]MH_SAM_APDU [09:25:12]CAPDU: 80 0D 01 02 [09:25:12]Write to MH i2c: E2 08 00 7C 32 80 0D 01 02 00 00 00 00 27 [09:25:12]Write i2c OK [09:25:12]MH_I2C_Read... [09:25:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:12]Read from MH i2c: E2 [09:25:12]MH_I2C_Read... [09:25:12]Read from MH i2c: E2 03 00 [09:25:12]MH_I2C_Read... [09:25:12]Read from MH i2c: E2 03 00 7C 32 00 90 00 22 [09:25:12]RAPDU: 90 00 [09:25:12]wFMCommunicate OK [09:25:12]wFMCommunicate request_size=255 [09:25:12]MH_SAM_APDU [09:25: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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 FB BC A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 63 CD 01 00 35 04 06 00 C1 [09:25:12]Write to MH i2c: E2 02 01 7D 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 FB BC A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 63 CD 01 00 35 04 06 00 C1 00 00 68 [09:25:12]Write i2c OK [09:25:12]MH_I2C_Read... [09:25:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:13]Read from MH i2c: E2 [09:25:13]MH_I2C_Read... [09:25:13]Read from MH i2c: E2 03 00 [09:25:13]MH_I2C_Read... [09:25:13]Read from MH i2c: E2 03 00 7D 32 00 90 00 23 [09:25:13]RAPDU: 90 00 [09:25:13]wFMCommunicate OK [09:25:13]wFMCommunicate request_size=10 [09:25:13]MH_SAM_APDU [09:25:13]CAPDU: 80 0D 02 02 05 21 89 EA 14 21 [09:25:13]Write to MH i2c: E2 0D 00 7E 32 80 0D 02 02 05 00 21 89 EA 14 21 00 00 FD [09:25:13]Write i2c OK [09:25:13]MH_I2C_Read... [09:25:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:13]Read from MH i2c: E2 [09:25:13]MH_I2C_Read... [09:25:13]Read from MH i2c: E2 03 00 [09:25:13]MH_I2C_Read... [09:25:13]Read from MH i2c: E2 03 00 7E 32 00 90 00 24 [09:25:13]RAPDU: 90 00 [09:25:13]wFMCommunicate OK [09:25:13]wFMCommunicate request_size=4 [09:25:13]MH_SAM_APDU [09:25:13]CAPDU: 80 0D 03 02 [09:25:13]Write to MH i2c: E2 08 00 7F 32 80 0D 03 02 00 00 00 00 2C [09:25:13]Write i2c OK [09:25:13]MH_I2C_Read... [09:25:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:13]Read from MH i2c: E2 [09:25:13]MH_I2C_Read... [09:25:13]Read from MH i2c: E2 0B 00 [09:25:13]MH_I2C_Read... [09:25:13]Read from MH i2c: E2 0B 00 7F 32 00 DC C3 67 7A 10 50 D3 BA 90 00 9A [09:25:13]RAPDU: DC C3 67 7A 10 50 D3 BA 90 00 [09:25:13]wFMCommunicate OK [09:25:13]SAM_PROTO_SignData done [09:25:13]FM_MakeSignedData done [09:25:13]CreateOFDProtocolMessage [09:25:13]wFMCommunicate request_size=4 [09:25:13]MH_SAM_APDU [09:25:13]CAPDU: 80 11 00 00 [09:25:13]Write to MH i2c: E2 08 00 80 32 80 11 00 00 00 00 00 00 2C [09:25:13]Write i2c OK [09:25:13]MH_I2C_Read... [09:25:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:13]Read from MH i2c: E2 [09:25:13]MH_I2C_Read... [09:25:13]Read from MH i2c: E2 17 00 [09:25:13]MH_I2C_Read... [09:25:13]Read from MH i2c: E2 17 00 80 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 87 [09:25:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:25:13]wFMCommunicate OK [09:25:13]CreateOFDProtocolMessage done [09:25:13]OFDSenderStorePacket 118115 [09:25:13]StoreOFDPacket docnum=118115 [09:25:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 32 06 07 01 88 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 FB BC A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 63 CD 01 00 35 04 06 00 C1 21 89 EA 14 21 DC C3 67 7A 10 50 D3 BA [09:25:13]CheckFolder [09:25:13]dirname=/storage/ofd_packets [09:25:13]CheckFolder done [09:25:13]ProducePacketName [09:25:13]name=ofd_packets/00118115 [09:25:13]NVStorageSaveData ofd_packets/00118115 [09:25:13]File name is /storage/ofd_packets/00118115 [09:25:13]Write 301 bytes [09:25:13]NVStorageSaveData done [09:25:13]OFDSenderStorePacket done [09:25:13]KKMCreateOFDPacket done [09:25:13]NVStorageSaveData kkm_last_timestamp [09:25:13]File name is /storage/kkm_last_timestamp [09:25:13]Write 4 bytes [09:25:13]NVStorageSaveData done [09:25:13]ExternCall_PrintAddStr [09:25:13]wPrintStart [09:25:13]Write to MH i2c: 01 00 00 81 32 B3 [09:25:13]Write i2c OK [09:25:13]MH_I2C_Read... [09:25:13]Read from MH i2c: 01 [09:25:13]MH_I2C_Read... [09:25:13]Read from MH i2c: 01 07 00 [09:25:13]MH_I2C_Read... [09:25:13]Read from MH i2c: 01 07 00 81 32 00 00 00 00 00 FF 0F C8 [09:25:13]RasterBufferAndPrint [09:25:13]line Счет N : (1)948986 [09:25:13]line ИНН: 02508201610067 [09:25:13]line Контрольно-Кассовый Чек [09:25:13]line ПРОДАЖА [09:25:13]line ТРК (МРК, ГНК) : 61 [09:25:13]line Товар: 2710124130 [09:25:13]line Аи-92-К-4 [09:25:13]line 4.430 * 67.80 [09:25:13]line = 300.35 [09:25:13]line НДС 12% НСП 1% [09:25:13]line > о реализуемом товаре [09:25:13]line ОКРУГЛЕНИЕ: -0.35 [09:25:13]line ИТОГО: 300.00 [09:25:13]line Внесено: 300.00 [09:25:13]line СДАЧА: 0.00 [09:25:13]line НСП 1% : 2.66 [09:25:13]line НДС 12% : 31.90 [09:25:13]line Наличными: 300.00 [09:25:13]line Безнал.: 0.00 [09:25:13]line Место: АЗС № 134 "Партнер Нефть" [09:25:13]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:25:13]line СНО: Общий режим [09:25:13]line Чек 58 27.07.2024 09:25 [09:25:13]line Смена: 432 ФФД: 1.0 [09:25:13]line ЗНМ: 0300000044 [09:25:13]line РНМ: 0000000000092660 [09:25:13]line Версия ККМ: 001 [09:25:13]line ФМ: 0000000000874939 [09:25:13]line ФД: 118115 [09:25:13]line ФПД: 212349791900705 [09:25:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T092515&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118115&fm=212349791900705&tin=02508201610067®Number=0000000000092660&sum=30000 [09:25:13]OFD Sender: Processing packet 118115 [packets to send 85, broken 84] [09:25:13]ProducePacketName [09:25:13]name=ofd_packets/00118115 [09:25:13]OFD Sender: To server: pG, [09:25:13]CommunicateWithHost lk.salyk.kg:30040 [09:25:13]ConnectInit lk.salyk.kg [09:25:13]written 0, free lines is 4095 [09:25:13]Connected sock=10 [09:25:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 32 06 07 01 88 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 FB BC A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 63 CD 01 00 35 04 06 00 C1 21 89 EA 14 21 DC C3 67 7A 10 50 D3 BA [09:25:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 50 10 47 00 71 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 63 CD 01 00 F4 03 04 00 8F 6A A4 66 B6 04 01 00 00 C2 9D B9 8F FC 2E 6A EF [09:25:14]CommunicateWithHost err = 0 [09:25:14]CheckOFDResponse [09:25:14]1017 (14) - 77093643461234 [09:25:14]1041 (16) - 0000000000874939 [09:25:14]1040 (4) - 118115 [09:25:14]1012 (4) - 27.07.2024 03:33 [09:25:14]1206 (1) - 0 [09:25:14]OFD Sender: Remove packet 118115 [09:25:14]ProducePacketName [09:25:14]name=ofd_packets/00118115 [09:25:14]NVStorageDeleteData [09:25:14]Write to MH i2c: 01 00 00 AB 32 DD [09:25:14]Write i2c OK [09:25:14]MH_I2C_Read... [09:25:14]Read from MH i2c: 01 [09:25:14]MH_I2C_Read... [09:25:14]Read from MH i2c: 01 07 00 [09:25:14]MH_I2C_Read... [09:25:14]Read from MH i2c: 01 07 00 AB 32 00 00 00 00 00 E0 0C D0 [09:25:14]RasterBufferAndPrint [09:25:14]line [09:25:14]line [09:25:14]line [09:25:14]line [09:25:14]line [09:25:14]written 0, free lines is 3302 [09:25:14]MH_Cut [09:25:14]Write to MH i2c: D1 01 00 B2 32 01 B6 [09:25:14]Write i2c OK [09:25:14]MH_I2C_Read... [09:25:14]Read from MH i2c: D1 [09:25:14]MH_I2C_Read... [09:25:14]Read from MH i2c: D1 01 00 [09:25:14]MH_I2C_Read... [09:25:14]Read from MH i2c: D1 01 00 B2 32 00 B5 [09:25:14]Write to MH i2c: 01 00 00 B3 32 E5 [09:25:14]Write i2c OK [09:25:14]MH_I2C_Read... [09:25:14]OFD Sender: No OFD packet to send [09:25:14]*** Cut start [09:25:14]*** Partial cut [09:25:14]*** CUTSNS_PIN = 1 [09:25:14]*** CUTSNS_PIN = 0 [09:25:15]*** Brake cut motor [09:25:15]Read from MH i2c: 01 [09:25:15]MH_I2C_Read... [09:25:15]*** Stop cut motor [09:25:15]*** Cut end [09:25:15]Read from MH i2c: 01 07 00 [09:25:15]MH_I2C_Read... [09:25:15]Read from MH i2c: 01 07 00 B3 32 00 00 00 00 00 FF 0F FA [09:25:15]process_action close_receipt done [09:25:15]requested_data is exist [09:25:15]produce_requested_data [09:25:15]requested_item fm.sn is exist - process it [09:25:15]wFMCommunicate request_size=4 [09:25:15]MH_SAM_APDU [09:25:15]CAPDU: 80 11 00 00 [09:25:15]Write to MH i2c: E2 08 00 B4 32 80 11 00 00 00 00 00 00 60 [09:25:15]Write i2c OK [09:25:15]MH_I2C_Read... [09:25:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:15]Read from MH i2c: E2 [09:25:15]MH_I2C_Read... [09:25:15]Read from MH i2c: E2 17 00 [09:25:15]MH_I2C_Read... [09:25:15]Read from MH i2c: E2 17 00 B4 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BB [09:25:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:25:15]wFMCommunicate OK [09:25:15]requested_item fd.num is exist - process it [09:25:15]SAM_PROTO_GetFieldsCounters [09:25:15]wFMCommunicate request_size=4 [09:25:15]MH_SAM_APDU [09:25:15]CAPDU: 80 13 00 00 [09:25:15]Write to MH i2c: E2 08 00 B5 32 80 13 00 00 00 00 00 00 63 [09:25:15]Write i2c OK [09:25:15]MH_I2C_Read... [09:25:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:15]Read from MH i2c: E2 [09:25:15]MH_I2C_Read... [09:25:15]Read from MH i2c: E2 62 00 [09:25:15]MH_I2C_Read... [09:25:15]Read from MH i2c: E2 62 00 B5 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 63 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [09:25:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 63 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:25:15]wFMCommunicate OK [09:25:15]SAM_PROTO_GetFieldsCounters done [09:25:15]requested_item shift.num is exist - process it [09:25:15]requested_item shift.opened is exist - process it [09:25:15]req_shift_opened [09:25:15]FM_GetShiftState [09:25:15]SAM_PROTO_GetShiftState [09:25:15]wFMCommunicate request_size=4 [09:25:15]MH_SAM_APDU [09:25:15]CAPDU: 80 13 01 00 [09:25:15]Write to MH i2c: E2 08 00 B6 32 80 13 01 00 00 00 00 00 65 [09:25:15]Write i2c OK [09:25:15]MH_I2C_Read... [09:25:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:15]Read from MH i2c: E2 [09:25:15]MH_I2C_Read... [09:25:15]Read from MH i2c: E2 0E 00 [09:25:15]MH_I2C_Read... [09:25:15]Read from MH i2c: E2 0E 00 B6 32 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 F2 [09:25:15]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:25:15]wFMCommunicate OK [09:25:15]SAM_PROTO_GetShiftState done [09:25:15]FM_GetShiftState done [09:25:15]req_shift_opened done [09:25:15]requested_item shift.open_date is exist - process it [09:25:15]req_shift_open_date [09:25:15]req_shift_open_date done [09:25:15]produce_requested_data done [09:25:15]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118115,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [09:25:15]process_action_free close_receipt [09:25:15]json_value_free [09:25:15]json_value_free done [09:25:15]process_json_proto returns [09:25:15]Send response to host [09:25:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118115,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [09:25:15]free response buf [09:25:15]execute_script done [09:25:15]execute_script returns [09:25:15]free content buf [09:25:15]Sock 7.Close socket [09:25:15]Sock 7.Thread stoped [09:25:19]OFD Sender: No OFD packet to send [09:25:24]OFD Sender: No OFD packet to send [09:25:29]OFD Sender: No OFD packet to send [09:25:34]OFD Sender: No OFD packet to send [09:25:39]OFD Sender: No OFD packet to send [09:25:44]OFD Sender: No OFD packet to send [09:25:49]OFD Sender: No OFD packet to send [09:25:54]OFD Sender: No OFD packet to send [09:25:59]OFD Sender: No OFD packet to send [09:26:04]OFD Sender: No OFD packet to send [09:26:09]OFD Sender: No OFD packet to send [09:26:14]OFD Sender: No OFD packet to send [09:26:19]OFD Sender: No OFD packet to send [09:26:24]OFD Sender: No OFD packet to send [09:26:29]OFD Sender: No OFD packet to send [09:26:34]OFD Sender: No OFD packet to send [09:26:39]OFD Sender: No OFD packet to send [09:26:44]OFD Sender: No OFD packet to send [09:26:49]OFD Sender: No OFD packet to send [09:26:54]OFD Sender: No OFD packet to send [09:26:59]accept exits with 9 [09:26:59]New connection [09:26:59]New thread 3067428196 created [09:26:59]Thread 3067284836 joined [09:26:59]Waiting for new connection... [09:26:59] Sock 9.Parse request [09:26:59]Sock 9.Check first char [09:26:59]Sock 9.First char is OK [09:26:59]request: POST /json_proto HTTP/1.0 [09:26:59]Method: POST [09:26:59]URL: /json_proto [09:26:59]Method is POST - this is cgi request [09:26:59]url: /json_proto [09:26:59]query_string will be loaded in cgi processing [09:26:59]execute_cgi json_proto POST (null) [09:26:59]execute_cgi path=json_proto method=POST [09:26:59]POST find Content-Length [09:26:59]Host: 172.17.45.7:8080 [09:26:59]Content-Length: 1210 [09:26:59]Content-Type: application/json [09:26:59] [09:26:59]POST finish read [09:26:59]Found Content-Length = 1210 [09:26:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)948987\u000A27.07.2024 09:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 20.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 1356.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3588950\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:59]execute_script... [09:26:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)948987\u000A27.07.2024 09:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 20.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 1356.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3588950\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:59]POST & json_proto [09:26:59]process_json_proto [09:26:59]json parsed OK: [09:26:59]protocol is kg_v1.0 [09:26:59]action value=print_text [09:26:59]process_action print_text [09:26:59]cmd_print_text [09:26:59]ExternCall_PrintAddStr [09:26:59]wPrintStart [09:26:59]Write to MH i2c: 01 00 00 B7 32 E9 [09:26:59]Write i2c OK [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: 01 [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: 01 07 00 [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: 01 07 00 B7 32 00 00 00 00 00 FF 0F FE [09:26:59]RasterBufferAndPrint [09:26:59]line *****ТОВАРНЫЙ ЧЕК***** [09:26:59]line АЗС-134 [09:26:59]line Партнер нефть [09:26:59]line 02508201610067 [09:26:59]line Кассир : Айдарали у Б. [09:26:59]line Счет N : (1)948987 [09:26:59]line 27.07.2024 09:25 [09:26:59]line ПРОДАЖА [09:26:59]line ТРК (МРК, ГНК): 41 [09:26:59]line Вид ГСМ : 2710124130 [09:26:59]line Аи-92-К-4 [09:26:59]line 20.000 x 67.80 [09:26:59]line ИТОГ: 1356.00 [09:26:59]line Тип оплаты: Талоны: Топливные Талоны [09:26:59]line 3588950 [09:26:59]line ______________________ [09:26:59]line (подпись) [09:26:59]written 0, free lines is 4095 [09:26:59]OFD Sender: No OFD packet to send [09:26:59]Write to MH i2c: 01 00 00 CB 32 FD [09:26:59]Write i2c OK [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: 01 [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: 01 07 00 [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: 01 07 00 CB 32 00 00 00 00 00 11 0E 23 [09:26:59]RasterBufferAndPrint [09:26:59]line [09:26:59]line [09:26:59]line [09:26:59]line [09:26:59]line [09:26:59]written 0, free lines is 3602 [09:26:59]MH_Cut [09:26:59]Write to MH i2c: D1 01 00 D2 32 01 D6 [09:26:59]Write i2c OK [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: D1 [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: D1 01 00 [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: D1 01 00 D2 32 00 D5 [09:26:59]Write to MH i2c: 01 00 00 D3 32 05 [09:26:59]Write i2c OK [09:26:59]MH_I2C_Read... [09:27:00]*** Cut start [09:27:00]*** Partial cut [09:27:00]*** CUTSNS_PIN = 1 [09:27:00]*** CUTSNS_PIN = 0 [09:27:00]*** Brake cut motor [09:27:00]Read from MH i2c: 01 [09:27:00]MH_I2C_Read... [09:27:00]Read from MH i2c: 01 07 00 [09:27:00]MH_I2C_Read... [09:27:00]*** Stop cut motor [09:27:00]*** Cut end [09:27:00]Read from MH i2c: 01 07 00 D3 32 00 00 00 00 00 FF 0F 1A [09:27:00]process_action print_text done [09:27:00]requested_data is exist [09:27:00]produce_requested_data [09:27:00]requested_item fm.sn is exist - process it [09:27:00]wFMCommunicate request_size=4 [09:27:00]MH_SAM_APDU [09:27:00]CAPDU: 80 11 00 00 [09:27:00]Write to MH i2c: E2 08 00 D4 32 80 11 00 00 00 00 00 00 80 [09:27:00]Write i2c OK [09:27:00]MH_I2C_Read... [09:27:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:00]Read from MH i2c: E2 [09:27:00]MH_I2C_Read... [09:27:00]Read from MH i2c: E2 17 00 [09:27:00]MH_I2C_Read... [09:27:00]Read from MH i2c: E2 17 00 D4 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DB [09:27:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:27:00]wFMCommunicate OK [09:27:00]requested_item fd.num is exist - process it [09:27:00]SAM_PROTO_GetFieldsCounters [09:27:00]wFMCommunicate request_size=4 [09:27:00]MH_SAM_APDU [09:27:00]CAPDU: 80 13 00 00 [09:27:00]Write to MH i2c: E2 08 00 D5 32 80 13 00 00 00 00 00 00 83 [09:27:00]Write i2c OK [09:27:00]MH_I2C_Read... [09:27:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:01]Read from MH i2c: E2 [09:27:01]MH_I2C_Read... [09:27:01]Read from MH i2c: E2 62 00 [09:27:01]MH_I2C_Read... [09:27:01]Read from MH i2c: E2 62 00 D5 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 63 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [09:27:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 63 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:27:01]wFMCommunicate OK [09:27:01]SAM_PROTO_GetFieldsCounters done [09:27:01]requested_item shift.num is exist - process it [09:27:01]requested_item shift.opened is exist - process it [09:27:01]req_shift_opened [09:27:01]FM_GetShiftState [09:27:01]SAM_PROTO_GetShiftState [09:27:01]wFMCommunicate request_size=4 [09:27:01]MH_SAM_APDU [09:27:01]CAPDU: 80 13 01 00 [09:27:01]Write to MH i2c: E2 08 00 D6 32 80 13 01 00 00 00 00 00 85 [09:27:01]Write i2c OK [09:27:01]MH_I2C_Read... [09:27:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:01]Read from MH i2c: E2 [09:27:01]MH_I2C_Read... [09:27:01]Read from MH i2c: E2 0E 00 [09:27:01]MH_I2C_Read... [09:27:01]Read from MH i2c: E2 0E 00 D6 32 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 12 [09:27:01]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:27:01]wFMCommunicate OK [09:27:01]SAM_PROTO_GetShiftState done [09:27:01]FM_GetShiftState done [09:27:01]req_shift_opened done [09:27:01]requested_item shift.open_date is exist - process it [09:27:01]req_shift_open_date [09:27:01]req_shift_open_date done [09:27:01]produce_requested_data done [09:27:01]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118115,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [09:27:01]process_action_free print_text [09:27:01]json_value_free [09:27:01]json_value_free done [09:27:01]process_json_proto returns [09:27:01]Send response to host [09:27:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118115,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [09:27:01]free response buf [09:27:01]execute_script done [09:27:01]execute_script returns [09:27:01]free content buf [09:27:01]Sock 9.Close socket [09:27:01]Sock 9.Thread stoped [09:27:04]OFD Sender: No OFD packet to send [09:27:09]OFD Sender: No OFD packet to send [09:27:14]OFD Sender: No OFD packet to send [09:27:19]OFD Sender: No OFD packet to send [09:27:24]OFD Sender: No OFD packet to send [09:27:29]OFD Sender: No OFD packet to send [09:27:34]OFD Sender: No OFD packet to send [09:27:39]OFD Sender: No OFD packet to send [09:27:44]OFD Sender: No OFD packet to send [09:27:49]OFD Sender: No OFD packet to send [09:27:54]OFD Sender: No OFD packet to send [09:27:59]OFD Sender: No OFD packet to send [09:28:04]OFD Sender: No OFD packet to send [09:28:09]OFD Sender: No OFD packet to send [09:28:14]OFD Sender: No OFD packet to send [09:28:19]OFD Sender: No OFD packet to send [09:28:24]OFD Sender: No OFD packet to send [09:28:29]OFD Sender: No OFD packet to send [09:28:34]OFD Sender: No OFD packet to send [09:28:39]OFD Sender: No OFD packet to send [09:28:44]OFD Sender: No OFD packet to send [09:28:49]OFD Sender: No OFD packet to send [09:28:54]OFD Sender: No OFD packet to send [09:28:59]OFD Sender: No OFD packet to send [09:29:04]OFD Sender: No OFD packet to send [09:29:09]OFD Sender: No OFD packet to send [09:29:14]OFD Sender: No OFD packet to send [09:29:19]OFD Sender: No OFD packet to send [09:29:24]OFD Sender: No OFD packet to send [09:29:29]OFD Sender: No OFD packet to send [09:29:34]OFD Sender: No OFD packet to send [09:29:39]OFD Sender: No OFD packet to send [09:29:44]OFD Sender: No OFD packet to send [09:29:49]OFD Sender: No OFD packet to send [09:29:54]OFD Sender: No OFD packet to send [09:29:59]OFD Sender: No OFD packet to send [09:30:04]OFD Sender: No OFD packet to send [09:30:09]OFD Sender: No OFD packet to send [09:30:14]OFD Sender: No OFD packet to send [09:30:19]OFD Sender: No OFD packet to send [09:30:24]OFD Sender: No OFD packet to send [09:30:29]OFD Sender: No OFD packet to send [09:30:34]OFD Sender: No OFD packet to send [09:30:39]OFD Sender: No OFD packet to send [09:30:44]OFD Sender: No OFD packet to send [09:30:49]OFD Sender: No OFD packet to send [09:30:54]OFD Sender: No OFD packet to send [09:30:59]OFD Sender: No OFD packet to send [09:31:04]OFD Sender: No OFD packet to send [09:31:09]OFD Sender: No OFD packet to send [09:31:14]OFD Sender: No OFD packet to send [09:31:19]OFD Sender: No OFD packet to send [09:31:24]OFD Sender: No OFD packet to send [09:31:29]OFD Sender: No OFD packet to send [09:31:34]OFD Sender: No OFD packet to send [09:31:39]OFD Sender: No OFD packet to send [09:31:44]OFD Sender: No OFD packet to send [09:31:49]OFD Sender: No OFD packet to send [09:31:54]OFD Sender: No OFD packet to send [09:31:59]OFD Sender: No OFD packet to send [09:32:04]OFD Sender: No OFD packet to send [09:32:09]OFD Sender: No OFD packet to send [09:32:14]OFD Sender: No OFD packet to send [09:32:19]OFD Sender: No OFD packet to send [09:32:20]accept exits with 7 [09:32:20]New connection [09:32:20]New thread 3067284836 created [09:32:20] Sock 7.Parse request [09:32:20]Thread 3067428196 joined [09:32:20]Sock 7.Check first char [09:32:20]Waiting for new connection... [09:32:20]Sock 7.First char is OK [09:32:20]request: POST /json_proto HTTP/1.0 [09:32:20]Method: POST [09:32:20]URL: /json_proto [09:32:20]Method is POST - this is cgi request [09:32:20]url: /json_proto [09:32:20]query_string will be loaded in cgi processing [09:32:20]execute_cgi json_proto POST (null) [09:32:20]execute_cgi path=json_proto method=POST [09:32:20]POST find Content-Length [09:32:20]Host: 172.17.45.7:8080 [09:32:20]Content-Length: 819 [09:32:20]Content-Type: application/json [09:32:20] [09:32:20]POST finish read [09:32:20]Found Content-Length = 819 [09:32:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:20]execute_script... [09: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)948988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:20]POST & json_proto [09:32:20]process_json_proto [09:32:20]json parsed OK: [09:32:20]protocol is kg_v1.0 [09:32:20]action value=close_receipt [09:32:20]process_action close_receipt [09:32:20]cmd_close_receipt [09:32:20]MH_GetDate [09:32:20]Write to MH i2c: F0 00 00 D7 32 F8 [09:32:20]Write i2c OK [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: F0 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: F0 09 00 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: F0 09 00 D7 32 00 A8 BE A4 66 90 0F 3E 66 B4 [09:32:20]GetLastDocTimeStamp 1722072315 [09:32:20]current date 1722072744 [09:32:20]FM_GetShiftState [09:32:20]SAM_PROTO_GetShiftState [09:32:20]wFMCommunicate request_size=4 [09:32:20]MH_SAM_APDU [09:32:20]CAPDU: 80 13 01 00 [09:32:20]Write to MH i2c: E2 08 00 D8 32 80 13 01 00 00 00 00 00 87 [09:32:20]Write i2c OK [09:32:20]MH_I2C_Read... [09:32:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:20]Read from MH i2c: E2 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: E2 0E 00 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: E2 0E 00 D8 32 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 14 [09:32:20]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:32:20]wFMCommunicate OK [09:32:20]SAM_PROTO_GetShiftState done [09:32:20]FM_GetShiftState done [09:32:20]opened in 1722038845 [09:32:20]opened+sec_in_day 1722125245 [09:32:20]quantity*price = 200025 [09:32:20]sum+1 = 200026 [09:32:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 59 27.07.2024 09:32 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118116 ФПД: 216223540326585 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T093224&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118116&fm=216223540326585&tin=02508201610067®Number=0000000000092660&sum=200000 [09:32:21]StoreToDocumentArchive [09:32:21]shift 432 fd 118116 [09:32:21]save to /storage/0432/doc_00118116 [09:32:21]save last doc name /storage/0432/doc_00118116 to /storage/kkm_last_doc_name [09:32:21]save OK [09:32:21]Clear old archive folders... [09:32:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:32:21]tlvbuf is 0078AB00 [09:32:21]SAM_PROTO_ClearQueue [09:32:21]wFMCommunicate request_size=4 [09:32:21]MH_SAM_APDU [09:32:21]CAPDU: 80 09 00 00 [09:32:21]Write to MH i2c: E2 08 00 E5 32 80 09 00 00 00 00 00 00 89 [09:32:21]Write i2c OK [09:32:21]MH_I2C_Read... [09:32:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:21]Read from MH i2c: E2 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: E2 03 00 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: E2 03 00 E5 32 00 90 00 8B [09:32:21]RAPDU: 90 00 [09:32:21]wFMCommunicate OK [09:32:21]SAM_PROTO_ClearQueue done [09:32:21]KKMCreateOFDPacket [09:32:21]OFDProtocolAddRootSTLVToBuf [09:32:21]FM_MakeSignedData [09:32:21]FM_MakeSignedData [09:32:21]SAM_PROTO_SignData [09:32:21]wFMCommunicate request_size=4 [09:32:21]MH_SAM_APDU [09:32:21]CAPDU: 80 0D 01 02 [09:32:21]Write to MH i2c: E2 08 00 E6 32 80 0D 01 02 00 00 00 00 91 [09:32:21]Write i2c OK [09:32:21]MH_I2C_Read... [09:32:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:21]Read from MH i2c: E2 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: E2 03 00 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: E2 03 00 E6 32 00 90 00 8C [09:32:21]RAPDU: 90 00 [09:32:21]wFMCommunicate OK [09:32:21]wFMCommunicate request_size=255 [09:32:21]MH_SAM_APDU [09:32:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A8 BE A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 64 CD 01 00 35 04 06 00 C4 A7 77 50 [09:32:21]Write to MH i2c: E2 02 01 E7 32 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A8 BE A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 64 CD 01 00 35 04 06 00 C4 A7 77 50 00 00 CF [09:32:21]Write i2c OK [09:32:21]MH_I2C_Read... [09:32:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:22]Read from MH i2c: E2 [09:32:22]MH_I2C_Read... [09:32:22]Read from MH i2c: E2 03 00 [09:32:22]MH_I2C_Read... [09:32:22]Read from MH i2c: E2 03 00 E7 32 00 90 00 8D [09:32:22]RAPDU: 90 00 [09:32:22]wFMCommunicate OK [09:32:22]wFMCommunicate request_size=7 [09:32:22]MH_SAM_APDU [09:32:22]CAPDU: 80 0D 02 02 02 30 B9 [09:32:22]Write to MH i2c: E2 0A 00 E8 32 80 0D 02 02 02 00 30 B9 00 00 81 [09:32:22]Write i2c OK [09:32:22]MH_I2C_Read... [09:32:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:22]Read from MH i2c: E2 [09:32:22]MH_I2C_Read... [09:32:22]Read from MH i2c: E2 03 00 [09:32:22]MH_I2C_Read... [09:32:22]Read from MH i2c: E2 03 00 E8 32 00 90 00 8E [09:32:22]RAPDU: 90 00 [09:32:22]wFMCommunicate OK [09:32:22]wFMCommunicate request_size=4 [09:32:22]MH_SAM_APDU [09:32:22]CAPDU: 80 0D 03 02 [09:32:22]Write to MH i2c: E2 08 00 E9 32 80 0D 03 02 00 00 00 00 96 [09:32:22]Write i2c OK [09:32:22]MH_I2C_Read... [09:32:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:22]Read from MH i2c: E2 [09:32:22]MH_I2C_Read... [09:32:22]Read from MH i2c: E2 0B 00 [09:32:22]MH_I2C_Read... [09:32:22]Read from MH i2c: E2 0B 00 E9 32 00 96 7E 6E 78 FE 53 27 88 90 00 91 [09:32:22]RAPDU: 96 7E 6E 78 FE 53 27 88 90 00 [09:32:22]wFMCommunicate OK [09:32:22]SAM_PROTO_SignData done [09:32:22]FM_MakeSignedData done [09:32:22]CreateOFDProtocolMessage [09:32:22]wFMCommunicate request_size=4 [09:32:22]MH_SAM_APDU [09:32:22]CAPDU: 80 11 00 00 [09:32:22]Write to MH i2c: E2 08 00 EA 32 80 11 00 00 00 00 00 00 96 [09:32:22]Write i2c OK [09:32:22]MH_I2C_Read... [09:32:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:22]Read from MH i2c: E2 [09:32:22]MH_I2C_Read... [09:32:22]Read from MH i2c: E2 17 00 [09:32:22]MH_I2C_Read... [09:32:22]Read from MH i2c: E2 17 00 EA 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F1 [09:32:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:32:22]wFMCommunicate OK [09:32:22]CreateOFDProtocolMessage done [09:32:22]OFDSenderStorePacket 118116 [09:32:22]StoreOFDPacket docnum=118116 [09:32:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 EB 38 04 01 4C A5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A8 BE A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 64 CD 01 00 35 04 06 00 C4 A7 77 50 30 B9 96 7E 6E 78 FE 53 27 88 [09:32:22]CheckFolder [09:32:22]dirname=/storage/ofd_packets [09:32:22]CheckFolder done [09:32:22]ProducePacketName [09:32:22]name=ofd_packets/00118116 [09:32:22]NVStorageSaveData ofd_packets/00118116 [09:32:22]File name is /storage/ofd_packets/00118116 [09:32:22]Write 298 bytes [09:32:22]NVStorageSaveData done [09:32:22]OFDSenderStorePacket done [09:32:22]KKMCreateOFDPacket done [09:32:22]NVStorageSaveData kkm_last_timestamp [09:32:22]File name is /storage/kkm_last_timestamp [09:32:22]Write 4 bytes [09:32:22]NVStorageSaveData done [09:32:22]ExternCall_PrintAddStr [09:32:22]wPrintStart [09:32:22]Write to MH i2c: 01 00 00 EB 32 1D [09:32:22]Write i2c OK [09:32:22]MH_I2C_Read... [09:32:22]Read from MH i2c: 01 [09:32:22]MH_I2C_Read... [09:32:22]Read from MH i2c: 01 07 00 [09:32:22]MH_I2C_Read... [09:32:22]Read from MH i2c: 01 07 00 EB 32 00 00 00 00 00 FF 0F 32 [09:32:22]RasterBufferAndPrint [09:32:22]line Счет N : (1)948988 [09:32:22]line ИНН: 02508201610067 [09:32:22]line Контрольно-Кассовый Чек [09:32:22]line ПРОДАЖА [09:32:22]line ТРК (МРК, ГНК) : 34 [09:32:22]line Товар: 2710194800 [09:32:22]line ДТ-К-5 [09:32:22]line 26.250 * 76.20 [09:32:22]line = 2000.25 [09:32:22]line НДС 12% НСП 1% [09:32:22]line > о реализуемом товаре [09:32:22]line ОКРУГЛЕНИЕ: -0.25 [09:32:22]line ИТОГО: 2000.00 [09:32:22]line НСП 1% : 17.70 [09:32:22]line НДС 12% : 212.42 [09:32:22]line Наличными: 0.00 [09:32:22]line Безнал.: 2000.00 [09:32:22]line Место: АЗС № 134 "Партнер Нефть" [09:32:22]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:32:22]line СНО: Общий режим [09:32:22]line Чек 59 27.07.2024 09:32 [09:32:22]line Смена: 432 ФФД: 1.0 [09:32:22]line ЗНМ: 0300000044 [09:32:22]line РНМ: 0000000000092660 [09:32:22]line Версия ККМ: 001 [09:32:22]line Платежная система: O! деньги [09:32:22]line ФМ: 0000000000874939 [09:32:22]line ФД: 118116 [09:32:22]line ФПД: 216223540326585 [09:32:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T093224&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118116&fm=216223540326585&tin=02508201610067®Number=0000000000092660&sum=200000 [09:32:22]OFD Sender: Processing packet 118116 [packets to send 85, broken 84] [09:32:22]ProducePacketName [09:32:22]name=ofd_packets/00118116 [09:32:22]OFD Sender: To server: pG, [09:32:22]CommunicateWithHost lk.salyk.kg:30040 [09:32:22]ConnectInit lk.salyk.kg [09:32:22]written 0, free lines is 4095 [09:32:22]Connected sock=10 [09: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 34 39 33 39 0C 01 00 00 EB 38 04 01 4C A5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A8 BE A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 64 CD 01 00 35 04 06 00 C4 A7 77 50 30 B9 96 7E 6E 78 FE 53 27 88 [09:32:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A0 0E 47 00 8A 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 64 CD 01 00 F4 03 04 00 3B 6C A4 66 B6 04 01 00 00 C2 82 56 03 F6 6D 19 01 [09:32:22]CommunicateWithHost err = 0 [09:32:22]CheckOFDResponse [09:32:22]1017 (14) - 77093643461234 [09:32:22]1041 (16) - 0000000000874939 [09:32:22]1040 (4) - 118116 [09:32:22]1012 (4) - 27.07.2024 03:40 [09:32:22]1206 (1) - 0 [09:32:22]OFD Sender: Remove packet 118116 [09:32:22]ProducePacketName [09:32:22]name=ofd_packets/00118116 [09:32:22]NVStorageDeleteData [09:32:22]Write to MH i2c: 01 00 00 15 33 48 [09:32:22]Write i2c OK [09:32:22]MH_I2C_Read... [09:32:22]Read from MH i2c: 01 [09:32:22]MH_I2C_Read... [09:32:22]Read from MH i2c: 01 07 00 [09:32:22]MH_I2C_Read... [09:32:22]Read from MH i2c: 01 07 00 15 33 00 00 00 00 00 FA 0C 55 [09:32:22]RasterBufferAndPrint [09:32:22]line [09:32:22]line [09:32:22]line [09:32:22]line [09:32:22]line [09:32:22]written 0, free lines is 3328 [09:32:22]MH_Cut [09:32:22]Write to MH i2c: D1 01 00 1C 33 01 21 [09:32:22]Write i2c OK [09:32:22]MH_I2C_Read... [09:32:22]Read from MH i2c: D1 [09:32:22]MH_I2C_Read... [09:32:22]Read from MH i2c: D1 01 00 [09:32:22]MH_I2C_Read... [09:32:22]Read from MH i2c: D1 01 00 1C 33 00 20 [09:32:22]Write to MH i2c: 01 00 00 1D 33 50 [09:32:22]Write i2c OK [09:32:22]MH_I2C_Read... [09:32:23]OFD Sender: No OFD packet to send [09:32:23]*** Cut start [09:32:23]*** Partial cut [09:32:23]*** CUTSNS_PIN = 1 [09:32:23]*** CUTSNS_PIN = 0 [09:32:23]*** Brake cut motor [09:32:24]Read from MH i2c: 01 [09:32:24]MH_I2C_Read... [09:32:24]*** Stop cut motor [09:32:24]*** Cut end [09:32:24]Read from MH i2c: 01 07 00 [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: 01 07 00 1D 33 00 00 00 00 00 FF 0F 65 [09:32:24]process_action close_receipt done [09:32:24]requested_data is exist [09:32:24]produce_requested_data [09:32:24]requested_item fm.sn is exist - process it [09:32:24]wFMCommunicate request_size=4 [09:32:24]MH_SAM_APDU [09:32:24]CAPDU: 80 11 00 00 [09:32:24]Write to MH i2c: E2 08 00 1E 33 80 11 00 00 00 00 00 00 CB [09:32:24]Write i2c OK [09:32:24]MH_I2C_Read... [09:32:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:24]Read from MH i2c: E2 [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: E2 17 00 [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: E2 17 00 1E 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 26 [09:32:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:32:24]wFMCommunicate OK [09:32:24]requested_item fd.num is exist - process it [09:32:24]SAM_PROTO_GetFieldsCounters [09:32:24]wFMCommunicate request_size=4 [09:32:24]MH_SAM_APDU [09:32:24]CAPDU: 80 13 00 00 [09:32:24]Write to MH i2c: E2 08 00 1F 33 80 13 00 00 00 00 00 00 CE [09:32:24]Write i2c OK [09:32:24]MH_I2C_Read... [09:32:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:24]Read from MH i2c: E2 [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: E2 62 00 [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: E2 62 00 1F 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 64 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [09: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 64 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:32:24]wFMCommunicate OK [09:32:24]SAM_PROTO_GetFieldsCounters done [09:32:24]requested_item shift.num is exist - process it [09:32:24]requested_item shift.opened is exist - process it [09:32:24]req_shift_opened [09:32:24]FM_GetShiftState [09:32:24]SAM_PROTO_GetShiftState [09:32:24]wFMCommunicate request_size=4 [09:32:24]MH_SAM_APDU [09:32:24]CAPDU: 80 13 01 00 [09:32:24]Write to MH i2c: E2 08 00 20 33 80 13 01 00 00 00 00 00 D0 [09:32:24]Write i2c OK [09:32:24]MH_I2C_Read... [09:32:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:24]Read from MH i2c: E2 [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: E2 0E 00 [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: E2 0E 00 20 33 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 5D [09:32:24]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:32:24]wFMCommunicate OK [09:32:24]SAM_PROTO_GetShiftState done [09:32:24]FM_GetShiftState done [09:32:24]req_shift_opened done [09:32:24]requested_item shift.open_date is exist - process it [09:32:24]req_shift_open_date [09:32:24]req_shift_open_date done [09:32:24]produce_requested_data done [09:32:24]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118116,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [09:32:24]process_action_free close_receipt [09:32:24]json_value_free [09:32:24]json_value_free done [09:32:24]process_json_proto returns [09:32:24]Send response to host [09:32:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118116,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [09:32:24]free response buf [09:32:24]execute_script done [09:32:24]execute_script returns [09:32:24]free content buf [09:32:24]Sock 7.Close socket [09:32:24]Sock 7.Thread stoped [09:32:28]OFD Sender: No OFD packet to send [09:32:33]OFD Sender: No OFD packet to send [09:32:38]OFD Sender: No OFD packet to send [09:32:43]OFD Sender: No OFD packet to send [09:32:48]OFD Sender: No OFD packet to send [09:32:53]OFD Sender: No OFD packet to send [09:32:58]OFD Sender: No OFD packet to send [09:33:03]OFD Sender: No OFD packet to send [09:33:08]OFD Sender: No OFD packet to send [09:33:13]OFD Sender: No OFD packet to send [09:33:18]OFD Sender: No OFD packet to send [09:33:23]OFD Sender: No OFD packet to send [09:33:28]OFD Sender: No OFD packet to send [09:33:33]OFD Sender: No OFD packet to send [09:33:38]OFD Sender: No OFD packet to send [09:33:43]OFD Sender: No OFD packet to send [09:33:48]OFD Sender: No OFD packet to send [09:33:53]OFD Sender: No OFD packet to send [09:33:58]OFD Sender: No OFD packet to send [09:33:58]accept exits with 9 [09:33:58]New connection [09:33:58]New thread 3067428196 created [09:33:58]Thread 3067284836 joined [09:33:58]Waiting for new connection... [09:33:58] Sock 9.Parse request [09:33:58]Sock 9.Check first char [09:33:58]Sock 9.First char is OK [09:33:58]request: POST /json_proto HTTP/1.0 [09:33:58]Method: POST [09:33:58]URL: /json_proto [09:33:58]Method is POST - this is cgi request [09:33:58]url: /json_proto [09:33:58]query_string will be loaded in cgi processing [09:33:58]execute_cgi json_proto POST (null) [09:33:58]execute_cgi path=json_proto method=POST [09:33:58]POST find Content-Length [09:33:58]Host: 172.17.45.7:8080 [09:33:58]Content-Length: 682 [09:33:58]Content-Type: application/json [09:33:58] [09:33:58]POST finish read [09:33:58]Found Content-Length = 682 [09:33:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:33:58]execute_script... [09:33: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)948989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:33:58]POST & json_proto [09:33:58]process_json_proto [09:33:58]json parsed OK: [09:33:58]protocol is kg_v1.0 [09:33:58]action value=close_receipt [09:33:58]process_action close_receipt [09:33:58]cmd_close_receipt [09:33:58]MH_GetDate [09:33:58]Write to MH i2c: F0 00 00 21 33 43 [09:33:58]Write i2c OK [09:33:58]MH_I2C_Read... [09:33:58]Read from MH i2c: F0 [09:33:58]MH_I2C_Read... [09:33:58]Read from MH i2c: F0 09 00 [09:33:58]MH_I2C_Read... [09:33:58]Read from MH i2c: F0 09 00 21 33 00 0A BF A4 66 90 0F 3E 66 62 [09:33:58]GetLastDocTimeStamp 1722072744 [09:33:58]current date 1722072842 [09:33:58]FM_GetShiftState [09:33:58]SAM_PROTO_GetShiftState [09:33:58]wFMCommunicate request_size=4 [09:33:58]MH_SAM_APDU [09:33:58]CAPDU: 80 13 01 00 [09:33:58]Write to MH i2c: E2 08 00 22 33 80 13 01 00 00 00 00 00 D2 [09:33:58]Write i2c OK [09:33:58]MH_I2C_Read... [09:33:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:58]Read from MH i2c: E2 [09:33:58]MH_I2C_Read... [09:33:58]Read from MH i2c: E2 0E 00 [09:33:58]MH_I2C_Read... [09:33:58]Read from MH i2c: E2 0E 00 22 33 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 5F [09:33:58]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:33:58]wFMCommunicate OK [09:33:58]SAM_PROTO_GetShiftState done [09:33:58]FM_GetShiftState done [09:33:58]opened in 1722038845 [09:33:58]opened+sec_in_day 1722125245 [09:33:58]quantity*price = 100005 [09:33:58]sum+1 = 100006 [09:33:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 60 27.07.2024 09:34 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118117 ФПД: 103883715685325 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T093402&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118117&fm=103883715685325&tin=02508201610067®Number=0000000000092660&sum=100000 [09:33:59]StoreToDocumentArchive [09:33:59]shift 432 fd 118117 [09:33:59]save to /storage/0432/doc_00118117 [09:33:59]save last doc name /storage/0432/doc_00118117 to /storage/kkm_last_doc_name [09:33:59]save OK [09:33:59]Clear old archive folders... [09:33:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:33:59]tlvbuf is 006C49A0 [09:33:59]SAM_PROTO_ClearQueue [09:33:59]wFMCommunicate request_size=4 [09:33:59]MH_SAM_APDU [09:33:59]CAPDU: 80 09 00 00 [09:33:59]Write to MH i2c: E2 08 00 2F 33 80 09 00 00 00 00 00 00 D4 [09:33:59]Write i2c OK [09:33:59]MH_I2C_Read... [09:33:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:59]Read from MH i2c: E2 [09:33:59]MH_I2C_Read... [09:33:59]Read from MH i2c: E2 03 00 [09:33:59]MH_I2C_Read... [09:33:59]Read from MH i2c: E2 03 00 2F 33 00 90 00 D6 [09:33:59]RAPDU: 90 00 [09:33:59]wFMCommunicate OK [09:33:59]SAM_PROTO_ClearQueue done [09:33:59]KKMCreateOFDPacket [09:33:59]OFDProtocolAddRootSTLVToBuf [09:33:59]FM_MakeSignedData [09:33:59]FM_MakeSignedData [09:33:59]SAM_PROTO_SignData [09:33:59]wFMCommunicate request_size=4 [09:33:59]MH_SAM_APDU [09:33:59]CAPDU: 80 0D 01 02 [09:33:59]Write to MH i2c: E2 08 00 30 33 80 0D 01 02 00 00 00 00 DC [09:33:59]Write i2c OK [09:33:59]MH_I2C_Read... [09:33:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:59]Read from MH i2c: E2 [09:33:59]MH_I2C_Read... [09:33:59]Read from MH i2c: E2 03 00 [09:33:59]MH_I2C_Read... [09:33:59]Read from MH i2c: E2 03 00 30 33 00 90 00 D7 [09:33:59]RAPDU: 90 00 [09:33:59]wFMCommunicate OK [09:33:59]wFMCommunicate request_size=255 [09:33:59]MH_SAM_APDU [09:33: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 0A BF A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 65 CD 01 00 35 04 06 00 5E [09:33:59]Write to MH i2c: E2 02 01 31 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 0A BF A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 65 CD 01 00 35 04 06 00 5E 00 00 40 [09:33:59]Write i2c OK [09:33:59]MH_I2C_Read... [09:34:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:00]Read from MH i2c: E2 [09:34:00]MH_I2C_Read... [09:34:00]Read from MH i2c: E2 03 00 [09:34:00]MH_I2C_Read... [09:34:00]Read from MH i2c: E2 03 00 31 33 00 90 00 D8 [09:34:00]RAPDU: 90 00 [09:34:00]wFMCommunicate OK [09:34:00]wFMCommunicate request_size=10 [09:34:00]MH_SAM_APDU [09:34:00]CAPDU: 80 0D 02 02 05 7B 4F F8 AB CD [09:34:00]Write to MH i2c: E2 0D 00 32 33 80 0D 02 02 05 00 7B 4F F8 AB CD 00 00 23 [09:34:00]Write i2c OK [09:34:00]MH_I2C_Read... [09:34:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:00]Read from MH i2c: E2 [09:34:00]MH_I2C_Read... [09:34:00]Read from MH i2c: E2 03 00 [09:34:00]MH_I2C_Read... [09:34:00]Read from MH i2c: E2 03 00 32 33 00 90 00 D9 [09:34:00]RAPDU: 90 00 [09:34:00]wFMCommunicate OK [09:34:00]wFMCommunicate request_size=4 [09:34:00]MH_SAM_APDU [09:34:00]CAPDU: 80 0D 03 02 [09:34:00]Write to MH i2c: E2 08 00 33 33 80 0D 03 02 00 00 00 00 E1 [09:34:00]Write i2c OK [09:34:00]MH_I2C_Read... [09:34:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:34:00]Read from MH i2c: E2 [09:34:00]MH_I2C_Read... [09:34:00]Read from MH i2c: E2 0B 00 [09:34:00]MH_I2C_Read... [09:34:00]Read from MH i2c: E2 0B 00 33 33 00 C8 C3 9E 6E BA 30 BE 1E 90 00 3F [09:34:00]RAPDU: C8 C3 9E 6E BA 30 BE 1E 90 00 [09:34:00]wFMCommunicate OK [09:34:00]SAM_PROTO_SignData done [09:34:00]FM_MakeSignedData done [09:34:00]CreateOFDProtocolMessage [09:34:00]wFMCommunicate request_size=4 [09:34:00]MH_SAM_APDU [09:34:00]CAPDU: 80 11 00 00 [09:34:00]Write to MH i2c: E2 08 00 34 33 80 11 00 00 00 00 00 00 E1 [09:34:00]Write i2c OK [09:34:00]MH_I2C_Read... [09:34:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:00]Read from MH i2c: E2 [09:34:00]MH_I2C_Read... [09:34:00]Read from MH i2c: E2 17 00 [09:34:00]MH_I2C_Read... [09:34:00]Read from MH i2c: E2 17 00 34 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3C [09:34:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:34:00]wFMCommunicate OK [09:34:00]CreateOFDProtocolMessage done [09:34:00]OFDSenderStorePacket 118117 [09:34:00]StoreOFDPacket docnum=118117 [09:34:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E3 06 07 01 D5 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 0A BF A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 65 CD 01 00 35 04 06 00 5E 7B 4F F8 AB CD C8 C3 9E 6E BA 30 BE 1E [09:34:00]CheckFolder [09:34:00]dirname=/storage/ofd_packets [09:34:00]CheckFolder done [09:34:00]ProducePacketName [09:34:00]name=ofd_packets/00118117 [09:34:00]NVStorageSaveData ofd_packets/00118117 [09:34:00]File name is /storage/ofd_packets/00118117 [09:34:00]Write 301 bytes [09:34:00]NVStorageSaveData done [09:34:00]OFDSenderStorePacket done [09:34:00]KKMCreateOFDPacket done [09:34:00]NVStorageSaveData kkm_last_timestamp [09:34:00]File name is /storage/kkm_last_timestamp [09:34:00]Write 4 bytes [09:34:00]NVStorageSaveData done [09:34:00]ExternCall_PrintAddStr [09:34:00]wPrintStart [09:34:00]Write to MH i2c: 01 00 00 35 33 68 [09:34:00]Write i2c OK [09:34:00]MH_I2C_Read... [09:34:00]Read from MH i2c: 01 [09:34:00]MH_I2C_Read... [09:34:00]Read from MH i2c: 01 07 00 [09:34:00]MH_I2C_Read... [09:34:00]Read from MH i2c: 01 07 00 35 33 00 00 00 00 00 FF 0F 7D [09:34:00]RasterBufferAndPrint [09:34:00]line Счет N : (1)948989 [09:34:00]line ИНН: 02508201610067 [09:34:00]line Контрольно-Кассовый Чек [09:34:00]line ПРОДАЖА [09:34:00]line ТРК (МРК, ГНК) : 41 [09:34:00]line Товар: 2710124130 [09:34:00]line Аи-92-К-4 [09:34:00]line 14.750 * 67.80 [09:34:00]line = 1000.05 [09:34:00]line НДС 12% НСП 1% [09:34:00]line > о реализуемом товаре [09:34:00]line ОКРУГЛЕНИЕ: -0.05 [09:34:00]line ИТОГО: 1000.00 [09:34:00]line Внесено: 1000.00 [09:34:00]line СДАЧА: 0.00 [09:34:00]line НСП 1% : 8.85 [09:34:00]line НДС 12% : 106.20 [09:34:00]line Наличными: 1000.00 [09:34:00]line Безнал.: 0.00 [09:34:00]line Место: АЗС № 134 "Партнер Нефть" [09:34:00]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:34:00]line СНО: Общий режим [09:34:00]line Чек 60 27.07.2024 09:34 [09:34:00]line Смена: 432 ФФД: 1.0 [09:34:00]line ЗНМ: 0300000044 [09:34:00]line РНМ: 0000000000092660 [09:34:00]line Версия ККМ: 001 [09:34:00]line ФМ: 0000000000874939 [09:34:00]line ФД: 118117 [09:34:00]line ФПД: 103883715685325 [09:34:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T093402&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118117&fm=103883715685325&tin=02508201610067®Number=0000000000092660&sum=100000 [09:34:00]OFD Sender: Processing packet 118117 [packets to send 85, broken 84] [09:34:00]ProducePacketName [09:34:00]name=ofd_packets/00118117 [09:34:00]OFD Sender: To server: pG, [09:34:00]CommunicateWithHost lk.salyk.kg:30040 [09:34:00]ConnectInit lk.salyk.kg [09:34:00]written 0, free lines is 4095 [09:34:00]Connected sock=10 [09: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 34 39 33 39 0F 01 00 00 E3 06 07 01 D5 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 0A BF A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 65 CD 01 00 35 04 06 00 5E 7B 4F F8 AB CD C8 C3 9E 6E BA 30 BE 1E [09:34:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 64 66 47 00 B4 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 65 CD 01 00 F4 03 04 00 9E 6C A4 66 B6 04 01 00 00 E2 B5 F5 08 7E 98 71 61 [09:34:01]CommunicateWithHost err = 0 [09:34:01]CheckOFDResponse [09:34:01]1017 (14) - 77093643461234 [09:34:01]1041 (16) - 0000000000874939 [09:34:01]1040 (4) - 118117 [09:34:01]1012 (4) - 27.07.2024 03:42 [09:34:01]1206 (1) - 0 [09:34:01]OFD Sender: Remove packet 118117 [09:34:01]ProducePacketName [09:34:01]name=ofd_packets/00118117 [09:34:01]NVStorageDeleteData [09:34:01]Write to MH i2c: 01 00 00 5F 33 92 [09:34:01]Write i2c OK [09:34:01]MH_I2C_Read... [09:34:01]Read from MH i2c: 01 [09:34:01]MH_I2C_Read... [09:34:01]Read from MH i2c: 01 07 00 [09:34:01]MH_I2C_Read... [09:34:01]Read from MH i2c: 01 07 00 5F 33 00 00 00 00 00 00 0D A6 [09:34:01]RasterBufferAndPrint [09:34:01]line [09:34:01]line [09:34:01]line [09:34:01]line [09:34:01]line [09:34:01]written 0, free lines is 3334 [09:34:01]MH_Cut [09:34:01]Write to MH i2c: D1 01 00 66 33 01 6B [09:34:01]Write i2c OK [09:34:01]MH_I2C_Read... [09:34:01]Read from MH i2c: D1 [09:34:01]MH_I2C_Read... [09:34:01]Read from MH i2c: D1 01 00 [09:34:01]MH_I2C_Read... [09:34:01]Read from MH i2c: D1 01 00 66 33 00 6A [09:34:01]Write to MH i2c: 01 00 00 67 33 9A [09:34:01]Write i2c OK [09:34:01]MH_I2C_Read... [09:34:01]OFD Sender: No OFD packet to send [09:34:01]*** Cut start [09:34:01]*** Partial cut [09:34:01]*** CUTSNS_PIN = 1 [09:34:01]*** CUTSNS_PIN = 0 [09:34:02]*** Brake cut motor [09:34:02]Read from MH i2c: 01 [09:34:02]MH_I2C_Read... [09:34:02]*** Stop cut motor [09:34:02]*** Cut end [09:34:02]Read from MH i2c: 01 07 00 [09:34:02]MH_I2C_Read... [09:34:02]Read from MH i2c: 01 07 00 67 33 00 00 00 00 00 FF 0F AF [09:34:02]process_action close_receipt done [09:34:02]requested_data is exist [09:34:02]produce_requested_data [09:34:02]requested_item fm.sn is exist - process it [09:34:02]wFMCommunicate request_size=4 [09:34:02]MH_SAM_APDU [09:34:02]CAPDU: 80 11 00 00 [09:34:02]Write to MH i2c: E2 08 00 68 33 80 11 00 00 00 00 00 00 15 [09:34:02]Write i2c OK [09:34:02]MH_I2C_Read... [09:34:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:02]Read from MH i2c: E2 [09:34:02]MH_I2C_Read... [09:34:02]Read from MH i2c: E2 17 00 [09:34:02]MH_I2C_Read... [09:34:02]Read from MH i2c: E2 17 00 68 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 70 [09:34:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:34:02]wFMCommunicate OK [09:34:02]requested_item fd.num is exist - process it [09:34:02]SAM_PROTO_GetFieldsCounters [09:34:02]wFMCommunicate request_size=4 [09:34:02]MH_SAM_APDU [09:34:02]CAPDU: 80 13 00 00 [09:34:02]Write to MH i2c: E2 08 00 69 33 80 13 00 00 00 00 00 00 18 [09:34:02]Write i2c OK [09:34:02]MH_I2C_Read... [09:34:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:34:02]Read from MH i2c: E2 [09:34:02]MH_I2C_Read... [09:34:02]Read from MH i2c: E2 62 00 [09:34:02]MH_I2C_Read... [09:34:02]Read from MH i2c: E2 62 00 69 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 65 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [09:34:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 65 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:34:02]wFMCommunicate OK [09:34:02]SAM_PROTO_GetFieldsCounters done [09:34:02]requested_item shift.num is exist - process it [09:34:02]requested_item shift.opened is exist - process it [09:34:02]req_shift_opened [09:34:02]FM_GetShiftState [09:34:02]SAM_PROTO_GetShiftState [09:34:02]wFMCommunicate request_size=4 [09:34:02]MH_SAM_APDU [09:34:02]CAPDU: 80 13 01 00 [09:34:02]Write to MH i2c: E2 08 00 6A 33 80 13 01 00 00 00 00 00 1A [09:34:02]Write i2c OK [09:34:02]MH_I2C_Read... [09:34:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:02]Read from MH i2c: E2 [09:34:02]MH_I2C_Read... [09:34:02]Read from MH i2c: E2 0E 00 [09:34:02]MH_I2C_Read... [09:34:02]Read from MH i2c: E2 0E 00 6A 33 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 A7 [09:34:02]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:34:02]wFMCommunicate OK [09:34:02]SAM_PROTO_GetShiftState done [09:34:02]FM_GetShiftState done [09:34:02]req_shift_opened done [09:34:02]requested_item shift.open_date is exist - process it [09:34:02]req_shift_open_date [09:34:02]req_shift_open_date done [09:34:02]produce_requested_data done [09:34:02]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118117,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [09:34:02]process_action_free close_receipt [09:34:02]json_value_free [09:34:02]json_value_free done [09:34:02]process_json_proto returns [09:34:02]Send response to host [09:34:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118117,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [09:34:02]free response buf [09:34:02]execute_script done [09:34:02]execute_script returns [09:34:02]free content buf [09:34:02]Sock 9.Close socket [09:34:02]Sock 9.Thread stoped [09:34:06]OFD Sender: No OFD packet to send [09:34:11]OFD Sender: No OFD packet to send [09:34:16]OFD Sender: No OFD packet to send [09:34:21]OFD Sender: No OFD packet to send [09:34:26]OFD Sender: No OFD packet to send [09:34:31]OFD Sender: No OFD packet to send [09:34:36]OFD Sender: No OFD packet to send [09:34:41]OFD Sender: No OFD packet to send [09:34:46]OFD Sender: No OFD packet to send [09:34:51]OFD Sender: No OFD packet to send [09:34:56]OFD Sender: No OFD packet to send [09:35:01]OFD Sender: No OFD packet to send [09:35:06]OFD Sender: No OFD packet to send [09:35:11]OFD Sender: No OFD packet to send [09:35:16]OFD Sender: No OFD packet to send [09:35:21]OFD Sender: No OFD packet to send [09:35:26]OFD Sender: No OFD packet to send [09:35:31]OFD Sender: No OFD packet to send [09:35:36]OFD Sender: No OFD packet to send [09:35:41]OFD Sender: No OFD packet to send [09:35:46]OFD Sender: No OFD packet to send [09:35:51]OFD Sender: No OFD packet to send [09:35:56]OFD Sender: No OFD packet to send [09:36:01]OFD Sender: No OFD packet to send [09:36:06]OFD Sender: No OFD packet to send [09:36:11]OFD Sender: No OFD packet to send [09:36:16]OFD Sender: No OFD packet to send [09:36:21]OFD Sender: No OFD packet to send [09:36:26]OFD Sender: No OFD packet to send [09:36:31]OFD Sender: No OFD packet to send [09:36:36]OFD Sender: No OFD packet to send [09:36:41]OFD Sender: No OFD packet to send [09:36:44]accept exits with 7 [09:36:44]New connection [09:36:44]New thread 3067284836 created [09:36:44]Thread 3067428196 joined [09:36:44]Waiting for new connection... [09:36:44] Sock 7.Parse request [09:36:44]Sock 7.Check first char [09:36:44]Sock 7.First char is OK [09:36:44]request: POST /json_proto HTTP/1.0 [09:36:44]Method: POST [09:36:44]URL: /json_proto [09:36:44]Method is POST - this is cgi request [09:36:44]url: /json_proto [09:36:44]query_string will be loaded in cgi processing [09:36:44]execute_cgi json_proto POST (null) [09:36:44]execute_cgi path=json_proto method=POST [09:36:44]POST find Content-Length [09:36:44]Host: 172.17.45.7:8080 [09:36:44]Content-Length: 679 [09:36:44]Content-Type: application/json [09:36:44] [09:36:44]POST finish read [09:36:44]Found Content-Length = 679 [09:36:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:44]execute_script... [09:36: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)948990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:44]POST & json_proto [09:36:44]process_json_proto [09:36:44]json parsed OK: [09:36:44]protocol is kg_v1.0 [09:36:44]action value=close_receipt [09:36:44]process_action close_receipt [09:36:44]cmd_close_receipt [09:36:44]MH_GetDate [09:36:44]Write to MH i2c: F0 00 00 6B 33 8D [09:36:44]Write i2c OK [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: F0 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: F0 09 00 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: F0 09 00 6B 33 00 B0 BF A4 66 90 0F 3E 66 52 [09:36:44]GetLastDocTimeStamp 1722072842 [09:36:44]current date 1722073008 [09:36:44]FM_GetShiftState [09:36:44]SAM_PROTO_GetShiftState [09:36:44]wFMCommunicate request_size=4 [09:36:44]MH_SAM_APDU [09:36:44]CAPDU: 80 13 01 00 [09:36:44]Write to MH i2c: E2 08 00 6C 33 80 13 01 00 00 00 00 00 1C [09:36:44]Write i2c OK [09:36:44]MH_I2C_Read... [09:36:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:44]Read from MH i2c: E2 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: E2 0E 00 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: E2 0E 00 6C 33 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 A9 [09:36:44]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:36:44]wFMCommunicate OK [09:36:44]SAM_PROTO_GetShiftState done [09:36:44]FM_GetShiftState done [09:36:44]opened in 1722038845 [09:36:44]opened+sec_in_day 1722125245 [09:36:44]quantity*price = 100050 [09:36:44]sum+1 = 100052 [09:36:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 61 27.07.2024 09:36 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118118 ФПД: 34896998698332 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T093648&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118118&fm=34896998698332&tin=02508201610067®Number=0000000000092660&sum=100000 [09:36:45]StoreToDocumentArchive [09:36:45]shift 432 fd 118118 [09:36:45]save to /storage/0432/doc_00118118 [09:36:45]save last doc name /storage/0432/doc_00118118 to /storage/kkm_last_doc_name [09:36:45]save OK [09:36:45]Clear old archive folders... [09:36:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:36:45]tlvbuf is 006E2FF0 [09:36:45]SAM_PROTO_ClearQueue [09:36:45]wFMCommunicate request_size=4 [09:36:45]MH_SAM_APDU [09:36:45]CAPDU: 80 09 00 00 [09:36:45]Write to MH i2c: E2 08 00 79 33 80 09 00 00 00 00 00 00 1E [09:36:45]Write i2c OK [09:36:45]MH_I2C_Read... [09:36:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:45]Read from MH i2c: E2 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: E2 03 00 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: E2 03 00 79 33 00 90 00 20 [09:36:45]RAPDU: 90 00 [09:36:45]wFMCommunicate OK [09:36:45]SAM_PROTO_ClearQueue done [09:36:45]KKMCreateOFDPacket [09:36:45]OFDProtocolAddRootSTLVToBuf [09:36:45]FM_MakeSignedData [09:36:45]FM_MakeSignedData [09:36:45]SAM_PROTO_SignData [09:36:45]wFMCommunicate request_size=4 [09:36:45]MH_SAM_APDU [09:36:45]CAPDU: 80 0D 01 02 [09:36:45]Write to MH i2c: E2 08 00 7A 33 80 0D 01 02 00 00 00 00 26 [09:36:45]Write i2c OK [09:36:45]MH_I2C_Read... [09:36:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:45]Read from MH i2c: E2 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: E2 03 00 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: E2 03 00 7A 33 00 90 00 21 [09:36:45]RAPDU: 90 00 [09:36:45]wFMCommunicate OK [09:36:45]wFMCommunicate request_size=255 [09:36:45]MH_SAM_APDU [09:36: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 B0 BF A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 66 CD 01 00 35 04 06 00 1F BD 17 36 [09:36:45]Write to MH i2c: E2 02 01 7B 33 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 B0 BF A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 66 CD 01 00 35 04 06 00 1F BD 17 36 00 00 7A [09:36:45]Write i2c OK [09:36:45]MH_I2C_Read... [09:36:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:45]Read from MH i2c: E2 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: E2 03 00 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: E2 03 00 7B 33 00 90 00 22 [09:36:45]RAPDU: 90 00 [09:36:45]wFMCommunicate OK [09:36:45]wFMCommunicate request_size=7 [09:36:45]MH_SAM_APDU [09:36:45]CAPDU: 80 0D 02 02 02 0D 5C [09:36:45]Write to MH i2c: E2 0A 00 7C 33 80 0D 02 02 02 00 0D 5C 00 00 96 [09:36:45]Write i2c OK [09:36:45]MH_I2C_Read... [09:36:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:45]Read from MH i2c: E2 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: E2 03 00 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: E2 03 00 7C 33 00 90 00 23 [09:36:45]RAPDU: 90 00 [09:36:45]wFMCommunicate OK [09:36:45]wFMCommunicate request_size=4 [09:36:45]MH_SAM_APDU [09:36:45]CAPDU: 80 0D 03 02 [09:36:45]Write to MH i2c: E2 08 00 7D 33 80 0D 03 02 00 00 00 00 2B [09:36:45]Write i2c OK [09:36:45]MH_I2C_Read... [09:36:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:45]Read from MH i2c: E2 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: E2 0B 00 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: E2 0B 00 7D 33 00 86 2C 2C 70 3B 4C 6D 1A 90 00 88 [09:36:45]RAPDU: 86 2C 2C 70 3B 4C 6D 1A 90 00 [09:36:45]wFMCommunicate OK [09:36:45]SAM_PROTO_SignData done [09:36:45]FM_MakeSignedData done [09:36:45]CreateOFDProtocolMessage [09:36:45]wFMCommunicate request_size=4 [09:36:45]MH_SAM_APDU [09:36:45]CAPDU: 80 11 00 00 [09:36:45]Write to MH i2c: E2 08 00 7E 33 80 11 00 00 00 00 00 00 2B [09:36:45]Write i2c OK [09:36:45]MH_I2C_Read... [09:36:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:45]Read from MH i2c: E2 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: E2 17 00 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: E2 17 00 7E 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 86 [09:36:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:36:45]wFMCommunicate OK [09:36:45]CreateOFDProtocolMessage done [09:36:45]OFDSenderStorePacket 118118 [09:36:45]StoreOFDPacket docnum=118118 [09:36:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 06 5D 04 01 80 DA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 B0 BF A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 66 CD 01 00 35 04 06 00 1F BD 17 36 0D 5C 86 2C 2C 70 3B 4C 6D 1A [09:36:45]CheckFolder [09:36:45]dirname=/storage/ofd_packets [09:36:45]CheckFolder done [09:36:45]ProducePacketName [09:36:45]name=ofd_packets/00118118 [09:36:45]NVStorageSaveData ofd_packets/00118118 [09:36:45]File name is /storage/ofd_packets/00118118 [09:36:45]Write 298 bytes [09:36:45]NVStorageSaveData done [09:36:45]OFDSenderStorePacket done [09:36:45]KKMCreateOFDPacket done [09:36:45]NVStorageSaveData kkm_last_timestamp [09:36:45]File name is /storage/kkm_last_timestamp [09:36:45]Write 4 bytes [09:36:45]NVStorageSaveData done [09:36:45]ExternCall_PrintAddStr [09:36:45]wPrintStart [09:36:45]Write to MH i2c: 01 00 00 7F 33 B2 [09:36:45]Write i2c OK [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: 01 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: 01 07 00 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: 01 07 00 7F 33 00 00 00 00 00 FF 0F C7 [09:36:45]RasterBufferAndPrint [09:36:45]line Счет N : (1)948990 [09:36:45]line ИНН: 02508201610067 [09:36:45]line Контрольно-Кассовый Чек [09:36:45]line ПРОДАЖА [09:36:45]line ТРК (МРК, ГНК) : 64 [09:36:45]line Товар: 2710194800 [09:36:45]line ДТ-К-5 [09:36:45]line 13.130 * 76.20 [09:36:45]line = 1000.51 [09:36:45]line НДС 12% НСП 1% [09:36:45]line > о реализуемом товаре [09:36:45]line ОКРУГЛЕНИЕ: -0.51 [09:36:45]line ИТОГО: 1000.00 [09:36:45]line Внесено: 1000.00 [09:36:45]line СДАЧА: 0.00 [09:36:45]line НСП 1% : 8.85 [09:36:45]line НДС 12% : 106.25 [09:36:45]line Наличными: 1000.00 [09:36:45]line Безнал.: 0.00 [09:36:45]line Место: АЗС № 134 "Партнер Нефть" [09:36:45]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:36:45]line СНО: Общий режим [09:36:45]line Чек 61 27.07.2024 09:36 [09:36:45]line Смена: 432 ФФД: 1.0 [09:36:45]line ЗНМ: 0300000044 [09:36:45]line РНМ: 0000000000092660 [09:36:45]line Версия ККМ: 001 [09:36:45]line ФМ: 0000000000874939 [09:36:45]line ФД: 118118 [09:36:45]line ФПД: 34896998698332 [09:36:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T093648&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118118&fm=34896998698332&tin=02508201610067®Number=0000000000092660&sum=100000 [09:36:45]written 0, free lines is 4095 [09:36:45]OFD Sender: Processing packet 118118 [packets to send 85, broken 84] [09:36:45]ProducePacketName [09:36:45]name=ofd_packets/00118118 [09:36:45]OFD Sender: To server: pG, [09:36:45]CommunicateWithHost lk.salyk.kg:30040 [09:36:45]ConnectInit lk.salyk.kg [09:36:46]Connected sock=10 [09:36:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 06 5D 04 01 80 DA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 B0 BF A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 66 CD 01 00 35 04 06 00 1F BD 17 36 0D 5C 86 2C 2C 70 3B 4C 6D 1A [09:36:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D0 93 47 00 8C AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 66 CD 01 00 F4 03 04 00 43 6D A4 66 B6 04 01 00 00 EB 79 AA 89 5C 88 E3 3E [09:36:46]CommunicateWithHost err = 0 [09:36:46]CheckOFDResponse [09:36:46]1017 (14) - 77093643461234 [09:36:46]1041 (16) - 0000000000874939 [09:36:46]1040 (4) - 118118 [09:36:46]1012 (4) - 27.07.2024 03:45 [09:36:46]1206 (1) - 0 [09:36:46]OFD Sender: Remove packet 118118 [09:36:46]ProducePacketName [09:36:46]name=ofd_packets/00118118 [09:36:46]NVStorageDeleteData [09:36:46]Write to MH i2c: 01 00 00 A9 33 DC [09:36:46]Write i2c OK [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: 01 [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: 01 07 00 [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: 01 07 00 A9 33 00 00 00 00 00 EF 0C DE [09:36:46]RasterBufferAndPrint [09:36:46]line [09:36:46]line [09:36:46]line [09:36:46]line [09:36:46]line [09:36:46]written 0, free lines is 3319 [09:36:46]MH_Cut [09:36:46]Write to MH i2c: D1 01 00 B0 33 01 B5 [09:36:46]Write i2c OK [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: D1 [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: D1 01 00 [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: D1 01 00 B0 33 00 B4 [09:36:46]Write to MH i2c: 01 00 00 B1 33 E4 [09:36:46]Write i2c OK [09:36:46]MH_I2C_Read... [09:36:46]OFD Sender: No OFD packet to send [09:36:47]*** Cut start [09:36:47]*** Partial cut [09:36:47]*** CUTSNS_PIN = 1 [09:36:47]*** CUTSNS_PIN = 0 [09:36:47]*** Brake cut motor [09:36:47]Read from MH i2c: 01 [09:36:47]MH_I2C_Read... [09:36:47]*** Stop cut motor [09:36:47]*** Cut end [09:36:47]Read from MH i2c: 01 07 00 [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: 01 07 00 B1 33 00 00 00 00 00 FF 0F F9 [09:36:47]process_action close_receipt done [09:36:47]requested_data is exist [09:36:47]produce_requested_data [09:36:47]requested_item fm.sn is exist - process it [09:36:47]wFMCommunicate request_size=4 [09:36:47]MH_SAM_APDU [09:36:47]CAPDU: 80 11 00 00 [09:36:47]Write to MH i2c: E2 08 00 B2 33 80 11 00 00 00 00 00 00 5F [09:36:47]Write i2c OK [09:36:47]MH_I2C_Read... [09:36:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:47]Read from MH i2c: E2 [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: E2 17 00 [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: E2 17 00 B2 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BA [09:36:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:36:47]wFMCommunicate OK [09:36:47]requested_item fd.num is exist - process it [09:36:47]SAM_PROTO_GetFieldsCounters [09:36:47]wFMCommunicate request_size=4 [09:36:47]MH_SAM_APDU [09:36:47]CAPDU: 80 13 00 00 [09:36:47]Write to MH i2c: E2 08 00 B3 33 80 13 00 00 00 00 00 00 62 [09:36:47]Write i2c OK [09:36:47]MH_I2C_Read... [09:36:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:47]Read from MH i2c: E2 [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: E2 62 00 [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: E2 62 00 B3 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 66 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [09:36:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 66 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:36:47]wFMCommunicate OK [09:36:47]SAM_PROTO_GetFieldsCounters done [09:36:47]requested_item shift.num is exist - process it [09:36:47]requested_item shift.opened is exist - process it [09:36:47]req_shift_opened [09:36:47]FM_GetShiftState [09:36:47]SAM_PROTO_GetShiftState [09:36:47]wFMCommunicate request_size=4 [09:36:47]MH_SAM_APDU [09:36:47]CAPDU: 80 13 01 00 [09:36:47]Write to MH i2c: E2 08 00 B4 33 80 13 01 00 00 00 00 00 64 [09:36:47]Write i2c OK [09:36:47]MH_I2C_Read... [09:36:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:47]Read from MH i2c: E2 [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: E2 0E 00 [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: E2 0E 00 B4 33 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 F1 [09:36:47]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:36:47]wFMCommunicate OK [09:36:47]SAM_PROTO_GetShiftState done [09:36:47]FM_GetShiftState done [09:36:47]req_shift_opened done [09:36:47]requested_item shift.open_date is exist - process it [09:36:47]req_shift_open_date [09:36:47]req_shift_open_date done [09:36:47]produce_requested_data done [09:36:47]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118118,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [09:36:47]process_action_free close_receipt [09:36:47]json_value_free [09:36:47]json_value_free done [09:36:47]process_json_proto returns [09:36:47]Send response to host [09:36:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118118,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [09:36:47]free response buf [09:36:47]execute_script done [09:36:47]execute_script returns [09:36:47]free content buf [09:36:47]Sock 7.Close socket [09:36:47]Sock 7.Thread stoped [09:36:51]OFD Sender: No OFD packet to send [09:36:56]OFD Sender: No OFD packet to send [09:37:01]OFD Sender: No OFD packet to send [09:37:06]OFD Sender: No OFD packet to send [09:37:11]OFD Sender: No OFD packet to send [09:37:16]OFD Sender: No OFD packet to send [09:37:21]OFD Sender: No OFD packet to send [09:37:26]OFD Sender: No OFD packet to send [09:37:31]OFD Sender: No OFD packet to send [09:37:36]OFD Sender: No OFD packet to send [09:37:41]OFD Sender: No OFD packet to send [09:37:46]OFD Sender: No OFD packet to send [09:37:51]OFD Sender: No OFD packet to send [09:37:56]OFD Sender: No OFD packet to send [09:38:01]OFD Sender: No OFD packet to send [09:38:06]OFD Sender: No OFD packet to send [09:38:11]OFD Sender: No OFD packet to send [09:38:16]OFD Sender: No OFD packet to send [09:38:21]OFD Sender: No OFD packet to send [09:38:26]OFD Sender: No OFD packet to send [09:38:31]OFD Sender: No OFD packet to send [09:38:36]OFD Sender: No OFD packet to send [09:38:41]OFD Sender: No OFD packet to send [09:38:46]OFD Sender: No OFD packet to send [09:38:51]OFD Sender: No OFD packet to send [09:38:56]OFD Sender: No OFD packet to send [09:39:01]OFD Sender: No OFD packet to send [09:39:06]OFD Sender: No OFD packet to send [09:39:11]OFD Sender: No OFD packet to send [09:39:16]OFD Sender: No OFD packet to send [09:39:21]OFD Sender: No OFD packet to send [09:39:26]OFD Sender: No OFD packet to send [09:39:31]OFD Sender: No OFD packet to send [09:39:36]OFD Sender: No OFD packet to send [09:39:41]OFD Sender: No OFD packet to send [09:39:46]OFD Sender: No OFD packet to send [09:39:51]OFD Sender: No OFD packet to send [09:39:56]OFD Sender: No OFD packet to send [09:40:01]OFD Sender: No OFD packet to send [09:40:06]OFD Sender: No OFD packet to send [09:40:11]OFD Sender: No OFD packet to send [09:40:16]OFD Sender: No OFD packet to send [09:40:21]OFD Sender: No OFD packet to send [09:40:26]OFD Sender: No OFD packet to send [09:40:31]OFD Sender: No OFD packet to send [09:40:37]OFD Sender: No OFD packet to send [09:40:39]accept exits with 9 [09:40:39]New connection [09:40:39]New thread 3067428196 created [09:40:39]Thread 3067284836 joined [09:40:39]Waiting for new connection... [09:40:39] Sock 9.Parse request [09:40:39]Sock 9.Check first char [09:40:39]Sock 9.First char is OK [09:40:39]request: POST /json_proto HTTP/1.0 [09:40:39]Method: POST [09:40:39]URL: /json_proto [09:40:39]Method is POST - this is cgi request [09:40:39]url: /json_proto [09:40:39]query_string will be loaded in cgi processing [09:40:39]execute_cgi json_proto POST (null) [09:40:39]execute_cgi path=json_proto method=POST [09:40:39]POST find Content-Length [09:40:39]Host: 172.17.45.7:8080 [09:40:39]Content-Length: 682 [09:40:39]Content-Type: application/json [09:40:39] [09:40:39]POST finish read [09:40:39]Found Content-Length = 682 [09:40:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 23.600, "sum" : 1600.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:39]execute_script... [09:40: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)948991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 23.600, "sum" : 1600.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:39]POST & json_proto [09:40:39]process_json_proto [09:40:39]json parsed OK: [09:40:39]protocol is kg_v1.0 [09:40:39]action value=close_receipt [09:40:39]process_action close_receipt [09:40:39]cmd_close_receipt [09:40:39]MH_GetDate [09:40:39]Write to MH i2c: F0 00 00 B5 33 D7 [09:40:39]Write i2c OK [09:40:39]MH_I2C_Read... [09:40:39]Read from MH i2c: F0 [09:40:39]MH_I2C_Read... [09:40:39]Read from MH i2c: F0 09 00 [09:40:39]MH_I2C_Read... [09:40:39]Read from MH i2c: F0 09 00 B5 33 00 9B C0 A4 66 90 0F 3E 66 88 [09:40:39]GetLastDocTimeStamp 1722073008 [09:40:39]current date 1722073243 [09:40:39]FM_GetShiftState [09:40:39]SAM_PROTO_GetShiftState [09:40:39]wFMCommunicate request_size=4 [09:40:39]MH_SAM_APDU [09:40:39]CAPDU: 80 13 01 00 [09:40:39]Write to MH i2c: E2 08 00 B6 33 80 13 01 00 00 00 00 00 66 [09:40:39]Write i2c OK [09:40:39]MH_I2C_Read... [09:40:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:39]Read from MH i2c: E2 [09:40:39]MH_I2C_Read... [09:40:39]Read from MH i2c: E2 0E 00 [09:40:39]MH_I2C_Read... [09:40:39]Read from MH i2c: E2 0E 00 B6 33 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 F3 [09:40:39]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:40:39]wFMCommunicate OK [09:40:39]SAM_PROTO_GetShiftState done [09:40:39]FM_GetShiftState done [09:40:39]opened in 1722038845 [09:40:39]opened+sec_in_day 1722125245 [09:40:39]quantity*price = 160008 [09:40:39]sum+1 = 160009 [09:40:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.92 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 62 27.07.2024 09:40 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118119 ФПД: 15440158975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T094043&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118119&fm=15440158975&tin=02508201610067®Number=0000000000092660&sum=160000 [09:40:40]StoreToDocumentArchive [09:40:40]shift 432 fd 118119 [09:40:40]save to /storage/0432/doc_00118119 [09:40:40]save last doc name /storage/0432/doc_00118119 to /storage/kkm_last_doc_name [09:40:40]save OK [09:40:40]Clear old archive folders... [09:40:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:40:40]tlvbuf is 00735BB0 [09:40:40]SAM_PROTO_ClearQueue [09:40:40]wFMCommunicate request_size=4 [09:40:40]MH_SAM_APDU [09:40:40]CAPDU: 80 09 00 00 [09:40:40]Write to MH i2c: E2 08 00 C3 33 80 09 00 00 00 00 00 00 68 [09:40:40]Write i2c OK [09:40:40]MH_I2C_Read... [09:40:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:40]Read from MH i2c: E2 [09:40:40]MH_I2C_Read... [09:40:40]Read from MH i2c: E2 03 00 [09:40:40]MH_I2C_Read... [09:40:40]Read from MH i2c: E2 03 00 C3 33 00 90 00 6A [09:40:40]RAPDU: 90 00 [09:40:40]wFMCommunicate OK [09:40:40]SAM_PROTO_ClearQueue done [09:40:40]KKMCreateOFDPacket [09:40:40]OFDProtocolAddRootSTLVToBuf [09:40:40]FM_MakeSignedData [09:40:40]FM_MakeSignedData [09:40:40]SAM_PROTO_SignData [09:40:40]wFMCommunicate request_size=4 [09:40:40]MH_SAM_APDU [09:40:40]CAPDU: 80 0D 01 02 [09:40:40]Write to MH i2c: E2 08 00 C4 33 80 0D 01 02 00 00 00 00 70 [09:40:40]Write i2c OK [09:40:40]MH_I2C_Read... [09:40:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:40]Read from MH i2c: E2 [09:40:40]MH_I2C_Read... [09:40:40]Read from MH i2c: E2 03 00 [09:40:40]MH_I2C_Read... [09:40:40]Read from MH i2c: E2 03 00 C4 33 00 90 00 6B [09:40:40]RAPDU: 90 00 [09:40:40]wFMCommunicate OK [09:40:40]wFMCommunicate request_size=255 [09:40:40]MH_SAM_APDU [09:40: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 34 FF 03 08 00 03 30 5C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 9B C0 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 67 CD 01 00 35 04 06 00 00 [09:40:40]Write to MH i2c: E2 02 01 C5 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 5C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 9B C0 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 67 CD 01 00 35 04 06 00 00 00 00 BA [09:40:40]Write i2c OK [09:40:40]MH_I2C_Read... [09:40:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:40]Read from MH i2c: E2 [09:40:40]MH_I2C_Read... [09:40:40]Read from MH i2c: E2 03 00 [09:40:40]MH_I2C_Read... [09:40:40]Read from MH i2c: E2 03 00 C5 33 00 90 00 6C [09:40:40]RAPDU: 90 00 [09:40:40]wFMCommunicate OK [09:40:40]wFMCommunicate request_size=10 [09:40:40]MH_SAM_APDU [09:40:40]CAPDU: 80 0D 02 02 05 03 98 4E 20 FF [09:40:40]Write to MH i2c: E2 0D 00 C6 33 80 0D 02 02 05 00 03 98 4E 20 FF 00 00 85 [09:40:40]Write i2c OK [09:40:40]MH_I2C_Read... [09:40:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:40]Read from MH i2c: E2 [09:40:40]MH_I2C_Read... [09:40:40]Read from MH i2c: E2 03 00 [09:40:40]MH_I2C_Read... [09:40:40]Read from MH i2c: E2 03 00 C6 33 00 90 00 6D [09:40:40]RAPDU: 90 00 [09:40:40]wFMCommunicate OK [09:40:40]wFMCommunicate request_size=4 [09:40:40]MH_SAM_APDU [09:40:40]CAPDU: 80 0D 03 02 [09:40:40]Write to MH i2c: E2 08 00 C7 33 80 0D 03 02 00 00 00 00 75 [09:40:40]Write i2c OK [09:40:40]MH_I2C_Read... [09:40:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:40]Read from MH i2c: E2 [09:40:40]MH_I2C_Read... [09:40:40]Read from MH i2c: E2 0B 00 [09:40:40]MH_I2C_Read... [09:40:40]Read from MH i2c: E2 0B 00 C7 33 00 56 B1 A6 28 DE D7 8C 1E 90 00 AA [09:40:40]RAPDU: 56 B1 A6 28 DE D7 8C 1E 90 00 [09:40:40]wFMCommunicate OK [09:40:40]SAM_PROTO_SignData done [09:40:40]FM_MakeSignedData done [09:40:40]CreateOFDProtocolMessage [09:40:40]wFMCommunicate request_size=4 [09:40:40]MH_SAM_APDU [09:40:40]CAPDU: 80 11 00 00 [09:40:40]Write to MH i2c: E2 08 00 C8 33 80 11 00 00 00 00 00 00 75 [09:40:40]Write i2c OK [09:40:40]MH_I2C_Read... [09:40:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:41]Read from MH i2c: E2 [09:40:41]MH_I2C_Read... [09:40:41]Read from MH i2c: E2 17 00 [09:40:41]MH_I2C_Read... [09:40:41]Read from MH i2c: E2 17 00 C8 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D0 [09:40:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:40:41]wFMCommunicate OK [09:40:41]CreateOFDProtocolMessage done [09:40:41]OFDSenderStorePacket 118119 [09:40:41]StoreOFDPacket docnum=118119 [09:40:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 43 06 07 01 AE 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 34 FF 03 08 00 03 30 5C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 9B C0 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 67 CD 01 00 35 04 06 00 00 03 98 4E 20 FF 56 B1 A6 28 DE D7 8C 1E [09:40:41]CheckFolder [09:40:41]dirname=/storage/ofd_packets [09:40:41]CheckFolder done [09:40:41]ProducePacketName [09:40:41]name=ofd_packets/00118119 [09:40:41]NVStorageSaveData ofd_packets/00118119 [09:40:41]File name is /storage/ofd_packets/00118119 [09:40:41]Write 301 bytes [09:40:41]NVStorageSaveData done [09:40:41]OFDSenderStorePacket done [09:40:41]KKMCreateOFDPacket done [09:40:41]NVStorageSaveData kkm_last_timestamp [09:40:41]File name is /storage/kkm_last_timestamp [09:40:41]Write 4 bytes [09:40:41]NVStorageSaveData done [09:40:41]ExternCall_PrintAddStr [09:40:41]wPrintStart [09:40:41]Write to MH i2c: 01 00 00 C9 33 FC [09:40:41]Write i2c OK [09:40:41]MH_I2C_Read... [09:40:41]Read from MH i2c: 01 [09:40:41]MH_I2C_Read... [09:40:41]Read from MH i2c: 01 07 00 [09:40:41]MH_I2C_Read... [09:40:41]Read from MH i2c: 01 07 00 C9 33 00 00 00 00 00 FF 0F 11 [09:40:41]RasterBufferAndPrint [09:40:41]line Счет N : (1)948991 [09:40:41]line ИНН: 02508201610067 [09:40:41]line Контрольно-Кассовый Чек [09:40:41]line ПРОДАЖА [09:40:41]line ТРК (МРК, ГНК) : 41 [09:40:41]line Товар: 2710124130 [09:40:41]line Аи-92-К-4 [09:40:41]line 23.600 * 67.80 [09:40:41]line = 1600.08 [09:40:41]line НДС 12% НСП 1% [09:40:41]line > о реализуемом товаре [09:40:41]line ОКРУГЛЕНИЕ: -0.08 [09:40:41]line ИТОГО: 1600.00 [09:40:41]line Внесено: 1600.00 [09:40:41]line СДАЧА: 0.00 [09:40:41]line НСП 1% : 14.16 [09:40:41]line НДС 12% : 169.92 [09:40:41]line Наличными: 1600.00 [09:40:41]line Безнал.: 0.00 [09:40:41]line Место: АЗС № 134 "Партнер Нефть" [09:40:41]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:40:41]line СНО: Общий режим [09:40:41]line Чек 62 27.07.2024 09:40 [09:40:41]line Смена: 432 ФФД: 1.0 [09:40:41]line ЗНМ: 0300000044 [09:40:41]line РНМ: 0000000000092660 [09:40:41]line Версия ККМ: 001 [09:40:41]line ФМ: 0000000000874939 [09:40:41]line ФД: 118119 [09:40:41]line ФПД: 15440158975 [09:40:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T094043&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118119&fm=15440158975&tin=02508201610067®Number=0000000000092660&sum=160000 [09:40:41]OFD Sender: Processing packet 118119 [packets to send 85, broken 84] [09:40:41]ProducePacketName [09:40:41]name=ofd_packets/00118119 [09:40:41]OFD Sender: To server: pG, [09:40:41]CommunicateWithHost lk.salyk.kg:30040 [09:40:41]ConnectInit lk.salyk.kg [09:40:41]written 0, free lines is 4095 [09:40:41]Connected sock=10 [09:40:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 43 06 07 01 AE 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 34 FF 03 08 00 03 30 5C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 9B C0 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 67 CD 01 00 35 04 06 00 00 03 98 4E 20 FF 56 B1 A6 28 DE D7 8C 1E [09:40:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 86 60 47 00 6A 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 67 CD 01 00 F4 03 04 00 2E 6E A4 66 B6 04 01 00 00 A9 5D AC 4E DC 0B DD 3E [09:40:41]CommunicateWithHost err = 0 [09:40:41]CheckOFDResponse [09:40:41]1017 (14) - 77093643461234 [09:40:41]1041 (16) - 0000000000874939 [09:40:41]1040 (4) - 118119 [09:40:41]1012 (4) - 27.07.2024 03:49 [09:40:41]1206 (1) - 0 [09:40:41]OFD Sender: Remove packet 118119 [09:40:41]ProducePacketName [09:40:41]name=ofd_packets/00118119 [09:40:41]NVStorageDeleteData [09:40:41]Write to MH i2c: 01 00 00 F3 33 26 [09:40:41]Write i2c OK [09:40:41]MH_I2C_Read... [09:40:41]Read from MH i2c: 01 [09:40:41]MH_I2C_Read... [09:40:41]Read from MH i2c: 01 07 00 [09:40:41]MH_I2C_Read... [09:40:41]Read from MH i2c: 01 07 00 F3 33 00 00 00 00 00 E9 0C 22 [09:40:41]RasterBufferAndPrint [09:40:41]line [09:40:41]line [09:40:41]line [09:40:41]line [09:40:41]line [09:40:41]written 0, free lines is 3311 [09:40:41]MH_Cut [09:40:41]Write to MH i2c: D1 01 00 FA 33 01 FF [09:40:41]Write i2c OK [09:40:41]MH_I2C_Read... [09:40:41]Read from MH i2c: D1 [09:40:41]MH_I2C_Read... [09:40:41]Read from MH i2c: D1 01 00 [09:40:41]MH_I2C_Read... [09:40:41]Read from MH i2c: D1 01 00 FA 33 00 FE [09:40:41]Write to MH i2c: 01 00 00 FB 33 2E [09:40:41]Write i2c OK [09:40:41]MH_I2C_Read... [09:40:42]OFD Sender: No OFD packet to send [09:40:42]*** Cut start [09:40:42]*** Partial cut [09:40:42]*** CUTSNS_PIN = 1 [09:40:42]*** CUTSNS_PIN = 0 [09:40:42]*** Brake cut motor [09:40:43]Read from MH i2c: 01 [09:40:43]MH_I2C_Read... [09:40:43]*** Stop cut motor [09:40:43]*** Cut end [09:40:43]Read from MH i2c: 01 07 00 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: 01 07 00 FB 33 00 00 00 00 00 FF 0F 43 [09:40:43]process_action close_receipt done [09:40:43]requested_data is exist [09:40:43]produce_requested_data [09:40:43]requested_item fm.sn is exist - process it [09:40:43]wFMCommunicate request_size=4 [09:40:43]MH_SAM_APDU [09:40:43]CAPDU: 80 11 00 00 [09:40:43]Write to MH i2c: E2 08 00 FC 33 80 11 00 00 00 00 00 00 A9 [09:40:43]Write i2c OK [09:40:43]MH_I2C_Read... [09:40:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:43]Read from MH i2c: E2 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: E2 17 00 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: E2 17 00 FC 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 04 [09:40:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:40:43]wFMCommunicate OK [09:40:43]requested_item fd.num is exist - process it [09:40:43]SAM_PROTO_GetFieldsCounters [09:40:43]wFMCommunicate request_size=4 [09:40:43]MH_SAM_APDU [09:40:43]CAPDU: 80 13 00 00 [09:40:43]Write to MH i2c: E2 08 00 FD 33 80 13 00 00 00 00 00 00 AC [09:40:43]Write i2c OK [09:40:43]MH_I2C_Read... [09:40:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:43]Read from MH i2c: E2 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: E2 62 00 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: E2 62 00 FD 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 67 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [09:40:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 67 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:40:43]wFMCommunicate OK [09:40:43]SAM_PROTO_GetFieldsCounters done [09:40:43]requested_item shift.num is exist - process it [09:40:43]requested_item shift.opened is exist - process it [09:40:43]req_shift_opened [09:40:43]FM_GetShiftState [09:40:43]SAM_PROTO_GetShiftState [09:40:43]wFMCommunicate request_size=4 [09:40:43]MH_SAM_APDU [09:40:43]CAPDU: 80 13 01 00 [09:40:43]Write to MH i2c: E2 08 00 FE 33 80 13 01 00 00 00 00 00 AE [09:40:43]Write i2c OK [09:40:43]MH_I2C_Read... [09:40:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:43]Read from MH i2c: E2 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: E2 0E 00 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: E2 0E 00 FE 33 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 3B [09:40:43]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:40:43]wFMCommunicate OK [09:40:43]SAM_PROTO_GetShiftState done [09:40:43]FM_GetShiftState done [09:40:43]req_shift_opened done [09:40:43]requested_item shift.open_date is exist - process it [09:40:43]req_shift_open_date [09:40:43]req_shift_open_date done [09:40:43]produce_requested_data done [09:40:43]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118119,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [09:40:43]process_action_free close_receipt [09:40:43]json_value_free [09:40:43]json_value_free done [09:40:43]process_json_proto returns [09:40:43]Send response to host [09:40:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118119,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [09:40:43]free response buf [09:40:43]execute_script done [09:40:43]execute_script returns [09:40:43]free content buf [09:40:43]Sock 9.Close socket [09:40:43]Sock 9.Thread stoped [09:40:47]OFD Sender: No OFD packet to send [09:40:52]OFD Sender: No OFD packet to send [09:40:57]OFD Sender: No OFD packet to send [09:41:02]OFD Sender: No OFD packet to send [09:41:07]OFD Sender: No OFD packet to send [09:41:12]OFD Sender: No OFD packet to send [09:41:17]OFD Sender: No OFD packet to send [09:41:22]OFD Sender: No OFD packet to send [09:41:27]OFD Sender: No OFD packet to send [09:41:32]OFD Sender: No OFD packet to send [09:41:37]OFD Sender: No OFD packet to send [09:41:42]OFD Sender: No OFD packet to send [09:41:47]OFD Sender: No OFD packet to send [09:41:52]OFD Sender: No OFD packet to send [09:41:57]OFD Sender: No OFD packet to send [09:42:02]OFD Sender: No OFD packet to send [09:42:07]OFD Sender: No OFD packet to send [09:42:12]OFD Sender: No OFD packet to send [09:42:17]OFD Sender: No OFD packet to send [09:42:22]OFD Sender: No OFD packet to send [09:42:27]OFD Sender: No OFD packet to send [09:42:32]OFD Sender: No OFD packet to send [09:42:37]OFD Sender: No OFD packet to send [09:42:42]OFD Sender: No OFD packet to send [09:42:47]OFD Sender: No OFD packet to send [09:42:52]OFD Sender: No OFD packet to send [09:42:57]OFD Sender: No OFD packet to send [09:43:02]OFD Sender: No OFD packet to send [09:43:07]OFD Sender: No OFD packet to send [09:43:12]OFD Sender: No OFD packet to send [09:43:17]OFD Sender: No OFD packet to send [09:43:22]OFD Sender: No OFD packet to send [09:43:27]OFD Sender: No OFD packet to send [09:43:32]OFD Sender: No OFD packet to send [09:43:37]OFD Sender: No OFD packet to send [09:43:42]OFD Sender: No OFD packet to send [09:43:47]OFD Sender: No OFD packet to send [09:43:52]OFD Sender: No OFD packet to send [09:43:57]OFD Sender: No OFD packet to send [09:44:02]OFD Sender: No OFD packet to send [09:44:07]OFD Sender: No OFD packet to send [09:44:12]OFD Sender: No OFD packet to send [09:44:17]OFD Sender: No OFD packet to send [09:44:22]OFD Sender: No OFD packet to send [09:44:27]OFD Sender: No OFD packet to send [09:44:32]OFD Sender: No OFD packet to send [09:44:37]OFD Sender: No OFD packet to send [09:44:42]OFD Sender: No OFD packet to send [09:44:47]OFD Sender: No OFD packet to send [09:44:52]OFD Sender: No OFD packet to send [09:44:57]OFD Sender: No OFD packet to send [09:45:02]OFD Sender: No OFD packet to send [09:45:07]OFD Sender: No OFD packet to send [09:45:12]OFD Sender: No OFD packet to send [09:45:17]OFD Sender: No OFD packet to send [09:45:22]OFD Sender: No OFD packet to send [09:45:27]OFD Sender: No OFD packet to send [09:45:32]OFD Sender: No OFD packet to send [09:45:37]OFD Sender: No OFD packet to send [09:45:42]OFD Sender: No OFD packet to send [09:45:47]OFD Sender: No OFD packet to send [09:45:52]OFD Sender: No OFD packet to send [09:45:57]OFD Sender: No OFD packet to send [09:46:02]OFD Sender: No OFD packet to send [09:46:07]OFD Sender: No OFD packet to send [09:46:12]OFD Sender: No OFD packet to send [09:46:17]OFD Sender: No OFD packet to send [09:46:22]OFD Sender: No OFD packet to send [09:46:27]OFD Sender: No OFD packet to send [09:46:32]OFD Sender: No OFD packet to send [09:46:37]OFD Sender: No OFD packet to send [09:46:42]OFD Sender: No OFD packet to send [09:46:47]OFD Sender: No OFD packet to send [09:46:52]OFD Sender: No OFD packet to send [09:46:57]OFD Sender: No OFD packet to send [09:47:02]OFD Sender: No OFD packet to send [09:47:07]OFD Sender: No OFD packet to send [09:47:12]OFD Sender: No OFD packet to send [09:47:17]OFD Sender: No OFD packet to send [09:47:22]OFD Sender: No OFD packet to send [09:47:27]OFD Sender: No OFD packet to send [09:47:32]OFD Sender: No OFD packet to send [09:47:37]OFD Sender: No OFD packet to send [09:47:42]OFD Sender: No OFD packet to send [09:47:47]OFD Sender: No OFD packet to send [09:47:52]OFD Sender: No OFD packet to send [09:47:57]OFD Sender: No OFD packet to send [09:48:02]OFD Sender: No OFD packet to send [09:48:07]OFD Sender: No OFD packet to send [09:48:12]OFD Sender: No OFD packet to send [09:48:17]OFD Sender: No OFD packet to send [09:48:22]OFD Sender: No OFD packet to send [09:48:27]OFD Sender: No OFD packet to send [09:48:32]OFD Sender: No OFD packet to send [09:48:37]OFD Sender: No OFD packet to send [09:48:42]OFD Sender: No OFD packet to send [09:48:47]OFD Sender: No OFD packet to send [09:49:56]ConnectInit Can't connect to host [09:49:57]OFD Sender: No OFD packet to send [09:50:02]OFD Sender: No OFD packet to send [09:50:07]OFD Sender: No OFD packet to send [09:50:12]OFD Sender: No OFD packet to send [09:50:17]OFD Sender: No OFD packet to send [09:50:22]OFD Sender: No OFD packet to send [09:50:27]OFD Sender: No OFD packet to send [09:50:32]OFD Sender: No OFD packet to send [09:50:37]OFD Sender: No OFD packet to send [09:50:42]OFD Sender: No OFD packet to send [09:50:47]OFD Sender: No OFD packet to send [09:50:52]OFD Sender: No OFD packet to send [09:50:57]OFD Sender: No OFD packet to send [09:51:02]OFD Sender: No OFD packet to send [09:51:07]OFD Sender: No OFD packet to send [09:51:12]OFD Sender: No OFD packet to send [09:51:14]accept exits with 7 [09:51:14]New connection [09:51:14]New thread 3067284836 created [09:51:14]Thread 3067428196 joined [09:51:14]Waiting for new connection... [09:51:14] Sock 7.Parse request [09:51:14]Sock 7.Check first char [09:51:14]Sock 7.First char is OK [09:51:14]request: POST /json_proto HTTP/1.0 [09:51:14]Method: POST [09:51:14]URL: /json_proto [09:51:14]Method is POST - this is cgi request [09:51:14]url: /json_proto [09:51:14]query_string will be loaded in cgi processing [09:51:14]execute_cgi json_proto POST (null) [09:51:14]execute_cgi path=json_proto method=POST [09:51:14]POST find Content-Length [09:51:14]Host: 172.17.45.7:8080 [09:51:14]Content-Length: 677 [09:51:14]Content-Type: application/json [09:51:14] [09:51:14]POST finish read [09:51:14]Found Content-Length = 677 [09:51:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:14]execute_script... [09:51:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:14]POST & json_proto [09:51:14]process_json_proto [09:51:14]json parsed OK: [09:51:14]protocol is kg_v1.0 [09:51:14]action value=close_receipt [09:51:14]process_action close_receipt [09:51:14]cmd_close_receipt [09:51:14]MH_GetDate [09:51:14]Write to MH i2c: F0 00 00 FF 33 21 [09:51:14]Write i2c OK [09:51:14]MH_I2C_Read... [09:51:14]Read from MH i2c: F0 [09:51:14]MH_I2C_Read... [09:51:14]Read from MH i2c: F0 09 00 [09:51:14]MH_I2C_Read... [09:51:14]Read from MH i2c: F0 09 00 FF 33 00 16 C3 A4 66 90 0F 3E 66 50 [09:51:14]GetLastDocTimeStamp 1722073243 [09:51:14]current date 1722073878 [09:51:14]FM_GetShiftState [09:51:14]SAM_PROTO_GetShiftState [09:51:14]wFMCommunicate request_size=4 [09:51:14]MH_SAM_APDU [09:51:14]CAPDU: 80 13 01 00 [09:51:14]Write to MH i2c: E2 08 00 00 34 80 13 01 00 00 00 00 00 B1 [09:51:14]Write i2c OK [09:51:14]MH_I2C_Read... [09:51:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:14]Read from MH i2c: E2 [09:51:14]MH_I2C_Read... [09:51:14]Read from MH i2c: E2 0E 00 [09:51:14]MH_I2C_Read... [09:51:14]Read from MH i2c: E2 0E 00 00 34 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 3E [09:51:14]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:51:14]wFMCommunicate OK [09:51:14]SAM_PROTO_GetShiftState done [09:51:14]FM_GetShiftState done [09:51:14]opened in 1722038845 [09:51:14]opened+sec_in_day 1722125245 [09:51:14]quantity*price = 20001 [09:51:14]sum+1 = 20002 [09:51:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 63 27.07.2024 09:51 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118120 ФПД: 197538660236462 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T095119&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118120&fm=197538660236462&tin=02508201610067®Number=0000000000092660&sum=20000 [09:51:15]StoreToDocumentArchive [09:51:15]shift 432 fd 118120 [09:51:15]save to /storage/0432/doc_00118120 [09:51:15]save last doc name /storage/0432/doc_00118120 to /storage/kkm_last_doc_name [09:51:15]save OK [09:51:15]Clear old archive folders... [09:51:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:51:15]tlvbuf is 007BFC00 [09:51:15]SAM_PROTO_ClearQueue [09:51:15]wFMCommunicate request_size=4 [09:51:15]MH_SAM_APDU [09:51:15]CAPDU: 80 09 00 00 [09:51:15]Write to MH i2c: E2 08 00 0D 34 80 09 00 00 00 00 00 00 B3 [09:51:15]Write i2c OK [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: E2 [09:51:15]MH_I2C_Read... [09:51:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:15]Read from MH i2c: E2 03 00 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: E2 03 00 0D 34 00 90 00 B5 [09:51:15]RAPDU: 90 00 [09:51:15]wFMCommunicate OK [09:51:15]SAM_PROTO_ClearQueue done [09:51:15]KKMCreateOFDPacket [09:51:15]OFDProtocolAddRootSTLVToBuf [09:51:15]FM_MakeSignedData [09:51:15]FM_MakeSignedData [09:51:15]SAM_PROTO_SignData [09:51:15]wFMCommunicate request_size=4 [09:51:15]MH_SAM_APDU [09:51:15]CAPDU: 80 0D 01 02 [09:51:15]Write to MH i2c: E2 08 00 0E 34 80 0D 01 02 00 00 00 00 BB [09:51:15]Write i2c OK [09:51:15]MH_I2C_Read... [09:51:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:15]Read from MH i2c: E2 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: E2 03 00 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: E2 03 00 0E 34 00 90 00 B6 [09:51:15]RAPDU: 90 00 [09:51:15]wFMCommunicate OK [09:51:15]wFMCommunicate request_size=255 [09:51:15]MH_SAM_APDU [09:51:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 17 C3 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 68 CD 01 00 35 04 06 00 B3 [09:51:15]Write to MH i2c: E2 02 01 0F 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 17 C3 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 68 CD 01 00 35 04 06 00 B3 00 00 FE [09:51:15]Write i2c OK [09:51:15]MH_I2C_Read... [09:51:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:16]Read from MH i2c: E2 [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: E2 03 00 [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: E2 03 00 0F 34 00 90 00 B7 [09:51:16]RAPDU: 90 00 [09:51:16]wFMCommunicate OK [09:51:16]wFMCommunicate request_size=10 [09:51:16]MH_SAM_APDU [09:51:16]CAPDU: 80 0D 02 02 05 A9 0D AC 3C AE [09:51:16]Write to MH i2c: E2 0D 00 10 34 80 0D 02 02 05 00 A9 0D AC 3C AE 00 00 14 [09:51:16]Write i2c OK [09:51:16]MH_I2C_Read... [09:51:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:16]Read from MH i2c: E2 [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: E2 03 00 [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: E2 03 00 10 34 00 90 00 B8 [09:51:16]RAPDU: 90 00 [09:51:16]wFMCommunicate OK [09:51:16]wFMCommunicate request_size=4 [09:51:16]MH_SAM_APDU [09:51:16]CAPDU: 80 0D 03 02 [09:51:16]Write to MH i2c: E2 08 00 11 34 80 0D 03 02 00 00 00 00 C0 [09:51:16]Write i2c OK [09:51:16]MH_I2C_Read... [09:51:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:16]Read from MH i2c: E2 [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: E2 0B 00 [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: E2 0B 00 11 34 00 74 99 47 A5 31 8D 5F D5 90 00 AC [09:51:16]RAPDU: 74 99 47 A5 31 8D 5F D5 90 00 [09:51:16]wFMCommunicate OK [09:51:16]SAM_PROTO_SignData done [09:51:16]FM_MakeSignedData done [09:51:16]CreateOFDProtocolMessage [09:51:16]wFMCommunicate request_size=4 [09:51:16]MH_SAM_APDU [09:51:16]CAPDU: 80 11 00 00 [09:51:16]Write to MH i2c: E2 08 00 12 34 80 11 00 00 00 00 00 00 C0 [09:51:16]Write i2c OK [09:51:16]MH_I2C_Read... [09:51:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:16]Read from MH i2c: E2 [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: E2 17 00 [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: E2 17 00 12 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1B [09:51:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:51:16]wFMCommunicate OK [09:51:16]CreateOFDProtocolMessage done [09:51:16]OFDSenderStorePacket 118120 [09:51:16]StoreOFDPacket docnum=118120 [09:51:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 34 44 07 01 0A 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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 17 C3 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 68 CD 01 00 35 04 06 00 B3 A9 0D AC 3C AE 74 99 47 A5 31 8D 5F D5 [09:51:16]CheckFolder [09:51:16]dirname=/storage/ofd_packets [09:51:16]CheckFolder done [09:51:16]ProducePacketName [09:51:16]name=ofd_packets/00118120 [09:51:16]NVStorageSaveData ofd_packets/00118120 [09:51:16]File name is /storage/ofd_packets/00118120 [09:51:16]Write 301 bytes [09:51:16]NVStorageSaveData done [09:51:16]OFDSenderStorePacket done [09:51:16]KKMCreateOFDPacket done [09:51:16]NVStorageSaveData kkm_last_timestamp [09:51:16]File name is /storage/kkm_last_timestamp [09:51:16]Write 4 bytes [09:51:16]NVStorageSaveData done [09:51:16]ExternCall_PrintAddStr [09:51:16]wPrintStart [09:51:16]Write to MH i2c: 01 00 00 13 34 47 [09:51:16]Write i2c OK [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: 01 [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: 01 07 00 [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: 01 07 00 13 34 00 00 00 00 00 FF 0F 5C [09:51:16]RasterBufferAndPrint [09:51:16]line Счет N : (1)948993 [09:51:16]line ИНН: 02508201610067 [09:51:16]line Контрольно-Кассовый Чек [09:51:16]line ПРОДАЖА [09:51:16]line ТРК (МРК, ГНК) : 61 [09:51:16]line Товар: 2710124130 [09:51:16]line Аи-92-К-4 [09:51:16]line 2.950 * 67.80 [09:51:16]line = 200.01 [09:51:16]line НДС 12% НСП 1% [09:51:16]line > о реализуемом товаре [09:51:16]line ОКРУГЛЕНИЕ: -0.01 [09:51:16]line ИТОГО: 200.00 [09:51:16]line Внесено: 200.00 [09:51:16]line СДАЧА: 0.00 [09:51:16]line НСП 1% : 1.77 [09:51:16]line НДС 12% : 21.24 [09:51:16]line Наличными: 200.00 [09:51:16]line Безнал.: 0.00 [09:51:16]line Место: АЗС № 134 "Партнер Нефть" [09:51:16]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:51:16]line СНО: Общий режим [09:51:16]line Чек 63 27.07.2024 09:51 [09:51:16]line Смена: 432 ФФД: 1.0 [09:51:16]line ЗНМ: 0300000044 [09:51:16]line РНМ: 0000000000092660 [09:51:16]line Версия ККМ: 001 [09:51:16]line ФМ: 0000000000874939 [09:51:16]line ФД: 118120 [09:51:16]line ФПД: 197538660236462 [09:51:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T095119&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118120&fm=197538660236462&tin=02508201610067®Number=0000000000092660&sum=20000 [09:51:16]OFD Sender: Processing packet 118120 [packets to send 85, broken 84] [09:51:16]ProducePacketName [09:51:16]name=ofd_packets/00118120 [09:51:16]OFD Sender: To server: pG, [09:51:16]CommunicateWithHost lk.salyk.kg:30040 [09:51:16]ConnectInit lk.salyk.kg [09:51:16]written 0, free lines is 4095 [09:51:16]Connected sock=10 [09:51:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 34 44 07 01 0A 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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 17 C3 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 68 CD 01 00 35 04 06 00 B3 A9 0D AC 3C AE 74 99 47 A5 31 8D 5F D5 [09:51:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 17 75 47 00 A9 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 68 CD 01 00 F4 03 04 00 AA 70 A4 66 B6 04 01 00 00 E2 D7 2B 9F 14 8E 23 B7 [09:51:17]CommunicateWithHost err = 0 [09:51:17]CheckOFDResponse [09:51:17]1017 (14) - 77093643461234 [09:51:17]1041 (16) - 0000000000874939 [09:51:17]1040 (4) - 118120 [09:51:17]1012 (4) - 27.07.2024 03:59 [09:51:17]1206 (1) - 0 [09:51:17]OFD Sender: Remove packet 118120 [09:51:17]ProducePacketName [09:51:17]name=ofd_packets/00118120 [09:51:17]NVStorageDeleteData [09:51:17]Write to MH i2c: 01 00 00 3D 34 71 [09:51:17]Write i2c OK [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: 01 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: 01 07 00 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: 01 07 00 3D 34 00 00 00 00 00 E1 0C 65 [09:51:17]RasterBufferAndPrint [09:51:17]line [09:51:17]line [09:51:17]line [09:51:17]line [09:51:17]line [09:51:17]written 0, free lines is 3303 [09:51:17]MH_Cut [09:51:17]Write to MH i2c: D1 01 00 44 34 01 4A [09:51:17]Write i2c OK [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: D1 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: D1 01 00 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: D1 01 00 44 34 00 49 [09:51:17]Write to MH i2c: 01 00 00 45 34 79 [09:51:17]Write i2c OK [09:51:17]MH_I2C_Read... [09:51:17]OFD Sender: No OFD packet to send [09:51:17]*** Cut start [09:51:17]*** Partial cut [09:51:17]*** CUTSNS_PIN = 1 [09:51:17]*** CUTSNS_PIN = 0 [09:51:18]*** Brake cut motor [09:51:18]Read from MH i2c: 01 [09:51:18]MH_I2C_Read... [09:51:18]*** Stop cut motor [09:51:18]*** Cut end [09:51:18]Read from MH i2c: 01 07 00 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: 01 07 00 45 34 00 00 00 00 00 FF 0F 8E [09:51:18]process_action close_receipt done [09:51:18]requested_data is exist [09:51:18]produce_requested_data [09:51:18]requested_item fm.sn is exist - process it [09:51:18]wFMCommunicate request_size=4 [09:51:18]MH_SAM_APDU [09:51:18]CAPDU: 80 11 00 00 [09:51:18]Write to MH i2c: E2 08 00 46 34 80 11 00 00 00 00 00 00 F4 [09:51:18]Write i2c OK [09:51:18]MH_I2C_Read... [09:51:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:18]Read from MH i2c: E2 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: E2 17 00 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: E2 17 00 46 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4F [09:51:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:51:18]wFMCommunicate OK [09:51:18]requested_item fd.num is exist - process it [09:51:18]SAM_PROTO_GetFieldsCounters [09:51:18]wFMCommunicate request_size=4 [09:51:18]MH_SAM_APDU [09:51:18]CAPDU: 80 13 00 00 [09:51:18]Write to MH i2c: E2 08 00 47 34 80 13 00 00 00 00 00 00 F7 [09:51:18]Write i2c OK [09:51:18]MH_I2C_Read... [09:51:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:18]Read from MH i2c: E2 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: E2 62 00 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: E2 62 00 47 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 68 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [09:51:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 68 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:51:18]wFMCommunicate OK [09:51:18]SAM_PROTO_GetFieldsCounters done [09:51:18]requested_item shift.num is exist - process it [09:51:18]requested_item shift.opened is exist - process it [09:51:18]req_shift_opened [09:51:18]FM_GetShiftState [09:51:18]SAM_PROTO_GetShiftState [09:51:18]wFMCommunicate request_size=4 [09:51:18]MH_SAM_APDU [09:51:18]CAPDU: 80 13 01 00 [09:51:18]Write to MH i2c: E2 08 00 48 34 80 13 01 00 00 00 00 00 F9 [09:51:18]Write i2c OK [09:51:18]MH_I2C_Read... [09:51:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:18]Read from MH i2c: E2 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: E2 0E 00 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: E2 0E 00 48 34 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 86 [09:51:18]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:51:18]wFMCommunicate OK [09:51:18]SAM_PROTO_GetShiftState done [09:51:18]FM_GetShiftState done [09:51:18]req_shift_opened done [09:51:18]requested_item shift.open_date is exist - process it [09:51:18]req_shift_open_date [09:51:18]req_shift_open_date done [09:51:18]produce_requested_data done [09:51:18]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118120,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [09:51:18]process_action_free close_receipt [09:51:18]json_value_free [09:51:18]json_value_free done [09:51:18]process_json_proto returns [09:51:18]Send response to host [09:51:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118120,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [09:51:18]free response buf [09:51:18]execute_script done [09:51:18]execute_script returns [09:51:18]free content buf [09:51:18]Sock 7.Close socket [09:51:18]Sock 7.Thread stoped [09:51:22]OFD Sender: No OFD packet to send [09:51:27]OFD Sender: No OFD packet to send [09:51:32]OFD Sender: No OFD packet to send [09:51:34]accept exits with 9 [09:51:34]New connection [09:51:34]New thread 3067428196 created [09:51:34]Thread 3067284836 joined [09:51:34]Waiting for new connection... [09:51:34] Sock 9.Parse request [09:51:34]Sock 9.Check first char [09:51:34]Sock 9.First char is OK [09:51:34]request: POST /json_proto HTTP/1.0 [09:51:34]Method: POST [09:51:34]URL: /json_proto [09:51:34]Method is POST - this is cgi request [09:51:34]url: /json_proto [09:51:34]query_string will be loaded in cgi processing [09:51:34]execute_cgi json_proto POST (null) [09:51:34]execute_cgi path=json_proto method=POST [09:51:34]POST find Content-Length [09:51:34]Host: 172.17.45.7:8080 [09:51:34]Content-Length: 1210 [09:51:34]Content-Type: application/json [09:51:34] [09:51:34]POST finish read [09:51:34]Found Content-Length = 1210 [09:51:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)948992\u000A27.07.2024 09:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 20.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 1356.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3940801\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:34]execute_script... [09:51:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)948992\u000A27.07.2024 09:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 20.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 1356.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3940801\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:34]POST & json_proto [09:51:34]process_json_proto [09:51:34]json parsed OK: [09:51:34]protocol is kg_v1.0 [09:51:34]action value=print_text [09:51:34]process_action print_text [09:51:34]cmd_print_text [09:51:34]ExternCall_PrintAddStr [09:51:34]wPrintStart [09:51:34]Write to MH i2c: 01 00 00 49 34 7D [09:51:34]Write i2c OK [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: 01 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: 01 07 00 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: 01 07 00 49 34 00 00 00 00 00 FF 0F 92 [09:51:34]RasterBufferAndPrint [09:51:34]line *****ТОВАРНЫЙ ЧЕК***** [09:51:34]line АЗС-134 [09:51:34]line Партнер нефть [09:51:34]line 02508201610067 [09:51:34]line Кассир : Айдарали у Б. [09:51:34]line Счет N : (1)948992 [09:51:34]line 27.07.2024 09:49 [09:51:34]line ПРОДАЖА [09:51:34]line ТРК (МРК, ГНК): 51 [09:51:34]line Вид ГСМ : 2710124130 [09:51:34]line Аи-92-К-4 [09:51:34]line 20.000 x 67.80 [09:51:34]line ИТОГ: 1356.00 [09:51:34]line Тип оплаты: Талоны: Топливные Талоны [09:51:34]line 3940801 [09:51:34]line ______________________ [09:51:34]line (подпись) [09:51:34]written 0, free lines is 4095 [09:51:34]Write to MH i2c: 01 00 00 5D 34 91 [09:51:34]Write i2c OK [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: 01 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: 01 07 00 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: 01 07 00 5D 34 00 00 00 00 00 12 0E B8 [09:51:34]RasterBufferAndPrint [09:51:34]line [09:51:34]line [09:51:34]line [09:51:34]line [09:51:34]line [09:51:34]written 0, free lines is 3604 [09:51:34]MH_Cut [09:51:34]Write to MH i2c: D1 01 00 64 34 01 6A [09:51:34]Write i2c OK [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: D1 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: D1 01 00 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: D1 01 00 64 34 00 69 [09:51:34]Write to MH i2c: 01 00 00 65 34 99 [09:51:34]Write i2c OK [09:51:34]MH_I2C_Read... [09:51:34]*** Cut start [09:51:34]*** Partial cut [09:51:34]*** CUTSNS_PIN = 1 [09:51:34]*** CUTSNS_PIN = 0 [09:51:35]*** Brake cut motor [09:51:35]Read from MH i2c: 01 [09:51:35]MH_I2C_Read... [09:51:35]*** Stop cut motor [09:51:35]*** Cut end [09:51:35]Read from MH i2c: 01 07 00 [09:51:35]MH_I2C_Read... [09:51:35]Read from MH i2c: 01 07 00 65 34 00 00 00 00 00 FF 0F AE [09:51:35]process_action print_text done [09:51:35]requested_data is exist [09:51:35]produce_requested_data [09:51:35]requested_item fm.sn is exist - process it [09:51:35]wFMCommunicate request_size=4 [09:51:35]MH_SAM_APDU [09:51:35]CAPDU: 80 11 00 00 [09:51:35]Write to MH i2c: E2 08 00 66 34 80 11 00 00 00 00 00 00 14 [09:51:35]Write i2c OK [09:51:35]MH_I2C_Read... [09:51:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:35]Read from MH i2c: E2 [09:51:35]MH_I2C_Read... [09:51:35]Read from MH i2c: E2 17 00 [09:51:35]MH_I2C_Read... [09:51:35]Read from MH i2c: E2 17 00 66 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6F [09:51:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:51:35]wFMCommunicate OK [09:51:35]requested_item fd.num is exist - process it [09:51:35]SAM_PROTO_GetFieldsCounters [09:51:35]wFMCommunicate request_size=4 [09:51:35]MH_SAM_APDU [09:51:35]CAPDU: 80 13 00 00 [09:51:35]Write to MH i2c: E2 08 00 67 34 80 13 00 00 00 00 00 00 17 [09:51:35]Write i2c OK [09:51:35]MH_I2C_Read... [09:51:35]Read from MH i2c: E2 [09:51:35]MH_I2C_Read... [09:51:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:35]Read from MH i2c: E2 62 00 [09:51:35]MH_I2C_Read... [09:51:35]Read from MH i2c: E2 62 00 67 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 68 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [09:51:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 68 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:51:35]wFMCommunicate OK [09:51:35]SAM_PROTO_GetFieldsCounters done [09:51:35]requested_item shift.num is exist - process it [09:51:35]requested_item shift.opened is exist - process it [09:51:35]req_shift_opened [09:51:35]FM_GetShiftState [09:51:35]SAM_PROTO_GetShiftState [09:51:35]wFMCommunicate request_size=4 [09:51:35]MH_SAM_APDU [09:51:35]CAPDU: 80 13 01 00 [09:51:35]Write to MH i2c: E2 08 00 68 34 80 13 01 00 00 00 00 00 19 [09:51:35]Write i2c OK [09:51:35]MH_I2C_Read... [09:51:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:35]Read from MH i2c: E2 [09:51:35]MH_I2C_Read... [09:51:35]Read from MH i2c: E2 0E 00 [09:51:35]MH_I2C_Read... [09:51:35]Read from MH i2c: E2 0E 00 68 34 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 A6 [09:51:35]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:51:35]wFMCommunicate OK [09:51:35]SAM_PROTO_GetShiftState done [09:51:35]FM_GetShiftState done [09:51:35]req_shift_opened done [09:51:35]requested_item shift.open_date is exist - process it [09:51:35]req_shift_open_date [09:51:35]req_shift_open_date done [09:51:35]produce_requested_data done [09:51:35]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118120,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [09:51:35]process_action_free print_text [09:51:35]json_value_free [09:51:35]json_value_free done [09:51:35]process_json_proto returns [09:51:35]Send response to host [09:51:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118120,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [09:51:35]free response buf [09:51:35]execute_script done [09:51:35]execute_script returns [09:51:35]free content buf [09:51:35]Sock 9.Close socket [09:51:35]Sock 9.Thread stoped [09:51:37]OFD Sender: No OFD packet to send [09:51:42]OFD Sender: No OFD packet to send [09:51:47]OFD Sender: No OFD packet to send [09:51:52]OFD Sender: No OFD packet to send [09:51:57]OFD Sender: No OFD packet to send [09:52:02]OFD Sender: No OFD packet to send [09:52:07]OFD Sender: No OFD packet to send [09:52:12]OFD Sender: No OFD packet to send [09:52:17]OFD Sender: No OFD packet to send [09:52:22]OFD Sender: No OFD packet to send [09:52:27]OFD Sender: No OFD packet to send [09:52:32]OFD Sender: No OFD packet to send [09:52:37]OFD Sender: No OFD packet to send [09:52:42]OFD Sender: No OFD packet to send [09:52:47]OFD Sender: No OFD packet to send [09:52:52]OFD Sender: No OFD packet to send [09:52:57]OFD Sender: No OFD packet to send [09:53:02]OFD Sender: No OFD packet to send [09:53:07]OFD Sender: No OFD packet to send [09:53:12]OFD Sender: No OFD packet to send [09:53:17]OFD Sender: No OFD packet to send [09:53:22]OFD Sender: No OFD packet to send [09:53:27]OFD Sender: No OFD packet to send [09:53:32]OFD Sender: No OFD packet to send [09:53:37]OFD Sender: No OFD packet to send [09:53:42]OFD Sender: No OFD packet to send [09:53:47]OFD Sender: No OFD packet to send [09:53:49]accept exits with 7 [09:53:49]New connection [09:53:49]New thread 3067284836 created [09:53:49]Thread 3067428196 joined [09:53:49]Waiting for new connection... [09:53:49] Sock 7.Parse request [09:53:49]Sock 7.Check first char [09:53:49]Sock 7.First char is OK [09:53:49]request: POST /json_proto HTTP/1.0 [09:53:49]Method: POST [09:53:49]URL: /json_proto [09:53:49]Method is POST - this is cgi request [09:53:49]url: /json_proto [09:53:49]query_string will be loaded in cgi processing [09:53:49]execute_cgi json_proto POST (null) [09:53:49]execute_cgi path=json_proto method=POST [09:53:49]POST find Content-Length [09:53:49]Host: 172.17.45.7:8080 [09:53:49]Content-Length: 682 [09:53:49]Content-Type: application/json [09:53:49] [09:53:49]POST finish read [09:53:49]Found Content-Length = 682 [09:53:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:53:49]execute_script... [09:53: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)948994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:53:49]POST & json_proto [09:53:49]process_json_proto [09:53:49]json parsed OK: [09:53:49]protocol is kg_v1.0 [09:53:49]action value=close_receipt [09:53:49]process_action close_receipt [09:53:49]cmd_close_receipt [09:53:49]MH_GetDate [09:53:49]Write to MH i2c: F0 00 00 69 34 8C [09:53:49]Write i2c OK [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: F0 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: F0 09 00 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: F0 09 00 69 34 00 B1 C3 A4 66 90 0F 3E 66 56 [09:53:49]GetLastDocTimeStamp 1722073879 [09:53:49]current date 1722074033 [09:53:49]FM_GetShiftState [09:53:49]SAM_PROTO_GetShiftState [09:53:49]wFMCommunicate request_size=4 [09:53:49]MH_SAM_APDU [09:53:49]CAPDU: 80 13 01 00 [09:53:49]Write to MH i2c: E2 08 00 6A 34 80 13 01 00 00 00 00 00 1B [09:53:49]Write i2c OK [09:53:49]MH_I2C_Read... [09:53:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:49]Read from MH i2c: E2 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: E2 0E 00 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: E2 0E 00 6A 34 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 A8 [09:53:49]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:53:49]wFMCommunicate OK [09:53:49]SAM_PROTO_GetShiftState done [09:53:49]FM_GetShiftState done [09:53:49]opened in 1722038845 [09:53:49]opened+sec_in_day 1722125245 [09:53:49]quantity*price = 100005 [09:53:49]sum+1 = 100006 [09:53:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 64 27.07.2024 09:53 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118121 ФПД: 152718079834817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T095354&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118121&fm=152718079834817&tin=02508201610067®Number=0000000000092660&sum=100000 [09:53:50]StoreToDocumentArchive [09:53:50]shift 432 fd 118121 [09:53:50]save to /storage/0432/doc_00118121 [09:53:50]save last doc name /storage/0432/doc_00118121 to /storage/kkm_last_doc_name [09:53:50]save OK [09:53:50]Clear old archive folders... [09:53:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:50]tlvbuf is 0071B3E0 [09:53:50]SAM_PROTO_ClearQueue [09:53:50]wFMCommunicate request_size=4 [09:53:50]MH_SAM_APDU [09:53:50]CAPDU: 80 09 00 00 [09:53:50]Write to MH i2c: E2 08 00 77 34 80 09 00 00 00 00 00 00 1D [09:53:50]Write i2c OK [09:53:50]MH_I2C_Read... [09:53:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:50]Read from MH i2c: E2 [09:53:50]MH_I2C_Read... [09:53:50]Read from MH i2c: E2 03 00 [09:53:50]MH_I2C_Read... [09:53:50]Read from MH i2c: E2 03 00 77 34 00 90 00 1F [09:53:50]RAPDU: 90 00 [09:53:50]wFMCommunicate OK [09:53:50]SAM_PROTO_ClearQueue done [09:53:50]KKMCreateOFDPacket [09:53:50]OFDProtocolAddRootSTLVToBuf [09:53:50]FM_MakeSignedData [09:53:50]FM_MakeSignedData [09:53:50]SAM_PROTO_SignData [09:53:50]wFMCommunicate request_size=4 [09:53:50]MH_SAM_APDU [09:53:50]CAPDU: 80 0D 01 02 [09:53:50]Write to MH i2c: E2 08 00 78 34 80 0D 01 02 00 00 00 00 25 [09:53:50]Write i2c OK [09:53:50]MH_I2C_Read... [09:53:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:50]Read from MH i2c: E2 [09:53:50]MH_I2C_Read... [09:53:50]Read from MH i2c: E2 03 00 [09:53:50]MH_I2C_Read... [09:53:50]Read from MH i2c: E2 03 00 78 34 00 90 00 20 [09:53:50]RAPDU: 90 00 [09:53:50]wFMCommunicate OK [09:53:50]wFMCommunicate request_size=255 [09:53:50]MH_SAM_APDU [09:53: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 B2 C3 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 69 CD 01 00 35 04 06 00 8A [09:53:50]Write to MH i2c: E2 02 01 79 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 B2 C3 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 69 CD 01 00 35 04 06 00 8A 00 00 69 [09:53:50]Write i2c OK [09:53:50]MH_I2C_Read... [09:53:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:51]Read from MH i2c: E2 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: E2 03 00 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: E2 03 00 79 34 00 90 00 21 [09:53:51]RAPDU: 90 00 [09:53:51]wFMCommunicate OK [09:53:51]wFMCommunicate request_size=10 [09:53:51]MH_SAM_APDU [09:53:51]CAPDU: 80 0D 02 02 05 E5 72 E6 3A C1 [09:53:51]Write to MH i2c: E2 0D 00 7A 34 80 0D 02 02 05 00 E5 72 E6 3A C1 00 00 6A [09:53:51]Write i2c OK [09:53:51]MH_I2C_Read... [09:53:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:51]Read from MH i2c: E2 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: E2 03 00 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: E2 03 00 7A 34 00 90 00 22 [09:53:51]RAPDU: 90 00 [09:53:51]wFMCommunicate OK [09:53:51]wFMCommunicate request_size=4 [09:53:51]MH_SAM_APDU [09:53:51]CAPDU: 80 0D 03 02 [09:53:51]Write to MH i2c: E2 08 00 7B 34 80 0D 03 02 00 00 00 00 2A [09:53:51]Write i2c OK [09:53:51]MH_I2C_Read... [09:53:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:51]Read from MH i2c: E2 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: E2 0B 00 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: E2 0B 00 7B 34 00 20 C6 91 1F 09 00 21 4B 90 00 36 [09:53:51]RAPDU: 20 C6 91 1F 09 00 21 4B 90 00 [09:53:51]wFMCommunicate OK [09:53:51]SAM_PROTO_SignData done [09:53:51]FM_MakeSignedData done [09:53:51]CreateOFDProtocolMessage [09:53:51]wFMCommunicate request_size=4 [09:53:51]MH_SAM_APDU [09:53:51]CAPDU: 80 11 00 00 [09:53:51]Write to MH i2c: E2 08 00 7C 34 80 11 00 00 00 00 00 00 2A [09:53:51]Write i2c OK [09:53:51]MH_I2C_Read... [09:53:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:51]Read from MH i2c: E2 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: E2 17 00 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: E2 17 00 7C 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 85 [09:53:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:53:51]wFMCommunicate OK [09:53:51]CreateOFDProtocolMessage done [09:53:51]OFDSenderStorePacket 118121 [09:53:51]StoreOFDPacket docnum=118121 [09:53:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 DC F0 07 01 EA AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 B2 C3 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 69 CD 01 00 35 04 06 00 8A E5 72 E6 3A C1 20 C6 91 1F 09 00 21 4B [09:53:51]CheckFolder [09:53:51]dirname=/storage/ofd_packets [09:53:51]CheckFolder done [09:53:51]ProducePacketName [09:53:51]name=ofd_packets/00118121 [09:53:51]NVStorageSaveData ofd_packets/00118121 [09:53:51]File name is /storage/ofd_packets/00118121 [09:53:51]Write 301 bytes [09:53:51]NVStorageSaveData done [09:53:51]OFDSenderStorePacket done [09:53:51]KKMCreateOFDPacket done [09:53:51]NVStorageSaveData kkm_last_timestamp [09:53:51]File name is /storage/kkm_last_timestamp [09:53:51]Write 4 bytes [09:53:51]NVStorageSaveData done [09:53:51]ExternCall_PrintAddStr [09:53:51]wPrintStart [09:53:51]Write to MH i2c: 01 00 00 7D 34 B1 [09:53:51]Write i2c OK [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: 01 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: 01 07 00 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: 01 07 00 7D 34 00 00 00 00 00 FF 0F C6 [09:53:51]RasterBufferAndPrint [09:53:51]line Счет N : (1)948994 [09:53:51]line ИНН: 02508201610067 [09:53:51]line Контрольно-Кассовый Чек [09:53:51]line ПРОДАЖА [09:53:51]line ТРК (МРК, ГНК) : 41 [09:53:51]line Товар: 2710124130 [09:53:51]line Аи-92-К-4 [09:53:51]line 14.750 * 67.80 [09:53:51]line = 1000.05 [09:53:51]line НДС 12% НСП 1% [09:53:51]line > о реализуемом товаре [09:53:51]line ОКРУГЛЕНИЕ: -0.05 [09:53:51]line ИТОГО: 1000.00 [09:53:51]line Внесено: 1000.00 [09:53:51]line СДАЧА: 0.00 [09:53:51]line НСП 1% : 8.85 [09:53:51]line НДС 12% : 106.20 [09:53:51]line Наличными: 1000.00 [09:53:51]line Безнал.: 0.00 [09:53:51]line Место: АЗС № 134 "Партнер Нефть" [09:53:51]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:53:51]line СНО: Общий режим [09:53:51]line Чек 64 27.07.2024 09:53 [09:53:51]line Смена: 432 ФФД: 1.0 [09:53:51]line ЗНМ: 0300000044 [09:53:51]line РНМ: 0000000000092660 [09:53:51]line Версия ККМ: 001 [09:53:51]line ФМ: 0000000000874939 [09:53:51]line ФД: 118121 [09:53:51]line ФПД: 152718079834817 [09:53:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T095354&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118121&fm=152718079834817&tin=02508201610067®Number=0000000000092660&sum=100000 [09:53:51]OFD Sender: Processing packet 118121 [packets to send 85, broken 84] [09:53:51]ProducePacketName [09:53:51]name=ofd_packets/00118121 [09:53:51]OFD Sender: To server: pG, [09:53:51]CommunicateWithHost lk.salyk.kg:30040 [09:53:51]ConnectInit lk.salyk.kg [09:53:51]written 0, free lines is 4095 [09:53:51]Connected sock=10 [09:53:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 DC F0 07 01 EA AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 B2 C3 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 69 CD 01 00 35 04 06 00 8A E5 72 E6 3A C1 20 C6 91 1F 09 00 21 4B [09:53:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 BB 26 47 00 F8 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 69 CD 01 00 F4 03 04 00 45 71 A4 66 B6 04 01 00 00 E3 11 C5 5C 47 B8 A0 BD [09:53:52]CommunicateWithHost err = 0 [09:53:52]CheckOFDResponse [09:53:52]1017 (14) - 77093643461234 [09:53:52]1041 (16) - 0000000000874939 [09:53:52]1040 (4) - 118121 [09:53:52]1012 (4) - 27.07.2024 04:02 [09:53:52]1206 (1) - 0 [09:53:52]OFD Sender: Remove packet 118121 [09:53:52]ProducePacketName [09:53:52]name=ofd_packets/00118121 [09:53:52]NVStorageDeleteData [09:53:52]Write to MH i2c: 01 00 00 A7 34 DB [09:53:52]Write i2c OK [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: 01 [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: 01 07 00 [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: 01 07 00 A7 34 00 00 00 00 00 EB 0C D9 [09:53:52]RasterBufferAndPrint [09:53:52]line [09:53:52]line [09:53:52]line [09:53:52]line [09:53:52]line [09:53:52]written 0, free lines is 3313 [09:53:52]MH_Cut [09:53:52]Write to MH i2c: D1 01 00 AE 34 01 B4 [09:53:52]Write i2c OK [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: D1 [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: D1 01 00 [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: D1 01 00 AE 34 00 B3 [09:53:52]Write to MH i2c: 01 00 00 AF 34 E3 [09:53:52]Write i2c OK [09:53:52]MH_I2C_Read... [09:53:52]OFD Sender: No OFD packet to send [09:53:52]*** Cut start [09:53:52]*** Partial cut [09:53:52]*** CUTSNS_PIN = 1 [09:53:52]*** CUTSNS_PIN = 0 [09:53:53]*** Brake cut motor [09:53:53]Read from MH i2c: 01 [09:53:53]MH_I2C_Read... [09:53:53]*** Stop cut motor [09:53:53]*** Cut end [09:53:53]Read from MH i2c: 01 07 00 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: 01 07 00 AF 34 00 00 00 00 00 FF 0F F8 [09:53:53]process_action close_receipt done [09:53:53]requested_data is exist [09:53:53]produce_requested_data [09:53:53]requested_item fm.sn is exist - process it [09:53:53]wFMCommunicate request_size=4 [09:53:53]MH_SAM_APDU [09:53:53]CAPDU: 80 11 00 00 [09:53:53]Write to MH i2c: E2 08 00 B0 34 80 11 00 00 00 00 00 00 5E [09:53:53]Write i2c OK [09:53:53]MH_I2C_Read... [09:53:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:53]Read from MH i2c: E2 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 17 00 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 17 00 B0 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B9 [09:53:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:53:53]wFMCommunicate OK [09:53:53]requested_item fd.num is exist - process it [09:53:53]SAM_PROTO_GetFieldsCounters [09:53:53]wFMCommunicate request_size=4 [09:53:53]MH_SAM_APDU [09:53:53]CAPDU: 80 13 00 00 [09:53:53]Write to MH i2c: E2 08 00 B1 34 80 13 00 00 00 00 00 00 61 [09:53:53]Write i2c OK [09:53:53]MH_I2C_Read... [09:53:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:53]Read from MH i2c: E2 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 62 00 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 62 00 B1 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 69 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [09:53:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 69 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:53]wFMCommunicate OK [09:53:53]SAM_PROTO_GetFieldsCounters done [09:53:53]requested_item shift.num is exist - process it [09:53:53]requested_item shift.opened is exist - process it [09:53:53]req_shift_opened [09:53:53]FM_GetShiftState [09:53:53]SAM_PROTO_GetShiftState [09:53:53]wFMCommunicate request_size=4 [09:53:53]MH_SAM_APDU [09:53:53]CAPDU: 80 13 01 00 [09:53:53]Write to MH i2c: E2 08 00 B2 34 80 13 01 00 00 00 00 00 63 [09:53:53]Write i2c OK [09:53:53]MH_I2C_Read... [09:53:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:53]Read from MH i2c: E2 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 0E 00 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 0E 00 B2 34 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 F0 [09:53:53]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:53:53]wFMCommunicate OK [09:53:53]SAM_PROTO_GetShiftState done [09:53:53]FM_GetShiftState done [09:53:53]req_shift_opened done [09:53:53]requested_item shift.open_date is exist - process it [09:53:53]req_shift_open_date [09:53:53]req_shift_open_date done [09:53:53]produce_requested_data done [09:53:53]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118121,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [09:53:53]process_action_free close_receipt [09:53:53]json_value_free [09:53:53]json_value_free done [09:53:53]process_json_proto returns [09:53:53]Send response to host [09:53:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118121,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [09:53:53]free response buf [09:53:53]execute_script done [09:53:53]execute_script returns [09:53:53]free content buf [09:53:53]Sock 7.Close socket [09:53:53]Sock 7.Thread stoped [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:17]OFD Sender: No OFD packet to send [09:54:22]OFD Sender: No OFD packet to send [09:54:27]OFD Sender: No OFD packet to send [09:54:32]OFD Sender: No OFD packet to send [09:54:37]OFD Sender: No OFD packet to send [09:54:38]accept exits with 9 [09:54:38]New connection [09:54:38]New thread 3067428196 created [09:54:38]Thread 3067284836 joined [09:54:38]Waiting for new connection... [09:54:38] Sock 9.Parse request [09:54:38]Sock 9.Check first char [09:54:38]Sock 9.First char is OK [09:54:38]request: POST /json_proto HTTP/1.0 [09:54:38]Method: POST [09:54:38]URL: /json_proto [09:54:38]Method is POST - this is cgi request [09:54:38]url: /json_proto [09:54:38]query_string will be loaded in cgi processing [09:54:38]execute_cgi json_proto POST (null) [09:54:38]execute_cgi path=json_proto method=POST [09:54:38]POST find Content-Length [09:54:38]Host: 172.17.45.7:8080 [09:54:38]Content-Length: 682 [09:54:38]Content-Type: application/json [09:54:38] [09:54:38]POST finish read [09:54:38]Found Content-Length = 682 [09:54:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:54:38]execute_script... [09:54: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)948995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:54:38]POST & json_proto [09:54:38]process_json_proto [09:54:38]json parsed OK: [09:54:38]protocol is kg_v1.0 [09:54:38]action value=close_receipt [09:54:38]process_action close_receipt [09:54:38]cmd_close_receipt [09:54:38]MH_GetDate [09:54:38]Write to MH i2c: F0 00 00 B3 34 D6 [09:54:38]Write i2c OK [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: F0 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: F0 09 00 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: F0 09 00 B3 34 00 E2 C3 A4 66 90 0F 3E 66 D1 [09:54:38]GetLastDocTimeStamp 1722074034 [09:54:38]current date 1722074082 [09:54:38]FM_GetShiftState [09:54:38]SAM_PROTO_GetShiftState [09:54:38]wFMCommunicate request_size=4 [09:54:38]MH_SAM_APDU [09:54:38]CAPDU: 80 13 01 00 [09:54:38]Write to MH i2c: E2 08 00 B4 34 80 13 01 00 00 00 00 00 65 [09:54:38]Write i2c OK [09:54:38]MH_I2C_Read... [09:54:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:38]Read from MH i2c: E2 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: E2 0E 00 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: E2 0E 00 B4 34 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 F2 [09:54:38]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:54:38]wFMCommunicate OK [09:54:38]SAM_PROTO_GetShiftState done [09:54:38]FM_GetShiftState done [09:54:38]opened in 1722038845 [09:54:38]opened+sec_in_day 1722125245 [09:54:38]quantity*price = 100005 [09:54:38]sum+1 = 100006 [09:54:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 65 27.07.2024 09:54 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118122 ФПД: 11039307797814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T095442&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118122&fm=11039307797814&tin=02508201610067®Number=0000000000092660&sum=100000 [09:54:39]StoreToDocumentArchive [09:54:39]shift 432 fd 118122 [09:54:39]save to /storage/0432/doc_00118122 [09:54:39]save last doc name /storage/0432/doc_00118122 to /storage/kkm_last_doc_name [09:54:39]save OK [09:54:39]Clear old archive folders... [09:54:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:54:39]tlvbuf is B6E1C6D0 [09:54:39]SAM_PROTO_ClearQueue [09:54:39]wFMCommunicate request_size=4 [09:54:39]MH_SAM_APDU [09:54:39]CAPDU: 80 09 00 00 [09:54:39]Write to MH i2c: E2 08 00 C1 34 80 09 00 00 00 00 00 00 67 [09:54:39]Write i2c OK [09:54:39]MH_I2C_Read... [09:54:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:39]Read from MH i2c: E2 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: E2 03 00 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: E2 03 00 C1 34 00 90 00 69 [09:54:39]RAPDU: 90 00 [09:54:39]wFMCommunicate OK [09:54:39]SAM_PROTO_ClearQueue done [09:54:39]KKMCreateOFDPacket [09:54:39]OFDProtocolAddRootSTLVToBuf [09:54:39]FM_MakeSignedData [09:54:39]FM_MakeSignedData [09:54:39]SAM_PROTO_SignData [09:54:39]wFMCommunicate request_size=4 [09:54:39]MH_SAM_APDU [09:54:39]CAPDU: 80 0D 01 02 [09:54:39]Write to MH i2c: E2 08 00 C2 34 80 0D 01 02 00 00 00 00 6F [09:54:39]Write i2c OK [09:54:39]MH_I2C_Read... [09:54:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:39]Read from MH i2c: E2 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: E2 03 00 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: E2 03 00 C2 34 00 90 00 6A [09:54:39]RAPDU: 90 00 [09:54:39]wFMCommunicate OK [09:54:39]wFMCommunicate request_size=255 [09:54:39]MH_SAM_APDU [09:54: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 E2 C3 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6A CD 01 00 35 04 06 00 0A [09:54:39]Write to MH i2c: E2 02 01 C3 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 E2 C3 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6A CD 01 00 35 04 06 00 0A 00 00 65 [09:54:39]Write i2c OK [09:54:39]MH_I2C_Read... [09:54:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:39]Read from MH i2c: E2 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: E2 03 00 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: E2 03 00 C3 34 00 90 00 6B [09:54:39]RAPDU: 90 00 [09:54:39]wFMCommunicate OK [09:54:39]wFMCommunicate request_size=10 [09:54:39]MH_SAM_APDU [09:54:39]CAPDU: 80 0D 02 02 05 0A 4A 05 15 36 [09:54:39]Write to MH i2c: E2 0D 00 C4 34 80 0D 02 02 05 00 0A 4A 05 15 36 00 00 20 [09:54:39]Write i2c OK [09:54:39]MH_I2C_Read... [09:54:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:39]Read from MH i2c: E2 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: E2 03 00 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: E2 03 00 C4 34 00 90 00 6C [09:54:39]RAPDU: 90 00 [09:54:39]wFMCommunicate OK [09:54:39]wFMCommunicate request_size=4 [09:54:39]MH_SAM_APDU [09:54:39]CAPDU: 80 0D 03 02 [09:54:39]Write to MH i2c: E2 08 00 C5 34 80 0D 03 02 00 00 00 00 74 [09:54:39]Write i2c OK [09:54:39]MH_I2C_Read... [09:54:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:39]Read from MH i2c: E2 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: E2 0B 00 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: E2 0B 00 C5 34 00 DF 78 94 4F DD BF 98 CC 90 00 AF [09:54:39]RAPDU: DF 78 94 4F DD BF 98 CC 90 00 [09:54:39]wFMCommunicate OK [09:54:39]SAM_PROTO_SignData done [09:54:39]FM_MakeSignedData done [09:54:39]CreateOFDProtocolMessage [09:54:39]wFMCommunicate request_size=4 [09:54:39]MH_SAM_APDU [09:54:39]CAPDU: 80 11 00 00 [09:54:39]Write to MH i2c: E2 08 00 C6 34 80 11 00 00 00 00 00 00 74 [09:54:39]Write i2c OK [09:54:39]MH_I2C_Read... [09:54:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:39]Read from MH i2c: E2 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: E2 17 00 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: E2 17 00 C6 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CF [09:54:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:54:39]wFMCommunicate OK [09:54:39]CreateOFDProtocolMessage done [09:54:39]OFDSenderStorePacket 118122 [09:54:39]StoreOFDPacket docnum=118122 [09:54:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 49 CC 07 01 F5 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 E2 C3 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6A CD 01 00 35 04 06 00 0A 0A 4A 05 15 36 DF 78 94 4F DD BF 98 CC [09:54:39]CheckFolder [09:54:39]dirname=/storage/ofd_packets [09:54:39]CheckFolder done [09:54:39]ProducePacketName [09:54:39]name=ofd_packets/00118122 [09:54:39]NVStorageSaveData ofd_packets/00118122 [09:54:39]File name is /storage/ofd_packets/00118122 [09:54:39]Write 301 bytes [09:54:39]NVStorageSaveData done [09:54:39]OFDSenderStorePacket done [09:54:39]KKMCreateOFDPacket done [09:54:39]NVStorageSaveData kkm_last_timestamp [09:54:39]File name is /storage/kkm_last_timestamp [09:54:39]Write 4 bytes [09:54:39]NVStorageSaveData done [09:54:39]ExternCall_PrintAddStr [09:54:39]wPrintStart [09:54:39]Write to MH i2c: 01 00 00 C7 34 FB [09:54:39]Write i2c OK [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: 01 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: 01 07 00 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: 01 07 00 C7 34 00 00 00 00 00 FF 0F 10 [09:54:39]RasterBufferAndPrint [09:54:39]line Счет N : (1)948995 [09:54:39]line ИНН: 02508201610067 [09:54:39]line Контрольно-Кассовый Чек [09:54:39]line ПРОДАЖА [09:54:39]line ТРК (МРК, ГНК) : 31 [09:54:39]line Товар: 2710124130 [09:54:39]line Аи-92-К-4 [09:54:39]line 14.750 * 67.80 [09:54:39]line = 1000.05 [09:54:39]line НДС 12% НСП 1% [09:54:39]line > о реализуемом товаре [09:54:39]line ОКРУГЛЕНИЕ: -0.05 [09:54:39]line ИТОГО: 1000.00 [09:54:39]line Внесено: 1000.00 [09:54:39]line СДАЧА: 0.00 [09:54:39]line НСП 1% : 8.85 [09:54:39]line НДС 12% : 106.20 [09:54:39]line Наличными: 1000.00 [09:54:40]line Безнал.: 0.00 [09:54:40]line Место: АЗС № 134 "Партнер Нефть" [09:54:40]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:54:40]line СНО: Общий режим [09:54:40]line Чек 65 27.07.2024 09:54 [09:54:40]line Смена: 432 ФФД: 1.0 [09:54:40]line ЗНМ: 0300000044 [09:54:40]line РНМ: 0000000000092660 [09:54:40]line Версия ККМ: 001 [09:54:40]line ФМ: 0000000000874939 [09:54:40]line ФД: 118122 [09:54:40]line ФПД: 11039307797814 [09:54:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T095442&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118122&fm=11039307797814&tin=02508201610067®Number=0000000000092660&sum=100000 [09:54:40]OFD Sender: Processing packet 118122 [packets to send 85, broken 84] [09:54:40]ProducePacketName [09:54:40]name=ofd_packets/00118122 [09:54:40]OFD Sender: To server: pG, [09:54:40]CommunicateWithHost lk.salyk.kg:30040 [09:54:40]ConnectInit lk.salyk.kg [09:54:40]written 0, free lines is 4095 [09:54:40]Connected sock=10 [09:54:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 49 CC 07 01 F5 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 E2 C3 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6A CD 01 00 35 04 06 00 0A 0A 4A 05 15 36 DF 78 94 4F DD BF 98 CC [09:54:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D8 73 47 00 0F F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6A CD 01 00 F4 03 04 00 75 71 A4 66 B6 04 01 00 00 91 77 1F B7 00 41 A8 FA [09:54:40]CommunicateWithHost err = 0 [09:54:40]CheckOFDResponse [09:54:40]1017 (14) - 77093643461234 [09:54:40]1041 (16) - 0000000000874939 [09:54:40]1040 (4) - 118122 [09:54:40]1012 (4) - 27.07.2024 04:03 [09:54:40]1206 (1) - 0 [09:54:40]OFD Sender: Remove packet 118122 [09:54:40]ProducePacketName [09:54:40]name=ofd_packets/00118122 [09:54:40]NVStorageDeleteData [09:54:40]Write to MH i2c: 01 00 00 F1 34 25 [09:54:40]Write i2c OK [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: 01 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: 01 07 00 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: 01 07 00 F1 34 00 00 00 00 00 EC 0C 24 [09:54:40]RasterBufferAndPrint [09:54:40]line [09:54:40]line [09:54:40]line [09:54:40]line [09:54:40]line [09:54:40]written 0, free lines is 3315 [09:54:40]MH_Cut [09:54:40]Write to MH i2c: D1 01 00 F8 34 01 FE [09:54:40]Write i2c OK [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: D1 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: D1 01 00 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: D1 01 00 F8 34 00 FD [09:54:40]Write to MH i2c: 01 00 00 F9 34 2D [09:54:40]Write i2c OK [09:54:40]MH_I2C_Read... [09:54:41]OFD Sender: No OFD packet to send [09:54:41]*** Cut start [09:54:41]*** Partial cut [09:54:41]*** CUTSNS_PIN = 1 [09:54:41]*** CUTSNS_PIN = 0 [09:54:41]*** Brake cut motor [09:54:42]Read from MH i2c: 01 [09:54:42]MH_I2C_Read... [09:54:42]*** Stop cut motor [09:54:42]*** Cut end [09:54:42]Read from MH i2c: 01 07 00 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: 01 07 00 F9 34 00 00 00 00 00 FF 0F 42 [09:54:42]process_action close_receipt done [09:54:42]requested_data is exist [09:54:42]produce_requested_data [09:54:42]requested_item fm.sn is exist - process it [09:54:42]wFMCommunicate request_size=4 [09:54:42]MH_SAM_APDU [09:54:42]CAPDU: 80 11 00 00 [09:54:42]Write to MH i2c: E2 08 00 FA 34 80 11 00 00 00 00 00 00 A8 [09:54:42]Write i2c OK [09:54:42]MH_I2C_Read... [09:54:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:42]Read from MH i2c: E2 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 17 00 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 17 00 FA 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 03 [09:54:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:54:42]wFMCommunicate OK [09:54:42]requested_item fd.num is exist - process it [09:54:42]SAM_PROTO_GetFieldsCounters [09:54:42]wFMCommunicate request_size=4 [09:54:42]MH_SAM_APDU [09:54:42]CAPDU: 80 13 00 00 [09:54:42]Write to MH i2c: E2 08 00 FB 34 80 13 00 00 00 00 00 00 AB [09:54:42]Write i2c OK [09:54:42]MH_I2C_Read... [09:54:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:42]Read from MH i2c: E2 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 62 00 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 62 00 FB 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6A CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [09:54:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6A CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:54:42]wFMCommunicate OK [09:54:42]SAM_PROTO_GetFieldsCounters done [09:54:42]requested_item shift.num is exist - process it [09:54:42]requested_item shift.opened is exist - process it [09:54:42]req_shift_opened [09:54:42]FM_GetShiftState [09:54:42]SAM_PROTO_GetShiftState [09:54:42]wFMCommunicate request_size=4 [09:54:42]MH_SAM_APDU [09:54:42]CAPDU: 80 13 01 00 [09:54:42]Write to MH i2c: E2 08 00 FC 34 80 13 01 00 00 00 00 00 AD [09:54:42]Write i2c OK [09:54:42]MH_I2C_Read... [09:54:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:42]Read from MH i2c: E2 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 0E 00 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 0E 00 FC 34 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 3A [09:54:42]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:54:42]wFMCommunicate OK [09:54:42]SAM_PROTO_GetShiftState done [09:54:42]FM_GetShiftState done [09:54:42]req_shift_opened done [09:54:42]requested_item shift.open_date is exist - process it [09:54:42]req_shift_open_date [09:54:42]req_shift_open_date done [09:54:42]produce_requested_data done [09:54:42]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118122,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [09:54:42]process_action_free close_receipt [09:54:42]json_value_free [09:54:42]json_value_free done [09:54:42]process_json_proto returns [09:54:42]Send response to host [09:54:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118122,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [09:54:42]free response buf [09:54:42]execute_script done [09:54:42]execute_script returns [09:54:42]free content buf [09:54:42]Sock 9.Close socket [09:54:42]Sock 9.Thread stoped [09:54:46]OFD Sender: No OFD packet to send [09:54:51]OFD Sender: No OFD packet to send [09:54:56]OFD Sender: No OFD packet to send [09:55:01]OFD Sender: No OFD packet to send [09:55:06]OFD Sender: No OFD packet to send [09:55:11]OFD Sender: No OFD packet to send [09:55:16]OFD Sender: No OFD packet to send [09:55:21]OFD Sender: No OFD packet to send [09:55:26]OFD Sender: No OFD packet to send [09:55:31]OFD Sender: No OFD packet to send [09:55:36]OFD Sender: No OFD packet to send [09:55:41]OFD Sender: No OFD packet to send [09:55:46]OFD Sender: No OFD packet to send [09:55:51]OFD Sender: No OFD packet to send [09:55:56]OFD Sender: No OFD packet to send [09:56:01]OFD Sender: No OFD packet to send [09:56:06]OFD Sender: No OFD packet to send [09:56:11]OFD Sender: No OFD packet to send [09:56:16]OFD Sender: No OFD packet to send [09:56:21]OFD Sender: No OFD packet to send [09:56:26]OFD Sender: No OFD packet to send [09:56:31]OFD Sender: No OFD packet to send [09:56:36]OFD Sender: No OFD packet to send [09:56:41]OFD Sender: No OFD packet to send [09:56:46]OFD Sender: No OFD packet to send [09:56:51]OFD Sender: No OFD packet to send [09:56:56]OFD Sender: No OFD packet to send [09:57:01]OFD Sender: No OFD packet to send [09:57:06]OFD Sender: No OFD packet to send [09:57:11]OFD Sender: No OFD packet to send [09:57:16]OFD Sender: No OFD packet to send [09:57:21]OFD Sender: No OFD packet to send [09:57:26]OFD Sender: No OFD packet to send [09:57:31]OFD Sender: No OFD packet to send [09:57:36]OFD Sender: No OFD packet to send [09:57:41]OFD Sender: No OFD packet to send [09:57:46]OFD Sender: No OFD packet to send [09:57:51]OFD Sender: No OFD packet to send [09:57:56]OFD Sender: No OFD packet to send [09:58:01]OFD Sender: No OFD packet to send [09:58:06]OFD Sender: No OFD packet to send [09:58:11]OFD Sender: No OFD packet to send [09:58:16]OFD Sender: No OFD packet to send [09:58:21]OFD Sender: No OFD packet to send [09:58:26]OFD Sender: No OFD packet to send [09:58:31]OFD Sender: No OFD packet to send [09:58:36]OFD Sender: No OFD packet to send [09:58:41]OFD Sender: No OFD packet to send [09:58:46]OFD Sender: No OFD packet to send [09:58:51]OFD Sender: No OFD packet to send [09:58:56]OFD Sender: No OFD packet to send [09:59:01]OFD Sender: No OFD packet to send [09:59:06]OFD Sender: No OFD packet to send [09:59:11]OFD Sender: No OFD packet to send [09:59:16]OFD Sender: No OFD packet to send [09:59:21]accept exits with 7 [09:59:21]New connection [09:59:21]New thread 3067284836 created [09:59:21]Thread 3067428196 joined [09:59:21]Waiting for new connection... [09:59:21] Sock 7.Parse request [09:59:21]Sock 7.Check first char [09:59:21]Sock 7.First char is OK [09:59:21]request: POST /json_proto HTTP/1.0 [09:59:21]Method: POST [09:59:21]URL: /json_proto [09:59:21]Method is POST - this is cgi request [09:59:21]url: /json_proto [09:59:21]query_string will be loaded in cgi processing [09:59:21]execute_cgi json_proto POST (null) [09:59:21]execute_cgi path=json_proto method=POST [09:59:21]POST find Content-Length [09:59:21]Host: 172.17.45.7:8080 [09:59:21]Content-Length: 682 [09:59:21]Content-Type: application/json [09:59:21] [09:59:21]POST finish read [09:59:21]Found Content-Length = 682 [09:59:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 36.880, "sum" : 2500.46, "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" ] } } [09:59:21]execute_script... [09:59: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)948996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 36.880, "sum" : 2500.46, "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" ] } } [09:59:21]POST & json_proto [09:59:21]process_json_proto [09:59:21]json parsed OK: [09:59:21]protocol is kg_v1.0 [09:59:21]action value=close_receipt [09:59:21]process_action close_receipt [09:59:21]cmd_close_receipt [09:59:21]MH_GetDate [09:59:21]Write to MH i2c: F0 00 00 FD 34 20 [09:59:21]Write i2c OK [09:59:21]MH_I2C_Read... [09:59:21]Read from MH i2c: F0 [09:59:21]MH_I2C_Read... [09:59:21]Read from MH i2c: F0 09 00 [09:59:21]MH_I2C_Read... [09:59:21]Read from MH i2c: F0 09 00 FD 34 00 FD C4 A4 66 90 0F 3E 66 37 [09:59:21]GetLastDocTimeStamp 1722074082 [09:59:21]current date 1722074365 [09:59:21]FM_GetShiftState [09:59:21]SAM_PROTO_GetShiftState [09:59:21]wFMCommunicate request_size=4 [09:59:21]MH_SAM_APDU [09:59:21]CAPDU: 80 13 01 00 [09:59:21]Write to MH i2c: E2 08 00 FE 34 80 13 01 00 00 00 00 00 AF [09:59:21]Write i2c OK [09:59:21]MH_I2C_Read... [09:59:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:21]Read from MH i2c: E2 [09:59:21]MH_I2C_Read... [09:59:21]Read from MH i2c: E2 0E 00 [09:59:21]MH_I2C_Read... [09:59:21]Read from MH i2c: E2 0E 00 FE 34 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 3C [09:59:21]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:59:21]wFMCommunicate OK [09:59:21]SAM_PROTO_GetShiftState done [09:59:21]FM_GetShiftState done [09:59:21]opened in 1722038845 [09:59:21]opened+sec_in_day 1722125245 [09:59:21]quantity*price = 250046 [09:59:21]sum+1 = 250047 [09:59:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 66 27.07.2024 09:59 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118123 ФПД: 24112457427375 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T095925&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118123&fm=24112457427375&tin=02508201610067®Number=0000000000092660&sum=250000 [09:59:22]StoreToDocumentArchive [09:59:22]shift 432 fd 118123 [09:59:22]save to /storage/0432/doc_00118123 [09:59:22]save last doc name /storage/0432/doc_00118123 to /storage/kkm_last_doc_name [09:59:22]save OK [09:59:22]Clear old archive folders... [09:59:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:59:22]tlvbuf is 0077AB90 [09:59:22]SAM_PROTO_ClearQueue [09:59:22]wFMCommunicate request_size=4 [09:59:22]MH_SAM_APDU [09:59:22]CAPDU: 80 09 00 00 [09:59:22]Write to MH i2c: E2 08 00 0B 35 80 09 00 00 00 00 00 00 B2 [09:59:22]Write i2c OK [09:59:22]MH_I2C_Read... [09:59:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:22]Read from MH i2c: E2 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: E2 03 00 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: E2 03 00 0B 35 00 90 00 B4 [09:59:22]RAPDU: 90 00 [09:59:22]wFMCommunicate OK [09:59:22]SAM_PROTO_ClearQueue done [09:59:22]KKMCreateOFDPacket [09:59:22]OFDProtocolAddRootSTLVToBuf [09:59:22]FM_MakeSignedData [09:59:22]FM_MakeSignedData [09:59:22]SAM_PROTO_SignData [09:59:22]wFMCommunicate request_size=4 [09:59:22]MH_SAM_APDU [09:59:22]CAPDU: 80 0D 01 02 [09:59:22]Write to MH i2c: E2 08 00 0C 35 80 0D 01 02 00 00 00 00 BA [09:59:22]Write i2c OK [09:59:22]MH_I2C_Read... [09:59:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:22]Read from MH i2c: E2 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: E2 03 00 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: E2 03 00 0C 35 00 90 00 B5 [09:59:22]RAPDU: 90 00 [09:59:22]wFMCommunicate OK [09:59:22]wFMCommunicate request_size=255 [09:59:22]MH_SAM_APDU [09:59: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 34 FF 03 08 00 03 10 90 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BE D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 FD C4 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6B CD 01 00 35 04 06 00 15 [09:59:22]Write to MH i2c: E2 02 01 0D 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 90 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BE D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 FD C4 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6B CD 01 00 35 04 06 00 15 00 00 30 [09:59:22]Write i2c OK [09:59:22]MH_I2C_Read... [09:59:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:22]Read from MH i2c: E2 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: E2 03 00 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: E2 03 00 0D 35 00 90 00 B6 [09:59:22]RAPDU: 90 00 [09:59:22]wFMCommunicate OK [09:59:22]wFMCommunicate request_size=10 [09:59:22]MH_SAM_APDU [09:59:22]CAPDU: 80 0D 02 02 05 EE 1E 75 A9 AF [09:59:22]Write to MH i2c: E2 0D 00 0E 35 80 0D 02 02 05 00 EE 1E 75 A9 AF 00 00 A0 [09:59:22]Write i2c OK [09:59:22]MH_I2C_Read... [09:59:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:22]Read from MH i2c: E2 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: E2 03 00 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: E2 03 00 0E 35 00 90 00 B7 [09:59:22]RAPDU: 90 00 [09:59:22]wFMCommunicate OK [09:59:22]wFMCommunicate request_size=4 [09:59:22]MH_SAM_APDU [09:59:22]CAPDU: 80 0D 03 02 [09:59:22]Write to MH i2c: E2 08 00 0F 35 80 0D 03 02 00 00 00 00 BF [09:59:22]Write i2c OK [09:59:22]MH_I2C_Read... [09:59:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:22]Read from MH i2c: E2 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: E2 0B 00 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: E2 0B 00 0F 35 00 54 B1 FB 66 16 86 E1 23 90 00 C6 [09:59:22]RAPDU: 54 B1 FB 66 16 86 E1 23 90 00 [09:59:22]wFMCommunicate OK [09:59:22]SAM_PROTO_SignData done [09:59:22]FM_MakeSignedData done [09:59:22]CreateOFDProtocolMessage [09:59:22]wFMCommunicate request_size=4 [09:59:22]MH_SAM_APDU [09:59:22]CAPDU: 80 11 00 00 [09:59:22]Write to MH i2c: E2 08 00 10 35 80 11 00 00 00 00 00 00 BF [09:59:22]Write i2c OK [09:59:22]MH_I2C_Read... [09:59:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:22]Read from MH i2c: E2 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: E2 17 00 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: E2 17 00 10 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1A [09:59:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:59:22]wFMCommunicate OK [09:59:22]CreateOFDProtocolMessage done [09:59:22]OFDSenderStorePacket 118123 [09:59:22]StoreOFDPacket docnum=118123 [09:59:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 AE 72 07 01 78 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 90 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BE D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 FD C4 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6B CD 01 00 35 04 06 00 15 EE 1E 75 A9 AF 54 B1 FB 66 16 86 E1 23 [09:59:22]CheckFolder [09:59:22]dirname=/storage/ofd_packets [09:59:22]CheckFolder done [09:59:22]ProducePacketName [09:59:22]name=ofd_packets/00118123 [09:59:22]NVStorageSaveData ofd_packets/00118123 [09:59:22]File name is /storage/ofd_packets/00118123 [09:59:22]Write 301 bytes [09:59:22]NVStorageSaveData done [09:59:22]OFDSenderStorePacket done [09:59:22]KKMCreateOFDPacket done [09:59:22]NVStorageSaveData kkm_last_timestamp [09:59:22]File name is /storage/kkm_last_timestamp [09:59:22]Write 4 bytes [09:59:22]NVStorageSaveData done [09:59:22]ExternCall_PrintAddStr [09:59:22]wPrintStart [09:59:22]Write to MH i2c: 01 00 00 11 35 46 [09:59:22]Write i2c OK [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: 01 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: 01 07 00 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: 01 07 00 11 35 00 00 00 00 00 FF 0F 5B [09:59:22]RasterBufferAndPrint [09:59:22]line Счет N : (1)948996 [09:59:22]line ИНН: 02508201610067 [09:59:22]line Контрольно-Кассовый Чек [09:59:22]line ПРОДАЖА [09:59:22]line ТРК (МРК, ГНК) : 51 [09:59:22]line Товар: 2710124130 [09:59:22]line Аи-92-К-4 [09:59:22]line 36.880 * 67.80 [09:59:22]line = 2500.46 [09:59:22]line НДС 12% НСП 1% [09:59:22]line > о реализуемом товаре [09:59:22]line ОКРУГЛЕНИЕ: -0.46 [09:59:22]line ИТОГО: 2500.00 [09:59:22]line Внесено: 2500.00 [09:59:22]line СДАЧА: 0.00 [09:59:22]line НСП 1% : 22.13 [09:59:22]line НДС 12% : 265.54 [09:59:22]line Наличными: 2500.00 [09:59:22]line Безнал.: 0.00 [09:59:22]line Место: АЗС № 134 "Партнер Нефть" [09:59:22]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:59:22]line СНО: Общий режим [09:59:22]line Чек 66 27.07.2024 09:59 [09:59:22]line Смена: 432 ФФД: 1.0 [09:59:22]line ЗНМ: 0300000044 [09:59:22]line РНМ: 0000000000092660 [09:59:22]line Версия ККМ: 001 [09:59:22]line ФМ: 0000000000874939 [09:59:22]line ФД: 118123 [09:59:22]line ФПД: 24112457427375 [09:59:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T095925&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118123&fm=24112457427375&tin=02508201610067®Number=0000000000092660&sum=250000 [09:59:23]OFD Sender: Processing packet 118123 [packets to send 85, broken 84] [09:59:23]ProducePacketName [09:59:23]name=ofd_packets/00118123 [09:59:23]OFD Sender: To server: pG, [09:59:23]CommunicateWithHost lk.salyk.kg:30040 [09:59:23]ConnectInit lk.salyk.kg [09:59:23]written 0, free lines is 4095 [09:59:23]Connected sock=10 [09:59:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 AE 72 07 01 78 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 90 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BE D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 FD C4 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6B CD 01 00 35 04 06 00 15 EE 1E 75 A9 AF 54 B1 FB 66 16 86 E1 23 [09:59:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 25 21 47 00 E8 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6B CD 01 00 F4 03 04 00 90 72 A4 66 B6 04 01 00 00 48 77 B3 5B 77 C6 AF 6C [09:59:23]CommunicateWithHost err = 0 [09:59:23]CheckOFDResponse [09:59:23]1017 (14) - 77093643461234 [09:59:23]1041 (16) - 0000000000874939 [09:59:23]1040 (4) - 118123 [09:59:23]1012 (4) - 27.07.2024 04:07 [09:59:23]1206 (1) - 0 [09:59:23]OFD Sender: Remove packet 118123 [09:59:23]ProducePacketName [09:59:23]name=ofd_packets/00118123 [09:59:23]NVStorageDeleteData [09:59:23]Write to MH i2c: 01 00 00 3B 35 70 [09:59:23]Write i2c OK [09:59:23]MH_I2C_Read... [09:59:23]Read from MH i2c: 01 [09:59:23]MH_I2C_Read... [09:59:23]Read from MH i2c: 01 07 00 [09:59:23]MH_I2C_Read... [09:59:23]Read from MH i2c: 01 07 00 3B 35 00 00 00 00 00 E3 0C 66 [09:59:23]RasterBufferAndPrint [09:59:23]line [09:59:23]line [09:59:23]line [09:59:23]line [09:59:23]line [09:59:23]written 0, free lines is 3306 [09:59:23]MH_Cut [09:59:23]Write to MH i2c: D1 01 00 42 35 01 49 [09:59:23]Write i2c OK [09:59:23]MH_I2C_Read... [09:59:23]Read from MH i2c: D1 [09:59:23]MH_I2C_Read... [09:59:23]Read from MH i2c: D1 01 00 [09:59:23]MH_I2C_Read... [09:59:23]Read from MH i2c: D1 01 00 42 35 00 48 [09:59:23]Write to MH i2c: 01 00 00 43 35 78 [09:59:23]Write i2c OK [09:59:23]MH_I2C_Read... [09:59:24]OFD Sender: No OFD packet to send [09:59:24]*** Cut start [09:59:24]*** Partial cut [09:59:24]*** CUTSNS_PIN = 1 [09:59:24]*** CUTSNS_PIN = 0 [09:59:24]*** Brake cut motor [09:59:25]Read from MH i2c: 01 [09:59:25]MH_I2C_Read... [09:59:25]*** Stop cut motor [09:59:25]*** Cut end [09:59:25]Read from MH i2c: 01 07 00 [09:59:25]MH_I2C_Read... [09:59:25]Read from MH i2c: 01 07 00 43 35 00 00 00 00 00 FF 0F 8D [09:59:25]process_action close_receipt done [09:59:25]requested_data is exist [09:59:25]produce_requested_data [09:59:25]requested_item fm.sn is exist - process it [09:59:25]wFMCommunicate request_size=4 [09:59:25]MH_SAM_APDU [09:59:25]CAPDU: 80 11 00 00 [09:59:25]Write to MH i2c: E2 08 00 44 35 80 11 00 00 00 00 00 00 F3 [09:59:25]Write i2c OK [09:59:25]MH_I2C_Read... [09:59:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:25]Read from MH i2c: E2 [09:59:25]MH_I2C_Read... [09:59:25]Read from MH i2c: E2 17 00 [09:59:25]MH_I2C_Read... [09:59:25]Read from MH i2c: E2 17 00 44 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4E [09:59:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:59:25]wFMCommunicate OK [09:59:25]requested_item fd.num is exist - process it [09:59:25]SAM_PROTO_GetFieldsCounters [09:59:25]wFMCommunicate request_size=4 [09:59:25]MH_SAM_APDU [09:59:25]CAPDU: 80 13 00 00 [09:59:25]Write to MH i2c: E2 08 00 45 35 80 13 00 00 00 00 00 00 F6 [09:59:25]Write i2c OK [09:59:25]MH_I2C_Read... [09:59:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:25]Read from MH i2c: E2 [09:59:25]MH_I2C_Read... [09:59:25]Read from MH i2c: E2 62 00 [09:59:25]MH_I2C_Read... [09:59:25]Read from MH i2c: E2 62 00 45 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6B CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [09:59:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6B CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:59:25]wFMCommunicate OK [09:59:25]SAM_PROTO_GetFieldsCounters done [09:59:25]requested_item shift.num is exist - process it [09:59:25]requested_item shift.opened is exist - process it [09:59:25]req_shift_opened [09:59:25]FM_GetShiftState [09:59:25]SAM_PROTO_GetShiftState [09:59:25]wFMCommunicate request_size=4 [09:59:25]MH_SAM_APDU [09:59:25]CAPDU: 80 13 01 00 [09:59:25]Write to MH i2c: E2 08 00 46 35 80 13 01 00 00 00 00 00 F8 [09:59:25]Write i2c OK [09:59:25]MH_I2C_Read... [09:59:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:25]Read from MH i2c: E2 [09:59:25]MH_I2C_Read... [09:59:25]Read from MH i2c: E2 0E 00 [09:59:25]MH_I2C_Read... [09:59:25]Read from MH i2c: E2 0E 00 46 35 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 85 [09:59:25]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [09:59:25]wFMCommunicate OK [09:59:25]SAM_PROTO_GetShiftState done [09:59:25]FM_GetShiftState done [09:59:25]req_shift_opened done [09:59:25]requested_item shift.open_date is exist - process it [09:59:25]req_shift_open_date [09:59:25]req_shift_open_date done [09:59:25]produce_requested_data done [09:59:25]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118123,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [09:59:25]process_action_free close_receipt [09:59:25]json_value_free [09:59:25]json_value_free done [09:59:25]process_json_proto returns [09:59:25]Send response to host [09:59:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118123,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [09:59:25]free response buf [09:59:25]execute_script done [09:59:25]execute_script returns [09:59:25]free content buf [09:59:25]Sock 7.Close socket [09:59:25]Sock 7.Thread stoped [09:59:29]OFD Sender: No OFD packet to send [09:59:34]OFD Sender: No OFD packet to send [09:59:39]OFD Sender: No OFD packet to send [09:59:44]OFD Sender: No OFD packet to send [09:59:49]OFD Sender: No OFD packet to send [09:59:54]OFD Sender: No OFD packet to send [09:59:59]OFD Sender: No OFD packet to send [10:00:04]OFD Sender: No OFD packet to send [10:00:09]OFD Sender: No OFD packet to send [10:00:14]OFD Sender: No OFD packet to send [10:00:19]OFD Sender: No OFD packet to send [10:00:24]OFD Sender: No OFD packet to send [10:00:29]OFD Sender: No OFD packet to send [10:00:34]OFD Sender: No OFD packet to send [10:00:39]OFD Sender: No OFD packet to send [10:00:44]OFD Sender: No OFD packet to send [10:00:49]OFD Sender: No OFD packet to send [10:00:54]OFD Sender: No OFD packet to send [10:00:59]OFD Sender: No OFD packet to send [10:01:04]OFD Sender: No OFD packet to send [10:01:09]OFD Sender: No OFD packet to send [10:01:14]OFD Sender: No OFD packet to send [10:01:19]OFD Sender: No OFD packet to send [10:01:24]OFD Sender: No OFD packet to send [10:01:29]OFD Sender: No OFD packet to send [10:01:34]OFD Sender: No OFD packet to send [10:01:39]OFD Sender: No OFD packet to send [10:01:44]OFD Sender: No OFD packet to send [10:01:49]OFD Sender: No OFD packet to send [10:01:54]OFD Sender: No OFD packet to send [10:01:59]OFD Sender: No OFD packet to send [10:02:04]OFD Sender: No OFD packet to send [10:02:09]OFD Sender: No OFD packet to send [10:02:14]OFD Sender: No OFD packet to send [10:02:19]OFD Sender: No OFD packet to send [10:02:24]OFD Sender: No OFD packet to send [10:02:29]OFD Sender: No OFD packet to send [10:02:34]OFD Sender: No OFD packet to send [10:02:39]OFD Sender: No OFD packet to send [10:02:44]OFD Sender: No OFD packet to send [10:02:49]OFD Sender: No OFD packet to send [10:02:54]OFD Sender: No OFD packet to send [10:02:59]OFD Sender: No OFD packet to send [10:03:04]OFD Sender: No OFD packet to send [10:03:09]OFD Sender: No OFD packet to send [10:03:14]OFD Sender: No OFD packet to send [10:03:19]OFD Sender: No OFD packet to send [10:03:24]OFD Sender: No OFD packet to send [10:03:29]OFD Sender: No OFD packet to send [10:03:34]OFD Sender: No OFD packet to send [10:03:39]OFD Sender: No OFD packet to send [10:03:44]OFD Sender: No OFD packet to send [10:03:49]OFD Sender: No OFD packet to send [10:03:54]OFD Sender: No OFD packet to send [10:03:59]OFD Sender: No OFD packet to send [10:04:04]OFD Sender: No OFD packet to send [10:04:09]OFD Sender: No OFD packet to send [10:04:14]OFD Sender: No OFD packet to send [10:04:19]OFD Sender: No OFD packet to send [10:04:24]OFD Sender: No OFD packet to send [10:04:29]OFD Sender: No OFD packet to send [10:04:34]OFD Sender: No OFD packet to send [10:04:39]OFD Sender: No OFD packet to send [10:04:44]OFD Sender: No OFD packet to send [10:04:49]OFD Sender: No OFD packet to send [10:04:54]OFD Sender: No OFD packet to send [10:04:59]OFD Sender: No OFD packet to send [10:05:04]OFD Sender: No OFD packet to send [10:05:09]OFD Sender: No OFD packet to send [10:05:14]OFD Sender: No OFD packet to send [10:05:19]OFD Sender: No OFD packet to send [10:05:24]OFD Sender: No OFD packet to send [10:05:29]OFD Sender: No OFD packet to send [10:05:34]OFD Sender: No OFD packet to send [10:05:39]OFD Sender: No OFD packet to send [10:05:44]OFD Sender: No OFD packet to send [10:05:49]OFD Sender: No OFD packet to send [10:05:54]OFD Sender: No OFD packet to send [10:05:59]OFD Sender: No OFD packet to send [10:06:04]OFD Sender: No OFD packet to send [10:06:09]OFD Sender: No OFD packet to send [10:06:14]OFD Sender: No OFD packet to send [10:06:19]OFD Sender: No OFD packet to send [10:06:24]OFD Sender: No OFD packet to send [10:06:29]OFD Sender: No OFD packet to send [10:06:34]OFD Sender: No OFD packet to send [10:06:39]OFD Sender: No OFD packet to send [10:06:44]OFD Sender: No OFD packet to send [10:06:49]OFD Sender: No OFD packet to send [10:06:54]OFD Sender: No OFD packet to send [10:06:59]OFD Sender: No OFD packet to send [10:07:04]OFD Sender: No OFD packet to send [10:07:09]OFD Sender: No OFD packet to send [10:07:14]OFD Sender: No OFD packet to send [10:07:19]OFD Sender: No OFD packet to send [10:07:24]OFD Sender: No OFD packet to send [10:07:29]OFD Sender: No OFD packet to send [10:07:34]OFD Sender: No OFD packet to send [10:07:39]OFD Sender: No OFD packet to send [10:07:44]OFD Sender: No OFD packet to send [10:07:49]OFD Sender: No OFD packet to send [10:07:54]OFD Sender: No OFD packet to send [10:07:59]OFD Sender: No OFD packet to send [10:08:04]OFD Sender: No OFD packet to send [10:08:09]OFD Sender: No OFD packet to send [10:08:14]OFD Sender: No OFD packet to send [10:08:19]OFD Sender: No OFD packet to send [10:08:24]OFD Sender: No OFD packet to send [10:08:29]OFD Sender: No OFD packet to send [10:08:34]OFD Sender: No OFD packet to send [10:08:39]OFD Sender: No OFD packet to send [10:08:44]OFD Sender: No OFD packet to send [10:08:49]OFD Sender: No OFD packet to send [10:08:54]OFD Sender: No OFD packet to send [10:08:59]OFD Sender: No OFD packet to send [10:09:02]accept exits with 9 [10:09:02]New connection [10:09:02]New thread 3067428196 created [10:09:02]Thread 3067284836 joined [10:09:02]Waiting for new connection... [10:09:02] Sock 9.Parse request [10:09:02]Sock 9.Check first char [10:09:02]Sock 9.First char is OK [10:09:02]request: POST /json_proto HTTP/1.0 [10:09:02]Method: POST [10:09:02]URL: /json_proto [10:09:02]Method is POST - this is cgi request [10:09:02]url: /json_proto [10:09:02]query_string will be loaded in cgi processing [10:09:02]execute_cgi json_proto POST (null) [10:09:02]execute_cgi path=json_proto method=POST [10:09:02]POST find Content-Length [10:09:02]Host: 172.17.45.7:8080 [10:09:02]Content-Length: 674 [10:09:02]Content-Type: application/json [10:09:02] [10:09:02]POST finish read [10:09:02]Found Content-Length = 674 [10:09:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "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:09:02]execute_script... [10:09: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)948997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "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:09:02]POST & json_proto [10:09:02]process_json_proto [10:09:02]json parsed OK: [10:09:02]protocol is kg_v1.0 [10:09:02]action value=close_receipt [10:09:02]process_action close_receipt [10:09:02]cmd_close_receipt [10:09:02]MH_GetDate [10:09:02]Write to MH i2c: F0 00 00 47 35 6B [10:09:02]Write i2c OK [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: F0 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: F0 09 00 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: F0 09 00 47 35 00 42 C7 A4 66 90 0F 3E 66 CA [10:09:02]GetLastDocTimeStamp 1722074365 [10:09:02]current date 1722074946 [10:09:02]FM_GetShiftState [10:09:02]SAM_PROTO_GetShiftState [10:09:02]wFMCommunicate request_size=4 [10:09:02]MH_SAM_APDU [10:09:02]CAPDU: 80 13 01 00 [10:09:02]Write to MH i2c: E2 08 00 48 35 80 13 01 00 00 00 00 00 FA [10:09:02]Write i2c OK [10:09:02]MH_I2C_Read... [10:09:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:02]Read from MH i2c: E2 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 0E 00 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 0E 00 48 35 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 87 [10:09:02]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:09:02]wFMCommunicate OK [10:09:02]SAM_PROTO_GetShiftState done [10:09:02]FM_GetShiftState done [10:09:02]opened in 1722038845 [10:09:02]opened+sec_in_day 1722125245 [10:09:02]quantity*price = 40005 [10:09:02]sum+1 = 40006 [10:09:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 67 27.07.2024 10:09 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118124 ФПД: 123740714960216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T100906&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118124&fm=123740714960216&tin=02508201610067®Number=0000000000092660&sum=40000 [10:09:03]StoreToDocumentArchive [10:09:03]shift 432 fd 118124 [10:09:03]save to /storage/0432/doc_00118124 [10:09:03]save last doc name /storage/0432/doc_00118124 to /storage/kkm_last_doc_name [10:09:03]save OK [10:09:03]Clear old archive folders... [10:09:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:09:03]tlvbuf is 006D5EB0 [10:09:03]SAM_PROTO_ClearQueue [10:09:03]wFMCommunicate request_size=4 [10:09:03]MH_SAM_APDU [10:09:03]CAPDU: 80 09 00 00 [10:09:03]Write to MH i2c: E2 08 00 55 35 80 09 00 00 00 00 00 00 FC [10:09:03]Write i2c OK [10:09:03]MH_I2C_Read... [10:09:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:03]Read from MH i2c: E2 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: E2 03 00 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: E2 03 00 55 35 00 90 00 FE [10:09:03]RAPDU: 90 00 [10:09:03]wFMCommunicate OK [10:09:03]SAM_PROTO_ClearQueue done [10:09:03]KKMCreateOFDPacket [10:09:03]OFDProtocolAddRootSTLVToBuf [10:09:03]FM_MakeSignedData [10:09:03]FM_MakeSignedData [10:09:03]SAM_PROTO_SignData [10:09:03]wFMCommunicate request_size=4 [10:09:03]MH_SAM_APDU [10:09:03]CAPDU: 80 0D 01 02 [10:09:03]Write to MH i2c: E2 08 00 56 35 80 0D 01 02 00 00 00 00 04 [10:09:03]Write i2c OK [10:09:03]MH_I2C_Read... [10:09:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:03]Read from MH i2c: E2 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: E2 03 00 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: E2 03 00 56 35 00 90 00 FF [10:09:03]RAPDU: 90 00 [10:09:03]wFMCommunicate OK [10:09:03]wFMCommunicate request_size=255 [10:09:03]MH_SAM_APDU [10:09: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 42 C7 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6C CD 01 00 35 04 06 00 70 8A A1 5C [10:09:03]Write to MH i2c: E2 02 01 57 35 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 42 C7 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6C CD 01 00 35 04 06 00 70 8A A1 5C 00 00 BF [10:09:03]Write i2c OK [10:09:03]MH_I2C_Read... [10:09:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:03]Read from MH i2c: E2 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: E2 03 00 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: E2 03 00 57 35 00 90 00 00 [10:09:03]RAPDU: 90 00 [10:09:03]wFMCommunicate OK [10:09:03]wFMCommunicate request_size=7 [10:09:03]MH_SAM_APDU [10:09:03]CAPDU: 80 0D 02 02 02 05 58 [10:09:03]Write to MH i2c: E2 0A 00 58 35 80 0D 02 02 02 00 05 58 00 00 68 [10:09:03]Write i2c OK [10:09:03]MH_I2C_Read... [10:09:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:03]Read from MH i2c: E2 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: E2 03 00 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: E2 03 00 58 35 00 90 00 01 [10:09:03]RAPDU: 90 00 [10:09:03]wFMCommunicate OK [10:09:03]wFMCommunicate request_size=4 [10:09:03]MH_SAM_APDU [10:09:03]CAPDU: 80 0D 03 02 [10:09:03]Write to MH i2c: E2 08 00 59 35 80 0D 03 02 00 00 00 00 09 [10:09:03]Write i2c OK [10:09:03]MH_I2C_Read... [10:09:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:03]Read from MH i2c: E2 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: E2 0B 00 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: E2 0B 00 59 35 00 13 A2 83 23 77 B5 AD DC 90 00 1A [10:09:03]RAPDU: 13 A2 83 23 77 B5 AD DC 90 00 [10:09:03]wFMCommunicate OK [10:09:03]SAM_PROTO_SignData done [10:09:03]FM_MakeSignedData done [10:09:03]CreateOFDProtocolMessage [10:09:03]wFMCommunicate request_size=4 [10:09:03]MH_SAM_APDU [10:09:03]CAPDU: 80 11 00 00 [10:09:03]Write to MH i2c: E2 08 00 5A 35 80 11 00 00 00 00 00 00 09 [10:09:03]Write i2c OK [10:09:03]MH_I2C_Read... [10:09:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:03]Read from MH i2c: E2 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: E2 17 00 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: E2 17 00 5A 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 64 [10:09:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:09:03]wFMCommunicate OK [10:09:03]CreateOFDProtocolMessage done [10:09:03]OFDSenderStorePacket 118124 [10:09:03]StoreOFDPacket docnum=118124 [10:09:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 39 67 04 01 CE 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 42 C7 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6C CD 01 00 35 04 06 00 70 8A A1 5C 05 58 13 A2 83 23 77 B5 AD DC [10:09:03]CheckFolder [10:09:03]dirname=/storage/ofd_packets [10:09:03]CheckFolder done [10:09:03]ProducePacketName [10:09:03]name=ofd_packets/00118124 [10:09:03]NVStorageSaveData ofd_packets/00118124 [10:09:03]File name is /storage/ofd_packets/00118124 [10:09:03]Write 298 bytes [10:09:03]NVStorageSaveData done [10:09:03]OFDSenderStorePacket done [10:09:03]KKMCreateOFDPacket done [10:09:03]NVStorageSaveData kkm_last_timestamp [10:09:03]File name is /storage/kkm_last_timestamp [10:09:03]Write 4 bytes [10:09:03]NVStorageSaveData done [10:09:03]ExternCall_PrintAddStr [10:09:03]wPrintStart [10:09:03]Write to MH i2c: 01 00 00 5B 35 90 [10:09:03]Write i2c OK [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: 01 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: 01 07 00 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: 01 07 00 5B 35 00 00 00 00 00 FF 0F A5 [10:09:03]RasterBufferAndPrint [10:09:03]line Счет N : (1)948997 [10:09:03]line ИНН: 02508201610067 [10:09:03]line Контрольно-Кассовый Чек [10:09:03]line ПРОДАЖА [10:09:03]line ТРК (МРК, ГНК) : 34 [10:09:03]line Товар: 2710194800 [10:09:03]line ДТ-К-5 [10:09:03]line 5.250 * 76.20 [10:09:03]line = 400.05 [10:09:03]line НДС 12% НСП 1% [10:09:03]line > о реализуемом товаре [10:09:03]line ОКРУГЛЕНИЕ: -0.05 [10:09:03]line ИТОГО: 400.00 [10:09:03]line Внесено: 400.00 [10:09:03]line СДАЧА: 0.00 [10:09:03]line НСП 1% : 3.54 [10:09:03]line НДС 12% : 42.48 [10:09:03]line Наличными: 400.00 [10:09:03]line Безнал.: 0.00 [10:09:03]line Место: АЗС № 134 "Партнер Нефть" [10:09:03]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:09:03]line СНО: Общий режим [10:09:03]line Чек 67 27.07.2024 10:09 [10:09:03]line Смена: 432 ФФД: 1.0 [10:09:03]line ЗНМ: 0300000044 [10:09:03]line РНМ: 0000000000092660 [10:09:03]line Версия ККМ: 001 [10:09:03]line ФМ: 0000000000874939 [10:09:03]line ФД: 118124 [10:09:03]line ФПД: 123740714960216 [10:09:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T100906&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118124&fm=123740714960216&tin=02508201610067®Number=0000000000092660&sum=40000 [10:09:04]OFD Sender: Processing packet 118124 [packets to send 85, broken 84] [10:09:04]ProducePacketName [10:09:04]name=ofd_packets/00118124 [10:09:04]OFD Sender: To server: pG, [10:09:04]CommunicateWithHost lk.salyk.kg:30040 [10:09:04]ConnectInit lk.salyk.kg [10:09:04]written 0, free lines is 4095 [10:09:04]Connected sock=10 [10:09:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 39 67 04 01 CE 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 42 C7 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6C CD 01 00 35 04 06 00 70 8A A1 5C 05 58 13 A2 83 23 77 B5 AD DC [10:09:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 0F AB 47 00 0D C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6C CD 01 00 F4 03 04 00 D5 74 A4 66 B6 04 01 00 00 22 22 6E 25 2D 25 8B E7 [10:09:04]CommunicateWithHost err = 0 [10:09:04]CheckOFDResponse [10:09:04]1017 (14) - 77093643461234 [10:09:04]1041 (16) - 0000000000874939 [10:09:04]1040 (4) - 118124 [10:09:04]1012 (4) - 27.07.2024 04:17 [10:09:04]1206 (1) - 0 [10:09:04]OFD Sender: Remove packet 118124 [10:09:04]ProducePacketName [10:09:04]name=ofd_packets/00118124 [10:09:04]NVStorageDeleteData [10:09:04]Write to MH i2c: 01 00 00 85 35 BA [10:09:04]Write i2c OK [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: 01 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: 01 07 00 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: 01 07 00 85 35 00 00 00 00 00 F1 0C BE [10:09:04]RasterBufferAndPrint [10:09:04]line [10:09:04]line [10:09:04]line [10:09:04]line [10:09:04]line [10:09:04]written 0, free lines is 3319 [10:09:04]MH_Cut [10:09:04]Write to MH i2c: D1 01 00 8C 35 01 93 [10:09:04]Write i2c OK [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: D1 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: D1 01 00 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: D1 01 00 8C 35 00 92 [10:09:04]Write to MH i2c: 01 00 00 8D 35 C2 [10:09:04]Write i2c OK [10:09:04]MH_I2C_Read... [10:09:05]OFD Sender: No OFD packet to send [10:09:05]*** Cut start [10:09:05]*** Partial cut [10:09:05]*** CUTSNS_PIN = 1 [10:09:05]*** CUTSNS_PIN = 0 [10:09:05]*** Brake cut motor [10:09:06]Read from MH i2c: 01 [10:09:06]MH_I2C_Read... [10:09:06]*** Stop cut motor [10:09:06]*** Cut end [10:09:06]Read from MH i2c: 01 07 00 [10:09:06]MH_I2C_Read... [10:09:06]Read from MH i2c: 01 07 00 8D 35 00 00 00 00 00 FF 0F D7 [10:09:06]process_action close_receipt done [10:09:06]requested_data is exist [10:09:06]produce_requested_data [10:09:06]requested_item fm.sn is exist - process it [10:09:06]wFMCommunicate request_size=4 [10:09:06]MH_SAM_APDU [10:09:06]CAPDU: 80 11 00 00 [10:09:06]Write to MH i2c: E2 08 00 8E 35 80 11 00 00 00 00 00 00 3D [10:09:06]Write i2c OK [10:09:06]MH_I2C_Read... [10:09:06]Read from MH i2c: E2 [10:09:06]MH_I2C_Read... [10:09:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:06]Read from MH i2c: E2 17 00 [10:09:06]MH_I2C_Read... [10:09:06]Read from MH i2c: E2 17 00 8E 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 98 [10:09:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:09:06]wFMCommunicate OK [10:09:06]requested_item fd.num is exist - process it [10:09:06]SAM_PROTO_GetFieldsCounters [10:09:06]wFMCommunicate request_size=4 [10:09:06]MH_SAM_APDU [10:09:06]CAPDU: 80 13 00 00 [10:09:06]Write to MH i2c: E2 08 00 8F 35 80 13 00 00 00 00 00 00 40 [10:09:06]Write i2c OK [10:09:06]MH_I2C_Read... [10:09:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:06]Read from MH i2c: E2 [10:09:06]MH_I2C_Read... [10:09:06]Read from MH i2c: E2 62 00 [10:09:06]MH_I2C_Read... [10:09:06]Read from MH i2c: E2 62 00 8F 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6C CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [10:09:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6C CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:09:06]wFMCommunicate OK [10:09:06]SAM_PROTO_GetFieldsCounters done [10:09:06]requested_item shift.num is exist - process it [10:09:06]requested_item shift.opened is exist - process it [10:09:06]req_shift_opened [10:09:06]FM_GetShiftState [10:09:06]SAM_PROTO_GetShiftState [10:09:06]wFMCommunicate request_size=4 [10:09:06]MH_SAM_APDU [10:09:06]CAPDU: 80 13 01 00 [10:09:06]Write to MH i2c: E2 08 00 90 35 80 13 01 00 00 00 00 00 42 [10:09:06]Write i2c OK [10:09:06]MH_I2C_Read... [10:09:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:06]Read from MH i2c: E2 [10:09:06]MH_I2C_Read... [10:09:06]Read from MH i2c: E2 0E 00 [10:09:06]MH_I2C_Read... [10:09:06]Read from MH i2c: E2 0E 00 90 35 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 CF [10:09:06]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:09:06]wFMCommunicate OK [10:09:06]SAM_PROTO_GetShiftState done [10:09:06]FM_GetShiftState done [10:09:06]req_shift_opened done [10:09:06]requested_item shift.open_date is exist - process it [10:09:06]req_shift_open_date [10:09:06]req_shift_open_date done [10:09:06]produce_requested_data done [10:09:06]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118124,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [10:09:06]process_action_free close_receipt [10:09:06]json_value_free [10:09:06]json_value_free done [10:09:06]process_json_proto returns [10:09:06]Send response to host [10:09:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118124,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [10:09:06]free response buf [10:09:06]execute_script done [10:09:06]execute_script returns [10:09:06]free content buf [10:09:06]Sock 9.Close socket [10:09:06]Sock 9.Thread stoped [10:09:10]OFD Sender: No OFD packet to send [10:09:15]OFD Sender: No OFD packet to send [10:09:20]OFD Sender: No OFD packet to send [10:09:25]OFD Sender: No OFD packet to send [10:09:30]OFD Sender: No OFD packet to send [10:09:35]OFD Sender: No OFD packet to send [10:09:40]OFD Sender: No OFD packet to send [10:09:45]OFD Sender: No OFD packet to send [10:09:50]OFD Sender: No OFD packet to send [10:09:55]OFD Sender: No OFD packet to send [10:10:00]OFD Sender: No OFD packet to send [10:10:05]OFD Sender: No OFD packet to send [10:10:10]OFD Sender: No OFD packet to send [10:10:15]OFD Sender: No OFD packet to send [10:10:20]OFD Sender: No OFD packet to send [10:10:25]OFD Sender: No OFD packet to send [10:10:30]OFD Sender: No OFD packet to send [10:10:35]OFD Sender: No OFD packet to send [10:10:40]OFD Sender: No OFD packet to send [10:10:45]OFD Sender: No OFD packet to send [10:10:50]OFD Sender: No OFD packet to send [10:10:55]OFD Sender: No OFD packet to send [10:11:00]OFD Sender: No OFD packet to send [10:11:05]OFD Sender: No OFD packet to send [10:11:10]OFD Sender: No OFD packet to send [10:11:15]OFD Sender: No OFD packet to send [10:11:20]OFD Sender: No OFD packet to send [10:11:25]OFD Sender: No OFD packet to send [10:11:30]OFD Sender: No OFD packet to send [10:11:35]OFD Sender: No OFD packet to send [10:11:40]OFD Sender: No OFD packet to send [10:11:45]OFD Sender: No OFD packet to send [10:11:50]OFD Sender: No OFD packet to send [10:11:55]OFD Sender: No OFD packet to send [10:12:00]OFD Sender: No OFD packet to send [10:12:05]OFD Sender: No OFD packet to send [10:12:10]OFD Sender: No OFD packet to send [10:12:15]OFD Sender: No OFD packet to send [10:12:20]OFD Sender: No OFD packet to send [10:12:25]OFD Sender: No OFD packet to send [10:12:30]OFD Sender: No OFD packet to send [10:12:35]OFD Sender: No OFD packet to send [10:12:40]OFD Sender: No OFD packet to send [10:12:45]OFD Sender: No OFD packet to send [10:12:50]OFD Sender: No OFD packet to send [10:12:55]OFD Sender: No OFD packet to send [10:13:00]OFD Sender: No OFD packet to send [10:13:05]OFD Sender: No OFD packet to send [10:13:10]OFD Sender: No OFD packet to send [10:13:15]OFD Sender: No OFD packet to send [10:13:20]OFD Sender: No OFD packet to send [10:13:25]OFD Sender: No OFD packet to send [10:13:30]OFD Sender: No OFD packet to send [10:13:35]OFD Sender: No OFD packet to send [10:13:40]OFD Sender: No OFD packet to send [10:13:45]OFD Sender: No OFD packet to send [10:13:50]OFD Sender: No OFD packet to send [10:13:55]OFD Sender: No OFD packet to send [10:14:00]OFD Sender: No OFD packet to send [10:14:05]OFD Sender: No OFD packet to send [10:14:10]OFD Sender: No OFD packet to send [10:14:15]OFD Sender: No OFD packet to send [10:14:20]OFD Sender: No OFD packet to send [10:14:25]OFD Sender: No OFD packet to send [10:14:30]OFD Sender: No OFD packet to send [10:14:32]accept exits with 7 [10:14:32]New connection [10:14:32]New thread 3067284836 created [10:14:32]Thread 3067428196 joined [10:14:32]Waiting for new connection... [10:14:32] Sock 7.Parse request [10:14:32]Sock 7.Check first char [10:14:32]Sock 7.First char is OK [10:14:32]request: POST /json_proto HTTP/1.0 [10:14:32]Method: POST [10:14:32]URL: /json_proto [10:14:32]Method is POST - this is cgi request [10:14:32]url: /json_proto [10:14:32]query_string will be loaded in cgi processing [10:14:32]execute_cgi json_proto POST (null) [10:14:32]execute_cgi path=json_proto method=POST [10:14:32]POST find Content-Length [10:14:32]Host: 172.17.45.7:8080 [10:14:32]Content-Length: 677 [10:14:32]Content-Type: application/json [10:14:32] [10:14:32]POST finish read [10:14:32]Found Content-Length = 677 [10:14:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:32]execute_script... [10:14: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)948998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:32]POST & json_proto [10:14:32]process_json_proto [10:14:32]json parsed OK: [10:14:32]protocol is kg_v1.0 [10:14:32]action value=close_receipt [10:14:32]process_action close_receipt [10:14:32]cmd_close_receipt [10:14:32]MH_GetDate [10:14:32]Write to MH i2c: F0 00 00 91 35 B5 [10:14:32]Write i2c OK [10:14:32]MH_I2C_Read... [10:14:32]Read from MH i2c: F0 [10:14:32]MH_I2C_Read... [10:14:32]Read from MH i2c: F0 09 00 [10:14:32]MH_I2C_Read... [10:14:32]Read from MH i2c: F0 09 00 91 35 00 8C C8 A4 66 90 0F 3E 66 5F [10:14:32]GetLastDocTimeStamp 1722074946 [10:14:32]current date 1722075276 [10:14:32]FM_GetShiftState [10:14:32]SAM_PROTO_GetShiftState [10:14:32]wFMCommunicate request_size=4 [10:14:32]MH_SAM_APDU [10:14:32]CAPDU: 80 13 01 00 [10:14:32]Write to MH i2c: E2 08 00 92 35 80 13 01 00 00 00 00 00 44 [10:14:32]Write i2c OK [10:14:32]MH_I2C_Read... [10:14:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:32]Read from MH i2c: E2 [10:14:32]MH_I2C_Read... [10:14:32]Read from MH i2c: E2 0E 00 [10:14:32]MH_I2C_Read... [10:14:32]Read from MH i2c: E2 0E 00 92 35 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 D1 [10:14:32]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:14:32]wFMCommunicate OK [10:14:32]SAM_PROTO_GetShiftState done [10:14:32]FM_GetShiftState done [10:14:32]opened in 1722038845 [10:14:32]opened+sec_in_day 1722125245 [10:14:32]quantity*price = 35052 [10:14:32]sum+1 = 35054 [10:14:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 68 27.07.2024 10:14 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118125 ФПД: 180052682238493 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T101436&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118125&fm=180052682238493&tin=02508201610067®Number=0000000000092660&sum=35000 [10:14:33]StoreToDocumentArchive [10:14:33]shift 432 fd 118125 [10:14:33]save to /storage/0432/doc_00118125 [10:14:33]save last doc name /storage/0432/doc_00118125 to /storage/kkm_last_doc_name [10:14:33]save OK [10:14:33]Clear old archive folders... [10:14:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:14:33]tlvbuf is 007BF530 [10:14:33]SAM_PROTO_ClearQueue [10:14:33]wFMCommunicate request_size=4 [10:14:33]MH_SAM_APDU [10:14:33]CAPDU: 80 09 00 00 [10:14:33]Write to MH i2c: E2 08 00 9F 35 80 09 00 00 00 00 00 00 46 [10:14:33]Write i2c OK [10:14:33]MH_I2C_Read... [10:14:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:33]Read from MH i2c: E2 [10:14:33]MH_I2C_Read... [10:14:33]Read from MH i2c: E2 03 00 [10:14:33]MH_I2C_Read... [10:14:33]Read from MH i2c: E2 03 00 9F 35 00 90 00 48 [10:14:33]RAPDU: 90 00 [10:14:33]wFMCommunicate OK [10:14:33]SAM_PROTO_ClearQueue done [10:14:33]KKMCreateOFDPacket [10:14:33]OFDProtocolAddRootSTLVToBuf [10:14:33]FM_MakeSignedData [10:14:33]FM_MakeSignedData [10:14:33]SAM_PROTO_SignData [10:14:33]wFMCommunicate request_size=4 [10:14:33]MH_SAM_APDU [10:14:33]CAPDU: 80 0D 01 02 [10:14:33]Write to MH i2c: E2 08 00 A0 35 80 0D 01 02 00 00 00 00 4E [10:14:33]Write i2c OK [10:14:33]MH_I2C_Read... [10:14:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:33]Read from MH i2c: E2 [10:14:33]MH_I2C_Read... [10:14:33]Read from MH i2c: E2 03 00 [10:14:33]MH_I2C_Read... [10:14:33]Read from MH i2c: E2 03 00 A0 35 00 90 00 49 [10:14:33]RAPDU: 90 00 [10:14:33]wFMCommunicate OK [10:14:33]wFMCommunicate request_size=255 [10:14:33]MH_SAM_APDU [10:14: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 34 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 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 8A 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 44 00 00 00 F4 03 04 00 8C C8 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6D CD 01 00 35 04 06 00 A3 [10:14:33]Write to MH i2c: E2 02 01 A1 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 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 8A 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 44 00 00 00 F4 03 04 00 8C C8 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6D CD 01 00 35 04 06 00 A3 00 00 2E [10:14:33]Write i2c OK [10:14:33]MH_I2C_Read... [10:14:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:33]Read from MH i2c: E2 [10:14:33]MH_I2C_Read... [10:14:33]Read from MH i2c: E2 03 00 [10:14:33]MH_I2C_Read... [10:14:33]Read from MH i2c: E2 03 00 A1 35 00 90 00 4A [10:14:33]RAPDU: 90 00 [10:14:33]wFMCommunicate OK [10:14:33]wFMCommunicate request_size=10 [10:14:33]MH_SAM_APDU [10:14:33]CAPDU: 80 0D 02 02 05 C1 C8 2A 6A 1D [10:14:33]Write to MH i2c: E2 0D 00 A2 35 80 0D 02 02 05 00 C1 C8 2A 6A 1D 00 00 95 [10:14:33]Write i2c OK [10:14:33]MH_I2C_Read... [10:14:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:33]Read from MH i2c: E2 [10:14:33]MH_I2C_Read... [10:14:33]Read from MH i2c: E2 03 00 [10:14:33]MH_I2C_Read... [10:14:33]Read from MH i2c: E2 03 00 A2 35 00 90 00 4B [10:14:33]RAPDU: 90 00 [10:14:33]wFMCommunicate OK [10:14:33]wFMCommunicate request_size=4 [10:14:33]MH_SAM_APDU [10:14:33]CAPDU: 80 0D 03 02 [10:14:33]Write to MH i2c: E2 08 00 A3 35 80 0D 03 02 00 00 00 00 53 [10:14:33]Write i2c OK [10:14:33]MH_I2C_Read... [10:14:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:33]Read from MH i2c: E2 [10:14:33]MH_I2C_Read... [10:14:33]Read from MH i2c: E2 0B 00 [10:14:33]MH_I2C_Read... [10:14:33]Read from MH i2c: E2 0B 00 A3 35 00 EC 85 28 42 E6 04 E5 9A 90 00 98 [10:14:33]RAPDU: EC 85 28 42 E6 04 E5 9A 90 00 [10:14:33]wFMCommunicate OK [10:14:33]SAM_PROTO_SignData done [10:14:33]FM_MakeSignedData done [10:14:33]CreateOFDProtocolMessage [10:14:33]wFMCommunicate request_size=4 [10:14:33]MH_SAM_APDU [10:14:33]CAPDU: 80 11 00 00 [10:14:33]Write to MH i2c: E2 08 00 A4 35 80 11 00 00 00 00 00 00 53 [10:14:33]Write i2c OK [10:14:33]MH_I2C_Read... [10:14:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:34]Read from MH i2c: E2 [10:14:34]MH_I2C_Read... [10:14:34]Read from MH i2c: E2 17 00 [10:14:34]MH_I2C_Read... [10:14:34]Read from MH i2c: E2 17 00 A4 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AE [10:14:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:14:34]wFMCommunicate OK [10:14:34]CreateOFDProtocolMessage done [10:14:34]OFDSenderStorePacket 118125 [10:14:34]StoreOFDPacket docnum=118125 [10:14:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 15 6F 07 01 80 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 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 8A 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 44 00 00 00 F4 03 04 00 8C C8 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6D CD 01 00 35 04 06 00 A3 C1 C8 2A 6A 1D EC 85 28 42 E6 04 E5 9A [10:14:34]CheckFolder [10:14:34]dirname=/storage/ofd_packets [10:14:34]CheckFolder done [10:14:34]ProducePacketName [10:14:34]name=ofd_packets/00118125 [10:14:34]NVStorageSaveData ofd_packets/00118125 [10:14:34]File name is /storage/ofd_packets/00118125 [10:14:34]Write 301 bytes [10:14:34]NVStorageSaveData done [10:14:34]OFDSenderStorePacket done [10:14:34]KKMCreateOFDPacket done [10:14:34]NVStorageSaveData kkm_last_timestamp [10:14:34]File name is /storage/kkm_last_timestamp [10:14:34]Write 4 bytes [10:14:34]NVStorageSaveData done [10:14:34]ExternCall_PrintAddStr [10:14:34]wPrintStart [10:14:34]Write to MH i2c: 01 00 00 A5 35 DA [10:14:34]Write i2c OK [10:14:34]MH_I2C_Read... [10:14:34]Read from MH i2c: 01 [10:14:34]MH_I2C_Read... [10:14:34]Read from MH i2c: 01 07 00 [10:14:34]MH_I2C_Read... [10:14:34]Read from MH i2c: 01 07 00 A5 35 00 00 00 00 00 FF 0F EF [10:14:34]RasterBufferAndPrint [10:14:34]line Счет N : (1)948998 [10:14:34]line ИНН: 02508201610067 [10:14:34]line Контрольно-Кассовый Чек [10:14:34]line ПРОДАЖА [10:14:34]line ТРК (МРК, ГНК) : 51 [10:14:34]line Товар: 2710124130 [10:14:34]line Аи-92-К-4 [10:14:34]line 5.170 * 67.80 [10:14:34]line = 350.53 [10:14:34]line НДС 12% НСП 1% [10:14:34]line > о реализуемом товаре [10:14:34]line ОКРУГЛЕНИЕ: -0.53 [10:14:34]line ИТОГО: 350.00 [10:14:34]line Внесено: 350.00 [10:14:34]line СДАЧА: 0.00 [10:14:34]line НСП 1% : 3.10 [10:14:34]line НДС 12% : 37.22 [10:14:34]line Наличными: 350.00 [10:14:34]line Безнал.: 0.00 [10:14:34]line Место: АЗС № 134 "Партнер Нефть" [10:14:34]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:14:34]line СНО: Общий режим [10:14:34]line Чек 68 27.07.2024 10:14 [10:14:34]line Смена: 432 ФФД: 1.0 [10:14:34]line ЗНМ: 0300000044 [10:14:34]line РНМ: 0000000000092660 [10:14:34]line Версия ККМ: 001 [10:14:34]line ФМ: 0000000000874939 [10:14:34]line ФД: 118125 [10:14:34]line ФПД: 180052682238493 [10:14:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T101436&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118125&fm=180052682238493&tin=02508201610067®Number=0000000000092660&sum=35000 [10:14:34]written 0, free lines is 4095 [10:14:34]OFD Sender: Processing packet 118125 [packets to send 85, broken 84] [10:14:34]ProducePacketName [10:14:34]name=ofd_packets/00118125 [10:14:34]OFD Sender: To server: pG, [10:14:34]CommunicateWithHost lk.salyk.kg:30040 [10:14:34]ConnectInit lk.salyk.kg [10:14:34]Connected sock=10 [10:14:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 15 6F 07 01 80 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 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 8A 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 44 00 00 00 F4 03 04 00 8C C8 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6D CD 01 00 35 04 06 00 A3 C1 C8 2A 6A 1D EC 85 28 42 E6 04 E5 9A [10:14:34]Write to MH i2c: 01 00 00 CF 35 04 [10:14:34]Write i2c OK [10:14:34]MH_I2C_Read... [10:14:34]Read from MH i2c: 01 [10:14:34]MH_I2C_Read... [10:14:34]Read from MH i2c: 01 07 00 [10:14:34]MH_I2C_Read... [10:14:34]Read from MH i2c: 01 07 00 CF 35 00 00 00 00 00 DC 0C F3 [10:14:34]RasterBufferAndPrint [10:14:34]line [10:14:34]line [10:14:34]line [10:14:34]line [10:14:34]line [10:14:34]written 0, free lines is 3299 [10:14:34]MH_Cut [10:14:34]Write to MH i2c: D1 01 00 D6 35 01 DD [10:14:34]Write i2c OK [10:14:34]MH_I2C_Read... [10:14:34]Read from MH i2c: D1 [10:14:34]MH_I2C_Read... [10:14:34]Read from MH i2c: D1 01 00 [10:14:34]MH_I2C_Read... [10:14:34]Read from MH i2c: D1 01 00 D6 35 00 DC [10:14:34]Write to MH i2c: 01 00 00 D7 35 0C [10:14:34]Write i2c OK [10:14:34]MH_I2C_Read... [10:14:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 47 F4 47 00 1A 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 34 39 33 39 10 04 04 00 6D CD 01 00 F4 03 04 00 1F 76 A4 66 B6 04 01 00 00 1B CE 76 26 4F A4 9C 60 [10:14:34]CommunicateWithHost err = 0 [10:14:34]CheckOFDResponse [10:14:34]1017 (14) - 77093643461234 [10:14:34]1041 (16) - 0000000000874939 [10:14:34]1040 (4) - 118125 [10:14:34]1012 (4) - 27.07.2024 04:22 [10:14:34]1206 (1) - 0 [10:14:34]OFD Sender: Remove packet 118125 [10:14:34]ProducePacketName [10:14:34]name=ofd_packets/00118125 [10:14:34]NVStorageDeleteData [10:14:35]OFD Sender: No OFD packet to send [10:14:35]*** Cut start [10:14:35]*** Partial cut [10:14:35]*** CUTSNS_PIN = 1 [10:14:35]*** CUTSNS_PIN = 0 [10:14:35]*** Brake cut motor [10:14:35]Read from MH i2c: 01 [10:14:35]MH_I2C_Read... [10:14:35]*** Stop cut motor [10:14:35]*** Cut end [10:14:35]Read from MH i2c: 01 07 00 [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: 01 07 00 D7 35 00 00 00 00 00 FF 0F 21 [10:14:35]process_action close_receipt done [10:14:35]requested_data is exist [10:14:35]produce_requested_data [10:14:35]requested_item fm.sn is exist - process it [10:14:35]wFMCommunicate request_size=4 [10:14:35]MH_SAM_APDU [10:14:35]CAPDU: 80 11 00 00 [10:14:35]Write to MH i2c: E2 08 00 D8 35 80 11 00 00 00 00 00 00 87 [10:14:35]Write i2c OK [10:14:35]MH_I2C_Read... [10:14:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:35]Read from MH i2c: E2 [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: E2 17 00 [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: E2 17 00 D8 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E2 [10:14:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:14:35]wFMCommunicate OK [10:14:35]requested_item fd.num is exist - process it [10:14:35]SAM_PROTO_GetFieldsCounters [10:14:35]wFMCommunicate request_size=4 [10:14:35]MH_SAM_APDU [10:14:35]CAPDU: 80 13 00 00 [10:14:35]Write to MH i2c: E2 08 00 D9 35 80 13 00 00 00 00 00 00 8A [10:14:35]Write i2c OK [10:14:35]MH_I2C_Read... [10:14:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:36]Read from MH i2c: E2 [10:14:36]MH_I2C_Read... [10:14:36]Read from MH i2c: E2 62 00 [10:14:36]MH_I2C_Read... [10:14:36]Read from MH i2c: E2 62 00 D9 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6D CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [10:14:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6D CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:14:36]wFMCommunicate OK [10:14:36]SAM_PROTO_GetFieldsCounters done [10:14:36]requested_item shift.num is exist - process it [10:14:36]requested_item shift.opened is exist - process it [10:14:36]req_shift_opened [10:14:36]FM_GetShiftState [10:14:36]SAM_PROTO_GetShiftState [10:14:36]wFMCommunicate request_size=4 [10:14:36]MH_SAM_APDU [10:14:36]CAPDU: 80 13 01 00 [10:14:36]Write to MH i2c: E2 08 00 DA 35 80 13 01 00 00 00 00 00 8C [10:14:36]Write i2c OK [10:14:36]MH_I2C_Read... [10:14:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:36]Read from MH i2c: E2 [10:14:36]MH_I2C_Read... [10:14:36]Read from MH i2c: E2 0E 00 [10:14:36]MH_I2C_Read... [10:14:36]Read from MH i2c: E2 0E 00 DA 35 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 19 [10:14:36]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:14:36]wFMCommunicate OK [10:14:36]SAM_PROTO_GetShiftState done [10:14:36]FM_GetShiftState done [10:14:36]req_shift_opened done [10:14:36]requested_item shift.open_date is exist - process it [10:14:36]req_shift_open_date [10:14:36]req_shift_open_date done [10:14:36]produce_requested_data done [10:14:36]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118125,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [10:14:36]process_action_free close_receipt [10:14:36]json_value_free [10:14:36]json_value_free done [10:14:36]process_json_proto returns [10:14:36]Send response to host [10:14:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118125,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [10:14:36]free response buf [10:14:36]execute_script done [10:14:36]execute_script returns [10:14:36]free content buf [10:14:36]Sock 7.Close socket [10:14:36]Sock 7.Thread stoped [10:14:40]OFD Sender: No OFD packet to send [10:14:45]OFD Sender: No OFD packet to send [10:14:50]OFD Sender: No OFD packet to send [10:14:55]OFD Sender: No OFD packet to send [10:15:00]OFD Sender: No OFD packet to send [10:15:05]OFD Sender: No OFD packet to send [10:15:10]OFD Sender: No OFD packet to send [10:15:15]OFD Sender: No OFD packet to send [10:15:20]OFD Sender: No OFD packet to send [10:15:25]OFD Sender: No OFD packet to send [10:15:30]OFD Sender: No OFD packet to send [10:15:35]OFD Sender: No OFD packet to send [10:15:40]OFD Sender: No OFD packet to send [10:15:45]OFD Sender: No OFD packet to send [10:15:50]OFD Sender: No OFD packet to send [10:15:55]OFD Sender: No OFD packet to send [10:16:00]OFD Sender: No OFD packet to send [10:16:05]OFD Sender: No OFD packet to send [10:16:10]OFD Sender: No OFD packet to send [10:16:15]OFD Sender: No OFD packet to send [10:16:20]OFD Sender: No OFD packet to send [10:16:25]OFD Sender: No OFD packet to send [10:16:30]OFD Sender: No OFD packet to send [10:16:35]OFD Sender: No OFD packet to send [10:16:40]OFD Sender: No OFD packet to send [10:16:45]OFD Sender: No OFD packet to send [10:16:50]OFD Sender: No OFD packet to send [10:16:55]OFD Sender: No OFD packet to send [10:17:00]OFD Sender: No OFD packet to send [10:17:05]OFD Sender: No OFD packet to send [10:17:10]OFD Sender: No OFD packet to send [10:17:11]accept exits with 9 [10:17:11]New connection [10:17:11]New thread 3067428196 created [10:17:11] Sock 9.Parse request [10:17:11]Thread 3067284836 joined [10:17:11]Sock 9.Check first char [10:17:11]Waiting for new connection... [10:17:11]Sock 9.First char is OK [10:17:11]request: POST /json_proto HTTP/1.0 [10:17:11]Method: POST [10:17:11]URL: /json_proto [10:17:11]Method is POST - this is cgi request [10:17:11]url: /json_proto [10:17:11]query_string will be loaded in cgi processing [10:17:11]execute_cgi json_proto POST (null) [10:17:11]execute_cgi path=json_proto method=POST [10:17:11]POST find Content-Length [10:17:11]Host: 172.17.45.7:8080 [10:17:11]Content-Length: 677 [10:17:11]Content-Type: application/json [10:17:11] [10:17:11]POST finish read [10:17:11]Found Content-Length = 677 [10:17:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)948999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:17:11]execute_script... [10:17: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)948999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:17:11]POST & json_proto [10:17:11]process_json_proto [10:17:11]json parsed OK: [10:17:11]protocol is kg_v1.0 [10:17:11]action value=close_receipt [10:17:11]process_action close_receipt [10:17:11]cmd_close_receipt [10:17:11]MH_GetDate [10:17:11]Write to MH i2c: F0 00 00 DB 35 FF [10:17:11]Write i2c OK [10:17:11]MH_I2C_Read... [10:17:11]Read from MH i2c: F0 [10:17:11]MH_I2C_Read... [10:17:11]Read from MH i2c: F0 09 00 [10:17:11]MH_I2C_Read... [10:17:11]Read from MH i2c: F0 09 00 DB 35 00 2B C9 A4 66 90 0F 3E 66 49 [10:17:11]GetLastDocTimeStamp 1722075276 [10:17:11]current date 1722075435 [10:17:11]FM_GetShiftState [10:17:11]SAM_PROTO_GetShiftState [10:17:11]wFMCommunicate request_size=4 [10:17:11]MH_SAM_APDU [10:17:11]CAPDU: 80 13 01 00 [10:17:11]Write to MH i2c: E2 08 00 DC 35 80 13 01 00 00 00 00 00 8E [10:17:11]Write i2c OK [10:17:11]MH_I2C_Read... [10:17:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:11]Read from MH i2c: E2 [10:17:11]MH_I2C_Read... [10:17:11]Read from MH i2c: E2 0E 00 [10:17:11]MH_I2C_Read... [10:17:11]Read from MH i2c: E2 0E 00 DC 35 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 1B [10:17:11]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:17:11]wFMCommunicate OK [10:17:11]SAM_PROTO_GetShiftState done [10:17:11]FM_GetShiftState done [10:17:11]opened in 1722038845 [10:17:11]opened+sec_in_day 1722125245 [10:17:11]quantity*price = 50036 [10:17:11]sum+1 = 50037 [10:17:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 69 27.07.2024 10:17 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118126 ФПД: 202700410113241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T101715&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118126&fm=202700410113241&tin=02508201610067®Number=0000000000092660&sum=50000 [10:17:12]StoreToDocumentArchive [10:17:12]shift 432 fd 118126 [10:17:12]save to /storage/0432/doc_00118126 [10:17:12]save last doc name /storage/0432/doc_00118126 to /storage/kkm_last_doc_name [10:17:12]save OK [10:17:12]Clear old archive folders... [10:17:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:17:12]tlvbuf is 006B9120 [10:17:12]SAM_PROTO_ClearQueue [10:17:12]wFMCommunicate request_size=4 [10:17:12]MH_SAM_APDU [10:17:12]CAPDU: 80 09 00 00 [10:17:12]Write to MH i2c: E2 08 00 E9 35 80 09 00 00 00 00 00 00 90 [10:17:12]Write i2c OK [10:17:12]MH_I2C_Read... [10:17:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:17:12]Read from MH i2c: E2 [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: E2 03 00 [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: E2 03 00 E9 35 00 90 00 92 [10:17:12]RAPDU: 90 00 [10:17:12]wFMCommunicate OK [10:17:12]SAM_PROTO_ClearQueue done [10:17:12]KKMCreateOFDPacket [10:17:12]OFDProtocolAddRootSTLVToBuf [10:17:12]FM_MakeSignedData [10:17:12]FM_MakeSignedData [10:17:12]SAM_PROTO_SignData [10:17:12]wFMCommunicate request_size=4 [10:17:12]MH_SAM_APDU [10:17:12]CAPDU: 80 0D 01 02 [10:17:12]Write to MH i2c: E2 08 00 EA 35 80 0D 01 02 00 00 00 00 98 [10:17:12]Write i2c OK [10:17:12]MH_I2C_Read... [10:17:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:17:12]Read from MH i2c: E2 [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: E2 03 00 [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: E2 03 00 EA 35 00 90 00 93 [10:17:12]RAPDU: 90 00 [10:17:12]wFMCommunicate OK [10:17:12]wFMCommunicate request_size=255 [10:17:12]MH_SAM_APDU [10:17: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 45 00 00 00 F4 03 04 00 2B C9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6E CD 01 00 35 04 06 00 B8 [10:17:12]Write to MH i2c: E2 02 01 EB 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 45 00 00 00 F4 03 04 00 2B C9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6E CD 01 00 35 04 06 00 B8 00 00 04 [10:17:12]Write i2c OK [10:17:12]MH_I2C_Read... [10:17:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:12]Read from MH i2c: E2 [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: E2 03 00 [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: E2 03 00 EB 35 00 90 00 94 [10:17:12]RAPDU: 90 00 [10:17:12]wFMCommunicate OK [10:17:12]wFMCommunicate request_size=10 [10:17:12]MH_SAM_APDU [10:17:12]CAPDU: 80 0D 02 02 05 5A DD F0 CC D9 [10:17:12]Write to MH i2c: E2 0D 00 EC 35 80 0D 02 02 05 00 5A DD F0 CC D9 00 00 71 [10:17:12]Write i2c OK [10:17:12]MH_I2C_Read... [10:17:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:12]Read from MH i2c: E2 [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: E2 03 00 [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: E2 03 00 EC 35 00 90 00 95 [10:17:12]RAPDU: 90 00 [10:17:12]wFMCommunicate OK [10:17:12]wFMCommunicate request_size=4 [10:17:12]MH_SAM_APDU [10:17:12]CAPDU: 80 0D 03 02 [10:17:12]Write to MH i2c: E2 08 00 ED 35 80 0D 03 02 00 00 00 00 9D [10:17:12]Write i2c OK [10:17:12]MH_I2C_Read... [10:17:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:17:12]Read from MH i2c: E2 [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: E2 0B 00 [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: E2 0B 00 ED 35 00 ED 97 EF C9 57 FA 90 94 90 00 4F [10:17:12]RAPDU: ED 97 EF C9 57 FA 90 94 90 00 [10:17:12]wFMCommunicate OK [10:17:12]SAM_PROTO_SignData done [10:17:12]FM_MakeSignedData done [10:17:12]CreateOFDProtocolMessage [10:17:12]wFMCommunicate request_size=4 [10:17:12]MH_SAM_APDU [10:17:12]CAPDU: 80 11 00 00 [10:17:12]Write to MH i2c: E2 08 00 EE 35 80 11 00 00 00 00 00 00 9D [10:17:12]Write i2c OK [10:17:12]MH_I2C_Read... [10:17:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:12]Read from MH i2c: E2 [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: E2 17 00 [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: E2 17 00 EE 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F8 [10:17:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:17:12]wFMCommunicate OK [10:17:12]CreateOFDProtocolMessage done [10:17:12]OFDSenderStorePacket 118126 [10:17:12]StoreOFDPacket docnum=118126 [10:17:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C7 6F 07 01 A1 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 45 00 00 00 F4 03 04 00 2B C9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6E CD 01 00 35 04 06 00 B8 5A DD F0 CC D9 ED 97 EF C9 57 FA 90 94 [10:17:12]CheckFolder [10:17:12]dirname=/storage/ofd_packets [10:17:12]CheckFolder done [10:17:12]ProducePacketName [10:17:12]name=ofd_packets/00118126 [10:17:12]NVStorageSaveData ofd_packets/00118126 [10:17:12]File name is /storage/ofd_packets/00118126 [10:17:12]Write 301 bytes [10:17:12]NVStorageSaveData done [10:17:12]OFDSenderStorePacket done [10:17:12]KKMCreateOFDPacket done [10:17:12]NVStorageSaveData kkm_last_timestamp [10:17:12]File name is /storage/kkm_last_timestamp [10:17:12]Write 4 bytes [10:17:12]NVStorageSaveData done [10:17:12]ExternCall_PrintAddStr [10:17:12]wPrintStart [10:17:12]Write to MH i2c: 01 00 00 EF 35 24 [10:17:12]Write i2c OK [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: 01 [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: 01 07 00 [10:17:12]MH_I2C_Read... [10:17:12]Read from MH i2c: 01 07 00 EF 35 00 00 00 00 00 FF 0F 39 [10:17:12]RasterBufferAndPrint [10:17:12]line Счет N : (1)948999 [10:17:12]line ИНН: 02508201610067 [10:17:12]line Контрольно-Кассовый Чек [10:17:12]line ПРОДАЖА [10:17:12]line ТРК (МРК, ГНК) : 31 [10:17:12]line Товар: 2710124130 [10:17:12]line Аи-92-К-4 [10:17:12]line 7.380 * 67.80 [10:17:12]line = 500.36 [10:17:12]line НДС 12% НСП 1% [10:17:12]line > о реализуемом товаре [10:17:12]line ОКРУГЛЕНИЕ: -0.36 [10:17:12]line ИТОГО: 500.00 [10:17:12]line Внесено: 500.00 [10:17:12]line СДАЧА: 0.00 [10:17:12]line НСП 1% : 4.43 [10:17:12]line НДС 12% : 53.14 [10:17:12]line Наличными: 500.00 [10:17:12]line Безнал.: 0.00 [10:17:12]line Место: АЗС № 134 "Партнер Нефть" [10:17:12]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:17:12]line СНО: Общий режим [10:17:12]line Чек 69 27.07.2024 10:17 [10:17:12]line Смена: 432 ФФД: 1.0 [10:17:12]line ЗНМ: 0300000044 [10:17:12]line РНМ: 0000000000092660 [10:17:12]line Версия ККМ: 001 [10:17:12]line ФМ: 0000000000874939 [10:17:12]line ФД: 118126 [10:17:12]line ФПД: 202700410113241 [10:17:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T101715&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118126&fm=202700410113241&tin=02508201610067®Number=0000000000092660&sum=50000 [10:17:13]OFD Sender: Processing packet 118126 [packets to send 85, broken 84] [10:17:13]ProducePacketName [10:17:13]name=ofd_packets/00118126 [10:17:13]OFD Sender: To server: pG, [10:17:13]CommunicateWithHost lk.salyk.kg:30040 [10:17:13]ConnectInit lk.salyk.kg [10:17:13]written 0, free lines is 4095 [10:17:13]Connected sock=10 [10:17:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C7 6F 07 01 A1 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 45 00 00 00 F4 03 04 00 2B C9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6E CD 01 00 35 04 06 00 B8 5A DD F0 CC D9 ED 97 EF C9 57 FA 90 94 [10:17:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B0 BD 47 00 C5 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6E CD 01 00 F4 03 04 00 BE 76 A4 66 B6 04 01 00 00 8A A1 88 2B 44 37 D3 90 [10:17:13]CommunicateWithHost err = 0 [10:17:13]CheckOFDResponse [10:17:13]1017 (14) - 77093643461234 [10:17:13]1041 (16) - 0000000000874939 [10:17:13]1040 (4) - 118126 [10:17:13]1012 (4) - 27.07.2024 04:25 [10:17:13]1206 (1) - 0 [10:17:13]OFD Sender: Remove packet 118126 [10:17:13]ProducePacketName [10:17:13]name=ofd_packets/00118126 [10:17:13]NVStorageDeleteData [10:17:13]Write to MH i2c: 01 00 00 19 36 4F [10:17:13]Write i2c OK [10:17:13]MH_I2C_Read... [10:17:13]Read from MH i2c: 01 [10:17:13]MH_I2C_Read... [10:17:13]Read from MH i2c: 01 07 00 [10:17:13]MH_I2C_Read... [10:17:13]Read from MH i2c: 01 07 00 19 36 00 00 00 00 00 E0 0C 42 [10:17:13]RasterBufferAndPrint [10:17:13]line [10:17:13]line [10:17:13]line [10:17:13]line [10:17:13]line [10:17:13]written 0, free lines is 3301 [10:17:13]MH_Cut [10:17:13]Write to MH i2c: D1 01 00 20 36 01 28 [10:17:13]Write i2c OK [10:17:13]MH_I2C_Read... [10:17:13]Read from MH i2c: D1 [10:17:13]MH_I2C_Read... [10:17:13]Read from MH i2c: D1 01 00 [10:17:13]MH_I2C_Read... [10:17:13]Read from MH i2c: D1 01 00 20 36 00 27 [10:17:13]Write to MH i2c: 01 00 00 21 36 57 [10:17:13]Write i2c OK [10:17:13]MH_I2C_Read... [10:17:14]OFD Sender: No OFD packet to send [10:17:14]*** Cut start [10:17:14]*** Partial cut [10:17:14]*** CUTSNS_PIN = 1 [10:17:14]*** CUTSNS_PIN = 0 [10:17:14]*** Brake cut motor [10:17:15]Read from MH i2c: 01 [10:17:15]MH_I2C_Read... [10:17:15]*** Stop cut motor [10:17:15]*** Cut end [10:17:15]Read from MH i2c: 01 07 00 [10:17:15]MH_I2C_Read... [10:17:15]Read from MH i2c: 01 07 00 21 36 00 00 00 00 00 FF 0F 6C [10:17:15]process_action close_receipt done [10:17:15]requested_data is exist [10:17:15]produce_requested_data [10:17:15]requested_item fm.sn is exist - process it [10:17:15]wFMCommunicate request_size=4 [10:17:15]MH_SAM_APDU [10:17:15]CAPDU: 80 11 00 00 [10:17:15]Write to MH i2c: E2 08 00 22 36 80 11 00 00 00 00 00 00 D2 [10:17:15]Write i2c OK [10:17:15]MH_I2C_Read... [10:17:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:15]Read from MH i2c: E2 [10:17:15]MH_I2C_Read... [10:17:15]Read from MH i2c: E2 17 00 [10:17:15]MH_I2C_Read... [10:17:15]Read from MH i2c: E2 17 00 22 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2D [10:17:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:17:15]wFMCommunicate OK [10:17:15]requested_item fd.num is exist - process it [10:17:15]SAM_PROTO_GetFieldsCounters [10:17:15]wFMCommunicate request_size=4 [10:17:15]MH_SAM_APDU [10:17:15]CAPDU: 80 13 00 00 [10:17:15]Write to MH i2c: E2 08 00 23 36 80 13 00 00 00 00 00 00 D5 [10:17:15]Write i2c OK [10:17:15]MH_I2C_Read... [10:17:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:15]Read from MH i2c: E2 [10:17:15]MH_I2C_Read... [10:17:15]Read from MH i2c: E2 62 00 [10:17:15]MH_I2C_Read... [10:17:15]Read from MH i2c: E2 62 00 23 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6E CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [10:17:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6E CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:17:15]wFMCommunicate OK [10:17:15]SAM_PROTO_GetFieldsCounters done [10:17:15]requested_item shift.num is exist - process it [10:17:15]requested_item shift.opened is exist - process it [10:17:15]req_shift_opened [10:17:15]FM_GetShiftState [10:17:15]SAM_PROTO_GetShiftState [10:17:15]wFMCommunicate request_size=4 [10:17:15]MH_SAM_APDU [10:17:15]CAPDU: 80 13 01 00 [10:17:15]Write to MH i2c: E2 08 00 24 36 80 13 01 00 00 00 00 00 D7 [10:17:15]Write i2c OK [10:17:15]MH_I2C_Read... [10:17:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:15]Read from MH i2c: E2 [10:17:15]MH_I2C_Read... [10:17:15]Read from MH i2c: E2 0E 00 [10:17:15]MH_I2C_Read... [10:17:15]Read from MH i2c: E2 0E 00 24 36 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 64 [10:17:15]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:17:15]wFMCommunicate OK [10:17:15]SAM_PROTO_GetShiftState done [10:17:15]FM_GetShiftState done [10:17:15]req_shift_opened done [10:17:15]requested_item shift.open_date is exist - process it [10:17:15]req_shift_open_date [10:17:15]req_shift_open_date done [10:17:15]produce_requested_data done [10:17:15]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118126,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [10:17:15]process_action_free close_receipt [10:17:15]json_value_free [10:17:15]json_value_free done [10:17:15]process_json_proto returns [10:17:15]Send response to host [10:17:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118126,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [10:17:15]free response buf [10:17:15]execute_script done [10:17:15]execute_script returns [10:17:15]free content buf [10:17:15]Sock 9.Close socket [10:17:15]Sock 9.Thread stoped [10:17:19]OFD Sender: No OFD packet to send [10:17:24]OFD Sender: No OFD packet to send [10:17:29]OFD Sender: No OFD packet to send [10:17:34]OFD Sender: No OFD packet to send [10:17:39]OFD Sender: No OFD packet to send [10:17:44]OFD Sender: No OFD packet to send [10:17:49]OFD Sender: No OFD packet to send [10:17:54]OFD Sender: No OFD packet to send [10:17:59]OFD Sender: No OFD packet to send [10:18:04]OFD Sender: No OFD packet to send [10:18:09]OFD Sender: No OFD packet to send [10:18:14]OFD Sender: No OFD packet to send [10:18:19]OFD Sender: No OFD packet to send [10:18:24]OFD Sender: No OFD packet to send [10:18:29]OFD Sender: No OFD packet to send [10:18:34]OFD Sender: No OFD packet to send [10:18:39]OFD Sender: No OFD packet to send [10:18:44]OFD Sender: No OFD packet to send [10:18:49]OFD Sender: No OFD packet to send [10:18:54]OFD Sender: No OFD packet to send [10:18:59]OFD Sender: No OFD packet to send [10:19:04]OFD Sender: No OFD packet to send [10:19:09]OFD Sender: No OFD packet to send [10:19:09]accept exits with 7 [10:19:09]New connection [10:19:09]New thread 3067284836 created [10:19:09]Thread 3067428196 joined [10:19:09]Waiting for new connection... [10:19:09] Sock 7.Parse request [10:19:09]Sock 7.Check first char [10:19:09]Sock 7.First char is OK [10:19:09]request: POST /json_proto HTTP/1.0 [10:19:09]Method: POST [10:19:09]URL: /json_proto [10:19:09]Method is POST - this is cgi request [10:19:09]url: /json_proto [10:19:09]query_string will be loaded in cgi processing [10:19:09]execute_cgi json_proto POST (null) [10:19:09]execute_cgi path=json_proto method=POST [10:19:09]POST find Content-Length [10:19:09]Host: 172.17.45.7:8080 [10:19:09]Content-Length: 679 [10:19:09]Content-Type: application/json [10:19:09] [10:19:09]POST finish read [10:19:09]Found Content-Length = 679 [10:19:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:09]execute_script... [10:19:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:09]POST & json_proto [10:19:09]process_json_proto [10:19:09]json parsed OK: [10:19:09]protocol is kg_v1.0 [10:19:09]action value=close_receipt [10:19:09]process_action close_receipt [10:19:09]cmd_close_receipt [10:19:09]MH_GetDate [10:19:09]Write to MH i2c: F0 00 00 25 36 4A [10:19:09]Write i2c OK [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: F0 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: F0 09 00 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: F0 09 00 25 36 00 A2 C9 A4 66 90 0F 3E 66 0B [10:19:09]GetLastDocTimeStamp 1722075435 [10:19:09]current date 1722075554 [10:19:09]FM_GetShiftState [10:19:09]SAM_PROTO_GetShiftState [10:19:09]wFMCommunicate request_size=4 [10:19:09]MH_SAM_APDU [10:19:09]CAPDU: 80 13 01 00 [10:19:09]Write to MH i2c: E2 08 00 26 36 80 13 01 00 00 00 00 00 D9 [10:19:09]Write i2c OK [10:19:09]MH_I2C_Read... [10:19:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:09]Read from MH i2c: E2 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: E2 0E 00 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: E2 0E 00 26 36 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 66 [10:19:09]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:19:09]wFMCommunicate OK [10:19:09]SAM_PROTO_GetShiftState done [10:19:09]FM_GetShiftState done [10:19:09]opened in 1722038845 [10:19:09]opened+sec_in_day 1722125245 [10:19:09]quantity*price = 100050 [10:19:09]sum+1 = 100052 [10:19:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 70 27.07.2024 10:19 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118127 ФПД: 258266764999080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T101914&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118127&fm=258266764999080&tin=02508201610067®Number=0000000000092660&sum=100000 [10:19:10]StoreToDocumentArchive [10:19:10]shift 432 fd 118127 [10:19:10]save to /storage/0432/doc_00118127 [10:19:10]save last doc name /storage/0432/doc_00118127 to /storage/kkm_last_doc_name [10:19:10]save OK [10:19:10]Clear old archive folders... [10:19:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:19:10]tlvbuf is 006BD540 [10:19:10]SAM_PROTO_ClearQueue [10:19:10]wFMCommunicate request_size=4 [10:19:10]MH_SAM_APDU [10:19:10]CAPDU: 80 09 00 00 [10:19:10]Write to MH i2c: E2 08 00 33 36 80 09 00 00 00 00 00 00 DB [10:19:10]Write i2c OK [10:19:10]MH_I2C_Read... [10:19:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:10]Read from MH i2c: E2 [10:19:10]MH_I2C_Read... [10:19:10]Read from MH i2c: E2 03 00 [10:19:10]MH_I2C_Read... [10:19:10]Read from MH i2c: E2 03 00 33 36 00 90 00 DD [10:19:10]RAPDU: 90 00 [10:19:10]wFMCommunicate OK [10:19:10]SAM_PROTO_ClearQueue done [10:19:10]KKMCreateOFDPacket [10:19:10]OFDProtocolAddRootSTLVToBuf [10:19:10]FM_MakeSignedData [10:19:10]FM_MakeSignedData [10:19:10]SAM_PROTO_SignData [10:19:10]wFMCommunicate request_size=4 [10:19:10]MH_SAM_APDU [10:19:10]CAPDU: 80 0D 01 02 [10:19:10]Write to MH i2c: E2 08 00 34 36 80 0D 01 02 00 00 00 00 E3 [10:19:10]Write i2c OK [10:19:10]MH_I2C_Read... [10:19:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:10]Read from MH i2c: E2 [10:19:10]MH_I2C_Read... [10:19:10]Read from MH i2c: E2 03 00 [10:19:10]MH_I2C_Read... [10:19:10]Read from MH i2c: E2 03 00 34 36 00 90 00 DE [10:19:10]RAPDU: 90 00 [10:19:10]wFMCommunicate OK [10:19:10]wFMCommunicate request_size=255 [10:19:10]MH_SAM_APDU [10:19: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 A2 C9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6F CD 01 00 35 04 06 00 EA E4 6A C8 [10:19:10]Write to MH i2c: E2 02 01 35 36 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 A2 C9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6F CD 01 00 35 04 06 00 EA E4 6A C8 00 00 1C [10:19:10]Write i2c OK [10:19:10]MH_I2C_Read... [10:19:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:11]Read from MH i2c: E2 [10:19:11]MH_I2C_Read... [10:19:11]Read from MH i2c: E2 03 00 [10:19:11]MH_I2C_Read... [10:19:11]Read from MH i2c: E2 03 00 35 36 00 90 00 DF [10:19:11]RAPDU: 90 00 [10:19:11]wFMCommunicate OK [10:19:11]wFMCommunicate request_size=7 [10:19:11]MH_SAM_APDU [10:19:11]CAPDU: 80 0D 02 02 02 F9 A8 [10:19:11]Write to MH i2c: E2 0A 00 36 36 80 0D 02 02 02 00 F9 A8 00 00 8B [10:19:11]Write i2c OK [10:19:11]MH_I2C_Read... [10:19:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:11]Read from MH i2c: E2 [10:19:11]MH_I2C_Read... [10:19:11]Read from MH i2c: E2 03 00 [10:19:11]MH_I2C_Read... [10:19:11]Read from MH i2c: E2 03 00 36 36 00 90 00 E0 [10:19:11]RAPDU: 90 00 [10:19:11]wFMCommunicate OK [10:19:11]wFMCommunicate request_size=4 [10:19:11]MH_SAM_APDU [10:19:11]CAPDU: 80 0D 03 02 [10:19:11]Write to MH i2c: E2 08 00 37 36 80 0D 03 02 00 00 00 00 E8 [10:19:11]Write i2c OK [10:19:11]MH_I2C_Read... [10:19:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:11]Read from MH i2c: E2 [10:19:11]MH_I2C_Read... [10:19:11]Read from MH i2c: E2 0B 00 [10:19:11]MH_I2C_Read... [10:19:11]Read from MH i2c: E2 0B 00 37 36 00 3F 24 D4 F5 BD 42 92 6C 90 00 12 [10:19:11]RAPDU: 3F 24 D4 F5 BD 42 92 6C 90 00 [10:19:11]wFMCommunicate OK [10:19:11]SAM_PROTO_SignData done [10:19:11]FM_MakeSignedData done [10:19:11]CreateOFDProtocolMessage [10:19:11]wFMCommunicate request_size=4 [10:19:11]MH_SAM_APDU [10:19:11]CAPDU: 80 11 00 00 [10:19:11]Write to MH i2c: E2 08 00 38 36 80 11 00 00 00 00 00 00 E8 [10:19:11]Write i2c OK [10:19:11]MH_I2C_Read... [10:19:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:11]Read from MH i2c: E2 [10:19:11]MH_I2C_Read... [10:19:11]Read from MH i2c: E2 17 00 [10:19:11]MH_I2C_Read... [10:19:11]Read from MH i2c: E2 17 00 38 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 43 [10:19:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:19:11]wFMCommunicate OK [10:19:11]CreateOFDProtocolMessage done [10:19:11]OFDSenderStorePacket 118127 [10:19:11]StoreOFDPacket docnum=118127 [10:19:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F1 E8 04 01 C9 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 A2 C9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6F CD 01 00 35 04 06 00 EA E4 6A C8 F9 A8 3F 24 D4 F5 BD 42 92 6C [10:19:11]CheckFolder [10:19:11]dirname=/storage/ofd_packets [10:19:11]CheckFolder done [10:19:11]ProducePacketName [10:19:11]name=ofd_packets/00118127 [10:19:11]NVStorageSaveData ofd_packets/00118127 [10:19:11]File name is /storage/ofd_packets/00118127 [10:19:11]Write 298 bytes [10:19:11]NVStorageSaveData done [10:19:11]OFDSenderStorePacket done [10:19:11]KKMCreateOFDPacket done [10:19:11]NVStorageSaveData kkm_last_timestamp [10:19:11]File name is /storage/kkm_last_timestamp [10:19:11]Write 4 bytes [10:19:11]NVStorageSaveData done [10:19:11]ExternCall_PrintAddStr [10:19:11]wPrintStart [10:19:11]Write to MH i2c: 01 00 00 39 36 6F [10:19:11]Write i2c OK [10:19:11]MH_I2C_Read... [10:19:11]Read from MH i2c: 01 [10:19:11]MH_I2C_Read... [10:19:11]Read from MH i2c: 01 07 00 [10:19:11]MH_I2C_Read... [10:19:11]Read from MH i2c: 01 07 00 39 36 00 00 00 00 00 FF 0F 84 [10:19:11]RasterBufferAndPrint [10:19:11]line Счет N : (1)949000 [10:19:11]line ИНН: 02508201610067 [10:19:11]line Контрольно-Кассовый Чек [10:19:11]line ПРОДАЖА [10:19:11]line ТРК (МРК, ГНК) : 44 [10:19:11]line Товар: 2710194800 [10:19:11]line ДТ-К-5 [10:19:11]line 13.130 * 76.20 [10:19:11]line = 1000.51 [10:19:11]line НДС 12% НСП 1% [10:19:11]line > о реализуемом товаре [10:19:11]line ОКРУГЛЕНИЕ: -0.51 [10:19:11]line ИТОГО: 1000.00 [10:19:11]line Внесено: 1000.00 [10:19:11]line СДАЧА: 0.00 [10:19:11]line НСП 1% : 8.85 [10:19:11]line НДС 12% : 106.25 [10:19:11]line Наличными: 1000.00 [10:19:11]line Безнал.: 0.00 [10:19:11]line Место: АЗС № 134 "Партнер Нефть" [10:19:11]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:19:11]line СНО: Общий режим [10:19:11]line Чек 70 27.07.2024 10:19 [10:19:11]line Смена: 432 ФФД: 1.0 [10:19:11]line ЗНМ: 0300000044 [10:19:11]line РНМ: 0000000000092660 [10:19:11]line Версия ККМ: 001 [10:19:11]line ФМ: 0000000000874939 [10:19:11]line ФД: 118127 [10:19:11]line ФПД: 258266764999080 [10:19:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T101914&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118127&fm=258266764999080&tin=02508201610067®Number=0000000000092660&sum=100000 [10:19:11]OFD Sender: Processing packet 118127 [packets to send 85, broken 84] [10:19:11]ProducePacketName [10:19:11]name=ofd_packets/00118127 [10:19:11]OFD Sender: To server: pG, [10:19:11]CommunicateWithHost lk.salyk.kg:30040 [10:19:11]ConnectInit lk.salyk.kg [10:19:11]written 0, free lines is 4095 [10:19:11]Connected sock=10 [10:19:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F1 E8 04 01 C9 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 A2 C9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6F CD 01 00 35 04 06 00 EA E4 6A C8 F9 A8 3F 24 D4 F5 BD 42 92 6C [10:19:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 79 82 47 00 06 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6F CD 01 00 F4 03 04 00 35 77 A4 66 B6 04 01 00 00 8B 4A 56 CA 24 35 58 76 [10:19:12]CommunicateWithHost err = 0 [10:19:12]CheckOFDResponse [10:19:12]1017 (14) - 77093643461234 [10:19:12]1041 (16) - 0000000000874939 [10:19:12]1040 (4) - 118127 [10:19:12]1012 (4) - 27.07.2024 04:27 [10:19:12]1206 (1) - 0 [10:19:12]OFD Sender: Remove packet 118127 [10:19:12]ProducePacketName [10:19:12]name=ofd_packets/00118127 [10:19:12]NVStorageDeleteData [10:19:12]Write to MH i2c: 01 00 00 63 36 99 [10:19:12]Write i2c OK [10:19:12]MH_I2C_Read... [10:19:12]Read from MH i2c: 01 [10:19:12]MH_I2C_Read... [10:19:12]Read from MH i2c: 01 07 00 [10:19:12]MH_I2C_Read... [10:19:12]Read from MH i2c: 01 07 00 63 36 00 00 00 00 00 EB 0C 97 [10:19:12]RasterBufferAndPrint [10:19:12]line [10:19:12]line [10:19:12]line [10:19:12]line [10:19:12]line [10:19:12]written 0, free lines is 3314 [10:19:12]MH_Cut [10:19:12]Write to MH i2c: D1 01 00 6A 36 01 72 [10:19:12]Write i2c OK [10:19:12]MH_I2C_Read... [10:19:12]Read from MH i2c: D1 [10:19:12]MH_I2C_Read... [10:19:12]Read from MH i2c: D1 01 00 [10:19:12]MH_I2C_Read... [10:19:12]Read from MH i2c: D1 01 00 6A 36 00 71 [10:19:12]Write to MH i2c: 01 00 00 6B 36 A1 [10:19:12]Write i2c OK [10:19:12]MH_I2C_Read... [10:19:12]OFD Sender: No OFD packet to send [10:19:12]*** Cut start [10:19:12]*** Partial cut [10:19:12]*** CUTSNS_PIN = 1 [10:19:12]*** CUTSNS_PIN = 0 [10:19:13]*** Brake cut motor [10:19:13]Read from MH i2c: 01 [10:19:13]MH_I2C_Read... [10:19:13]*** Stop cut motor [10:19:13]*** Cut end [10:19:13]Read from MH i2c: 01 07 00 [10:19:13]MH_I2C_Read... [10:19:13]Read from MH i2c: 01 07 00 6B 36 00 00 00 00 00 FF 0F B6 [10:19:13]process_action close_receipt done [10:19:13]requested_data is exist [10:19:13]produce_requested_data [10:19:13]requested_item fm.sn is exist - process it [10:19:13]wFMCommunicate request_size=4 [10:19:13]MH_SAM_APDU [10:19:13]CAPDU: 80 11 00 00 [10:19:13]Write to MH i2c: E2 08 00 6C 36 80 11 00 00 00 00 00 00 1C [10:19:13]Write i2c OK [10:19:13]MH_I2C_Read... [10:19:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:13]Read from MH i2c: E2 [10:19:13]MH_I2C_Read... [10:19:13]Read from MH i2c: E2 17 00 [10:19:13]MH_I2C_Read... [10:19:13]Read from MH i2c: E2 17 00 6C 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 77 [10:19:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:19:13]wFMCommunicate OK [10:19:13]requested_item fd.num is exist - process it [10:19:13]SAM_PROTO_GetFieldsCounters [10:19:13]wFMCommunicate request_size=4 [10:19:13]MH_SAM_APDU [10:19:13]CAPDU: 80 13 00 00 [10:19:13]Write to MH i2c: E2 08 00 6D 36 80 13 00 00 00 00 00 00 1F [10:19:13]Write i2c OK [10:19:13]MH_I2C_Read... [10:19:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:13]Read from MH i2c: E2 [10:19:13]MH_I2C_Read... [10:19:13]Read from MH i2c: E2 62 00 [10:19:13]MH_I2C_Read... [10:19:13]Read from MH i2c: E2 62 00 6D 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6F CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [10:19:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6F CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:19:13]wFMCommunicate OK [10:19:13]SAM_PROTO_GetFieldsCounters done [10:19:13]requested_item shift.num is exist - process it [10:19:13]requested_item shift.opened is exist - process it [10:19:13]req_shift_opened [10:19:13]FM_GetShiftState [10:19:13]SAM_PROTO_GetShiftState [10:19:13]wFMCommunicate request_size=4 [10:19:13]MH_SAM_APDU [10:19:13]CAPDU: 80 13 01 00 [10:19:13]Write to MH i2c: E2 08 00 6E 36 80 13 01 00 00 00 00 00 21 [10:19:13]Write i2c OK [10:19:13]MH_I2C_Read... [10:19:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:13]Read from MH i2c: E2 [10:19:13]MH_I2C_Read... [10:19:13]Read from MH i2c: E2 0E 00 [10:19:13]MH_I2C_Read... [10:19:13]Read from MH i2c: E2 0E 00 6E 36 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 AE [10:19:13]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:19:13]wFMCommunicate OK [10:19:13]SAM_PROTO_GetShiftState done [10:19:13]FM_GetShiftState done [10:19:13]req_shift_opened done [10:19:13]requested_item shift.open_date is exist - process it [10:19:13]req_shift_open_date [10:19:13]req_shift_open_date done [10:19:13]produce_requested_data done [10:19:13]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118127,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [10:19:13]process_action_free close_receipt [10:19:13]json_value_free [10:19:13]json_value_free done [10:19:13]process_json_proto returns [10:19:13]Send response to host [10:19:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118127,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [10:19:13]free response buf [10:19:13]execute_script done [10:19:13]execute_script returns [10:19:13]free content buf [10:19:13]Sock 7.Close socket [10:19:13]Sock 7.Thread stoped [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]accept exits with 9 [10:21:07]New connection [10:21:07]New thread 3067428196 created [10:21:07]Thread 3067284836 joined [10:21:07]Waiting for new connection... [10:21:07] Sock 9.Parse request [10:21:07]Sock 9.Check first char [10:21:07]Sock 9.First char is OK [10:21:07]request: POST /json_proto HTTP/1.0 [10:21:07]Method: POST [10:21:07]URL: /json_proto [10:21:07]Method is POST - this is cgi request [10:21:07]url: /json_proto [10:21:07]query_string will be loaded in cgi processing [10:21:07]execute_cgi json_proto POST (null) [10:21:07]execute_cgi path=json_proto method=POST [10:21:07]POST find Content-Length [10:21:07]Host: 172.17.45.7:8080 [10:21:07]Content-Length: 819 [10:21:07]Content-Type: application/json [10:21:07] [10:21:07]POST finish read [10:21:07]Found Content-Length = 819 [10:21:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 3500.00, "payments": [ { "type": 1, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:07]execute_script... [10:21:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 3500.00, "payments": [ { "type": 1, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:07]POST & json_proto [10:21:07]process_json_proto [10:21:07]json parsed OK: [10:21:07]protocol is kg_v1.0 [10:21:07]action value=close_receipt [10:21:07]process_action close_receipt [10:21:07]cmd_close_receipt [10:21:07]MH_GetDate [10:21:07]Write to MH i2c: F0 00 00 6F 36 94 [10:21:07]Write i2c OK [10:21:07]MH_I2C_Read... [10:21:07]Read from MH i2c: F0 [10:21:07]MH_I2C_Read... [10:21:07]Read from MH i2c: F0 09 00 [10:21:07]MH_I2C_Read... [10:21:07]Read from MH i2c: F0 09 00 6F 36 00 17 CA A4 66 90 0F 3E 66 CB [10:21:07]GetLastDocTimeStamp 1722075554 [10:21:07]current date 1722075671 [10:21:07]FM_GetShiftState [10:21:07]SAM_PROTO_GetShiftState [10:21:07]wFMCommunicate request_size=4 [10:21:07]MH_SAM_APDU [10:21:07]CAPDU: 80 13 01 00 [10:21:07]Write to MH i2c: E2 08 00 70 36 80 13 01 00 00 00 00 00 23 [10:21:07]Write i2c OK [10:21:07]MH_I2C_Read... [10:21:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:07]Read from MH i2c: E2 [10:21:07]MH_I2C_Read... [10:21:07]Read from MH i2c: E2 0E 00 [10:21:07]MH_I2C_Read... [10:21:07]Read from MH i2c: E2 0E 00 70 36 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 B0 [10:21:07]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:21:07]wFMCommunicate OK [10:21:07]SAM_PROTO_GetShiftState done [10:21:07]FM_GetShiftState done [10:21:07]opened in 1722038845 [10:21:07]opened+sec_in_day 1722125245 [10:21:07]quantity*price = 350062 [10:21:07]sum+1 = 350064 [10:21:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 3500.00 НСП 1% : 30.98 НДС 12% : 371.75 Наличными: 0.00 Безнал.: 3500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 71 27.07.2024 10:21 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118128 ФПД: 32969160722727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T102111&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118128&fm=32969160722727&tin=02508201610067®Number=0000000000092660&sum=350000 [10:21:08]StoreToDocumentArchive [10:21:08]shift 432 fd 118128 [10:21:08]save to /storage/0432/doc_00118128 [10:21:08]save last doc name /storage/0432/doc_00118128 to /storage/kkm_last_doc_name [10:21:08]save OK [10:21:08]Clear old archive folders... [10:21:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:21:08]tlvbuf is B6FC9370 [10:21:08]SAM_PROTO_ClearQueue [10:21:08]wFMCommunicate request_size=4 [10:21:08]MH_SAM_APDU [10:21:08]CAPDU: 80 09 00 00 [10:21:08]Write to MH i2c: E2 08 00 7D 36 80 09 00 00 00 00 00 00 25 [10:21:08]Write i2c OK [10:21:08]MH_I2C_Read... [10:21:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:08]Read from MH i2c: E2 [10:21:08]MH_I2C_Read... [10:21:08]Read from MH i2c: E2 03 00 [10:21:08]MH_I2C_Read... [10:21:08]Read from MH i2c: E2 03 00 7D 36 00 90 00 27 [10:21:08]RAPDU: 90 00 [10:21:08]wFMCommunicate OK [10:21:08]SAM_PROTO_ClearQueue done [10:21:08]KKMCreateOFDPacket [10:21:08]OFDProtocolAddRootSTLVToBuf [10:21:08]FM_MakeSignedData [10:21:08]FM_MakeSignedData [10:21:08]SAM_PROTO_SignData [10:21:08]wFMCommunicate request_size=4 [10:21:08]MH_SAM_APDU [10:21:08]CAPDU: 80 0D 01 02 [10:21:08]Write to MH i2c: E2 08 00 7E 36 80 0D 01 02 00 00 00 00 2D [10:21:08]Write i2c OK [10:21:08]MH_I2C_Read... [10:21:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:08]Read from MH i2c: E2 [10:21:08]MH_I2C_Read... [10:21:08]Read from MH i2c: E2 03 00 [10:21:08]MH_I2C_Read... [10:21:08]Read from MH i2c: E2 03 00 7E 36 00 90 00 28 [10:21:08]RAPDU: 90 00 [10:21:08]wFMCommunicate OK [10:21:08]wFMCommunicate request_size=255 [10:21:08]MH_SAM_APDU [10:21: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 17 CA A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 70 CD 01 00 35 04 06 00 1D FC 3B 1D [10:21:08]Write to MH i2c: E2 02 01 7F 36 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 17 CA A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 70 CD 01 00 35 04 06 00 1D FC 3B 1D 00 00 00 [10:21:08]Write i2c OK [10:21:08]MH_I2C_Read... [10:21:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:08]Read from MH i2c: E2 [10:21:08]MH_I2C_Read... [10:21:08]Read from MH i2c: E2 03 00 [10:21:08]MH_I2C_Read... [10:21:08]Read from MH i2c: E2 03 00 7F 36 00 90 00 29 [10:21:08]RAPDU: 90 00 [10:21:08]wFMCommunicate OK [10:21:08]wFMCommunicate request_size=7 [10:21:08]MH_SAM_APDU [10:21:08]CAPDU: 80 0D 02 02 02 09 27 [10:21:08]Write to MH i2c: E2 0A 00 80 36 80 0D 02 02 02 00 09 27 00 00 64 [10:21:08]Write i2c OK [10:21:08]MH_I2C_Read... [10:21:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:08]Read from MH i2c: E2 [10:21:08]MH_I2C_Read... [10:21:08]Read from MH i2c: E2 03 00 [10:21:08]MH_I2C_Read... [10:21:08]Read from MH i2c: E2 03 00 80 36 00 90 00 2A [10:21:08]RAPDU: 90 00 [10:21:08]wFMCommunicate OK [10:21:08]wFMCommunicate request_size=4 [10:21:08]MH_SAM_APDU [10:21:08]CAPDU: 80 0D 03 02 [10:21:08]Write to MH i2c: E2 08 00 81 36 80 0D 03 02 00 00 00 00 32 [10:21:08]Write i2c OK [10:21:08]MH_I2C_Read... [10:21:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:08]Read from MH i2c: E2 [10:21:08]MH_I2C_Read... [10:21:08]Read from MH i2c: E2 0B 00 [10:21:08]MH_I2C_Read... [10:21:08]Read from MH i2c: E2 0B 00 81 36 00 34 F4 4F 4D 78 74 F0 85 90 00 58 [10:21:08]RAPDU: 34 F4 4F 4D 78 74 F0 85 90 00 [10:21:08]wFMCommunicate OK [10:21:08]SAM_PROTO_SignData done [10:21:08]FM_MakeSignedData done [10:21:08]CreateOFDProtocolMessage [10:21:08]wFMCommunicate request_size=4 [10:21:08]MH_SAM_APDU [10:21:08]CAPDU: 80 11 00 00 [10:21:08]Write to MH i2c: E2 08 00 82 36 80 11 00 00 00 00 00 00 32 [10:21:08]Write i2c OK [10:21:08]MH_I2C_Read... [10:21:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:08]Read from MH i2c: E2 [10:21:08]MH_I2C_Read... [10:21:08]Read from MH i2c: E2 17 00 [10:21:08]MH_I2C_Read... [10:21:08]Read from MH i2c: E2 17 00 82 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8D [10:21:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:21:08]wFMCommunicate OK [10:21:08]CreateOFDProtocolMessage done [10:21:08]OFDSenderStorePacket 118128 [10:21:08]StoreOFDPacket docnum=118128 [10:21:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 0A B3 04 01 0C B1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 17 CA A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 70 CD 01 00 35 04 06 00 1D FC 3B 1D 09 27 34 F4 4F 4D 78 74 F0 85 [10:21:08]CheckFolder [10:21:08]dirname=/storage/ofd_packets [10:21:08]CheckFolder done [10:21:08]ProducePacketName [10:21:08]name=ofd_packets/00118128 [10:21:08]NVStorageSaveData ofd_packets/00118128 [10:21:08]File name is /storage/ofd_packets/00118128 [10:21:08]Write 298 bytes [10:21:08]NVStorageSaveData done [10:21:08]OFDSenderStorePacket done [10:21:08]KKMCreateOFDPacket done [10:21:08]NVStorageSaveData kkm_last_timestamp [10:21:08]File name is /storage/kkm_last_timestamp [10:21:08]Write 4 bytes [10:21:08]NVStorageSaveData done [10:21:08]ExternCall_PrintAddStr [10:21:08]wPrintStart [10:21:08]Write to MH i2c: 01 00 00 83 36 B9 [10:21:08]Write i2c OK [10:21:08]MH_I2C_Read... [10:21:08]Read from MH i2c: 01 [10:21:08]MH_I2C_Read... [10:21:08]Read from MH i2c: 01 07 00 [10:21:08]MH_I2C_Read... [10:21:08]Read from MH i2c: 01 07 00 83 36 00 00 00 00 00 FF 0F CE [10:21:08]RasterBufferAndPrint [10:21:08]line Счет N : (1)949001 [10:21:08]line ИНН: 02508201610067 [10:21:08]line Контрольно-Кассовый Чек [10:21:08]line ПРОДАЖА [10:21:08]line ТРК (МРК, ГНК) : 21 [10:21:08]line Товар: 2710194800 [10:21:08]line ДТ-К-5 [10:21:08]line 45.940 * 76.20 [10:21:08]line = 3500.63 [10:21:08]line НДС 12% НСП 1% [10:21:08]line > о реализуемом товаре [10:21:08]line ОКРУГЛЕНИЕ: -0.63 [10:21:08]line ИТОГО: 3500.00 [10:21:08]line НСП 1% : 30.98 [10:21:08]line НДС 12% : 371.75 [10:21:08]line Наличными: 0.00 [10:21:08]line Безнал.: 3500.00 [10:21:08]line Место: АЗС № 134 "Партнер Нефть" [10:21:08]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:21:08]line СНО: Общий режим [10:21:08]line Чек 71 27.07.2024 10:21 [10:21:08]line Смена: 432 ФФД: 1.0 [10:21:08]line ЗНМ: 0300000044 [10:21:08]line РНМ: 0000000000092660 [10:21:08]line Версия ККМ: 001 [10:21:08]line Платежная система: O! деньги [10:21:08]line ФМ: 0000000000874939 [10:21:08]line ФД: 118128 [10:21:08]line ФПД: 32969160722727 [10:21:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T102111&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118128&fm=32969160722727&tin=02508201610067®Number=0000000000092660&sum=350000 [10:21:09]OFD Sender: Processing packet 118128 [packets to send 85, broken 84] [10:21:09]ProducePacketName [10:21:09]name=ofd_packets/00118128 [10:21:09]OFD Sender: To server: pG, [10:21:09]CommunicateWithHost lk.salyk.kg:30040 [10:21:09]ConnectInit lk.salyk.kg [10:21:09]written 0, free lines is 4095 [10:21:09]Connected sock=10 [10:21:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 0A B3 04 01 0C B1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 17 CA A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 70 CD 01 00 35 04 06 00 1D FC 3B 1D 09 27 34 F4 4F 4D 78 74 F0 85 [10:21:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D0 A3 47 00 E0 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 70 CD 01 00 F4 03 04 00 AA 77 A4 66 B6 04 01 00 00 D0 2B 0A BC 60 69 C6 C5 [10:21:09]CommunicateWithHost err = 0 [10:21:09]CheckOFDResponse [10:21:09]1017 (14) - 77093643461234 [10:21:09]1041 (16) - 0000000000874939 [10:21:09]1040 (4) - 118128 [10:21:09]1012 (4) - 27.07.2024 04:29 [10:21:09]1206 (1) - 0 [10:21:09]OFD Sender: Remove packet 118128 [10:21:09]ProducePacketName [10:21:09]name=ofd_packets/00118128 [10:21:09]NVStorageDeleteData [10:21:09]Write to MH i2c: 01 00 00 AD 36 E3 [10:21:09]Write i2c OK [10:21:09]MH_I2C_Read... [10:21:09]Read from MH i2c: 01 [10:21:09]MH_I2C_Read... [10:21:09]Read from MH i2c: 01 07 00 [10:21:09]MH_I2C_Read... [10:21:09]Read from MH i2c: 01 07 00 AD 36 00 00 00 00 00 E0 0C D6 [10:21:09]RasterBufferAndPrint [10:21:09]line [10:21:09]line [10:21:09]line [10:21:09]line [10:21:09]line [10:21:09]written 0, free lines is 3304 [10:21:09]MH_Cut [10:21:09]Write to MH i2c: D1 01 00 B4 36 01 BC [10:21:09]Write i2c OK [10:21:09]MH_I2C_Read... [10:21:09]Read from MH i2c: D1 [10:21:09]MH_I2C_Read... [10:21:09]Read from MH i2c: D1 01 00 [10:21:09]MH_I2C_Read... [10:21:09]Read from MH i2c: D1 01 00 B4 36 00 BB [10:21:09]Write to MH i2c: 01 00 00 B5 36 EB [10:21:09]Write i2c OK [10:21:09]MH_I2C_Read... [10:21:09]OFD Sender: No OFD packet to send [10:21:10]*** Cut start [10:21:10]*** Partial cut [10:21:10]*** CUTSNS_PIN = 1 [10:21:10]*** CUTSNS_PIN = 0 [10:21:10]*** Brake cut motor [10:21:10]Read from MH i2c: 01 [10:21:10]MH_I2C_Read... [10:21:10]*** Stop cut motor [10:21:10]*** Cut end [10:21:10]Read from MH i2c: 01 07 00 [10:21:10]MH_I2C_Read... [10:21:10]Read from MH i2c: 01 07 00 B5 36 00 00 00 00 00 FF 0F 00 [10:21:10]process_action close_receipt done [10:21:10]requested_data is exist [10:21:10]produce_requested_data [10:21:10]requested_item fm.sn is exist - process it [10:21:10]wFMCommunicate request_size=4 [10:21:10]MH_SAM_APDU [10:21:10]CAPDU: 80 11 00 00 [10:21:10]Write to MH i2c: E2 08 00 B6 36 80 11 00 00 00 00 00 00 66 [10:21:10]Write i2c OK [10:21:10]MH_I2C_Read... [10:21:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:10]Read from MH i2c: E2 [10:21:10]MH_I2C_Read... [10:21:10]Read from MH i2c: E2 17 00 [10:21:10]MH_I2C_Read... [10:21:10]Read from MH i2c: E2 17 00 B6 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C1 [10:21:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:21:10]wFMCommunicate OK [10:21:10]requested_item fd.num is exist - process it [10:21:10]SAM_PROTO_GetFieldsCounters [10:21:10]wFMCommunicate request_size=4 [10:21:10]MH_SAM_APDU [10:21:10]CAPDU: 80 13 00 00 [10:21:10]Write to MH i2c: E2 08 00 B7 36 80 13 00 00 00 00 00 00 69 [10:21:10]Write i2c OK [10:21:10]MH_I2C_Read... [10:21:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:11]Read from MH i2c: E2 [10:21:11]MH_I2C_Read... [10:21:11]Read from MH i2c: E2 62 00 [10:21:11]MH_I2C_Read... [10:21:11]Read from MH i2c: E2 62 00 B7 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 70 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [10:21:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 70 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:21:11]wFMCommunicate OK [10:21:11]SAM_PROTO_GetFieldsCounters done [10:21:11]requested_item shift.num is exist - process it [10:21:11]requested_item shift.opened is exist - process it [10:21:11]req_shift_opened [10:21:11]FM_GetShiftState [10:21:11]SAM_PROTO_GetShiftState [10:21:11]wFMCommunicate request_size=4 [10:21:11]MH_SAM_APDU [10:21:11]CAPDU: 80 13 01 00 [10:21:11]Write to MH i2c: E2 08 00 B8 36 80 13 01 00 00 00 00 00 6B [10:21:11]Write i2c OK [10:21:11]MH_I2C_Read... [10:21:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:11]Read from MH i2c: E2 [10:21:11]MH_I2C_Read... [10:21:11]Read from MH i2c: E2 0E 00 [10:21:11]MH_I2C_Read... [10:21:11]Read from MH i2c: E2 0E 00 B8 36 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 F8 [10:21:11]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:21:11]wFMCommunicate OK [10:21:11]SAM_PROTO_GetShiftState done [10:21:11]FM_GetShiftState done [10:21:11]req_shift_opened done [10:21:11]requested_item shift.open_date is exist - process it [10:21:11]req_shift_open_date [10:21:11]req_shift_open_date done [10:21:11]produce_requested_data done [10:21:11]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118128,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [10:21:11]process_action_free close_receipt [10:21:11]json_value_free [10:21:11]json_value_free done [10:21:11]process_json_proto returns [10:21:11]Send response to host [10:21:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118128,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [10:21:11]free response buf [10:21:11]execute_script done [10:21:11]execute_script returns [10:21:11]free content buf [10:21:11]Sock 9.Close socket [10:21:11]Sock 9.Thread stoped [10:21:14]OFD Sender: No OFD packet to send [10:21:19]OFD Sender: No OFD packet to send [10:21:24]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:34]OFD Sender: No OFD packet to send [10:21:39]OFD Sender: No OFD packet to send [10:21:44]OFD Sender: No OFD packet to send [10:21:49]OFD Sender: No OFD packet to send [10:21:54]OFD Sender: No OFD packet to send [10:21:59]OFD Sender: No OFD packet to send [10:22:04]OFD Sender: No OFD packet to send [10:22:10]OFD Sender: No OFD packet to send [10:22:15]OFD Sender: No OFD packet to send [10:22:20]OFD Sender: No OFD packet to send [10:22:25]OFD Sender: No OFD packet to send [10:22:30]OFD Sender: No OFD packet to send [10:22:35]OFD Sender: No OFD packet to send [10:22:40]OFD Sender: No OFD packet to send [10:22:45]OFD Sender: No OFD packet to send [10:22:50]OFD Sender: No OFD packet to send [10:22:55]OFD Sender: No OFD packet to send [10:23:00]OFD Sender: No OFD packet to send [10:23:05]OFD Sender: No OFD packet to send [10:23:10]OFD Sender: No OFD packet to send [10:23:15]OFD Sender: No OFD packet to send [10:23:20]OFD Sender: No OFD packet to send [10:23:25]OFD Sender: No OFD packet to send [10:23:30]OFD Sender: No OFD packet to send [10:23:35]OFD Sender: No OFD packet to send [10:23:40]OFD Sender: No OFD packet to send [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:26:00]OFD Sender: No OFD packet to send [10:26:05]OFD Sender: No OFD packet to send [10:26:10]OFD Sender: No OFD packet to send [10:26:15]OFD Sender: No OFD packet to send [10:26:20]OFD Sender: No OFD packet to send [10:26:25]OFD Sender: No OFD packet to send [10:26:30]OFD Sender: No OFD packet to send [10:26:35]OFD Sender: No OFD packet to send [10:26:40]OFD Sender: No OFD packet to send [10:26:45]OFD Sender: No OFD packet to send [10:26:50]OFD Sender: No OFD packet to send [10:26:51]accept exits with 7 [10:26:51]New connection [10:26:51]New thread 3067284836 created [10:26:51]Thread 3067428196 joined [10:26:51]Waiting for new connection... [10:26:51] Sock 7.Parse request [10:26:51]Sock 7.Check first char [10:26:51]Sock 7.First char is OK [10:26:51]request: POST /json_proto HTTP/1.0 [10:26:51]Method: POST [10:26:51]URL: /json_proto [10:26:51]Method is POST - this is cgi request [10:26:51]url: /json_proto [10:26:51]query_string will be loaded in cgi processing [10:26:51]execute_cgi json_proto POST (null) [10:26:51]execute_cgi path=json_proto method=POST [10:26:51]POST find Content-Length [10:26:51]Host: 172.17.45.7:8080 [10:26:51]Content-Length: 679 [10:26:51]Content-Type: application/json [10:26:51] [10:26:51]POST finish read [10:26:51]Found Content-Length = 679 [10:26:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:51]execute_script... [10:26: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)949002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:51]POST & json_proto [10:26:51]process_json_proto [10:26:51]json parsed OK: [10:26:51]protocol is kg_v1.0 [10:26:51]action value=close_receipt [10:26:51]process_action close_receipt [10:26:51]cmd_close_receipt [10:26:51]MH_GetDate [10:26:51]Write to MH i2c: F0 00 00 B9 36 DE [10:26:51]Write i2c OK [10:26:51]MH_I2C_Read... [10:26:51]Read from MH i2c: F0 [10:26:51]MH_I2C_Read... [10:26:51]Read from MH i2c: F0 09 00 [10:26:51]MH_I2C_Read... [10:26:51]Read from MH i2c: F0 09 00 B9 36 00 6F CB A4 66 90 0F 3E 66 6E [10:26:51]GetLastDocTimeStamp 1722075671 [10:26:51]current date 1722076015 [10:26:51]FM_GetShiftState [10:26:51]SAM_PROTO_GetShiftState [10:26:51]wFMCommunicate request_size=4 [10:26:51]MH_SAM_APDU [10:26:51]CAPDU: 80 13 01 00 [10:26:51]Write to MH i2c: E2 08 00 BA 36 80 13 01 00 00 00 00 00 6D [10:26:51]Write i2c OK [10:26:51]MH_I2C_Read... [10:26:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:51]Read from MH i2c: E2 [10:26:51]MH_I2C_Read... [10:26:51]Read from MH i2c: E2 0E 00 [10:26:51]MH_I2C_Read... [10:26:51]Read from MH i2c: E2 0E 00 BA 36 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 FA [10:26:51]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:26:51]wFMCommunicate OK [10:26:51]SAM_PROTO_GetShiftState done [10:26:51]FM_GetShiftState done [10:26:51]opened in 1722038845 [10:26:51]opened+sec_in_day 1722125245 [10:26:51]quantity*price = 100050 [10:26:51]sum+1 = 100052 [10:26:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 72 27.07.2024 10:26 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118129 ФПД: 205918103929002 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T102655&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118129&fm=205918103929002&tin=02508201610067®Number=0000000000092660&sum=100000 [10:26:52]StoreToDocumentArchive [10:26:52]shift 432 fd 118129 [10:26:52]save to /storage/0432/doc_00118129 [10:26:52]save last doc name /storage/0432/doc_00118129 to /storage/kkm_last_doc_name [10:26:52]save OK [10:26:52]Clear old archive folders... [10:26:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:26:52]tlvbuf is 00761AF0 [10:26:52]SAM_PROTO_ClearQueue [10:26:52]wFMCommunicate request_size=4 [10:26:52]MH_SAM_APDU [10:26:52]CAPDU: 80 09 00 00 [10:26:52]Write to MH i2c: E2 08 00 C7 36 80 09 00 00 00 00 00 00 6F [10:26:52]Write i2c OK [10:26:52]MH_I2C_Read... [10:26:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:52]Read from MH i2c: E2 [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: E2 03 00 [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: E2 03 00 C7 36 00 90 00 71 [10:26:52]RAPDU: 90 00 [10:26:52]wFMCommunicate OK [10:26:52]SAM_PROTO_ClearQueue done [10:26:52]KKMCreateOFDPacket [10:26:52]OFDProtocolAddRootSTLVToBuf [10:26:52]FM_MakeSignedData [10:26:52]FM_MakeSignedData [10:26:52]SAM_PROTO_SignData [10:26:52]wFMCommunicate request_size=4 [10:26:52]MH_SAM_APDU [10:26:52]CAPDU: 80 0D 01 02 [10:26:52]Write to MH i2c: E2 08 00 C8 36 80 0D 01 02 00 00 00 00 77 [10:26:52]Write i2c OK [10:26:52]MH_I2C_Read... [10:26:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:52]Read from MH i2c: E2 [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: E2 03 00 [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: E2 03 00 C8 36 00 90 00 72 [10:26:52]RAPDU: 90 00 [10:26:52]wFMCommunicate OK [10:26:52]wFMCommunicate request_size=255 [10:26:52]MH_SAM_APDU [10:26: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 6F CB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 71 CD 01 00 35 04 06 00 BB 48 0B 70 [10:26:52]Write to MH i2c: E2 02 01 C9 36 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 6F CB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 71 CD 01 00 35 04 06 00 BB 48 0B 70 00 00 01 [10:26:52]Write i2c OK [10:26:52]MH_I2C_Read... [10:26:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:52]Read from MH i2c: E2 [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: E2 03 00 [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: E2 03 00 C9 36 00 90 00 73 [10:26:52]RAPDU: 90 00 [10:26:52]wFMCommunicate OK [10:26:52]wFMCommunicate request_size=7 [10:26:52]MH_SAM_APDU [10:26:52]CAPDU: 80 0D 02 02 02 00 AA [10:26:52]Write to MH i2c: E2 0A 00 CA 36 80 0D 02 02 02 00 00 AA 00 00 28 [10:26:52]Write i2c OK [10:26:52]MH_I2C_Read... [10:26:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:52]Read from MH i2c: E2 [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: E2 03 00 [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: E2 03 00 CA 36 00 90 00 74 [10:26:52]RAPDU: 90 00 [10:26:52]wFMCommunicate OK [10:26:52]wFMCommunicate request_size=4 [10:26:52]MH_SAM_APDU [10:26:52]CAPDU: 80 0D 03 02 [10:26:52]Write to MH i2c: E2 08 00 CB 36 80 0D 03 02 00 00 00 00 7C [10:26:52]Write i2c OK [10:26:52]MH_I2C_Read... [10:26:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:52]Read from MH i2c: E2 [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: E2 0B 00 [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: E2 0B 00 CB 36 00 69 6C 8F E8 FC 24 8E 8C 90 00 03 [10:26:52]RAPDU: 69 6C 8F E8 FC 24 8E 8C 90 00 [10:26:52]wFMCommunicate OK [10:26:52]SAM_PROTO_SignData done [10:26:52]FM_MakeSignedData done [10:26:52]CreateOFDProtocolMessage [10:26:52]wFMCommunicate request_size=4 [10:26:52]MH_SAM_APDU [10:26:52]CAPDU: 80 11 00 00 [10:26:52]Write to MH i2c: E2 08 00 CC 36 80 11 00 00 00 00 00 00 7C [10:26:52]Write i2c OK [10:26:52]MH_I2C_Read... [10:26:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:52]Read from MH i2c: E2 [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: E2 17 00 [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: E2 17 00 CC 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D7 [10:26:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:26:52]wFMCommunicate OK [10:26:52]CreateOFDProtocolMessage done [10:26:52]OFDSenderStorePacket 118129 [10:26:52]StoreOFDPacket docnum=118129 [10:26:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 EC 05 04 01 20 7A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 6F CB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 71 CD 01 00 35 04 06 00 BB 48 0B 70 00 AA 69 6C 8F E8 FC 24 8E 8C [10:26:52]CheckFolder [10:26:52]dirname=/storage/ofd_packets [10:26:52]CheckFolder done [10:26:52]ProducePacketName [10:26:52]name=ofd_packets/00118129 [10:26:52]NVStorageSaveData ofd_packets/00118129 [10:26:52]File name is /storage/ofd_packets/00118129 [10:26:52]Write 298 bytes [10:26:52]NVStorageSaveData done [10:26:52]OFDSenderStorePacket done [10:26:52]KKMCreateOFDPacket done [10:26:52]NVStorageSaveData kkm_last_timestamp [10:26:52]File name is /storage/kkm_last_timestamp [10:26:52]Write 4 bytes [10:26:52]NVStorageSaveData done [10:26:52]ExternCall_PrintAddStr [10:26:52]wPrintStart [10:26:52]Write to MH i2c: 01 00 00 CD 36 03 [10:26:52]Write i2c OK [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: 01 [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: 01 07 00 [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: 01 07 00 CD 36 00 00 00 00 00 FF 0F 18 [10:26:52]RasterBufferAndPrint [10:26:52]line Счет N : (1)949002 [10:26:52]line ИНН: 02508201610067 [10:26:52]line Контрольно-Кассовый Чек [10:26:52]line ПРОДАЖА [10:26:52]line ТРК (МРК, ГНК) : 44 [10:26:52]line Товар: 2710194800 [10:26:52]line ДТ-К-5 [10:26:52]line 13.130 * 76.20 [10:26:52]line = 1000.51 [10:26:52]line НДС 12% НСП 1% [10:26:52]line > о реализуемом товаре [10:26:52]line ОКРУГЛЕНИЕ: -0.51 [10:26:52]line ИТОГО: 1000.00 [10:26:52]line Внесено: 1000.00 [10:26:52]line СДАЧА: 0.00 [10:26:52]line НСП 1% : 8.85 [10:26:52]line НДС 12% : 106.25 [10:26:52]line Наличными: 1000.00 [10:26:52]line Безнал.: 0.00 [10:26:52]line Место: АЗС № 134 "Партнер Нефть" [10:26:52]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:26:52]line СНО: Общий режим [10:26:52]line Чек 72 27.07.2024 10:26 [10:26:52]line Смена: 432 ФФД: 1.0 [10:26:52]line ЗНМ: 0300000044 [10:26:52]line РНМ: 0000000000092660 [10:26:52]line Версия ККМ: 001 [10:26:52]line ФМ: 0000000000874939 [10:26:52]line ФД: 118129 [10:26:52]line ФПД: 205918103929002 [10:26:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T102655&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118129&fm=205918103929002&tin=02508201610067®Number=0000000000092660&sum=100000 [10:26:53]OFD Sender: Processing packet 118129 [packets to send 85, broken 84] [10:26:53]ProducePacketName [10:26:53]name=ofd_packets/00118129 [10:26:53]OFD Sender: To server: pG, [10:26:53]CommunicateWithHost lk.salyk.kg:30040 [10:26:53]ConnectInit lk.salyk.kg [10:26:53]written 0, free lines is 4095 [10:26:53]Connected sock=10 [10:26:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 EC 05 04 01 20 7A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 6F CB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 71 CD 01 00 35 04 06 00 BB 48 0B 70 00 AA 69 6C 8F E8 FC 24 8E 8C [10:26:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 AD 42 47 00 F3 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 71 CD 01 00 F4 03 04 00 02 79 A4 66 B6 04 01 00 00 AD 5F 31 FA 3D 33 05 B8 [10:26:53]CommunicateWithHost err = 0 [10:26:53]CheckOFDResponse [10:26:53]1017 (14) - 77093643461234 [10:26:53]1041 (16) - 0000000000874939 [10:26:53]1040 (4) - 118129 [10:26:53]1012 (4) - 27.07.2024 04:35 [10:26:53]1206 (1) - 0 [10:26:53]OFD Sender: Remove packet 118129 [10:26:53]ProducePacketName [10:26:53]name=ofd_packets/00118129 [10:26:53]NVStorageDeleteData [10:26:53]Write to MH i2c: 01 00 00 F7 36 2D [10:26:53]Write i2c OK [10:26:53]MH_I2C_Read... [10:26:53]Read from MH i2c: 01 [10:26:53]MH_I2C_Read... [10:26:53]Read from MH i2c: 01 07 00 [10:26:53]MH_I2C_Read... [10:26:53]Read from MH i2c: 01 07 00 F7 36 00 00 00 00 00 E3 0C 23 [10:26:53]RasterBufferAndPrint [10:26:53]line [10:26:53]line [10:26:53]line [10:26:53]line [10:26:53]line [10:26:53]written 0, free lines is 3303 [10:26:53]MH_Cut [10:26:53]Write to MH i2c: D1 01 00 FE 36 01 06 [10:26:53]Write i2c OK [10:26:53]MH_I2C_Read... [10:26:53]Read from MH i2c: D1 [10:26:53]MH_I2C_Read... [10:26:53]Read from MH i2c: D1 01 00 [10:26:53]MH_I2C_Read... [10:26:53]Read from MH i2c: D1 01 00 FE 36 00 05 [10:26:53]Write to MH i2c: 01 00 00 FF 36 35 [10:26:53]Write i2c OK [10:26:53]MH_I2C_Read... [10:26:54]OFD Sender: No OFD packet to send [10:26:54]*** Cut start [10:26:54]*** Partial cut [10:26:54]*** CUTSNS_PIN = 1 [10:26:54]*** CUTSNS_PIN = 0 [10:26:54]*** Brake cut motor [10:26:55]Read from MH i2c: 01 [10:26:55]MH_I2C_Read... [10:26:55]*** Stop cut motor [10:26:55]*** Cut end [10:26:55]Read from MH i2c: 01 07 00 [10:26:55]MH_I2C_Read... [10:26:55]Read from MH i2c: 01 07 00 FF 36 00 00 00 00 00 FF 0F 4A [10:26:55]process_action close_receipt done [10:26:55]requested_data is exist [10:26:55]produce_requested_data [10:26:55]requested_item fm.sn is exist - process it [10:26:55]wFMCommunicate request_size=4 [10:26:55]MH_SAM_APDU [10:26:55]CAPDU: 80 11 00 00 [10:26:55]Write to MH i2c: E2 08 00 00 37 80 11 00 00 00 00 00 00 B1 [10:26:55]Write i2c OK [10:26:55]MH_I2C_Read... [10:26:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:55]Read from MH i2c: E2 [10:26:55]MH_I2C_Read... [10:26:55]Read from MH i2c: E2 17 00 [10:26:55]MH_I2C_Read... [10:26:55]Read from MH i2c: E2 17 00 00 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0C [10:26:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:26:55]wFMCommunicate OK [10:26:55]requested_item fd.num is exist - process it [10:26:55]SAM_PROTO_GetFieldsCounters [10:26:55]wFMCommunicate request_size=4 [10:26:55]MH_SAM_APDU [10:26:55]CAPDU: 80 13 00 00 [10:26:55]Write to MH i2c: E2 08 00 01 37 80 13 00 00 00 00 00 00 B4 [10:26:55]Write i2c OK [10:26:55]MH_I2C_Read... [10:26:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:55]Read from MH i2c: E2 [10:26:55]MH_I2C_Read... [10:26:55]Read from MH i2c: E2 62 00 [10:26:55]MH_I2C_Read... [10:26:55]Read from MH i2c: E2 62 00 01 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 71 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [10:26:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 71 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:26:55]wFMCommunicate OK [10:26:55]SAM_PROTO_GetFieldsCounters done [10:26:55]requested_item shift.num is exist - process it [10:26:55]requested_item shift.opened is exist - process it [10:26:55]req_shift_opened [10:26:55]FM_GetShiftState [10:26:55]SAM_PROTO_GetShiftState [10:26:55]wFMCommunicate request_size=4 [10:26:55]MH_SAM_APDU [10:26:55]CAPDU: 80 13 01 00 [10:26:55]Write to MH i2c: E2 08 00 02 37 80 13 01 00 00 00 00 00 B6 [10:26:55]Write i2c OK [10:26:55]MH_I2C_Read... [10:26:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:55]Read from MH i2c: E2 [10:26:55]MH_I2C_Read... [10:26:55]Read from MH i2c: E2 0E 00 [10:26:55]MH_I2C_Read... [10:26:55]Read from MH i2c: E2 0E 00 02 37 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 43 [10:26:55]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:26:55]wFMCommunicate OK [10:26:55]SAM_PROTO_GetShiftState done [10:26:55]FM_GetShiftState done [10:26:55]req_shift_opened done [10:26:55]requested_item shift.open_date is exist - process it [10:26:55]req_shift_open_date [10:26:55]req_shift_open_date done [10:26:55]produce_requested_data done [10:26:55]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118129,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [10:26:55]process_action_free close_receipt [10:26:55]json_value_free [10:26:55]json_value_free done [10:26:55]process_json_proto returns [10:26:55]Send response to host [10:26:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118129,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [10:26:55]free response buf [10:26:55]execute_script done [10:26:55]execute_script returns [10:26:55]free content buf [10:26:55]Sock 7.Close socket [10:26:55]Sock 7.Thread stoped [10:26:59]OFD Sender: No OFD packet to send [10:27:04]OFD Sender: No OFD packet to send [10:27:09]OFD Sender: No OFD packet to send [10:27:14]OFD Sender: No OFD packet to send [10:27:19]OFD Sender: No OFD packet to send [10:27:24]OFD Sender: No OFD packet to send [10:27:29]OFD Sender: No OFD packet to send [10:27:34]OFD Sender: No OFD packet to send [10:27:39]OFD Sender: No OFD packet to send [10:27:44]OFD Sender: No OFD packet to send [10:27:49]OFD Sender: No OFD packet to send [10:27:54]OFD Sender: No OFD packet to send [10:27:59]OFD Sender: No OFD packet to send [10:28:04]OFD Sender: No OFD packet to send [10:28:09]OFD Sender: No OFD packet to send [10:28:14]OFD Sender: No OFD packet to send [10:28:19]OFD Sender: No OFD packet to send [10:28:21]accept exits with 9 [10:28:21]New connection [10:28:21]New thread 3067428196 created [10:28:21]Thread 3067284836 joined [10:28:21]Waiting for new connection... [10:28:21] Sock 9.Parse request [10:28:21]Sock 9.Check first char [10:28:21]Sock 9.First char is OK [10:28:21]request: POST /json_proto HTTP/1.0 [10:28:21]Method: POST [10:28:21]URL: /json_proto [10:28:21]Method is POST - this is cgi request [10:28:21]url: /json_proto [10:28:21]query_string will be loaded in cgi processing [10:28:21]execute_cgi json_proto POST (null) [10:28:21]execute_cgi path=json_proto method=POST [10:28:21]POST find Content-Length [10:28:21]Host: 172.17.45.7:8080 [10:28:21]Content-Length: 682 [10:28:21]Content-Type: application/json [10:28:21] [10:28:21]POST finish read [10:28:21]Found Content-Length = 682 [10:28:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 19.180, "sum" : 1300.40, "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" ] } } [10:28:21]execute_script... [10:28:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 19.180, "sum" : 1300.40, "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" ] } } [10:28:21]POST & json_proto [10:28:21]process_json_proto [10:28:21]json parsed OK: [10:28:21]protocol is kg_v1.0 [10:28:21]action value=close_receipt [10:28:21]process_action close_receipt [10:28:21]cmd_close_receipt [10:28:21]MH_GetDate [10:28:21]Write to MH i2c: F0 00 00 03 37 29 [10:28:21]Write i2c OK [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: F0 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: F0 09 00 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: F0 09 00 03 37 00 C9 CB A4 66 90 0F 3E 66 13 [10:28:21]GetLastDocTimeStamp 1722076015 [10:28:21]current date 1722076105 [10:28:21]FM_GetShiftState [10:28:21]SAM_PROTO_GetShiftState [10:28:21]wFMCommunicate request_size=4 [10:28:21]MH_SAM_APDU [10:28:21]CAPDU: 80 13 01 00 [10:28:21]Write to MH i2c: E2 08 00 04 37 80 13 01 00 00 00 00 00 B8 [10:28:21]Write i2c OK [10:28:21]MH_I2C_Read... [10:28:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:21]Read from MH i2c: E2 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: E2 0E 00 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: E2 0E 00 04 37 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 45 [10:28:21]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:28:21]wFMCommunicate OK [10:28:21]SAM_PROTO_GetShiftState done [10:28:21]FM_GetShiftState done [10:28:21]opened in 1722038845 [10:28:21]opened+sec_in_day 1722125245 [10:28:21]quantity*price = 130040 [10:28:21]sum+1 = 130041 [10:28:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.10 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 73 27.07.2024 10:28 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118130 ФПД: 135753921338752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T102825&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118130&fm=135753921338752&tin=02508201610067®Number=0000000000092660&sum=130000 [10:28:22]StoreToDocumentArchive [10:28:22]shift 432 fd 118130 [10:28:22]save to /storage/0432/doc_00118130 [10:28:22]save last doc name /storage/0432/doc_00118130 to /storage/kkm_last_doc_name [10:28:22]save OK [10:28:22]Clear old archive folders... [10:28:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:22]tlvbuf is 00775C80 [10:28:22]SAM_PROTO_ClearQueue [10:28:22]wFMCommunicate request_size=4 [10:28:22]MH_SAM_APDU [10:28:22]CAPDU: 80 09 00 00 [10:28:22]Write to MH i2c: E2 08 00 11 37 80 09 00 00 00 00 00 00 BA [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:22]Read from MH i2c: E2 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 03 00 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 03 00 11 37 00 90 00 BC [10:28:22]RAPDU: 90 00 [10:28:22]wFMCommunicate OK [10:28:22]SAM_PROTO_ClearQueue done [10:28:22]KKMCreateOFDPacket [10:28:22]OFDProtocolAddRootSTLVToBuf [10:28:22]FM_MakeSignedData [10:28:22]FM_MakeSignedData [10:28:22]SAM_PROTO_SignData [10:28:22]wFMCommunicate request_size=4 [10:28:22]MH_SAM_APDU [10:28:22]CAPDU: 80 0D 01 02 [10:28:22]Write to MH i2c: E2 08 00 12 37 80 0D 01 02 00 00 00 00 C2 [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:22]Read from MH i2c: E2 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 03 00 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 03 00 12 37 00 90 00 BD [10:28:22]RAPDU: 90 00 [10:28:22]wFMCommunicate OK [10:28:22]wFMCommunicate request_size=255 [10:28:22]MH_SAM_APDU [10:28:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 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 F2 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 49 00 00 00 F4 03 04 00 C9 CB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 72 CD 01 00 35 04 06 00 7B [10:28:22]Write to MH i2c: E2 02 01 13 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 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 F2 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 49 00 00 00 F4 03 04 00 C9 CB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 72 CD 01 00 35 04 06 00 7B 00 00 26 [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:22]Read from MH i2c: E2 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 03 00 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 03 00 13 37 00 90 00 BE [10:28:22]RAPDU: 90 00 [10:28:22]wFMCommunicate OK [10:28:22]wFMCommunicate request_size=10 [10:28:22]MH_SAM_APDU [10:28:22]CAPDU: 80 0D 02 02 05 77 AC 42 1D 80 [10:28:22]Write to MH i2c: E2 0D 00 14 37 80 0D 02 02 05 00 77 AC 42 1D 80 00 00 D1 [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:22]Read from MH i2c: E2 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 03 00 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 03 00 14 37 00 90 00 BF [10:28:22]RAPDU: 90 00 [10:28:22]wFMCommunicate OK [10:28:22]wFMCommunicate request_size=4 [10:28:22]MH_SAM_APDU [10:28:22]CAPDU: 80 0D 03 02 [10:28:22]Write to MH i2c: E2 08 00 15 37 80 0D 03 02 00 00 00 00 C7 [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:22]Read from MH i2c: E2 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 0B 00 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 0B 00 15 37 00 B2 BF 0C 53 E0 63 A2 FD 90 00 7A [10:28:22]RAPDU: B2 BF 0C 53 E0 63 A2 FD 90 00 [10:28:22]wFMCommunicate OK [10:28:22]SAM_PROTO_SignData done [10:28:22]FM_MakeSignedData done [10:28:22]CreateOFDProtocolMessage [10:28:22]wFMCommunicate request_size=4 [10:28:22]MH_SAM_APDU [10:28:22]CAPDU: 80 11 00 00 [10:28:22]Write to MH i2c: E2 08 00 16 37 80 11 00 00 00 00 00 00 C7 [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:22]Read from MH i2c: E2 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 17 00 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 17 00 16 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 22 [10:28:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:28:22]wFMCommunicate OK [10:28:22]CreateOFDProtocolMessage done [10:28:22]OFDSenderStorePacket 118130 [10:28:22]StoreOFDPacket docnum=118130 [10:28:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 60 F4 07 01 FF A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 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 F2 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 49 00 00 00 F4 03 04 00 C9 CB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 72 CD 01 00 35 04 06 00 7B 77 AC 42 1D 80 B2 BF 0C 53 E0 63 A2 FD [10:28:22]CheckFolder [10:28:22]dirname=/storage/ofd_packets [10:28:22]CheckFolder done [10:28:22]ProducePacketName [10:28:22]name=ofd_packets/00118130 [10:28:22]NVStorageSaveData ofd_packets/00118130 [10:28:22]File name is /storage/ofd_packets/00118130 [10:28:22]Write 301 bytes [10:28:22]NVStorageSaveData done [10:28:22]OFDSenderStorePacket done [10:28:22]KKMCreateOFDPacket done [10:28:22]NVStorageSaveData kkm_last_timestamp [10:28:22]File name is /storage/kkm_last_timestamp [10:28:22]Write 4 bytes [10:28:22]NVStorageSaveData done [10:28:22]ExternCall_PrintAddStr [10:28:22]wPrintStart [10:28:22]Write to MH i2c: 01 00 00 17 37 4E [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: 01 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: 01 07 00 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: 01 07 00 17 37 00 00 00 00 00 FF 0F 63 [10:28:22]RasterBufferAndPrint [10:28:22]line Счет N : (1)949003 [10:28:22]line ИНН: 02508201610067 [10:28:22]line Контрольно-Кассовый Чек [10:28:22]line ПРОДАЖА [10:28:22]line ТРК (МРК, ГНК) : 61 [10:28:22]line Товар: 2710124130 [10:28:22]line Аи-92-К-4 [10:28:22]line 19.180 * 67.80 [10:28:22]line = 1300.40 [10:28:22]line НДС 12% НСП 1% [10:28:22]line > о реализуемом товаре [10:28:22]line ОКРУГЛЕНИЕ: -0.40 [10:28:22]line ИТОГО: 1300.00 [10:28:22]line Внесено: 1300.00 [10:28:22]line СДАЧА: 0.00 [10:28:22]line НСП 1% : 11.51 [10:28:22]line НДС 12% : 138.10 [10:28:22]line Наличными: 1300.00 [10:28:22]line Безнал.: 0.00 [10:28:22]line Место: АЗС № 134 "Партнер Нефть" [10:28:22]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:28:22]line СНО: Общий режим [10:28:22]line Чек 73 27.07.2024 10:28 [10:28:22]line Смена: 432 ФФД: 1.0 [10:28:22]line ЗНМ: 0300000044 [10:28:22]line РНМ: 0000000000092660 [10:28:22]line Версия ККМ: 001 [10:28:22]line ФМ: 0000000000874939 [10:28:22]line ФД: 118130 [10:28:22]line ФПД: 135753921338752 [10:28:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T102825&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118130&fm=135753921338752&tin=02508201610067®Number=0000000000092660&sum=130000 [10:28:23]OFD Sender: Processing packet 118130 [packets to send 85, broken 84] [10:28:23]ProducePacketName [10:28:23]name=ofd_packets/00118130 [10:28:23]OFD Sender: To server: pG, [10:28:23]CommunicateWithHost lk.salyk.kg:30040 [10:28:23]ConnectInit lk.salyk.kg [10:28:23]written 0, free lines is 4095 [10:28:23]Connected sock=10 [10:28:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 60 F4 07 01 FF A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 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 F2 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 49 00 00 00 F4 03 04 00 C9 CB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 72 CD 01 00 35 04 06 00 7B 77 AC 42 1D 80 B2 BF 0C 53 E0 63 A2 FD [10:28:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B0 CA 47 00 82 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 72 CD 01 00 F4 03 04 00 5C 79 A4 66 B6 04 01 00 00 69 1A 00 D1 49 BA CD 27 [10:28:23]CommunicateWithHost err = 0 [10:28:23]CheckOFDResponse [10:28:23]1017 (14) - 77093643461234 [10:28:23]1041 (16) - 0000000000874939 [10:28:23]1040 (4) - 118130 [10:28:23]1012 (4) - 27.07.2024 04:36 [10:28:23]1206 (1) - 0 [10:28:23]OFD Sender: Remove packet 118130 [10:28:23]ProducePacketName [10:28:23]name=ofd_packets/00118130 [10:28:23]NVStorageDeleteData [10:28:23]Write to MH i2c: 01 00 00 41 37 78 [10:28:23]Write i2c OK [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: 01 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: 01 07 00 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: 01 07 00 41 37 00 00 00 00 00 DE 0C 69 [10:28:23]RasterBufferAndPrint [10:28:23]line [10:28:23]line [10:28:23]line [10:28:23]line [10:28:23]line [10:28:23]written 0, free lines is 3301 [10:28:23]MH_Cut [10:28:23]Write to MH i2c: D1 01 00 48 37 01 51 [10:28:23]Write i2c OK [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: D1 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: D1 01 00 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: D1 01 00 48 37 00 50 [10:28:23]Write to MH i2c: 01 00 00 49 37 80 [10:28:23]Write i2c OK [10:28:23]MH_I2C_Read... [10:28:24]OFD Sender: No OFD packet to send [10:28:24]*** Cut start [10:28:24]*** Partial cut [10:28:24]*** CUTSNS_PIN = 1 [10:28:24]*** CUTSNS_PIN = 0 [10:28:24]*** Brake cut motor [10:28:25]Read from MH i2c: 01 [10:28:25]MH_I2C_Read... [10:28:25]*** Stop cut motor [10:28:25]*** Cut end [10:28:25]Read from MH i2c: 01 07 00 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: 01 07 00 49 37 00 00 00 00 00 FF 0F 95 [10:28:25]process_action close_receipt done [10:28:25]requested_data is exist [10:28:25]produce_requested_data [10:28:25]requested_item fm.sn is exist - process it [10:28:25]wFMCommunicate request_size=4 [10:28:25]MH_SAM_APDU [10:28:25]CAPDU: 80 11 00 00 [10:28:25]Write to MH i2c: E2 08 00 4A 37 80 11 00 00 00 00 00 00 FB [10:28:25]Write i2c OK [10:28:25]MH_I2C_Read... [10:28:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:25]Read from MH i2c: E2 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 17 00 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 17 00 4A 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 56 [10:28:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:28:25]wFMCommunicate OK [10:28:25]requested_item fd.num is exist - process it [10:28:25]SAM_PROTO_GetFieldsCounters [10:28:25]wFMCommunicate request_size=4 [10:28:25]MH_SAM_APDU [10:28:25]CAPDU: 80 13 00 00 [10:28:25]Write to MH i2c: E2 08 00 4B 37 80 13 00 00 00 00 00 00 FE [10:28:25]Write i2c OK [10:28:25]MH_I2C_Read... [10:28:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:25]Read from MH i2c: E2 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 62 00 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 62 00 4B 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 72 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [10:28:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 72 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:28:25]wFMCommunicate OK [10:28:25]SAM_PROTO_GetFieldsCounters done [10:28:25]requested_item shift.num is exist - process it [10:28:25]requested_item shift.opened is exist - process it [10:28:25]req_shift_opened [10:28:25]FM_GetShiftState [10:28:25]SAM_PROTO_GetShiftState [10:28:25]wFMCommunicate request_size=4 [10:28:25]MH_SAM_APDU [10:28:25]CAPDU: 80 13 01 00 [10:28:25]Write to MH i2c: E2 08 00 4C 37 80 13 01 00 00 00 00 00 00 [10:28:25]Write i2c OK [10:28:25]MH_I2C_Read... [10:28:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:25]Read from MH i2c: E2 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 0E 00 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 0E 00 4C 37 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 8D [10:28:25]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:28:25]wFMCommunicate OK [10:28:25]SAM_PROTO_GetShiftState done [10:28:25]FM_GetShiftState done [10:28:25]req_shift_opened done [10:28:25]requested_item shift.open_date is exist - process it [10:28:25]req_shift_open_date [10:28:25]req_shift_open_date done [10:28:25]produce_requested_data done [10:28:25]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118130,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [10:28:25]process_action_free close_receipt [10:28:25]json_value_free [10:28:25]json_value_free done [10:28:25]process_json_proto returns [10:28:25]Send response to host [10:28:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118130,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [10:28:25]free response buf [10:28:25]execute_script done [10:28:25]execute_script returns [10:28:25]free content buf [10:28:25]Sock 9.Close socket [10:28:25]Sock 9.Thread stoped [10:28:29]OFD Sender: No OFD packet to send [10:28:34]OFD Sender: No OFD packet to send [10:28:39]OFD Sender: No OFD packet to send [10:28:44]OFD Sender: No OFD packet to send [10:28:49]OFD Sender: No OFD packet to send [10:28:54]OFD Sender: No OFD packet to send [10:28:59]OFD Sender: No OFD packet to send [10:29:04]OFD Sender: No OFD packet to send [10:29:09]OFD Sender: No OFD packet to send [10:29:14]OFD Sender: No OFD packet to send [10:29:19]OFD Sender: No OFD packet to send [10:29:22]accept exits with 7 [10:29:22]New connection [10:29:22]New thread 3067284836 created [10:29:22]Thread 3067428196 joined [10:29:22]Waiting for new connection... [10:29:22] Sock 7.Parse request [10:29:22]Sock 7.Check first char [10:29:22]Sock 7.First char is OK [10:29:22]request: POST /json_proto HTTP/1.0 [10:29:22]Method: POST [10:29:22]URL: /json_proto [10:29:22]Method is POST - this is cgi request [10:29:22]url: /json_proto [10:29:22]query_string will be loaded in cgi processing [10:29:22]execute_cgi json_proto POST (null) [10:29:22]execute_cgi path=json_proto method=POST [10:29:22]POST find Content-Length [10:29:22]Host: 172.17.45.7:8080 [10:29:22]Content-Length: 677 [10:29:22]Content-Type: application/json [10:29:22] [10:29:22]POST finish read [10:29:22]Found Content-Length = 677 [10:29:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:22]execute_script... [10:29:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:22]POST & json_proto [10:29:22]process_json_proto [10:29:22]json parsed OK: [10:29:22]protocol is kg_v1.0 [10:29:22]action value=close_receipt [10:29:22]process_action close_receipt [10:29:22]cmd_close_receipt [10:29:22]MH_GetDate [10:29:22]Write to MH i2c: F0 00 00 4D 37 73 [10:29:22]Write i2c OK [10:29:22]MH_I2C_Read... [10:29:22]Read from MH i2c: F0 [10:29:22]MH_I2C_Read... [10:29:22]Read from MH i2c: F0 09 00 [10:29:22]MH_I2C_Read... [10:29:22]Read from MH i2c: F0 09 00 4D 37 00 06 CC A4 66 90 0F 3E 66 9B [10:29:22]GetLastDocTimeStamp 1722076105 [10:29:22]current date 1722076166 [10:29:22]FM_GetShiftState [10:29:22]SAM_PROTO_GetShiftState [10:29:22]wFMCommunicate request_size=4 [10:29:22]MH_SAM_APDU [10:29:22]CAPDU: 80 13 01 00 [10:29:22]Write to MH i2c: E2 08 00 4E 37 80 13 01 00 00 00 00 00 02 [10:29:22]Write i2c OK [10:29:22]MH_I2C_Read... [10:29:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:22]Read from MH i2c: E2 [10:29:22]MH_I2C_Read... [10:29:22]Read from MH i2c: E2 0E 00 [10:29:22]MH_I2C_Read... [10:29:22]Read from MH i2c: E2 0E 00 4E 37 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 8F [10:29:22]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:29:22]wFMCommunicate OK [10:29:22]SAM_PROTO_GetShiftState done [10:29:22]FM_GetShiftState done [10:29:22]opened in 1722038845 [10:29:22]opened+sec_in_day 1722125245 [10:29:22]quantity*price = 20001 [10:29:22]sum+1 = 20002 [10:29:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 74 27.07.2024 10:29 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118131 ФПД: 93771051509292 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T102926&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118131&fm=93771051509292&tin=02508201610067®Number=0000000000092660&sum=20000 [10:29:23]StoreToDocumentArchive [10:29:23]shift 432 fd 118131 [10:29:23]save to /storage/0432/doc_00118131 [10:29:23]save last doc name /storage/0432/doc_00118131 to /storage/kkm_last_doc_name [10:29:23]save OK [10:29:23]Clear old archive folders... [10:29:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:29:23]tlvbuf is 006B91F0 [10:29:23]SAM_PROTO_ClearQueue [10:29:23]wFMCommunicate request_size=4 [10:29:23]MH_SAM_APDU [10:29:23]CAPDU: 80 09 00 00 [10:29:23]Write to MH i2c: E2 08 00 5B 37 80 09 00 00 00 00 00 00 04 [10:29:23]Write i2c OK [10:29:23]MH_I2C_Read... [10:29:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:23]Read from MH i2c: E2 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 03 00 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 03 00 5B 37 00 90 00 06 [10:29:23]RAPDU: 90 00 [10:29:23]wFMCommunicate OK [10:29:23]SAM_PROTO_ClearQueue done [10:29:23]KKMCreateOFDPacket [10:29:23]OFDProtocolAddRootSTLVToBuf [10:29:23]FM_MakeSignedData [10:29:23]FM_MakeSignedData [10:29:23]SAM_PROTO_SignData [10:29:23]wFMCommunicate request_size=4 [10:29:23]MH_SAM_APDU [10:29:23]CAPDU: 80 0D 01 02 [10:29:23]Write to MH i2c: E2 08 00 5C 37 80 0D 01 02 00 00 00 00 0C [10:29:23]Write i2c OK [10:29:23]MH_I2C_Read... [10:29:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:23]Read from MH i2c: E2 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 03 00 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 03 00 5C 37 00 90 00 07 [10:29:23]RAPDU: 90 00 [10:29:23]wFMCommunicate OK [10:29:23]wFMCommunicate request_size=255 [10:29:23]MH_SAM_APDU [10:29: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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 06 CC A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 73 CD 01 00 35 04 06 00 55 [10:29:23]Write to MH i2c: E2 02 01 5D 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 06 CC A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 73 CD 01 00 35 04 06 00 55 00 00 FF [10:29:23]Write i2c OK [10:29:23]MH_I2C_Read... [10:29:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:23]Read from MH i2c: E2 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 03 00 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 03 00 5D 37 00 90 00 08 [10:29:23]RAPDU: 90 00 [10:29:23]wFMCommunicate OK [10:29:23]wFMCommunicate request_size=10 [10:29:23]MH_SAM_APDU [10:29:23]CAPDU: 80 0D 02 02 05 48 C6 37 26 2C [10:29:23]Write to MH i2c: E2 0D 00 5E 37 80 0D 02 02 05 00 48 C6 37 26 2C 00 00 B0 [10:29:23]Write i2c OK [10:29:23]MH_I2C_Read... [10:29:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:23]Read from MH i2c: E2 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 03 00 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 03 00 5E 37 00 90 00 09 [10:29:23]RAPDU: 90 00 [10:29:23]wFMCommunicate OK [10:29:23]wFMCommunicate request_size=4 [10:29:23]MH_SAM_APDU [10:29:23]CAPDU: 80 0D 03 02 [10:29:23]Write to MH i2c: E2 08 00 5F 37 80 0D 03 02 00 00 00 00 11 [10:29:23]Write i2c OK [10:29:23]MH_I2C_Read... [10:29:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:23]Read from MH i2c: E2 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 0B 00 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 0B 00 5F 37 00 80 33 43 57 00 E2 3A 74 90 00 EF [10:29:23]RAPDU: 80 33 43 57 00 E2 3A 74 90 00 [10:29:23]wFMCommunicate OK [10:29:23]SAM_PROTO_SignData done [10:29:23]FM_MakeSignedData done [10:29:23]CreateOFDProtocolMessage [10:29:23]wFMCommunicate request_size=4 [10:29:23]MH_SAM_APDU [10:29:23]CAPDU: 80 11 00 00 [10:29:23]Write to MH i2c: E2 08 00 60 37 80 11 00 00 00 00 00 00 11 [10:29:23]Write i2c OK [10:29:23]MH_I2C_Read... [10:29:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:23]Read from MH i2c: E2 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 17 00 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 17 00 60 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6C [10:29:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:29:23]wFMCommunicate OK [10:29:23]CreateOFDProtocolMessage done [10:29:23]OFDSenderStorePacket 118131 [10:29:23]StoreOFDPacket docnum=118131 [10:29:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D4 C1 07 01 D8 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 06 CC A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 73 CD 01 00 35 04 06 00 55 48 C6 37 26 2C 80 33 43 57 00 E2 3A 74 [10:29:23]CheckFolder [10:29:23]dirname=/storage/ofd_packets [10:29:23]CheckFolder done [10:29:23]ProducePacketName [10:29:23]name=ofd_packets/00118131 [10:29:23]NVStorageSaveData ofd_packets/00118131 [10:29:23]File name is /storage/ofd_packets/00118131 [10:29:23]Write 301 bytes [10:29:23]NVStorageSaveData done [10:29:23]OFDSenderStorePacket done [10:29:23]KKMCreateOFDPacket done [10:29:23]NVStorageSaveData kkm_last_timestamp [10:29:23]File name is /storage/kkm_last_timestamp [10:29:23]Write 4 bytes [10:29:23]NVStorageSaveData done [10:29:23]ExternCall_PrintAddStr [10:29:23]wPrintStart [10:29:23]Write to MH i2c: 01 00 00 61 37 98 [10:29:23]Write i2c OK [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: 01 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: 01 07 00 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: 01 07 00 61 37 00 00 00 00 00 FF 0F AD [10:29:23]RasterBufferAndPrint [10:29:23]line Счет N : (1)949004 [10:29:23]line ИНН: 02508201610067 [10:29:23]line Контрольно-Кассовый Чек [10:29:23]line ПРОДАЖА [10:29:23]line ТРК (МРК, ГНК) : 31 [10:29:23]line Товар: 2710124130 [10:29:23]line Аи-92-К-4 [10:29:23]line 2.950 * 67.80 [10:29:23]line = 200.01 [10:29:23]line НДС 12% НСП 1% [10:29:23]line > о реализуемом товаре [10:29:23]line ОКРУГЛЕНИЕ: -0.01 [10:29:23]line ИТОГО: 200.00 [10:29:23]line Внесено: 200.00 [10:29:23]line СДАЧА: 0.00 [10:29:23]line НСП 1% : 1.77 [10:29:23]line НДС 12% : 21.24 [10:29:23]line Наличными: 200.00 [10:29:23]line Безнал.: 0.00 [10:29:23]line Место: АЗС № 134 "Партнер Нефть" [10:29:23]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:29:23]line СНО: Общий режим [10:29:23]line Чек 74 27.07.2024 10:29 [10:29:23]line Смена: 432 ФФД: 1.0 [10:29:23]line ЗНМ: 0300000044 [10:29:23]line РНМ: 0000000000092660 [10:29:23]line Версия ККМ: 001 [10:29:23]line ФМ: 0000000000874939 [10:29:23]line ФД: 118131 [10:29:23]line ФПД: 93771051509292 [10:29:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T102926&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118131&fm=93771051509292&tin=02508201610067®Number=0000000000092660&sum=20000 [10:29:23]written 0, free lines is 4095 [10:29:23]OFD Sender: Processing packet 118131 [packets to send 85, broken 84] [10:29:23]ProducePacketName [10:29:23]name=ofd_packets/00118131 [10:29:24]OFD Sender: To server: pG, [10:29:24]CommunicateWithHost lk.salyk.kg:30040 [10:29:24]ConnectInit lk.salyk.kg [10:29:24]Connected sock=10 [10:29:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D4 C1 07 01 D8 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 06 CC A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 73 CD 01 00 35 04 06 00 55 48 C6 37 26 2C 80 33 43 57 00 E2 3A 74 [10:29:24]Write to MH i2c: 01 00 00 8B 37 C2 [10:29:24]Write i2c OK [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: 01 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: 01 07 00 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: 01 07 00 8B 37 00 00 00 00 00 CC 0C A1 [10:29:24]RasterBufferAndPrint [10:29:24]line [10:29:24]line [10:29:24]line [10:29:24]line [10:29:24]line [10:29:24]written 0, free lines is 3283 [10:29:24]MH_Cut [10:29:24]Write to MH i2c: D1 01 00 92 37 01 9B [10:29:24]Write i2c OK [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: D1 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: D1 01 00 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: D1 01 00 92 37 00 9A [10:29:24]Write to MH i2c: 01 00 00 93 37 CA [10:29:24]Write i2c OK [10:29:24]MH_I2C_Read... [10:29:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 04 DD 47 00 80 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 73 CD 01 00 F4 03 04 00 99 79 A4 66 B6 04 01 00 00 3C 2D 6A DF DB B6 CD 20 [10:29:24]CommunicateWithHost err = 0 [10:29:24]CheckOFDResponse [10:29:24]1017 (14) - 77093643461234 [10:29:24]1041 (16) - 0000000000874939 [10:29:24]1040 (4) - 118131 [10:29:24]1012 (4) - 27.07.2024 04:37 [10:29:24]1206 (1) - 0 [10:29:24]OFD Sender: Remove packet 118131 [10:29:24]ProducePacketName [10:29:24]name=ofd_packets/00118131 [10:29:24]NVStorageDeleteData [10:29:25]OFD Sender: No OFD packet to send [10:29:25]*** Cut start [10:29:25]*** Partial cut [10:29:25]*** CUTSNS_PIN = 1 [10:29:25]*** CUTSNS_PIN = 0 [10:29:25]*** Brake cut motor [10:29:25]Read from MH i2c: 01 [10:29:25]MH_I2C_Read... [10:29:25]*** Stop cut motor [10:29:25]*** Cut end [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 93 37 00 00 00 00 00 FF 0F DF [10:29:25]process_action close_receipt done [10:29:25]requested_data is exist [10:29:25]produce_requested_data [10:29:25]requested_item fm.sn is exist - process it [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 94 37 80 11 00 00 00 00 00 00 45 [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 94 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A0 [10:29:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:29:25]wFMCommunicate OK [10:29:25]requested_item fd.num is exist - process it [10:29:25]SAM_PROTO_GetFieldsCounters [10:29:25]wFMCommunicate request_size=4 [10:29:25]MH_SAM_APDU [10:29:25]CAPDU: 80 13 00 00 [10:29:25]Write to MH i2c: E2 08 00 95 37 80 13 00 00 00 00 00 00 48 [10:29:25]Write i2c OK [10:29:25]MH_I2C_Read... [10:29:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:25]Read from MH i2c: E2 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 62 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 62 00 95 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 73 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [10:29:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 73 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:29:25]wFMCommunicate OK [10:29:25]SAM_PROTO_GetFieldsCounters done [10:29:25]requested_item shift.num is exist - process it [10:29:25]requested_item shift.opened is exist - process it [10:29:25]req_shift_opened [10:29:25]FM_GetShiftState [10:29:25]SAM_PROTO_GetShiftState [10:29:25]wFMCommunicate request_size=4 [10:29:25]MH_SAM_APDU [10:29:25]CAPDU: 80 13 01 00 [10:29:25]Write to MH i2c: E2 08 00 96 37 80 13 01 00 00 00 00 00 4A [10:29:25]Write i2c OK [10:29:25]MH_I2C_Read... [10:29:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:25]Read from MH i2c: E2 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 0E 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 0E 00 96 37 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 D7 [10:29:25]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:29:25]wFMCommunicate OK [10:29:25]SAM_PROTO_GetShiftState done [10:29:25]FM_GetShiftState done [10:29:25]req_shift_opened done [10:29:25]requested_item shift.open_date is exist - process it [10:29:25]req_shift_open_date [10:29:25]req_shift_open_date done [10:29:25]produce_requested_data done [10:29:25]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118131,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [10:29:25]process_action_free close_receipt [10:29:25]json_value_free [10:29:25]json_value_free done [10:29:25]process_json_proto returns [10:29:25]Send response to host [10:29:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118131,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [10:29:25]free response buf [10:29:25]execute_script done [10:29:25]execute_script returns [10:29:25]free content buf [10:29:25]Sock 7.Close socket [10:29:25]Sock 7.Thread stoped [10:29:30]OFD Sender: No OFD packet to send [10:29:35]OFD Sender: No OFD packet to send [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:04]accept exits with 9 [10:30:04]New connection [10:30:04]New thread 3067428196 created [10:30:04]Thread 3067284836 joined [10:30:04]Waiting for new connection... [10:30:04] Sock 9.Parse request [10:30:04]Sock 9.Check first char [10:30:04]Sock 9.First char is OK [10:30:04]request: POST /json_proto HTTP/1.0 [10:30:04]Method: POST [10:30:04]URL: /json_proto [10:30:04]Method is POST - this is cgi request [10:30:04]url: /json_proto [10:30:04]query_string will be loaded in cgi processing [10:30:04]execute_cgi json_proto POST (null) [10:30:04]execute_cgi path=json_proto method=POST [10:30:04]POST find Content-Length [10:30:04]Host: 172.17.45.7:8080 [10:30:04]Content-Length: 677 [10:30:04]Content-Type: application/json [10:30:04] [10:30:04]POST finish read [10:30:04]Found Content-Length = 677 [10:30:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:04]execute_script... [10:30:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:04]POST & json_proto [10:30:04]process_json_proto [10:30:04]json parsed OK: [10:30:04]protocol is kg_v1.0 [10:30:04]action value=close_receipt [10:30:04]process_action close_receipt [10:30:04]cmd_close_receipt [10:30:04]MH_GetDate [10:30:04]Write to MH i2c: F0 00 00 97 37 BD [10:30:04]Write i2c OK [10:30:04]MH_I2C_Read... [10:30:04]Read from MH i2c: F0 [10:30:04]MH_I2C_Read... [10:30:04]Read from MH i2c: F0 09 00 [10:30:04]MH_I2C_Read... [10:30:04]Read from MH i2c: F0 09 00 97 37 00 31 CC A4 66 90 0F 3E 66 10 [10:30:04]GetLastDocTimeStamp 1722076166 [10:30:04]current date 1722076209 [10:30:04]FM_GetShiftState [10:30:04]SAM_PROTO_GetShiftState [10:30:04]wFMCommunicate request_size=4 [10:30:04]MH_SAM_APDU [10:30:04]CAPDU: 80 13 01 00 [10:30:04]Write to MH i2c: E2 08 00 98 37 80 13 01 00 00 00 00 00 4C [10:30:04]Write i2c OK [10:30:04]MH_I2C_Read... [10:30:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:04]Read from MH i2c: E2 [10:30:04]MH_I2C_Read... [10:30:04]Read from MH i2c: E2 0E 00 [10:30:04]MH_I2C_Read... [10:30:04]Read from MH i2c: E2 0E 00 98 37 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 D9 [10:30:04]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:30:04]wFMCommunicate OK [10:30:04]SAM_PROTO_GetShiftState done [10:30:04]FM_GetShiftState done [10:30:04]opened in 1722038845 [10:30:04]opened+sec_in_day 1722125245 [10:30:04]quantity*price = 50036 [10:30:04]sum+1 = 50037 [10:30:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 75 27.07.2024 10:30 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118132 ФПД: 55690467528575 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T103009&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118132&fm=55690467528575&tin=02508201610067®Number=0000000000092660&sum=50000 [10:30:05]StoreToDocumentArchive [10:30:05]shift 432 fd 118132 [10:30:05]save to /storage/0432/doc_00118132 [10:30:05]save last doc name /storage/0432/doc_00118132 to /storage/kkm_last_doc_name [10:30:05]save OK [10:30:05]Clear old archive folders... [10:30:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:30:05]tlvbuf is 0077AB90 [10:30:05]SAM_PROTO_ClearQueue [10:30:05]wFMCommunicate request_size=4 [10:30:05]MH_SAM_APDU [10:30:05]CAPDU: 80 09 00 00 [10:30:05]Write to MH i2c: E2 08 00 A5 37 80 09 00 00 00 00 00 00 4E [10:30:05]Write i2c OK [10:30:05]MH_I2C_Read... [10:30:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:05]Read from MH i2c: E2 [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: E2 03 00 [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: E2 03 00 A5 37 00 90 00 50 [10:30:05]RAPDU: 90 00 [10:30:05]wFMCommunicate OK [10:30:05]SAM_PROTO_ClearQueue done [10:30:05]KKMCreateOFDPacket [10:30:05]OFDProtocolAddRootSTLVToBuf [10:30:05]FM_MakeSignedData [10:30:05]FM_MakeSignedData [10:30:05]SAM_PROTO_SignData [10:30:05]wFMCommunicate request_size=4 [10:30:05]MH_SAM_APDU [10:30:05]CAPDU: 80 0D 01 02 [10:30:05]Write to MH i2c: E2 08 00 A6 37 80 0D 01 02 00 00 00 00 56 [10:30:05]Write i2c OK [10:30:05]MH_I2C_Read... [10:30:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:05]Read from MH i2c: E2 [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: E2 03 00 [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: E2 03 00 A6 37 00 90 00 51 [10:30:05]RAPDU: 90 00 [10:30:05]wFMCommunicate OK [10:30:05]wFMCommunicate request_size=255 [10:30:05]MH_SAM_APDU [10:30:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4B 00 00 00 F4 03 04 00 31 CC A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 74 CD 01 00 35 04 06 00 32 [10:30:05]Write to MH i2c: E2 02 01 A7 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4B 00 00 00 F4 03 04 00 31 CC A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 74 CD 01 00 35 04 06 00 32 00 00 51 [10:30:05]Write i2c OK [10:30:05]MH_I2C_Read... [10:30:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:06]Read from MH i2c: E2 [10:30:06]MH_I2C_Read... [10:30:06]Read from MH i2c: E2 03 00 [10:30:06]MH_I2C_Read... [10:30:06]Read from MH i2c: E2 03 00 A7 37 00 90 00 52 [10:30:06]RAPDU: 90 00 [10:30:06]wFMCommunicate OK [10:30:06]wFMCommunicate request_size=10 [10:30:06]MH_SAM_APDU [10:30:06]CAPDU: 80 0D 02 02 05 A6 72 88 CF 7F [10:30:06]Write to MH i2c: E2 0D 00 A8 37 80 0D 02 02 05 00 A6 72 88 CF 7F 00 00 51 [10:30:06]Write i2c OK [10:30:06]MH_I2C_Read... [10:30:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:06]Read from MH i2c: E2 [10:30:06]MH_I2C_Read... [10:30:06]Read from MH i2c: E2 03 00 [10:30:06]MH_I2C_Read... [10:30:06]Read from MH i2c: E2 03 00 A8 37 00 90 00 53 [10:30:06]RAPDU: 90 00 [10:30:06]wFMCommunicate OK [10:30:06]wFMCommunicate request_size=4 [10:30:06]MH_SAM_APDU [10:30:06]CAPDU: 80 0D 03 02 [10:30:06]Write to MH i2c: E2 08 00 A9 37 80 0D 03 02 00 00 00 00 5B [10:30:06]Write i2c OK [10:30:06]MH_I2C_Read... [10:30:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:06]Read from MH i2c: E2 [10:30:06]MH_I2C_Read... [10:30:06]Read from MH i2c: E2 0B 00 [10:30:06]MH_I2C_Read... [10:30:06]Read from MH i2c: E2 0B 00 A9 37 00 89 1D 8D 61 D0 FA 65 AC 90 00 CB [10:30:06]RAPDU: 89 1D 8D 61 D0 FA 65 AC 90 00 [10:30:06]wFMCommunicate OK [10:30:06]SAM_PROTO_SignData done [10:30:06]FM_MakeSignedData done [10:30:06]CreateOFDProtocolMessage [10:30:06]wFMCommunicate request_size=4 [10:30:06]MH_SAM_APDU [10:30:06]CAPDU: 80 11 00 00 [10:30:06]Write to MH i2c: E2 08 00 AA 37 80 11 00 00 00 00 00 00 5B [10:30:06]Write i2c OK [10:30:06]MH_I2C_Read... [10:30:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:06]Read from MH i2c: E2 [10:30:06]MH_I2C_Read... [10:30:06]Read from MH i2c: E2 17 00 [10:30:06]MH_I2C_Read... [10:30:06]Read from MH i2c: E2 17 00 AA 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B6 [10:30:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:30:06]wFMCommunicate OK [10:30:06]CreateOFDProtocolMessage done [10:30:06]OFDSenderStorePacket 118132 [10:30:06]StoreOFDPacket docnum=118132 [10:30:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2D F4 07 01 E1 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4B 00 00 00 F4 03 04 00 31 CC A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 74 CD 01 00 35 04 06 00 32 A6 72 88 CF 7F 89 1D 8D 61 D0 FA 65 AC [10:30:06]CheckFolder [10:30:06]dirname=/storage/ofd_packets [10:30:06]CheckFolder done [10:30:06]ProducePacketName [10:30:06]name=ofd_packets/00118132 [10:30:06]NVStorageSaveData ofd_packets/00118132 [10:30:06]File name is /storage/ofd_packets/00118132 [10:30:06]Write 301 bytes [10:30:06]NVStorageSaveData done [10:30:06]OFDSenderStorePacket done [10:30:06]KKMCreateOFDPacket done [10:30:06]NVStorageSaveData kkm_last_timestamp [10:30:06]File name is /storage/kkm_last_timestamp [10:30:06]Write 4 bytes [10:30:06]NVStorageSaveData done [10:30:06]ExternCall_PrintAddStr [10:30:06]wPrintStart [10:30:06]Write to MH i2c: 01 00 00 AB 37 E2 [10:30:06]Write i2c OK [10:30:06]MH_I2C_Read... [10:30:06]Read from MH i2c: 01 [10:30:06]MH_I2C_Read... [10:30:06]Read from MH i2c: 01 07 00 [10:30:06]MH_I2C_Read... [10:30:06]Read from MH i2c: 01 07 00 AB 37 00 00 00 00 00 FF 0F F7 [10:30:06]RasterBufferAndPrint [10:30:06]line Счет N : (1)949005 [10:30:06]line ИНН: 02508201610067 [10:30:06]line Контрольно-Кассовый Чек [10:30:06]line ПРОДАЖА [10:30:06]line ТРК (МРК, ГНК) : 51 [10:30:06]line Товар: 2710124130 [10:30:06]line Аи-92-К-4 [10:30:06]line 7.380 * 67.80 [10:30:06]line = 500.36 [10:30:06]line НДС 12% НСП 1% [10:30:06]line > о реализуемом товаре [10:30:06]line ОКРУГЛЕНИЕ: -0.36 [10:30:06]line ИТОГО: 500.00 [10:30:06]line Внесено: 500.00 [10:30:06]line СДАЧА: 0.00 [10:30:06]line НСП 1% : 4.43 [10:30:06]line НДС 12% : 53.14 [10:30:06]line Наличными: 500.00 [10:30:06]line Безнал.: 0.00 [10:30:06]line Место: АЗС № 134 "Партнер Нефть" [10:30:06]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:30:06]line СНО: Общий режим [10:30:06]line Чек 75 27.07.2024 10:30 [10:30:06]line Смена: 432 ФФД: 1.0 [10:30:06]line ЗНМ: 0300000044 [10:30:06]line РНМ: 0000000000092660 [10:30:06]line Версия ККМ: 001 [10:30:06]line ФМ: 0000000000874939 [10:30:06]line ФД: 118132 [10:30:06]line ФПД: 55690467528575 [10:30:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T103009&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118132&fm=55690467528575&tin=02508201610067®Number=0000000000092660&sum=50000 [10:30:06]OFD Sender: Processing packet 118132 [packets to send 85, broken 84] [10:30:06]ProducePacketName [10:30:06]name=ofd_packets/00118132 [10:30:06]OFD Sender: To server: pG, [10:30:06]CommunicateWithHost lk.salyk.kg:30040 [10:30:06]ConnectInit lk.salyk.kg [10:30:06]written 0, free lines is 4095 [10:30:06]Connected sock=10 [10:30:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2D F4 07 01 E1 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4B 00 00 00 F4 03 04 00 31 CC A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 74 CD 01 00 35 04 06 00 32 A6 72 88 CF 7F 89 1D 8D 61 D0 FA 65 AC [10:30:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 1E 26 47 00 B7 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 74 CD 01 00 F4 03 04 00 C4 79 A4 66 B6 04 01 00 00 68 B8 82 2C 9D A5 83 22 [10:30:06]CommunicateWithHost err = 0 [10:30:06]CheckOFDResponse [10:30:06]1017 (14) - 77093643461234 [10:30:06]1041 (16) - 0000000000874939 [10:30:06]1040 (4) - 118132 [10:30:06]1012 (4) - 27.07.2024 04:38 [10:30:06]1206 (1) - 0 [10:30:06]OFD Sender: Remove packet 118132 [10:30:06]ProducePacketName [10:30:06]name=ofd_packets/00118132 [10:30:06]NVStorageDeleteData [10:30:07]Write to MH i2c: 01 00 00 D5 37 0C [10:30:07]Write i2c OK [10:30:07]MH_I2C_Read... [10:30:07]Read from MH i2c: 01 [10:30:07]MH_I2C_Read... [10:30:07]Read from MH i2c: 01 07 00 [10:30:07]MH_I2C_Read... [10:30:07]Read from MH i2c: 01 07 00 D5 37 00 00 00 00 00 DF 0C FE [10:30:07]RasterBufferAndPrint [10:30:07]line [10:30:07]line [10:30:07]line [10:30:07]line [10:30:07]line [10:30:07]written 0, free lines is 3304 [10:30:07]MH_Cut [10:30:07]Write to MH i2c: D1 01 00 DC 37 01 E5 [10:30:07]Write i2c OK [10:30:07]MH_I2C_Read... [10:30:07]Read from MH i2c: D1 [10:30:07]MH_I2C_Read... [10:30:07]Read from MH i2c: D1 01 00 [10:30:07]MH_I2C_Read... [10:30:07]Read from MH i2c: D1 01 00 DC 37 00 E4 [10:30:07]Write to MH i2c: 01 00 00 DD 37 14 [10:30:07]Write i2c OK [10:30:07]MH_I2C_Read... [10:30:07]OFD Sender: No OFD packet to send [10:30:07]*** Cut start [10:30:07]*** Partial cut [10:30:07]*** CUTSNS_PIN = 1 [10:30:07]*** CUTSNS_PIN = 0 [10:30:08]*** Brake cut motor [10:30:08]Read from MH i2c: 01 [10:30:08]MH_I2C_Read... [10:30:08]*** Stop cut motor [10:30:08]*** Cut end [10:30:08]Read from MH i2c: 01 07 00 [10:30:08]MH_I2C_Read... [10:30:08]Read from MH i2c: 01 07 00 DD 37 00 00 00 00 00 FF 0F 29 [10:30:08]process_action close_receipt done [10:30:08]requested_data is exist [10:30:08]produce_requested_data [10:30:08]requested_item fm.sn is exist - process it [10:30:08]wFMCommunicate request_size=4 [10:30:08]MH_SAM_APDU [10:30:08]CAPDU: 80 11 00 00 [10:30:08]Write to MH i2c: E2 08 00 DE 37 80 11 00 00 00 00 00 00 8F [10:30:08]Write i2c OK [10:30:08]MH_I2C_Read... [10:30:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:08]Read from MH i2c: E2 [10:30:08]MH_I2C_Read... [10:30:08]Read from MH i2c: E2 17 00 [10:30:08]MH_I2C_Read... [10:30:08]Read from MH i2c: E2 17 00 DE 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EA [10:30:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:30:08]wFMCommunicate OK [10:30:08]requested_item fd.num is exist - process it [10:30:08]SAM_PROTO_GetFieldsCounters [10:30:08]wFMCommunicate request_size=4 [10:30:08]MH_SAM_APDU [10:30:08]CAPDU: 80 13 00 00 [10:30:08]Write to MH i2c: E2 08 00 DF 37 80 13 00 00 00 00 00 00 92 [10:30:08]Write i2c OK [10:30:08]MH_I2C_Read... [10:30:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:08]Read from MH i2c: E2 [10:30:08]MH_I2C_Read... [10:30:08]Read from MH i2c: E2 62 00 [10:30:08]MH_I2C_Read... [10:30:08]Read from MH i2c: E2 62 00 DF 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 74 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [10:30:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 74 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:30:08]wFMCommunicate OK [10:30:08]SAM_PROTO_GetFieldsCounters done [10:30:08]requested_item shift.num is exist - process it [10:30:08]requested_item shift.opened is exist - process it [10:30:08]req_shift_opened [10:30:08]FM_GetShiftState [10:30:08]SAM_PROTO_GetShiftState [10:30:08]wFMCommunicate request_size=4 [10:30:08]MH_SAM_APDU [10:30:08]CAPDU: 80 13 01 00 [10:30:08]Write to MH i2c: E2 08 00 E0 37 80 13 01 00 00 00 00 00 94 [10:30:08]Write i2c OK [10:30:08]MH_I2C_Read... [10:30:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:08]Read from MH i2c: E2 [10:30:08]MH_I2C_Read... [10:30:08]Read from MH i2c: E2 0E 00 [10:30:08]MH_I2C_Read... [10:30:08]Read from MH i2c: E2 0E 00 E0 37 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 21 [10:30:08]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:30:08]wFMCommunicate OK [10:30:08]SAM_PROTO_GetShiftState done [10:30:08]FM_GetShiftState done [10:30:08]req_shift_opened done [10:30:08]requested_item shift.open_date is exist - process it [10:30:08]req_shift_open_date [10:30:08]req_shift_open_date done [10:30:08]produce_requested_data done [10:30:08]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118132,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [10:30:08]process_action_free close_receipt [10:30:08]json_value_free [10:30:08]json_value_free done [10:30:08]process_json_proto returns [10:30:08]Send response to host [10:30:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118132,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [10:30:08]free response buf [10:30:08]execute_script done [10:30:08]execute_script returns [10:30:08]free content buf [10:30:08]Sock 9.Close socket [10:30:08]Sock 9.Thread stoped [10:30:12]OFD Sender: No OFD packet to send [10:30:17]OFD Sender: No OFD packet to send [10:30:22]OFD Sender: No OFD packet to send [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:12]OFD Sender: No OFD packet to send [10:34:17]OFD Sender: No OFD packet to send [10:34:22]OFD Sender: No OFD packet to send [10:34:27]OFD Sender: No OFD packet to send [10:34:32]OFD Sender: No OFD packet to send [10:34:37]OFD Sender: No OFD packet to send [10:34:42]OFD Sender: No OFD packet to send [10:34:47]OFD Sender: No OFD packet to send [10:34:52]OFD Sender: No OFD packet to send [10:34:57]OFD Sender: No OFD packet to send [10:35:02]OFD Sender: No OFD packet to send [10:35:07]OFD Sender: No OFD packet to send [10:35:12]OFD Sender: No OFD packet to send [10:35:17]OFD Sender: No OFD packet to send [10:35:22]OFD Sender: No OFD packet to send [10:35:27]OFD Sender: No OFD packet to send [10:35:32]OFD Sender: No OFD packet to send [10:35:37]OFD Sender: No OFD packet to send [10:35:42]OFD Sender: No OFD packet to send [10:35:47]OFD Sender: No OFD packet to send [10:35:52]OFD Sender: No OFD packet to send [10:35:57]OFD Sender: No OFD packet to send [10:36:02]OFD Sender: No OFD packet to send [10:36:07]OFD Sender: No OFD packet to send [10:36:12]OFD Sender: No OFD packet to send [10:36:17]OFD Sender: No OFD packet to send [10:36:22]OFD Sender: No OFD packet to send [10:36:27]OFD Sender: No OFD packet to send [10:36:32]OFD Sender: No OFD packet to send [10:36:37]OFD Sender: No OFD packet to send [10:36:42]OFD Sender: No OFD packet to send [10:36:47]OFD Sender: No OFD packet to send [10:36:52]OFD Sender: No OFD packet to send [10:36:57]OFD Sender: No OFD packet to send [10:37:02]OFD Sender: No OFD packet to send [10:37:07]OFD Sender: No OFD packet to send [10:37:12]OFD Sender: No OFD packet to send [10:37:17]OFD Sender: No OFD packet to send [10:37:22]OFD Sender: No OFD packet to send [10:37:27]OFD Sender: No OFD packet to send [10:37:32]OFD Sender: No OFD packet to send [10:37:37]OFD Sender: No OFD packet to send [10:37:42]OFD Sender: No OFD packet to send [10:37:47]OFD Sender: No OFD packet to send [10:37:52]OFD Sender: No OFD packet to send [10:37:57]OFD Sender: No OFD packet to send [10:38:02]OFD Sender: No OFD packet to send [10:38:07]OFD Sender: No OFD packet to send [10:38:12]OFD Sender: No OFD packet to send [10:38:17]OFD Sender: No OFD packet to send [10:38:22]OFD Sender: No OFD packet to send [10:38:27]OFD Sender: No OFD packet to send [10:38: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:35]accept exits with 7 [10:39:35]New connection [10:39:35]New thread 3067284836 created [10:39:35]Thread 3067428196 joined [10:39:35]Waiting for new connection... [10:39:35] Sock 7.Parse request [10:39:35]Sock 7.Check first char [10:39:35]Sock 7.First char is OK [10:39:35]request: POST /json_proto HTTP/1.0 [10:39:35]Method: POST [10:39:35]URL: /json_proto [10:39:35]Method is POST - this is cgi request [10:39:35]url: /json_proto [10:39:35]query_string will be loaded in cgi processing [10:39:35]execute_cgi json_proto POST (null) [10:39:35]execute_cgi path=json_proto method=POST [10:39:35]POST find Content-Length [10:39:35]Host: 172.17.45.7:8080 [10:39:35]Content-Length: 677 [10:39:35]Content-Type: application/json [10:39:35] [10:39:35]POST finish read [10:39:35]Found Content-Length = 677 [10:39:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:35]execute_script... [10:39:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:35]POST & json_proto [10:39:35]process_json_proto [10:39:35]json parsed OK: [10:39:35]protocol is kg_v1.0 [10:39:35]action value=close_receipt [10:39:35]process_action close_receipt [10:39:35]cmd_close_receipt [10:39:35]MH_GetDate [10:39:35]Write to MH i2c: F0 00 00 E1 37 07 [10:39:35]Write i2c OK [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: F0 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: F0 09 00 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: F0 09 00 E1 37 00 6C CE A4 66 90 0F 3E 66 97 [10:39:35]GetLastDocTimeStamp 1722076209 [10:39:35]current date 1722076780 [10:39:35]FM_GetShiftState [10:39:35]SAM_PROTO_GetShiftState [10:39:35]wFMCommunicate request_size=4 [10:39:35]MH_SAM_APDU [10:39:35]CAPDU: 80 13 01 00 [10:39:35]Write to MH i2c: E2 08 00 E2 37 80 13 01 00 00 00 00 00 96 [10:39:35]Write i2c OK [10:39:35]MH_I2C_Read... [10:39:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:35]Read from MH i2c: E2 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: E2 0E 00 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: E2 0E 00 E2 37 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 23 [10:39:35]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:39:35]wFMCommunicate OK [10:39:35]SAM_PROTO_GetShiftState done [10:39:35]FM_GetShiftState done [10:39:35]opened in 1722038845 [10:39:35]opened+sec_in_day 1722125245 [10:39:35]quantity*price = 50036 [10:39:35]sum+1 = 50037 [10:39:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 76 27.07.2024 10:39 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118133 ФПД: 154771667117872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T103940&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118133&fm=154771667117872&tin=02508201610067®Number=0000000000092660&sum=50000 [10:39:36]StoreToDocumentArchive [10:39:36]shift 432 fd 118133 [10:39:36]save to /storage/0432/doc_00118133 [10:39:36]save last doc name /storage/0432/doc_00118133 to /storage/kkm_last_doc_name [10:39:36]save OK [10:39:36]Clear old archive folders... [10:39:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:39:36]tlvbuf is 006B9120 [10:39:36]SAM_PROTO_ClearQueue [10:39:36]wFMCommunicate request_size=4 [10:39:36]MH_SAM_APDU [10:39:36]CAPDU: 80 09 00 00 [10:39:36]Write to MH i2c: E2 08 00 EF 37 80 09 00 00 00 00 00 00 98 [10:39:36]Write i2c OK [10:39:36]MH_I2C_Read... [10:39:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:36]Read from MH i2c: E2 [10:39:36]MH_I2C_Read... [10:39:36]Read from MH i2c: E2 03 00 [10:39:36]MH_I2C_Read... [10:39:36]Read from MH i2c: E2 03 00 EF 37 00 90 00 9A [10:39:36]RAPDU: 90 00 [10:39:36]wFMCommunicate OK [10:39:36]SAM_PROTO_ClearQueue done [10:39:36]KKMCreateOFDPacket [10:39:36]OFDProtocolAddRootSTLVToBuf [10:39:36]FM_MakeSignedData [10:39:36]FM_MakeSignedData [10:39:36]SAM_PROTO_SignData [10:39:36]wFMCommunicate request_size=4 [10:39:36]MH_SAM_APDU [10:39:36]CAPDU: 80 0D 01 02 [10:39:36]Write to MH i2c: E2 08 00 F0 37 80 0D 01 02 00 00 00 00 A0 [10:39:36]Write i2c OK [10:39:36]MH_I2C_Read... [10:39:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:37]Read from MH i2c: E2 [10:39:37]MH_I2C_Read... [10:39:37]Read from MH i2c: E2 03 00 [10:39:37]MH_I2C_Read... [10:39:37]Read from MH i2c: E2 03 00 F0 37 00 90 00 9B [10:39:37]RAPDU: 90 00 [10:39:37]wFMCommunicate OK [10:39:37]wFMCommunicate request_size=255 [10:39:37]MH_SAM_APDU [10:39: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 6C CE A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 75 CD 01 00 35 04 06 00 8C [10:39:37]Write to MH i2c: E2 02 01 F1 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 6C CE A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 75 CD 01 00 35 04 06 00 8C 00 00 34 [10:39:37]Write i2c OK [10:39:37]MH_I2C_Read... [10:39:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:37]Read from MH i2c: E2 [10:39:37]MH_I2C_Read... [10:39:37]Read from MH i2c: E2 03 00 [10:39:37]MH_I2C_Read... [10:39:37]Read from MH i2c: E2 03 00 F1 37 00 90 00 9C [10:39:37]RAPDU: 90 00 [10:39:37]wFMCommunicate OK [10:39:37]wFMCommunicate request_size=10 [10:39:37]MH_SAM_APDU [10:39:37]CAPDU: 80 0D 02 02 05 C3 96 3D 67 30 [10:39:37]Write to MH i2c: E2 0D 00 F2 37 80 0D 02 02 05 00 C3 96 3D 67 30 00 00 DA [10:39:37]Write i2c OK [10:39:37]MH_I2C_Read... [10:39:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:37]Read from MH i2c: E2 [10:39:37]MH_I2C_Read... [10:39:37]Read from MH i2c: E2 03 00 [10:39:37]MH_I2C_Read... [10:39:37]Read from MH i2c: E2 03 00 F2 37 00 90 00 9D [10:39:37]RAPDU: 90 00 [10:39:37]wFMCommunicate OK [10:39:37]wFMCommunicate request_size=4 [10:39:37]MH_SAM_APDU [10:39:37]CAPDU: 80 0D 03 02 [10:39:37]Write to MH i2c: E2 08 00 F3 37 80 0D 03 02 00 00 00 00 A5 [10:39:37]Write i2c OK [10:39:37]MH_I2C_Read... [10:39:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:37]Read from MH i2c: E2 [10:39:37]MH_I2C_Read... [10:39:37]Read from MH i2c: E2 0B 00 [10:39:37]MH_I2C_Read... [10:39:37]Read from MH i2c: E2 0B 00 F3 37 00 01 AF 26 DC 0D 15 73 CD 90 00 BA [10:39:37]RAPDU: 01 AF 26 DC 0D 15 73 CD 90 00 [10:39:37]wFMCommunicate OK [10:39:37]SAM_PROTO_SignData done [10:39:37]FM_MakeSignedData done [10:39:37]CreateOFDProtocolMessage [10:39:37]wFMCommunicate request_size=4 [10:39:37]MH_SAM_APDU [10:39:37]CAPDU: 80 11 00 00 [10:39:37]Write to MH i2c: E2 08 00 F4 37 80 11 00 00 00 00 00 00 A5 [10:39:37]Write i2c OK [10:39:37]MH_I2C_Read... [10:39:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:37]Read from MH i2c: E2 [10:39:37]MH_I2C_Read... [10:39:37]Read from MH i2c: E2 17 00 [10:39:37]MH_I2C_Read... [10:39:37]Read from MH i2c: E2 17 00 F4 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 00 [10:39:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:39:37]wFMCommunicate OK [10:39:37]CreateOFDProtocolMessage done [10:39:37]OFDSenderStorePacket 118133 [10:39:37]StoreOFDPacket docnum=118133 [10:39:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 EB DC 07 01 16 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 6C CE A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 75 CD 01 00 35 04 06 00 8C C3 96 3D 67 30 01 AF 26 DC 0D 15 73 CD [10:39:37]CheckFolder [10:39:37]dirname=/storage/ofd_packets [10:39:37]CheckFolder done [10:39:37]ProducePacketName [10:39:37]name=ofd_packets/00118133 [10:39:37]NVStorageSaveData ofd_packets/00118133 [10:39:37]File name is /storage/ofd_packets/00118133 [10:39:37]Write 301 bytes [10:39:37]NVStorageSaveData done [10:39:37]OFDSenderStorePacket done [10:39:37]KKMCreateOFDPacket done [10:39:37]NVStorageSaveData kkm_last_timestamp [10:39:37]File name is /storage/kkm_last_timestamp [10:39:37]Write 4 bytes [10:39:37]NVStorageSaveData done [10:39:37]ExternCall_PrintAddStr [10:39:37]wPrintStart [10:39:37]Write to MH i2c: 01 00 00 F5 37 2C [10:39:37]Write i2c OK [10:39:37]MH_I2C_Read... [10:39:37]Read from MH i2c: 01 [10:39:37]MH_I2C_Read... [10:39:37]Read from MH i2c: 01 07 00 [10:39:37]MH_I2C_Read... [10:39:37]Read from MH i2c: 01 07 00 F5 37 00 00 00 00 00 FF 0F 41 [10:39:37]RasterBufferAndPrint [10:39:37]line Счет N : (1)949007 [10:39:37]line ИНН: 02508201610067 [10:39:37]line Контрольно-Кассовый Чек [10:39:37]line ПРОДАЖА [10:39:37]line ТРК (МРК, ГНК) : 41 [10:39:37]line Товар: 2710124130 [10:39:37]line Аи-92-К-4 [10:39:37]line 7.380 * 67.80 [10:39:37]line = 500.36 [10:39:37]line НДС 12% НСП 1% [10:39:37]line > о реализуемом товаре [10:39:37]line ОКРУГЛЕНИЕ: -0.36 [10:39:37]line ИТОГО: 500.00 [10:39:37]line Внесено: 500.00 [10:39:37]line СДАЧА: 0.00 [10:39:37]line НСП 1% : 4.43 [10:39:37]line НДС 12% : 53.14 [10:39:37]line Наличными: 500.00 [10:39:37]line Безнал.: 0.00 [10:39:37]line Место: АЗС № 134 "Партнер Нефть" [10:39:37]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:39:37]line СНО: Общий режим [10:39:37]line Чек 76 27.07.2024 10:39 [10:39:37]line Смена: 432 ФФД: 1.0 [10:39:37]line ЗНМ: 0300000044 [10:39:37]line РНМ: 0000000000092660 [10:39:37]line Версия ККМ: 001 [10:39:37]line ФМ: 0000000000874939 [10:39:37]line ФД: 118133 [10:39:37]line ФПД: 154771667117872 [10:39:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T103940&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118133&fm=154771667117872&tin=02508201610067®Number=0000000000092660&sum=50000 [10:39:37]written 0, free lines is 4095 [10:39:37]OFD Sender: Processing packet 118133 [packets to send 85, broken 84] [10:39:37]ProducePacketName [10:39:37]name=ofd_packets/00118133 [10:39:37]OFD Sender: To server: pG, [10:39:37]CommunicateWithHost lk.salyk.kg:30040 [10:39:37]ConnectInit lk.salyk.kg [10:39:37]Connected sock=10 [10:39:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 EB DC 07 01 16 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 6C CE A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 75 CD 01 00 35 04 06 00 8C C3 96 3D 67 30 01 AF 26 DC 0D 15 73 CD [10:39:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 87 29 47 00 FB 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 75 CD 01 00 F4 03 04 00 FF 7B A4 66 B6 04 01 00 00 B5 5A F8 59 82 06 D5 17 [10:39:37]CommunicateWithHost err = 0 [10:39:37]CheckOFDResponse [10:39:37]1017 (14) - 77093643461234 [10:39:37]1041 (16) - 0000000000874939 [10:39:37]1040 (4) - 118133 [10:39:37]1012 (4) - 27.07.2024 04:47 [10:39:37]1206 (1) - 0 [10:39:37]OFD Sender: Remove packet 118133 [10:39:37]ProducePacketName [10:39:37]name=ofd_packets/00118133 [10:39:37]NVStorageDeleteData [10:39:37]Write to MH i2c: 01 00 00 1F 38 57 [10:39:37]Write i2c OK [10:39:37]MH_I2C_Read... [10:39:37]Read from MH i2c: 01 [10:39:37]MH_I2C_Read... [10:39:37]Read from MH i2c: 01 07 00 [10:39:37]MH_I2C_Read... [10:39:37]Read from MH i2c: 01 07 00 1F 38 00 00 00 00 00 FC 0C 66 [10:39:37]RasterBufferAndPrint [10:39:37]line [10:39:37]line [10:39:37]line [10:39:37]line [10:39:37]line [10:39:37]written 0, free lines is 3330 [10:39:37]MH_Cut [10:39:37]Write to MH i2c: D1 01 00 26 38 01 30 [10:39:37]Write i2c OK [10:39:37]MH_I2C_Read... [10:39:37]Read from MH i2c: D1 [10:39:37]MH_I2C_Read... [10:39:37]Read from MH i2c: D1 01 00 [10:39:37]MH_I2C_Read... [10:39:37]Read from MH i2c: D1 01 00 26 38 00 2F [10:39:37]Write to MH i2c: 01 00 00 27 38 5F [10:39:37]Write i2c OK [10:39:37]MH_I2C_Read... [10:39:38]OFD Sender: No OFD packet to send [10:39:38]*** Cut start [10:39:38]*** Partial cut [10:39:38]*** CUTSNS_PIN = 1 [10:39:38]*** CUTSNS_PIN = 0 [10:39:38]*** Brake cut motor [10:39:39]Read from MH i2c: 01 [10:39:39]MH_I2C_Read... [10:39:39]*** Stop cut motor [10:39:39]*** Cut end [10:39:39]Read from MH i2c: 01 07 00 [10:39:39]MH_I2C_Read... [10:39:39]Read from MH i2c: 01 07 00 27 38 00 00 00 00 00 FF 0F 74 [10:39:39]process_action close_receipt done [10:39:39]requested_data is exist [10:39:39]produce_requested_data [10:39:39]requested_item fm.sn is exist - process it [10:39:39]wFMCommunicate request_size=4 [10:39:39]MH_SAM_APDU [10:39:39]CAPDU: 80 11 00 00 [10:39:39]Write to MH i2c: E2 08 00 28 38 80 11 00 00 00 00 00 00 DA [10:39:39]Write i2c OK [10:39:39]MH_I2C_Read... [10:39:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:39]Read from MH i2c: E2 [10:39:39]MH_I2C_Read... [10:39:39]Read from MH i2c: E2 17 00 [10:39:39]MH_I2C_Read... [10:39:39]Read from MH i2c: E2 17 00 28 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 35 [10:39:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:39:39]wFMCommunicate OK [10:39:39]requested_item fd.num is exist - process it [10:39:39]SAM_PROTO_GetFieldsCounters [10:39:39]wFMCommunicate request_size=4 [10:39:39]MH_SAM_APDU [10:39:39]CAPDU: 80 13 00 00 [10:39:39]Write to MH i2c: E2 08 00 29 38 80 13 00 00 00 00 00 00 DD [10:39:39]Write i2c OK [10:39:39]MH_I2C_Read... [10:39:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:39]Read from MH i2c: E2 [10:39:39]MH_I2C_Read... [10:39:39]Read from MH i2c: E2 62 00 [10:39:39]MH_I2C_Read... [10:39:39]Read from MH i2c: E2 62 00 29 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 75 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [10:39:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 75 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:39:39]wFMCommunicate OK [10:39:39]SAM_PROTO_GetFieldsCounters done [10:39:39]requested_item shift.num is exist - process it [10:39:39]requested_item shift.opened is exist - process it [10:39:39]req_shift_opened [10:39:39]FM_GetShiftState [10:39:39]SAM_PROTO_GetShiftState [10:39:39]wFMCommunicate request_size=4 [10:39:39]MH_SAM_APDU [10:39:39]CAPDU: 80 13 01 00 [10:39:39]Write to MH i2c: E2 08 00 2A 38 80 13 01 00 00 00 00 00 DF [10:39:39]Write i2c OK [10:39:39]MH_I2C_Read... [10:39:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:39]Read from MH i2c: E2 [10:39:39]MH_I2C_Read... [10:39:39]Read from MH i2c: E2 0E 00 [10:39:39]MH_I2C_Read... [10:39:39]Read from MH i2c: E2 0E 00 2A 38 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 6C [10:39:39]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:39:39]wFMCommunicate OK [10:39:39]SAM_PROTO_GetShiftState done [10:39:39]FM_GetShiftState done [10:39:39]req_shift_opened done [10:39:39]requested_item shift.open_date is exist - process it [10:39:39]req_shift_open_date [10:39:39]req_shift_open_date done [10:39:39]produce_requested_data done [10:39:39]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118133,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [10:39:39]process_action_free close_receipt [10:39:39]json_value_free [10:39:39]json_value_free done [10:39:39]process_json_proto returns [10:39:39]Send response to host [10:39:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118133,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [10:39:39]free response buf [10:39:39]execute_script done [10:39:39]execute_script returns [10:39:39]free content buf [10:39:39]Sock 7.Close socket [10:39:39]Sock 7.Thread stoped [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:03]OFD Sender: No OFD packet to send [10:40:08]OFD Sender: No OFD packet to send [10:40:13]OFD Sender: No OFD packet to send [10:40:18]OFD Sender: No OFD packet to send [10:40:23]OFD Sender: No OFD packet to send [10:40:28]OFD Sender: No OFD packet to send [10:40:33]OFD Sender: No OFD packet to send [10:40:38]OFD Sender: No OFD packet to send [10:40:40]accept exits with 9 [10:40:40]New connection [10:40:40]New thread 3067428196 created [10:40:40]Thread 3067284836 joined [10:40:40]Waiting for new connection... [10:40:40] Sock 9.Parse request [10:40:40]Sock 9.Check first char [10:40:40]Sock 9.First char is OK [10:40:40]request: POST /json_proto HTTP/1.0 [10:40:40]Method: POST [10:40:40]URL: /json_proto [10:40:40]Method is POST - this is cgi request [10:40:40]url: /json_proto [10:40:40]query_string will be loaded in cgi processing [10:40:40]execute_cgi json_proto POST (null) [10:40:40]execute_cgi path=json_proto method=POST [10:40:40]POST find Content-Length [10:40:40]Host: 172.17.45.7:8080 [10:40:40]Content-Length: 819 [10:40:40]Content-Type: application/json [10:40:40] [10:40:40]POST finish read [10:40:40]Found Content-Length = 819 [10:40:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.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", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:40]execute_script... [10:40:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.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", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:40]POST & json_proto [10:40:40]process_json_proto [10:40:40]json parsed OK: [10:40:40]protocol is kg_v1.0 [10:40:40]action value=close_receipt [10:40:40]process_action close_receipt [10:40:40]cmd_close_receipt [10:40:40]MH_GetDate [10:40:40]Write to MH i2c: F0 00 00 2B 38 52 [10:40:40]Write i2c OK [10:40:40]MH_I2C_Read... [10:40:40]Read from MH i2c: F0 [10:40:40]MH_I2C_Read... [10:40:40]Read from MH i2c: F0 09 00 [10:40:40]MH_I2C_Read... [10:40:40]Read from MH i2c: F0 09 00 2B 38 00 AC CE A4 66 90 0F 3E 66 22 [10:40:40]GetLastDocTimeStamp 1722076780 [10:40:40]current date 1722076844 [10:40:40]FM_GetShiftState [10:40:40]SAM_PROTO_GetShiftState [10:40:40]wFMCommunicate request_size=4 [10:40:40]MH_SAM_APDU [10:40:40]CAPDU: 80 13 01 00 [10:40:40]Write to MH i2c: E2 08 00 2C 38 80 13 01 00 00 00 00 00 E1 [10:40:40]Write i2c OK [10:40:40]MH_I2C_Read... [10:40:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:40]Read from MH i2c: E2 [10:40:40]MH_I2C_Read... [10:40:40]Read from MH i2c: E2 0E 00 [10:40:40]MH_I2C_Read... [10:40:40]Read from MH i2c: E2 0E 00 2C 38 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 6E [10:40:40]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:40:40]wFMCommunicate OK [10:40:40]SAM_PROTO_GetShiftState done [10:40:40]FM_GetShiftState done [10:40:40]opened in 1722038845 [10:40:40]opened+sec_in_day 1722125245 [10:40:40]quantity*price = 150037 [10:40:40]sum+1 = 150039 [10:40:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 77 27.07.2024 10:40 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118134 ФПД: 207437272588292 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T104044&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118134&fm=207437272588292&tin=02508201610067®Number=0000000000092660&sum=150000 [10:40:41]StoreToDocumentArchive [10:40:41]shift 432 fd 118134 [10:40:41]save to /storage/0432/doc_00118134 [10:40:41]save last doc name /storage/0432/doc_00118134 to /storage/kkm_last_doc_name [10:40:41]save OK [10:40:41]Clear old archive folders... [10:40:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:40:41]tlvbuf is 00735C60 [10:40:41]SAM_PROTO_ClearQueue [10:40:41]wFMCommunicate request_size=4 [10:40:41]MH_SAM_APDU [10:40:41]CAPDU: 80 09 00 00 [10:40:41]Write to MH i2c: E2 08 00 39 38 80 09 00 00 00 00 00 00 E3 [10:40:41]Write i2c OK [10:40:41]MH_I2C_Read... [10:40:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:41]Read from MH i2c: E2 [10:40:41]MH_I2C_Read... [10:40:41]Read from MH i2c: E2 03 00 [10:40:41]MH_I2C_Read... [10:40:41]Read from MH i2c: E2 03 00 39 38 00 90 00 E5 [10:40:41]RAPDU: 90 00 [10:40:41]wFMCommunicate OK [10:40:41]SAM_PROTO_ClearQueue done [10:40:41]KKMCreateOFDPacket [10:40:41]OFDProtocolAddRootSTLVToBuf [10:40:41]FM_MakeSignedData [10:40:41]FM_MakeSignedData [10:40:41]SAM_PROTO_SignData [10:40:41]wFMCommunicate request_size=4 [10:40:41]MH_SAM_APDU [10:40:41]CAPDU: 80 0D 01 02 [10:40:41]Write to MH i2c: E2 08 00 3A 38 80 0D 01 02 00 00 00 00 EB [10:40:41]Write i2c OK [10:40:41]MH_I2C_Read... [10:40:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:41]Read from MH i2c: E2 [10:40:41]MH_I2C_Read... [10:40:41]Read from MH i2c: E2 03 00 [10:40:41]MH_I2C_Read... [10:40:41]Read from MH i2c: E2 03 00 3A 38 00 90 00 E6 [10:40:41]RAPDU: 90 00 [10:40:41]wFMCommunicate OK [10:40:41]wFMCommunicate request_size=255 [10:40:41]MH_SAM_APDU [10:40:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 AC CE A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 76 CD 01 00 35 04 06 00 BC A9 C0 F2 [10:40:41]Write to MH i2c: E2 02 01 3B 38 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 AC CE A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 76 CD 01 00 35 04 06 00 BC A9 C0 F2 00 00 CF [10:40:41]Write i2c OK [10:40:41]MH_I2C_Read... [10:40:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:41]Read from MH i2c: E2 [10:40:41]MH_I2C_Read... [10:40:41]Read from MH i2c: E2 03 00 [10:40:41]MH_I2C_Read... [10:40:41]Read from MH i2c: E2 03 00 3B 38 00 90 00 E7 [10:40:41]RAPDU: 90 00 [10:40:41]wFMCommunicate OK [10:40:41]wFMCommunicate request_size=7 [10:40:41]MH_SAM_APDU [10:40:41]CAPDU: 80 0D 02 02 02 20 04 [10:40:41]Write to MH i2c: E2 0A 00 3C 38 80 0D 02 02 02 00 20 04 00 00 16 [10:40:41]Write i2c OK [10:40:41]MH_I2C_Read... [10:40:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:41]Read from MH i2c: E2 [10:40:41]MH_I2C_Read... [10:40:41]Read from MH i2c: E2 03 00 [10:40:41]MH_I2C_Read... [10:40:41]Read from MH i2c: E2 03 00 3C 38 00 90 00 E8 [10:40:41]RAPDU: 90 00 [10:40:41]wFMCommunicate OK [10:40:41]wFMCommunicate request_size=4 [10:40:41]MH_SAM_APDU [10:40:41]CAPDU: 80 0D 03 02 [10:40:41]Write to MH i2c: E2 08 00 3D 38 80 0D 03 02 00 00 00 00 F0 [10:40:41]Write i2c OK [10:40:41]MH_I2C_Read... [10:40:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:42]Read from MH i2c: E2 [10:40:42]MH_I2C_Read... [10:40:42]Read from MH i2c: E2 0B 00 [10:40:42]MH_I2C_Read... [10:40:42]Read from MH i2c: E2 0B 00 3D 38 00 9F CA CD 5C BA 19 F1 ED 90 00 34 [10:40:42]RAPDU: 9F CA CD 5C BA 19 F1 ED 90 00 [10:40:42]wFMCommunicate OK [10:40:42]SAM_PROTO_SignData done [10:40:42]FM_MakeSignedData done [10:40:42]CreateOFDProtocolMessage [10:40:42]wFMCommunicate request_size=4 [10:40:42]MH_SAM_APDU [10:40:42]CAPDU: 80 11 00 00 [10:40:42]Write to MH i2c: E2 08 00 3E 38 80 11 00 00 00 00 00 00 F0 [10:40:42]Write i2c OK [10:40:42]MH_I2C_Read... [10:40:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:42]Read from MH i2c: E2 [10:40:42]MH_I2C_Read... [10:40:42]Read from MH i2c: E2 17 00 [10:40:42]MH_I2C_Read... [10:40:42]Read from MH i2c: E2 17 00 3E 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4B [10:40:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:40:42]wFMCommunicate OK [10:40:42]CreateOFDProtocolMessage done [10:40:42]OFDSenderStorePacket 118134 [10:40:42]StoreOFDPacket docnum=118134 [10:40:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 A3 E5 04 01 C5 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 AC CE A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 76 CD 01 00 35 04 06 00 BC A9 C0 F2 20 04 9F CA CD 5C BA 19 F1 ED [10:40:42]CheckFolder [10:40:42]dirname=/storage/ofd_packets [10:40:42]CheckFolder done [10:40:42]ProducePacketName [10:40:42]name=ofd_packets/00118134 [10:40:42]NVStorageSaveData ofd_packets/00118134 [10:40:42]File name is /storage/ofd_packets/00118134 [10:40:42]Write 298 bytes [10:40:42]NVStorageSaveData done [10:40:42]OFDSenderStorePacket done [10:40:42]KKMCreateOFDPacket done [10:40:42]NVStorageSaveData kkm_last_timestamp [10:40:42]File name is /storage/kkm_last_timestamp [10:40:42]Write 4 bytes [10:40:42]NVStorageSaveData done [10:40:42]ExternCall_PrintAddStr [10:40:42]wPrintStart [10:40:42]Write to MH i2c: 01 00 00 3F 38 77 [10:40:42]Write i2c OK [10:40:42]MH_I2C_Read... [10:40:42]Read from MH i2c: 01 [10:40:42]MH_I2C_Read... [10:40:42]Read from MH i2c: 01 07 00 [10:40:42]MH_I2C_Read... [10:40:42]Read from MH i2c: 01 07 00 3F 38 00 00 00 00 00 FF 0F 8C [10:40:42]RasterBufferAndPrint [10:40:42]line Счет N : (1)949006 [10:40:42]line ИНН: 02508201610067 [10:40:42]line Контрольно-Кассовый Чек [10:40:42]line ПРОДАЖА [10:40:42]line ТРК (МРК, ГНК) : 21 [10:40:42]line Товар: 2710194800 [10:40:42]line ДТ-К-5 [10:40:42]line 19.690 * 76.20 [10:40:42]line = 1500.38 [10:40:42]line НДС 12% НСП 1% [10:40:42]line > о реализуемом товаре [10:40:42]line ОКРУГЛЕНИЕ: -0.38 [10:40:42]line ИТОГО: 1500.00 [10:40:42]line НСП 1% : 13.28 [10:40:42]line НДС 12% : 159.33 [10:40:42]line Наличными: 0.00 [10:40:42]line Безнал.: 1500.00 [10:40:42]line Место: АЗС № 134 "Партнер Нефть" [10:40:42]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:40:42]line СНО: Общий режим [10:40:42]line Чек 77 27.07.2024 10:40 [10:40:42]line Смена: 432 ФФД: 1.0 [10:40:42]line ЗНМ: 0300000044 [10:40:42]line РНМ: 0000000000092660 [10:40:42]line Версия ККМ: 001 [10:40:42]line Платежная система: O! деньги [10:40:42]line ФМ: 0000000000874939 [10:40:42]line ФД: 118134 [10:40:42]line ФПД: 207437272588292 [10:40:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T104044&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118134&fm=207437272588292&tin=02508201610067®Number=0000000000092660&sum=150000 [10:40:42]OFD Sender: Processing packet 118134 [packets to send 85, broken 84] [10:40:42]ProducePacketName [10:40:42]name=ofd_packets/00118134 [10:40:42]OFD Sender: To server: pG, [10:40:42]CommunicateWithHost lk.salyk.kg:30040 [10:40:42]ConnectInit lk.salyk.kg [10:40:42]written 0, free lines is 4095 [10:40:42]Connected sock=10 [10:40:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 A3 E5 04 01 C5 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 AC CE A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 76 CD 01 00 35 04 06 00 BC A9 C0 F2 20 04 9F CA CD 5C BA 19 F1 ED [10:40:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 10 EB 47 00 5F 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 76 CD 01 00 F4 03 04 00 3F 7C A4 66 B6 04 01 00 00 DD 4F EF F1 BF 21 E2 BF [10:40:42]CommunicateWithHost err = 0 [10:40:42]CheckOFDResponse [10:40:42]1017 (14) - 77093643461234 [10:40:42]1041 (16) - 0000000000874939 [10:40:42]1040 (4) - 118134 [10:40:42]1012 (4) - 27.07.2024 04:49 [10:40:42]1206 (1) - 0 [10:40:42]OFD Sender: Remove packet 118134 [10:40:42]ProducePacketName [10:40:42]name=ofd_packets/00118134 [10:40:42]NVStorageDeleteData [10:40:42]Write to MH i2c: 01 00 00 69 38 A1 [10:40:42]Write i2c OK [10:40:42]MH_I2C_Read... [10:40:42]Read from MH i2c: 01 [10:40:42]MH_I2C_Read... [10:40:42]Read from MH i2c: 01 07 00 [10:40:42]MH_I2C_Read... [10:40:42]Read from MH i2c: 01 07 00 69 38 00 00 00 00 00 E5 0C 99 [10:40:42]RasterBufferAndPrint [10:40:42]line [10:40:42]line [10:40:42]line [10:40:42]line [10:40:42]line [10:40:42]written 0, free lines is 3307 [10:40:42]MH_Cut [10:40:42]Write to MH i2c: D1 01 00 70 38 01 7A [10:40:42]Write i2c OK [10:40:42]MH_I2C_Read... [10:40:42]Read from MH i2c: D1 [10:40:42]MH_I2C_Read... [10:40:42]Read from MH i2c: D1 01 00 [10:40:42]MH_I2C_Read... [10:40:42]Read from MH i2c: D1 01 00 70 38 00 79 [10:40:42]Write to MH i2c: 01 00 00 71 38 A9 [10:40:42]Write i2c OK [10:40:42]MH_I2C_Read... [10:40:43]OFD Sender: No OFD packet to send [10:40:43]*** Cut start [10:40:43]*** Partial cut [10:40:43]*** CUTSNS_PIN = 1 [10:40:43]*** CUTSNS_PIN = 0 [10:40:43]*** Brake cut motor [10:40:44]Read from MH i2c: 01 [10:40:44]MH_I2C_Read... [10:40:44]*** Stop cut motor [10:40:44]*** Cut end [10:40:44]Read from MH i2c: 01 07 00 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: 01 07 00 71 38 00 00 00 00 00 FF 0F BE [10:40:44]process_action close_receipt done [10:40:44]requested_data is exist [10:40:44]produce_requested_data [10:40:44]requested_item fm.sn is exist - process it [10:40:44]wFMCommunicate request_size=4 [10:40:44]MH_SAM_APDU [10:40:44]CAPDU: 80 11 00 00 [10:40:44]Write to MH i2c: E2 08 00 72 38 80 11 00 00 00 00 00 00 24 [10:40:44]Write i2c OK [10:40:44]MH_I2C_Read... [10:40:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:44]Read from MH i2c: E2 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: E2 17 00 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: E2 17 00 72 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7F [10:40:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:40:44]wFMCommunicate OK [10:40:44]requested_item fd.num is exist - process it [10:40:44]SAM_PROTO_GetFieldsCounters [10:40:44]wFMCommunicate request_size=4 [10:40:44]MH_SAM_APDU [10:40:44]CAPDU: 80 13 00 00 [10:40:44]Write to MH i2c: E2 08 00 73 38 80 13 00 00 00 00 00 00 27 [10:40:44]Write i2c OK [10:40:44]MH_I2C_Read... [10:40:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:44]Read from MH i2c: E2 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: E2 62 00 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: E2 62 00 73 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 76 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [10:40:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 76 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:40:44]wFMCommunicate OK [10:40:44]SAM_PROTO_GetFieldsCounters done [10:40:44]requested_item shift.num is exist - process it [10:40:44]requested_item shift.opened is exist - process it [10:40:44]req_shift_opened [10:40:44]FM_GetShiftState [10:40:44]SAM_PROTO_GetShiftState [10:40:44]wFMCommunicate request_size=4 [10:40:44]MH_SAM_APDU [10:40:44]CAPDU: 80 13 01 00 [10:40:44]Write to MH i2c: E2 08 00 74 38 80 13 01 00 00 00 00 00 29 [10:40:44]Write i2c OK [10:40:44]MH_I2C_Read... [10:40:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:44]Read from MH i2c: E2 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: E2 0E 00 [10:40:44]MH_I2C_Read... [10:40:44]Read from MH i2c: E2 0E 00 74 38 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 B6 [10:40:44]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:40:44]wFMCommunicate OK [10:40:44]SAM_PROTO_GetShiftState done [10:40:44]FM_GetShiftState done [10:40:44]req_shift_opened done [10:40:44]requested_item shift.open_date is exist - process it [10:40:44]req_shift_open_date [10:40:44]req_shift_open_date done [10:40:44]produce_requested_data done [10:40:44]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118134,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [10:40:44]process_action_free close_receipt [10:40:44]json_value_free [10:40:44]json_value_free done [10:40:44]process_json_proto returns [10:40:44]Send response to host [10:40:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118134,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [10:40:44]free response buf [10:40:44]execute_script done [10:40:44]execute_script returns [10:40:44]free content buf [10:40:44]Sock 9.Close socket [10:40:44]Sock 9.Thread stoped [10:40:46]accept exits with 7 [10:40:46]New connection [10:40:46]New thread 3067284836 created [10:40:46]Thread 3067428196 joined [10:40:46]Waiting for new connection... [10:40:46] Sock 7.Parse request [10:40:46]Sock 7.Check first char [10:40:46]Sock 7.First char is OK [10:40:46]request: POST /json_proto HTTP/1.0 [10:40:46]Method: POST [10:40:46]URL: /json_proto [10:40:46]Method is POST - this is cgi request [10:40:46]url: /json_proto [10:40:46]query_string will be loaded in cgi processing [10:40:46]execute_cgi json_proto POST (null) [10:40:46]execute_cgi path=json_proto method=POST [10:40:46]POST find Content-Length [10:40:46]Host: 172.17.45.7:8080 [10:40:46]Content-Length: 677 [10:40:46]Content-Type: application/json [10:40:46] [10:40:46]POST finish read [10:40:46]Found Content-Length = 677 [10:40:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:40:46]execute_script... [10:40: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)949008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:40:46]POST & json_proto [10:40:46]process_json_proto [10:40:46]json parsed OK: [10:40:46]protocol is kg_v1.0 [10:40:46]action value=close_receipt [10:40:46]process_action close_receipt [10:40:46]cmd_close_receipt [10:40:46]MH_GetDate [10:40:46]Write to MH i2c: F0 00 00 75 38 9C [10:40:46]Write i2c OK [10:40:46]MH_I2C_Read... [10:40:46]Read from MH i2c: F0 [10:40:46]MH_I2C_Read... [10:40:46]Read from MH i2c: F0 09 00 [10:40:46]MH_I2C_Read... [10:40:46]Read from MH i2c: F0 09 00 75 38 00 B3 CE A4 66 90 0F 3E 66 73 [10:40:46]GetLastDocTimeStamp 1722076844 [10:40:46]current date 1722076851 [10:40:46]FM_GetShiftState [10:40:46]SAM_PROTO_GetShiftState [10:40:46]wFMCommunicate request_size=4 [10:40:46]MH_SAM_APDU [10:40:46]CAPDU: 80 13 01 00 [10:40:46]Write to MH i2c: E2 08 00 76 38 80 13 01 00 00 00 00 00 2B [10:40:46]Write i2c OK [10:40:46]MH_I2C_Read... [10:40:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:46]Read from MH i2c: E2 [10:40:46]MH_I2C_Read... [10:40:46]Read from MH i2c: E2 0E 00 [10:40:46]MH_I2C_Read... [10:40:46]Read from MH i2c: E2 0E 00 76 38 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 B8 [10:40:46]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:40:46]wFMCommunicate OK [10:40:46]SAM_PROTO_GetShiftState done [10:40:46]FM_GetShiftState done [10:40:46]opened in 1722038845 [10:40:46]opened+sec_in_day 1722125245 [10:40:46]quantity*price = 50036 [10:40:46]sum+1 = 50037 [10:40:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 78 27.07.2024 10:40 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118135 ФПД: 205901068203151 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T104051&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118135&fm=205901068203151&tin=02508201610067®Number=0000000000092660&sum=50000 [10:40:48]StoreToDocumentArchive [10:40:48]shift 432 fd 118135 [10:40:48]save to /storage/0432/doc_00118135 [10:40:48]save last doc name /storage/0432/doc_00118135 to /storage/kkm_last_doc_name [10:40:48]save OK [10:40:48]Clear old archive folders... [10:40:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:40:48]tlvbuf is B6F4E640 [10:40:48]SAM_PROTO_ClearQueue [10:40:48]wFMCommunicate request_size=4 [10:40:48]MH_SAM_APDU [10:40:48]CAPDU: 80 09 00 00 [10:40:48]Write to MH i2c: E2 08 00 83 38 80 09 00 00 00 00 00 00 2D [10:40:48]Write i2c OK [10:40:48]MH_I2C_Read... [10:40:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:48]Read from MH i2c: E2 [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: E2 03 00 [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: E2 03 00 83 38 00 90 00 2F [10:40:48]RAPDU: 90 00 [10:40:48]wFMCommunicate OK [10:40:48]SAM_PROTO_ClearQueue done [10:40:48]KKMCreateOFDPacket [10:40:48]OFDProtocolAddRootSTLVToBuf [10:40:48]FM_MakeSignedData [10:40:48]FM_MakeSignedData [10:40:48]SAM_PROTO_SignData [10:40:48]wFMCommunicate request_size=4 [10:40:48]MH_SAM_APDU [10:40:48]CAPDU: 80 0D 01 02 [10:40:48]Write to MH i2c: E2 08 00 84 38 80 0D 01 02 00 00 00 00 35 [10:40:48]Write i2c OK [10:40:48]MH_I2C_Read... [10:40:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:48]Read from MH i2c: E2 [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: E2 03 00 [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: E2 03 00 84 38 00 90 00 30 [10:40:48]RAPDU: 90 00 [10:40:48]wFMCommunicate OK [10:40:48]wFMCommunicate request_size=255 [10:40:48]MH_SAM_APDU [10:40: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 B3 CE A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 77 CD 01 00 35 04 06 00 BB [10:40:48]Write to MH i2c: E2 02 01 85 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 B3 CE A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 77 CD 01 00 35 04 06 00 BB 00 00 43 [10:40:48]Write i2c OK [10:40:48]MH_I2C_Read... [10:40:48]OFD Sender: No OFD packet to send [10:40:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:48]Read from MH i2c: E2 [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: E2 03 00 [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: E2 03 00 85 38 00 90 00 31 [10:40:48]RAPDU: 90 00 [10:40:48]wFMCommunicate OK [10:40:48]wFMCommunicate request_size=10 [10:40:48]MH_SAM_APDU [10:40:48]CAPDU: 80 0D 02 02 05 44 14 07 74 8F [10:40:48]Write to MH i2c: E2 0D 00 86 38 80 0D 02 02 05 00 44 14 07 74 8F 00 00 A4 [10:40:48]Write i2c OK [10:40:48]MH_I2C_Read... [10:40:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:48]Read from MH i2c: E2 [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: E2 03 00 [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: E2 03 00 86 38 00 90 00 32 [10:40:48]RAPDU: 90 00 [10:40:48]wFMCommunicate OK [10:40:48]wFMCommunicate request_size=4 [10:40:48]MH_SAM_APDU [10:40:48]CAPDU: 80 0D 03 02 [10:40:48]Write to MH i2c: E2 08 00 87 38 80 0D 03 02 00 00 00 00 3A [10:40:48]Write i2c OK [10:40:48]MH_I2C_Read... [10:40:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:48]Read from MH i2c: E2 [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: E2 0B 00 [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: E2 0B 00 87 38 00 54 28 C0 00 7B 19 B1 8C 90 00 48 [10:40:48]RAPDU: 54 28 C0 00 7B 19 B1 8C 90 00 [10:40:48]wFMCommunicate OK [10:40:48]SAM_PROTO_SignData done [10:40:48]FM_MakeSignedData done [10:40:48]CreateOFDProtocolMessage [10:40:48]wFMCommunicate request_size=4 [10:40:48]MH_SAM_APDU [10:40:48]CAPDU: 80 11 00 00 [10:40:48]Write to MH i2c: E2 08 00 88 38 80 11 00 00 00 00 00 00 3A [10:40:48]Write i2c OK [10:40:48]MH_I2C_Read... [10:40:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:48]Read from MH i2c: E2 [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: E2 17 00 [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: E2 17 00 88 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 95 [10:40:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:40:48]wFMCommunicate OK [10:40:48]CreateOFDProtocolMessage done [10:40:48]OFDSenderStorePacket 118135 [10:40:48]StoreOFDPacket docnum=118135 [10:40:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 BF F9 07 01 C9 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 B3 CE A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 77 CD 01 00 35 04 06 00 BB 44 14 07 74 8F 54 28 C0 00 7B 19 B1 8C [10:40:48]CheckFolder [10:40:48]dirname=/storage/ofd_packets [10:40:48]CheckFolder done [10:40:48]ProducePacketName [10:40:48]name=ofd_packets/00118135 [10:40:48]NVStorageSaveData ofd_packets/00118135 [10:40:48]File name is /storage/ofd_packets/00118135 [10:40:48]Write 301 bytes [10:40:48]NVStorageSaveData done [10:40:48]OFDSenderStorePacket done [10:40:48]KKMCreateOFDPacket done [10:40:48]NVStorageSaveData kkm_last_timestamp [10:40:48]File name is /storage/kkm_last_timestamp [10:40:48]Write 4 bytes [10:40:48]NVStorageSaveData done [10:40:48]ExternCall_PrintAddStr [10:40:48]wPrintStart [10:40:48]Write to MH i2c: 01 00 00 89 38 C1 [10:40:48]Write i2c OK [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: 01 [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: 01 07 00 [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: 01 07 00 89 38 00 00 00 00 00 FF 0F D6 [10:40:48]RasterBufferAndPrint [10:40:48]line Счет N : (1)949008 [10:40:48]line ИНН: 02508201610067 [10:40:48]line Контрольно-Кассовый Чек [10:40:48]line ПРОДАЖА [10:40:48]line ТРК (МРК, ГНК) : 61 [10:40:48]line Товар: 2710124130 [10:40:48]line Аи-92-К-4 [10:40:48]line 7.380 * 67.80 [10:40:48]line = 500.36 [10:40:48]line НДС 12% НСП 1% [10:40:48]line > о реализуемом товаре [10:40:48]line ОКРУГЛЕНИЕ: -0.36 [10:40:48]line ИТОГО: 500.00 [10:40:48]line Внесено: 500.00 [10:40:48]line СДАЧА: 0.00 [10:40:48]line НСП 1% : 4.43 [10:40:48]line НДС 12% : 53.14 [10:40:48]line Наличными: 500.00 [10:40:48]line Безнал.: 0.00 [10:40:48]line Место: АЗС № 134 "Партнер Нефть" [10:40:48]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:40:48]line СНО: Общий режим [10:40:48]line Чек 78 27.07.2024 10:40 [10:40:48]line Смена: 432 ФФД: 1.0 [10:40:48]line ЗНМ: 0300000044 [10:40:48]line РНМ: 0000000000092660 [10:40:48]line Версия ККМ: 001 [10:40:48]line ФМ: 0000000000874939 [10:40:48]line ФД: 118135 [10:40:48]line ФПД: 205901068203151 [10:40:48]OFD Sender: Processing packet 118135 [packets to send 85, broken 84] [10:40:48]ProducePacketName [10:40:48]name=ofd_packets/00118135 [10:40:48]OFD Sender: To server: pG, [10:40:48]CommunicateWithHost lk.salyk.kg:30040 [10:40:48]ConnectInit lk.salyk.kg [10:40:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T104051&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118135&fm=205901068203151&tin=02508201610067®Number=0000000000092660&sum=50000 [10:40:48]written 0, free lines is 4095 [10:40:48]Connected sock=9 [10:40:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 BF F9 07 01 C9 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 B3 CE A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 77 CD 01 00 35 04 06 00 BB 44 14 07 74 8F 54 28 C0 00 7B 19 B1 8C [10:40:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 09 B5 47 00 DD 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 77 CD 01 00 F4 03 04 00 46 7C A4 66 B6 04 01 00 00 24 7E 18 87 78 B3 9C 07 [10:40:48]CommunicateWithHost err = 0 [10:40:48]CheckOFDResponse [10:40:48]1017 (14) - 77093643461234 [10:40:48]1041 (16) - 0000000000874939 [10:40:48]1040 (4) - 118135 [10:40:48]1012 (4) - 27.07.2024 04:49 [10:40:48]1206 (1) - 0 [10:40:48]OFD Sender: Remove packet 118135 [10:40:48]ProducePacketName [10:40:48]name=ofd_packets/00118135 [10:40:48]NVStorageDeleteData [10:40:49]Write to MH i2c: 01 00 00 B3 38 EB [10:40:49]Write i2c OK [10:40:49]MH_I2C_Read... [10:40:49]Read from MH i2c: 01 [10:40:49]MH_I2C_Read... [10:40:49]Read from MH i2c: 01 07 00 [10:40:49]MH_I2C_Read... [10:40:49]Read from MH i2c: 01 07 00 B3 38 00 00 00 00 00 EE 0C EC [10:40:49]RasterBufferAndPrint [10:40:49]line [10:40:49]line [10:40:49]line [10:40:49]line [10:40:49]line [10:40:49]written 0, free lines is 3319 [10:40:49]MH_Cut [10:40:49]Write to MH i2c: D1 01 00 BA 38 01 C4 [10:40:49]Write i2c OK [10:40:49]MH_I2C_Read... [10:40:49]Read from MH i2c: D1 [10:40:49]MH_I2C_Read... [10:40:49]Read from MH i2c: D1 01 00 [10:40:49]MH_I2C_Read... [10:40:49]Read from MH i2c: D1 01 00 BA 38 00 C3 [10:40:49]Write to MH i2c: 01 00 00 BB 38 F3 [10:40:49]Write i2c OK [10:40:49]MH_I2C_Read... [10:40:49]OFD Sender: No OFD packet to send [10:40:49]*** Cut start [10:40:49]*** Partial cut [10:40:49]*** CUTSNS_PIN = 1 [10:40:49]*** CUTSNS_PIN = 0 [10:40:50]*** Brake cut motor [10:40:50]Read from MH i2c: 01 [10:40:50]MH_I2C_Read... [10:40:50]*** Stop cut motor [10:40:50]*** Cut end [10:40:50]Read from MH i2c: 01 07 00 [10:40:50]MH_I2C_Read... [10:40:50]Read from MH i2c: 01 07 00 BB 38 00 00 00 00 00 FF 0F 08 [10:40:50]process_action close_receipt done [10:40:50]requested_data is exist [10:40:50]produce_requested_data [10:40:50]requested_item fm.sn is exist - process it [10:40:50]wFMCommunicate request_size=4 [10:40:50]MH_SAM_APDU [10:40:50]CAPDU: 80 11 00 00 [10:40:50]Write to MH i2c: E2 08 00 BC 38 80 11 00 00 00 00 00 00 6E [10:40:50]Write i2c OK [10:40:50]MH_I2C_Read... [10:40:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:50]Read from MH i2c: E2 [10:40:50]MH_I2C_Read... [10:40:50]Read from MH i2c: E2 17 00 [10:40:50]MH_I2C_Read... [10:40:50]Read from MH i2c: E2 17 00 BC 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C9 [10:40:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:40:50]wFMCommunicate OK [10:40:50]requested_item fd.num is exist - process it [10:40:50]SAM_PROTO_GetFieldsCounters [10:40:50]wFMCommunicate request_size=4 [10:40:50]MH_SAM_APDU [10:40:50]CAPDU: 80 13 00 00 [10:40:50]Write to MH i2c: E2 08 00 BD 38 80 13 00 00 00 00 00 00 71 [10:40:50]Write i2c OK [10:40:50]MH_I2C_Read... [10:40:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:50]Read from MH i2c: E2 [10:40:50]MH_I2C_Read... [10:40:50]Read from MH i2c: E2 62 00 [10:40:50]MH_I2C_Read... [10:40:50]Read from MH i2c: E2 62 00 BD 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 77 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [10:40:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 77 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:40:50]wFMCommunicate OK [10:40:50]SAM_PROTO_GetFieldsCounters done [10:40:50]requested_item shift.num is exist - process it [10:40:50]requested_item shift.opened is exist - process it [10:40:50]req_shift_opened [10:40:50]FM_GetShiftState [10:40:50]SAM_PROTO_GetShiftState [10:40:50]wFMCommunicate request_size=4 [10:40:50]MH_SAM_APDU [10:40:50]CAPDU: 80 13 01 00 [10:40:50]Write to MH i2c: E2 08 00 BE 38 80 13 01 00 00 00 00 00 73 [10:40:50]Write i2c OK [10:40:50]MH_I2C_Read... [10:40:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:50]Read from MH i2c: E2 [10:40:50]MH_I2C_Read... [10:40:50]Read from MH i2c: E2 0E 00 [10:40:50]MH_I2C_Read... [10:40:50]Read from MH i2c: E2 0E 00 BE 38 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 00 [10:40:50]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:40:50]wFMCommunicate OK [10:40:50]SAM_PROTO_GetShiftState done [10:40:50]FM_GetShiftState done [10:40:50]req_shift_opened done [10:40:50]requested_item shift.open_date is exist - process it [10:40:50]req_shift_open_date [10:40:50]req_shift_open_date done [10:40:50]produce_requested_data done [10:40:50]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118135,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [10:40:50]process_action_free close_receipt [10:40:50]json_value_free [10:40:50]json_value_free done [10:40:50]process_json_proto returns [10:40:50]Send response to host [10:40:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118135,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [10:40:50]free response buf [10:40:50]execute_script done [10:40:50]execute_script returns [10:40:50]free content buf [10:40:50]Sock 7.Close socket [10:40:50]Sock 7.Thread stoped [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]accept exits with 10 [10:42:34]New connection [10:42:34]New thread 3067428196 created [10:42:34]Thread 3067284836 joined [10:42:34]Waiting for new connection... [10:42:34] Sock 10.Parse request [10:42:34]Sock 10.Check first char [10:42:34]Sock 10.First char is OK [10:42:34]request: POST /json_proto HTTP/1.0 [10:42:34]Method: POST [10:42:34]URL: /json_proto [10:42:34]Method is POST - this is cgi request [10:42:34]url: /json_proto [10:42:34]query_string will be loaded in cgi processing [10:42:34]execute_cgi json_proto POST (null) [10:42:34]execute_cgi path=json_proto method=POST [10:42:34]POST find Content-Length [10:42:34]Host: 172.17.45.7:8080 [10:42:34]Content-Length: 677 [10:42:34]Content-Type: application/json [10:42:34] [10:42:34]POST finish read [10:42:34]Found Content-Length = 677 [10:42:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:42:34]execute_script... [10:42: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)949009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:42:34]POST & json_proto [10:42:34]process_json_proto [10:42:34]json parsed OK: [10:42:34]protocol is kg_v1.0 [10:42:34]action value=close_receipt [10:42:34]process_action close_receipt [10:42:34]cmd_close_receipt [10:42:34]MH_GetDate [10:42:34]Write to MH i2c: F0 00 00 BF 38 E6 [10:42:34]Write i2c OK [10:42:34]MH_I2C_Read... [10:42:34]Read from MH i2c: F0 [10:42:34]MH_I2C_Read... [10:42:34]Read from MH i2c: F0 09 00 [10:42:34]MH_I2C_Read... [10:42:34]Read from MH i2c: F0 09 00 BF 38 00 1E CF A4 66 90 0F 3E 66 29 [10:42:34]GetLastDocTimeStamp 1722076851 [10:42:34]current date 1722076958 [10:42:34]FM_GetShiftState [10:42:34]SAM_PROTO_GetShiftState [10:42:34]wFMCommunicate request_size=4 [10:42:34]MH_SAM_APDU [10:42:34]CAPDU: 80 13 01 00 [10:42:34]Write to MH i2c: E2 08 00 C0 38 80 13 01 00 00 00 00 00 75 [10:42:34]Write i2c OK [10:42:34]MH_I2C_Read... [10:42:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:34]Read from MH i2c: E2 [10:42:34]MH_I2C_Read... [10:42:34]Read from MH i2c: E2 0E 00 [10:42:34]MH_I2C_Read... [10:42:34]Read from MH i2c: E2 0E 00 C0 38 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 02 [10:42:34]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:42:34]wFMCommunicate OK [10:42:34]SAM_PROTO_GetShiftState done [10:42:34]FM_GetShiftState done [10:42:34]opened in 1722038845 [10:42:34]opened+sec_in_day 1722125245 [10:42:34]quantity*price = 50036 [10:42:34]sum+1 = 50037 [10:42:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 79 27.07.2024 10:42 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118136 ФПД: 239410759768244 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T104238&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118136&fm=239410759768244&tin=02508201610067®Number=0000000000092660&sum=50000 [10:42:35]StoreToDocumentArchive [10:42:35]shift 432 fd 118136 [10:42:35]save to /storage/0432/doc_00118136 [10:42:35]save last doc name /storage/0432/doc_00118136 to /storage/kkm_last_doc_name [10:42:35]save OK [10:42:35]Clear old archive folders... [10:42:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:42:35]tlvbuf is 006BD7D0 [10:42:35]SAM_PROTO_ClearQueue [10:42:35]wFMCommunicate request_size=4 [10:42:35]MH_SAM_APDU [10:42:35]CAPDU: 80 09 00 00 [10:42:35]Write to MH i2c: E2 08 00 CD 38 80 09 00 00 00 00 00 00 77 [10:42:35]Write i2c OK [10:42:35]MH_I2C_Read... [10:42:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:35]Read from MH i2c: E2 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: E2 03 00 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: E2 03 00 CD 38 00 90 00 79 [10:42:35]RAPDU: 90 00 [10:42:35]wFMCommunicate OK [10:42:35]SAM_PROTO_ClearQueue done [10:42:35]KKMCreateOFDPacket [10:42:35]OFDProtocolAddRootSTLVToBuf [10:42:35]FM_MakeSignedData [10:42:35]FM_MakeSignedData [10:42:35]SAM_PROTO_SignData [10:42:35]wFMCommunicate request_size=4 [10:42:35]MH_SAM_APDU [10:42:35]CAPDU: 80 0D 01 02 [10:42:35]Write to MH i2c: E2 08 00 CE 38 80 0D 01 02 00 00 00 00 7F [10:42:35]Write i2c OK [10:42:35]MH_I2C_Read... [10:42:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:35]Read from MH i2c: E2 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: E2 03 00 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: E2 03 00 CE 38 00 90 00 7A [10:42:35]RAPDU: 90 00 [10:42:35]wFMCommunicate OK [10:42:35]wFMCommunicate request_size=255 [10:42:35]MH_SAM_APDU [10:42: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4F 00 00 00 F4 03 04 00 1E CF A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 78 CD 01 00 35 04 06 00 D9 [10:42:35]Write to MH i2c: E2 02 01 CF 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4F 00 00 00 F4 03 04 00 1E CF A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 78 CD 01 00 35 04 06 00 D9 00 00 19 [10:42:35]Write i2c OK [10:42:35]MH_I2C_Read... [10:42:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:35]Read from MH i2c: E2 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: E2 03 00 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: E2 03 00 CF 38 00 90 00 7B [10:42:35]RAPDU: 90 00 [10:42:35]wFMCommunicate OK [10:42:35]wFMCommunicate request_size=10 [10:42:35]MH_SAM_APDU [10:42:35]CAPDU: 80 0D 02 02 05 BE 29 4A 98 B4 [10:42:35]Write to MH i2c: E2 0D 00 D0 38 80 0D 02 02 05 00 BE 29 4A 98 B4 00 00 09 [10:42:35]Write i2c OK [10:42:35]MH_I2C_Read... [10:42:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:35]Read from MH i2c: E2 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: E2 03 00 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: E2 03 00 D0 38 00 90 00 7C [10:42:35]RAPDU: 90 00 [10:42:35]wFMCommunicate OK [10:42:35]wFMCommunicate request_size=4 [10:42:35]MH_SAM_APDU [10:42:35]CAPDU: 80 0D 03 02 [10:42:35]Write to MH i2c: E2 08 00 D1 38 80 0D 03 02 00 00 00 00 84 [10:42:35]Write i2c OK [10:42:35]MH_I2C_Read... [10:42:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:35]Read from MH i2c: E2 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: E2 0B 00 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: E2 0B 00 D1 38 00 05 99 19 13 73 A7 5D B5 90 00 7B [10:42:35]RAPDU: 05 99 19 13 73 A7 5D B5 90 00 [10:42:35]wFMCommunicate OK [10:42:35]SAM_PROTO_SignData done [10:42:35]FM_MakeSignedData done [10:42:35]CreateOFDProtocolMessage [10:42:35]wFMCommunicate request_size=4 [10:42:35]MH_SAM_APDU [10:42:35]CAPDU: 80 11 00 00 [10:42:35]Write to MH i2c: E2 08 00 D2 38 80 11 00 00 00 00 00 00 84 [10:42:35]Write i2c OK [10:42:35]MH_I2C_Read... [10:42:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:35]Read from MH i2c: E2 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: E2 17 00 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: E2 17 00 D2 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DF [10:42:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:42:35]wFMCommunicate OK [10:42:35]CreateOFDProtocolMessage done [10:42:35]OFDSenderStorePacket 118136 [10:42:35]StoreOFDPacket docnum=118136 [10:42:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 83 4B 07 01 4B 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4F 00 00 00 F4 03 04 00 1E CF A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 78 CD 01 00 35 04 06 00 D9 BE 29 4A 98 B4 05 99 19 13 73 A7 5D B5 [10:42:35]CheckFolder [10:42:35]dirname=/storage/ofd_packets [10:42:35]CheckFolder done [10:42:35]ProducePacketName [10:42:35]name=ofd_packets/00118136 [10:42:35]NVStorageSaveData ofd_packets/00118136 [10:42:35]File name is /storage/ofd_packets/00118136 [10:42:35]Write 301 bytes [10:42:35]NVStorageSaveData done [10:42:35]OFDSenderStorePacket done [10:42:35]KKMCreateOFDPacket done [10:42:35]NVStorageSaveData kkm_last_timestamp [10:42:35]File name is /storage/kkm_last_timestamp [10:42:35]Write 4 bytes [10:42:35]NVStorageSaveData done [10:42:35]ExternCall_PrintAddStr [10:42:35]wPrintStart [10:42:35]Write to MH i2c: 01 00 00 D3 38 0B [10:42:35]Write i2c OK [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: 01 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: 01 07 00 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: 01 07 00 D3 38 00 00 00 00 00 FF 0F 20 [10:42:35]RasterBufferAndPrint [10:42:35]line Счет N : (1)949009 [10:42:35]line ИНН: 02508201610067 [10:42:35]line Контрольно-Кассовый Чек [10:42:35]line ПРОДАЖА [10:42:35]line ТРК (МРК, ГНК) : 31 [10:42:35]line Товар: 2710124130 [10:42:35]line Аи-92-К-4 [10:42:35]line 7.380 * 67.80 [10:42:35]line = 500.36 [10:42:35]line НДС 12% НСП 1% [10:42:35]line > о реализуемом товаре [10:42:35]line ОКРУГЛЕНИЕ: -0.36 [10:42:35]line ИТОГО: 500.00 [10:42:35]line Внесено: 500.00 [10:42:35]line СДАЧА: 0.00 [10:42:35]line НСП 1% : 4.43 [10:42:35]line НДС 12% : 53.14 [10:42:35]line Наличными: 500.00 [10:42:35]line Безнал.: 0.00 [10:42:35]line Место: АЗС № 134 "Партнер Нефть" [10:42:35]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:42:35]line СНО: Общий режим [10:42:35]line Чек 79 27.07.2024 10:42 [10:42:35]line Смена: 432 ФФД: 1.0 [10:42:35]line ЗНМ: 0300000044 [10:42:35]line РНМ: 0000000000092660 [10:42:35]line Версия ККМ: 001 [10:42:35]line ФМ: 0000000000874939 [10:42:35]line ФД: 118136 [10:42:35]line ФПД: 239410759768244 [10:42:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T104238&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118136&fm=239410759768244&tin=02508201610067®Number=0000000000092660&sum=50000 [10:42:36]OFD Sender: Processing packet 118136 [packets to send 85, broken 84] [10:42:36]ProducePacketName [10:42:36]name=ofd_packets/00118136 [10:42:36]OFD Sender: To server: pG, [10:42:36]CommunicateWithHost lk.salyk.kg:30040 [10:42:36]ConnectInit lk.salyk.kg [10:42:36]written 0, free lines is 4095 [10:42:36]Connected sock=9 [10:42:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 83 4B 07 01 4B 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4F 00 00 00 F4 03 04 00 1E CF A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 78 CD 01 00 35 04 06 00 D9 BE 29 4A 98 B4 05 99 19 13 73 A7 5D B5 [10:42:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 88 68 47 00 68 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 78 CD 01 00 F4 03 04 00 B1 7C A4 66 B6 04 01 00 00 1F 4B 17 3C 73 E1 05 C9 [10:42:36]CommunicateWithHost err = 0 [10:42:36]CheckOFDResponse [10:42:36]1017 (14) - 77093643461234 [10:42:36]1041 (16) - 0000000000874939 [10:42:36]1040 (4) - 118136 [10:42:36]1012 (4) - 27.07.2024 04:50 [10:42:36]1206 (1) - 0 [10:42:36]OFD Sender: Remove packet 118136 [10:42:36]ProducePacketName [10:42:36]name=ofd_packets/00118136 [10:42:36]NVStorageDeleteData [10:42:36]Write to MH i2c: 01 00 00 FD 38 35 [10:42:36]Write i2c OK [10:42:36]MH_I2C_Read... [10:42:36]Read from MH i2c: 01 [10:42:36]MH_I2C_Read... [10:42:36]Read from MH i2c: 01 07 00 [10:42:36]MH_I2C_Read... [10:42:36]Read from MH i2c: 01 07 00 FD 38 00 00 00 00 00 EB 0C 33 [10:42:36]RasterBufferAndPrint [10:42:36]line [10:42:36]line [10:42:36]line [10:42:36]line [10:42:36]line [10:42:36]written 0, free lines is 3314 [10:42:36]MH_Cut [10:42:36]Write to MH i2c: D1 01 00 04 39 01 0F [10:42:36]Write i2c OK [10:42:36]MH_I2C_Read... [10:42:36]Read from MH i2c: D1 [10:42:36]MH_I2C_Read... [10:42:36]Read from MH i2c: D1 01 00 [10:42:36]MH_I2C_Read... [10:42:36]Read from MH i2c: D1 01 00 04 39 00 0E [10:42:36]Write to MH i2c: 01 00 00 05 39 3E [10:42:36]Write i2c OK [10:42:36]MH_I2C_Read... [10:42:37]OFD Sender: No OFD packet to send [10:42:37]*** Cut start [10:42:37]*** Partial cut [10:42:37]*** CUTSNS_PIN = 1 [10:42:37]*** CUTSNS_PIN = 0 [10:42:37]*** Brake cut motor [10:42:38]Read from MH i2c: 01 [10:42:38]MH_I2C_Read... [10:42:38]*** Stop cut motor [10:42:38]*** Cut end [10:42:38]Read from MH i2c: 01 07 00 [10:42:38]MH_I2C_Read... [10:42:38]Read from MH i2c: 01 07 00 05 39 00 00 00 00 00 FF 0F 53 [10:42:38]process_action close_receipt done [10:42:38]requested_data is exist [10:42:38]produce_requested_data [10:42:38]requested_item fm.sn is exist - process it [10:42:38]wFMCommunicate request_size=4 [10:42:38]MH_SAM_APDU [10:42:38]CAPDU: 80 11 00 00 [10:42:38]Write to MH i2c: E2 08 00 06 39 80 11 00 00 00 00 00 00 B9 [10:42:38]Write i2c OK [10:42:38]MH_I2C_Read... [10:42:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:38]Read from MH i2c: E2 [10:42:38]MH_I2C_Read... [10:42:38]Read from MH i2c: E2 17 00 [10:42:38]MH_I2C_Read... [10:42:38]Read from MH i2c: E2 17 00 06 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 14 [10:42:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:42:38]wFMCommunicate OK [10:42:38]requested_item fd.num is exist - process it [10:42:38]SAM_PROTO_GetFieldsCounters [10:42:38]wFMCommunicate request_size=4 [10:42:38]MH_SAM_APDU [10:42:38]CAPDU: 80 13 00 00 [10:42:38]Write to MH i2c: E2 08 00 07 39 80 13 00 00 00 00 00 00 BC [10:42:38]Write i2c OK [10:42:38]MH_I2C_Read... [10:42:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:38]Read from MH i2c: E2 [10:42:38]MH_I2C_Read... [10:42:38]Read from MH i2c: E2 62 00 [10:42:38]MH_I2C_Read... [10:42:38]Read from MH i2c: E2 62 00 07 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 78 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [10:42:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 78 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:42:38]wFMCommunicate OK [10:42:38]SAM_PROTO_GetFieldsCounters done [10:42:38]requested_item shift.num is exist - process it [10:42:38]requested_item shift.opened is exist - process it [10:42:38]req_shift_opened [10:42:38]FM_GetShiftState [10:42:38]SAM_PROTO_GetShiftState [10:42:38]wFMCommunicate request_size=4 [10:42:38]MH_SAM_APDU [10:42:38]CAPDU: 80 13 01 00 [10:42:38]Write to MH i2c: E2 08 00 08 39 80 13 01 00 00 00 00 00 BE [10:42:38]Write i2c OK [10:42:38]MH_I2C_Read... [10:42:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:38]Read from MH i2c: E2 [10:42:38]MH_I2C_Read... [10:42:38]Read from MH i2c: E2 0E 00 [10:42:38]MH_I2C_Read... [10:42:38]Read from MH i2c: E2 0E 00 08 39 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 4B [10:42:38]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:42:38]wFMCommunicate OK [10:42:38]SAM_PROTO_GetShiftState done [10:42:38]FM_GetShiftState done [10:42:38]req_shift_opened done [10:42:38]requested_item shift.open_date is exist - process it [10:42:38]req_shift_open_date [10:42:38]req_shift_open_date done [10:42:38]produce_requested_data done [10:42:38]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118136,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [10:42:38]process_action_free close_receipt [10:42:38]json_value_free [10:42:38]json_value_free done [10:42:38]process_json_proto returns [10:42:38]Send response to host [10:42:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118136,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [10:42:38]free response buf [10:42:38]execute_script done [10:42:38]execute_script returns [10:42:38]free content buf [10:42:38]Sock 10.Close socket [10:42:38]Sock 10.Thread stoped [10:42:42]OFD Sender: No OFD packet to send [10:42:47]OFD Sender: No OFD packet to send [10:42:52]OFD Sender: No OFD packet to send [10:42:57]OFD Sender: No OFD packet to send [10:43:02]OFD Sender: No OFD packet to send [10:43:07]OFD Sender: No OFD packet to send [10:43:12]OFD Sender: No OFD packet to send [10:43:17]OFD Sender: No OFD packet to send [10:43:22]OFD Sender: No OFD packet to send [10:43:27]OFD Sender: No OFD packet to send [10:43:32]OFD Sender: No OFD packet to send [10:43:37]OFD Sender: No OFD packet to send [10:43:42]OFD Sender: No OFD packet to send [10:43:47]OFD Sender: No OFD packet to send [10:43:52]OFD Sender: No OFD packet to send [10:43:57]OFD Sender: No OFD packet to send [10:44:02]OFD Sender: No OFD packet to send [10:44:07]OFD Sender: No OFD packet to send [10:44:12]OFD Sender: No OFD packet to send [10:44:17]OFD Sender: No OFD packet to send [10:44:22]OFD Sender: No OFD packet to send [10:44:27]OFD Sender: No OFD packet to send [10:44:32]OFD Sender: No OFD packet to send [10:44:37]OFD Sender: No OFD packet to send [10:44:38]accept exits with 7 [10:44:38]New connection [10:44:38]New thread 3067284836 created [10:44:38]Thread 3067428196 joined [10:44:38]Waiting for new connection... [10:44:38] Sock 7.Parse request [10:44:38]Sock 7.Check first char [10:44:38]Sock 7.First char is OK [10:44:38]request: POST /json_proto HTTP/1.0 [10:44:38]Method: POST [10:44:38]URL: /json_proto [10:44:38]Method is POST - this is cgi request [10:44:38]url: /json_proto [10:44:38]query_string will be loaded in cgi processing [10:44:38]execute_cgi json_proto POST (null) [10:44:38]execute_cgi path=json_proto method=POST [10:44:38]POST find Content-Length [10:44:38]Host: 172.17.45.7:8080 [10:44:38]Content-Length: 682 [10:44:38]Content-Type: application/json [10:44:38] [10:44:38]POST finish read [10:44:38]Found Content-Length = 682 [10:44:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:44:38]execute_script... [10:44: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)949010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:44:38]POST & json_proto [10:44:38]process_json_proto [10:44:38]json parsed OK: [10:44:38]protocol is kg_v1.0 [10:44:38]action value=close_receipt [10:44:38]process_action close_receipt [10:44:38]cmd_close_receipt [10:44:38]MH_GetDate [10:44:38]Write to MH i2c: F0 00 00 09 39 31 [10:44:38]Write i2c OK [10:44:38]MH_I2C_Read... [10:44:38]Read from MH i2c: F0 [10:44:38]MH_I2C_Read... [10:44:38]Read from MH i2c: F0 09 00 [10:44:38]MH_I2C_Read... [10:44:38]Read from MH i2c: F0 09 00 09 39 00 9A CF A4 66 90 0F 3E 66 F0 [10:44:38]GetLastDocTimeStamp 1722076958 [10:44:38]current date 1722077082 [10:44:38]FM_GetShiftState [10:44:38]SAM_PROTO_GetShiftState [10:44:38]wFMCommunicate request_size=4 [10:44:38]MH_SAM_APDU [10:44:38]CAPDU: 80 13 01 00 [10:44:38]Write to MH i2c: E2 08 00 0A 39 80 13 01 00 00 00 00 00 C0 [10:44:38]Write i2c OK [10:44:38]MH_I2C_Read... [10:44:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:38]Read from MH i2c: E2 [10:44:38]MH_I2C_Read... [10:44:38]Read from MH i2c: E2 0E 00 [10:44:38]MH_I2C_Read... [10:44:38]Read from MH i2c: E2 0E 00 0A 39 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 4D [10:44:38]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:44:38]wFMCommunicate OK [10:44:38]SAM_PROTO_GetShiftState done [10:44:38]FM_GetShiftState done [10:44:38]opened in 1722038845 [10:44:38]opened+sec_in_day 1722125245 [10:44:38]quantity*price = 100005 [10:44:38]sum+1 = 100006 [10:44:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 80 27.07.2024 10:44 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118137 ФПД: 50413513418676 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T104442&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118137&fm=50413513418676&tin=02508201610067®Number=0000000000092660&sum=100000 [10:44:39]StoreToDocumentArchive [10:44:39]shift 432 fd 118137 [10:44:39]save to /storage/0432/doc_00118137 [10:44:39]save last doc name /storage/0432/doc_00118137 to /storage/kkm_last_doc_name [10:44:39]save OK [10:44:39]Clear old archive folders... [10:44:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:44:39]tlvbuf is 0077AB90 [10:44:39]SAM_PROTO_ClearQueue [10:44:39]wFMCommunicate request_size=4 [10:44:39]MH_SAM_APDU [10:44:39]CAPDU: 80 09 00 00 [10:44:39]Write to MH i2c: E2 08 00 17 39 80 09 00 00 00 00 00 00 C2 [10:44:39]Write i2c OK [10:44:39]MH_I2C_Read... [10:44:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:39]Read from MH i2c: E2 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 03 00 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 03 00 17 39 00 90 00 C4 [10:44:39]RAPDU: 90 00 [10:44:39]wFMCommunicate OK [10:44:39]SAM_PROTO_ClearQueue done [10:44:39]KKMCreateOFDPacket [10:44:39]OFDProtocolAddRootSTLVToBuf [10:44:39]FM_MakeSignedData [10:44:39]FM_MakeSignedData [10:44:39]SAM_PROTO_SignData [10:44:39]wFMCommunicate request_size=4 [10:44:39]MH_SAM_APDU [10:44:39]CAPDU: 80 0D 01 02 [10:44:39]Write to MH i2c: E2 08 00 18 39 80 0D 01 02 00 00 00 00 CA [10:44:39]Write i2c OK [10:44:39]MH_I2C_Read... [10:44:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:39]Read from MH i2c: E2 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 03 00 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 03 00 18 39 00 90 00 C5 [10:44:39]RAPDU: 90 00 [10:44:39]wFMCommunicate OK [10:44:39]wFMCommunicate request_size=255 [10:44:39]MH_SAM_APDU [10:44: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 9A CF A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 79 CD 01 00 35 04 06 00 2D [10:44:39]Write to MH i2c: E2 02 01 19 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 9A CF A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 79 CD 01 00 35 04 06 00 2D 00 00 C5 [10:44:39]Write i2c OK [10:44:39]MH_I2C_Read... [10:44:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:39]Read from MH i2c: E2 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 03 00 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 03 00 19 39 00 90 00 C6 [10:44:39]RAPDU: 90 00 [10:44:39]wFMCommunicate OK [10:44:39]wFMCommunicate request_size=10 [10:44:39]MH_SAM_APDU [10:44:39]CAPDU: 80 0D 02 02 05 D9 CF 8F 27 B4 [10:44:39]Write to MH i2c: E2 0D 00 1A 39 80 0D 02 02 05 00 D9 CF 8F 27 B4 00 00 E9 [10:44:39]Write i2c OK [10:44:39]MH_I2C_Read... [10:44:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:39]Read from MH i2c: E2 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 03 00 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 03 00 1A 39 00 90 00 C7 [10:44:39]RAPDU: 90 00 [10:44:39]wFMCommunicate OK [10:44:39]wFMCommunicate request_size=4 [10:44:39]MH_SAM_APDU [10:44:39]CAPDU: 80 0D 03 02 [10:44:39]Write to MH i2c: E2 08 00 1B 39 80 0D 03 02 00 00 00 00 CF [10:44:39]Write i2c OK [10:44:39]MH_I2C_Read... [10:44:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:39]Read from MH i2c: E2 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 0B 00 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 0B 00 1B 39 00 B1 78 98 7E A5 89 16 2D 90 00 80 [10:44:39]RAPDU: B1 78 98 7E A5 89 16 2D 90 00 [10:44:39]wFMCommunicate OK [10:44:39]SAM_PROTO_SignData done [10:44:39]FM_MakeSignedData done [10:44:39]CreateOFDProtocolMessage [10:44:39]wFMCommunicate request_size=4 [10:44:39]MH_SAM_APDU [10:44:39]CAPDU: 80 11 00 00 [10:44:39]Write to MH i2c: E2 08 00 1C 39 80 11 00 00 00 00 00 00 CF [10:44:39]Write i2c OK [10:44:39]MH_I2C_Read... [10:44:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:40]Read from MH i2c: E2 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: E2 17 00 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: E2 17 00 1C 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2A [10:44:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:44:40]wFMCommunicate OK [10:44:40]CreateOFDProtocolMessage done [10:44:40]OFDSenderStorePacket 118137 [10:44:40]StoreOFDPacket docnum=118137 [10:44:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4C 14 07 01 EC 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 9A CF A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 79 CD 01 00 35 04 06 00 2D D9 CF 8F 27 B4 B1 78 98 7E A5 89 16 2D [10:44:40]CheckFolder [10:44:40]dirname=/storage/ofd_packets [10:44:40]CheckFolder done [10:44:40]ProducePacketName [10:44:40]name=ofd_packets/00118137 [10:44:40]NVStorageSaveData ofd_packets/00118137 [10:44:40]File name is /storage/ofd_packets/00118137 [10:44:40]Write 301 bytes [10:44:40]NVStorageSaveData done [10:44:40]OFDSenderStorePacket done [10:44:40]KKMCreateOFDPacket done [10:44:40]NVStorageSaveData kkm_last_timestamp [10:44:40]File name is /storage/kkm_last_timestamp [10:44:40]Write 4 bytes [10:44:40]NVStorageSaveData done [10:44:40]ExternCall_PrintAddStr [10:44:40]wPrintStart [10:44:40]Write to MH i2c: 01 00 00 1D 39 56 [10:44:40]Write i2c OK [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: 01 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: 01 07 00 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: 01 07 00 1D 39 00 00 00 00 00 FF 0F 6B [10:44:40]RasterBufferAndPrint [10:44:40]line Счет N : (1)949010 [10:44:40]line ИНН: 02508201610067 [10:44:40]line Контрольно-Кассовый Чек [10:44:40]line ПРОДАЖА [10:44:40]line ТРК (МРК, ГНК) : 51 [10:44:40]line Товар: 2710124130 [10:44:40]line Аи-92-К-4 [10:44:40]line 14.750 * 67.80 [10:44:40]line = 1000.05 [10:44:40]line НДС 12% НСП 1% [10:44:40]line > о реализуемом товаре [10:44:40]line ОКРУГЛЕНИЕ: -0.05 [10:44:40]line ИТОГО: 1000.00 [10:44:40]line Внесено: 1000.00 [10:44:40]line СДАЧА: 0.00 [10:44:40]line НСП 1% : 8.85 [10:44:40]line НДС 12% : 106.20 [10:44:40]line Наличными: 1000.00 [10:44:40]line Безнал.: 0.00 [10:44:40]line Место: АЗС № 134 "Партнер Нефть" [10:44:40]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:44:40]line СНО: Общий режим [10:44:40]line Чек 80 27.07.2024 10:44 [10:44:40]line Смена: 432 ФФД: 1.0 [10:44:40]line ЗНМ: 0300000044 [10:44:40]line РНМ: 0000000000092660 [10:44:40]line Версия ККМ: 001 [10:44:40]line ФМ: 0000000000874939 [10:44:40]line ФД: 118137 [10:44:40]line ФПД: 50413513418676 [10:44:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T104442&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118137&fm=50413513418676&tin=02508201610067®Number=0000000000092660&sum=100000 [10:44:40]OFD Sender: Processing packet 118137 [packets to send 85, broken 84] [10:44:40]ProducePacketName [10:44:40]name=ofd_packets/00118137 [10:44:40]OFD Sender: To server: pG, [10:44:40]CommunicateWithHost lk.salyk.kg:30040 [10:44:40]ConnectInit lk.salyk.kg [10:44:40]written 0, free lines is 4095 [10:44:40]Connected sock=10 [10:44:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4C 14 07 01 EC 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 9A CF A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 79 CD 01 00 35 04 06 00 2D D9 CF 8F 27 B4 B1 78 98 7E A5 89 16 2D [10:44:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B5 EB 47 00 10 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 79 CD 01 00 F4 03 04 00 2D 7D A4 66 B6 04 01 00 00 E3 8D CD F7 89 7D 9D 7C [10:44:40]CommunicateWithHost err = 0 [10:44:40]CheckOFDResponse [10:44:40]1017 (14) - 77093643461234 [10:44:40]1041 (16) - 0000000000874939 [10:44:40]1040 (4) - 118137 [10:44:40]1012 (4) - 27.07.2024 04:53 [10:44:40]1206 (1) - 0 [10:44:40]OFD Sender: Remove packet 118137 [10:44:40]ProducePacketName [10:44:40]name=ofd_packets/00118137 [10:44:40]NVStorageDeleteData [10:44:40]Write to MH i2c: 01 00 00 47 39 80 [10:44:40]Write i2c OK [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: 01 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: 01 07 00 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: 01 07 00 47 39 00 00 00 00 00 D6 0C 69 [10:44:40]RasterBufferAndPrint [10:44:40]line [10:44:40]line [10:44:40]line [10:44:40]line [10:44:40]line [10:44:40]written 0, free lines is 3294 [10:44:40]MH_Cut [10:44:40]Write to MH i2c: D1 01 00 4E 39 01 59 [10:44:40]Write i2c OK [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: D1 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: D1 01 00 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: D1 01 00 4E 39 00 58 [10:44:40]Write to MH i2c: 01 00 00 4F 39 88 [10:44:40]Write i2c OK [10:44:40]MH_I2C_Read... [10:44:41]OFD Sender: No OFD packet to send [10:44:41]*** Cut start [10:44:41]*** Partial cut [10:44:41]*** CUTSNS_PIN = 1 [10:44:41]*** CUTSNS_PIN = 0 [10:44:41]*** Brake cut motor [10:44:42]Read from MH i2c: 01 [10:44:42]MH_I2C_Read... [10:44:42]*** Stop cut motor [10:44:42]*** Cut end [10:44:42]Read from MH i2c: 01 07 00 [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: 01 07 00 4F 39 00 00 00 00 00 FF 0F 9D [10:44:42]process_action close_receipt done [10:44:42]requested_data is exist [10:44:42]produce_requested_data [10:44:42]requested_item fm.sn is exist - process it [10:44:42]wFMCommunicate request_size=4 [10:44:42]MH_SAM_APDU [10:44:42]CAPDU: 80 11 00 00 [10:44:42]Write to MH i2c: E2 08 00 50 39 80 11 00 00 00 00 00 00 03 [10:44:42]Write i2c OK [10:44:42]MH_I2C_Read... [10:44:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:42]Read from MH i2c: E2 [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: E2 17 00 [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: E2 17 00 50 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5E [10:44:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:44:42]wFMCommunicate OK [10:44:42]requested_item fd.num is exist - process it [10:44:42]SAM_PROTO_GetFieldsCounters [10:44:42]wFMCommunicate request_size=4 [10:44:42]MH_SAM_APDU [10:44:42]CAPDU: 80 13 00 00 [10:44:42]Write to MH i2c: E2 08 00 51 39 80 13 00 00 00 00 00 00 06 [10:44:42]Write i2c OK [10:44:42]MH_I2C_Read... [10:44:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:42]Read from MH i2c: E2 [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: E2 62 00 [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: E2 62 00 51 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 79 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [10:44:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 79 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:44:42]wFMCommunicate OK [10:44:42]SAM_PROTO_GetFieldsCounters done [10:44:42]requested_item shift.num is exist - process it [10:44:42]requested_item shift.opened is exist - process it [10:44:42]req_shift_opened [10:44:42]FM_GetShiftState [10:44:42]SAM_PROTO_GetShiftState [10:44:42]wFMCommunicate request_size=4 [10:44:42]MH_SAM_APDU [10:44:42]CAPDU: 80 13 01 00 [10:44:42]Write to MH i2c: E2 08 00 52 39 80 13 01 00 00 00 00 00 08 [10:44:42]Write i2c OK [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: E2 [10:44:42]MH_I2C_Read... [10:44:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:42]Read from MH i2c: E2 0E 00 [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: E2 0E 00 52 39 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 95 [10:44:42]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:44:42]wFMCommunicate OK [10:44:42]SAM_PROTO_GetShiftState done [10:44:42]FM_GetShiftState done [10:44:42]req_shift_opened done [10:44:42]requested_item shift.open_date is exist - process it [10:44:42]req_shift_open_date [10:44:42]req_shift_open_date done [10:44:42]produce_requested_data done [10:44:42]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118137,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [10:44:42]process_action_free close_receipt [10:44:42]json_value_free [10:44:42]json_value_free done [10:44:42]process_json_proto returns [10:44:42]Send response to host [10:44:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118137,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [10:44:42]free response buf [10:44:42]execute_script done [10:44:42]execute_script returns [10:44:42]free content buf [10:44:42]Sock 7.Close socket [10:44:42]Sock 7.Thread stoped [10:44:46]OFD Sender: No OFD packet to send [10:44:51]OFD Sender: No OFD packet to send [10:44:56]OFD Sender: No OFD packet to send [10:45:01]OFD Sender: No OFD packet to send [10:45:06]OFD Sender: No OFD packet to send [10:45:11]OFD Sender: No OFD packet to send [10:45:16]OFD Sender: No OFD packet to send [10:45:21]OFD Sender: No OFD packet to send [10:45:26]OFD Sender: No OFD packet to send [10:45:31]OFD Sender: No OFD packet to send [10:45:36]OFD Sender: No OFD packet to send [10:45:41]OFD Sender: No OFD packet to send [10:45:46]OFD Sender: No OFD packet to send [10:45:51]OFD Sender: No OFD packet to send [10:45:56]OFD Sender: No OFD packet to send [10:46:01]OFD Sender: No OFD packet to send [10:46:06]OFD Sender: No OFD packet to send [10:46:11]OFD Sender: No OFD packet to send [10:46:16]OFD Sender: No OFD packet to send [10:46:21]OFD Sender: No OFD packet to send [10:46:26]OFD Sender: No OFD packet to send [10:46:31]OFD Sender: No OFD packet to send [10:46:36]OFD Sender: No OFD packet to send [10:46:41]OFD Sender: No OFD packet to send [10:46:46]OFD Sender: No OFD packet to send [10:46:51]OFD Sender: No OFD packet to send [10:46:56]OFD Sender: No OFD packet to send [10:47:01]OFD Sender: No OFD packet to send [10:47:06]OFD Sender: No OFD packet to send [10:47:11]OFD Sender: No OFD packet to send [10:47:16]OFD Sender: No OFD packet to send [10:47:21]OFD Sender: No OFD packet to send [10:47:26]OFD Sender: No OFD packet to send [10:47:31]OFD Sender: No OFD packet to send [10:47:36]OFD Sender: No OFD packet to send [10:47:41]OFD Sender: No OFD packet to send [10:47:46]OFD Sender: No OFD packet to send [10:47:51]OFD Sender: No OFD packet to send [10:47:56]OFD Sender: No OFD packet to send [10:48:01]OFD Sender: No OFD packet to send [10:48:06]OFD Sender: No OFD packet to send [10:48:11]OFD Sender: No OFD packet to send [10:48:16]OFD Sender: No OFD packet to send [10:48:21]OFD Sender: No OFD packet to send [10:48:26]OFD Sender: No OFD packet to send [10:48:31]OFD Sender: No OFD packet to send [10:48:36]OFD Sender: No OFD packet to send [10:48:41]OFD Sender: No OFD packet to send [10:48:46]OFD Sender: No OFD packet to send [10:48:51]OFD Sender: No OFD packet to send [10:48:56]OFD Sender: No OFD packet to send [10:49:01]OFD Sender: No OFD packet to send [10:49:06]OFD Sender: No OFD packet to send [10:49:11]OFD Sender: No OFD packet to send [10:49:16]OFD Sender: No OFD packet to send [10:49:21]OFD Sender: No OFD packet to send [10:49:26]OFD Sender: No OFD packet to send [10:49:31]OFD Sender: No OFD packet to send [10:49:36]OFD Sender: No OFD packet to send [10:49:41]OFD Sender: No OFD packet to send [10:49:46]OFD Sender: No OFD packet to send [10:49:51]OFD Sender: No OFD packet to send [10:49:56]OFD Sender: No OFD packet to send [10:50:01]OFD Sender: No OFD packet to send [10:50:06]OFD Sender: No OFD packet to send [10:50:11]OFD Sender: No OFD packet to send [10:50:16]OFD Sender: No OFD packet to send [10:50:21]OFD Sender: No OFD packet to send [10:50:26]OFD Sender: No OFD packet to send [10:50:31]OFD Sender: No OFD packet to send [10:50:36]OFD Sender: No OFD packet to send [10:50:41]OFD Sender: No OFD packet to send [10:50:46]OFD Sender: No OFD packet to send [10:50:51]OFD Sender: No OFD packet to send [10:50:56]OFD Sender: No OFD packet to send [10:51:01]OFD Sender: No OFD packet to send [10:51:06]OFD Sender: No OFD packet to send [10:51:11]OFD Sender: No OFD packet to send [10:51:16]OFD Sender: No OFD packet to send [10:51:21]OFD Sender: No OFD packet to send [10:51:26]OFD Sender: No OFD packet to send [10:51:31]OFD Sender: No OFD packet to send [10:51:36]OFD Sender: No OFD packet to send [10:51:41]OFD Sender: No OFD packet to send [10:51:46]OFD Sender: No OFD packet to send [10:51:51]OFD Sender: No OFD packet to send [10:51:56]OFD Sender: No OFD packet to send [10:52:01]OFD Sender: No OFD packet to send [10:52:06]OFD Sender: No OFD packet to send [10:52:11]OFD Sender: No OFD packet to send [10:52:16]OFD Sender: No OFD packet to send [10:52:21]OFD Sender: No OFD packet to send [10:52:26]OFD Sender: No OFD packet to send [10:52:31]OFD Sender: No OFD packet to send [10:52:36]OFD Sender: No OFD packet to send [10:52:37]accept exits with 9 [10:52:37]New connection [10:52:37]New thread 3067428196 created [10:52:37]Thread 3067284836 joined [10:52:37]Waiting for new connection... [10:52:37] Sock 9.Parse request [10:52:37]Sock 9.Check first char [10:52:37]Sock 9.First char is OK [10:52:37]request: POST /json_proto HTTP/1.0 [10:52:37]Method: POST [10:52:37]URL: /json_proto [10:52:37]Method is POST - this is cgi request [10:52:37]url: /json_proto [10:52:37]query_string will be loaded in cgi processing [10:52:37]execute_cgi json_proto POST (null) [10:52:37]execute_cgi path=json_proto method=POST [10:52:37]POST find Content-Length [10:52:37]Host: 172.17.45.7:8080 [10:52:37]Content-Length: 980 [10:52:37]Content-Type: application/json [10:52:37] [10:52:37]POST finish read [10:52:37]Found Content-Length = 980 [10:52:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 113.830, "sum" : 8560.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 134\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 113.83 \u0441\u043E\u043C", "deposit" : 8560.00, "total" : 8560.00, "payments": [ { "type": 0, "sum" : 8560.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:37]execute_script... [10:52: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)949011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 113.830, "sum" : 8560.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 134\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 113.83 \u0441\u043E\u043C", "deposit" : 8560.00, "total" : 8560.00, "payments": [ { "type": 0, "sum" : 8560.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:37]POST & json_proto [10:52:37]process_json_proto [10:52:37]json parsed OK: [10:52:37]protocol is kg_v1.0 [10:52:37]action value=close_receipt [10:52:37]process_action close_receipt [10:52:37]cmd_close_receipt [10:52:37]MH_GetDate [10:52:37]Write to MH i2c: F0 00 00 53 39 7B [10:52:37]Write i2c OK [10:52:37]MH_I2C_Read... [10:52:37]Read from MH i2c: F0 [10:52:37]MH_I2C_Read... [10:52:37]Read from MH i2c: F0 09 00 [10:52:37]MH_I2C_Read... [10:52:37]Read from MH i2c: F0 09 00 53 39 00 7A D1 A4 66 90 0F 3E 66 1C [10:52:37]GetLastDocTimeStamp 1722077082 [10:52:37]current date 1722077562 [10:52:37]FM_GetShiftState [10:52:37]SAM_PROTO_GetShiftState [10:52:37]wFMCommunicate request_size=4 [10:52:37]MH_SAM_APDU [10:52:37]CAPDU: 80 13 01 00 [10:52:37]Write to MH i2c: E2 08 00 54 39 80 13 01 00 00 00 00 00 0A [10:52:37]Write i2c OK [10:52:37]MH_I2C_Read... [10:52:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:37]Read from MH i2c: E2 [10:52:37]MH_I2C_Read... [10:52:37]Read from MH i2c: E2 0E 00 [10:52:37]MH_I2C_Read... [10:52:37]Read from MH i2c: E2 0E 00 54 39 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 97 [10:52:37]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:52:37]wFMCommunicate OK [10:52:37]SAM_PROTO_GetShiftState done [10:52:37]FM_GetShiftState done [10:52:37]opened in 1722038845 [10:52:37]opened+sec_in_day 1722125245 [10:52:37]quantity*price = 856001 [10:52:37]sum+1 = 856003 [10:52:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 8560.00 Внесено: 8560.00 СДАЧА: 0.00 НСП 1% : 75.75 НДС 12% : 909.03 Наличными: 8560.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 81 27.07.2024 10:52 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Дисконтная программа ДТ номер 134 сэкономлено 113.83 сом ФМ: 0000000000874939 ФД: 118138 ФПД: 220450701046364 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T105242&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118138&fm=220450701046364&tin=02508201610067®Number=0000000000092660&sum=856000 [10:52:39]StoreToDocumentArchive [10:52:39]shift 432 fd 118138 [10:52:39]save to /storage/0432/doc_00118138 [10:52:39]save last doc name /storage/0432/doc_00118138 to /storage/kkm_last_doc_name [10:52:39]save OK [10:52:39]Clear old archive folders... [10:52:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:52:39]tlvbuf is 006B71D0 [10:52:39]SAM_PROTO_ClearQueue [10:52:39]wFMCommunicate request_size=4 [10:52:39]MH_SAM_APDU [10:52:39]CAPDU: 80 09 00 00 [10:52:39]Write to MH i2c: E2 08 00 61 39 80 09 00 00 00 00 00 00 0C [10:52:39]Write i2c OK [10:52:39]MH_I2C_Read... [10:52:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:39]Read from MH i2c: E2 [10:52:39]MH_I2C_Read... [10:52:39]Read from MH i2c: E2 03 00 [10:52:39]MH_I2C_Read... [10:52:39]Read from MH i2c: E2 03 00 61 39 00 90 00 0E [10:52:39]RAPDU: 90 00 [10:52:39]wFMCommunicate OK [10:52:39]SAM_PROTO_ClearQueue done [10:52:39]KKMCreateOFDPacket [10:52:39]OFDProtocolAddRootSTLVToBuf [10:52:39]FM_MakeSignedData [10:52:39]FM_MakeSignedData [10:52:39]SAM_PROTO_SignData [10:52:39]wFMCommunicate request_size=4 [10:52:39]MH_SAM_APDU [10:52:39]CAPDU: 80 0D 01 02 [10:52:39]Write to MH i2c: E2 08 00 62 39 80 0D 01 02 00 00 00 00 14 [10:52:39]Write i2c OK [10:52:39]MH_I2C_Read... [10:52:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:39]Read from MH i2c: E2 [10:52:39]MH_I2C_Read... [10:52:39]Read from MH i2c: E2 03 00 [10:52:39]MH_I2C_Read... [10:52:39]Read from MH i2c: E2 03 00 62 39 00 90 00 0F [10:52:39]RAPDU: 90 00 [10:52:39]wFMCommunicate OK [10:52:39]wFMCommunicate request_size=255 [10:52:39]MH_SAM_APDU [10:52:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A6 BC 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C2 0F 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 0F 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 1D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 63 01 00 00 00 07 04 06 00 C0 0F 0D 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 7A D1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7A CD 01 00 35 04 06 00 C8 7F AD B9 [10:52:39]Write to MH i2c: E2 02 01 63 39 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A6 BC 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C2 0F 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 0F 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 1D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 63 01 00 00 00 07 04 06 00 C0 0F 0D 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 7A D1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7A CD 01 00 35 04 06 00 C8 7F AD B9 00 00 6D [10:52:39]Write i2c OK [10:52:39]MH_I2C_Read... [10:52:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:39]Read from MH i2c: E2 [10:52:39]MH_I2C_Read... [10:52:39]Read from MH i2c: E2 03 00 [10:52:39]MH_I2C_Read... [10:52:39]Read from MH i2c: E2 03 00 63 39 00 90 00 10 [10:52:39]RAPDU: 90 00 [10:52:39]wFMCommunicate OK [10:52:39]wFMCommunicate request_size=7 [10:52:39]MH_SAM_APDU [10:52:39]CAPDU: 80 0D 02 02 02 F2 5C [10:52:39]Write to MH i2c: E2 0A 00 64 39 80 0D 02 02 02 00 F2 5C 00 00 69 [10:52:39]Write i2c OK [10:52:39]MH_I2C_Read... [10:52:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:39]Read from MH i2c: E2 [10:52:39]MH_I2C_Read... [10:52:39]Read from MH i2c: E2 03 00 [10:52:39]MH_I2C_Read... [10:52:39]Read from MH i2c: E2 03 00 64 39 00 90 00 11 [10:52:39]RAPDU: 90 00 [10:52:39]wFMCommunicate OK [10:52:39]wFMCommunicate request_size=4 [10:52:39]MH_SAM_APDU [10:52:39]CAPDU: 80 0D 03 02 [10:52:39]Write to MH i2c: E2 08 00 65 39 80 0D 03 02 00 00 00 00 19 [10:52:39]Write i2c OK [10:52:39]MH_I2C_Read... [10:52:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:39]Read from MH i2c: E2 [10:52:39]MH_I2C_Read... [10:52:39]Read from MH i2c: E2 0B 00 [10:52:39]MH_I2C_Read... [10:52:39]Read from MH i2c: E2 0B 00 65 39 00 11 57 08 87 6A 78 7A 70 90 00 DD [10:52:39]RAPDU: 11 57 08 87 6A 78 7A 70 90 00 [10:52:39]wFMCommunicate OK [10:52:39]SAM_PROTO_SignData done [10:52:39]FM_MakeSignedData done [10:52:39]CreateOFDProtocolMessage [10:52:39]wFMCommunicate request_size=4 [10:52:39]MH_SAM_APDU [10:52:39]CAPDU: 80 11 00 00 [10:52:39]Write to MH i2c: E2 08 00 66 39 80 11 00 00 00 00 00 00 19 [10:52:39]Write i2c OK [10:52:39]MH_I2C_Read... [10:52:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:39]Read from MH i2c: E2 [10:52:39]MH_I2C_Read... [10:52:39]Read from MH i2c: E2 17 00 [10:52:39]MH_I2C_Read... [10:52:39]Read from MH i2c: E2 17 00 66 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 74 [10:52:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:52:39]wFMCommunicate OK [10:52:39]CreateOFDProtocolMessage done [10:52:39]OFDSenderStorePacket 118138 [10:52:39]StoreOFDPacket docnum=118138 [10:52:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 06 9D 04 01 CA 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A6 BC 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C2 0F 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 0F 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 1D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 63 01 00 00 00 07 04 06 00 C0 0F 0D 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 7A D1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7A CD 01 00 35 04 06 00 C8 7F AD B9 F2 5C 11 57 08 87 6A 78 7A 70 [10:52:39]CheckFolder [10:52:39]dirname=/storage/ofd_packets [10:52:39]CheckFolder done [10:52:39]ProducePacketName [10:52:39]name=ofd_packets/00118138 [10:52:39]NVStorageSaveData ofd_packets/00118138 [10:52:39]File name is /storage/ofd_packets/00118138 [10:52:39]Write 298 bytes [10:52:39]NVStorageSaveData done [10:52:39]OFDSenderStorePacket done [10:52:39]KKMCreateOFDPacket done [10:52:39]NVStorageSaveData kkm_last_timestamp [10:52:39]File name is /storage/kkm_last_timestamp [10:52:39]Write 4 bytes [10:52:39]NVStorageSaveData done [10:52:39]ExternCall_PrintAddStr [10:52:39]wPrintStart [10:52:39]Write to MH i2c: 01 00 00 67 39 A0 [10:52:39]Write i2c OK [10:52:39]MH_I2C_Read... [10:52:39]Read from MH i2c: 01 [10:52:39]MH_I2C_Read... [10:52:39]Read from MH i2c: 01 07 00 [10:52:39]MH_I2C_Read... [10:52:39]Read from MH i2c: 01 07 00 67 39 00 00 00 00 00 FF 0F B5 [10:52:39]RasterBufferAndPrint [10:52:39]line Счет N : (1)949011 [10:52:39]line ИНН: 02508201610067 [10:52:39]line Контрольно-Кассовый Чек [10:52:39]line ПРОДАЖА [10:52:39]line ТРК (МРК, ГНК) : 44 [10:52:39]line Товар: 2710194800 [10:52:39]line ДТ-К-5 [10:52:39]line 113.830 * 75.20 [10:52:39]line = 8560.02 [10:52:39]line НДС 12% НСП 1% [10:52:39]line > о реализуемом товаре [10:52:39]line ОКРУГЛЕНИЕ: -0.02 [10:52:39]line ИТОГО: 8560.00 [10:52:39]line Внесено: 8560.00 [10:52:39]line СДАЧА: 0.00 [10:52:39]line НСП 1% : 75.75 [10:52:39]line НДС 12% : 909.03 [10:52:39]line Наличными: 8560.00 [10:52:39]line Безнал.: 0.00 [10:52:39]line Место: АЗС № 134 "Партнер Нефть" [10:52:39]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:52:39]line СНО: Общий режим [10:52:39]line Чек 81 27.07.2024 10:52 [10:52:39]line Смена: 432 ФФД: 1.0 [10:52:39]line ЗНМ: 0300000044 [10:52:39]line РНМ: 0000000000092660 [10:52:39]line Версия ККМ: 001 [10:52:39]line [10:52:39]line Дисконтная программа [10:52:39]line ДТ [10:52:39]line номер 134 [10:52:39]line сэкономлено 113.83 сом [10:52:39]line ФМ: 0000000000874939 [10:52:39]line ФД: 118138 [10:52:39]line ФПД: 220450701046364 [10:52:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T105242&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118138&fm=220450701046364&tin=02508201610067®Number=0000000000092660&sum=856000 [10:52:39]OFD Sender: Processing packet 118138 [packets to send 85, broken 84] [10:52:39]ProducePacketName [10:52:39]name=ofd_packets/00118138 [10:52:39]OFD Sender: To server: pG, [10:52:39]CommunicateWithHost lk.salyk.kg:30040 [10:52:39]ConnectInit lk.salyk.kg [10:52:39]written 0, free lines is 4095 [10:52:40]Connected sock=10 [10:52:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 06 9D 04 01 CA 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A6 BC 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C2 0F 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 0F 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 1D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 63 01 00 00 00 07 04 06 00 C0 0F 0D 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 7A D1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7A CD 01 00 35 04 06 00 C8 7F AD B9 F2 5C 11 57 08 87 6A 78 7A 70 [10:52:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 8C 53 47 00 6D 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7A CD 01 00 F4 03 04 00 0D 7F A4 66 B6 04 01 00 00 E1 D3 B5 6F E8 32 5B 3A [10:52:40]CommunicateWithHost err = 0 [10:52:40]CheckOFDResponse [10:52:40]1017 (14) - 77093643461234 [10:52:40]1041 (16) - 0000000000874939 [10:52:40]1040 (4) - 118138 [10:52:40]1012 (4) - 27.07.2024 05:01 [10:52:40]1206 (1) - 0 [10:52:40]OFD Sender: Remove packet 118138 [10:52:40]ProducePacketName [10:52:40]name=ofd_packets/00118138 [10:52:40]NVStorageDeleteData [10:52:40]Write to MH i2c: 01 00 00 96 39 CF [10:52:40]Write i2c OK [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: 01 [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: 01 07 00 [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: 01 07 00 96 39 00 00 00 00 00 92 0C 74 [10:52:40]RasterBufferAndPrint [10:52:40]line [10:52:40]line [10:52:40]line [10:52:40]line [10:52:40]line [10:52:40]written 0, free lines is 3225 [10:52:40]MH_Cut [10:52:40]Write to MH i2c: D1 01 00 9D 39 01 A8 [10:52:40]Write i2c OK [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: D1 [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: D1 01 00 [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: D1 01 00 9D 39 00 A7 [10:52:40]Write to MH i2c: 01 00 00 9E 39 D7 [10:52:40]Write i2c OK [10:52:40]MH_I2C_Read... [10:52:40]OFD Sender: No OFD packet to send [10:52:41]*** Cut start [10:52:41]*** Partial cut [10:52:41]*** CUTSNS_PIN = 1 [10:52:41]*** CUTSNS_PIN = 0 [10:52:41]*** Brake cut motor [10:52:41]Read from MH i2c: 01 [10:52:41]MH_I2C_Read... [10:52:41]*** Stop cut motor [10:52:41]*** Cut end [10:52:41]Read from MH i2c: 01 07 00 [10:52:41]MH_I2C_Read... [10:52:41]Read from MH i2c: 01 07 00 9E 39 00 00 00 00 00 FF 0F EC [10:52:41]process_action close_receipt done [10:52:41]requested_data is exist [10:52:41]produce_requested_data [10:52:41]requested_item fm.sn is exist - process it [10:52:41]wFMCommunicate request_size=4 [10:52:41]MH_SAM_APDU [10:52:41]CAPDU: 80 11 00 00 [10:52:41]Write to MH i2c: E2 08 00 9F 39 80 11 00 00 00 00 00 00 52 [10:52:41]Write i2c OK [10:52:41]MH_I2C_Read... [10:52:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:41]Read from MH i2c: E2 [10:52:41]MH_I2C_Read... [10:52:41]Read from MH i2c: E2 17 00 [10:52:41]MH_I2C_Read... [10:52:41]Read from MH i2c: E2 17 00 9F 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AD [10:52:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:52:41]wFMCommunicate OK [10:52:41]requested_item fd.num is exist - process it [10:52:41]SAM_PROTO_GetFieldsCounters [10:52:41]wFMCommunicate request_size=4 [10:52:41]MH_SAM_APDU [10:52:41]CAPDU: 80 13 00 00 [10:52:41]Write to MH i2c: E2 08 00 A0 39 80 13 00 00 00 00 00 00 55 [10:52:41]Write i2c OK [10:52:41]MH_I2C_Read... [10:52:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:42]Read from MH i2c: E2 [10:52:42]MH_I2C_Read... [10:52:42]Read from MH i2c: E2 62 00 [10:52:42]MH_I2C_Read... [10:52:42]Read from MH i2c: E2 62 00 A0 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7A CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [10:52:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7A CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:52:42]wFMCommunicate OK [10:52:42]SAM_PROTO_GetFieldsCounters done [10:52:42]requested_item shift.num is exist - process it [10:52:42]requested_item shift.opened is exist - process it [10:52:42]req_shift_opened [10:52:42]FM_GetShiftState [10:52:42]SAM_PROTO_GetShiftState [10:52:42]wFMCommunicate request_size=4 [10:52:42]MH_SAM_APDU [10:52:42]CAPDU: 80 13 01 00 [10:52:42]Write to MH i2c: E2 08 00 A1 39 80 13 01 00 00 00 00 00 57 [10:52:42]Write i2c OK [10:52:42]MH_I2C_Read... [10:52:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:42]Read from MH i2c: E2 [10:52:42]MH_I2C_Read... [10:52:42]Read from MH i2c: E2 0E 00 [10:52:42]MH_I2C_Read... [10:52:42]Read from MH i2c: E2 0E 00 A1 39 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 E4 [10:52:42]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:52:42]wFMCommunicate OK [10:52:42]SAM_PROTO_GetShiftState done [10:52:42]FM_GetShiftState done [10:52:42]req_shift_opened done [10:52:42]requested_item shift.open_date is exist - process it [10:52:42]req_shift_open_date [10:52:42]req_shift_open_date done [10:52:42]produce_requested_data done [10:52:42]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118138,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [10:52:42]process_action_free close_receipt [10:52:42]json_value_free [10:52:42]json_value_free done [10:52:42]process_json_proto returns [10:52:42]Send response to host [10:52:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118138,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [10:52:42]free response buf [10:52:42]execute_script done [10:52:42]execute_script returns [10:52:42]free content buf [10:52:42]Sock 9.Close socket [10:52:42]Sock 9.Thread stoped [10:52:45]OFD Sender: No OFD packet to send [10:52:50]OFD Sender: No OFD packet to send [10:52:55]OFD Sender: No OFD packet to send [10:53:00]OFD Sender: No OFD packet to send [10:53:05]OFD Sender: No OFD packet to send [10:53:10]OFD Sender: No OFD packet to send [10:53:15]OFD Sender: No OFD packet to send [10:53:20]OFD Sender: No OFD packet to send [10:53:25]OFD Sender: No OFD packet to send [10:53:28]accept exits with 7 [10:53:28]New connection [10:53:28]New thread 3067284836 created [10:53:28]Thread 3067428196 joined [10:53:28]Waiting for new connection... [10:53:28] Sock 7.Parse request [10:53:28]Sock 7.Check first char [10:53:28]Sock 7.First char is OK [10:53:28]request: POST /json_proto HTTP/1.0 [10:53:28]Method: POST [10:53:28]URL: /json_proto [10:53:28]Method is POST - this is cgi request [10:53:28]url: /json_proto [10:53:28]query_string will be loaded in cgi processing [10:53:28]execute_cgi json_proto POST (null) [10:53:28]execute_cgi path=json_proto method=POST [10:53:28]POST find Content-Length [10:53:28]Host: 172.17.45.7:8080 [10:53:28]Content-Length: 677 [10:53:28]Content-Type: application/json [10:53:28] [10:53:28]POST finish read [10:53:28]Found Content-Length = 677 [10:53:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:28]execute_script... [10:53:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:28]POST & json_proto [10:53:28]process_json_proto [10:53:28]json parsed OK: [10:53:28]protocol is kg_v1.0 [10:53:28]action value=close_receipt [10:53:28]process_action close_receipt [10:53:28]cmd_close_receipt [10:53:28]MH_GetDate [10:53:28]Write to MH i2c: F0 00 00 A2 39 CA [10:53:28]Write i2c OK [10:53:28]MH_I2C_Read... [10:53:28]Read from MH i2c: F0 [10:53:28]MH_I2C_Read... [10:53:28]Read from MH i2c: F0 09 00 [10:53:28]MH_I2C_Read... [10:53:28]Read from MH i2c: F0 09 00 A2 39 00 AC D1 A4 66 90 0F 3E 66 9D [10:53:28]GetLastDocTimeStamp 1722077562 [10:53:28]current date 1722077612 [10:53:28]FM_GetShiftState [10:53:28]SAM_PROTO_GetShiftState [10:53:28]wFMCommunicate request_size=4 [10:53:28]MH_SAM_APDU [10:53:28]CAPDU: 80 13 01 00 [10:53:28]Write to MH i2c: E2 08 00 A3 39 80 13 01 00 00 00 00 00 59 [10:53:28]Write i2c OK [10:53:28]MH_I2C_Read... [10:53:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:28]Read from MH i2c: E2 [10:53:28]MH_I2C_Read... [10:53:28]Read from MH i2c: E2 0E 00 [10:53:28]MH_I2C_Read... [10:53:28]Read from MH i2c: E2 0E 00 A3 39 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 E6 [10:53:28]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:53:28]wFMCommunicate OK [10:53:28]SAM_PROTO_GetShiftState done [10:53:28]FM_GetShiftState done [10:53:28]opened in 1722038845 [10:53:28]opened+sec_in_day 1722125245 [10:53:28]quantity*price = 20001 [10:53:28]sum+1 = 20002 [10:53:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 82 27.07.2024 10:53 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118139 ФПД: 262176912834062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T105333&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118139&fm=262176912834062&tin=02508201610067®Number=0000000000092660&sum=20000 [10:53:29]StoreToDocumentArchive [10:53:29]shift 432 fd 118139 [10:53:29]save to /storage/0432/doc_00118139 [10:53:29]save last doc name /storage/0432/doc_00118139 to /storage/kkm_last_doc_name [10:53:29]save OK [10:53:29]Clear old archive folders... [10:53:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:53:29]tlvbuf is B6F4E570 [10:53:29]SAM_PROTO_ClearQueue [10:53:29]wFMCommunicate request_size=4 [10:53:29]MH_SAM_APDU [10:53:29]CAPDU: 80 09 00 00 [10:53:29]Write to MH i2c: E2 08 00 B0 39 80 09 00 00 00 00 00 00 5B [10:53:29]Write i2c OK [10:53:29]MH_I2C_Read... [10:53:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:29]Read from MH i2c: E2 [10:53:29]MH_I2C_Read... [10:53:29]Read from MH i2c: E2 03 00 [10:53:29]MH_I2C_Read... [10:53:29]Read from MH i2c: E2 03 00 B0 39 00 90 00 5D [10:53:29]RAPDU: 90 00 [10:53:29]wFMCommunicate OK [10:53:29]SAM_PROTO_ClearQueue done [10:53:29]KKMCreateOFDPacket [10:53:29]OFDProtocolAddRootSTLVToBuf [10:53:29]FM_MakeSignedData [10:53:29]FM_MakeSignedData [10:53:29]SAM_PROTO_SignData [10:53:29]wFMCommunicate request_size=4 [10:53:29]MH_SAM_APDU [10:53:29]CAPDU: 80 0D 01 02 [10:53:29]Write to MH i2c: E2 08 00 B1 39 80 0D 01 02 00 00 00 00 63 [10:53:29]Write i2c OK [10:53:29]MH_I2C_Read... [10:53:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:29]Read from MH i2c: E2 [10:53:29]MH_I2C_Read... [10:53:29]Read from MH i2c: E2 03 00 [10:53:29]MH_I2C_Read... [10:53:29]Read from MH i2c: E2 03 00 B1 39 00 90 00 5E [10:53:29]RAPDU: 90 00 [10:53:29]wFMCommunicate OK [10:53:29]wFMCommunicate request_size=255 [10:53:29]MH_SAM_APDU [10:53: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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 AD D1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7B CD 01 00 35 04 06 00 EE [10:53:29]Write to MH i2c: E2 02 01 B2 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 AD D1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7B CD 01 00 35 04 06 00 EE 00 00 AB [10:53:29]Write i2c OK [10:53:29]MH_I2C_Read... [10:53:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:30]Read from MH i2c: E2 [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: E2 03 00 [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: E2 03 00 B2 39 00 90 00 5F [10:53:30]RAPDU: 90 00 [10:53:30]wFMCommunicate OK [10:53:30]wFMCommunicate request_size=10 [10:53:30]MH_SAM_APDU [10:53:30]CAPDU: 80 0D 02 02 05 72 D1 C1 FE 0E [10:53:30]Write to MH i2c: E2 0D 00 B3 39 80 0D 02 02 05 00 72 D1 C1 FE 0E 00 00 80 [10:53:30]Write i2c OK [10:53:30]MH_I2C_Read... [10:53:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:30]Read from MH i2c: E2 [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: E2 03 00 [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: E2 03 00 B3 39 00 90 00 60 [10:53:30]RAPDU: 90 00 [10:53:30]wFMCommunicate OK [10:53:30]wFMCommunicate request_size=4 [10:53:30]MH_SAM_APDU [10:53:30]CAPDU: 80 0D 03 02 [10:53:30]Write to MH i2c: E2 08 00 B4 39 80 0D 03 02 00 00 00 00 68 [10:53:30]Write i2c OK [10:53:30]MH_I2C_Read... [10:53:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:30]Read from MH i2c: E2 [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: E2 0B 00 [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: E2 0B 00 B4 39 00 B0 56 21 87 40 02 44 C4 90 00 61 [10:53:30]RAPDU: B0 56 21 87 40 02 44 C4 90 00 [10:53:30]wFMCommunicate OK [10:53:30]SAM_PROTO_SignData done [10:53:30]FM_MakeSignedData done [10:53:30]CreateOFDProtocolMessage [10:53:30]wFMCommunicate request_size=4 [10:53:30]MH_SAM_APDU [10:53:30]CAPDU: 80 11 00 00 [10:53:30]Write to MH i2c: E2 08 00 B5 39 80 11 00 00 00 00 00 00 68 [10:53:30]Write i2c OK [10:53:30]MH_I2C_Read... [10:53:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:30]Read from MH i2c: E2 [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: E2 17 00 [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: E2 17 00 B5 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C3 [10:53:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:53:30]wFMCommunicate OK [10:53:30]CreateOFDProtocolMessage done [10:53:30]OFDSenderStorePacket 118139 [10:53:30]StoreOFDPacket docnum=118139 [10:53:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A8 35 07 01 D8 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 AD D1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7B CD 01 00 35 04 06 00 EE 72 D1 C1 FE 0E B0 56 21 87 40 02 44 C4 [10:53:30]CheckFolder [10:53:30]dirname=/storage/ofd_packets [10:53:30]CheckFolder done [10:53:30]ProducePacketName [10:53:30]name=ofd_packets/00118139 [10:53:30]NVStorageSaveData ofd_packets/00118139 [10:53:30]File name is /storage/ofd_packets/00118139 [10:53:30]Write 301 bytes [10:53:30]NVStorageSaveData done [10:53:30]OFDSenderStorePacket done [10:53:30]KKMCreateOFDPacket done [10:53:30]NVStorageSaveData kkm_last_timestamp [10:53:30]File name is /storage/kkm_last_timestamp [10:53:30]Write 4 bytes [10:53:30]NVStorageSaveData done [10:53:30]ExternCall_PrintAddStr [10:53:30]wPrintStart [10:53:30]Write to MH i2c: 01 00 00 B6 39 EF [10:53:30]Write i2c OK [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: 01 [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: 01 07 00 [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: 01 07 00 B6 39 00 00 00 00 00 FF 0F 04 [10:53:30]RasterBufferAndPrint [10:53:30]line Счет N : (1)949012 [10:53:30]line ИНН: 02508201610067 [10:53:30]line Контрольно-Кассовый Чек [10:53:30]line ПРОДАЖА [10:53:30]line ТРК (МРК, ГНК) : 51 [10:53:30]line Товар: 2710124130 [10:53:30]line Аи-92-К-4 [10:53:30]line 2.950 * 67.80 [10:53:30]line = 200.01 [10:53:30]line НДС 12% НСП 1% [10:53:30]line > о реализуемом товаре [10:53:30]line ОКРУГЛЕНИЕ: -0.01 [10:53:30]line ИТОГО: 200.00 [10:53:30]line Внесено: 200.00 [10:53:30]line СДАЧА: 0.00 [10:53:30]line НСП 1% : 1.77 [10:53:30]line НДС 12% : 21.24 [10:53:30]line Наличными: 200.00 [10:53:30]line Безнал.: 0.00 [10:53:30]line Место: АЗС № 134 "Партнер Нефть" [10:53:30]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:53:30]line СНО: Общий режим [10:53:30]line Чек 82 27.07.2024 10:53 [10:53:30]line Смена: 432 ФФД: 1.0 [10:53:30]line ЗНМ: 0300000044 [10:53:30]line РНМ: 0000000000092660 [10:53:30]line Версия ККМ: 001 [10:53:30]line ФМ: 0000000000874939 [10:53:30]line ФД: 118139 [10:53:30]line ФПД: 262176912834062 [10:53:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T105333&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118139&fm=262176912834062&tin=02508201610067®Number=0000000000092660&sum=20000 [10:53:30]written 0, free lines is 4095 [10:53:30]OFD Sender: Processing packet 118139 [packets to send 85, broken 84] [10:53:30]ProducePacketName [10:53:30]name=ofd_packets/00118139 [10:53:30]OFD Sender: To server: pG, [10:53:30]CommunicateWithHost lk.salyk.kg:30040 [10:53:30]ConnectInit lk.salyk.kg [10:53:30]Connected sock=10 [10:53:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A8 35 07 01 D8 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 AD D1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7B CD 01 00 35 04 06 00 EE 72 D1 C1 FE 0E B0 56 21 87 40 02 44 C4 [10:53:30]Write to MH i2c: 01 00 00 E0 39 19 [10:53:30]Write i2c OK [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: 01 [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: 01 07 00 [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: 01 07 00 E0 39 00 00 00 00 00 E5 0C 11 [10:53:30]RasterBufferAndPrint [10:53:30]line [10:53:30]line [10:53:30]line [10:53:30]line [10:53:30]line [10:53:30]written 0, free lines is 3307 [10:53:30]MH_Cut [10:53:30]Write to MH i2c: D1 01 00 E7 39 01 F2 [10:53:30]Write i2c OK [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: D1 [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: D1 01 00 [10:53:30]MH_I2C_Read... [10:53:30]Read from MH i2c: D1 01 00 E7 39 00 F1 [10:53:30]Write to MH i2c: 01 00 00 E8 39 21 [10:53:30]Write i2c OK [10:53:30]MH_I2C_Read... [10:53:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 8F 24 47 00 8E 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7B CD 01 00 F4 03 04 00 40 7F A4 66 B6 04 01 00 00 91 DA 8F F8 2A B5 97 F0 [10:53:30]CommunicateWithHost err = 0 [10:53:30]CheckOFDResponse [10:53:30]1017 (14) - 77093643461234 [10:53:30]1041 (16) - 0000000000874939 [10:53:30]1040 (4) - 118139 [10:53:30]1012 (4) - 27.07.2024 05:01 [10:53:30]1206 (1) - 0 [10:53:30]OFD Sender: Remove packet 118139 [10:53:30]ProducePacketName [10:53:30]name=ofd_packets/00118139 [10:53:30]NVStorageDeleteData [10:53:31]OFD Sender: No OFD packet to send [10:53:31]*** Cut start [10:53:31]*** Partial cut [10:53:31]*** CUTSNS_PIN = 1 [10:53:31]*** CUTSNS_PIN = 0 [10:53:31]*** Brake cut motor [10:53:31]Read from MH i2c: 01 [10:53:31]MH_I2C_Read... [10:53:31]*** Stop cut motor [10:53:31]*** Cut end [10:53:31]Read from MH i2c: 01 07 00 [10:53:31]MH_I2C_Read... [10:53:31]Read from MH i2c: 01 07 00 E8 39 00 00 00 00 00 FF 0F 36 [10:53:31]process_action close_receipt done [10:53:31]requested_data is exist [10:53:31]produce_requested_data [10:53:31]requested_item fm.sn is exist - process it [10:53:32]wFMCommunicate request_size=4 [10:53:32]MH_SAM_APDU [10:53:32]CAPDU: 80 11 00 00 [10:53:32]Write to MH i2c: E2 08 00 E9 39 80 11 00 00 00 00 00 00 9C [10:53:32]Write i2c OK [10:53:32]MH_I2C_Read... [10:53:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:32]Read from MH i2c: E2 [10:53:32]MH_I2C_Read... [10:53:32]Read from MH i2c: E2 17 00 [10:53:32]MH_I2C_Read... [10:53:32]Read from MH i2c: E2 17 00 E9 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F7 [10:53:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:53:32]wFMCommunicate OK [10:53:32]requested_item fd.num is exist - process it [10:53:32]SAM_PROTO_GetFieldsCounters [10:53:32]wFMCommunicate request_size=4 [10:53:32]MH_SAM_APDU [10:53:32]CAPDU: 80 13 00 00 [10:53:32]Write to MH i2c: E2 08 00 EA 39 80 13 00 00 00 00 00 00 9F [10:53:32]Write i2c OK [10:53:32]MH_I2C_Read... [10:53:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:32]Read from MH i2c: E2 [10:53:32]MH_I2C_Read... [10:53:32]Read from MH i2c: E2 62 00 [10:53:32]MH_I2C_Read... [10:53:32]Read from MH i2c: E2 62 00 EA 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7B CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [10:53:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7B CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:53:32]wFMCommunicate OK [10:53:32]SAM_PROTO_GetFieldsCounters done [10:53:32]requested_item shift.num is exist - process it [10:53:32]requested_item shift.opened is exist - process it [10:53:32]req_shift_opened [10:53:32]FM_GetShiftState [10:53:32]SAM_PROTO_GetShiftState [10:53:32]wFMCommunicate request_size=4 [10:53:32]MH_SAM_APDU [10:53:32]CAPDU: 80 13 01 00 [10:53:32]Write to MH i2c: E2 08 00 EB 39 80 13 01 00 00 00 00 00 A1 [10:53:32]Write i2c OK [10:53:32]MH_I2C_Read... [10:53:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:32]Read from MH i2c: E2 [10:53:32]MH_I2C_Read... [10:53:32]Read from MH i2c: E2 0E 00 [10:53:32]MH_I2C_Read... [10:53:32]Read from MH i2c: E2 0E 00 EB 39 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 2E [10:53:32]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:53:32]wFMCommunicate OK [10:53:32]SAM_PROTO_GetShiftState done [10:53:32]FM_GetShiftState done [10:53:32]req_shift_opened done [10:53:32]requested_item shift.open_date is exist - process it [10:53:32]req_shift_open_date [10:53:32]req_shift_open_date done [10:53:32]produce_requested_data done [10:53:32]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118139,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [10:53:32]process_action_free close_receipt [10:53:32]json_value_free [10:53:32]json_value_free done [10:53:32]process_json_proto returns [10:53:32]Send response to host [10:53:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118139,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [10:53:32]free response buf [10:53:32]execute_script done [10:53:32]execute_script returns [10:53:32]free content buf [10:53:32]Sock 7.Close socket [10:53:32]Sock 7.Thread stoped [10:53:36]OFD Sender: No OFD packet to send [10:53:41]OFD Sender: No OFD packet to send [10:53:46]OFD Sender: No OFD packet to send [10:53:51]OFD Sender: No OFD packet to send [10:53:56]OFD Sender: No OFD packet to send [10:54:01]OFD Sender: No OFD packet to send [10:54:06]OFD Sender: No OFD packet to send [10:54:11]OFD Sender: No OFD packet to send [10:54:16]OFD Sender: No OFD packet to send [10:54:21]OFD Sender: No OFD packet to send [10:54:26]OFD Sender: No OFD packet to send [10:54:31]OFD Sender: No OFD packet to send [10:54:36]OFD Sender: No OFD packet to send [10:54:39]accept exits with 9 [10:54:39]New connection [10:54:39]New thread 3067428196 created [10:54:39]Thread 3067284836 joined [10:54:39]Waiting for new connection... [10:54:39] Sock 9.Parse request [10:54:39]Sock 9.Check first char [10:54:39]Sock 9.First char is OK [10:54:39]request: POST /json_proto HTTP/1.0 [10:54:39]Method: POST [10:54:39]URL: /json_proto [10:54:39]Method is POST - this is cgi request [10:54:39]url: /json_proto [10:54:39]query_string will be loaded in cgi processing [10:54:39]execute_cgi json_proto POST (null) [10:54:39]execute_cgi path=json_proto method=POST [10:54:39]POST find Content-Length [10:54:39]Host: 172.17.45.7:8080 [10:54:39]Content-Length: 679 [10:54:39]Content-Type: application/json [10:54:39] [10:54:39]POST finish read [10:54:39]Found Content-Length = 679 [10:54:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:39]execute_script... [10:54:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:39]POST & json_proto [10:54:39]process_json_proto [10:54:39]json parsed OK: [10:54:39]protocol is kg_v1.0 [10:54:39]action value=close_receipt [10:54:39]process_action close_receipt [10:54:39]cmd_close_receipt [10:54:39]MH_GetDate [10:54:39]Write to MH i2c: F0 00 00 EC 39 14 [10:54:39]Write i2c OK [10:54:39]MH_I2C_Read... [10:54:39]Read from MH i2c: F0 [10:54:39]MH_I2C_Read... [10:54:39]Read from MH i2c: F0 09 00 [10:54:39]MH_I2C_Read... [10:54:39]Read from MH i2c: F0 09 00 EC 39 00 F4 D1 A4 66 90 0F 3E 66 2F [10:54:39]GetLastDocTimeStamp 1722077613 [10:54:39]current date 1722077684 [10:54:39]FM_GetShiftState [10:54:39]SAM_PROTO_GetShiftState [10:54:39]wFMCommunicate request_size=4 [10:54:39]MH_SAM_APDU [10:54:39]CAPDU: 80 13 01 00 [10:54:39]Write to MH i2c: E2 08 00 ED 39 80 13 01 00 00 00 00 00 A3 [10:54:39]Write i2c OK [10:54:39]MH_I2C_Read... [10:54:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:39]Read from MH i2c: E2 [10:54:39]MH_I2C_Read... [10:54:39]Read from MH i2c: E2 0E 00 [10:54:39]MH_I2C_Read... [10:54:39]Read from MH i2c: E2 0E 00 ED 39 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 30 [10:54:39]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:54:39]wFMCommunicate OK [10:54:39]SAM_PROTO_GetShiftState done [10:54:39]FM_GetShiftState done [10:54:39]opened in 1722038845 [10:54:39]opened+sec_in_day 1722125245 [10:54:39]quantity*price = 100050 [10:54:39]sum+1 = 100052 [10:54:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 83 27.07.2024 10:54 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118140 ФПД: 248685421787442 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T105444&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118140&fm=248685421787442&tin=02508201610067®Number=0000000000092660&sum=100000 [10:54:40]StoreToDocumentArchive [10:54:40]shift 432 fd 118140 [10:54:40]save to /storage/0432/doc_00118140 [10:54:40]save last doc name /storage/0432/doc_00118140 to /storage/kkm_last_doc_name [10:54:40]save OK [10:54:40]Clear old archive folders... [10:54:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:54:40]tlvbuf is 006DD7B0 [10:54:40]SAM_PROTO_ClearQueue [10:54:40]wFMCommunicate request_size=4 [10:54:40]MH_SAM_APDU [10:54:40]CAPDU: 80 09 00 00 [10:54:40]Write to MH i2c: E2 08 00 FA 39 80 09 00 00 00 00 00 00 A5 [10:54:40]Write i2c OK [10:54:40]MH_I2C_Read... [10:54:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:40]Read from MH i2c: E2 [10:54:40]MH_I2C_Read... [10:54:40]Read from MH i2c: E2 03 00 [10:54:40]MH_I2C_Read... [10:54:40]Read from MH i2c: E2 03 00 FA 39 00 90 00 A7 [10:54:40]RAPDU: 90 00 [10:54:40]wFMCommunicate OK [10:54:40]SAM_PROTO_ClearQueue done [10:54:40]KKMCreateOFDPacket [10:54:40]OFDProtocolAddRootSTLVToBuf [10:54:40]FM_MakeSignedData [10:54:40]FM_MakeSignedData [10:54:40]SAM_PROTO_SignData [10:54:40]wFMCommunicate request_size=4 [10:54:40]MH_SAM_APDU [10:54:40]CAPDU: 80 0D 01 02 [10:54:40]Write to MH i2c: E2 08 00 FB 39 80 0D 01 02 00 00 00 00 AD [10:54:40]Write i2c OK [10:54:40]MH_I2C_Read... [10:54:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:40]Read from MH i2c: E2 [10:54:40]MH_I2C_Read... [10:54:40]Read from MH i2c: E2 03 00 [10:54:40]MH_I2C_Read... [10:54:40]Read from MH i2c: E2 03 00 FB 39 00 90 00 A8 [10:54:40]RAPDU: 90 00 [10:54:40]wFMCommunicate OK [10:54:40]wFMCommunicate request_size=255 [10:54:40]MH_SAM_APDU [10:54:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 F4 D1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7C CD 01 00 35 04 06 00 E2 2D 96 39 [10:54:40]Write to MH i2c: E2 02 01 FC 39 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 F4 D1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7C CD 01 00 35 04 06 00 E2 2D 96 39 00 00 38 [10:54:40]Write i2c OK [10:54:40]MH_I2C_Read... [10:54:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:41]Read from MH i2c: E2 [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: E2 03 00 [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: E2 03 00 FC 39 00 90 00 A9 [10:54:41]RAPDU: 90 00 [10:54:41]wFMCommunicate OK [10:54:41]wFMCommunicate request_size=7 [10:54:41]MH_SAM_APDU [10:54:41]CAPDU: 80 0D 02 02 02 F9 32 [10:54:41]Write to MH i2c: E2 0A 00 FD 39 80 0D 02 02 02 00 F9 32 00 00 DF [10:54:41]Write i2c OK [10:54:41]MH_I2C_Read... [10:54:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:41]Read from MH i2c: E2 [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: E2 03 00 [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: E2 03 00 FD 39 00 90 00 AA [10:54:41]RAPDU: 90 00 [10:54:41]wFMCommunicate OK [10:54:41]wFMCommunicate request_size=4 [10:54:41]MH_SAM_APDU [10:54:41]CAPDU: 80 0D 03 02 [10:54:41]Write to MH i2c: E2 08 00 FE 39 80 0D 03 02 00 00 00 00 B2 [10:54:41]Write i2c OK [10:54:41]MH_I2C_Read... [10:54:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:41]Read from MH i2c: E2 [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: E2 0B 00 [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: E2 0B 00 FE 39 00 58 DD F5 B4 A1 D4 15 F3 90 00 0E [10:54:41]RAPDU: 58 DD F5 B4 A1 D4 15 F3 90 00 [10:54:41]wFMCommunicate OK [10:54:41]SAM_PROTO_SignData done [10:54:41]FM_MakeSignedData done [10:54:41]CreateOFDProtocolMessage [10:54:41]wFMCommunicate request_size=4 [10:54:41]MH_SAM_APDU [10:54:41]CAPDU: 80 11 00 00 [10:54:41]Write to MH i2c: E2 08 00 FF 39 80 11 00 00 00 00 00 00 B2 [10:54:41]Write i2c OK [10:54:41]MH_I2C_Read... [10:54:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:41]Read from MH i2c: E2 [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: E2 17 00 [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: E2 17 00 FF 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0D [10:54:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:54:41]wFMCommunicate OK [10:54:41]CreateOFDProtocolMessage done [10:54:41]OFDSenderStorePacket 118140 [10:54:41]StoreOFDPacket docnum=118140 [10:54:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 33 A4 04 01 B8 49 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 F4 D1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7C CD 01 00 35 04 06 00 E2 2D 96 39 F9 32 58 DD F5 B4 A1 D4 15 F3 [10:54:41]CheckFolder [10:54:41]dirname=/storage/ofd_packets [10:54:41]CheckFolder done [10:54:41]ProducePacketName [10:54:41]name=ofd_packets/00118140 [10:54:41]NVStorageSaveData ofd_packets/00118140 [10:54:41]File name is /storage/ofd_packets/00118140 [10:54:41]Write 298 bytes [10:54:41]NVStorageSaveData done [10:54:41]OFDSenderStorePacket done [10:54:41]KKMCreateOFDPacket done [10:54:41]NVStorageSaveData kkm_last_timestamp [10:54:41]File name is /storage/kkm_last_timestamp [10:54:41]Write 4 bytes [10:54:41]NVStorageSaveData done [10:54:41]ExternCall_PrintAddStr [10:54:41]wPrintStart [10:54:41]Write to MH i2c: 01 00 00 00 3A 3A [10:54:41]Write i2c OK [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: 01 [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: 01 07 00 [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: 01 07 00 00 3A 00 00 00 00 00 FF 0F 4F [10:54:41]RasterBufferAndPrint [10:54:41]line Счет N : (1)949013 [10:54:41]line ИНН: 02508201610067 [10:54:41]line Контрольно-Кассовый Чек [10:54:41]line ПРОДАЖА [10:54:41]line ТРК (МРК, ГНК) : 64 [10:54:41]line Товар: 2710194800 [10:54:41]line ДТ-К-5 [10:54:41]line 13.130 * 76.20 [10:54:41]line = 1000.51 [10:54:41]line НДС 12% НСП 1% [10:54:41]line > о реализуемом товаре [10:54:41]line ОКРУГЛЕНИЕ: -0.51 [10:54:41]line ИТОГО: 1000.00 [10:54:41]line Внесено: 1000.00 [10:54:41]line СДАЧА: 0.00 [10:54:41]line НСП 1% : 8.85 [10:54:41]line НДС 12% : 106.25 [10:54:41]line Наличными: 1000.00 [10:54:41]line Безнал.: 0.00 [10:54:41]line Место: АЗС № 134 "Партнер Нефть" [10:54:41]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:54:41]line СНО: Общий режим [10:54:41]line Чек 83 27.07.2024 10:54 [10:54:41]line Смена: 432 ФФД: 1.0 [10:54:41]line ЗНМ: 0300000044 [10:54:41]line РНМ: 0000000000092660 [10:54:41]line Версия ККМ: 001 [10:54:41]line ФМ: 0000000000874939 [10:54:41]line ФД: 118140 [10:54:41]line ФПД: 248685421787442 [10:54:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T105444&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118140&fm=248685421787442&tin=02508201610067®Number=0000000000092660&sum=100000 [10:54:41]OFD Sender: Processing packet 118140 [packets to send 85, broken 84] [10:54:41]ProducePacketName [10:54:41]name=ofd_packets/00118140 [10:54:41]OFD Sender: To server: pG, [10:54:41]CommunicateWithHost lk.salyk.kg:30040 [10:54:41]ConnectInit lk.salyk.kg [10:54:41]written 0, free lines is 4095 [10:54:41]Connected sock=10 [10:54:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 33 A4 04 01 B8 49 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 F4 D1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7C CD 01 00 35 04 06 00 E2 2D 96 39 F9 32 58 DD F5 B4 A1 D4 15 F3 [10:54:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 92 E7 47 00 EC 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7C CD 01 00 F4 03 04 00 87 7F A4 66 B6 04 01 00 00 01 45 1F C7 79 9B C2 D8 [10:54:41]CommunicateWithHost err = 0 [10:54:41]CheckOFDResponse [10:54:41]1017 (14) - 77093643461234 [10:54:41]1041 (16) - 0000000000874939 [10:54:41]1040 (4) - 118140 [10:54:41]1012 (4) - 27.07.2024 05:03 [10:54:41]1206 (1) - 0 [10:54:41]OFD Sender: Remove packet 118140 [10:54:41]ProducePacketName [10:54:41]name=ofd_packets/00118140 [10:54:41]NVStorageDeleteData [10:54:42]Write to MH i2c: 01 00 00 2A 3A 64 [10:54:42]Write i2c OK [10:54:42]MH_I2C_Read... [10:54:42]Read from MH i2c: 01 [10:54:42]MH_I2C_Read... [10:54:42]Read from MH i2c: 01 07 00 [10:54:42]MH_I2C_Read... [10:54:42]Read from MH i2c: 01 07 00 2A 3A 00 00 00 00 00 DA 0C 51 [10:54:42]RasterBufferAndPrint [10:54:42]line [10:54:42]line [10:54:42]line [10:54:42]line [10:54:42]line [10:54:42]written 0, free lines is 3297 [10:54:42]MH_Cut [10:54:42]Write to MH i2c: D1 01 00 31 3A 01 3D [10:54:42]Write i2c OK [10:54:42]MH_I2C_Read... [10:54:42]Read from MH i2c: D1 [10:54:42]MH_I2C_Read... [10:54:42]Read from MH i2c: D1 01 00 [10:54:42]MH_I2C_Read... [10:54:42]Read from MH i2c: D1 01 00 31 3A 00 3C [10:54:42]Write to MH i2c: 01 00 00 32 3A 6C [10:54:42]Write i2c OK [10:54:42]MH_I2C_Read... [10:54:42]OFD Sender: No OFD packet to send [10:54:42]*** Cut start [10:54:42]*** Partial cut [10:54:42]*** CUTSNS_PIN = 1 [10:54:42]*** CUTSNS_PIN = 0 [10:54:43]*** Brake cut motor [10:54:43]Read from MH i2c: 01 [10:54:43]MH_I2C_Read... [10:54:43]*** Stop cut motor [10:54:43]*** Cut end [10:54:43]Read from MH i2c: 01 07 00 [10:54:43]MH_I2C_Read... [10:54:43]Read from MH i2c: 01 07 00 32 3A 00 00 00 00 00 FF 0F 81 [10:54:43]process_action close_receipt done [10:54:43]requested_data is exist [10:54:43]produce_requested_data [10:54:43]requested_item fm.sn is exist - process it [10:54:43]wFMCommunicate request_size=4 [10:54:43]MH_SAM_APDU [10:54:43]CAPDU: 80 11 00 00 [10:54:43]Write to MH i2c: E2 08 00 33 3A 80 11 00 00 00 00 00 00 E7 [10:54:43]Write i2c OK [10:54:43]MH_I2C_Read... [10:54:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:43]Read from MH i2c: E2 [10:54:43]MH_I2C_Read... [10:54:43]Read from MH i2c: E2 17 00 [10:54:43]MH_I2C_Read... [10:54:43]Read from MH i2c: E2 17 00 33 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 42 [10:54:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:54:43]wFMCommunicate OK [10:54:43]requested_item fd.num is exist - process it [10:54:43]SAM_PROTO_GetFieldsCounters [10:54:43]wFMCommunicate request_size=4 [10:54:43]MH_SAM_APDU [10:54:43]CAPDU: 80 13 00 00 [10:54:43]Write to MH i2c: E2 08 00 34 3A 80 13 00 00 00 00 00 00 EA [10:54:43]Write i2c OK [10:54:43]MH_I2C_Read... [10:54:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:43]Read from MH i2c: E2 [10:54:43]MH_I2C_Read... [10:54:43]Read from MH i2c: E2 62 00 [10:54:43]MH_I2C_Read... [10:54:43]Read from MH i2c: E2 62 00 34 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7C CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [10:54:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7C CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:54:43]wFMCommunicate OK [10:54:43]SAM_PROTO_GetFieldsCounters done [10:54:43]requested_item shift.num is exist - process it [10:54:43]requested_item shift.opened is exist - process it [10:54:43]req_shift_opened [10:54:43]FM_GetShiftState [10:54:43]SAM_PROTO_GetShiftState [10:54:43]wFMCommunicate request_size=4 [10:54:43]MH_SAM_APDU [10:54:43]CAPDU: 80 13 01 00 [10:54:43]Write to MH i2c: E2 08 00 35 3A 80 13 01 00 00 00 00 00 EC [10:54:43]Write i2c OK [10:54:43]MH_I2C_Read... [10:54:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:43]Read from MH i2c: E2 [10:54:43]MH_I2C_Read... [10:54:43]Read from MH i2c: E2 0E 00 [10:54:43]MH_I2C_Read... [10:54:43]Read from MH i2c: E2 0E 00 35 3A 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 79 [10:54:43]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:54:43]wFMCommunicate OK [10:54:43]SAM_PROTO_GetShiftState done [10:54:43]FM_GetShiftState done [10:54:43]req_shift_opened done [10:54:43]requested_item shift.open_date is exist - process it [10:54:43]req_shift_open_date [10:54:43]req_shift_open_date done [10:54:43]produce_requested_data done [10:54:43]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118140,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [10:54:43]process_action_free close_receipt [10:54:43]json_value_free [10:54:43]json_value_free done [10:54:43]process_json_proto returns [10:54:43]Send response to host [10:54:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118140,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [10:54:43]free response buf [10:54:43]execute_script done [10:54:43]execute_script returns [10:54:43]free content buf [10:54:43]Sock 9.Close socket [10:54:43]Sock 9.Thread stoped [10:54:47]OFD Sender: No OFD packet to send [10:54:52]OFD Sender: No OFD packet to send [10:54:57]OFD Sender: No OFD packet to send [10:55:02]OFD Sender: No OFD packet to send [10:55:07]OFD Sender: No OFD packet to send [10:55:12]OFD Sender: No OFD packet to send [10:55:17]OFD Sender: No OFD packet to send [10:55:22]OFD Sender: No OFD packet to send [10:55:27]OFD Sender: No OFD packet to send [10:55:32]OFD Sender: No OFD packet to send [10:55:37]OFD Sender: No OFD packet to send [10:55:42]OFD Sender: No OFD packet to send [10:55:47]OFD Sender: No OFD packet to send [10:55:52]OFD Sender: No OFD packet to send [10:55:57]OFD Sender: No OFD packet to send [10:56:02]OFD Sender: No OFD packet to send [10:56:07]OFD Sender: No OFD packet to send [10:56:12]OFD Sender: No OFD packet to send [10:56:17]OFD Sender: No OFD packet to send [10:56:22]OFD Sender: No OFD packet to send [10:56:27]OFD Sender: No OFD packet to send [10:56:32]OFD Sender: No OFD packet to send [10:56:37]OFD Sender: No OFD packet to send [10:56:42]OFD Sender: No OFD packet to send [10:56:47]OFD Sender: No OFD packet to send [10:56:52]OFD Sender: No OFD packet to send [10:56:57]OFD Sender: No OFD packet to send [10:57:02]OFD Sender: No OFD packet to send [10:57:07]OFD Sender: No OFD packet to send [10:57:12]OFD Sender: No OFD packet to send [10:57:17]OFD Sender: No OFD packet to send [10:57:22]OFD Sender: No OFD packet to send [10:57:23]accept exits with 7 [10:57:23]New connection [10:57:23]New thread 3067284836 created [10:57:23]Thread 3067428196 joined [10:57:23]Waiting for new connection... [10:57:23] Sock 7.Parse request [10:57:23]Sock 7.Check first char [10:57:23]Sock 7.First char is OK [10:57:23]request: POST /json_proto HTTP/1.0 [10:57:23]Method: POST [10:57:23]URL: /json_proto [10:57:23]Method is POST - this is cgi request [10:57:23]url: /json_proto [10:57:23]query_string will be loaded in cgi processing [10:57:23]execute_cgi json_proto POST (null) [10:57:23]execute_cgi path=json_proto method=POST [10:57:23]POST find Content-Length [10:57:23]Host: 172.17.45.7:8080 [10:57:23]Content-Length: 940 [10:57:23]Content-Type: application/json [10:57:23] [10:57:23]POST finish read [10:57:23]Found Content-Length = 940 [10:57:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 100.000, "sum" : 7520.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 134\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 100.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 7520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:23]execute_script... [10:57: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)949014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 100.000, "sum" : 7520.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 134\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 100.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 7520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:23]POST & json_proto [10:57:23]process_json_proto [10:57:23]json parsed OK: [10:57:23]protocol is kg_v1.0 [10:57:23]action value=close_receipt [10:57:23]process_action close_receipt [10:57:23]cmd_close_receipt [10:57:23]MH_GetDate [10:57:23]Write to MH i2c: F0 00 00 36 3A 5F [10:57:23]Write i2c OK [10:57:23]MH_I2C_Read... [10:57:23]Read from MH i2c: F0 [10:57:23]MH_I2C_Read... [10:57:23]Read from MH i2c: F0 09 00 [10:57:23]MH_I2C_Read... [10:57:23]Read from MH i2c: F0 09 00 36 3A 00 98 D2 A4 66 90 0F 3E 66 1F [10:57:23]GetLastDocTimeStamp 1722077684 [10:57:23]current date 1722077848 [10:57:23]FM_GetShiftState [10:57:23]SAM_PROTO_GetShiftState [10:57:23]wFMCommunicate request_size=4 [10:57:23]MH_SAM_APDU [10:57:23]CAPDU: 80 13 01 00 [10:57:23]Write to MH i2c: E2 08 00 37 3A 80 13 01 00 00 00 00 00 EE [10:57:23]Write i2c OK [10:57:23]MH_I2C_Read... [10:57:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:23]Read from MH i2c: E2 [10:57:23]MH_I2C_Read... [10:57:23]Read from MH i2c: E2 0E 00 [10:57:23]MH_I2C_Read... [10:57:23]Read from MH i2c: E2 0E 00 37 3A 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 7B [10:57:23]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:57:23]wFMCommunicate OK [10:57:23]SAM_PROTO_GetShiftState done [10:57:23]FM_GetShiftState done [10:57:23]opened in 1722038845 [10:57:23]opened+sec_in_day 1722125245 [10:57:23]quantity*price = 752000 [10:57:23]sum+1 = 752001 [10:57:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7520.00 НСП 1% : 66.55 НДС 12% : 798.58 Наличными: 7520.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 84 27.07.2024 10:57 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Дисконтная программа ДТ номер 134 сэкономлено 100.00 сом ФМ: 0000000000874939 ФД: 118141 ФПД: 281112730380918 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T105728&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118141&fm=281112730380918&tin=02508201610067®Number=0000000000092660&sum=752000 [10:57:25]StoreToDocumentArchive [10:57:25]shift 432 fd 118141 [10:57:25]save to /storage/0432/doc_00118141 [10:57:25]save last doc name /storage/0432/doc_00118141 to /storage/kkm_last_doc_name [10:57:25]save OK [10:57:25]Clear old archive folders... [10:57:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:57:25]tlvbuf is 007378C0 [10:57:25]SAM_PROTO_ClearQueue [10:57:25]wFMCommunicate request_size=4 [10:57:25]MH_SAM_APDU [10:57:25]CAPDU: 80 09 00 00 [10:57:25]Write to MH i2c: E2 08 00 44 3A 80 09 00 00 00 00 00 00 F0 [10:57:25]Write i2c OK [10:57:25]MH_I2C_Read... [10:57:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:25]Read from MH i2c: E2 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: E2 03 00 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: E2 03 00 44 3A 00 90 00 F2 [10:57:25]RAPDU: 90 00 [10:57:25]wFMCommunicate OK [10:57:25]SAM_PROTO_ClearQueue done [10:57:25]KKMCreateOFDPacket [10:57:25]OFDProtocolAddRootSTLVToBuf [10:57:25]FM_MakeSignedData [10:57:25]FM_MakeSignedData [10:57:25]SAM_PROTO_SignData [10:57:25]wFMCommunicate request_size=4 [10:57:25]MH_SAM_APDU [10:57:25]CAPDU: 80 0D 01 02 [10:57:25]Write to MH i2c: E2 08 00 45 3A 80 0D 01 02 00 00 00 00 F8 [10:57:25]Write i2c OK [10:57:25]MH_I2C_Read... [10:57:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:25]Read from MH i2c: E2 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: E2 03 00 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: E2 03 00 45 3A 00 90 00 F3 [10:57:25]RAPDU: 90 00 [10:57:25]wFMCommunicate OK [10:57:25]wFMCommunicate request_size=255 [10:57:25]MH_SAM_APDU [10:57: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 80 79 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 79 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 37 01 00 00 00 07 04 06 00 80 79 0B 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 98 D2 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7D CD 01 00 35 04 06 00 FF AB A8 6F [10:57:25]Write to MH i2c: E2 02 01 46 3A 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 80 79 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 79 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 37 01 00 00 00 07 04 06 00 80 79 0B 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 98 D2 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7D CD 01 00 35 04 06 00 FF AB A8 6F 00 00 D7 [10:57:25]Write i2c OK [10:57:25]MH_I2C_Read... [10:57:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:25]Read from MH i2c: E2 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: E2 03 00 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: E2 03 00 46 3A 00 90 00 F4 [10:57:25]RAPDU: 90 00 [10:57:25]wFMCommunicate OK [10:57:25]wFMCommunicate request_size=7 [10:57:25]MH_SAM_APDU [10:57:25]CAPDU: 80 0D 02 02 02 AA 76 [10:57:25]Write to MH i2c: E2 0A 00 47 3A 80 0D 02 02 02 00 AA 76 00 00 1F [10:57:25]Write i2c OK [10:57:25]MH_I2C_Read... [10:57:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:25]Read from MH i2c: E2 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: E2 03 00 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: E2 03 00 47 3A 00 90 00 F5 [10:57:25]RAPDU: 90 00 [10:57:25]wFMCommunicate OK [10:57:25]wFMCommunicate request_size=4 [10:57:25]MH_SAM_APDU [10:57:25]CAPDU: 80 0D 03 02 [10:57:25]Write to MH i2c: E2 08 00 48 3A 80 0D 03 02 00 00 00 00 FD [10:57:25]Write i2c OK [10:57:25]MH_I2C_Read... [10:57:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:25]Read from MH i2c: E2 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: E2 0B 00 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: E2 0B 00 48 3A 00 2A 81 9C 1D 83 7B 42 B0 90 00 52 [10:57:25]RAPDU: 2A 81 9C 1D 83 7B 42 B0 90 00 [10:57:25]wFMCommunicate OK [10:57:25]SAM_PROTO_SignData done [10:57:25]FM_MakeSignedData done [10:57:25]CreateOFDProtocolMessage [10:57:25]wFMCommunicate request_size=4 [10:57:25]MH_SAM_APDU [10:57:25]CAPDU: 80 11 00 00 [10:57:25]Write to MH i2c: E2 08 00 49 3A 80 11 00 00 00 00 00 00 FD [10:57:25]Write i2c OK [10:57:25]MH_I2C_Read... [10:57:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:25]Read from MH i2c: E2 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: E2 17 00 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: E2 17 00 49 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 58 [10:57:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:57:25]wFMCommunicate OK [10:57:25]CreateOFDProtocolMessage done [10:57:25]OFDSenderStorePacket 118141 [10:57:25]StoreOFDPacket docnum=118141 [10:57:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 11 08 04 01 2D 16 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 80 79 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 79 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 37 01 00 00 00 07 04 06 00 80 79 0B 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 98 D2 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7D CD 01 00 35 04 06 00 FF AB A8 6F AA 76 2A 81 9C 1D 83 7B 42 B0 [10:57:25]CheckFolder [10:57:25]dirname=/storage/ofd_packets [10:57:25]CheckFolder done [10:57:25]ProducePacketName [10:57:25]name=ofd_packets/00118141 [10:57:25]NVStorageSaveData ofd_packets/00118141 [10:57:25]File name is /storage/ofd_packets/00118141 [10:57:25]Write 298 bytes [10:57:25]NVStorageSaveData done [10:57:25]OFDSenderStorePacket done [10:57:25]KKMCreateOFDPacket done [10:57:25]NVStorageSaveData kkm_last_timestamp [10:57:25]File name is /storage/kkm_last_timestamp [10:57:25]Write 4 bytes [10:57:25]NVStorageSaveData done [10:57:25]OFD Sender: Processing packet 118141 [packets to send 85, broken 84] [10:57:25]ProducePacketName [10:57:25]name=ofd_packets/00118141 [10:57:25]OFD Sender: To server: pG, [10:57:25]CommunicateWithHost lk.salyk.kg:30040 [10:57:25]ConnectInit lk.salyk.kg [10:57:25]ExternCall_PrintAddStr [10:57:25]wPrintStart [10:57:25]Write to MH i2c: 01 00 00 4A 3A 84 [10:57:25]Write i2c OK [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: 01 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: 01 07 00 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: 01 07 00 4A 3A 00 00 00 00 00 FF 0F 99 [10:57:25]RasterBufferAndPrint [10:57:25]line Счет N : (1)949014 [10:57:25]line ИНН: 02508201610067 [10:57:25]line Контрольно-Кассовый Чек [10:57:25]line ПРОДАЖА [10:57:25]line ТРК (МРК, ГНК) : 44 [10:57:25]line Товар: 2710194800 [10:57:25]line ДТ-К-5 [10:57:25]line 100.000 * 75.20 [10:57:25]line = 7520.00 [10:57:25]line НДС 12% НСП 1% [10:57:25]line > о реализуемом товаре [10:57:25]line ИТОГО: 7520.00 [10:57:25]line НСП 1% : 66.55 [10:57:25]line НДС 12% : 798.58 [10:57:25]line Наличными: 7520.00 [10:57:25]line Безнал.: 0.00 [10:57:25]line Место: АЗС № 134 "Партнер Нефть" [10:57:25]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:57:25]line СНО: Общий режим [10:57:25]line Чек 84 27.07.2024 10:57 [10:57:25]line Смена: 432 ФФД: 1.0 [10:57:25]line ЗНМ: 0300000044 [10:57:25]line РНМ: 0000000000092660 [10:57:25]line Версия ККМ: 001 [10:57:25]line [10:57:25]line Дисконтная программа [10:57:25]line ДТ [10:57:25]line номер 134 [10:57:25]line сэкономлено 100.00 сом [10:57:25]line ФМ: 0000000000874939 [10:57:25]line ФД: 118141 [10:57:25]line ФПД: 281112730380918 [10:57:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T105728&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118141&fm=281112730380918&tin=02508201610067®Number=0000000000092660&sum=752000 [10:57:25]Connected sock=11 [10:57:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 11 08 04 01 2D 16 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 80 79 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 79 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 37 01 00 00 00 07 04 06 00 80 79 0B 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 98 D2 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7D CD 01 00 35 04 06 00 FF AB A8 6F AA 76 2A 81 9C 1D 83 7B 42 B0 [10:57:25]written 0, free lines is 4095 [10:57:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 03 1F 47 00 FA 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 34 39 33 39 10 04 04 00 7D CD 01 00 F4 03 04 00 2B 80 A4 66 B6 04 01 00 00 C2 A9 96 1F 44 46 83 2C [10:57:26]CommunicateWithHost err = 0 [10:57:26]CheckOFDResponse [10:57:26]1017 (14) - 77093643461234 [10:57:26]1041 (16) - 0000000000874939 [10:57:26]1040 (4) - 118141 [10:57:26]1012 (4) - 27.07.2024 05:05 [10:57:26]1206 (1) - 0 [10:57:26]OFD Sender: Remove packet 118141 [10:57:26]ProducePacketName [10:57:26]name=ofd_packets/00118141 [10:57:26]NVStorageDeleteData [10:57:26]Write to MH i2c: 01 00 00 76 3A B0 [10:57:26]Write i2c OK [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: 01 [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: 01 07 00 [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: 01 07 00 76 3A 00 00 00 00 00 AC 0C 6F [10:57:26]RasterBufferAndPrint [10:57:26]line [10:57:26]line [10:57:26]line [10:57:26]line [10:57:26]line [10:57:26]written 0, free lines is 3250 [10:57:26]MH_Cut [10:57:26]Write to MH i2c: D1 01 00 7D 3A 01 89 [10:57:26]Write i2c OK [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: D1 [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: D1 01 00 [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: D1 01 00 7D 3A 00 88 [10:57:26]Write to MH i2c: 01 00 00 7E 3A B8 [10:57:26]Write i2c OK [10:57:26]MH_I2C_Read... [10:57:26]OFD Sender: No OFD packet to send [10:57:27]*** Cut start [10:57:27]*** Partial cut [10:57:27]*** CUTSNS_PIN = 1 [10:57:27]*** CUTSNS_PIN = 0 [10:57:27]*** Brake cut motor [10:57:27]Read from MH i2c: 01 [10:57:27]MH_I2C_Read... [10:57:27]*** Stop cut motor [10:57:27]*** Cut end [10:57:27]Read from MH i2c: 01 07 00 [10:57:27]MH_I2C_Read... [10:57:27]Read from MH i2c: 01 07 00 7E 3A 00 00 00 00 00 FF 0F CD [10:57:27]process_action close_receipt done [10:57:27]requested_data is exist [10:57:27]produce_requested_data [10:57:27]requested_item fm.sn is exist - process it [10:57:27]wFMCommunicate request_size=4 [10:57:27]MH_SAM_APDU [10:57:27]CAPDU: 80 11 00 00 [10:57:27]Write to MH i2c: E2 08 00 7F 3A 80 11 00 00 00 00 00 00 33 [10:57:27]Write i2c OK [10:57:27]MH_I2C_Read... [10:57:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:27]Read from MH i2c: E2 [10:57:27]MH_I2C_Read... [10:57:27]Read from MH i2c: E2 17 00 [10:57:27]MH_I2C_Read... [10:57:27]Read from MH i2c: E2 17 00 7F 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8E [10:57:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:57:27]wFMCommunicate OK [10:57:27]requested_item fd.num is exist - process it [10:57:27]SAM_PROTO_GetFieldsCounters [10:57:27]wFMCommunicate request_size=4 [10:57:27]MH_SAM_APDU [10:57:27]CAPDU: 80 13 00 00 [10:57:27]Write to MH i2c: E2 08 00 80 3A 80 13 00 00 00 00 00 00 36 [10:57:27]Write i2c OK [10:57:27]MH_I2C_Read... [10:57:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:27]Read from MH i2c: E2 [10:57:27]MH_I2C_Read... [10:57:27]Read from MH i2c: E2 62 00 [10:57:27]MH_I2C_Read... [10:57:27]Read from MH i2c: E2 62 00 80 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7D CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [10:57:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7D CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:57:27]wFMCommunicate OK [10:57:27]SAM_PROTO_GetFieldsCounters done [10:57:27]requested_item shift.num is exist - process it [10:57:27]requested_item shift.opened is exist - process it [10:57:27]req_shift_opened [10:57:27]FM_GetShiftState [10:57:27]SAM_PROTO_GetShiftState [10:57:27]wFMCommunicate request_size=4 [10:57:27]MH_SAM_APDU [10:57:27]CAPDU: 80 13 01 00 [10:57:27]Write to MH i2c: E2 08 00 81 3A 80 13 01 00 00 00 00 00 38 [10:57:27]Write i2c OK [10:57:27]MH_I2C_Read... [10:57:27]Read from MH i2c: E2 [10:57:27]MH_I2C_Read... [10:57:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:27]Read from MH i2c: E2 0E 00 [10:57:27]MH_I2C_Read... [10:57:27]Read from MH i2c: E2 0E 00 81 3A 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 C5 [10:57:27]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [10:57:27]wFMCommunicate OK [10:57:27]SAM_PROTO_GetShiftState done [10:57:27]FM_GetShiftState done [10:57:27]req_shift_opened done [10:57:27]requested_item shift.open_date is exist - process it [10:57:27]req_shift_open_date [10:57:27]req_shift_open_date done [10:57:27]produce_requested_data done [10:57:27]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118141,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [10:57:27]process_action_free close_receipt [10:57:27]json_value_free [10:57:27]json_value_free done [10:57:27]process_json_proto returns [10:57:27]Send response to host [10:57:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118141,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [10:57:27]free response buf [10:57:27]execute_script done [10:57:27]execute_script returns [10:57:27]free content buf [10:57:27]Sock 7.Close socket [10:57:27]Sock 7.Thread stoped [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:47]accept exits with 9 [11:02:47]New connection [11:02:47]New thread 3067428196 created [11:02:47]Thread 3067284836 joined [11:02:47]Waiting for new connection... [11:02:47] Sock 9.Parse request [11:02:47]Sock 9.Check first char [11:02:47]Sock 9.First char is OK [11:02:47]request: POST /json_proto HTTP/1.0 [11:02:47]Method: POST [11:02:47]URL: /json_proto [11:02:47]Method is POST - this is cgi request [11:02:47]url: /json_proto [11:02:47]query_string will be loaded in cgi processing [11:02:47]execute_cgi json_proto POST (null) [11:02:47]execute_cgi path=json_proto method=POST [11:02:47]POST find Content-Length [11:02:47]Host: 172.17.45.7:8080 [11:02:47]Content-Length: 940 [11:02:47]Content-Type: application/json [11:02:47] [11:02:47]POST finish read [11:02:47]Found Content-Length = 940 [11:02:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 100.000, "sum" : 7520.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 134\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 100.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 7520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:47]execute_script... [11:02:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 100.000, "sum" : 7520.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 134\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 100.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 7520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:47]POST & json_proto [11:02:47]process_json_proto [11:02:47]json parsed OK: [11:02:47]protocol is kg_v1.0 [11:02:47]action value=close_receipt [11:02:47]process_action close_receipt [11:02:47]cmd_close_receipt [11:02:47]MH_GetDate [11:02:47]Write to MH i2c: F0 00 00 82 3A AB [11:02:47]Write i2c OK [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: F0 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: F0 09 00 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: F0 09 00 82 3A 00 DB D3 A4 66 90 0F 3E 66 AF [11:02:47]GetLastDocTimeStamp 1722077848 [11:02:47]current date 1722078171 [11:02:47]FM_GetShiftState [11:02:47]SAM_PROTO_GetShiftState [11:02:47]wFMCommunicate request_size=4 [11:02:47]MH_SAM_APDU [11:02:47]CAPDU: 80 13 01 00 [11:02:47]Write to MH i2c: E2 08 00 83 3A 80 13 01 00 00 00 00 00 3A [11:02:47]Write i2c OK [11:02:47]MH_I2C_Read... [11:02:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:47]Read from MH i2c: E2 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: E2 0E 00 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: E2 0E 00 83 3A 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 C7 [11:02:47]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [11:02:47]wFMCommunicate OK [11:02:47]SAM_PROTO_GetShiftState done [11:02:47]FM_GetShiftState done [11:02:47]opened in 1722038845 [11:02:47]opened+sec_in_day 1722125245 [11:02:47]quantity*price = 752000 [11:02:47]sum+1 = 752001 [11:02:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7520.00 НСП 1% : 66.55 НДС 12% : 798.58 Наличными: 7520.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 85 27.07.2024 11:02 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Дисконтная программа ДТ номер 134 сэкономлено 100.00 сом ФМ: 0000000000874939 ФД: 118142 ФПД: 212100510865567 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T110251&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118142&fm=212100510865567&tin=02508201610067®Number=0000000000092660&sum=752000 [11:02:48]StoreToDocumentArchive [11:02:48]shift 432 fd 118142 [11:02:48]save to /storage/0432/doc_00118142 [11:02:48]save last doc name /storage/0432/doc_00118142 to /storage/kkm_last_doc_name [11:02:48]save OK [11:02:48]Clear old archive folders... [11:02:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:02:48]tlvbuf is 006D5E50 [11:02:48]SAM_PROTO_ClearQueue [11:02:48]wFMCommunicate request_size=4 [11:02:48]MH_SAM_APDU [11:02:48]CAPDU: 80 09 00 00 [11:02:48]Write to MH i2c: E2 08 00 90 3A 80 09 00 00 00 00 00 00 3C [11:02:48]Write i2c OK [11:02:48]MH_I2C_Read... [11:02:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:48]Read from MH i2c: E2 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: E2 03 00 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: E2 03 00 90 3A 00 90 00 3E [11:02:48]RAPDU: 90 00 [11:02:48]wFMCommunicate OK [11:02:48]SAM_PROTO_ClearQueue done [11:02:48]KKMCreateOFDPacket [11:02:48]OFDProtocolAddRootSTLVToBuf [11:02:48]FM_MakeSignedData [11:02:48]FM_MakeSignedData [11:02:48]SAM_PROTO_SignData [11:02:48]wFMCommunicate request_size=4 [11:02:48]MH_SAM_APDU [11:02:48]CAPDU: 80 0D 01 02 [11:02:48]Write to MH i2c: E2 08 00 91 3A 80 0D 01 02 00 00 00 00 44 [11:02:48]Write i2c OK [11:02:48]MH_I2C_Read... [11:02:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:48]Read from MH i2c: E2 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: E2 03 00 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: E2 03 00 91 3A 00 90 00 3F [11:02:48]RAPDU: 90 00 [11:02:48]wFMCommunicate OK [11:02:48]wFMCommunicate request_size=255 [11:02:48]MH_SAM_APDU [11:02:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 80 79 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 79 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 37 01 00 00 00 07 04 06 00 80 79 0B 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 DB D3 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7E CD 01 00 35 04 06 00 C0 E7 7F 9B [11:02:48]Write to MH i2c: E2 02 01 92 3A 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 80 79 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 79 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 37 01 00 00 00 07 04 06 00 80 79 0B 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 DB D3 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7E CD 01 00 35 04 06 00 C0 E7 7F 9B 00 00 69 [11:02:48]Write i2c OK [11:02:48]MH_I2C_Read... [11:02:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:48]Read from MH i2c: E2 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: E2 03 00 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: E2 03 00 92 3A 00 90 00 40 [11:02:48]RAPDU: 90 00 [11:02:48]wFMCommunicate OK [11:02:48]wFMCommunicate request_size=7 [11:02:48]MH_SAM_APDU [11:02:48]CAPDU: 80 0D 02 02 02 58 9F [11:02:48]Write to MH i2c: E2 0A 00 93 3A 80 0D 02 02 02 00 58 9F 00 00 42 [11:02:48]Write i2c OK [11:02:48]MH_I2C_Read... [11:02:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:48]Read from MH i2c: E2 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: E2 03 00 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: E2 03 00 93 3A 00 90 00 41 [11:02:48]RAPDU: 90 00 [11:02:48]wFMCommunicate OK [11:02:48]wFMCommunicate request_size=4 [11:02:48]MH_SAM_APDU [11:02:48]CAPDU: 80 0D 03 02 [11:02:48]Write to MH i2c: E2 08 00 94 3A 80 0D 03 02 00 00 00 00 49 [11:02:48]Write i2c OK [11:02:48]MH_I2C_Read... [11:02:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:48]Read from MH i2c: E2 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: E2 0B 00 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: E2 0B 00 94 3A 00 60 17 68 88 F4 CB 38 A9 90 00 51 [11:02:48]RAPDU: 60 17 68 88 F4 CB 38 A9 90 00 [11:02:48]wFMCommunicate OK [11:02:48]SAM_PROTO_SignData done [11:02:48]FM_MakeSignedData done [11:02:48]CreateOFDProtocolMessage [11:02:48]wFMCommunicate request_size=4 [11:02:48]MH_SAM_APDU [11:02:48]CAPDU: 80 11 00 00 [11:02:48]Write to MH i2c: E2 08 00 95 3A 80 11 00 00 00 00 00 00 49 [11:02:48]Write i2c OK [11:02:48]MH_I2C_Read... [11:02:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:48]Read from MH i2c: E2 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: E2 17 00 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: E2 17 00 95 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A4 [11:02:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:02:48]wFMCommunicate OK [11:02:48]CreateOFDProtocolMessage done [11:02:48]OFDSenderStorePacket 118142 [11:02:48]StoreOFDPacket docnum=118142 [11:02:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 9F 2F 04 01 F1 56 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 80 79 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 79 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 37 01 00 00 00 07 04 06 00 80 79 0B 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 DB D3 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7E CD 01 00 35 04 06 00 C0 E7 7F 9B 58 9F 60 17 68 88 F4 CB 38 A9 [11:02:48]CheckFolder [11:02:48]dirname=/storage/ofd_packets [11:02:48]CheckFolder done [11:02:48]ProducePacketName [11:02:48]name=ofd_packets/00118142 [11:02:48]NVStorageSaveData ofd_packets/00118142 [11:02:48]File name is /storage/ofd_packets/00118142 [11:02:48]Write 298 bytes [11:02:48]NVStorageSaveData done [11:02:48]OFDSenderStorePacket done [11:02:48]KKMCreateOFDPacket done [11:02:48]NVStorageSaveData kkm_last_timestamp [11:02:48]File name is /storage/kkm_last_timestamp [11:02:48]Write 4 bytes [11:02:48]NVStorageSaveData done [11:02:48]ExternCall_PrintAddStr [11:02:48]wPrintStart [11:02:48]Write to MH i2c: 01 00 00 96 3A D0 [11:02:48]Write i2c OK [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: 01 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: 01 07 00 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: 01 07 00 96 3A 00 00 00 00 00 FF 0F E5 [11:02:48]RasterBufferAndPrint [11:02:48]line Счет N : (1)949015 [11:02:48]line ИНН: 02508201610067 [11:02:48]line Контрольно-Кассовый Чек [11:02:48]line ПРОДАЖА [11:02:48]line ТРК (МРК, ГНК) : 44 [11:02:48]line Товар: 2710194800 [11:02:48]line ДТ-К-5 [11:02:48]line 100.000 * 75.20 [11:02:48]line = 7520.00 [11:02:48]line НДС 12% НСП 1% [11:02:48]line > о реализуемом товаре [11:02:48]line ИТОГО: 7520.00 [11:02:48]line НСП 1% : 66.55 [11:02:48]line НДС 12% : 798.58 [11:02:48]line Наличными: 7520.00 [11:02:48]line Безнал.: 0.00 [11:02:48]line Место: АЗС № 134 "Партнер Нефть" [11:02:48]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:02:48]line СНО: Общий режим [11:02:48]line Чек 85 27.07.2024 11:02 [11:02:48]line Смена: 432 ФФД: 1.0 [11:02:48]line ЗНМ: 0300000044 [11:02:48]line РНМ: 0000000000092660 [11:02:48]line Версия ККМ: 001 [11:02:48]line [11:02:48]line Дисконтная программа [11:02:48]line ДТ [11:02:48]line номер 134 [11:02:48]line сэкономлено 100.00 сом [11:02:48]line ФМ: 0000000000874939 [11:02:48]line ФД: 118142 [11:02:48]line ФПД: 212100510865567 [11:02:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T110251&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118142&fm=212100510865567&tin=02508201610067®Number=0000000000092660&sum=752000 [11:02:49]OFD Sender: Processing packet 118142 [packets to send 85, broken 84] [11:02:49]ProducePacketName [11:02:49]name=ofd_packets/00118142 [11:02:49]OFD Sender: To server: pG, [11:02:49]CommunicateWithHost lk.salyk.kg:30040 [11:02:49]ConnectInit lk.salyk.kg [11:02:49]written 0, free lines is 4095 [11:02:49]Connected sock=7 [11:02:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 9F 2F 04 01 F1 56 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 80 79 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 79 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 37 01 00 00 00 07 04 06 00 80 79 0B 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 DB D3 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7E CD 01 00 35 04 06 00 C0 E7 7F 9B 58 9F 60 17 68 88 F4 CB 38 A9 [11:02:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 4C A6 47 00 F5 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7E CD 01 00 F4 03 04 00 6E 81 A4 66 B6 04 01 00 00 B7 27 96 CD 47 30 48 E1 [11:02:49]CommunicateWithHost err = 0 [11:02:49]CheckOFDResponse [11:02:49]1017 (14) - 77093643461234 [11:02:49]1041 (16) - 0000000000874939 [11:02:49]1040 (4) - 118142 [11:02:49]1012 (4) - 27.07.2024 05:11 [11:02:49]1206 (1) - 0 [11:02:49]OFD Sender: Remove packet 118142 [11:02:49]ProducePacketName [11:02:49]name=ofd_packets/00118142 [11:02:49]NVStorageDeleteData [11:02:49]Write to MH i2c: 01 00 00 C2 3A FC [11:02:49]Write i2c OK [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: 01 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: 01 07 00 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: 01 07 00 C2 3A 00 00 00 00 00 C5 0C D4 [11:02:49]RasterBufferAndPrint [11:02:49]line [11:02:49]line [11:02:49]line [11:02:49]line [11:02:49]line [11:02:49]written 0, free lines is 3277 [11:02:49]MH_Cut [11:02:49]Write to MH i2c: D1 01 00 C9 3A 01 D5 [11:02:49]Write i2c OK [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: D1 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: D1 01 00 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: D1 01 00 C9 3A 00 D4 [11:02:49]Write to MH i2c: 01 00 00 CA 3A 04 [11:02:49]Write i2c OK [11:02:49]MH_I2C_Read... [11:02:49]OFD Sender: No OFD packet to send [11:02:50]*** Cut start [11:02:50]*** Partial cut [11:02:50]*** CUTSNS_PIN = 1 [11:02:50]*** CUTSNS_PIN = 0 [11:02:50]*** Brake cut motor [11:02:50]Read from MH i2c: 01 [11:02:50]MH_I2C_Read... [11:02:50]*** Stop cut motor [11:02:50]*** Cut end [11:02:50]Read from MH i2c: 01 07 00 [11:02:50]MH_I2C_Read... [11:02:50]Read from MH i2c: 01 07 00 CA 3A 00 00 00 00 00 FF 0F 19 [11:02:50]process_action close_receipt done [11:02:50]requested_data is exist [11:02:50]produce_requested_data [11:02:50]requested_item fm.sn is exist - process it [11:02:50]wFMCommunicate request_size=4 [11:02:50]MH_SAM_APDU [11:02:50]CAPDU: 80 11 00 00 [11:02:50]Write to MH i2c: E2 08 00 CB 3A 80 11 00 00 00 00 00 00 7F [11:02:50]Write i2c OK [11:02:50]MH_I2C_Read... [11:02:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:50]Read from MH i2c: E2 [11:02:50]MH_I2C_Read... [11:02:50]Read from MH i2c: E2 17 00 [11:02:50]MH_I2C_Read... [11:02:50]Read from MH i2c: E2 17 00 CB 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DA [11:02:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:02:50]wFMCommunicate OK [11:02:50]requested_item fd.num is exist - process it [11:02:50]SAM_PROTO_GetFieldsCounters [11:02:50]wFMCommunicate request_size=4 [11:02:50]MH_SAM_APDU [11:02:50]CAPDU: 80 13 00 00 [11:02:50]Write to MH i2c: E2 08 00 CC 3A 80 13 00 00 00 00 00 00 82 [11:02:50]Write i2c OK [11:02:50]MH_I2C_Read... [11:02:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:51]Read from MH i2c: E2 [11:02:51]MH_I2C_Read... [11:02:51]Read from MH i2c: E2 62 00 [11:02:51]MH_I2C_Read... [11:02:51]Read from MH i2c: E2 62 00 CC 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7E CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [11:02:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7E CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:02:51]wFMCommunicate OK [11:02:51]SAM_PROTO_GetFieldsCounters done [11:02:51]requested_item shift.num is exist - process it [11:02:51]requested_item shift.opened is exist - process it [11:02:51]req_shift_opened [11:02:51]FM_GetShiftState [11:02:51]SAM_PROTO_GetShiftState [11:02:51]wFMCommunicate request_size=4 [11:02:51]MH_SAM_APDU [11:02:51]CAPDU: 80 13 01 00 [11:02:51]Write to MH i2c: E2 08 00 CD 3A 80 13 01 00 00 00 00 00 84 [11:02:51]Write i2c OK [11:02:51]MH_I2C_Read... [11:02:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:51]Read from MH i2c: E2 [11:02:51]MH_I2C_Read... [11:02:51]Read from MH i2c: E2 0E 00 [11:02:51]MH_I2C_Read... [11:02:51]Read from MH i2c: E2 0E 00 CD 3A 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 11 [11:02:51]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [11:02:51]wFMCommunicate OK [11:02:51]SAM_PROTO_GetShiftState done [11:02:51]FM_GetShiftState done [11:02:51]req_shift_opened done [11:02:51]requested_item shift.open_date is exist - process it [11:02:51]req_shift_open_date [11:02:51]req_shift_open_date done [11:02:51]produce_requested_data done [11:02:51]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118142,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [11:02:51]process_action_free close_receipt [11:02:51]json_value_free [11:02:51]json_value_free done [11:02:51]process_json_proto returns [11:02:51]Send response to host [11:02:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118142,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [11:02:51]free response buf [11:02:51]execute_script done [11:02:51]execute_script returns [11:02:51]free content buf [11:02:51]Sock 9.Close socket [11:02:51]Sock 9.Thread stoped [11:02:54]OFD Sender: No OFD packet to send [11:02:59]OFD Sender: No OFD packet to send [11:03:04]OFD Sender: No OFD packet to send [11:03:09]OFD Sender: No OFD packet to send [11:03:14]OFD Sender: No OFD packet to send [11:03:19]OFD Sender: No OFD packet to send [11:03:24]OFD Sender: No OFD packet to send [11:03:29]OFD Sender: No OFD packet to send [11:03:34]OFD Sender: No OFD packet to send [11:03:39]OFD Sender: No OFD packet to send [11:03:44]OFD Sender: No OFD packet to send [11:03:49]OFD Sender: No OFD packet to send [11:03:54]OFD Sender: No OFD packet to send [11:03:59]OFD Sender: No OFD packet to send [11:04:04]OFD Sender: No OFD packet to send [11:04:09]OFD Sender: No OFD packet to send [11:04:14]OFD Sender: No OFD packet to send [11:04:19]OFD Sender: No OFD packet to send [11:04:24]OFD Sender: No OFD packet to send [11:04:30]OFD Sender: No OFD packet to send [11:04:30]accept exits with 10 [11:04:30]New connection [11:04:30]New thread 3067284836 created [11:04:30]Thread 3067428196 joined [11:04:30]Waiting for new connection... [11:04:30] Sock 10.Parse request [11:04:30]Sock 10.Check first char [11:04:30]Sock 10.First char is OK [11:04:30]request: POST /json_proto HTTP/1.0 [11:04:30]Method: POST [11:04:30]URL: /json_proto [11:04:30]Method is POST - this is cgi request [11:04:30]url: /json_proto [11:04:30]query_string will be loaded in cgi processing [11:04:30]execute_cgi json_proto POST (null) [11:04:30]execute_cgi path=json_proto method=POST [11:04:30]POST find Content-Length [11:04:30]Host: 172.17.45.7:8080 [11:04:30]Content-Length: 679 [11:04:30]Content-Type: application/json [11:04:30] [11:04:30]POST finish read [11:04:30]Found Content-Length = 679 [11:04:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:30]execute_script... [11:04: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)949016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:30]POST & json_proto [11:04:30]process_json_proto [11:04:30]json parsed OK: [11:04:30]protocol is kg_v1.0 [11:04:30]action value=close_receipt [11:04:30]process_action close_receipt [11:04:30]cmd_close_receipt [11:04:30]MH_GetDate [11:04:30]Write to MH i2c: F0 00 00 CE 3A F7 [11:04:30]Write i2c OK [11:04:30]MH_I2C_Read... [11:04:30]Read from MH i2c: F0 [11:04:30]MH_I2C_Read... [11:04:30]Read from MH i2c: F0 09 00 [11:04:30]MH_I2C_Read... [11:04:30]Read from MH i2c: F0 09 00 CE 3A 00 42 D4 A4 66 90 0F 3E 66 63 [11:04:30]GetLastDocTimeStamp 1722078171 [11:04:30]current date 1722078274 [11:04:30]FM_GetShiftState [11:04:30]SAM_PROTO_GetShiftState [11:04:30]wFMCommunicate request_size=4 [11:04:30]MH_SAM_APDU [11:04:30]CAPDU: 80 13 01 00 [11:04:30]Write to MH i2c: E2 08 00 CF 3A 80 13 01 00 00 00 00 00 86 [11:04:30]Write i2c OK [11:04:30]MH_I2C_Read... [11:04:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:30]Read from MH i2c: E2 [11:04:30]MH_I2C_Read... [11:04:30]Read from MH i2c: E2 0E 00 [11:04:30]MH_I2C_Read... [11:04:30]Read from MH i2c: E2 0E 00 CF 3A 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 13 [11:04:30]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [11:04:30]wFMCommunicate OK [11:04:30]SAM_PROTO_GetShiftState done [11:04:30]FM_GetShiftState done [11:04:30]opened in 1722038845 [11:04:30]opened+sec_in_day 1722125245 [11:04:30]quantity*price = 100050 [11:04:30]sum+1 = 100052 [11:04:30]Check (price>sum+1) || (price+1 о реализуемом товаре [11:06:34]line ОКРУГЛЕНИЕ: -0.51 [11:06:34]line ИТОГО: 1000.00 [11:06:34]line Внесено: 1000.00 [11:06:34]line СДАЧА: 0.00 [11:06:34]line НСП 1% : 8.85 [11:06:34]line НДС 12% : 106.25 [11:06:34]line Наличными: 1000.00 [11:06:34]line Безнал.: 0.00 [11:06:34]line Место: АЗС № 134 "Партнер Нефть" [11:06:34]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:06:34]line СНО: Общий режим [11:06:34]line Чек 86 27.07.2024 11:04 [11:06:34]line Смена: 432 ФФД: 1.0 [11:06:34]line ЗНМ: 0300000044 [11:06:34]line РНМ: 0000000000092660 [11:06:34]line Версия ККМ: 001 [11:06:34]line ФМ: 0000000000874939 [11:06:34]line ФД: 118143 [11:06:34]line ФПД: 127220109577948 [11:06:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T110434&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118143&fm=127220109577948&tin=02508201610067®Number=0000000000092660&sum=100000 [11:06:34]written 0, free lines is 4095 [11:06:34]Write to MH i2c: 01 00 00 47 00 47 [11:06:34]Write i2c OK [11:06:34]MH_I2C_Read... [11:06:34]Read from MH i2c: 01 [11:06:34]MH_I2C_Read... [11:06:34]Read from MH i2c: 01 07 00 [11:06:34]MH_I2C_Read... [11:06:34]Read from MH i2c: 01 07 00 47 00 00 00 00 00 00 D2 0C 2C [11:06:34]RasterBufferAndPrint [11:06:34]line [11:06:34]line [11:06:34]line [11:06:34]line [11:06:34]line [11:06:34]written 0, free lines is 3295 [11:06:34]MH_Cut [11:06:34]Write to MH i2c: D1 01 00 4E 00 01 20 [11:06:34]Write i2c OK [11:06:34]MH_I2C_Read... [11:06:34]Read from MH i2c: D1 [11:06:34]MH_I2C_Read... [11:06:34]Read from MH i2c: D1 01 00 [11:06:34]MH_I2C_Read... [11:06:34]Read from MH i2c: D1 01 00 4E 00 00 1F [11:06:34]Write to MH i2c: 01 00 00 4F 00 4F [11:06:34]Write i2c OK [11:06:34]MH_I2C_Read... [11:06:35]*** Cut start [11:06:35]*** Partial cut [11:06:35]*** CUTSNS_PIN = 1 [11:06:35]*** CUTSNS_PIN = 0 [11:06:35]OFD Sender: No OFD packet to send [11:06:35]*** Brake cut motor [11:06:35]Read from MH i2c: 01 [11:06:35]MH_I2C_Read... [11:06:35]*** Stop cut motor [11:06:35]*** Cut end [11:06:35]Read from MH i2c: 01 07 00 [11:06:35]MH_I2C_Read... [11:06:35]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 FF 0F 64 [11:06:35]process_action print_doc done [11:06:35]requested_data is exist [11:06:35]produce_requested_data [11:06:35]produce_requested_data return (null) [11:06:35]process_action_free print_doc [11:06:35]json_value_free [11:06:35]json_value_free done [11:06:35]process_json_proto returns [11:06:35]Send response to host [11:06:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [11:06:35]free response buf [11:06:35]execute_script done [11:06:35]execute_script returns [11:06:35]free content buf [11:06:35]Sock 9.Close socket [11:06:35]Sock 9.Thread stoped [11:06:40]OFD Sender: No OFD packet to send [11:06:45]OFD Sender: No OFD packet to send [11:06:50]OFD Sender: No OFD packet to send [11:06:55]OFD Sender: No OFD packet to send [11:07:00]OFD Sender: No OFD packet to send [11:07:05]OFD Sender: No OFD packet to send [11:07:10]OFD Sender: No OFD packet to send [11:07:15]OFD Sender: No OFD packet to send [11:07:20]OFD Sender: No OFD packet to send [11:07:25]OFD Sender: No OFD packet to send [11:07:30]OFD Sender: No OFD packet to send [11:07:35]OFD Sender: No OFD packet to send [11:07:40]OFD Sender: No OFD packet to send [11:07:45]OFD Sender: No OFD packet to send [11:07:50]OFD Sender: No OFD packet to send [11:07:55]OFD Sender: No OFD packet to send [11:08:00]OFD Sender: No OFD packet to send [11:08:05]OFD Sender: No OFD packet to send [11:08:10]OFD Sender: No OFD packet to send [11:08:15]OFD Sender: No OFD packet to send [11:08:20]OFD Sender: No OFD packet to send [11:08:24]accept exits with 7 [11:08:24]New connection [11:08:24]New thread 3067272548 created [11:08:24]Thread 3067415908 joined [11:08:24]Waiting for new connection... [11:08:24] Sock 7.Parse request [11:08:24]Sock 7.Check first char [11:08:24]Sock 7.First char is OK [11:08:24]request: POST /json_proto HTTP/1.0 [11:08:24]Method: POST [11:08:24]URL: /json_proto [11:08:24]Method is POST - this is cgi request [11:08:24]url: /json_proto [11:08:24]query_string will be loaded in cgi processing [11:08:24]execute_cgi json_proto POST (null) [11:08:24]execute_cgi path=json_proto method=POST [11:08:24]POST find Content-Length [11:08:24]Host: 172.17.45.7:8080 [11:08:24]Content-Length: 675 [11:08:24]Content-Type: application/json [11:08:24] [11:08:24]POST finish read [11:08:24]Found Content-Length = 675 [11:08:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:24]execute_script... [11:08: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)949017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:24]POST & json_proto [11:08:24]process_json_proto [11:08:24]json parsed OK: [11:08:24]protocol is kg_v1.0 [11:08:24]action value=close_receipt [11:08:24]process_action close_receipt [11:08:24]cmd_close_receipt [11:08:24]MH_GetDate [11:08:24]Write to MH i2c: F0 00 00 50 00 3F [11:08:24]Write i2c OK [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: F0 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: F0 09 00 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: F0 09 00 50 00 00 29 D5 A4 66 90 0F 3E 66 93 [11:08:24]GetLastDocTimeStamp 1722078274 [11:08:24]current date 1722078505 [11:08:24]FM_GetShiftState [11:08:24]SAM_PROTO_GetShiftState [11:08:24]wFMCommunicate request_size=4 [11:08:24]MH_SAM_APDU [11:08:24]CAPDU: 80 13 01 00 [11:08:24]Write to MH i2c: E2 08 00 51 00 80 13 01 00 00 00 00 00 CE [11:08:24]Write i2c OK [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: E2 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: E2 0E 00 [11:08:24]MH_I2C_Read... [11:08:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:24]Read from MH i2c: E2 0E 00 51 00 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 5B [11:08:24]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [11:08:24]wFMCommunicate OK [11:08:24]SAM_PROTO_GetShiftState done [11:08:24]FM_GetShiftState done [11:08:24]opened in 1722038845 [11:08:24]opened+sec_in_day 1722125245 [11:08:24]quantity*price = 80010 [11:08:24]sum+1 = 80011 [11:08:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 87 27.07.2024 11:08 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118144 ФПД: 238863184326161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T110825&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118144&fm=238863184326161&tin=02508201610067®Number=0000000000092660&sum=80000 [11:08:26]StoreToDocumentArchive [11:08:26]shift 432 fd 118144 [11:08:26]save to /storage/0432/doc_00118144 [11:08:26]save last doc name /storage/0432/doc_00118144 to /storage/kkm_last_doc_name [11:08:26]save OK [11:08:26]Clear old archive folders... [11:08:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:08:26]tlvbuf is 0035C200 [11:08:26]SAM_PROTO_ClearQueue [11:08:26]wFMCommunicate request_size=4 [11:08:26]MH_SAM_APDU [11:08:26]CAPDU: 80 09 00 00 [11:08:26]Write to MH i2c: E2 08 00 5E 00 80 09 00 00 00 00 00 00 D0 [11:08:26]Write i2c OK [11:08:26]MH_I2C_Read... [11:08:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:26]Read from MH i2c: E2 [11:08:26]MH_I2C_Read... [11:08:26]Read from MH i2c: E2 03 00 [11:08:26]MH_I2C_Read... [11:08:26]Read from MH i2c: E2 03 00 5E 00 00 90 00 D2 [11:08:26]RAPDU: 90 00 [11:08:26]wFMCommunicate OK [11:08:26]SAM_PROTO_ClearQueue done [11:08:26]KKMCreateOFDPacket [11:08:26]OFDProtocolAddRootSTLVToBuf [11:08:26]FM_MakeSignedData [11:08:26]FM_MakeSignedData [11:08:26]SAM_PROTO_SignData [11:08:26]wFMCommunicate request_size=4 [11:08:26]MH_SAM_APDU [11:08:26]CAPDU: 80 0D 01 02 [11:08:26]Write to MH i2c: E2 08 00 5F 00 80 0D 01 02 00 00 00 00 D8 [11:08:26]Write i2c OK [11:08:26]MH_I2C_Read... [11:08:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:26]Read from MH i2c: E2 [11:08:26]MH_I2C_Read... [11:08:26]Read from MH i2c: E2 03 00 [11:08:26]MH_I2C_Read... [11:08:26]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [11:08:26]RAPDU: 90 00 [11:08:26]wFMCommunicate OK [11:08:26]wFMCommunicate request_size=255 [11:08:26]MH_SAM_APDU [11:08:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 29 D5 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 80 CD 01 00 35 04 06 00 D9 3E AB 40 [11:08:26]Write to MH i2c: E2 02 01 60 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 29 D5 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 80 CD 01 00 35 04 06 00 D9 3E AB 40 00 00 FB [11:08:26]Write i2c OK [11:08:26]MH_I2C_Read... [11:08:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:26]Read from MH i2c: E2 [11:08:26]MH_I2C_Read... [11:08:26]Read from MH i2c: E2 03 00 [11:08:26]MH_I2C_Read... [11:08:26]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [11:08:26]RAPDU: 90 00 [11:08:26]wFMCommunicate OK [11:08:26]wFMCommunicate request_size=7 [11:08:26]MH_SAM_APDU [11:08:26]CAPDU: 80 0D 02 02 02 6E 11 [11:08:26]Write to MH i2c: E2 0A 00 61 00 80 0D 02 02 02 00 6E 11 00 00 5E [11:08:26]Write i2c OK [11:08:26]MH_I2C_Read... [11:08:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:26]Read from MH i2c: E2 [11:08:26]MH_I2C_Read... [11:08:26]Read from MH i2c: E2 03 00 [11:08:26]MH_I2C_Read... [11:08:26]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [11:08:26]RAPDU: 90 00 [11:08:26]wFMCommunicate OK [11:08:26]wFMCommunicate request_size=4 [11:08:26]MH_SAM_APDU [11:08:26]CAPDU: 80 0D 03 02 [11:08:26]Write to MH i2c: E2 08 00 62 00 80 0D 03 02 00 00 00 00 DD [11:08:26]Write i2c OK [11:08:26]MH_I2C_Read... [11:08:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:26]Read from MH i2c: E2 [11:08:26]MH_I2C_Read... [11:08:26]Read from MH i2c: E2 0B 00 [11:08:26]MH_I2C_Read... [11:08:26]Read from MH i2c: E2 0B 00 62 00 00 B0 BB 04 54 34 A0 71 2F 90 00 15 [11:08:26]RAPDU: B0 BB 04 54 34 A0 71 2F 90 00 [11:08:26]wFMCommunicate OK [11:08:26]SAM_PROTO_SignData done [11:08:26]FM_MakeSignedData done [11:08:26]CreateOFDProtocolMessage [11:08:26]wFMCommunicate request_size=4 [11:08:26]MH_SAM_APDU [11:08:26]CAPDU: 80 11 00 00 [11:08:26]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [11:08:26]Write i2c OK [11:08:26]MH_I2C_Read... [11:08:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:26]Read from MH i2c: E2 [11:08:26]MH_I2C_Read... [11:08:26]Read from MH i2c: E2 17 00 [11:08:26]MH_I2C_Read... [11:08:26]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 38 [11:08:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:08:26]wFMCommunicate OK [11:08:26]CreateOFDProtocolMessage done [11:08:26]OFDSenderStorePacket 118144 [11:08:26]StoreOFDPacket docnum=118144 [11:08:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 0E 82 04 01 76 ED 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 29 D5 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 80 CD 01 00 35 04 06 00 D9 3E AB 40 6E 11 B0 BB 04 54 34 A0 71 2F [11:08:26]CheckFolder [11:08:26]dirname=/storage/ofd_packets [11:08:26]CheckFolder done [11:08:26]ProducePacketName [11:08:26]name=ofd_packets/00118144 [11:08:26]NVStorageSaveData ofd_packets/00118144 [11:08:26]File name is /storage/ofd_packets/00118144 [11:08:26]Write 298 bytes [11:08:26]NVStorageSaveData done [11:08:26]OFDSenderStorePacket done [11:08:26]KKMCreateOFDPacket done [11:08:26]NVStorageSaveData kkm_last_timestamp [11:08:26]File name is /storage/kkm_last_timestamp [11:08:26]Write 4 bytes [11:08:26]NVStorageSaveData done [11:08:26]ExternCall_PrintAddStr [11:08:26]wPrintStart [11:08:26]Write to MH i2c: 01 00 00 64 00 64 [11:08:26]Write i2c OK [11:08:26]MH_I2C_Read... [11:08:26]Read from MH i2c: 01 [11:08:26]MH_I2C_Read... [11:08:26]Read from MH i2c: 01 07 00 [11:08:26]MH_I2C_Read... [11:08:26]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [11:08:26]RasterBufferAndPrint [11:08:26]line Счет N : (1)949017 [11:08:26]line ИНН: 02508201610067 [11:08:26]line Контрольно-Кассовый Чек [11:08:26]line ПРОДАЖА [11:08:26]line ТРК (МРК, ГНК) : 54 [11:08:26]line Товар: 2710194800 [11:08:26]line ДТ-К-5 [11:08:26]line 10.500 * 76.20 [11:08:26]line = 800.10 [11:08:26]line НДС 12% НСП 1% [11:08:26]line > о реализуемом товаре [11:08:26]line ОКРУГЛЕНИЕ: -0.10 [11:08:26]line ИТОГО: 800.00 [11:08:26]line Внесено: 800.00 [11:08:26]line СДАЧА: 0.00 [11:08:26]line НСП 1% : 7.08 [11:08:26]line НДС 12% : 84.97 [11:08:26]line Наличными: 800.00 [11:08:26]line Безнал.: 0.00 [11:08:26]line Место: АЗС № 134 "Партнер Нефть" [11:08:26]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:08:26]line СНО: Общий режим [11:08:26]line Чек 87 27.07.2024 11:08 [11:08:26]line Смена: 432 ФФД: 1.0 [11:08:26]line ЗНМ: 0300000044 [11:08:26]line РНМ: 0000000000092660 [11:08:26]line Версия ККМ: 001 [11:08:26]line ФМ: 0000000000874939 [11:08:26]line ФД: 118144 [11:08:26]line ФПД: 238863184326161 [11:08:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T110825&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118144&fm=238863184326161&tin=02508201610067®Number=0000000000092660&sum=80000 [11:08:26]OFD Sender: Processing packet 118144 [packets to send 85, broken 84] [11:08:26]ProducePacketName [11:08:26]name=ofd_packets/00118144 [11:08:26]OFD Sender: To server: pG, [11:08:26]CommunicateWithHost lk.salyk.kg:30040 [11:08:26]ConnectInit lk.salyk.kg [11:08:26]written 0, free lines is 4095 [11:08:27]Connected sock=10 [11:08:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 0E 82 04 01 76 ED 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 29 D5 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 80 CD 01 00 35 04 06 00 D9 3E AB 40 6E 11 B0 BB 04 54 34 A0 71 2F [11:08:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 EA 6C 47 00 7E BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 80 CD 01 00 F4 03 04 00 BC 82 A4 66 B6 04 01 00 00 C7 AC 85 DF CA E5 93 8F [11:08:27]CommunicateWithHost err = 0 [11:08:27]CheckOFDResponse [11:08:27]1017 (14) - 77093643461234 [11:08:27]1041 (16) - 0000000000874939 [11:08:27]1040 (4) - 118144 [11:08:27]1012 (4) - 27.07.2024 05:16 [11:08:27]1206 (1) - 0 [11:08:27]OFD Sender: Remove packet 118144 [11:08:27]ProducePacketName [11:08:27]name=ofd_packets/00118144 [11:08:27]NVStorageDeleteData [11:08:27]Write to MH i2c: 01 00 00 8E 00 8E [11:08:27]Write i2c OK [11:08:27]MH_I2C_Read... [11:08:27]Read from MH i2c: 01 [11:08:27]MH_I2C_Read... [11:08:27]Read from MH i2c: 01 07 00 [11:08:27]MH_I2C_Read... [11:08:27]Read from MH i2c: 01 07 00 8E 00 00 00 00 00 00 CE 0C 6F [11:08:27]RasterBufferAndPrint [11:08:27]line [11:08:27]line [11:08:27]line [11:08:27]line [11:08:27]line [11:08:27]written 0, free lines is 3284 [11:08:27]MH_Cut [11:08:27]Write to MH i2c: D1 01 00 95 00 01 67 [11:08:27]Write i2c OK [11:08:27]MH_I2C_Read... [11:08:27]Read from MH i2c: D1 [11:08:27]MH_I2C_Read... [11:08:27]Read from MH i2c: D1 01 00 [11:08:27]MH_I2C_Read... [11:08:27]Read from MH i2c: D1 01 00 95 00 00 66 [11:08:27]Write to MH i2c: 01 00 00 96 00 96 [11:08:27]Write i2c OK [11:08:27]MH_I2C_Read... [11:08:27]OFD Sender: No OFD packet to send [11:08:28]*** Cut start [11:08:28]*** Partial cut [11:08:28]*** CUTSNS_PIN = 1 [11:08:28]*** CUTSNS_PIN = 0 [11:08:28]*** Brake cut motor [11:08:28]Read from MH i2c: 01 [11:08:28]MH_I2C_Read... [11:08:28]*** Stop cut motor [11:08:28]*** Cut end [11:08:28]Read from MH i2c: 01 07 00 [11:08:28]MH_I2C_Read... [11:08:28]Read from MH i2c: 01 07 00 96 00 00 00 00 00 00 FF 0F AB [11:08:28]process_action close_receipt done [11:08:28]requested_data is exist [11:08:28]produce_requested_data [11:08:28]requested_item fm.sn is exist - process it [11:08:28]wFMCommunicate request_size=4 [11:08:28]MH_SAM_APDU [11:08:28]CAPDU: 80 11 00 00 [11:08:28]Write to MH i2c: E2 08 00 97 00 80 11 00 00 00 00 00 00 11 [11:08:28]Write i2c OK [11:08:28]MH_I2C_Read... [11:08:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:28]Read from MH i2c: E2 [11:08:28]MH_I2C_Read... [11:08:28]Read from MH i2c: E2 17 00 [11:08:28]MH_I2C_Read... [11:08:28]Read from MH i2c: E2 17 00 97 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6C [11:08:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:08:28]wFMCommunicate OK [11:08:28]requested_item fd.num is exist - process it [11:08:28]SAM_PROTO_GetFieldsCounters [11:08:28]wFMCommunicate request_size=4 [11:08:28]MH_SAM_APDU [11:08:28]CAPDU: 80 13 00 00 [11:08:28]Write to MH i2c: E2 08 00 98 00 80 13 00 00 00 00 00 00 14 [11:08:28]Write i2c OK [11:08:28]MH_I2C_Read... [11:08:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:28]Read from MH i2c: E2 [11:08:28]MH_I2C_Read... [11:08:28]Read from MH i2c: E2 62 00 [11:08:28]MH_I2C_Read... [11:08:28]Read from MH i2c: E2 62 00 98 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 80 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [11:08:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 80 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:08:28]wFMCommunicate OK [11:08:28]SAM_PROTO_GetFieldsCounters done [11:08:28]requested_item shift.num is exist - process it [11:08:28]requested_item shift.opened is exist - process it [11:08:28]req_shift_opened [11:08:28]FM_GetShiftState [11:08:28]SAM_PROTO_GetShiftState [11:08:28]wFMCommunicate request_size=4 [11:08:28]MH_SAM_APDU [11:08:28]CAPDU: 80 13 01 00 [11:08:28]Write to MH i2c: E2 08 00 99 00 80 13 01 00 00 00 00 00 16 [11:08:28]Write i2c OK [11:08:28]MH_I2C_Read... [11:08:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:28]Read from MH i2c: E2 [11:08:28]MH_I2C_Read... [11:08:28]Read from MH i2c: E2 0E 00 [11:08:28]MH_I2C_Read... [11:08:28]Read from MH i2c: E2 0E 00 99 00 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 A3 [11:08:28]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [11:08:28]wFMCommunicate OK [11:08:28]SAM_PROTO_GetShiftState done [11:08:28]FM_GetShiftState done [11:08:28]req_shift_opened done [11:08:28]requested_item shift.open_date is exist - process it [11:08:28]req_shift_open_date [11:08:28]req_shift_open_date done [11:08:28]produce_requested_data done [11:08:28]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118144,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [11:08:28]process_action_free close_receipt [11:08:28]json_value_free [11:08:28]json_value_free done [11:08:28]process_json_proto returns [11:08:28]Send response to host [11:08:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118144,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [11:08:28]free response buf [11:08:28]execute_script done [11:08:28]execute_script returns [11:08:28]free content buf [11:08:28]Sock 7.Close socket [11:08:28]Sock 7.Thread stoped [11:08:32]OFD Sender: No OFD packet to send [11:08:37]OFD Sender: No OFD packet to send [11:08:42]OFD Sender: No OFD packet to send [11:08:47]OFD Sender: No OFD packet to send [11:08:52]OFD Sender: No OFD packet to send [11:08:57]OFD Sender: No OFD packet to send [11:09:02]OFD Sender: No OFD packet to send [11:09:07]OFD Sender: No OFD packet to send [11:09:12]OFD Sender: No OFD packet to send [11:09:17]OFD Sender: No OFD packet to send [11:09:22]OFD Sender: No OFD packet to send [11:09:27]OFD Sender: No OFD packet to send [11:09:32]OFD Sender: No OFD packet to send [11:09:37]OFD Sender: No OFD packet to send [11:09:42]OFD Sender: No OFD packet to send [11:09:47]OFD Sender: No OFD packet to send [11:09:52]OFD Sender: No OFD packet to send [11:09:57]OFD Sender: No OFD packet to send [11:10:02]OFD Sender: No OFD packet to send [11:10:07]OFD Sender: No OFD packet to send [11:10:12]OFD Sender: No OFD packet to send [11:10:17]OFD Sender: No OFD packet to send [11:10:22]OFD Sender: No OFD packet to send [11:10:27]OFD Sender: No OFD packet to send [11:10:32]OFD Sender: No OFD packet to send [11:10:37]OFD Sender: No OFD packet to send [11:10:42]accept exits with 9 [11:10:42]New connection [11:10:42]New thread 3067415908 created [11:10:42]Thread 3067272548 joined [11:10:42]Waiting for new connection... [11:10:42] Sock 9.Parse request [11:10:42]Sock 9.Check first char [11:10:42]Sock 9.First char is OK [11:10:42]request: POST /json_proto HTTP/1.0 [11:10:42]Method: POST [11:10:42]URL: /json_proto [11:10:42]Method is POST - this is cgi request [11:10:42]url: /json_proto [11:10:42]query_string will be loaded in cgi processing [11:10:42]execute_cgi json_proto POST (null) [11:10:42]execute_cgi path=json_proto method=POST [11:10:42]POST find Content-Length [11:10:42]Host: 172.17.45.7:8080 [11:10:42]Content-Length: 677 [11:10:42]Content-Type: application/json [11:10:42] [11:10:42]POST finish read [11:10:42]Found Content-Length = 677 [11:10:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:42]execute_script... [11: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)949019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:42]POST & json_proto [11:10:42]process_json_proto [11:10:42]json parsed OK: [11:10:42]protocol is kg_v1.0 [11:10:42]action value=close_receipt [11:10:42]process_action close_receipt [11:10:42]cmd_close_receipt [11:10:42]MH_GetDate [11:10:42]Write to MH i2c: F0 00 00 9A 00 89 [11:10:42]Write i2c OK [11:10:42]MH_I2C_Read... [11:10:42]Read from MH i2c: F0 [11:10:42]MH_I2C_Read... [11:10:42]Read from MH i2c: F0 09 00 [11:10:42]MH_I2C_Read... [11:10:42]Read from MH i2c: F0 09 00 9A 00 00 B3 D5 A4 66 90 0F 3E 66 67 [11:10:42]GetLastDocTimeStamp 1722078505 [11:10:42]current date 1722078643 [11:10:42]FM_GetShiftState [11:10:42]SAM_PROTO_GetShiftState [11:10:42]wFMCommunicate request_size=4 [11:10:42]MH_SAM_APDU [11:10:42]CAPDU: 80 13 01 00 [11:10:42]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [11:10:42]Write i2c OK [11:10:42]MH_I2C_Read... [11:10:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:42]Read from MH i2c: E2 [11:10:42]MH_I2C_Read... [11:10:42]Read from MH i2c: E2 0E 00 [11:10:42]MH_I2C_Read... [11:10:42]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 A5 [11:10:42]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [11:10:42]wFMCommunicate OK [11:10:42]SAM_PROTO_GetShiftState done [11:10:42]FM_GetShiftState done [11:10:42]opened in 1722038845 [11:10:42]opened+sec_in_day 1722125245 [11:10:42]quantity*price = 50036 [11:10:42]sum+1 = 50037 [11:10:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 88 27.07.2024 11:10 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118145 ФПД: 228897676893360 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T111043&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118145&fm=228897676893360&tin=02508201610067®Number=0000000000092660&sum=50000 [11:10:43]StoreToDocumentArchive [11:10:43]shift 432 fd 118145 [11:10:43]save to /storage/0432/doc_00118145 [11:10:43]save last doc name /storage/0432/doc_00118145 to /storage/kkm_last_doc_name [11:10:43]save OK [11:10:43]Clear old archive folders... [11:10:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:10:43]tlvbuf is 0038F900 [11:10:43]SAM_PROTO_ClearQueue [11:10:43]wFMCommunicate request_size=4 [11:10:43]MH_SAM_APDU [11:10:43]CAPDU: 80 09 00 00 [11:10:43]Write to MH i2c: E2 08 00 A8 00 80 09 00 00 00 00 00 00 1A [11:10:43]Write i2c OK [11:10:43]MH_I2C_Read... [11:10:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:44]Read from MH i2c: E2 [11:10:44]MH_I2C_Read... [11:10:44]Read from MH i2c: E2 03 00 [11:10:44]MH_I2C_Read... [11:10:44]Read from MH i2c: E2 03 00 A8 00 00 90 00 1C [11:10:44]RAPDU: 90 00 [11:10:44]wFMCommunicate OK [11:10:44]SAM_PROTO_ClearQueue done [11:10:44]KKMCreateOFDPacket [11:10:44]OFDProtocolAddRootSTLVToBuf [11:10:44]FM_MakeSignedData [11:10:44]FM_MakeSignedData [11:10:44]SAM_PROTO_SignData [11:10:44]wFMCommunicate request_size=4 [11:10:44]MH_SAM_APDU [11:10:44]CAPDU: 80 0D 01 02 [11:10:44]Write to MH i2c: E2 08 00 A9 00 80 0D 01 02 00 00 00 00 22 [11:10:44]Write i2c OK [11:10:44]MH_I2C_Read... [11:10:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:44]Read from MH i2c: E2 [11:10:44]MH_I2C_Read... [11:10:44]Read from MH i2c: E2 03 00 [11:10:44]MH_I2C_Read... [11:10:44]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [11:10:44]RAPDU: 90 00 [11:10:44]wFMCommunicate OK [11:10:44]wFMCommunicate request_size=255 [11:10:44]MH_SAM_APDU [11: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 58 00 00 00 F4 03 04 00 B3 D5 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 81 CD 01 00 35 04 06 00 D0 [11:10:44]Write to MH i2c: E2 02 01 AA 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 58 00 00 00 F4 03 04 00 B3 D5 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 81 CD 01 00 35 04 06 00 D0 00 00 60 [11:10:44]Write i2c OK [11:10:44]MH_I2C_Read... [11:10:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:44]Read from MH i2c: E2 [11:10:44]MH_I2C_Read... [11:10:44]Read from MH i2c: E2 03 00 [11:10:44]MH_I2C_Read... [11:10:44]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [11:10:44]RAPDU: 90 00 [11:10:44]wFMCommunicate OK [11:10:44]wFMCommunicate request_size=10 [11:10:44]MH_SAM_APDU [11:10:44]CAPDU: 80 0D 02 02 05 2E 64 B8 9C B0 [11:10:44]Write to MH i2c: E2 0D 00 AB 00 80 0D 02 02 05 00 2E 64 B8 9C B0 00 00 C5 [11:10:44]Write i2c OK [11:10:44]MH_I2C_Read... [11:10:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:44]Read from MH i2c: E2 [11:10:44]MH_I2C_Read... [11:10:44]Read from MH i2c: E2 03 00 [11:10:44]MH_I2C_Read... [11:10:44]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [11:10:44]RAPDU: 90 00 [11:10:44]wFMCommunicate OK [11:10:44]wFMCommunicate request_size=4 [11:10:44]MH_SAM_APDU [11:10:44]CAPDU: 80 0D 03 02 [11:10:44]Write to MH i2c: E2 08 00 AC 00 80 0D 03 02 00 00 00 00 27 [11:10:44]Write i2c OK [11:10:44]MH_I2C_Read... [11:10:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:44]Read from MH i2c: E2 [11:10:44]MH_I2C_Read... [11:10:44]Read from MH i2c: E2 0B 00 [11:10:44]MH_I2C_Read... [11:10:44]Read from MH i2c: E2 0B 00 AC 00 00 7E 77 7D A2 43 18 E4 77 90 00 F2 [11:10:44]RAPDU: 7E 77 7D A2 43 18 E4 77 90 00 [11:10:44]wFMCommunicate OK [11:10:44]SAM_PROTO_SignData done [11:10:44]FM_MakeSignedData done [11:10:44]CreateOFDProtocolMessage [11:10:44]wFMCommunicate request_size=4 [11:10:44]MH_SAM_APDU [11:10:44]CAPDU: 80 11 00 00 [11:10:44]Write to MH i2c: E2 08 00 AD 00 80 11 00 00 00 00 00 00 27 [11:10:44]Write i2c OK [11:10:44]MH_I2C_Read... [11:10:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:44]Read from MH i2c: E2 [11:10:44]MH_I2C_Read... [11:10:44]Read from MH i2c: E2 17 00 [11:10:44]MH_I2C_Read... [11:10:44]Read from MH i2c: E2 17 00 AD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 82 [11:10:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:10:44]wFMCommunicate OK [11:10:44]CreateOFDProtocolMessage done [11:10:44]OFDSenderStorePacket 118145 [11:10:44]StoreOFDPacket docnum=118145 [11:10:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 FB 96 07 01 A8 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 58 00 00 00 F4 03 04 00 B3 D5 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 81 CD 01 00 35 04 06 00 D0 2E 64 B8 9C B0 7E 77 7D A2 43 18 E4 77 [11:10:44]CheckFolder [11:10:44]dirname=/storage/ofd_packets [11:10:44]CheckFolder done [11:10:44]ProducePacketName [11:10:44]name=ofd_packets/00118145 [11:10:44]NVStorageSaveData ofd_packets/00118145 [11:10:44]File name is /storage/ofd_packets/00118145 [11:10:44]Write 301 bytes [11:10:44]NVStorageSaveData done [11:10:44]OFDSenderStorePacket done [11:10:44]KKMCreateOFDPacket done [11:10:44]NVStorageSaveData kkm_last_timestamp [11:10:44]File name is /storage/kkm_last_timestamp [11:10:44]Write 4 bytes [11:10:44]NVStorageSaveData done [11:10:44]ExternCall_PrintAddStr [11:10:44]wPrintStart [11:10:44]Write to MH i2c: 01 00 00 AE 00 AE [11:10:44]Write i2c OK [11:10:44]MH_I2C_Read... [11:10:44]Read from MH i2c: 01 [11:10:44]MH_I2C_Read... [11:10:44]Read from MH i2c: 01 07 00 [11:10:44]MH_I2C_Read... [11:10:44]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [11:10:44]RasterBufferAndPrint [11:10:44]line Счет N : (1)949019 [11:10:44]line ИНН: 02508201610067 [11:10:44]line Контрольно-Кассовый Чек [11:10:44]line ПРОДАЖА [11:10:44]line ТРК (МРК, ГНК) : 51 [11:10:44]line Товар: 2710124130 [11:10:44]line Аи-92-К-4 [11:10:44]line 7.380 * 67.80 [11:10:44]line = 500.36 [11:10:44]line НДС 12% НСП 1% [11:10:44]line > о реализуемом товаре [11:10:44]line ОКРУГЛЕНИЕ: -0.36 [11:10:44]line ИТОГО: 500.00 [11:10:44]line Внесено: 500.00 [11:10:44]line СДАЧА: 0.00 [11:10:44]line НСП 1% : 4.43 [11:10:44]line НДС 12% : 53.14 [11:10:44]line Наличными: 500.00 [11:10:44]line Безнал.: 0.00 [11:10:44]line Место: АЗС № 134 "Партнер Нефть" [11:10:44]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:10:44]line СНО: Общий режим [11:10:44]line Чек 88 27.07.2024 11:10 [11:10:44]line Смена: 432 ФФД: 1.0 [11:10:44]line ЗНМ: 0300000044 [11:10:44]line РНМ: 0000000000092660 [11:10:44]line Версия ККМ: 001 [11:10:44]line ФМ: 0000000000874939 [11:10:44]line ФД: 118145 [11:10:44]line ФПД: 228897676893360 [11:10:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T111043&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118145&fm=228897676893360&tin=02508201610067®Number=0000000000092660&sum=50000 [11:10:44]OFD Sender: Processing packet 118145 [packets to send 85, broken 84] [11:10:44]ProducePacketName [11:10:44]name=ofd_packets/00118145 [11:10:44]OFD Sender: To server: pG, [11:10:44]CommunicateWithHost lk.salyk.kg:30040 [11:10:44]ConnectInit lk.salyk.kg [11:10:44]written 0, free lines is 4095 [11:10:44]Connected sock=10 [11:10:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 FB 96 07 01 A8 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 58 00 00 00 F4 03 04 00 B3 D5 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 81 CD 01 00 35 04 06 00 D0 2E 64 B8 9C B0 7E 77 7D A2 43 18 E4 77 [11:10:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 5F 0D 47 00 6E BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 81 CD 01 00 F4 03 04 00 46 83 A4 66 B6 04 01 00 00 DE 59 B4 A5 6B C9 EF 83 [11:10:45]CommunicateWithHost err = 0 [11:10:45]CheckOFDResponse [11:10:45]1017 (14) - 77093643461234 [11:10:45]1041 (16) - 0000000000874939 [11:10:45]1040 (4) - 118145 [11:10:45]1012 (4) - 27.07.2024 05:19 [11:10:45]1206 (1) - 0 [11:10:45]OFD Sender: Remove packet 118145 [11:10:45]ProducePacketName [11:10:45]name=ofd_packets/00118145 [11:10:45]NVStorageDeleteData [11:10:45]Write to MH i2c: 01 00 00 D8 00 D8 [11:10:45]Write i2c OK [11:10:45]MH_I2C_Read... [11:10:45]Read from MH i2c: 01 [11:10:45]MH_I2C_Read... [11:10:45]Read from MH i2c: 01 07 00 [11:10:45]MH_I2C_Read... [11:10:45]Read from MH i2c: 01 07 00 D8 00 00 00 00 00 00 D4 0C BF [11:10:45]RasterBufferAndPrint [11:10:45]line [11:10:45]line [11:10:45]line [11:10:45]line [11:10:45]line [11:10:45]written 0, free lines is 3290 [11:10:45]MH_Cut [11:10:45]Write to MH i2c: D1 01 00 DF 00 01 B1 [11:10:45]Write i2c OK [11:10:45]MH_I2C_Read... [11:10:45]Read from MH i2c: D1 [11:10:45]MH_I2C_Read... [11:10:45]Read from MH i2c: D1 01 00 [11:10:45]MH_I2C_Read... [11:10:45]Read from MH i2c: D1 01 00 DF 00 00 B0 [11:10:45]Write to MH i2c: 01 00 00 E0 00 E0 [11:10:45]Write i2c OK [11:10:45]MH_I2C_Read... [11:10:45]OFD Sender: No OFD packet to send [11:10:46]*** Cut start [11:10:46]*** Partial cut [11:10:46]*** CUTSNS_PIN = 1 [11:10:46]*** CUTSNS_PIN = 0 [11:10:46]*** Brake cut motor [11:10:46]Read from MH i2c: 01 [11:10:46]MH_I2C_Read... [11:10:46]*** Stop cut motor [11:10:46]*** Cut end [11:10:46]Read from MH i2c: 01 07 00 [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: 01 07 00 E0 00 00 00 00 00 00 FF 0F F5 [11:10:46]process_action close_receipt done [11:10:46]requested_data is exist [11:10:46]produce_requested_data [11:10:46]requested_item fm.sn is exist - process it [11:10:46]wFMCommunicate request_size=4 [11:10:46]MH_SAM_APDU [11:10:46]CAPDU: 80 11 00 00 [11:10:46]Write to MH i2c: E2 08 00 E1 00 80 11 00 00 00 00 00 00 5B [11:10:46]Write i2c OK [11:10:46]MH_I2C_Read... [11:10:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:46]Read from MH i2c: E2 [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: E2 17 00 [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: E2 17 00 E1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B6 [11:10:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:10:46]wFMCommunicate OK [11:10:46]requested_item fd.num is exist - process it [11:10:46]SAM_PROTO_GetFieldsCounters [11:10:46]wFMCommunicate request_size=4 [11:10:46]MH_SAM_APDU [11:10:46]CAPDU: 80 13 00 00 [11:10:46]Write to MH i2c: E2 08 00 E2 00 80 13 00 00 00 00 00 00 5E [11:10:46]Write i2c OK [11:10:46]MH_I2C_Read... [11:10:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:46]Read from MH i2c: E2 [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: E2 62 00 [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: E2 62 00 E2 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 81 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [11:10:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 81 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:10:46]wFMCommunicate OK [11:10:46]SAM_PROTO_GetFieldsCounters done [11:10:46]requested_item shift.num is exist - process it [11:10:46]requested_item shift.opened is exist - process it [11:10:46]req_shift_opened [11:10:46]FM_GetShiftState [11:10:46]SAM_PROTO_GetShiftState [11:10:46]wFMCommunicate request_size=4 [11:10:46]MH_SAM_APDU [11:10:46]CAPDU: 80 13 01 00 [11:10:46]Write to MH i2c: E2 08 00 E3 00 80 13 01 00 00 00 00 00 60 [11:10:46]Write i2c OK [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: E2 [11:10:46]MH_I2C_Read... [11:10:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:46]Read from MH i2c: E2 0E 00 [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: E2 0E 00 E3 00 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 ED [11:10:46]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [11:10:46]wFMCommunicate OK [11:10:46]SAM_PROTO_GetShiftState done [11:10:46]FM_GetShiftState done [11:10:46]req_shift_opened done [11:10:46]requested_item shift.open_date is exist - process it [11:10:46]req_shift_open_date [11:10:46]req_shift_open_date done [11:10:46]produce_requested_data done [11:10:46]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118145,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [11:10:46]process_action_free close_receipt [11:10:46]json_value_free [11:10:46]json_value_free done [11:10:46]process_json_proto returns [11:10:46]Send response to host [11:10:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118145,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [11:10:46]free response buf [11:10:46]execute_script done [11:10:46]execute_script returns [11:10:46]free content buf [11:10:46]Sock 9.Close socket [11:10:46]Sock 9.Thread stoped [11:10:50]OFD Sender: No OFD packet to send [11:10:55]OFD Sender: No OFD packet to send [11:11:00]OFD Sender: No OFD packet to send [11:11:05]OFD Sender: No OFD packet to send [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:20]OFD Sender: No OFD packet to send [11:11:25]OFD Sender: No OFD packet to send [11:11:30]OFD Sender: No OFD packet to send [11:11:35]OFD Sender: No OFD packet to send [11:11:40]OFD Sender: No OFD packet to send [11:11:45]OFD Sender: No OFD packet to send [11:11:50]accept exits with 7 [11:11:50]New connection [11:11:50]New thread 3067272548 created [11:11:50]Thread 3067415908 joined [11:11:50]Waiting for new connection... [11:11:50] Sock 7.Parse request [11:11:50]Sock 7.Check first char [11:11:50]Sock 7.First char is OK [11:11:50]request: POST /json_proto HTTP/1.0 [11:11:50]Method: POST [11:11:50]URL: /json_proto [11:11:50]Method is POST - this is cgi request [11:11:50]url: /json_proto [11:11:50]query_string will be loaded in cgi processing [11:11:50]execute_cgi json_proto POST (null) [11:11:50]execute_cgi path=json_proto method=POST [11:11:50]POST find Content-Length [11:11:50]Host: 172.17.45.7:8080 [11:11:50]Content-Length: 819 [11:11:50]Content-Type: application/json [11:11:50] [11:11:50]POST finish read [11:11:50]Found Content-Length = 819 [11:11:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:50]execute_script... [11:11:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:50]POST & json_proto [11:11:50]process_json_proto [11:11:50]json parsed OK: [11:11:50]protocol is kg_v1.0 [11:11:50]action value=close_receipt [11:11:50]process_action close_receipt [11:11:50]cmd_close_receipt [11:11:50]MH_GetDate [11:11:50]Write to MH i2c: F0 00 00 E4 00 D3 [11:11:50]Write i2c OK [11:11:50]MH_I2C_Read... [11:11:50]Read from MH i2c: F0 [11:11:50]MH_I2C_Read... [11:11:50]Read from MH i2c: F0 09 00 [11:11:50]MH_I2C_Read... [11:11:50]Read from MH i2c: F0 09 00 E4 00 00 F7 D5 A4 66 90 0F 3E 66 F5 [11:11:50]GetLastDocTimeStamp 1722078643 [11:11:50]current date 1722078711 [11:11:50]FM_GetShiftState [11:11:50]SAM_PROTO_GetShiftState [11:11:50]wFMCommunicate request_size=4 [11:11:50]MH_SAM_APDU [11:11:50]CAPDU: 80 13 01 00 [11:11:50]Write to MH i2c: E2 08 00 E5 00 80 13 01 00 00 00 00 00 62 [11:11:50]Write i2c OK [11:11:50]MH_I2C_Read... [11:11:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:50]Read from MH i2c: E2 [11:11:50]MH_I2C_Read... [11:11:50]Read from MH i2c: E2 0E 00 [11:11:50]MH_I2C_Read... [11:11:50]Read from MH i2c: E2 0E 00 E5 00 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 EF [11:11:50]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [11:11:50]wFMCommunicate OK [11:11:50]SAM_PROTO_GetShiftState done [11:11:50]FM_GetShiftState done [11:11:50]opened in 1722038845 [11:11:50]opened+sec_in_day 1722125245 [11:11:50]quantity*price = 200025 [11:11:50]sum+1 = 200026 [11:11:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 89 27.07.2024 11:11 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118146 ФПД: 43492990294126 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T111151&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118146&fm=43492990294126&tin=02508201610067®Number=0000000000092660&sum=200000 [11:11:51]StoreToDocumentArchive [11:11:51]shift 432 fd 118146 [11:11:51]save to /storage/0432/doc_00118146 [11:11:51]save last doc name /storage/0432/doc_00118146 to /storage/kkm_last_doc_name [11:11:51]save OK [11:11:51]Clear old archive folders... [11:11:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:11:51]tlvbuf is 0035B7E0 [11:11:51]SAM_PROTO_ClearQueue [11:11:51]wFMCommunicate request_size=4 [11:11:51]MH_SAM_APDU [11:11:51]CAPDU: 80 09 00 00 [11:11:51]Write to MH i2c: E2 08 00 F2 00 80 09 00 00 00 00 00 00 64 [11:11:51]Write i2c OK [11:11:51]MH_I2C_Read... [11:11:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:51]Read from MH i2c: E2 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: E2 03 00 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: E2 03 00 F2 00 00 90 00 66 [11:11:51]RAPDU: 90 00 [11:11:51]wFMCommunicate OK [11:11:51]SAM_PROTO_ClearQueue done [11:11:51]KKMCreateOFDPacket [11:11:51]OFDProtocolAddRootSTLVToBuf [11:11:51]FM_MakeSignedData [11:11:51]FM_MakeSignedData [11:11:51]SAM_PROTO_SignData [11:11:51]wFMCommunicate request_size=4 [11:11:51]MH_SAM_APDU [11:11:51]CAPDU: 80 0D 01 02 [11:11:51]Write to MH i2c: E2 08 00 F3 00 80 0D 01 02 00 00 00 00 6C [11:11:51]Write i2c OK [11:11:51]MH_I2C_Read... [11:11:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:51]Read from MH i2c: E2 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: E2 03 00 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: E2 03 00 F3 00 00 90 00 67 [11:11:51]RAPDU: 90 00 [11:11:51]wFMCommunicate OK [11:11:51]wFMCommunicate request_size=255 [11:11:51]MH_SAM_APDU [11:11:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 F7 D5 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 82 CD 01 00 35 04 06 00 27 8E 80 3C [11:11:51]Write to MH i2c: E2 02 01 F4 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 F7 D5 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 82 CD 01 00 35 04 06 00 27 8E 80 3C 00 00 8B [11:11:51]Write i2c OK [11:11:51]MH_I2C_Read... [11:11:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:52]Read from MH i2c: E2 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: E2 03 00 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: E2 03 00 F4 00 00 90 00 68 [11:11:52]RAPDU: 90 00 [11:11:52]wFMCommunicate OK [11:11:52]wFMCommunicate request_size=7 [11:11:52]MH_SAM_APDU [11:11:52]CAPDU: 80 0D 02 02 02 98 6E [11:11:52]Write to MH i2c: E2 0A 00 F5 00 80 0D 02 02 02 00 98 6E 00 00 79 [11:11:52]Write i2c OK [11:11:52]MH_I2C_Read... [11:11:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:52]Read from MH i2c: E2 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: E2 03 00 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [11:11:52]RAPDU: 90 00 [11:11:52]wFMCommunicate OK [11:11:52]wFMCommunicate request_size=4 [11:11:52]MH_SAM_APDU [11:11:52]CAPDU: 80 0D 03 02 [11:11:52]Write to MH i2c: E2 08 00 F6 00 80 0D 03 02 00 00 00 00 71 [11:11:52]Write i2c OK [11:11:52]MH_I2C_Read... [11:11:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:52]Read from MH i2c: E2 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: E2 0B 00 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: E2 0B 00 F6 00 00 89 58 DD 19 0B CC 07 4C 90 00 73 [11:11:52]RAPDU: 89 58 DD 19 0B CC 07 4C 90 00 [11:11:52]wFMCommunicate OK [11:11:52]SAM_PROTO_SignData done [11:11:52]FM_MakeSignedData done [11:11:52]CreateOFDProtocolMessage [11:11:52]wFMCommunicate request_size=4 [11:11:52]MH_SAM_APDU [11:11:52]CAPDU: 80 11 00 00 [11:11:52]Write to MH i2c: E2 08 00 F7 00 80 11 00 00 00 00 00 00 71 [11:11:52]Write i2c OK [11:11:52]MH_I2C_Read... [11:11:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:52]Read from MH i2c: E2 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: E2 17 00 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: E2 17 00 F7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CC [11:11:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:11:52]wFMCommunicate OK [11:11:52]CreateOFDProtocolMessage done [11:11:52]OFDSenderStorePacket 118146 [11:11:52]StoreOFDPacket docnum=118146 [11:11:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 16 CA 04 01 53 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 F7 D5 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 82 CD 01 00 35 04 06 00 27 8E 80 3C 98 6E 89 58 DD 19 0B CC 07 4C [11:11:52]CheckFolder [11:11:52]dirname=/storage/ofd_packets [11:11:52]CheckFolder done [11:11:52]ProducePacketName [11:11:52]name=ofd_packets/00118146 [11:11:52]NVStorageSaveData ofd_packets/00118146 [11:11:52]File name is /storage/ofd_packets/00118146 [11:11:52]Write 298 bytes [11:11:52]NVStorageSaveData done [11:11:52]OFDSenderStorePacket done [11:11:52]KKMCreateOFDPacket done [11:11:52]NVStorageSaveData kkm_last_timestamp [11:11:52]File name is /storage/kkm_last_timestamp [11:11:52]Write 4 bytes [11:11:52]NVStorageSaveData done [11:11:52]ExternCall_PrintAddStr [11:11:52]wPrintStart [11:11:52]Write to MH i2c: 01 00 00 F8 00 F8 [11:11:52]Write i2c OK [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: 01 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: 01 07 00 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 FF 0F 0D [11:11:52]RasterBufferAndPrint [11:11:52]line Счет N : (1)949018 [11:11:52]line ИНН: 02508201610067 [11:11:52]line Контрольно-Кассовый Чек [11:11:52]line ПРОДАЖА [11:11:52]line ТРК (МРК, ГНК) : 44 [11:11:52]line Товар: 2710194800 [11:11:52]line ДТ-К-5 [11:11:52]line 26.250 * 76.20 [11:11:52]line = 2000.25 [11:11:52]line НДС 12% НСП 1% [11:11:52]line > о реализуемом товаре [11:11:52]line ОКРУГЛЕНИЕ: -0.25 [11:11:52]line ИТОГО: 2000.00 [11:11:52]line НСП 1% : 17.70 [11:11:52]line НДС 12% : 212.42 [11:11:52]line Наличными: 0.00 [11:11:52]line Безнал.: 2000.00 [11:11:52]line Место: АЗС № 134 "Партнер Нефть" [11:11:52]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:11:52]line СНО: Общий режим [11:11:52]line Чек 89 27.07.2024 11:11 [11:11:52]line Смена: 432 ФФД: 1.0 [11:11:52]line ЗНМ: 0300000044 [11:11:52]line РНМ: 0000000000092660 [11:11:52]line Версия ККМ: 001 [11:11:52]line Платежная система: O! деньги [11:11:52]line ФМ: 0000000000874939 [11:11:52]line ФД: 118146 [11:11:52]line ФПД: 43492990294126 [11:11:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T111151&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118146&fm=43492990294126&tin=02508201610067®Number=0000000000092660&sum=200000 [11:11:52]OFD Sender: Processing packet 118146 [packets to send 85, broken 84] [11:11:52]ProducePacketName [11:11:52]name=ofd_packets/00118146 [11:11:52]OFD Sender: To server: pG, [11:11:52]CommunicateWithHost lk.salyk.kg:30040 [11:11:52]ConnectInit lk.salyk.kg [11:11:52]written 0, free lines is 4095 [11:11:52]Connected sock=10 [11:11:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 16 CA 04 01 53 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 F7 D5 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 82 CD 01 00 35 04 06 00 27 8E 80 3C 98 6E 89 58 DD 19 0B CC 07 4C [11:11:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 69 83 47 00 C7 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 82 CD 01 00 F4 03 04 00 8A 83 A4 66 B6 04 01 00 00 5B A4 68 90 A0 A7 CD 95 [11:11:52]CommunicateWithHost err = 0 [11:11:52]CheckOFDResponse [11:11:52]1017 (14) - 77093643461234 [11:11:52]1041 (16) - 0000000000874939 [11:11:52]1040 (4) - 118146 [11:11:52]1012 (4) - 27.07.2024 05:20 [11:11:52]1206 (1) - 0 [11:11:52]OFD Sender: Remove packet 118146 [11:11:52]ProducePacketName [11:11:52]name=ofd_packets/00118146 [11:11:52]NVStorageDeleteData [11:11:52]Write to MH i2c: 01 00 00 22 01 23 [11:11:52]Write i2c OK [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: 01 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: 01 07 00 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: 01 07 00 22 01 00 00 00 00 00 D8 0C 0E [11:11:52]RasterBufferAndPrint [11:11:52]line [11:11:52]line [11:11:52]line [11:11:52]line [11:11:52]line [11:11:52]written 0, free lines is 3292 [11:11:52]MH_Cut [11:11:52]Write to MH i2c: D1 01 00 29 01 01 FC [11:11:52]Write i2c OK [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: D1 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: D1 01 00 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: D1 01 00 29 01 00 FB [11:11:52]Write to MH i2c: 01 00 00 2A 01 2B [11:11:52]Write i2c OK [11:11:52]MH_I2C_Read... [11:11:53]OFD Sender: No OFD packet to send [11:11:53]*** Cut start [11:11:53]*** Partial cut [11:11:53]*** CUTSNS_PIN = 1 [11:11:53]*** CUTSNS_PIN = 0 [11:11:53]*** Brake cut motor [11:11:54]Read from MH i2c: 01 [11:11:54]MH_I2C_Read... [11:11:54]*** Stop cut motor [11:11:54]*** Cut end [11:11:54]Read from MH i2c: 01 07 00 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: 01 07 00 2A 01 00 00 00 00 00 FF 0F 40 [11:11:54]process_action close_receipt done [11:11:54]requested_data is exist [11:11:54]produce_requested_data [11:11:54]requested_item fm.sn is exist - process it [11:11:54]wFMCommunicate request_size=4 [11:11:54]MH_SAM_APDU [11:11:54]CAPDU: 80 11 00 00 [11:11:54]Write to MH i2c: E2 08 00 2B 01 80 11 00 00 00 00 00 00 A6 [11:11:54]Write i2c OK [11:11:54]MH_I2C_Read... [11:11:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:54]Read from MH i2c: E2 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 17 00 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 17 00 2B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 01 [11:11:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:11:54]wFMCommunicate OK [11:11:54]requested_item fd.num is exist - process it [11:11:54]SAM_PROTO_GetFieldsCounters [11:11:54]wFMCommunicate request_size=4 [11:11:54]MH_SAM_APDU [11:11:54]CAPDU: 80 13 00 00 [11:11:54]Write to MH i2c: E2 08 00 2C 01 80 13 00 00 00 00 00 00 A9 [11:11:54]Write i2c OK [11:11:54]MH_I2C_Read... [11:11:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:54]Read from MH i2c: E2 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 62 00 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 62 00 2C 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 82 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [11:11:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 82 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:11:54]wFMCommunicate OK [11:11:54]SAM_PROTO_GetFieldsCounters done [11:11:54]requested_item shift.num is exist - process it [11:11:54]requested_item shift.opened is exist - process it [11:11:54]req_shift_opened [11:11:54]FM_GetShiftState [11:11:54]SAM_PROTO_GetShiftState [11:11:54]wFMCommunicate request_size=4 [11:11:54]MH_SAM_APDU [11:11:54]CAPDU: 80 13 01 00 [11:11:54]Write to MH i2c: E2 08 00 2D 01 80 13 01 00 00 00 00 00 AB [11:11:54]Write i2c OK [11:11:54]MH_I2C_Read... [11:11:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:54]Read from MH i2c: E2 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 0E 00 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 0E 00 2D 01 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 38 [11:11:54]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [11:11:54]wFMCommunicate OK [11:11:54]SAM_PROTO_GetShiftState done [11:11:54]FM_GetShiftState done [11:11:54]req_shift_opened done [11:11:54]requested_item shift.open_date is exist - process it [11:11:54]req_shift_open_date [11:11:54]req_shift_open_date done [11:11:54]produce_requested_data done [11:11:54]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118146,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [11:11:54]process_action_free close_receipt [11:11:54]json_value_free [11:11:54]json_value_free done [11:11:54]process_json_proto returns [11:11:54]Send response to host [11:11:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118146,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [11:11:54]free response buf [11:11:54]execute_script done [11:11:54]execute_script returns [11:11:54]free content buf [11:11:54]Sock 7.Close socket [11:11:54]Sock 7.Thread stoped [11:11:58]OFD Sender: No OFD packet to send [11:12:03]OFD Sender: No OFD packet to send [11:12:08]OFD Sender: No OFD packet to send [11:12:13]OFD Sender: No OFD packet to send [11:12:18]OFD Sender: No OFD packet to send [11:12:23]OFD Sender: No OFD packet to send [11:12:28]OFD Sender: No OFD packet to send [11:12:33]OFD Sender: No OFD packet to send [11:12:38]OFD Sender: No OFD packet to send [11:12:43]OFD Sender: No OFD packet to send [11:12:48]OFD Sender: No OFD packet to send [11:12:53]OFD Sender: No OFD packet to send [11:12:58]OFD Sender: No OFD packet to send [11:13:03]OFD Sender: No OFD packet to send [11:13:08]OFD Sender: No OFD packet to send [11:13:13]OFD Sender: No OFD packet to send [11:13:18]OFD Sender: No OFD packet to send [11:13:23]OFD Sender: No OFD packet to send [11:13:28]OFD Sender: No OFD packet to send [11:13:33]OFD Sender: No OFD packet to send [11:13:38]OFD Sender: No OFD packet to send [11:13:43]OFD Sender: No OFD packet to send [11:13:48]OFD Sender: No OFD packet to send [11:13:53]OFD Sender: No OFD packet to send [11:13:58]OFD Sender: No OFD packet to send [11:14:03]OFD Sender: No OFD packet to send [11:14:08]OFD Sender: No OFD packet to send [11:14:13]OFD Sender: No OFD packet to send [11:14:18]OFD Sender: No OFD packet to send [11:14:23]OFD Sender: No OFD packet to send [11:14:28]OFD Sender: No OFD packet to send [11:14:33]OFD Sender: No OFD packet to send [11:14:38]OFD Sender: No OFD packet to send [11:14:43]OFD Sender: No OFD packet to send [11:14:48]OFD Sender: No OFD packet to send [11:14:53]OFD Sender: No OFD packet to send [11:14:58]OFD Sender: No OFD packet to send [11:15:03]OFD Sender: No OFD packet to send [11:15:08]OFD Sender: No OFD packet to send [11:15:13]OFD Sender: No OFD packet to send [11:15:18]OFD Sender: No OFD packet to send [11:15:23]OFD Sender: No OFD packet to send [11:15:28]OFD Sender: No OFD packet to send [11:15:33]OFD Sender: No OFD packet to send [11:15:38]OFD Sender: No OFD packet to send [11:15:43]OFD Sender: No OFD packet to send [11:15:48]OFD Sender: No OFD packet to send [11:15:53]OFD Sender: No OFD packet to send [11:15:58]OFD Sender: No OFD packet to send [11:16:03]OFD Sender: No OFD packet to send [11:16:08]OFD Sender: No OFD packet to send [11:16:13]OFD Sender: No OFD packet to send [11:16:18]OFD Sender: No OFD packet to send [11:16:23]OFD Sender: No OFD packet to send [11:16:28]OFD Sender: No OFD packet to send [11:16:33]OFD Sender: No OFD packet to send [11:16:38]OFD Sender: No OFD packet to send [11:16:43]OFD Sender: No OFD packet to send [11:16:48]OFD Sender: No OFD packet to send [11:16:53]OFD Sender: No OFD packet to send [11:16:58]OFD Sender: No OFD packet to send [11:17:03]OFD Sender: No OFD packet to send [11:17:08]OFD Sender: No OFD packet to send [11:17:13]OFD Sender: No OFD packet to send [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:38]OFD Sender: No OFD packet to send [11:17:43]OFD Sender: No OFD packet to send [11:17:48]OFD Sender: No OFD packet to send [11:17:53]OFD Sender: No OFD packet to send [11:17:58]OFD Sender: No OFD packet to send [11:18:03]OFD Sender: No OFD packet to send [11:18:08]OFD Sender: No OFD packet to send [11:18:13]OFD Sender: No OFD packet to send [11:18:18]OFD Sender: No OFD packet to send [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:08]OFD Sender: No OFD packet to send [11:19:13]OFD Sender: No OFD packet to send [11:19:18]OFD Sender: No OFD packet to send [11:19:23]OFD Sender: No OFD packet to send [11:19:28]OFD Sender: No OFD packet to send [11:19:33]OFD Sender: No OFD packet to send [11:19:38]OFD Sender: No OFD packet to send [11:19:43]OFD Sender: No OFD packet to send [11:19:48]OFD Sender: No OFD packet to send [11:19:53]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20:33]OFD Sender: No OFD packet to send [11:20:38]OFD Sender: No OFD packet to send [11:20:43]OFD Sender: No OFD packet to send [11:20:48]OFD Sender: No OFD packet to send [11:20:53]OFD Sender: No OFD packet to send [11:20:58]OFD Sender: No OFD packet to send [11:21:03]OFD Sender: No OFD packet to send [11:21:08]OFD Sender: No OFD packet to send [11:21:13]OFD Sender: No OFD packet to send [11:21:18]OFD Sender: No OFD packet to send [11:21:23]OFD Sender: No OFD packet to send [11:21:28]OFD Sender: No OFD packet to send [11:21:33]OFD Sender: No OFD packet to send [11:21:38]OFD Sender: No OFD packet to send [11:21:43]OFD Sender: No OFD packet to send [11:21:48]OFD Sender: No OFD packet to send [11:21:53]OFD Sender: No OFD packet to send [11:21:58]OFD Sender: No OFD packet to send [11:22:03]OFD Sender: No OFD packet to send [11:22:08]OFD Sender: No OFD packet to send [11:22:13]OFD Sender: No OFD packet to send [11:22:18]OFD Sender: No OFD packet to send [11:22:23]OFD Sender: No OFD packet to send [11:22:28]OFD Sender: No OFD packet to send [11:22:33]OFD Sender: No OFD packet to send [11:22:38]OFD Sender: No OFD packet to send [11:22:43]OFD Sender: No OFD packet to send [11:22:48]OFD Sender: No OFD packet to send [11:22:53]OFD Sender: No OFD packet to send [11:22:59]OFD Sender: No OFD packet to send [11:23:04]OFD Sender: No OFD packet to send [11:23:09]OFD Sender: No OFD packet to send [11:23:14]OFD Sender: No OFD packet to send [11:23:19]OFD Sender: No OFD packet to send [11:23:24]OFD Sender: No OFD packet to send [11:23:29]OFD Sender: No OFD packet to send [11:23:34]OFD Sender: No OFD packet to send [11:23:39]OFD Sender: No OFD packet to send [11:23:44]OFD Sender: No OFD packet to send [11:23:49]OFD Sender: No OFD packet to send [11:23:54]OFD Sender: No OFD packet to send [11:23:59]OFD Sender: No OFD packet to send [11:24:04]OFD Sender: No OFD packet to send [11:24:09]OFD Sender: No OFD packet to send [11:24:14]OFD Sender: No OFD packet to send [11:24:19]OFD Sender: No OFD packet to send [11:24:24]OFD Sender: No OFD packet to send [11:24:29]OFD Sender: No OFD packet to send [11:24:34]OFD Sender: No OFD packet to send [11:24:39]OFD Sender: No OFD packet to send [11:24:44]OFD Sender: No OFD packet to send [11:24:49]OFD Sender: No OFD packet to send [11:24:54]OFD Sender: No OFD packet to send [11:24:59]OFD Sender: No OFD packet to send [11:25:04]OFD Sender: No OFD packet to send [11:25:09]OFD Sender: No OFD packet to send [11:25:14]OFD Sender: No OFD packet to send [11:25:19]OFD Sender: No OFD packet to send [11:25:24]OFD Sender: No OFD packet to send [11:25:29]OFD Sender: No OFD packet to send [11:25:34]OFD Sender: No OFD packet to send [11:25:39]OFD Sender: No OFD packet to send [11:25:44]OFD Sender: No OFD packet to send [11:25:49]OFD Sender: No OFD packet to send [11:25:54]OFD Sender: No OFD packet to send [11:25:59]OFD Sender: No OFD packet to send [11:26:04]OFD Sender: No OFD packet to send [11:26:09]OFD Sender: No OFD packet to send [11:26:14]OFD Sender: No OFD packet to send [11:26:19]OFD Sender: No OFD packet to send [11:26:24]OFD Sender: No OFD packet to send [11:26:29]OFD Sender: No OFD packet to send [11:26:34]OFD Sender: No OFD packet to send [11:26:39]OFD Sender: No OFD packet to send [11:26:44]OFD Sender: No OFD packet to send [11:26:49]OFD Sender: No OFD packet to send [11:26:54]OFD Sender: No OFD packet to send [11:26:59]OFD Sender: No OFD packet to send [11:27:04]OFD Sender: No OFD packet to send [11:27:09]OFD Sender: No OFD packet to send [11:27:14]OFD Sender: No OFD packet to send [11:27:19]OFD Sender: No OFD packet to send [11:27:24]OFD Sender: No OFD packet to send [11:27:29]OFD Sender: No OFD packet to send [11:27:34]OFD Sender: No OFD packet to send [11:27:39]OFD Sender: No OFD packet to send [11:27:44]OFD Sender: No OFD packet to send [11:27:49]OFD Sender: No OFD packet to send [11:27:54]OFD Sender: No OFD packet to send [11:27:59]OFD Sender: No OFD packet to send [11:28:04]OFD Sender: No OFD packet to send [11:28:09]OFD Sender: No OFD packet to send [11:28:14]OFD Sender: No OFD packet to send [11:28:19]OFD Sender: No OFD packet to send [11:28:24]OFD Sender: No OFD packet to send [11:28:29]OFD Sender: No OFD packet to send [11:28:34]OFD Sender: No OFD packet to send [11:28:39]OFD Sender: No OFD packet to send [11:28:44]OFD Sender: No OFD packet to send [11:28:49]OFD Sender: No OFD packet to send [11:28:54]OFD Sender: No OFD packet to send [11:28:59]OFD Sender: No OFD packet to send [11:29:04]OFD Sender: No OFD packet to send [11:29:09]OFD Sender: No OFD packet to send [11:29:14]OFD Sender: No OFD packet to send [11:29:19]OFD Sender: No OFD packet to send [11:29:24]OFD Sender: No OFD packet to send [11:29:29]OFD Sender: No OFD packet to send [11:29:34]OFD Sender: No OFD packet to send [11:29:39]OFD Sender: No OFD packet to send [11:29:44]OFD Sender: No OFD packet to send [11:29:49]OFD Sender: No OFD packet to send [11:29:54]OFD Sender: No OFD packet to send [11:29:59]OFD Sender: No OFD packet to send [11:30:04]OFD Sender: No OFD packet to send [11:30:09]OFD Sender: No OFD packet to send [11:30:14]OFD Sender: No OFD packet to send [11:30:19]OFD Sender: No OFD packet to send [11:30:24]OFD Sender: No OFD packet to send [11:30:29]OFD Sender: No OFD packet to send [11:30:34]OFD Sender: No OFD packet to send [11:30:39]OFD Sender: No OFD packet to send [11:30:44]OFD Sender: No OFD packet to send [11:30:49]OFD Sender: No OFD packet to send [11:30:54]OFD Sender: No OFD packet to send [11:30:59]OFD Sender: No OFD packet to send [11:31:04]OFD Sender: No OFD packet to send [11:31:09]OFD Sender: No OFD packet to send [11:31:14]OFD Sender: No OFD packet to send [11:31:19]OFD Sender: No OFD packet to send [11:31:24]OFD Sender: No OFD packet to send [11:31:29]OFD Sender: No OFD packet to send [11:31:34]OFD Sender: No OFD packet to send [11:31:39]OFD Sender: No OFD packet to send [11:31:44]OFD Sender: No OFD packet to send [11:31:49]OFD Sender: No OFD packet to send [11:31:54]OFD Sender: No OFD packet to send [11:31:59]OFD Sender: No OFD packet to send [11:32:04]OFD Sender: No OFD packet to send [11:32:09]OFD Sender: No OFD packet to send [11:32:14]OFD Sender: No OFD packet to send [11:32:19]OFD Sender: No OFD packet to send [11:32:24]OFD Sender: No OFD packet to send [11:32:29]OFD Sender: No OFD packet to send [11:32:34]OFD Sender: No OFD packet to send [11:32:39]OFD Sender: No OFD packet to send [11:32:44]OFD Sender: No OFD packet to send [11:32:49]OFD Sender: No OFD packet to send [11:32:54]OFD Sender: No OFD packet to send [11:32:59]OFD Sender: No OFD packet to send [11:33:04]OFD Sender: No OFD packet to send [11:33:09]OFD Sender: No OFD packet to send [11:33:14]OFD Sender: No OFD packet to send [11:33:19]OFD Sender: No OFD packet to send [11:33:24]OFD Sender: No OFD packet to send [11:33:29]OFD Sender: No OFD packet to send [11:33:34]OFD Sender: No OFD packet to send [11:33:39]OFD Sender: No OFD packet to send [11:33:44]OFD Sender: No OFD packet to send [11:33:49]OFD Sender: No OFD packet to send [11:33:54]OFD Sender: No OFD packet to send [11:33:59]OFD Sender: No OFD packet to send [11:34:04]OFD Sender: No OFD packet to send [11:34:09]OFD Sender: No OFD packet to send [11:34:14]OFD Sender: No OFD packet to send [11:34:19]OFD Sender: No OFD packet to send [11:34:24]OFD Sender: No OFD packet to send [11:34:29]OFD Sender: No OFD packet to send [11:34:34]OFD Sender: No OFD packet to send [11:34:39]OFD Sender: No OFD packet to send [11:34:44]OFD Sender: No OFD packet to send [11:34:49]OFD Sender: No OFD packet to send [11:34:54]OFD Sender: No OFD packet to send [11:34:59]OFD Sender: No OFD packet to send [11:35:04]OFD Sender: No OFD packet to send [11:35:09]OFD Sender: No OFD packet to send [11:35:14]OFD Sender: No OFD packet to send [11:35:19]OFD Sender: No OFD packet to send [11:35:24]OFD Sender: No OFD packet to send [11:35:26]accept exits with 9 [11:35:26]New connection [11:35:26]New thread 3067415908 created [11:35:26]Thread 3067272548 joined [11:35:26]Waiting for new connection... [11:35:26] Sock 9.Parse request [11:35:26]Sock 9.Check first char [11:35:26]Sock 9.First char is OK [11:35:26]request: POST /json_proto HTTP/1.0 [11:35:26]Method: POST [11:35:26]URL: /json_proto [11:35:26]Method is POST - this is cgi request [11:35:26]url: /json_proto [11:35:26]query_string will be loaded in cgi processing [11:35:26]execute_cgi json_proto POST (null) [11:35:26]execute_cgi path=json_proto method=POST [11:35:26]POST find Content-Length [11:35:26]Host: 172.17.45.7:8080 [11:35:26]Content-Length: 679 [11:35:26]Content-Type: application/json [11:35:26] [11:35:26]POST finish read [11:35:26]Found Content-Length = 679 [11:35:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:26]execute_script... [11:35:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:26]POST & json_proto [11:35:26]process_json_proto [11:35:26]json parsed OK: [11:35:26]protocol is kg_v1.0 [11:35:26]action value=close_receipt [11:35:26]process_action close_receipt [11:35:26]cmd_close_receipt [11:35:26]MH_GetDate [11:35:26]Write to MH i2c: F0 00 00 2E 01 1E [11:35:26]Write i2c OK [11:35:26]MH_I2C_Read... [11:35:26]Read from MH i2c: F0 [11:35:26]MH_I2C_Read... [11:35:26]Read from MH i2c: F0 09 00 [11:35:26]MH_I2C_Read... [11:35:26]Read from MH i2c: F0 09 00 2E 01 00 7F DB A4 66 90 0F 3E 66 CE [11:35:26]GetLastDocTimeStamp 1722078711 [11:35:26]current date 1722080127 [11:35:26]FM_GetShiftState [11:35:26]SAM_PROTO_GetShiftState [11:35:26]wFMCommunicate request_size=4 [11:35:26]MH_SAM_APDU [11:35:26]CAPDU: 80 13 01 00 [11:35:26]Write to MH i2c: E2 08 00 2F 01 80 13 01 00 00 00 00 00 AD [11:35:26]Write i2c OK [11:35:26]MH_I2C_Read... [11:35:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:26]Read from MH i2c: E2 [11:35:26]MH_I2C_Read... [11:35:26]Read from MH i2c: E2 0E 00 [11:35:26]MH_I2C_Read... [11:35:26]Read from MH i2c: E2 0E 00 2F 01 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 3A [11:35:26]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [11:35:26]wFMCommunicate OK [11:35:26]SAM_PROTO_GetShiftState done [11:35:26]FM_GetShiftState done [11:35:26]opened in 1722038845 [11:35:26]opened+sec_in_day 1722125245 [11:35:26]quantity*price = 100050 [11:35:26]sum+1 = 100052 [11:35:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 90 27.07.2024 11:35 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118147 ФПД: 54132351591391 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T113527&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118147&fm=54132351591391&tin=02508201610067®Number=0000000000092660&sum=100000 [11:35:27]StoreToDocumentArchive [11:35:27]shift 432 fd 118147 [11:35:27]save to /storage/0432/doc_00118147 [11:35:27]save last doc name /storage/0432/doc_00118147 to /storage/kkm_last_doc_name [11:35:27]save OK [11:35:27]Clear old archive folders... [11:35:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:35:27]tlvbuf is 00375FE0 [11:35:27]SAM_PROTO_ClearQueue [11:35:27]wFMCommunicate request_size=4 [11:35:27]MH_SAM_APDU [11:35:27]CAPDU: 80 09 00 00 [11:35:27]Write to MH i2c: E2 08 00 3C 01 80 09 00 00 00 00 00 00 AF [11:35:27]Write i2c OK [11:35:27]MH_I2C_Read... [11:35:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:27]Read from MH i2c: E2 [11:35:27]MH_I2C_Read... [11:35:27]Read from MH i2c: E2 03 00 [11:35:27]MH_I2C_Read... [11:35:27]Read from MH i2c: E2 03 00 3C 01 00 90 00 B1 [11:35:27]RAPDU: 90 00 [11:35:27]wFMCommunicate OK [11:35:27]SAM_PROTO_ClearQueue done [11:35:27]KKMCreateOFDPacket [11:35:27]OFDProtocolAddRootSTLVToBuf [11:35:27]FM_MakeSignedData [11:35:27]FM_MakeSignedData [11:35:27]SAM_PROTO_SignData [11:35:27]wFMCommunicate request_size=4 [11:35:27]MH_SAM_APDU [11:35:27]CAPDU: 80 0D 01 02 [11:35:27]Write to MH i2c: E2 08 00 3D 01 80 0D 01 02 00 00 00 00 B7 [11:35:27]Write i2c OK [11:35:27]MH_I2C_Read... [11:35:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:27]Read from MH i2c: E2 [11:35:27]MH_I2C_Read... [11:35:27]Read from MH i2c: E2 03 00 [11:35:27]MH_I2C_Read... [11:35:27]Read from MH i2c: E2 03 00 3D 01 00 90 00 B2 [11:35:27]RAPDU: 90 00 [11:35:27]wFMCommunicate OK [11:35:27]wFMCommunicate request_size=255 [11:35:27]MH_SAM_APDU [11:35:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 7F DB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 83 CD 01 00 35 04 06 00 31 3B AB 96 [11:35:27]Write to MH i2c: E2 02 01 3E 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 7F DB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 83 CD 01 00 35 04 06 00 31 3B AB 96 00 00 B4 [11:35:27]Write i2c OK [11:35:27]MH_I2C_Read... [11:35:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:28]Read from MH i2c: E2 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 03 00 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 03 00 3E 01 00 90 00 B3 [11:35:28]RAPDU: 90 00 [11:35:28]wFMCommunicate OK [11:35:28]wFMCommunicate request_size=7 [11:35:28]MH_SAM_APDU [11:35:28]CAPDU: 80 0D 02 02 02 63 DF [11:35:28]Write to MH i2c: E2 0A 00 3F 01 80 0D 02 02 02 00 63 DF 00 00 00 [11:35:28]Write i2c OK [11:35:28]MH_I2C_Read... [11:35:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:28]Read from MH i2c: E2 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 03 00 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [11:35:28]RAPDU: 90 00 [11:35:28]wFMCommunicate OK [11:35:28]wFMCommunicate request_size=4 [11:35:28]MH_SAM_APDU [11:35:28]CAPDU: 80 0D 03 02 [11:35:28]Write to MH i2c: E2 08 00 40 01 80 0D 03 02 00 00 00 00 BC [11:35:28]Write i2c OK [11:35:28]MH_I2C_Read... [11:35:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:28]Read from MH i2c: E2 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 0B 00 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 0B 00 40 01 00 FA 7F 80 72 C9 19 CE C2 90 00 9A [11:35:28]RAPDU: FA 7F 80 72 C9 19 CE C2 90 00 [11:35:28]wFMCommunicate OK [11:35:28]SAM_PROTO_SignData done [11:35:28]FM_MakeSignedData done [11:35:28]CreateOFDProtocolMessage [11:35:28]wFMCommunicate request_size=4 [11:35:28]MH_SAM_APDU [11:35:28]CAPDU: 80 11 00 00 [11:35:28]Write to MH i2c: E2 08 00 41 01 80 11 00 00 00 00 00 00 BC [11:35:28]Write i2c OK [11:35:28]MH_I2C_Read... [11:35:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:28]Read from MH i2c: E2 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 17 00 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 17 00 41 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 17 [11:35:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:35:28]wFMCommunicate OK [11:35:28]CreateOFDProtocolMessage done [11:35:28]OFDSenderStorePacket 118147 [11:35:28]StoreOFDPacket docnum=118147 [11:35:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 04 14 04 01 88 69 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 7F DB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 83 CD 01 00 35 04 06 00 31 3B AB 96 63 DF FA 7F 80 72 C9 19 CE C2 [11:35:28]CheckFolder [11:35:28]dirname=/storage/ofd_packets [11:35:28]CheckFolder done [11:35:28]ProducePacketName [11:35:28]name=ofd_packets/00118147 [11:35:28]NVStorageSaveData ofd_packets/00118147 [11:35:28]File name is /storage/ofd_packets/00118147 [11:35:28]Write 298 bytes [11:35:28]NVStorageSaveData done [11:35:28]OFDSenderStorePacket done [11:35:28]KKMCreateOFDPacket done [11:35:28]NVStorageSaveData kkm_last_timestamp [11:35:28]File name is /storage/kkm_last_timestamp [11:35:28]Write 4 bytes [11:35:28]NVStorageSaveData done [11:35:28]ExternCall_PrintAddStr [11:35:28]wPrintStart [11:35:28]Write to MH i2c: 01 00 00 42 01 43 [11:35:28]Write i2c OK [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: 01 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: 01 07 00 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 FF 0F 58 [11:35:28]RasterBufferAndPrint [11:35:28]line Счет N : (1)949020 [11:35:28]line ИНН: 02508201610067 [11:35:28]line Контрольно-Кассовый Чек [11:35:28]line ПРОДАЖА [11:35:28]line ТРК (МРК, ГНК) : 21 [11:35:28]line Товар: 2710194800 [11:35:28]line ДТ-К-5 [11:35:28]line 13.130 * 76.20 [11:35:28]line = 1000.51 [11:35:28]line НДС 12% НСП 1% [11:35:28]line > о реализуемом товаре [11:35:28]line ОКРУГЛЕНИЕ: -0.51 [11:35:28]line ИТОГО: 1000.00 [11:35:28]line Внесено: 1000.00 [11:35:28]line СДАЧА: 0.00 [11:35:28]line НСП 1% : 8.85 [11:35:28]line НДС 12% : 106.25 [11:35:28]line Наличными: 1000.00 [11:35:28]line Безнал.: 0.00 [11:35:28]line Место: АЗС № 134 "Партнер Нефть" [11:35:28]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:35:28]line СНО: Общий режим [11:35:28]line Чек 90 27.07.2024 11:35 [11:35:28]line Смена: 432 ФФД: 1.0 [11:35:28]line ЗНМ: 0300000044 [11:35:28]line РНМ: 0000000000092660 [11:35:28]line Версия ККМ: 001 [11:35:28]line ФМ: 0000000000874939 [11:35:28]line ФД: 118147 [11:35:28]line ФПД: 54132351591391 [11:35:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T113527&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118147&fm=54132351591391&tin=02508201610067®Number=0000000000092660&sum=100000 [11:35:28]OFD Sender: Processing packet 118147 [packets to send 85, broken 84] [11:35:28]ProducePacketName [11:35:28]name=ofd_packets/00118147 [11:35:28]OFD Sender: To server: pG, [11:35:28]CommunicateWithHost lk.salyk.kg:30040 [11:35:28]ConnectInit lk.salyk.kg [11:35:28]written 0, free lines is 4095 [11:35:28]Connected sock=10 [11:35:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 04 14 04 01 88 69 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 7F DB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 83 CD 01 00 35 04 06 00 31 3B AB 96 63 DF FA 7F 80 72 C9 19 CE C2 [11:35:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 6B 3F 47 00 11 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 83 CD 01 00 F4 03 04 00 12 89 A4 66 B6 04 01 00 00 CF 2C 9A 04 AA 29 B0 46 [11:35:28]CommunicateWithHost err = 0 [11:35:28]CheckOFDResponse [11:35:28]1017 (14) - 77093643461234 [11:35:28]1041 (16) - 0000000000874939 [11:35:28]1040 (4) - 118147 [11:35:28]1012 (4) - 27.07.2024 05:43 [11:35:28]1206 (1) - 0 [11:35:28]OFD Sender: Remove packet 118147 [11:35:28]ProducePacketName [11:35:28]name=ofd_packets/00118147 [11:35:28]NVStorageDeleteData [11:35:28]Write to MH i2c: 01 00 00 6C 01 6D [11:35:28]Write i2c OK [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: 01 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: 01 07 00 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: 01 07 00 6C 01 00 00 00 00 00 D9 0C 59 [11:35:28]RasterBufferAndPrint [11:35:28]line [11:35:28]line [11:35:28]line [11:35:28]line [11:35:28]line [11:35:28]written 0, free lines is 3296 [11:35:28]MH_Cut [11:35:28]Write to MH i2c: D1 01 00 73 01 01 46 [11:35:28]Write i2c OK [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: D1 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: D1 01 00 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: D1 01 00 73 01 00 45 [11:35:28]Write to MH i2c: 01 00 00 74 01 75 [11:35:28]Write i2c OK [11:35:28]MH_I2C_Read... [11:35:29]OFD Sender: No OFD packet to send [11:35:29]*** Cut start [11:35:29]*** Partial cut [11:35:29]*** CUTSNS_PIN = 1 [11:35:29]*** CUTSNS_PIN = 0 [11:35:29]*** Brake cut motor [11:35:30]Read from MH i2c: 01 [11:35:30]MH_I2C_Read... [11:35:30]*** Stop cut motor [11:35:30]*** Cut end [11:35:30]Read from MH i2c: 01 07 00 [11:35:30]MH_I2C_Read... [11:35:30]Read from MH i2c: 01 07 00 74 01 00 00 00 00 00 FF 0F 8A [11:35:30]process_action close_receipt done [11:35:30]requested_data is exist [11:35:30]produce_requested_data [11:35:30]requested_item fm.sn is exist - process it [11:35:30]wFMCommunicate request_size=4 [11:35:30]MH_SAM_APDU [11:35:30]CAPDU: 80 11 00 00 [11:35:30]Write to MH i2c: E2 08 00 75 01 80 11 00 00 00 00 00 00 F0 [11:35:30]Write i2c OK [11:35:30]MH_I2C_Read... [11:35:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:30]Read from MH i2c: E2 [11:35:30]MH_I2C_Read... [11:35:30]Read from MH i2c: E2 17 00 [11:35:30]MH_I2C_Read... [11:35:30]Read from MH i2c: E2 17 00 75 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4B [11:35:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:35:30]wFMCommunicate OK [11:35:30]requested_item fd.num is exist - process it [11:35:30]SAM_PROTO_GetFieldsCounters [11:35:30]wFMCommunicate request_size=4 [11:35:30]MH_SAM_APDU [11:35:30]CAPDU: 80 13 00 00 [11:35:30]Write to MH i2c: E2 08 00 76 01 80 13 00 00 00 00 00 00 F3 [11:35:30]Write i2c OK [11:35:30]MH_I2C_Read... [11:35:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:30]Read from MH i2c: E2 [11:35:30]MH_I2C_Read... [11:35:30]Read from MH i2c: E2 62 00 [11:35:30]MH_I2C_Read... [11:35:30]Read from MH i2c: E2 62 00 76 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 83 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [11:35:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 83 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:30]wFMCommunicate OK [11:35:30]SAM_PROTO_GetFieldsCounters done [11:35:30]requested_item shift.num is exist - process it [11:35:30]requested_item shift.opened is exist - process it [11:35:30]req_shift_opened [11:35:30]FM_GetShiftState [11:35:30]SAM_PROTO_GetShiftState [11:35:30]wFMCommunicate request_size=4 [11:35:30]MH_SAM_APDU [11:35:30]CAPDU: 80 13 01 00 [11:35:30]Write to MH i2c: E2 08 00 77 01 80 13 01 00 00 00 00 00 F5 [11:35:30]Write i2c OK [11:35:30]MH_I2C_Read... [11:35:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:30]Read from MH i2c: E2 [11:35:30]MH_I2C_Read... [11:35:30]Read from MH i2c: E2 0E 00 [11:35:30]MH_I2C_Read... [11:35:30]Read from MH i2c: E2 0E 00 77 01 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 82 [11:35:30]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [11:35:30]wFMCommunicate OK [11:35:30]SAM_PROTO_GetShiftState done [11:35:30]FM_GetShiftState done [11:35:30]req_shift_opened done [11:35:30]requested_item shift.open_date is exist - process it [11:35:30]req_shift_open_date [11:35:30]req_shift_open_date done [11:35:30]produce_requested_data done [11:35:30]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118147,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [11:35:30]process_action_free close_receipt [11:35:30]json_value_free [11:35:30]json_value_free done [11:35:30]process_json_proto returns [11:35:30]Send response to host [11:35:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118147,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [11:35:30]free response buf [11:35:30]execute_script done [11:35:30]execute_script returns [11:35:30]free content buf [11:35:30]Sock 9.Close socket [11:35:30]Sock 9.Thread stoped [11:35:34]OFD Sender: No OFD packet to send [11:35:39]OFD Sender: No OFD packet to send [11:35:44]OFD Sender: No OFD packet to send [11:35:49]OFD Sender: No OFD packet to send [11:35:54]OFD Sender: No OFD packet to send [11:35:59]OFD Sender: No OFD packet to send [11:36:04]OFD Sender: No OFD packet to send [11:36:09]OFD Sender: No OFD packet to send [11:36:14]OFD Sender: No OFD packet to send [11:36:19]OFD Sender: No OFD packet to send [11:36:24]OFD Sender: No OFD packet to send [11:36:29]OFD Sender: No OFD packet to send [11:36:34]OFD Sender: No OFD packet to send [11:36:39]OFD Sender: No OFD packet to send [11:36:44]OFD Sender: No OFD packet to send [11:36:49]OFD Sender: No OFD packet to send [11:36:54]OFD Sender: No OFD packet to send [11:36:59]OFD Sender: No OFD packet to send [11:37:04]OFD Sender: No OFD packet to send [11:37:09]OFD Sender: No OFD packet to send [11:37:14]OFD Sender: No OFD packet to send [11:37:19]OFD Sender: No OFD packet to send [11:37:24]OFD Sender: No OFD packet to send [11:37:29]OFD Sender: No OFD packet to send [11:37:34]accept exits with 7 [11:37:34]New connection [11:37:34]New thread 3067272548 created [11:37:34]Thread 3067415908 joined [11:37:34]Waiting for new connection... [11:37:34] Sock 7.Parse request [11:37:34]Sock 7.Check first char [11:37:34]Sock 7.First char is OK [11:37:34]request: POST /json_proto HTTP/1.0 [11:37:34]Method: POST [11:37:34]URL: /json_proto [11:37:34]Method is POST - this is cgi request [11:37:34]url: /json_proto [11:37:34]query_string will be loaded in cgi processing [11:37:34]execute_cgi json_proto POST (null) [11:37:34]execute_cgi path=json_proto method=POST [11:37:34]POST find Content-Length [11:37:34]Host: 172.17.45.7:8080 [11:37:34]Content-Length: 678 [11:37:34]Content-Type: application/json [11:37:34] [11:37:34]POST finish read [11:37:34]Found Content-Length = 678 [11:37:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:34]execute_script... [11:37: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)949021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:34]POST & json_proto [11:37:34]process_json_proto [11:37:34]json parsed OK: [11:37:34]protocol is kg_v1.0 [11:37:34]action value=close_receipt [11:37:34]process_action close_receipt [11:37:34]cmd_close_receipt [11:37:34]MH_GetDate [11:37:34]Write to MH i2c: F0 00 00 78 01 68 [11:37:34]Write i2c OK [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: F0 [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: F0 09 00 [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: F0 09 00 78 01 00 FF DB A4 66 90 0F 3E 66 98 [11:37:34]GetLastDocTimeStamp 1722080127 [11:37:34]current date 1722080255 [11:37:34]FM_GetShiftState [11:37:34]SAM_PROTO_GetShiftState [11:37:34]wFMCommunicate request_size=4 [11:37:34]MH_SAM_APDU [11:37:34]CAPDU: 80 13 01 00 [11:37:34]Write to MH i2c: E2 08 00 79 01 80 13 01 00 00 00 00 00 F7 [11:37:34]Write i2c OK [11:37:34]MH_I2C_Read... [11:37:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:34]Read from MH i2c: E2 [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: E2 0E 00 [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: E2 0E 00 79 01 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 84 [11:37:34]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [11:37:34]wFMCommunicate OK [11:37:34]SAM_PROTO_GetShiftState done [11:37:34]FM_GetShiftState done [11:37:34]opened in 1722038845 [11:37:34]opened+sec_in_day 1722125245 [11:37:34]quantity*price = 70037 [11:37:34]sum+1 = 70038 [11:37:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 91 27.07.2024 11:37 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118148 ФПД: 228234857666802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T113735&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118148&fm=228234857666802&tin=02508201610067®Number=0000000000092660&sum=70000 [11:37:35]StoreToDocumentArchive [11:37:35]shift 432 fd 118148 [11:37:35]save to /storage/0432/doc_00118148 [11:37:35]save last doc name /storage/0432/doc_00118148 to /storage/kkm_last_doc_name [11:37:35]save OK [11:37:35]Clear old archive folders... [11:37:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:37:35]tlvbuf is 00372D00 [11:37:35]SAM_PROTO_ClearQueue [11:37:35]wFMCommunicate request_size=4 [11:37:35]MH_SAM_APDU [11:37:35]CAPDU: 80 09 00 00 [11:37:35]Write to MH i2c: E2 08 00 86 01 80 09 00 00 00 00 00 00 F9 [11:37:35]Write i2c OK [11:37:35]MH_I2C_Read... [11:37:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:35]Read from MH i2c: E2 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: E2 03 00 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: E2 03 00 86 01 00 90 00 FB [11:37:35]RAPDU: 90 00 [11:37:35]wFMCommunicate OK [11:37:35]SAM_PROTO_ClearQueue done [11:37:35]KKMCreateOFDPacket [11:37:35]OFDProtocolAddRootSTLVToBuf [11:37:35]FM_MakeSignedData [11:37:35]FM_MakeSignedData [11:37:35]SAM_PROTO_SignData [11:37:35]wFMCommunicate request_size=4 [11:37:35]MH_SAM_APDU [11:37:35]CAPDU: 80 0D 01 02 [11:37:35]Write to MH i2c: E2 08 00 87 01 80 0D 01 02 00 00 00 00 01 [11:37:35]Write i2c OK [11:37:35]MH_I2C_Read... [11:37:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:35]Read from MH i2c: E2 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: E2 03 00 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: E2 03 00 87 01 00 90 00 FC [11:37:35]RAPDU: 90 00 [11:37:35]wFMCommunicate OK [11:37:35]wFMCommunicate request_size=255 [11:37:35]MH_SAM_APDU [11:37: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 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 5B 00 00 00 F4 03 04 00 FF DB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 84 CD 01 00 35 04 06 00 CF [11:37:35]Write to MH i2c: E2 02 01 88 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 5B 00 00 00 F4 03 04 00 FF DB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 84 CD 01 00 35 04 06 00 CF 00 00 7D [11:37:35]Write i2c OK [11:37:35]MH_I2C_Read... [11:37:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:35]Read from MH i2c: E2 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: E2 03 00 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: E2 03 00 88 01 00 90 00 FD [11:37:35]RAPDU: 90 00 [11:37:35]wFMCommunicate OK [11:37:35]wFMCommunicate request_size=10 [11:37:35]MH_SAM_APDU [11:37:35]CAPDU: 80 0D 02 02 05 94 11 9D D8 F2 [11:37:35]Write to MH i2c: E2 0D 00 89 01 80 0D 02 02 05 00 94 11 9D D8 F2 00 00 1A [11:37:35]Write i2c OK [11:37:35]MH_I2C_Read... [11:37:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:35]Read from MH i2c: E2 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: E2 03 00 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: E2 03 00 89 01 00 90 00 FE [11:37:35]RAPDU: 90 00 [11:37:35]wFMCommunicate OK [11:37:35]wFMCommunicate request_size=4 [11:37:35]MH_SAM_APDU [11:37:35]CAPDU: 80 0D 03 02 [11:37:35]Write to MH i2c: E2 08 00 8A 01 80 0D 03 02 00 00 00 00 06 [11:37:35]Write i2c OK [11:37:35]MH_I2C_Read... [11:37:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:35]Read from MH i2c: E2 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: E2 0B 00 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: E2 0B 00 8A 01 00 2C 3B 29 C8 C9 80 E6 2E 90 00 BC [11:37:35]RAPDU: 2C 3B 29 C8 C9 80 E6 2E 90 00 [11:37:35]wFMCommunicate OK [11:37:35]SAM_PROTO_SignData done [11:37:35]FM_MakeSignedData done [11:37:35]CreateOFDProtocolMessage [11:37:35]wFMCommunicate request_size=4 [11:37:35]MH_SAM_APDU [11:37:35]CAPDU: 80 11 00 00 [11:37:35]Write to MH i2c: E2 08 00 8B 01 80 11 00 00 00 00 00 00 06 [11:37:35]Write i2c OK [11:37:35]MH_I2C_Read... [11:37:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:35]Read from MH i2c: E2 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: E2 17 00 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: E2 17 00 8B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 61 [11:37:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:37:35]wFMCommunicate OK [11:37:35]CreateOFDProtocolMessage done [11:37:35]OFDSenderStorePacket 118148 [11:37:35]StoreOFDPacket docnum=118148 [11:37:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 54 8E 07 01 F9 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 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 5B 00 00 00 F4 03 04 00 FF DB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 84 CD 01 00 35 04 06 00 CF 94 11 9D D8 F2 2C 3B 29 C8 C9 80 E6 2E [11:37:35]CheckFolder [11:37:35]dirname=/storage/ofd_packets [11:37:35]CheckFolder done [11:37:35]ProducePacketName [11:37:35]name=ofd_packets/00118148 [11:37:35]NVStorageSaveData ofd_packets/00118148 [11:37:35]File name is /storage/ofd_packets/00118148 [11:37:35]Write 301 bytes [11:37:35]NVStorageSaveData done [11:37:35]OFDSenderStorePacket done [11:37:35]KKMCreateOFDPacket done [11:37:35]NVStorageSaveData kkm_last_timestamp [11:37:35]File name is /storage/kkm_last_timestamp [11:37:35]Write 4 bytes [11:37:35]NVStorageSaveData done [11:37:35]ExternCall_PrintAddStr [11:37:35]wPrintStart [11:37:35]Write to MH i2c: 01 00 00 8C 01 8D [11:37:35]Write i2c OK [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: 01 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: 01 07 00 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: 01 07 00 8C 01 00 00 00 00 00 FF 0F A2 [11:37:35]RasterBufferAndPrint [11:37:35]line Счет N : (1)949021 [11:37:35]line ИНН: 02508201610067 [11:37:35]line Контрольно-Кассовый Чек [11:37:35]line ПРОДАЖА [11:37:35]line ТРК (МРК, ГНК) : 31 [11:37:35]line Товар: 2710124130 [11:37:35]line Аи-92-К-4 [11:37:35]line 10.330 * 67.80 [11:37:35]line = 700.37 [11:37:35]line НДС 12% НСП 1% [11:37:35]line > о реализуемом товаре [11:37:35]line ОКРУГЛЕНИЕ: -0.37 [11:37:35]line ИТОГО: 700.00 [11:37:35]line Внесено: 700.00 [11:37:35]line СДАЧА: 0.00 [11:37:35]line НСП 1% : 6.20 [11:37:35]line НДС 12% : 74.38 [11:37:35]line Наличными: 700.00 [11:37:35]line Безнал.: 0.00 [11:37:35]line Место: АЗС № 134 "Партнер Нефть" [11:37:35]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:37:35]line СНО: Общий режим [11:37:35]line Чек 91 27.07.2024 11:37 [11:37:35]line Смена: 432 ФФД: 1.0 [11:37:35]line ЗНМ: 0300000044 [11:37:35]line РНМ: 0000000000092660 [11:37:35]line Версия ККМ: 001 [11:37:35]line ФМ: 0000000000874939 [11:37:35]line ФД: 118148 [11:37:35]line ФПД: 228234857666802 [11:37:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T113735&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118148&fm=228234857666802&tin=02508201610067®Number=0000000000092660&sum=70000 [11:37:36]OFD Sender: Processing packet 118148 [packets to send 85, broken 84] [11:37:36]ProducePacketName [11:37:36]name=ofd_packets/00118148 [11:37:36]OFD Sender: To server: pG, [11:37:36]CommunicateWithHost lk.salyk.kg:30040 [11:37:36]ConnectInit lk.salyk.kg [11:37:36]written 0, free lines is 4095 [11:37:36]Connected sock=10 [11:37:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 54 8E 07 01 F9 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 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 5B 00 00 00 F4 03 04 00 FF DB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 84 CD 01 00 35 04 06 00 CF 94 11 9D D8 F2 2C 3B 29 C8 C9 80 E6 2E [11:37:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 FD 09 47 00 45 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 34 39 33 39 10 04 04 00 84 CD 01 00 F4 03 04 00 92 89 A4 66 B6 04 01 00 00 3D D5 60 10 F6 EE 00 2F [11:37:36]CommunicateWithHost err = 0 [11:37:36]CheckOFDResponse [11:37:36]1017 (14) - 77093643461234 [11:37:36]1041 (16) - 0000000000874939 [11:37:36]1040 (4) - 118148 [11:37:36]1012 (4) - 27.07.2024 05:45 [11:37:36]1206 (1) - 0 [11:37:36]OFD Sender: Remove packet 118148 [11:37:36]ProducePacketName [11:37:36]name=ofd_packets/00118148 [11:37:36]NVStorageDeleteData [11:37:36]Write to MH i2c: 01 00 00 B6 01 B7 [11:37:36]Write i2c OK [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: 01 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: 01 07 00 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: 01 07 00 B6 01 00 00 00 00 00 CF 0C 99 [11:37:36]RasterBufferAndPrint [11:37:36]line [11:37:36]line [11:37:36]line [11:37:36]line [11:37:36]line [11:37:36]written 0, free lines is 3283 [11:37:36]MH_Cut [11:37:36]Write to MH i2c: D1 01 00 BD 01 01 90 [11:37:36]Write i2c OK [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: D1 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: D1 01 00 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: D1 01 00 BD 01 00 8F [11:37:36]Write to MH i2c: 01 00 00 BE 01 BF [11:37:36]Write i2c OK [11:37:36]MH_I2C_Read... [11:37:37]OFD Sender: No OFD packet to send [11:37:37]*** Cut start [11:37:37]*** Partial cut [11:37:37]*** CUTSNS_PIN = 1 [11:37:37]*** CUTSNS_PIN = 0 [11:37:37]*** Brake cut motor [11:37:38]Read from MH i2c: 01 [11:37:38]MH_I2C_Read... [11:37:38]*** Stop cut motor [11:37:38]*** Cut end [11:37:38]Read from MH i2c: 01 07 00 [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: 01 07 00 BE 01 00 00 00 00 00 FF 0F D4 [11:37:38]process_action close_receipt done [11:37:38]requested_data is exist [11:37:38]produce_requested_data [11:37:38]requested_item fm.sn is exist - process it [11:37:38]wFMCommunicate request_size=4 [11:37:38]MH_SAM_APDU [11:37:38]CAPDU: 80 11 00 00 [11:37:38]Write to MH i2c: E2 08 00 BF 01 80 11 00 00 00 00 00 00 3A [11:37:38]Write i2c OK [11:37:38]MH_I2C_Read... [11:37:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:38]Read from MH i2c: E2 [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: E2 17 00 [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: E2 17 00 BF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 95 [11:37:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:37:38]wFMCommunicate OK [11:37:38]requested_item fd.num is exist - process it [11:37:38]SAM_PROTO_GetFieldsCounters [11:37:38]wFMCommunicate request_size=4 [11:37:38]MH_SAM_APDU [11:37:38]CAPDU: 80 13 00 00 [11:37:38]Write to MH i2c: E2 08 00 C0 01 80 13 00 00 00 00 00 00 3D [11:37:38]Write i2c OK [11:37:38]MH_I2C_Read... [11:37:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:38]Read from MH i2c: E2 [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: E2 62 00 [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: E2 62 00 C0 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 84 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [11:37:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 84 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:37:38]wFMCommunicate OK [11:37:38]SAM_PROTO_GetFieldsCounters done [11:37:38]requested_item shift.num is exist - process it [11:37:38]requested_item shift.opened is exist - process it [11:37:38]req_shift_opened [11:37:38]FM_GetShiftState [11:37:38]SAM_PROTO_GetShiftState [11:37:38]wFMCommunicate request_size=4 [11:37:38]MH_SAM_APDU [11:37:38]CAPDU: 80 13 01 00 [11:37:38]Write to MH i2c: E2 08 00 C1 01 80 13 01 00 00 00 00 00 3F [11:37:38]Write i2c OK [11:37:38]MH_I2C_Read... [11:37:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:38]Read from MH i2c: E2 [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: E2 0E 00 [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: E2 0E 00 C1 01 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 CC [11:37:38]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [11:37:38]wFMCommunicate OK [11:37:38]SAM_PROTO_GetShiftState done [11:37:38]FM_GetShiftState done [11:37:38]req_shift_opened done [11:37:38]requested_item shift.open_date is exist - process it [11:37:38]req_shift_open_date [11:37:38]req_shift_open_date done [11:37:38]produce_requested_data done [11:37:38]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118148,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [11:37:38]process_action_free close_receipt [11:37:38]json_value_free [11:37:38]json_value_free done [11:37:38]process_json_proto returns [11:37:38]Send response to host [11:37:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118148,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [11:37:38]free response buf [11:37:38]execute_script done [11:37:38]execute_script returns [11:37:38]free content buf [11:37:38]Sock 7.Close socket [11:37:38]Sock 7.Thread stoped [11:37:42]OFD Sender: No OFD packet to send [11:37:47]OFD Sender: No OFD packet to send [11:37:52]OFD Sender: No OFD packet to send [11:37:57]OFD Sender: No OFD packet to send [11:38:02]OFD Sender: No OFD packet to send [11:38:07]OFD Sender: No OFD packet to send [11:38:12]OFD Sender: No OFD packet to send [11:38:17]OFD Sender: No OFD packet to send [11:38:22]OFD Sender: No OFD packet to send [11:38:27]OFD Sender: No OFD packet to send [11:38:32]OFD Sender: No OFD packet to send [11:38:37]OFD Sender: No OFD packet to send [11:38:42]OFD Sender: No OFD packet to send [11:38:47]OFD Sender: No OFD packet to send [11:38:52]OFD Sender: No OFD packet to send [11:38:57]OFD Sender: No OFD packet to send [11:39:02]OFD Sender: No OFD packet to send [11:39:07]OFD Sender: No OFD packet to send [11:39:12]OFD Sender: No OFD packet to send [11:39:17]OFD Sender: No OFD packet to send [11:39:22]OFD Sender: No OFD packet to send [11:39:27]OFD Sender: No OFD packet to send [11:39:32]OFD Sender: No OFD packet to send [11:39:37]OFD Sender: No OFD packet to send [11:39:42]OFD Sender: No OFD packet to send [11:39:47]OFD Sender: No OFD packet to send [11:39:52]OFD Sender: No OFD packet to send [11:39:57]OFD Sender: No OFD packet to send [11:40:02]OFD Sender: No OFD packet to send [11:40:07]OFD Sender: No OFD packet to send [11:40:12]OFD Sender: No OFD packet to send [11:40:17]OFD Sender: No OFD packet to send [11:40:22]OFD Sender: No OFD packet to send [11:40:27]OFD Sender: No OFD packet to send [11:40:32]OFD Sender: No OFD packet to send [11:40:37]OFD Sender: No OFD packet to send [11:40:42]OFD Sender: No OFD packet to send [11:40:47]OFD Sender: No OFD packet to send [11:40:52]OFD Sender: No OFD packet to send [11:40:57]OFD Sender: No OFD packet to send [11:41:02]OFD Sender: No OFD packet to send [11:41:07]OFD Sender: No OFD packet to send [11:41:12]OFD Sender: No OFD packet to send [11:41:17]OFD Sender: No OFD packet to send [11:41:22]OFD Sender: No OFD packet to send [11:41:27]OFD Sender: No OFD packet to send [11:41:32]OFD Sender: No OFD packet to send [11:41:37]OFD Sender: No OFD packet to send [11:41:42]OFD Sender: No OFD packet to send [11:41:47]OFD Sender: No OFD packet to send [11:41:52]OFD Sender: No OFD packet to send [11:41:57]OFD Sender: No OFD packet to send [11:42:02]OFD Sender: No OFD packet to send [11:42:07]OFD Sender: No OFD packet to send [11:42:12]OFD Sender: No OFD packet to send [11:42:17]OFD Sender: No OFD packet to send [11:42:22]OFD Sender: No OFD packet to send [11:42:27]OFD Sender: No OFD packet to send [11:42:32]OFD Sender: No OFD packet to send [11:42:37]OFD Sender: No OFD packet to send [11:42:42]OFD Sender: No OFD packet to send [11:42:47]OFD Sender: No OFD packet to send [11:42:52]OFD Sender: No OFD packet to send [11:42:57]OFD Sender: No OFD packet to send [11:43:02]OFD Sender: No OFD packet to send [11:43:07]OFD Sender: No OFD packet to send [11:43:12]OFD Sender: No OFD packet to send [11:43:17]OFD Sender: No OFD packet to send [11:43:22]OFD Sender: No OFD packet to send [11:43:27]OFD Sender: No OFD packet to send [11:43:32]OFD Sender: No OFD packet to send [11:43:37]OFD Sender: No OFD packet to send [11:43:42]OFD Sender: No OFD packet to send [11:43:47]OFD Sender: No OFD packet to send [11:43:52]OFD Sender: No OFD packet to send [11:43:57]OFD Sender: No OFD packet to send [11:44:02]OFD Sender: No OFD packet to send [11:44:07]OFD Sender: No OFD packet to send [11:44:12]OFD Sender: No OFD packet to send [11:44:17]OFD Sender: No OFD packet to send [11:44:22]OFD Sender: No OFD packet to send [11:44:27]OFD Sender: No OFD packet to send [11:44:32]OFD Sender: No OFD packet to send [11:44:37]OFD Sender: No OFD packet to send [11:44:42]OFD Sender: No OFD packet to send [11:44:46]accept exits with 9 [11:44:46]New connection [11:44:46]New thread 3067415908 created [11:44:46]Thread 3067272548 joined [11:44:46]Waiting for new connection... [11:44:46] Sock 9.Parse request [11:44:46]Sock 9.Check first char [11:44:46]Sock 9.First char is OK [11:44:46]request: POST /json_proto HTTP/1.0 [11:44:46]Method: POST [11:44:46]URL: /json_proto [11:44:46]Method is POST - this is cgi request [11:44:46]url: /json_proto [11:44:46]query_string will be loaded in cgi processing [11:44:46]execute_cgi json_proto POST (null) [11:44:46]execute_cgi path=json_proto method=POST [11:44:46]POST find Content-Length [11:44:46]Host: 172.17.45.7:8080 [11:44:46]Content-Length: 679 [11:44:46]Content-Type: application/json [11:44:46] [11:44:46]POST finish read [11:44:46]Found Content-Length = 679 [11:44:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:46]execute_script... [11:44: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)949022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:46]POST & json_proto [11:44:46]process_json_proto [11:44:46]json parsed OK: [11:44:46]protocol is kg_v1.0 [11:44:46]action value=close_receipt [11:44:46]process_action close_receipt [11:44:46]cmd_close_receipt [11:44:46]MH_GetDate [11:44:46]Write to MH i2c: F0 00 00 C2 01 B2 [11:44:46]Write i2c OK [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: F0 [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: F0 09 00 [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: F0 09 00 C2 01 00 AF DD A4 66 90 0F 3E 66 94 [11:44:46]GetLastDocTimeStamp 1722080255 [11:44:46]current date 1722080687 [11:44:46]FM_GetShiftState [11:44:46]SAM_PROTO_GetShiftState [11:44:46]wFMCommunicate request_size=4 [11:44:46]MH_SAM_APDU [11:44:46]CAPDU: 80 13 01 00 [11:44:46]Write to MH i2c: E2 08 00 C3 01 80 13 01 00 00 00 00 00 41 [11:44:46]Write i2c OK [11:44:46]MH_I2C_Read... [11:44:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:46]Read from MH i2c: E2 [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: E2 0E 00 [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: E2 0E 00 C3 01 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 CE [11:44:46]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [11:44:46]wFMCommunicate OK [11:44:46]SAM_PROTO_GetShiftState done [11:44:46]FM_GetShiftState done [11:44:46]opened in 1722038845 [11:44:46]opened+sec_in_day 1722125245 [11:44:46]quantity*price = 100050 [11:44:46]sum+1 = 100052 [11:44:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 92 27.07.2024 11:44 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118149 ФПД: 52200072199117 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T114447&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118149&fm=52200072199117&tin=02508201610067®Number=0000000000092660&sum=100000 [11:44:47]StoreToDocumentArchive [11:44:47]shift 432 fd 118149 [11:44:47]save to /storage/0432/doc_00118149 [11:44:47]save last doc name /storage/0432/doc_00118149 to /storage/kkm_last_doc_name [11:44:47]save OK [11:44:47]Clear old archive folders... [11:44:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:44:47]tlvbuf is 00360A40 [11:44:47]SAM_PROTO_ClearQueue [11:44:47]wFMCommunicate request_size=4 [11:44:47]MH_SAM_APDU [11:44:47]CAPDU: 80 09 00 00 [11:44:47]Write to MH i2c: E2 08 00 D0 01 80 09 00 00 00 00 00 00 43 [11:44:47]Write i2c OK [11:44:47]MH_I2C_Read... [11:44:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:47]Read from MH i2c: E2 [11:44:47]MH_I2C_Read... [11:44:47]Read from MH i2c: E2 03 00 [11:44:47]MH_I2C_Read... [11:44:47]Read from MH i2c: E2 03 00 D0 01 00 90 00 45 [11:44:47]RAPDU: 90 00 [11:44:47]wFMCommunicate OK [11:44:47]SAM_PROTO_ClearQueue done [11:44:47]KKMCreateOFDPacket [11:44:47]OFDProtocolAddRootSTLVToBuf [11:44:47]FM_MakeSignedData [11:44:47]FM_MakeSignedData [11:44:47]SAM_PROTO_SignData [11:44:47]wFMCommunicate request_size=4 [11:44:47]MH_SAM_APDU [11:44:47]CAPDU: 80 0D 01 02 [11:44:47]Write to MH i2c: E2 08 00 D1 01 80 0D 01 02 00 00 00 00 4B [11:44:47]Write i2c OK [11:44:47]MH_I2C_Read... [11:44:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:47]Read from MH i2c: E2 [11:44:47]MH_I2C_Read... [11:44:47]Read from MH i2c: E2 03 00 [11:44:47]MH_I2C_Read... [11:44:47]Read from MH i2c: E2 03 00 D1 01 00 90 00 46 [11:44:47]RAPDU: 90 00 [11:44:47]wFMCommunicate OK [11:44:47]wFMCommunicate request_size=255 [11:44:47]MH_SAM_APDU [11:44: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 AF DD A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 85 CD 01 00 35 04 06 00 2F 79 C6 C2 [11:44:47]Write to MH i2c: E2 02 01 D2 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 AF DD A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 85 CD 01 00 35 04 06 00 2F 79 C6 C2 00 00 01 [11:44:47]Write i2c OK [11:44:47]MH_I2C_Read... [11:44:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:48]Read from MH i2c: E2 [11:44:48]MH_I2C_Read... [11:44:48]Read from MH i2c: E2 03 00 [11:44:48]MH_I2C_Read... [11:44:48]Read from MH i2c: E2 03 00 D2 01 00 90 00 47 [11:44:48]RAPDU: 90 00 [11:44:48]wFMCommunicate OK [11:44:48]wFMCommunicate request_size=7 [11:44:48]MH_SAM_APDU [11:44:48]CAPDU: 80 0D 02 02 02 BB CD [11:44:48]Write to MH i2c: E2 0A 00 D3 01 80 0D 02 02 02 00 BB CD 00 00 DA [11:44:48]Write i2c OK [11:44:48]MH_I2C_Read... [11:44:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:48]Read from MH i2c: E2 [11:44:48]MH_I2C_Read... [11:44:48]Read from MH i2c: E2 03 00 [11:44:48]MH_I2C_Read... [11:44:48]Read from MH i2c: E2 03 00 D3 01 00 90 00 48 [11:44:48]RAPDU: 90 00 [11:44:48]wFMCommunicate OK [11:44:48]wFMCommunicate request_size=4 [11:44:48]MH_SAM_APDU [11:44:48]CAPDU: 80 0D 03 02 [11:44:48]Write to MH i2c: E2 08 00 D4 01 80 0D 03 02 00 00 00 00 50 [11:44:48]Write i2c OK [11:44:48]MH_I2C_Read... [11:44:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:48]Read from MH i2c: E2 [11:44:48]MH_I2C_Read... [11:44:48]Read from MH i2c: E2 0B 00 [11:44:48]MH_I2C_Read... [11:44:48]Read from MH i2c: E2 0B 00 D4 01 00 0B 35 14 41 A8 66 42 58 90 00 8E [11:44:48]RAPDU: 0B 35 14 41 A8 66 42 58 90 00 [11:44:48]wFMCommunicate OK [11:44:48]SAM_PROTO_SignData done [11:44:48]FM_MakeSignedData done [11:44:48]CreateOFDProtocolMessage [11:44:48]wFMCommunicate request_size=4 [11:44:48]MH_SAM_APDU [11:44:48]CAPDU: 80 11 00 00 [11:44:48]Write to MH i2c: E2 08 00 D5 01 80 11 00 00 00 00 00 00 50 [11:44:48]Write i2c OK [11:44:48]MH_I2C_Read... [11:44:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:48]Read from MH i2c: E2 [11:44:48]MH_I2C_Read... [11:44:48]Read from MH i2c: E2 17 00 [11:44:48]MH_I2C_Read... [11:44:48]Read from MH i2c: E2 17 00 D5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AB [11:44:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:44:48]wFMCommunicate OK [11:44:48]CreateOFDProtocolMessage done [11:44:48]OFDSenderStorePacket 118149 [11:44:48]StoreOFDPacket docnum=118149 [11:44:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B8 A4 04 01 B1 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 AF DD A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 85 CD 01 00 35 04 06 00 2F 79 C6 C2 BB CD 0B 35 14 41 A8 66 42 58 [11:44:48]CheckFolder [11:44:48]dirname=/storage/ofd_packets [11:44:48]CheckFolder done [11:44:48]ProducePacketName [11:44:48]name=ofd_packets/00118149 [11:44:48]NVStorageSaveData ofd_packets/00118149 [11:44:48]File name is /storage/ofd_packets/00118149 [11:44:48]Write 298 bytes [11:44:48]NVStorageSaveData done [11:44:48]OFDSenderStorePacket done [11:44:48]KKMCreateOFDPacket done [11:44:48]NVStorageSaveData kkm_last_timestamp [11:44:48]File name is /storage/kkm_last_timestamp [11:44:48]Write 4 bytes [11:44:48]NVStorageSaveData done [11:44:48]ExternCall_PrintAddStr [11:44:48]wPrintStart [11:44:48]Write to MH i2c: 01 00 00 D6 01 D7 [11:44:48]Write i2c OK [11:44:48]MH_I2C_Read... [11:44:48]Read from MH i2c: 01 [11:44:48]MH_I2C_Read... [11:44:48]Read from MH i2c: 01 07 00 [11:44:48]MH_I2C_Read... [11:44:48]Read from MH i2c: 01 07 00 D6 01 00 00 00 00 00 FF 0F EC [11:44:48]RasterBufferAndPrint [11:44:48]line Счет N : (1)949022 [11:44:48]line ИНН: 02508201610067 [11:44:48]line Контрольно-Кассовый Чек [11:44:48]line ПРОДАЖА [11:44:48]line ТРК (МРК, ГНК) : 21 [11:44:48]line Товар: 2710194800 [11:44:48]line ДТ-К-5 [11:44:48]line 13.130 * 76.20 [11:44:48]line = 1000.51 [11:44:48]line НДС 12% НСП 1% [11:44:48]line > о реализуемом товаре [11:44:48]line ОКРУГЛЕНИЕ: -0.51 [11:44:48]line ИТОГО: 1000.00 [11:44:48]line Внесено: 1000.00 [11:44:48]line СДАЧА: 0.00 [11:44:48]line НСП 1% : 8.85 [11:44:48]line НДС 12% : 106.25 [11:44:48]line Наличными: 1000.00 [11:44:48]line Безнал.: 0.00 [11:44:48]line Место: АЗС № 134 "Партнер Нефть" [11:44:48]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:44:48]line СНО: Общий режим [11:44:48]line Чек 92 27.07.2024 11:44 [11:44:48]line Смена: 432 ФФД: 1.0 [11:44:48]line ЗНМ: 0300000044 [11:44:48]line РНМ: 0000000000092660 [11:44:48]line Версия ККМ: 001 [11:44:48]line ФМ: 0000000000874939 [11:44:48]line ФД: 118149 [11:44:48]line ФПД: 52200072199117 [11:44:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T114447&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118149&fm=52200072199117&tin=02508201610067®Number=0000000000092660&sum=100000 [11:44:48]OFD Sender: Processing packet 118149 [packets to send 85, broken 84] [11:44:48]ProducePacketName [11:44:48]name=ofd_packets/00118149 [11:44:48]OFD Sender: To server: pG, [11:44:48]CommunicateWithHost lk.salyk.kg:30040 [11:44:48]ConnectInit lk.salyk.kg [11:44:48]written 0, free lines is 4095 [11:44:48]Connected sock=10 [11:44:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B8 A4 04 01 B1 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 AF DD A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 85 CD 01 00 35 04 06 00 2F 79 C6 C2 BB CD 0B 35 14 41 A8 66 42 58 [11:44:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 9F 3E 47 00 8D 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 85 CD 01 00 F4 03 04 00 42 8B A4 66 B6 04 01 00 00 FE C6 CA 44 7C 4A 76 AC [11:44:48]CommunicateWithHost err = 0 [11:44:48]CheckOFDResponse [11:44:48]1017 (14) - 77093643461234 [11:44:48]1041 (16) - 0000000000874939 [11:44:48]1040 (4) - 118149 [11:44:48]1012 (4) - 27.07.2024 05:53 [11:44:48]1206 (1) - 0 [11:44:48]OFD Sender: Remove packet 118149 [11:44:48]ProducePacketName [11:44:48]name=ofd_packets/00118149 [11:44:48]NVStorageDeleteData [11:44:48]Write to MH i2c: 01 00 00 00 02 02 [11:44:49]Write i2c OK [11:44:49]MH_I2C_Read... [11:44:49]Read from MH i2c: 01 [11:44:49]MH_I2C_Read... [11:44:49]Read from MH i2c: 01 07 00 [11:44:49]MH_I2C_Read... [11:44:49]Read from MH i2c: 01 07 00 00 02 00 00 00 00 00 CF 0C E4 [11:44:49]RasterBufferAndPrint [11:44:49]line [11:44:49]line [11:44:49]line [11:44:49]line [11:44:49]line [11:44:49]written 0, free lines is 3287 [11:44:49]MH_Cut [11:44:49]Write to MH i2c: D1 01 00 07 02 01 DB [11:44:49]Write i2c OK [11:44:49]MH_I2C_Read... [11:44:49]Read from MH i2c: D1 [11:44:49]MH_I2C_Read... [11:44:49]Read from MH i2c: D1 01 00 [11:44:49]MH_I2C_Read... [11:44:49]Read from MH i2c: D1 01 00 07 02 00 DA [11:44:49]Write to MH i2c: 01 00 00 08 02 0A [11:44:49]Write i2c OK [11:44:49]MH_I2C_Read... [11:44:49]OFD Sender: No OFD packet to send [11:44:49]*** Cut start [11:44:49]*** Partial cut [11:44:49]*** CUTSNS_PIN = 1 [11:44:49]*** CUTSNS_PIN = 0 [11:44:49]*** Brake cut motor [11:44:50]Read from MH i2c: 01 [11:44:50]MH_I2C_Read... [11:44:50]*** Stop cut motor [11:44:50]*** Cut end [11:44:50]Read from MH i2c: 01 07 00 [11:44:50]MH_I2C_Read... [11:44:50]Read from MH i2c: 01 07 00 08 02 00 00 00 00 00 FF 0F 1F [11:44:50]process_action close_receipt done [11:44:50]requested_data is exist [11:44:50]produce_requested_data [11:44:50]requested_item fm.sn is exist - process it [11:44:50]wFMCommunicate request_size=4 [11:44:50]MH_SAM_APDU [11:44:50]CAPDU: 80 11 00 00 [11:44:50]Write to MH i2c: E2 08 00 09 02 80 11 00 00 00 00 00 00 85 [11:44:50]Write i2c OK [11:44:50]MH_I2C_Read... [11:44:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:50]Read from MH i2c: E2 [11:44:50]MH_I2C_Read... [11:44:50]Read from MH i2c: E2 17 00 [11:44:50]MH_I2C_Read... [11:44:50]Read from MH i2c: E2 17 00 09 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E0 [11:44:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:44:50]wFMCommunicate OK [11:44:50]requested_item fd.num is exist - process it [11:44:50]SAM_PROTO_GetFieldsCounters [11:44:50]wFMCommunicate request_size=4 [11:44:50]MH_SAM_APDU [11:44:50]CAPDU: 80 13 00 00 [11:44:50]Write to MH i2c: E2 08 00 0A 02 80 13 00 00 00 00 00 00 88 [11:44:50]Write i2c OK [11:44:50]MH_I2C_Read... [11:44:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:50]Read from MH i2c: E2 [11:44:50]MH_I2C_Read... [11:44:50]Read from MH i2c: E2 62 00 [11:44:50]MH_I2C_Read... [11:44:50]Read from MH i2c: E2 62 00 0A 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 85 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [11:44:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 85 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:44:50]wFMCommunicate OK [11:44:50]SAM_PROTO_GetFieldsCounters done [11:44:50]requested_item shift.num is exist - process it [11:44:50]requested_item shift.opened is exist - process it [11:44:50]req_shift_opened [11:44:50]FM_GetShiftState [11:44:50]SAM_PROTO_GetShiftState [11:44:50]wFMCommunicate request_size=4 [11:44:50]MH_SAM_APDU [11:44:50]CAPDU: 80 13 01 00 [11:44:50]Write to MH i2c: E2 08 00 0B 02 80 13 01 00 00 00 00 00 8A [11:44:50]Write i2c OK [11:44:50]MH_I2C_Read... [11:44:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:50]Read from MH i2c: E2 [11:44:50]MH_I2C_Read... [11:44:50]Read from MH i2c: E2 0E 00 [11:44:50]MH_I2C_Read... [11:44:50]Read from MH i2c: E2 0E 00 0B 02 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 17 [11:44:50]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [11:44:50]wFMCommunicate OK [11:44:50]SAM_PROTO_GetShiftState done [11:44:50]FM_GetShiftState done [11:44:50]req_shift_opened done [11:44:50]requested_item shift.open_date is exist - process it [11:44:50]req_shift_open_date [11:44:50]req_shift_open_date done [11:44:50]produce_requested_data done [11:44:50]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118149,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [11:44:50]process_action_free close_receipt [11:44:50]json_value_free [11:44:50]json_value_free done [11:44:50]process_json_proto returns [11:44:50]Send response to host [11:44:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118149,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [11:44:50]free response buf [11:44:50]execute_script done [11:44:50]execute_script returns [11:44:50]free content buf [11:44:50]Sock 9.Close socket [11:44:50]Sock 9.Thread stoped [11:44:54]OFD Sender: No OFD packet to send [11:44:59]OFD Sender: No OFD packet to send [11:45:04]OFD Sender: No OFD packet to send [11:45:09]OFD Sender: No OFD packet to send [11:45:14]OFD Sender: No OFD packet to send [11:45:19]OFD Sender: No OFD packet to send [11:45:24]OFD Sender: No OFD packet to send [11:45:29]OFD Sender: No OFD packet to send [11:45:34]OFD Sender: No OFD packet to send [11:45:39]OFD Sender: No OFD packet to send [11:45:44]OFD Sender: No OFD packet to send [11:45:49]OFD Sender: No OFD packet to send [11:45:54]OFD Sender: No OFD packet to send [11:45:59]OFD Sender: No OFD packet to send [11:46:04]OFD Sender: No OFD packet to send [11:46:09]OFD Sender: No OFD packet to send [11:46:14]OFD Sender: No OFD packet to send [11:46:19]OFD Sender: No OFD packet to send [11:46:24]OFD Sender: No OFD packet to send [11:46:29]OFD Sender: No OFD packet to send [11:46:34]OFD Sender: No OFD packet to send [11:46:39]OFD Sender: No OFD packet to send [11:46:44]OFD Sender: No OFD packet to send [11:46:49]OFD Sender: No OFD packet to send [11:46:54]OFD Sender: No OFD packet to send [11:46:59]OFD Sender: No OFD packet to send [11:47:04]OFD Sender: No OFD packet to send [11:47:09]OFD Sender: No OFD packet to send [11:47:14]OFD Sender: No OFD packet to send [11:47:19]OFD Sender: No OFD packet to send [11:47:24]OFD Sender: No OFD packet to send [11:47:29]OFD Sender: No OFD packet to send [11:47:34]OFD Sender: No OFD packet to send [11:47:39]OFD Sender: No OFD packet to send [11:47:44]OFD Sender: No OFD packet to send [11:47:49]OFD Sender: No OFD packet to send [11:47:54]OFD Sender: No OFD packet to send [11:47:59]OFD Sender: No OFD packet to send [11:48:04]OFD Sender: No OFD packet to send [11:48:09]OFD Sender: No OFD packet to send [11:48:14]OFD Sender: No OFD packet to send [11:48:19]OFD Sender: No OFD packet to send [11:48:24]OFD Sender: No OFD packet to send [11:48:29]OFD Sender: No OFD packet to send [11:48:34]OFD Sender: No OFD packet to send [11:48:39]OFD Sender: No OFD packet to send [11:48:44]OFD Sender: No OFD packet to send [11:48:49]OFD Sender: No OFD packet to send [11:48:54]OFD Sender: No OFD packet to send [11:48:59]OFD Sender: No OFD packet to send [11:49:04]OFD Sender: No OFD packet to send [11:49:09]OFD Sender: No OFD packet to send [11:49:14]OFD Sender: No OFD packet to send [11:49:15]accept exits with 7 [11:49:15]New connection [11:49:15]New thread 3067272548 created [11:49:15]Thread 3067415908 joined [11:49:15]Waiting for new connection... [11:49:15] Sock 7.Parse request [11:49:15]Sock 7.Check first char [11:49:15]Sock 7.First char is OK [11:49:15]request: POST /json_proto HTTP/1.0 [11:49:15]Method: POST [11:49:15]URL: /json_proto [11:49:15]Method is POST - this is cgi request [11:49:15]url: /json_proto [11:49:15]query_string will be loaded in cgi processing [11:49:15]execute_cgi json_proto POST (null) [11:49:15]execute_cgi path=json_proto method=POST [11:49:15]POST find Content-Length [11:49:15]Host: 172.17.45.7:8080 [11:49:15]Content-Length: 677 [11:49:15]Content-Type: application/json [11:49:15] [11:49:15]POST finish read [11:49:15]Found Content-Length = 677 [11:49:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:15]execute_script... [11:49: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)949023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:15]POST & json_proto [11:49:15]process_json_proto [11:49:15]json parsed OK: [11:49:15]protocol is kg_v1.0 [11:49:15]action value=close_receipt [11:49:15]process_action close_receipt [11:49:15]cmd_close_receipt [11:49:15]MH_GetDate [11:49:15]Write to MH i2c: F0 00 00 0C 02 FD [11:49:15]Write i2c OK [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: F0 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: F0 09 00 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: F0 09 00 0C 02 00 BC DE A4 66 90 0F 3E 66 ED [11:49:15]GetLastDocTimeStamp 1722080687 [11:49:15]current date 1722080956 [11:49:15]FM_GetShiftState [11:49:15]SAM_PROTO_GetShiftState [11:49:15]wFMCommunicate request_size=4 [11:49:15]MH_SAM_APDU [11:49:15]CAPDU: 80 13 01 00 [11:49:15]Write to MH i2c: E2 08 00 0D 02 80 13 01 00 00 00 00 00 8C [11:49:15]Write i2c OK [11:49:15]MH_I2C_Read... [11:49:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:15]Read from MH i2c: E2 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 0E 00 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 0E 00 0D 02 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 19 [11:49:15]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [11:49:15]wFMCommunicate OK [11:49:15]SAM_PROTO_GetShiftState done [11:49:15]FM_GetShiftState done [11:49:15]opened in 1722038845 [11:49:15]opened+sec_in_day 1722125245 [11:49:15]quantity*price = 30035 [11:49:15]sum+1 = 30036 [11:49:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 93 27.07.2024 11:49 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118150 ФПД: 261372047464318 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T114916&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118150&fm=261372047464318&tin=02508201610067®Number=0000000000092660&sum=30000 [11:49:16]StoreToDocumentArchive [11:49:16]shift 432 fd 118150 [11:49:16]save to /storage/0432/doc_00118150 [11:49:16]save last doc name /storage/0432/doc_00118150 to /storage/kkm_last_doc_name [11:49:16]save OK [11:49:16]Clear old archive folders... [11:49:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:49:16]tlvbuf is 003834C0 [11:49:16]SAM_PROTO_ClearQueue [11:49:16]wFMCommunicate request_size=4 [11:49:16]MH_SAM_APDU [11:49:16]CAPDU: 80 09 00 00 [11:49:16]Write to MH i2c: E2 08 00 1A 02 80 09 00 00 00 00 00 00 8E [11:49:16]Write i2c OK [11:49:16]MH_I2C_Read... [11:49:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:16]Read from MH i2c: E2 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 03 00 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 03 00 1A 02 00 90 00 90 [11:49:16]RAPDU: 90 00 [11:49:16]wFMCommunicate OK [11:49:16]SAM_PROTO_ClearQueue done [11:49:16]KKMCreateOFDPacket [11:49:16]OFDProtocolAddRootSTLVToBuf [11:49:16]FM_MakeSignedData [11:49:16]FM_MakeSignedData [11:49:16]SAM_PROTO_SignData [11:49:16]wFMCommunicate request_size=4 [11:49:16]MH_SAM_APDU [11:49:16]CAPDU: 80 0D 01 02 [11:49:16]Write to MH i2c: E2 08 00 1B 02 80 0D 01 02 00 00 00 00 96 [11:49:16]Write i2c OK [11:49:16]MH_I2C_Read... [11:49:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:16]Read from MH i2c: E2 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 03 00 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 03 00 1B 02 00 90 00 91 [11:49:16]RAPDU: 90 00 [11:49:16]wFMCommunicate OK [11:49:16]wFMCommunicate request_size=255 [11:49:16]MH_SAM_APDU [11:49: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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 BC DE A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 86 CD 01 00 35 04 06 00 ED [11:49:16]Write to MH i2c: E2 02 01 1C 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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 BC DE A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 86 CD 01 00 35 04 06 00 ED 00 00 2C [11:49:16]Write i2c OK [11:49:16]MH_I2C_Read... [11:49:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:17]Read from MH i2c: E2 [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: E2 03 00 [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: E2 03 00 1C 02 00 90 00 92 [11:49:17]RAPDU: 90 00 [11:49:17]wFMCommunicate OK [11:49:17]wFMCommunicate request_size=10 [11:49:17]MH_SAM_APDU [11:49:17]CAPDU: 80 0D 02 02 05 B7 6C 0B 17 7E [11:49:17]Write to MH i2c: E2 0D 00 1D 02 80 0D 02 02 05 00 B7 6C 0B 17 7E 00 00 66 [11:49:17]Write i2c OK [11:49:17]MH_I2C_Read... [11:49:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:17]Read from MH i2c: E2 [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: E2 03 00 [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: E2 03 00 1D 02 00 90 00 93 [11:49:17]RAPDU: 90 00 [11:49:17]wFMCommunicate OK [11:49:17]wFMCommunicate request_size=4 [11:49:17]MH_SAM_APDU [11:49:17]CAPDU: 80 0D 03 02 [11:49:17]Write to MH i2c: E2 08 00 1E 02 80 0D 03 02 00 00 00 00 9B [11:49:17]Write i2c OK [11:49:17]MH_I2C_Read... [11:49:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:17]Read from MH i2c: E2 [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: E2 0B 00 [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: E2 0B 00 1E 02 00 53 51 FB 9B C5 1F C2 61 90 00 DD [11:49:17]RAPDU: 53 51 FB 9B C5 1F C2 61 90 00 [11:49:17]wFMCommunicate OK [11:49:17]SAM_PROTO_SignData done [11:49:17]FM_MakeSignedData done [11:49:17]CreateOFDProtocolMessage [11:49:17]wFMCommunicate request_size=4 [11:49:17]MH_SAM_APDU [11:49:17]CAPDU: 80 11 00 00 [11:49:17]Write to MH i2c: E2 08 00 1F 02 80 11 00 00 00 00 00 00 9B [11:49:17]Write i2c OK [11:49:17]MH_I2C_Read... [11:49:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:17]Read from MH i2c: E2 [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: E2 17 00 [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: E2 17 00 1F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F6 [11:49:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:49:17]wFMCommunicate OK [11:49:17]CreateOFDProtocolMessage done [11:49:17]OFDSenderStorePacket 118150 [11:49:17]StoreOFDPacket docnum=118150 [11:49:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E5 33 07 01 7D 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 BC DE A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 86 CD 01 00 35 04 06 00 ED B7 6C 0B 17 7E 53 51 FB 9B C5 1F C2 61 [11:49:17]CheckFolder [11:49:17]dirname=/storage/ofd_packets [11:49:17]CheckFolder done [11:49:17]ProducePacketName [11:49:17]name=ofd_packets/00118150 [11:49:17]NVStorageSaveData ofd_packets/00118150 [11:49:17]File name is /storage/ofd_packets/00118150 [11:49:17]Write 301 bytes [11:49:17]NVStorageSaveData done [11:49:17]OFDSenderStorePacket done [11:49:17]KKMCreateOFDPacket done [11:49:17]NVStorageSaveData kkm_last_timestamp [11:49:17]File name is /storage/kkm_last_timestamp [11:49:17]Write 4 bytes [11:49:17]NVStorageSaveData done [11:49:17]OFD Sender: Processing packet 118150 [packets to send 85, broken 84] [11:49:17]ProducePacketName [11:49:17]name=ofd_packets/00118150 [11:49:17]OFD Sender: To server: pG, [11:49:17]CommunicateWithHost lk.salyk.kg:30040 [11:49:17]ConnectInit lk.salyk.kg [11:49:17]ExternCall_PrintAddStr [11:49:17]wPrintStart [11:49:17]Write to MH i2c: 01 00 00 20 02 22 [11:49:17]Write i2c OK [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: 01 [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: 01 07 00 [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: 01 07 00 20 02 00 00 00 00 00 FF 0F 37 [11:49:17]RasterBufferAndPrint [11:49:17]line Счет N : (1)949023 [11:49:17]line ИНН: 02508201610067 [11:49:17]line Контрольно-Кассовый Чек [11:49:17]line ПРОДАЖА [11:49:17]line ТРК (МРК, ГНК) : 41 [11:49:17]line Товар: 2710124130 [11:49:17]line Аи-92-К-4 [11:49:17]line 4.430 * 67.80 [11:49:17]line = 300.35 [11:49:17]line НДС 12% НСП 1% [11:49:17]line > о реализуемом товаре [11:49:17]line ОКРУГЛЕНИЕ: -0.35 [11:49:17]line ИТОГО: 300.00 [11:49:17]line Внесено: 300.00 [11:49:17]line СДАЧА: 0.00 [11:49:17]line НСП 1% : 2.66 [11:49:17]line НДС 12% : 31.90 [11:49:17]line Наличными: 300.00 [11:49:17]line Безнал.: 0.00 [11:49:17]line Место: АЗС № 134 "Партнер Нефть" [11:49:17]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:49:17]line СНО: Общий режим [11:49:17]line Чек 93 27.07.2024 11:49 [11:49:17]line Смена: 432 ФФД: 1.0 [11:49:17]line ЗНМ: 0300000044 [11:49:17]line РНМ: 0000000000092660 [11:49:17]line Версия ККМ: 001 [11:49:17]line ФМ: 0000000000874939 [11:49:17]line ФД: 118150 [11:49:17]line ФПД: 261372047464318 [11:49:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T114916&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118150&fm=261372047464318&tin=02508201610067®Number=0000000000092660&sum=30000 [11:49:17]Connected sock=11 [11:49:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E5 33 07 01 7D 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 BC DE A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 86 CD 01 00 35 04 06 00 ED B7 6C 0B 17 7E 53 51 FB 9B C5 1F C2 61 [11:49:17]written 0, free lines is 4095 [11:49:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 0A 40 47 00 FF CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 86 CD 01 00 F4 03 04 00 4F 8C A4 66 B6 04 01 00 00 EF 56 BC 86 FE B4 9F 43 [11:49:17]CommunicateWithHost err = 0 [11:49:17]CheckOFDResponse [11:49:17]1017 (14) - 77093643461234 [11:49:17]1041 (16) - 0000000000874939 [11:49:17]1040 (4) - 118150 [11:49:17]1012 (4) - 27.07.2024 05:57 [11:49:17]1206 (1) - 0 [11:49:17]OFD Sender: Remove packet 118150 [11:49:17]ProducePacketName [11:49:17]name=ofd_packets/00118150 [11:49:17]NVStorageDeleteData [11:49:17]Write to MH i2c: 01 00 00 4A 02 4C [11:49:17]Write i2c OK [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: 01 [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: 01 07 00 [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: 01 07 00 4A 02 00 00 00 00 00 D9 0C 38 [11:49:17]RasterBufferAndPrint [11:49:17]line [11:49:17]line [11:49:17]line [11:49:17]line [11:49:17]line [11:49:17]written 0, free lines is 3297 [11:49:17]MH_Cut [11:49:17]Write to MH i2c: D1 01 00 51 02 01 25 [11:49:17]Write i2c OK [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: D1 [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: D1 01 00 [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: D1 01 00 51 02 00 24 [11:49:17]Write to MH i2c: 01 00 00 52 02 54 [11:49:18]Write i2c OK [11:49:18]MH_I2C_Read... [11:49:18]OFD Sender: No OFD packet to send [11:49:18]*** Cut start [11:49:18]*** Partial cut [11:49:18]*** CUTSNS_PIN = 1 [11:49:18]*** CUTSNS_PIN = 0 [11:49:18]*** Brake cut motor [11:49:19]Read from MH i2c: 01 [11:49:19]MH_I2C_Read... [11:49:19]*** Stop cut motor [11:49:19]*** Cut end [11:49:19]Read from MH i2c: 01 07 00 [11:49:19]MH_I2C_Read... [11:49:19]Read from MH i2c: 01 07 00 52 02 00 00 00 00 00 FF 0F 69 [11:49:19]process_action close_receipt done [11:49:19]requested_data is exist [11:49:19]produce_requested_data [11:49:19]requested_item fm.sn is exist - process it [11:49:19]wFMCommunicate request_size=4 [11:49:19]MH_SAM_APDU [11:49:19]CAPDU: 80 11 00 00 [11:49:19]Write to MH i2c: E2 08 00 53 02 80 11 00 00 00 00 00 00 CF [11:49:19]Write i2c OK [11:49:19]MH_I2C_Read... [11:49:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:19]Read from MH i2c: E2 [11:49:19]MH_I2C_Read... [11:49:19]Read from MH i2c: E2 17 00 [11:49:19]MH_I2C_Read... [11:49:19]Read from MH i2c: E2 17 00 53 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2A [11:49:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:49:19]wFMCommunicate OK [11:49:19]requested_item fd.num is exist - process it [11:49:19]SAM_PROTO_GetFieldsCounters [11:49:19]wFMCommunicate request_size=4 [11:49:19]MH_SAM_APDU [11:49:19]CAPDU: 80 13 00 00 [11:49:19]Write to MH i2c: E2 08 00 54 02 80 13 00 00 00 00 00 00 D2 [11:49:19]Write i2c OK [11:49:19]MH_I2C_Read... [11:49:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:19]Read from MH i2c: E2 [11:49:19]MH_I2C_Read... [11:49:19]Read from MH i2c: E2 62 00 [11:49:19]MH_I2C_Read... [11:49:19]Read from MH i2c: E2 62 00 54 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 86 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [11:49:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 86 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:49:19]wFMCommunicate OK [11:49:19]SAM_PROTO_GetFieldsCounters done [11:49:19]requested_item shift.num is exist - process it [11:49:19]requested_item shift.opened is exist - process it [11:49:19]req_shift_opened [11:49:19]FM_GetShiftState [11:49:19]SAM_PROTO_GetShiftState [11:49:19]wFMCommunicate request_size=4 [11:49:19]MH_SAM_APDU [11:49:19]CAPDU: 80 13 01 00 [11:49:19]Write to MH i2c: E2 08 00 55 02 80 13 01 00 00 00 00 00 D4 [11:49:19]Write i2c OK [11:49:19]MH_I2C_Read... [11:49:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:19]Read from MH i2c: E2 [11:49:19]MH_I2C_Read... [11:49:19]Read from MH i2c: E2 0E 00 [11:49:19]MH_I2C_Read... [11:49:19]Read from MH i2c: E2 0E 00 55 02 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 61 [11:49:19]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [11:49:19]wFMCommunicate OK [11:49:19]SAM_PROTO_GetShiftState done [11:49:19]FM_GetShiftState done [11:49:19]req_shift_opened done [11:49:19]requested_item shift.open_date is exist - process it [11:49:19]req_shift_open_date [11:49:19]req_shift_open_date done [11:49:19]produce_requested_data done [11:49:19]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118150,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [11:49:19]process_action_free close_receipt [11:49:19]json_value_free [11:49:19]json_value_free done [11:49:19]process_json_proto returns [11:49:19]Send response to host [11:49:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118150,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [11:49:19]free response buf [11:49:19]execute_script done [11:49:19]execute_script returns [11:49:19]free content buf [11:49:19]Sock 7.Close socket [11:49:19]Sock 7.Thread stoped [11:49:23]OFD Sender: No OFD packet to send [11:49:28]OFD Sender: No OFD packet to send [11:49:33]OFD Sender: No OFD packet to send [11:49:38]OFD Sender: No OFD packet to send [11:49:43]OFD Sender: No OFD packet to send [11:49:48]OFD Sender: No OFD packet to send [11:49:53]OFD Sender: No OFD packet to send [11:49:58]OFD Sender: No OFD packet to send [11:50:03]OFD Sender: No OFD packet to send [11:50:08]OFD Sender: No OFD packet to send [11:50:13]OFD Sender: No OFD packet to send [11:50:18]OFD Sender: No OFD packet to send [11:50:23]OFD Sender: No OFD packet to send [11:50:28]OFD Sender: No OFD packet to send [11:50:33]OFD Sender: No OFD packet to send [11:50:38]OFD Sender: No OFD packet to send [11:50:43]OFD Sender: No OFD packet to send [11:50:48]OFD Sender: No OFD packet to send [11:50:53]OFD Sender: No OFD packet to send [11:50:58]OFD Sender: No OFD packet to send [11:51:03]OFD Sender: No OFD packet to send [11:51:08]OFD Sender: No OFD packet to send [11:51:13]OFD Sender: No OFD packet to send [11:51:18]OFD Sender: No OFD packet to send [11:51:23]OFD Sender: No OFD packet to send [11:51:28]OFD Sender: No OFD packet to send [11:51:33]OFD Sender: No OFD packet to send [11:51:38]OFD Sender: No OFD packet to send [11:51:43]OFD Sender: No OFD packet to send [11:51:48]OFD Sender: No OFD packet to send [11:51:53]OFD Sender: No OFD packet to send [11:51:58]OFD Sender: No OFD packet to send [11:52:03]OFD Sender: No OFD packet to send [11:52:08]OFD Sender: No OFD packet to send [11:52:13]OFD Sender: No OFD packet to send [11:52:18]OFD Sender: No OFD packet to send [11:52:23]OFD Sender: No OFD packet to send [11:52:28]OFD Sender: No OFD packet to send [11:52:33]OFD Sender: No OFD packet to send [11:52:38]OFD Sender: No OFD packet to send [11:52:43]OFD Sender: No OFD packet to send [11:52:48]OFD Sender: No OFD packet to send [11:52:53]OFD Sender: No OFD packet to send [11:52:58]OFD Sender: No OFD packet to send [11:53:03]OFD Sender: No OFD packet to send [11:53:08]OFD Sender: No OFD packet to send [11:53:13]OFD Sender: No OFD packet to send [11:53:18]OFD Sender: No OFD packet to send [11:53:23]OFD Sender: No OFD packet to send [11:53:28]OFD Sender: No OFD packet to send [11:53:33]OFD Sender: No OFD packet to send [11:53:38]OFD Sender: No OFD packet to send [11:53:43]OFD Sender: No OFD packet to send [11:53:48]OFD Sender: No OFD packet to send [11:53:53]OFD Sender: No OFD packet to send [11:53:58]OFD Sender: No OFD packet to send [11:54:03]OFD Sender: No OFD packet to send [11:54:08]OFD Sender: No OFD packet to send [11:54:13]OFD Sender: No OFD packet to send [11:54:18]OFD Sender: No OFD packet to send [11:54:23]OFD Sender: No OFD packet to send [11:54:28]OFD Sender: No OFD packet to send [11:54:33]OFD Sender: No OFD packet to send [11:54:38]OFD Sender: No OFD packet to send [11:54:43]OFD Sender: No OFD packet to send [11:54:48]OFD Sender: No OFD packet to send [11:54:53]OFD Sender: No OFD packet to send [11:54:58]OFD Sender: No OFD packet to send [11:55:03]OFD Sender: No OFD packet to send [11:55:08]OFD Sender: No OFD packet to send [11:55:13]OFD Sender: No OFD packet to send [11:55:18]OFD Sender: No OFD packet to send [11:55:23]OFD Sender: No OFD packet to send [11:55:28]OFD Sender: No OFD packet to send [11:55:33]OFD Sender: No OFD packet to send [11:55:38]OFD Sender: No OFD packet to send [11:55:43]OFD Sender: No OFD packet to send [11:55:48]OFD Sender: No OFD packet to send [11:55:53]OFD Sender: No OFD packet to send [11:55:58]OFD Sender: No OFD packet to send [11:56:03]OFD Sender: No OFD packet to send [11:56:08]OFD Sender: No OFD packet to send [11:56:13]OFD Sender: No OFD packet to send [11:56:18]OFD Sender: No OFD packet to send [11:56:23]OFD Sender: No OFD packet to send [11:56:28]OFD Sender: No OFD packet to send [11:56:33]OFD Sender: No OFD packet to send [11:56:38]OFD Sender: No OFD packet to send [11:56:43]OFD Sender: No OFD packet to send [11:56:48]OFD Sender: No OFD packet to send [11:56:53]OFD Sender: No OFD packet to send [11:56:58]OFD Sender: No OFD packet to send [11:57:03]OFD Sender: No OFD packet to send [11:57:08]OFD Sender: No OFD packet to send [11:57:13]OFD Sender: No OFD packet to send [11:57:18]OFD Sender: No OFD packet to send [11:57:23]OFD Sender: No OFD packet to send [11:57:28]accept exits with 9 [11:57:28]New connection [11:57:28]New thread 3067415908 created [11:57:28]Thread 3067272548 joined [11:57:28]Waiting for new connection... [11:57:28] Sock 9.Parse request [11:57:28]Sock 9.Check first char [11:57:28]Sock 9.First char is OK [11:57:28]request: POST /json_proto HTTP/1.0 [11:57:28]Method: POST [11:57:28]URL: /json_proto [11:57:28]Method is POST - this is cgi request [11:57:28]url: /json_proto [11:57:28]query_string will be loaded in cgi processing [11:57:28]execute_cgi json_proto POST (null) [11:57:28]execute_cgi path=json_proto method=POST [11:57:28]POST find Content-Length [11:57:28]Host: 172.17.45.7:8080 [11:57:28]Content-Length: 674 [11:57:28]Content-Type: application/json [11:57:28] [11:57:28]POST finish read [11:57:28]Found Content-Length = 674 [11:57:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.850, "sum" : 750.57, "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" ] } } [11:57:28]execute_script... [11:57:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.850, "sum" : 750.57, "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" ] } } [11:57:28]POST & json_proto [11:57:28]process_json_proto [11:57:28]json parsed OK: [11:57:28]protocol is kg_v1.0 [11:57:28]action value=close_receipt [11:57:28]process_action close_receipt [11:57:28]cmd_close_receipt [11:57:28]MH_GetDate [11:57:28]Write to MH i2c: F0 00 00 56 02 47 [11:57:28]Write i2c OK [11:57:28]MH_I2C_Read... [11:57:28]Read from MH i2c: F0 [11:57:28]MH_I2C_Read... [11:57:28]Read from MH i2c: F0 09 00 [11:57:28]MH_I2C_Read... [11:57:28]Read from MH i2c: F0 09 00 56 02 00 A9 E0 A4 66 90 0F 3E 66 26 [11:57:28]GetLastDocTimeStamp 1722080956 [11:57:28]current date 1722081449 [11:57:28]FM_GetShiftState [11:57:28]SAM_PROTO_GetShiftState [11:57:28]wFMCommunicate request_size=4 [11:57:28]MH_SAM_APDU [11:57:28]CAPDU: 80 13 01 00 [11:57:28]Write to MH i2c: E2 08 00 57 02 80 13 01 00 00 00 00 00 D6 [11:57:28]Write i2c OK [11:57:28]MH_I2C_Read... [11:57:28]OFD Sender: No OFD packet to send [11:57:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:28]Read from MH i2c: E2 [11:57:28]MH_I2C_Read... [11:57:28]Read from MH i2c: E2 0E 00 [11:57:28]MH_I2C_Read... [11:57:28]Read from MH i2c: E2 0E 00 57 02 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 63 [11:57:28]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [11:57:28]wFMCommunicate OK [11:57:28]SAM_PROTO_GetShiftState done [11:57:28]FM_GetShiftState done [11:57:28]opened in 1722038845 [11:57:28]opened+sec_in_day 1722125245 [11:57:28]quantity*price = 75057 [11:57:28]sum+1 = 75058 [11:57:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.71 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 94 27.07.2024 11:57 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118151 ФПД: 225096444084532 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T115729&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118151&fm=225096444084532&tin=02508201610067®Number=0000000000092660&sum=75000 [11:57:29]StoreToDocumentArchive [11:57:29]shift 432 fd 118151 [11:57:29]save to /storage/0432/doc_00118151 [11:57:29]save last doc name /storage/0432/doc_00118151 to /storage/kkm_last_doc_name [11:57:29]save OK [11:57:29]Clear old archive folders... [11:57:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:57:29]tlvbuf is 00381DD0 [11:57:29]SAM_PROTO_ClearQueue [11:57:29]wFMCommunicate request_size=4 [11:57:29]MH_SAM_APDU [11:57:29]CAPDU: 80 09 00 00 [11:57:29]Write to MH i2c: E2 08 00 64 02 80 09 00 00 00 00 00 00 D8 [11:57:29]Write i2c OK [11:57:29]MH_I2C_Read... [11:57:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:29]Read from MH i2c: E2 [11:57:29]MH_I2C_Read... [11:57:29]Read from MH i2c: E2 03 00 [11:57:29]MH_I2C_Read... [11:57:29]Read from MH i2c: E2 03 00 64 02 00 90 00 DA [11:57:29]RAPDU: 90 00 [11:57:29]wFMCommunicate OK [11:57:29]SAM_PROTO_ClearQueue done [11:57:29]KKMCreateOFDPacket [11:57:29]OFDProtocolAddRootSTLVToBuf [11:57:29]FM_MakeSignedData [11:57:29]FM_MakeSignedData [11:57:29]SAM_PROTO_SignData [11:57:29]wFMCommunicate request_size=4 [11:57:29]MH_SAM_APDU [11:57:29]CAPDU: 80 0D 01 02 [11:57:29]Write to MH i2c: E2 08 00 65 02 80 0D 01 02 00 00 00 00 E0 [11:57:29]Write i2c OK [11:57:29]MH_I2C_Read... [11:57:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:29]Read from MH i2c: E2 [11:57:29]MH_I2C_Read... [11:57:29]Read from MH i2c: E2 03 00 [11:57:29]MH_I2C_Read... [11:57:29]Read from MH i2c: E2 03 00 65 02 00 90 00 DB [11:57:29]RAPDU: 90 00 [11:57:29]wFMCommunicate OK [11:57:29]wFMCommunicate request_size=255 [11:57:29]MH_SAM_APDU [11:57: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 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 5E 00 00 00 F4 03 04 00 A9 E0 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 87 CD 01 00 35 04 06 00 CC B9 59 97 [11:57:29]Write to MH i2c: E2 02 01 66 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 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 5E 00 00 00 F4 03 04 00 A9 E0 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 87 CD 01 00 35 04 06 00 CC B9 59 97 00 00 A2 [11:57:30]Write i2c OK [11:57:30]MH_I2C_Read... [11:57:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:30]Read from MH i2c: E2 [11:57:30]MH_I2C_Read... [11:57:30]Read from MH i2c: E2 03 00 [11:57:30]MH_I2C_Read... [11:57:30]Read from MH i2c: E2 03 00 66 02 00 90 00 DC [11:57:30]RAPDU: 90 00 [11:57:30]wFMCommunicate OK [11:57:30]wFMCommunicate request_size=7 [11:57:30]MH_SAM_APDU [11:57:30]CAPDU: 80 0D 02 02 02 01 34 [11:57:30]Write to MH i2c: E2 0A 00 67 02 80 0D 02 02 02 00 01 34 00 00 1C [11:57:30]Write i2c OK [11:57:30]MH_I2C_Read... [11:57:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:30]Read from MH i2c: E2 [11:57:30]MH_I2C_Read... [11:57:30]Read from MH i2c: E2 03 00 [11:57:30]MH_I2C_Read... [11:57:30]Read from MH i2c: E2 03 00 67 02 00 90 00 DD [11:57:30]RAPDU: 90 00 [11:57:30]wFMCommunicate OK [11:57:30]wFMCommunicate request_size=4 [11:57:30]MH_SAM_APDU [11:57:30]CAPDU: 80 0D 03 02 [11:57:30]Write to MH i2c: E2 08 00 68 02 80 0D 03 02 00 00 00 00 E5 [11:57:30]Write i2c OK [11:57:30]MH_I2C_Read... [11:57:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:30]Read from MH i2c: E2 [11:57:30]MH_I2C_Read... [11:57:30]Read from MH i2c: E2 0B 00 [11:57:30]MH_I2C_Read... [11:57:30]Read from MH i2c: E2 0B 00 68 02 00 F5 2F FB 85 7A 99 18 97 90 00 4C [11:57:30]RAPDU: F5 2F FB 85 7A 99 18 97 90 00 [11:57:30]wFMCommunicate OK [11:57:30]SAM_PROTO_SignData done [11:57:30]FM_MakeSignedData done [11:57:30]CreateOFDProtocolMessage [11:57:30]wFMCommunicate request_size=4 [11:57:30]MH_SAM_APDU [11:57:30]CAPDU: 80 11 00 00 [11:57:30]Write to MH i2c: E2 08 00 69 02 80 11 00 00 00 00 00 00 E5 [11:57:30]Write i2c OK [11:57:30]MH_I2C_Read... [11:57:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:30]Read from MH i2c: E2 [11:57:30]MH_I2C_Read... [11:57:30]Read from MH i2c: E2 17 00 [11:57:30]MH_I2C_Read... [11:57:30]Read from MH i2c: E2 17 00 69 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 40 [11:57:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:57:30]wFMCommunicate OK [11:57:30]CreateOFDProtocolMessage done [11:57:30]OFDSenderStorePacket 118151 [11:57:30]StoreOFDPacket docnum=118151 [11:57:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 67 69 04 01 05 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 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 5E 00 00 00 F4 03 04 00 A9 E0 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 87 CD 01 00 35 04 06 00 CC B9 59 97 01 34 F5 2F FB 85 7A 99 18 97 [11:57:30]CheckFolder [11:57:30]dirname=/storage/ofd_packets [11:57:30]CheckFolder done [11:57:30]ProducePacketName [11:57:30]name=ofd_packets/00118151 [11:57:30]NVStorageSaveData ofd_packets/00118151 [11:57:30]File name is /storage/ofd_packets/00118151 [11:57:30]Write 298 bytes [11:57:30]NVStorageSaveData done [11:57:30]OFDSenderStorePacket done [11:57:30]KKMCreateOFDPacket done [11:57:30]NVStorageSaveData kkm_last_timestamp [11:57:30]File name is /storage/kkm_last_timestamp [11:57:30]Write 4 bytes [11:57:30]NVStorageSaveData done [11:57:30]ExternCall_PrintAddStr [11:57:30]wPrintStart [11:57:30]Write to MH i2c: 01 00 00 6A 02 6C [11:57:30]Write i2c OK [11:57:30]MH_I2C_Read... [11:57:30]Read from MH i2c: 01 [11:57:30]MH_I2C_Read... [11:57:30]Read from MH i2c: 01 07 00 [11:57:30]MH_I2C_Read... [11:57:30]Read from MH i2c: 01 07 00 6A 02 00 00 00 00 00 FF 0F 81 [11:57:30]RasterBufferAndPrint [11:57:30]line Счет N : (1)949024 [11:57:30]line ИНН: 02508201610067 [11:57:30]line Контрольно-Кассовый Чек [11:57:30]line ПРОДАЖА [11:57:30]line ТРК (МРК, ГНК) : 44 [11:57:30]line Товар: 2710194800 [11:57:30]line ДТ-К-5 [11:57:30]line 9.850 * 76.20 [11:57:30]line = 750.57 [11:57:30]line НДС 12% НСП 1% [11:57:30]line > о реализуемом товаре [11:57:30]line ОКРУГЛЕНИЕ: -0.57 [11:57:30]line ИТОГО: 750.00 [11:57:30]line Внесено: 750.00 [11:57:30]line СДАЧА: 0.00 [11:57:30]line НСП 1% : 6.64 [11:57:30]line НДС 12% : 79.71 [11:57:30]line Наличными: 750.00 [11:57:30]line Безнал.: 0.00 [11:57:30]line Место: АЗС № 134 "Партнер Нефть" [11:57:30]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:57:30]line СНО: Общий режим [11:57:30]line Чек 94 27.07.2024 11:57 [11:57:30]line Смена: 432 ФФД: 1.0 [11:57:30]line ЗНМ: 0300000044 [11:57:30]line РНМ: 0000000000092660 [11:57:30]line Версия ККМ: 001 [11:57:30]line ФМ: 0000000000874939 [11:57:30]line ФД: 118151 [11:57:30]line ФПД: 225096444084532 [11:57:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T115729&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118151&fm=225096444084532&tin=02508201610067®Number=0000000000092660&sum=75000 [11:57:30]OFD Sender: Processing packet 118151 [packets to send 85, broken 84] [11:57:30]ProducePacketName [11:57:30]name=ofd_packets/00118151 [11:57:30]OFD Sender: To server: pG, [11:57:30]CommunicateWithHost lk.salyk.kg:30040 [11:57:30]ConnectInit lk.salyk.kg [11:57:30]written 0, free lines is 4095 [11:57:30]Connected sock=7 [11:57:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 67 69 04 01 05 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 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 5E 00 00 00 F4 03 04 00 A9 E0 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 87 CD 01 00 35 04 06 00 CC B9 59 97 01 34 F5 2F FB 85 7A 99 18 97 [11:57:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 66 E9 47 00 FA 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 87 CD 01 00 F4 03 04 00 3C 8E A4 66 B6 04 01 00 00 26 8A A4 56 20 90 AA 19 [11:57:31]CommunicateWithHost err = 0 [11:57:31]CheckOFDResponse [11:57:31]1017 (14) - 77093643461234 [11:57:31]1041 (16) - 0000000000874939 [11:57:31]1040 (4) - 118151 [11:57:31]1012 (4) - 27.07.2024 06:05 [11:57:31]1206 (1) - 0 [11:57:31]OFD Sender: Remove packet 118151 [11:57:31]ProducePacketName [11:57:31]name=ofd_packets/00118151 [11:57:31]NVStorageDeleteData [11:57:31]Write to MH i2c: 01 00 00 94 02 96 [11:57:31]Write i2c OK [11:57:31]MH_I2C_Read... [11:57:31]Read from MH i2c: 01 [11:57:31]MH_I2C_Read... [11:57:31]Read from MH i2c: 01 07 00 [11:57:31]MH_I2C_Read... [11:57:31]Read from MH i2c: 01 07 00 94 02 00 00 00 00 00 EE 0C 97 [11:57:31]RasterBufferAndPrint [11:57:31]line [11:57:31]line [11:57:31]line [11:57:31]line [11:57:31]line [11:57:31]written 0, free lines is 3317 [11:57:31]MH_Cut [11:57:31]Write to MH i2c: D1 01 00 9B 02 01 6F [11:57:31]Write i2c OK [11:57:31]MH_I2C_Read... [11:57:31]Read from MH i2c: D1 [11:57:31]MH_I2C_Read... [11:57:31]Read from MH i2c: D1 01 00 [11:57:31]MH_I2C_Read... [11:57:31]Read from MH i2c: D1 01 00 9B 02 00 6E [11:57:31]Write to MH i2c: 01 00 00 9C 02 9E [11:57:31]Write i2c OK [11:57:31]MH_I2C_Read... [11:57:31]OFD Sender: No OFD packet to send [11:57:31]*** Cut start [11:57:31]*** Partial cut [11:57:31]*** CUTSNS_PIN = 1 [11:57:31]*** CUTSNS_PIN = 0 [11:57:32]*** Brake cut motor [11:57:32]Read from MH i2c: 01 [11:57:32]MH_I2C_Read... [11:57:32]*** Stop cut motor [11:57:32]*** Cut end [11:57:32]Read from MH i2c: 01 07 00 [11:57:32]MH_I2C_Read... [11:57:32]Read from MH i2c: 01 07 00 9C 02 00 00 00 00 00 FF 0F B3 [11:57:32]process_action close_receipt done [11:57:32]requested_data is exist [11:57:32]produce_requested_data [11:57:32]requested_item fm.sn is exist - process it [11:57:32]wFMCommunicate request_size=4 [11:57:32]MH_SAM_APDU [11:57:32]CAPDU: 80 11 00 00 [11:57:32]Write to MH i2c: E2 08 00 9D 02 80 11 00 00 00 00 00 00 19 [11:57:32]Write i2c OK [11:57:32]MH_I2C_Read... [11:57:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:32]Read from MH i2c: E2 [11:57:32]MH_I2C_Read... [11:57:32]Read from MH i2c: E2 17 00 [11:57:32]MH_I2C_Read... [11:57:32]Read from MH i2c: E2 17 00 9D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 74 [11:57:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:57:32]wFMCommunicate OK [11:57:32]requested_item fd.num is exist - process it [11:57:32]SAM_PROTO_GetFieldsCounters [11:57:32]wFMCommunicate request_size=4 [11:57:32]MH_SAM_APDU [11:57:32]CAPDU: 80 13 00 00 [11:57:32]Write to MH i2c: E2 08 00 9E 02 80 13 00 00 00 00 00 00 1C [11:57:32]Write i2c OK [11:57:32]MH_I2C_Read... [11:57:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:32]Read from MH i2c: E2 [11:57:32]MH_I2C_Read... [11:57:32]Read from MH i2c: E2 62 00 [11:57:32]MH_I2C_Read... [11:57:32]Read from MH i2c: E2 62 00 9E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 87 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [11:57:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 87 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:57:32]wFMCommunicate OK [11:57:32]SAM_PROTO_GetFieldsCounters done [11:57:32]requested_item shift.num is exist - process it [11:57:32]requested_item shift.opened is exist - process it [11:57:32]req_shift_opened [11:57:32]FM_GetShiftState [11:57:32]SAM_PROTO_GetShiftState [11:57:32]wFMCommunicate request_size=4 [11:57:32]MH_SAM_APDU [11:57:32]CAPDU: 80 13 01 00 [11:57:32]Write to MH i2c: E2 08 00 9F 02 80 13 01 00 00 00 00 00 1E [11:57:32]Write i2c OK [11:57:32]MH_I2C_Read... [11:57:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:32]Read from MH i2c: E2 [11:57:32]MH_I2C_Read... [11:57:32]Read from MH i2c: E2 0E 00 [11:57:32]MH_I2C_Read... [11:57:32]Read from MH i2c: E2 0E 00 9F 02 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 AB [11:57:32]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [11:57:32]wFMCommunicate OK [11:57:32]SAM_PROTO_GetShiftState done [11:57:32]FM_GetShiftState done [11:57:32]req_shift_opened done [11:57:32]requested_item shift.open_date is exist - process it [11:57:32]req_shift_open_date [11:57:32]req_shift_open_date done [11:57:32]produce_requested_data done [11:57:32]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118151,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [11:57:32]process_action_free close_receipt [11:57:32]json_value_free [11:57:32]json_value_free done [11:57:32]process_json_proto returns [11:57:32]Send response to host [11:57:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118151,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [11:57:32]free response buf [11:57:32]execute_script done [11:57:32]execute_script returns [11:57:32]free content buf [11:57:32]Sock 9.Close socket [11:57:32]Sock 9.Thread stoped [11:57:36]OFD Sender: No OFD packet to send [11:57:41]OFD Sender: No OFD packet to send [11:57:46]OFD Sender: No OFD packet to send [11:57:51]OFD Sender: No OFD packet to send [11:57:56]OFD Sender: No OFD packet to send [11:58:01]OFD Sender: No OFD packet to send [11:58:06]OFD Sender: No OFD packet to send [11:58:11]OFD Sender: No OFD packet to send [11:58:16]OFD Sender: No OFD packet to send [11:58:21]OFD Sender: No OFD packet to send [11:58:26]OFD Sender: No OFD packet to send [11:58:31]OFD Sender: No OFD packet to send [11:58:36]OFD Sender: No OFD packet to send [11:58:41]OFD Sender: No OFD packet to send [11:58:46]OFD Sender: No OFD packet to send [11:58:51]OFD Sender: No OFD packet to send [11:58:56]OFD Sender: No OFD packet to send [11:59:01]OFD Sender: No OFD packet to send [11:59:06]OFD Sender: No OFD packet to send [11:59:11]OFD Sender: No OFD packet to send [11:59:16]OFD Sender: No OFD packet to send [11:59:21]OFD Sender: No OFD packet to send [11:59:26]OFD Sender: No OFD packet to send [11:59:31]OFD Sender: No OFD packet to send [11:59:36]OFD Sender: No OFD packet to send [11:59:41]OFD Sender: No OFD packet to send [11:59:46]accept exits with 10 [11:59:46]New connection [11:59:46]New thread 3067272548 created [11:59:46]Thread 3067415908 joined [11:59:46]Waiting for new connection... [11:59:46] Sock 10.Parse request [11:59:46]Sock 10.Check first char [11:59:46]Sock 10.First char is OK [11:59:46]request: POST /json_proto HTTP/1.0 [11:59:46]Method: POST [11:59:46]URL: /json_proto [11:59:46]Method is POST - this is cgi request [11:59:46]url: /json_proto [11:59:46]query_string will be loaded in cgi processing [11:59:46]execute_cgi json_proto POST (null) [11:59:46]execute_cgi path=json_proto method=POST [11:59:46]POST find Content-Length [11:59:46]Host: 172.17.45.7:8080 [11:59:46]Content-Length: 677 [11:59:46]Content-Type: application/json [11:59:46] [11:59:46]POST finish read [11:59:46]Found Content-Length = 677 [11:59:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.660, "sum" : 180.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 180.00, "total" : 180.00, "payments": [ { "type": 0, "sum" : 180.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:46]execute_script... [11:59: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)949025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.660, "sum" : 180.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 180.00, "total" : 180.00, "payments": [ { "type": 0, "sum" : 180.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:46]POST & json_proto [11:59:46]process_json_proto [11:59:46]json parsed OK: [11:59:46]protocol is kg_v1.0 [11:59:46]action value=close_receipt [11:59:46]process_action close_receipt [11:59:46]cmd_close_receipt [11:59:46]MH_GetDate [11:59:46]Write to MH i2c: F0 00 00 A0 02 91 [11:59:46]Write i2c OK [11:59:46]MH_I2C_Read... [11:59:46]Read from MH i2c: F0 [11:59:46]MH_I2C_Read... [11:59:46]Read from MH i2c: F0 09 00 [11:59:46]MH_I2C_Read... [11:59:46]Read from MH i2c: F0 09 00 A0 02 00 33 E1 A4 66 90 0F 3E 66 FB [11:59:46]GetLastDocTimeStamp 1722081449 [11:59:46]current date 1722081587 [11:59:46]FM_GetShiftState [11:59:46]SAM_PROTO_GetShiftState [11:59:46]wFMCommunicate request_size=4 [11:59:46]MH_SAM_APDU [11:59:46]CAPDU: 80 13 01 00 [11:59:46]Write to MH i2c: E2 08 00 A1 02 80 13 01 00 00 00 00 00 20 [11:59:46]Write i2c OK [11:59:46]MH_I2C_Read... [11:59:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:46]Read from MH i2c: E2 [11:59:46]MH_I2C_Read... [11:59:46]Read from MH i2c: E2 0E 00 [11:59:46]MH_I2C_Read... [11:59:46]Read from MH i2c: E2 0E 00 A1 02 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 AD [11:59:46]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [11:59:46]wFMCommunicate OK [11:59:46]SAM_PROTO_GetShiftState done [11:59:46]FM_GetShiftState done [11:59:46]opened in 1722038845 [11:59:46]opened+sec_in_day 1722125245 [11:59:46]quantity*price = 18034 [11:59:46]sum+1 = 18036 [11:59:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 180.00 Внесено: 180.00 СДАЧА: 0.00 НСП 1% : 1.60 НДС 12% : 19.15 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 95 27.07.2024 11:59 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118152 ФПД: 106573942071929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T115947&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118152&fm=106573942071929&tin=02508201610067®Number=0000000000092660&sum=18000 [11:59:47]StoreToDocumentArchive [11:59:47]shift 432 fd 118152 [11:59:47]save to /storage/0432/doc_00118152 [11:59:47]save last doc name /storage/0432/doc_00118152 to /storage/kkm_last_doc_name [11:59:47]save OK [11:59:47]Clear old archive folders... [11:59:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:59:47]tlvbuf is 003819C0 [11:59:47]SAM_PROTO_ClearQueue [11:59:47]wFMCommunicate request_size=4 [11:59:47]MH_SAM_APDU [11:59:47]CAPDU: 80 09 00 00 [11:59:47]Write to MH i2c: E2 08 00 AE 02 80 09 00 00 00 00 00 00 22 [11:59:47]Write i2c OK [11:59:47]MH_I2C_Read... [11:59:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:47]Read from MH i2c: E2 [11:59:47]MH_I2C_Read... [11:59:47]Read from MH i2c: E2 03 00 [11:59:47]MH_I2C_Read... [11:59:47]Read from MH i2c: E2 03 00 AE 02 00 90 00 24 [11:59:47]RAPDU: 90 00 [11:59:47]wFMCommunicate OK [11:59:47]SAM_PROTO_ClearQueue done [11:59:47]KKMCreateOFDPacket [11:59:47]OFDProtocolAddRootSTLVToBuf [11:59:47]FM_MakeSignedData [11:59:47]FM_MakeSignedData [11:59:47]SAM_PROTO_SignData [11:59:47]wFMCommunicate request_size=4 [11:59:47]MH_SAM_APDU [11:59:47]CAPDU: 80 0D 01 02 [11:59:47]Write to MH i2c: E2 08 00 AF 02 80 0D 01 02 00 00 00 00 2A [11:59:47]Write i2c OK [11:59:47]MH_I2C_Read... [11:59:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:47]Read from MH i2c: E2 [11:59:47]MH_I2C_Read... [11:59:47]Read from MH i2c: E2 03 00 [11:59:47]MH_I2C_Read... [11:59:47]Read from MH i2c: E2 03 00 AF 02 00 90 00 25 [11:59:47]RAPDU: 90 00 [11:59:47]wFMCommunicate OK [11:59:47]wFMCommunicate request_size=255 [11:59:47]MH_SAM_APDU [11:59: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 34 FF 03 08 00 03 64 0A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 73 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 33 E1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 88 CD 01 00 35 04 06 00 60 [11:59:47]Write to MH i2c: E2 02 01 B0 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 34 FF 03 08 00 03 64 0A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 73 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 33 E1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 88 CD 01 00 35 04 06 00 60 00 00 28 [11:59:47]Write i2c OK [11:59:47]MH_I2C_Read... [11:59:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:47]Read from MH i2c: E2 [11:59:47]MH_I2C_Read... [11:59:47]Read from MH i2c: E2 03 00 [11:59:47]MH_I2C_Read... [11:59:47]Read from MH i2c: E2 03 00 B0 02 00 90 00 26 [11:59:47]RAPDU: 90 00 [11:59:47]wFMCommunicate OK [11:59:47]wFMCommunicate request_size=10 [11:59:47]MH_SAM_APDU [11:59:47]CAPDU: 80 0D 02 02 05 ED AD F5 A2 79 [11:59:47]Write to MH i2c: E2 0D 00 B1 02 80 0D 02 02 05 00 ED AD F5 A2 79 00 00 E1 [11:59:47]Write i2c OK [11:59:47]MH_I2C_Read... [11:59:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:47]Read from MH i2c: E2 [11:59:47]MH_I2C_Read... [11:59:47]Read from MH i2c: E2 03 00 [11:59:47]MH_I2C_Read... [11:59:47]Read from MH i2c: E2 03 00 B1 02 00 90 00 27 [11:59:47]RAPDU: 90 00 [11:59:47]wFMCommunicate OK [11:59:47]wFMCommunicate request_size=4 [11:59:47]MH_SAM_APDU [11:59:47]CAPDU: 80 0D 03 02 [11:59:47]Write to MH i2c: E2 08 00 B2 02 80 0D 03 02 00 00 00 00 2F [11:59:47]Write i2c OK [11:59:47]MH_I2C_Read... [11:59:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:47]Read from MH i2c: E2 [11:59:47]MH_I2C_Read... [11:59:47]Read from MH i2c: E2 0B 00 [11:59:47]MH_I2C_Read... [11:59:47]Read from MH i2c: E2 0B 00 B2 02 00 FC BE 2B 07 87 78 15 93 90 00 C3 [11:59:47]RAPDU: FC BE 2B 07 87 78 15 93 90 00 [11:59:47]wFMCommunicate OK [11:59:47]SAM_PROTO_SignData done [11:59:47]FM_MakeSignedData done [11:59:47]CreateOFDProtocolMessage [11:59:47]wFMCommunicate request_size=4 [11:59:47]MH_SAM_APDU [11:59:47]CAPDU: 80 11 00 00 [11:59:47]Write to MH i2c: E2 08 00 B3 02 80 11 00 00 00 00 00 00 2F [11:59:47]Write i2c OK [11:59:47]MH_I2C_Read... [11:59:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:47]Read from MH i2c: E2 [11:59:47]MH_I2C_Read... [11:59:47]Read from MH i2c: E2 17 00 [11:59:47]MH_I2C_Read... [11:59:47]Read from MH i2c: E2 17 00 B3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8A [11:59:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:59:47]wFMCommunicate OK [11:59:47]CreateOFDProtocolMessage done [11:59:47]OFDSenderStorePacket 118152 [11:59:47]StoreOFDPacket docnum=118152 [11:59:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7C 81 07 01 00 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 64 0A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 73 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 33 E1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 88 CD 01 00 35 04 06 00 60 ED AD F5 A2 79 FC BE 2B 07 87 78 15 93 [11:59:47]CheckFolder [11:59:47]dirname=/storage/ofd_packets [11:59:47]CheckFolder done [11:59:47]ProducePacketName [11:59:47]name=ofd_packets/00118152 [11:59:47]NVStorageSaveData ofd_packets/00118152 [11:59:47]File name is /storage/ofd_packets/00118152 [11:59:47]Write 301 bytes [11:59:47]NVStorageSaveData done [11:59:47]OFDSenderStorePacket done [11:59:47]KKMCreateOFDPacket done [11:59:47]NVStorageSaveData kkm_last_timestamp [11:59:47]File name is /storage/kkm_last_timestamp [11:59:47]Write 4 bytes [11:59:47]NVStorageSaveData done [11:59:47]ExternCall_PrintAddStr [11:59:47]wPrintStart [11:59:47]Write to MH i2c: 01 00 00 B4 02 B6 [11:59:47]Write i2c OK [11:59:47]MH_I2C_Read... [11:59:47]Read from MH i2c: 01 [11:59:47]MH_I2C_Read... [11:59:47]Read from MH i2c: 01 07 00 [11:59:47]MH_I2C_Read... [11:59:47]Read from MH i2c: 01 07 00 B4 02 00 00 00 00 00 FF 0F CB [11:59:47]RasterBufferAndPrint [11:59:47]line Счет N : (1)949025 [11:59:47]line ИНН: 02508201610067 [11:59:47]line Контрольно-Кассовый Чек [11:59:47]line ПРОДАЖА [11:59:47]line ТРК (МРК, ГНК) : 51 [11:59:47]line Товар: 2710124130 [11:59:47]line Аи-92-К-4 [11:59:47]line 2.660 * 67.80 [11:59:47]line = 180.35 [11:59:47]line НДС 12% НСП 1% [11:59:47]line > о реализуемом товаре [11:59:47]line ОКРУГЛЕНИЕ: -0.35 [11:59:47]line ИТОГО: 180.00 [11:59:47]line Внесено: 180.00 [11:59:47]line СДАЧА: 0.00 [11:59:47]line НСП 1% : 1.60 [11:59:47]line НДС 12% : 19.15 [11:59:47]line Наличными: 180.00 [11:59:47]line Безнал.: 0.00 [11:59:47]line Место: АЗС № 134 "Партнер Нефть" [11:59:47]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:59:47]line СНО: Общий режим [11:59:47]line Чек 95 27.07.2024 11:59 [11:59:47]line Смена: 432 ФФД: 1.0 [11:59:47]line ЗНМ: 0300000044 [11:59:47]line РНМ: 0000000000092660 [11:59:47]line Версия ККМ: 001 [11:59:47]line ФМ: 0000000000874939 [11:59:47]line ФД: 118152 [11:59:47]line ФПД: 106573942071929 [11:59:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T115947&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118152&fm=106573942071929&tin=02508201610067®Number=0000000000092660&sum=18000 [11:59:48]OFD Sender: Processing packet 118152 [packets to send 85, broken 84] [11:59:48]ProducePacketName [11:59:48]name=ofd_packets/00118152 [11:59:48]OFD Sender: To server: pG, [11:59:48]CommunicateWithHost lk.salyk.kg:30040 [11:59:48]ConnectInit lk.salyk.kg [11:59:48]written 0, free lines is 4095 [11:59:48]Connected sock=9 [11:59:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7C 81 07 01 00 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 64 0A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 73 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 33 E1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 88 CD 01 00 35 04 06 00 60 ED AD F5 A2 79 FC BE 2B 07 87 78 15 93 [11:59:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 57 B1 47 00 27 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 88 CD 01 00 F4 03 04 00 C6 8E A4 66 B6 04 01 00 00 A0 FF 77 37 4E 1A 0F 95 [11:59:48]CommunicateWithHost err = 0 [11:59:48]CheckOFDResponse [11:59:48]1017 (14) - 77093643461234 [11:59:48]1041 (16) - 0000000000874939 [11:59:48]1040 (4) - 118152 [11:59:48]1012 (4) - 27.07.2024 06:08 [11:59:48]1206 (1) - 0 [11:59:48]OFD Sender: Remove packet 118152 [11:59:48]ProducePacketName [11:59:48]name=ofd_packets/00118152 [11:59:48]NVStorageDeleteData [11:59:48]Write to MH i2c: 01 00 00 DE 02 E0 [11:59:48]Write i2c OK [11:59:48]MH_I2C_Read... [11:59:48]Read from MH i2c: 01 [11:59:48]MH_I2C_Read... [11:59:48]Read from MH i2c: 01 07 00 [11:59:48]MH_I2C_Read... [11:59:48]Read from MH i2c: 01 07 00 DE 02 00 00 00 00 00 F3 0C E6 [11:59:48]RasterBufferAndPrint [11:59:48]line [11:59:48]line [11:59:48]line [11:59:48]line [11:59:48]line [11:59:48]written 0, free lines is 3322 [11:59:48]MH_Cut [11:59:48]Write to MH i2c: D1 01 00 E5 02 01 B9 [11:59:48]Write i2c OK [11:59:48]MH_I2C_Read... [11:59:48]Read from MH i2c: D1 [11:59:48]MH_I2C_Read... [11:59:48]Read from MH i2c: D1 01 00 [11:59:48]MH_I2C_Read... [11:59:48]Read from MH i2c: D1 01 00 E5 02 00 B8 [11:59:48]Write to MH i2c: 01 00 00 E6 02 E8 [11:59:48]Write i2c OK [11:59:48]MH_I2C_Read... [11:59:48]OFD Sender: No OFD packet to send [11:59:49]*** Cut start [11:59:49]*** Partial cut [11:59:49]*** CUTSNS_PIN = 1 [11:59:49]*** CUTSNS_PIN = 0 [11:59:49]*** Brake cut motor [11:59:49]Read from MH i2c: 01 [11:59:49]MH_I2C_Read... [11:59:49]*** Stop cut motor [11:59:49]*** Cut end [11:59:49]Read from MH i2c: 01 07 00 [11:59:49]MH_I2C_Read... [11:59:49]Read from MH i2c: 01 07 00 E6 02 00 00 00 00 00 FF 0F FD [11:59:49]process_action close_receipt done [11:59:49]requested_data is exist [11:59:49]produce_requested_data [11:59:49]requested_item fm.sn is exist - process it [11:59:49]wFMCommunicate request_size=4 [11:59:49]MH_SAM_APDU [11:59:49]CAPDU: 80 11 00 00 [11:59:49]Write to MH i2c: E2 08 00 E7 02 80 11 00 00 00 00 00 00 63 [11:59:49]Write i2c OK [11:59:49]MH_I2C_Read... [11:59:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:49]Read from MH i2c: E2 [11:59:49]MH_I2C_Read... [11:59:49]Read from MH i2c: E2 17 00 [11:59:49]MH_I2C_Read... [11:59:49]Read from MH i2c: E2 17 00 E7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BE [11:59:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:59:49]wFMCommunicate OK [11:59:49]requested_item fd.num is exist - process it [11:59:49]SAM_PROTO_GetFieldsCounters [11:59:49]wFMCommunicate request_size=4 [11:59:49]MH_SAM_APDU [11:59:49]CAPDU: 80 13 00 00 [11:59:49]Write to MH i2c: E2 08 00 E8 02 80 13 00 00 00 00 00 00 66 [11:59:49]Write i2c OK [11:59:49]MH_I2C_Read... [11:59:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:50]Read from MH i2c: E2 [11:59:50]MH_I2C_Read... [11:59:50]Read from MH i2c: E2 62 00 [11:59:50]MH_I2C_Read... [11:59:50]Read from MH i2c: E2 62 00 E8 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 88 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [11:59:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 88 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:59:50]wFMCommunicate OK [11:59:50]SAM_PROTO_GetFieldsCounters done [11:59:50]requested_item shift.num is exist - process it [11:59:50]requested_item shift.opened is exist - process it [11:59:50]req_shift_opened [11:59:50]FM_GetShiftState [11:59:50]SAM_PROTO_GetShiftState [11:59:50]wFMCommunicate request_size=4 [11:59:50]MH_SAM_APDU [11:59:50]CAPDU: 80 13 01 00 [11:59:50]Write to MH i2c: E2 08 00 E9 02 80 13 01 00 00 00 00 00 68 [11:59:50]Write i2c OK [11:59:50]MH_I2C_Read... [11:59:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:50]Read from MH i2c: E2 [11:59:50]MH_I2C_Read... [11:59:50]Read from MH i2c: E2 0E 00 [11:59:50]MH_I2C_Read... [11:59:50]Read from MH i2c: E2 0E 00 E9 02 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 F5 [11:59:50]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [11:59:50]wFMCommunicate OK [11:59:50]SAM_PROTO_GetShiftState done [11:59:50]FM_GetShiftState done [11:59:50]req_shift_opened done [11:59:50]requested_item shift.open_date is exist - process it [11:59:50]req_shift_open_date [11:59:50]req_shift_open_date done [11:59:50]produce_requested_data done [11:59:50]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118152,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [11:59:50]process_action_free close_receipt [11:59:50]json_value_free [11:59:50]json_value_free done [11:59:50]process_json_proto returns [11:59:50]Send response to host [11:59:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118152,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [11:59:50]free response buf [11:59:50]execute_script done [11:59:50]execute_script returns [11:59:50]free content buf [11:59:50]Sock 10.Close socket [11:59:50]Sock 10.Thread stoped [11:59:53]OFD Sender: No OFD packet to send [11:59:58]OFD Sender: No OFD packet to send [12:00:03]OFD Sender: No OFD packet to send [12:00:08]OFD Sender: No OFD packet to send [12:00:13]OFD Sender: No OFD packet to send [12:00:18]OFD Sender: No OFD packet to send [12:00:23]OFD Sender: No OFD packet to send [12:00:28]OFD Sender: No OFD packet to send [12:00:33]OFD Sender: No OFD packet to send [12:00:38]OFD Sender: No OFD packet to send [12:00:41]accept exits with 7 [12:00:41]New connection [12:00:41]New thread 3067415908 created [12:00:41]Thread 3067272548 joined [12:00:41]Waiting for new connection... [12:00:41] Sock 7.Parse request [12:00:41]Sock 7.Check first char [12:00:41]Sock 7.First char is OK [12:00:41]request: POST /json_proto HTTP/1.0 [12:00:41]Method: POST [12:00:41]URL: /json_proto [12:00:41]Method is POST - this is cgi request [12:00:41]url: /json_proto [12:00:41]query_string will be loaded in cgi processing [12:00:41]execute_cgi json_proto POST (null) [12:00:41]execute_cgi path=json_proto method=POST [12:00:41]POST find Content-Length [12:00:41]Host: 172.17.45.7:8080 [12:00:41]Content-Length: 677 [12:00:41]Content-Type: application/json [12:00:41] [12:00:41]POST finish read [12:00:41]Found Content-Length = 677 [12:00:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:41]execute_script... [12:00:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:41]POST & json_proto [12:00:41]process_json_proto [12:00:41]json parsed OK: [12:00:41]protocol is kg_v1.0 [12:00:41]action value=close_receipt [12:00:41]process_action close_receipt [12:00:41]cmd_close_receipt [12:00:41]MH_GetDate [12:00:41]Write to MH i2c: F0 00 00 EA 02 DB [12:00:41]Write i2c OK [12:00:41]MH_I2C_Read... [12:00:41]Read from MH i2c: F0 [12:00:41]MH_I2C_Read... [12:00:41]Read from MH i2c: F0 09 00 [12:00:41]MH_I2C_Read... [12:00:41]Read from MH i2c: F0 09 00 EA 02 00 6A E1 A4 66 90 0F 3E 66 7C [12:00:41]GetLastDocTimeStamp 1722081587 [12:00:41]current date 1722081642 [12:00:41]FM_GetShiftState [12:00:41]SAM_PROTO_GetShiftState [12:00:41]wFMCommunicate request_size=4 [12:00:41]MH_SAM_APDU [12:00:41]CAPDU: 80 13 01 00 [12:00:41]Write to MH i2c: E2 08 00 EB 02 80 13 01 00 00 00 00 00 6A [12:00:41]Write i2c OK [12:00:41]MH_I2C_Read... [12:00:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:41]Read from MH i2c: E2 [12:00:41]MH_I2C_Read... [12:00:41]Read from MH i2c: E2 0E 00 [12:00:41]MH_I2C_Read... [12:00:41]Read from MH i2c: E2 0E 00 EB 02 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 F7 [12:00:41]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [12:00:41]wFMCommunicate OK [12:00:41]SAM_PROTO_GetShiftState done [12:00:41]FM_GetShiftState done [12:00:41]opened in 1722038845 [12:00:41]opened+sec_in_day 1722125245 [12:00:41]quantity*price = 30035 [12:00:41]sum+1 = 30036 [12:00:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 96 27.07.2024 12:00 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118153 ФПД: 180716593540888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T120042&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118153&fm=180716593540888&tin=02508201610067®Number=0000000000092660&sum=30000 [12:00:42]StoreToDocumentArchive [12:00:42]shift 432 fd 118153 [12:00:42]save to /storage/0432/doc_00118153 [12:00:42]save last doc name /storage/0432/doc_00118153 to /storage/kkm_last_doc_name [12:00:42]save OK [12:00:42]Clear old archive folders... [12:00:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:00:42]tlvbuf is 00366B20 [12:00:42]SAM_PROTO_ClearQueue [12:00:42]wFMCommunicate request_size=4 [12:00:42]MH_SAM_APDU [12:00:42]CAPDU: 80 09 00 00 [12:00:42]Write to MH i2c: E2 08 00 F8 02 80 09 00 00 00 00 00 00 6C [12:00:42]Write i2c OK [12:00:42]MH_I2C_Read... [12:00:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:42]Read from MH i2c: E2 [12:00:42]MH_I2C_Read... [12:00:42]Read from MH i2c: E2 03 00 [12:00:42]MH_I2C_Read... [12:00:42]Read from MH i2c: E2 03 00 F8 02 00 90 00 6E [12:00:42]RAPDU: 90 00 [12:00:42]wFMCommunicate OK [12:00:42]SAM_PROTO_ClearQueue done [12:00:42]KKMCreateOFDPacket [12:00:42]OFDProtocolAddRootSTLVToBuf [12:00:42]FM_MakeSignedData [12:00:42]FM_MakeSignedData [12:00:42]SAM_PROTO_SignData [12:00:42]wFMCommunicate request_size=4 [12:00:42]MH_SAM_APDU [12:00:42]CAPDU: 80 0D 01 02 [12:00:42]Write to MH i2c: E2 08 00 F9 02 80 0D 01 02 00 00 00 00 74 [12:00:42]Write i2c OK [12:00:42]MH_I2C_Read... [12:00:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:42]Read from MH i2c: E2 [12:00:42]MH_I2C_Read... [12:00:42]Read from MH i2c: E2 03 00 [12:00:42]MH_I2C_Read... [12:00:42]Read from MH i2c: E2 03 00 F9 02 00 90 00 6F [12:00:42]RAPDU: 90 00 [12:00:42]wFMCommunicate OK [12:00:42]wFMCommunicate request_size=255 [12:00:42]MH_SAM_APDU [12:00:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 6A E1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 89 CD 01 00 35 04 06 00 A4 [12:00:42]Write to MH i2c: E2 02 01 FA 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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 6A E1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 89 CD 01 00 35 04 06 00 A4 00 00 78 [12:00:42]Write i2c OK [12:00:42]MH_I2C_Read... [12:00:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:43]Read from MH i2c: E2 [12:00:43]MH_I2C_Read... [12:00:43]Read from MH i2c: E2 03 00 [12:00:43]MH_I2C_Read... [12:00:43]Read from MH i2c: E2 03 00 FA 02 00 90 00 70 [12:00:43]RAPDU: 90 00 [12:00:43]wFMCommunicate OK [12:00:43]wFMCommunicate request_size=10 [12:00:43]MH_SAM_APDU [12:00:43]CAPDU: 80 0D 02 02 05 5C 5C 5C EF 18 [12:00:43]Write to MH i2c: E2 0D 00 FB 02 80 0D 02 02 05 00 5C 5C 5C EF 18 00 00 9C [12:00:43]Write i2c OK [12:00:43]MH_I2C_Read... [12:00:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:43]Read from MH i2c: E2 [12:00:43]MH_I2C_Read... [12:00:43]Read from MH i2c: E2 03 00 [12:00:43]MH_I2C_Read... [12:00:43]Read from MH i2c: E2 03 00 FB 02 00 90 00 71 [12:00:43]RAPDU: 90 00 [12:00:43]wFMCommunicate OK [12:00:43]wFMCommunicate request_size=4 [12:00:43]MH_SAM_APDU [12:00:43]CAPDU: 80 0D 03 02 [12:00:43]Write to MH i2c: E2 08 00 FC 02 80 0D 03 02 00 00 00 00 79 [12:00:43]Write i2c OK [12:00:43]MH_I2C_Read... [12:00:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:43]Read from MH i2c: E2 [12:00:43]MH_I2C_Read... [12:00:43]Read from MH i2c: E2 0B 00 [12:00:43]MH_I2C_Read... [12:00:43]Read from MH i2c: E2 0B 00 FC 02 00 41 29 A4 44 A2 7F 6A 22 90 00 79 [12:00:43]RAPDU: 41 29 A4 44 A2 7F 6A 22 90 00 [12:00:43]wFMCommunicate OK [12:00:43]SAM_PROTO_SignData done [12:00:43]FM_MakeSignedData done [12:00:43]CreateOFDProtocolMessage [12:00:43]wFMCommunicate request_size=4 [12:00:43]MH_SAM_APDU [12:00:43]CAPDU: 80 11 00 00 [12:00:43]Write to MH i2c: E2 08 00 FD 02 80 11 00 00 00 00 00 00 79 [12:00:43]Write i2c OK [12:00:43]MH_I2C_Read... [12:00:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:43]Read from MH i2c: E2 [12:00:43]MH_I2C_Read... [12:00:43]Read from MH i2c: E2 17 00 [12:00:43]MH_I2C_Read... [12:00:43]Read from MH i2c: E2 17 00 FD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D4 [12:00:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:00:43]wFMCommunicate OK [12:00:43]CreateOFDProtocolMessage done [12:00:43]OFDSenderStorePacket 118153 [12:00:43]StoreOFDPacket docnum=118153 [12:00:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 48 BA 07 01 E5 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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 6A E1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 89 CD 01 00 35 04 06 00 A4 5C 5C 5C EF 18 41 29 A4 44 A2 7F 6A 22 [12:00:43]CheckFolder [12:00:43]dirname=/storage/ofd_packets [12:00:43]CheckFolder done [12:00:43]ProducePacketName [12:00:43]name=ofd_packets/00118153 [12:00:43]NVStorageSaveData ofd_packets/00118153 [12:00:43]File name is /storage/ofd_packets/00118153 [12:00:43]Write 301 bytes [12:00:43]NVStorageSaveData done [12:00:43]OFDSenderStorePacket done [12:00:43]KKMCreateOFDPacket done [12:00:43]NVStorageSaveData kkm_last_timestamp [12:00:43]File name is /storage/kkm_last_timestamp [12:00:43]Write 4 bytes [12:00:43]NVStorageSaveData done [12:00:43]ExternCall_PrintAddStr [12:00:43]wPrintStart [12:00:43]Write to MH i2c: 01 00 00 FE 02 00 [12:00:43]Write i2c OK [12:00:43]MH_I2C_Read... [12:00:43]Read from MH i2c: 01 [12:00:43]MH_I2C_Read... [12:00:43]Read from MH i2c: 01 07 00 [12:00:43]MH_I2C_Read... [12:00:43]Read from MH i2c: 01 07 00 FE 02 00 00 00 00 00 FF 0F 15 [12:00:43]RasterBufferAndPrint [12:00:43]line Счет N : (1)949026 [12:00:43]line ИНН: 02508201610067 [12:00:43]line Контрольно-Кассовый Чек [12:00:43]line ПРОДАЖА [12:00:43]line ТРК (МРК, ГНК) : 41 [12:00:43]line Товар: 2710124130 [12:00:43]line Аи-92-К-4 [12:00:43]line 4.430 * 67.80 [12:00:43]line = 300.35 [12:00:43]line НДС 12% НСП 1% [12:00:43]line > о реализуемом товаре [12:00:43]line ОКРУГЛЕНИЕ: -0.35 [12:00:43]line ИТОГО: 300.00 [12:00:43]line Внесено: 300.00 [12:00:43]line СДАЧА: 0.00 [12:00:43]line НСП 1% : 2.66 [12:00:43]line НДС 12% : 31.90 [12:00:43]line Наличными: 300.00 [12:00:43]line Безнал.: 0.00 [12:00:43]line Место: АЗС № 134 "Партнер Нефть" [12:00:43]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:00:43]line СНО: Общий режим [12:00:43]line Чек 96 27.07.2024 12:00 [12:00:43]line Смена: 432 ФФД: 1.0 [12:00:43]line ЗНМ: 0300000044 [12:00:43]line РНМ: 0000000000092660 [12:00:43]line Версия ККМ: 001 [12:00:43]line ФМ: 0000000000874939 [12:00:43]line ФД: 118153 [12:00:43]line ФПД: 180716593540888 [12:00:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T120042&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118153&fm=180716593540888&tin=02508201610067®Number=0000000000092660&sum=30000 [12:00:43]written 0, free lines is 4095 [12:00:43]OFD Sender: Processing packet 118153 [packets to send 85, broken 84] [12:00:43]ProducePacketName [12:00:43]name=ofd_packets/00118153 [12:00:43]OFD Sender: To server: pG, [12:00:43]CommunicateWithHost lk.salyk.kg:30040 [12:00:43]ConnectInit lk.salyk.kg [12:00:43]Write to MH i2c: 01 00 00 28 03 2B [12:00:43]Write i2c OK [12:00:43]MH_I2C_Read... [12:00:43]Read from MH i2c: 01 [12:00:43]MH_I2C_Read... [12:00:43]Read from MH i2c: 01 07 00 [12:00:43]MH_I2C_Read... [12:00:43]Read from MH i2c: 01 07 00 28 03 00 00 00 00 00 E3 0C 21 [12:00:43]RasterBufferAndPrint [12:00:43]line [12:00:43]line [12:00:43]line [12:00:43]line [12:00:43]line [12:00:43]written 0, free lines is 3305 [12:00:43]MH_Cut [12:00:43]Write to MH i2c: D1 01 00 2F 03 01 04 [12:00:43]Write i2c OK [12:00:43]MH_I2C_Read... [12:00:43]Read from MH i2c: D1 [12:00:43]MH_I2C_Read... [12:00:43]Read from MH i2c: D1 01 00 [12:00:43]MH_I2C_Read... [12:00:43]Read from MH i2c: D1 01 00 2F 03 00 03 [12:00:43]Write to MH i2c: 01 00 00 30 03 33 [12:00:43]Write i2c OK [12:00:43]MH_I2C_Read... [12:00:43]Connected sock=11 [12:00:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 48 BA 07 01 E5 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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 6A E1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 89 CD 01 00 35 04 06 00 A4 5C 5C 5C EF 18 41 29 A4 44 A2 7F 6A 22 [12:00:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 FA 98 47 00 1A DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 89 CD 01 00 F4 03 04 00 FD 8E A4 66 B6 04 01 00 00 8E 07 02 1D F8 24 07 E0 [12:00:44]CommunicateWithHost err = 0 [12:00:44]CheckOFDResponse [12:00:44]1017 (14) - 77093643461234 [12:00:44]1041 (16) - 0000000000874939 [12:00:44]1040 (4) - 118153 [12:00:44]1012 (4) - 27.07.2024 06:09 [12:00:44]1206 (1) - 0 [12:00:44]OFD Sender: Remove packet 118153 [12:00:44]ProducePacketName [12:00:44]name=ofd_packets/00118153 [12:00:44]NVStorageDeleteData [12:00:44]OFD Sender: No OFD packet to send [12:00:44]*** Cut start [12:00:44]*** Partial cut [12:00:44]*** CUTSNS_PIN = 1 [12:00:44]*** CUTSNS_PIN = 0 [12:00:44]*** Brake cut motor [12:00:45]Read from MH i2c: 01 [12:00:45]MH_I2C_Read... [12:00:45]*** Stop cut motor [12:00:45]*** Cut end [12:00:45]Read from MH i2c: 01 07 00 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: 01 07 00 30 03 00 00 00 00 00 FF 0F 48 [12:00:45]process_action close_receipt done [12:00:45]requested_data is exist [12:00:45]produce_requested_data [12:00:45]requested_item fm.sn is exist - process it [12:00:45]wFMCommunicate request_size=4 [12:00:45]MH_SAM_APDU [12:00:45]CAPDU: 80 11 00 00 [12:00:45]Write to MH i2c: E2 08 00 31 03 80 11 00 00 00 00 00 00 AE [12:00:45]Write i2c OK [12:00:45]MH_I2C_Read... [12:00:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:45]Read from MH i2c: E2 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 17 00 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 17 00 31 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 09 [12:00:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:00:45]wFMCommunicate OK [12:00:45]requested_item fd.num is exist - process it [12:00:45]SAM_PROTO_GetFieldsCounters [12:00:45]wFMCommunicate request_size=4 [12:00:45]MH_SAM_APDU [12:00:45]CAPDU: 80 13 00 00 [12:00:45]Write to MH i2c: E2 08 00 32 03 80 13 00 00 00 00 00 00 B1 [12:00:45]Write i2c OK [12:00:45]MH_I2C_Read... [12:00:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:45]Read from MH i2c: E2 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 62 00 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 62 00 32 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 89 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [12:00:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 89 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:00:45]wFMCommunicate OK [12:00:45]SAM_PROTO_GetFieldsCounters done [12:00:45]requested_item shift.num is exist - process it [12:00:45]requested_item shift.opened is exist - process it [12:00:45]req_shift_opened [12:00:45]FM_GetShiftState [12:00:45]SAM_PROTO_GetShiftState [12:00:45]wFMCommunicate request_size=4 [12:00:45]MH_SAM_APDU [12:00:45]CAPDU: 80 13 01 00 [12:00:45]Write to MH i2c: E2 08 00 33 03 80 13 01 00 00 00 00 00 B3 [12:00:45]Write i2c OK [12:00:45]MH_I2C_Read... [12:00:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:45]Read from MH i2c: E2 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 0E 00 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 0E 00 33 03 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 40 [12:00:45]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [12:00:45]wFMCommunicate OK [12:00:45]SAM_PROTO_GetShiftState done [12:00:45]FM_GetShiftState done [12:00:45]req_shift_opened done [12:00:45]requested_item shift.open_date is exist - process it [12:00:45]req_shift_open_date [12:00:45]req_shift_open_date done [12:00:45]produce_requested_data done [12:00:45]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118153,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [12:00:45]process_action_free close_receipt [12:00:45]json_value_free [12:00:45]json_value_free done [12:00:45]process_json_proto returns [12:00:45]Send response to host [12:00:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118153,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [12:00:45]free response buf [12:00:45]execute_script done [12:00:45]execute_script returns [12:00:45]free content buf [12:00:45]Sock 7.Close socket [12:00:45]Sock 7.Thread stoped [12:00:49]OFD Sender: No OFD packet to send [12:00:54]OFD Sender: No OFD packet to send [12:00:59]OFD Sender: No OFD packet to send [12:01:04]OFD Sender: No OFD packet to send [12:01:09]OFD Sender: No OFD packet to send [12:01:14]OFD Sender: No OFD packet to send [12:01:19]OFD Sender: No OFD packet to send [12:01:24]OFD Sender: No OFD packet to send [12:01:29]OFD Sender: No OFD packet to send [12:01:34]OFD Sender: No OFD packet to send [12:01:39]OFD Sender: No OFD packet to send [12:01:44]OFD Sender: No OFD packet to send [12:01:49]OFD Sender: No OFD packet to send [12:01:54]OFD Sender: No OFD packet to send [12:01:59]OFD Sender: No OFD packet to send [12:02:04]OFD Sender: No OFD packet to send [12:02:09]OFD Sender: No OFD packet to send [12:02:14]OFD Sender: No OFD packet to send [12:02:19]OFD Sender: No OFD packet to send [12:02:24]OFD Sender: No OFD packet to send [12:02:29]OFD Sender: No OFD packet to send [12:02:34]OFD Sender: No OFD packet to send [12:02:39]OFD Sender: No OFD packet to send [12:02:44]OFD Sender: No OFD packet to send [12:02:49]OFD Sender: No OFD packet to send [12:02:54]OFD Sender: No OFD packet to send [12:02:59]OFD Sender: No OFD packet to send [12:03:04]OFD Sender: No OFD packet to send [12:03:09]OFD Sender: No OFD packet to send [12:03:14]OFD Sender: No OFD packet to send [12:03:19]OFD Sender: No OFD packet to send [12:03:24]OFD Sender: No OFD packet to send [12:03:29]OFD Sender: No OFD packet to send [12:03:34]OFD Sender: No OFD packet to send [12:03:39]OFD Sender: No OFD packet to send [12:03:44]OFD Sender: No OFD packet to send [12:03:49]OFD Sender: No OFD packet to send [12:03:54]OFD Sender: No OFD packet to send [12:03:59]OFD Sender: No OFD packet to send [12:04:04]OFD Sender: No OFD packet to send [12:04:09]OFD Sender: No OFD packet to send [12:04:14]OFD Sender: No OFD packet to send [12:04:17]accept exits with 9 [12:04:17]New connection [12:04:17]New thread 3067272548 created [12:04:17]Thread 3067415908 joined [12:04:17]Waiting for new connection... [12:04:17] Sock 9.Parse request [12:04:17]Sock 9.Check first char [12:04:17]Sock 9.First char is OK [12:04:17]request: POST /json_proto HTTP/1.0 [12:04:17]Method: POST [12:04:17]URL: /json_proto [12:04:17]Method is POST - this is cgi request [12:04:17]url: /json_proto [12:04:17]query_string will be loaded in cgi processing [12:04:17]execute_cgi json_proto POST (null) [12:04:17]execute_cgi path=json_proto method=POST [12:04:17]POST find Content-Length [12:04:17]Host: 172.17.45.7:8080 [12:04:17]Content-Length: 677 [12:04:17]Content-Type: application/json [12:04:17] [12:04:17]POST finish read [12:04:17]Found Content-Length = 677 [12:04:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:17]execute_script... [12: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)949027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:17]POST & json_proto [12:04:17]process_json_proto [12:04:17]json parsed OK: [12:04:17]protocol is kg_v1.0 [12:04:17]action value=close_receipt [12:04:17]process_action close_receipt [12:04:17]cmd_close_receipt [12:04:17]MH_GetDate [12:04:17]Write to MH i2c: F0 00 00 34 03 26 [12:04:17]Write i2c OK [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: F0 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: F0 09 00 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: F0 09 00 34 03 00 42 E2 A4 66 90 0F 3E 66 A0 [12:04:17]GetLastDocTimeStamp 1722081642 [12:04:17]current date 1722081858 [12:04:17]FM_GetShiftState [12:04:17]SAM_PROTO_GetShiftState [12:04:17]wFMCommunicate request_size=4 [12:04:17]MH_SAM_APDU [12:04:17]CAPDU: 80 13 01 00 [12:04:17]Write to MH i2c: E2 08 00 35 03 80 13 01 00 00 00 00 00 B5 [12:04:17]Write i2c OK [12:04:17]MH_I2C_Read... [12:04:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:17]Read from MH i2c: E2 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 0E 00 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 0E 00 35 03 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 42 [12:04:17]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [12:04:17]wFMCommunicate OK [12:04:17]SAM_PROTO_GetShiftState done [12:04:17]FM_GetShiftState done [12:04:17]opened in 1722038845 [12:04:17]opened+sec_in_day 1722125245 [12:04:17]quantity*price = 50010 [12:04:17]sum+1 = 50012 [12:04:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 97 27.07.2024 12:04 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118154 ФПД: 72783914255777 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T120418&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118154&fm=72783914255777&tin=02508201610067®Number=0000000000092660&sum=50000 [12:04:18]StoreToDocumentArchive [12:04:18]shift 432 fd 118154 [12:04:18]save to /storage/0432/doc_00118154 [12:04:18]save last doc name /storage/0432/doc_00118154 to /storage/kkm_last_doc_name [12:04:18]save OK [12:04:18]Clear old archive folders... [12:04:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:04:18]tlvbuf is 003690C0 [12:04:18]SAM_PROTO_ClearQueue [12:04:18]wFMCommunicate request_size=4 [12:04:18]MH_SAM_APDU [12:04:18]CAPDU: 80 09 00 00 [12:04:18]Write to MH i2c: E2 08 00 42 03 80 09 00 00 00 00 00 00 B7 [12:04:18]Write i2c OK [12:04:18]MH_I2C_Read... [12:04:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:18]Read from MH i2c: E2 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 03 00 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 03 00 42 03 00 90 00 B9 [12:04:18]RAPDU: 90 00 [12:04:18]wFMCommunicate OK [12:04:18]SAM_PROTO_ClearQueue done [12:04:18]KKMCreateOFDPacket [12:04:18]OFDProtocolAddRootSTLVToBuf [12:04:18]FM_MakeSignedData [12:04:18]FM_MakeSignedData [12:04:18]SAM_PROTO_SignData [12:04:18]wFMCommunicate request_size=4 [12:04:18]MH_SAM_APDU [12:04:18]CAPDU: 80 0D 01 02 [12:04:18]Write to MH i2c: E2 08 00 43 03 80 0D 01 02 00 00 00 00 BF [12:04:18]Write i2c OK [12:04:18]MH_I2C_Read... [12:04:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:18]Read from MH i2c: E2 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 03 00 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 03 00 43 03 00 90 00 BA [12:04:18]RAPDU: 90 00 [12:04:18]wFMCommunicate OK [12:04:18]wFMCommunicate request_size=255 [12:04:18]MH_SAM_APDU [12:04: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 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 42 E2 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8A CD 01 00 35 04 06 00 42 [12:04:18]Write to MH i2c: E2 02 01 44 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 42 E2 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8A CD 01 00 35 04 06 00 42 00 00 04 [12:04:18]Write i2c OK [12:04:18]MH_I2C_Read... [12:04:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:18]Read from MH i2c: E2 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 03 00 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 03 00 44 03 00 90 00 BB [12:04:18]RAPDU: 90 00 [12:04:18]wFMCommunicate OK [12:04:18]wFMCommunicate request_size=10 [12:04:18]MH_SAM_APDU [12:04:18]CAPDU: 80 0D 02 02 05 32 53 5A C5 A1 [12:04:18]Write to MH i2c: E2 0D 00 45 03 80 0D 02 02 05 00 32 53 5A C5 A1 00 00 11 [12:04:18]Write i2c OK [12:04:18]MH_I2C_Read... [12:04:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:18]Read from MH i2c: E2 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 03 00 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 03 00 45 03 00 90 00 BC [12:04:18]RAPDU: 90 00 [12:04:18]wFMCommunicate OK [12:04:18]wFMCommunicate request_size=4 [12:04:18]MH_SAM_APDU [12:04:18]CAPDU: 80 0D 03 02 [12:04:18]Write to MH i2c: E2 08 00 46 03 80 0D 03 02 00 00 00 00 C4 [12:04:18]Write i2c OK [12:04:18]MH_I2C_Read... [12:04:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:18]Read from MH i2c: E2 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 0B 00 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 0B 00 46 03 00 CC 2A 55 C7 43 D4 B1 96 90 00 35 [12:04:18]RAPDU: CC 2A 55 C7 43 D4 B1 96 90 00 [12:04:18]wFMCommunicate OK [12:04:18]SAM_PROTO_SignData done [12:04:18]FM_MakeSignedData done [12:04:18]CreateOFDProtocolMessage [12:04:18]wFMCommunicate request_size=4 [12:04:18]MH_SAM_APDU [12:04:18]CAPDU: 80 11 00 00 [12:04:18]Write to MH i2c: E2 08 00 47 03 80 11 00 00 00 00 00 00 C4 [12:04:18]Write i2c OK [12:04:18]MH_I2C_Read... [12:04:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:19]Read from MH i2c: E2 [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: E2 17 00 [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: E2 17 00 47 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1F [12:04:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:04:19]wFMCommunicate OK [12:04:19]CreateOFDProtocolMessage done [12:04:19]OFDSenderStorePacket 118154 [12:04:19]StoreOFDPacket docnum=118154 [12:04:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 CB F0 07 01 9A 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 42 E2 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8A CD 01 00 35 04 06 00 42 32 53 5A C5 A1 CC 2A 55 C7 43 D4 B1 96 [12:04:19]CheckFolder [12:04:19]dirname=/storage/ofd_packets [12:04:19]CheckFolder done [12:04:19]ProducePacketName [12:04:19]name=ofd_packets/00118154 [12:04:19]NVStorageSaveData ofd_packets/00118154 [12:04:19]File name is /storage/ofd_packets/00118154 [12:04:19]Write 301 bytes [12:04:19]NVStorageSaveData done [12:04:19]OFDSenderStorePacket done [12:04:19]KKMCreateOFDPacket done [12:04:19]NVStorageSaveData kkm_last_timestamp [12:04:19]File name is /storage/kkm_last_timestamp [12:04:19]Write 4 bytes [12:04:19]NVStorageSaveData done [12:04:19]ExternCall_PrintAddStr [12:04:19]wPrintStart [12:04:19]Write to MH i2c: 01 00 00 48 03 4B [12:04:19]Write i2c OK [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: 01 [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: 01 07 00 [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: 01 07 00 48 03 00 00 00 00 00 FF 0F 60 [12:04:19]RasterBufferAndPrint [12:04:19]line Счет N : (1)949027 [12:04:19]line ИНН: 02508201610067 [12:04:19]line Контрольно-Кассовый Чек [12:04:19]line ПРОДАЖА [12:04:19]line ТРК (МРК, ГНК) : 53 [12:04:19]line Товар: 2710124500 [12:04:19]line Аи-95-К-3 [12:04:19]line 6.740 * 74.20 [12:04:19]line = 500.11 [12:04:19]line НДС 12% НСП 1% [12:04:19]line > о реализуемом товаре [12:04:19]line ОКРУГЛЕНИЕ: -0.11 [12:04:19]line ИТОГО: 500.00 [12:04:19]line Внесено: 500.00 [12:04:19]line СДАЧА: 0.00 [12:04:19]line НСП 1% : 4.43 [12:04:19]line НДС 12% : 53.11 [12:04:19]line Наличными: 500.00 [12:04:19]line Безнал.: 0.00 [12:04:19]line Место: АЗС № 134 "Партнер Нефть" [12:04:19]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:04:19]line СНО: Общий режим [12:04:19]line Чек 97 27.07.2024 12:04 [12:04:19]line Смена: 432 ФФД: 1.0 [12:04:19]line ЗНМ: 0300000044 [12:04:19]line РНМ: 0000000000092660 [12:04:19]line Версия ККМ: 001 [12:04:19]line ФМ: 0000000000874939 [12:04:19]line ФД: 118154 [12:04:19]line ФПД: 72783914255777 [12:04:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T120418&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118154&fm=72783914255777&tin=02508201610067®Number=0000000000092660&sum=50000 [12:04:19]OFD Sender: Processing packet 118154 [packets to send 85, broken 84] [12:04:19]ProducePacketName [12:04:19]name=ofd_packets/00118154 [12:04:19]OFD Sender: To server: pG, [12:04:19]CommunicateWithHost lk.salyk.kg:30040 [12:04:19]ConnectInit lk.salyk.kg [12:04:19]written 0, free lines is 4095 [12:04:19]Connected sock=10 [12: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 34 39 33 39 0F 01 00 00 CB F0 07 01 9A 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 42 E2 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8A CD 01 00 35 04 06 00 42 32 53 5A C5 A1 CC 2A 55 C7 43 D4 B1 96 [12:04:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F1 48 47 00 72 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8A CD 01 00 F4 03 04 00 D5 8F A4 66 B6 04 01 00 00 D0 60 3B E7 C1 74 AC 63 [12:04:19]CommunicateWithHost err = 0 [12:04:19]CheckOFDResponse [12:04:19]1017 (14) - 77093643461234 [12:04:19]1041 (16) - 0000000000874939 [12:04:19]1040 (4) - 118154 [12:04:19]1012 (4) - 27.07.2024 06:12 [12:04:19]1206 (1) - 0 [12:04:19]OFD Sender: Remove packet 118154 [12:04:19]ProducePacketName [12:04:19]name=ofd_packets/00118154 [12:04:19]NVStorageDeleteData [12:04:19]Write to MH i2c: 01 00 00 72 03 75 [12:04:19]Write i2c OK [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: 01 [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: 01 07 00 [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: 01 07 00 72 03 00 00 00 00 00 E5 0C 6D [12:04:19]RasterBufferAndPrint [12:04:19]line [12:04:19]line [12:04:19]line [12:04:19]line [12:04:19]line [12:04:19]written 0, free lines is 3307 [12:04:19]MH_Cut [12:04:19]Write to MH i2c: D1 01 00 79 03 01 4E [12:04:19]Write i2c OK [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: D1 [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: D1 01 00 [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: D1 01 00 79 03 00 4D [12:04:19]Write to MH i2c: 01 00 00 7A 03 7D [12:04:19]Write i2c OK [12:04:19]MH_I2C_Read... [12:04:20]OFD Sender: No OFD packet to send [12:04:20]*** Cut start [12:04:20]*** Partial cut [12:04:20]*** CUTSNS_PIN = 1 [12:04:20]*** CUTSNS_PIN = 0 [12:04:20]*** Brake cut motor [12:04:21]Read from MH i2c: 01 [12:04:21]MH_I2C_Read... [12:04:21]*** Stop cut motor [12:04:21]*** Cut end [12:04:21]Read from MH i2c: 01 07 00 [12:04:21]MH_I2C_Read... [12:04:21]Read from MH i2c: 01 07 00 7A 03 00 00 00 00 00 FF 0F 92 [12:04:21]process_action close_receipt done [12:04:21]requested_data is exist [12:04:21]produce_requested_data [12:04:21]requested_item fm.sn is exist - process it [12:04:21]wFMCommunicate request_size=4 [12:04:21]MH_SAM_APDU [12:04:21]CAPDU: 80 11 00 00 [12:04:21]Write to MH i2c: E2 08 00 7B 03 80 11 00 00 00 00 00 00 F8 [12:04:21]Write i2c OK [12:04:21]MH_I2C_Read... [12:04:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:21]Read from MH i2c: E2 [12:04:21]MH_I2C_Read... [12:04:21]Read from MH i2c: E2 17 00 [12:04:21]MH_I2C_Read... [12:04:21]Read from MH i2c: E2 17 00 7B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 53 [12:04:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:04:21]wFMCommunicate OK [12:04:21]requested_item fd.num is exist - process it [12:04:21]SAM_PROTO_GetFieldsCounters [12:04:21]wFMCommunicate request_size=4 [12:04:21]MH_SAM_APDU [12:04:21]CAPDU: 80 13 00 00 [12:04:21]Write to MH i2c: E2 08 00 7C 03 80 13 00 00 00 00 00 00 FB [12:04:21]Write i2c OK [12:04:21]MH_I2C_Read... [12:04:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:21]Read from MH i2c: E2 [12:04:21]MH_I2C_Read... [12:04:21]Read from MH i2c: E2 62 00 [12:04:21]MH_I2C_Read... [12:04:21]Read from MH i2c: E2 62 00 7C 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8A CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [12: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8A CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:04:21]wFMCommunicate OK [12:04:21]SAM_PROTO_GetFieldsCounters done [12:04:21]requested_item shift.num is exist - process it [12:04:21]requested_item shift.opened is exist - process it [12:04:21]req_shift_opened [12:04:21]FM_GetShiftState [12:04:21]SAM_PROTO_GetShiftState [12:04:21]wFMCommunicate request_size=4 [12:04:21]MH_SAM_APDU [12:04:21]CAPDU: 80 13 01 00 [12:04:21]Write to MH i2c: E2 08 00 7D 03 80 13 01 00 00 00 00 00 FD [12:04:21]Write i2c OK [12:04:21]MH_I2C_Read... [12:04:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:21]Read from MH i2c: E2 [12:04:21]MH_I2C_Read... [12:04:21]Read from MH i2c: E2 0E 00 [12:04:21]MH_I2C_Read... [12:04:21]Read from MH i2c: E2 0E 00 7D 03 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 8A [12:04:21]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [12:04:21]wFMCommunicate OK [12:04:21]SAM_PROTO_GetShiftState done [12:04:21]FM_GetShiftState done [12:04:21]req_shift_opened done [12:04:21]requested_item shift.open_date is exist - process it [12:04:21]req_shift_open_date [12:04:21]req_shift_open_date done [12:04:21]produce_requested_data done [12:04:21]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118154,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [12:04:21]process_action_free close_receipt [12:04:21]json_value_free [12:04:21]json_value_free done [12:04:21]process_json_proto returns [12:04:21]Send response to host [12:04:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118154,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [12:04:21]free response buf [12:04:21]execute_script done [12:04:21]execute_script returns [12:04:21]free content buf [12:04:21]Sock 9.Close socket [12:04:21]Sock 9.Thread stoped [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:55]OFD Sender: No OFD packet to send [12:05:00]OFD Sender: No OFD packet to send [12:05:05]OFD Sender: No OFD packet to send [12:05:10]OFD Sender: No OFD packet to send [12:05:15]OFD Sender: No OFD packet to send [12:05:20]OFD Sender: No OFD packet to send [12:05:25]OFD Sender: No OFD packet to send [12:05:30]OFD Sender: No OFD packet to send [12:05:35]OFD Sender: No OFD packet to send [12:05:40]OFD Sender: No OFD packet to send [12:05:45]OFD Sender: No OFD packet to send [12:05:50]OFD Sender: No OFD packet to send [12:05:55]OFD Sender: No OFD packet to send [12:06:00]OFD Sender: No OFD packet to send [12:06:05]OFD Sender: No OFD packet to send [12:06:10]OFD Sender: No OFD packet to send [12:06:15]OFD Sender: No OFD packet to send [12:06:20]OFD Sender: No OFD packet to send [12:06:25]OFD Sender: No OFD packet to send [12:06:30]OFD Sender: No OFD packet to send [12:06:35]OFD Sender: No OFD packet to send [12:06:40]OFD Sender: No OFD packet to send [12:06:45]OFD Sender: No OFD packet to send [12:06:50]OFD Sender: No OFD packet to send [12:06:55]OFD Sender: No OFD packet to send [12:07:00]OFD Sender: No OFD packet to send [12:07:05]OFD Sender: No OFD packet to send [12:07:10]OFD Sender: No OFD packet to send [12:07:15]OFD Sender: No OFD packet to send [12:07:20]OFD Sender: No OFD packet to send [12:07:25]OFD Sender: No OFD packet to send [12:07:30]OFD Sender: No OFD packet to send [12:07:35]OFD Sender: No OFD packet to send [12:07:40]OFD Sender: No OFD packet to send [12:07:45]OFD Sender: No OFD packet to send [12:07:50]OFD Sender: No OFD packet to send [12:07:55]OFD Sender: No OFD packet to send [12:08:00]OFD Sender: No OFD packet to send [12:08:05]OFD Sender: No OFD packet to send [12:08:10]OFD Sender: No OFD packet to send [12:08:15]OFD Sender: No OFD packet to send [12:08:20]OFD Sender: No OFD packet to send [12:08:25]OFD Sender: No OFD packet to send [12:08:30]OFD Sender: No OFD packet to send [12:08:35]OFD Sender: No OFD packet to send [12:08:40]OFD Sender: No OFD packet to send [12:08:45]OFD Sender: No OFD packet to send [12:08:50]OFD Sender: No OFD packet to send [12:08:55]OFD Sender: No OFD packet to send [12:09:00]OFD Sender: No OFD packet to send [12:09:05]OFD Sender: No OFD packet to send [12:09:10]OFD Sender: No OFD packet to send [12:09:15]OFD Sender: No OFD packet to send [12:09:20]OFD Sender: No OFD packet to send [12:09:25]OFD Sender: No OFD packet to send [12:09:30]OFD Sender: No OFD packet to send [12:09:35]OFD Sender: No OFD packet to send [12:09:40]OFD Sender: No OFD packet to send [12:09:45]OFD Sender: No OFD packet to send [12:09:50]OFD Sender: No OFD packet to send [12:09:55]OFD Sender: No OFD packet to send [12:10:00]OFD Sender: No OFD packet to send [12:10:05]OFD Sender: No OFD packet to send [12:10:10]OFD Sender: No OFD packet to send [12:10:15]OFD Sender: No OFD packet to send [12:10:20]OFD Sender: No OFD packet to send [12:10:25]OFD Sender: No OFD packet to send [12:10:30]OFD Sender: No OFD packet to send [12:10:35]OFD Sender: No OFD packet to send [12:10:40]OFD Sender: No OFD packet to send [12:10:45]OFD Sender: No OFD packet to send [12:10:50]OFD Sender: No OFD packet to send [12:10:55]OFD Sender: No OFD packet to send [12:11:00]OFD Sender: No OFD packet to send [12:11:05]OFD Sender: No OFD packet to send [12:11:10]OFD Sender: No OFD packet to send [12:11:15]OFD Sender: No OFD packet to send [12:11:20]OFD Sender: No OFD packet to send [12:11:25]OFD Sender: No OFD packet to send [12:11:30]OFD Sender: No OFD packet to send [12:11:35]OFD Sender: No OFD packet to send [12:11:38]accept exits with 7 [12:11:38]New connection [12:11:38]New thread 3067415908 created [12:11:38]Thread 3067272548 joined [12:11:38]Waiting for new connection... [12:11:38] Sock 7.Parse request [12:11:38]Sock 7.Check first char [12:11:38]Sock 7.First char is OK [12:11:38]request: POST /json_proto HTTP/1.0 [12:11:38]Method: POST [12:11:38]URL: /json_proto [12:11:38]Method is POST - this is cgi request [12:11:38]url: /json_proto [12:11:38]query_string will be loaded in cgi processing [12:11:38]execute_cgi json_proto POST (null) [12:11:38]execute_cgi path=json_proto method=POST [12:11:38]POST find Content-Length [12:11:38]Host: 172.17.45.7:8080 [12:11:38]Content-Length: 677 [12:11:38]Content-Type: application/json [12:11:38] [12:11:38]POST finish read [12:11:38]Found Content-Length = 677 [12:11:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:38]execute_script... [12: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)949028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:38]POST & json_proto [12:11:38]process_json_proto [12:11:38]json parsed OK: [12:11:38]protocol is kg_v1.0 [12:11:38]action value=close_receipt [12:11:38]process_action close_receipt [12:11:38]cmd_close_receipt [12:11:38]MH_GetDate [12:11:38]Write to MH i2c: F0 00 00 7E 03 70 [12:11:38]Write i2c OK [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: F0 [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: F0 09 00 [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: F0 09 00 7E 03 00 FC E3 A4 66 90 0F 3E 66 A5 [12:11:38]GetLastDocTimeStamp 1722081858 [12:11:38]current date 1722082300 [12:11:38]FM_GetShiftState [12:11:38]SAM_PROTO_GetShiftState [12:11:38]wFMCommunicate request_size=4 [12:11:38]MH_SAM_APDU [12:11:38]CAPDU: 80 13 01 00 [12:11:38]Write to MH i2c: E2 08 00 7F 03 80 13 01 00 00 00 00 00 FF [12:11:38]Write i2c OK [12:11:38]MH_I2C_Read... [12:11:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:38]Read from MH i2c: E2 [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: E2 0E 00 [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: E2 0E 00 7F 03 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 8C [12:11:38]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [12:11:38]wFMCommunicate OK [12:11:38]SAM_PROTO_GetShiftState done [12:11:38]FM_GetShiftState done [12:11:38]opened in 1722038845 [12:11:38]opened+sec_in_day 1722125245 [12:11:38]quantity*price = 20001 [12:11:38]sum+1 = 20002 [12:11:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 98 27.07.2024 12:11 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118155 ФПД: 96182589657453 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T121140&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118155&fm=96182589657453&tin=02508201610067®Number=0000000000092660&sum=20000 [12:11:40]StoreToDocumentArchive [12:11:40]shift 432 fd 118155 [12:11:40]save to /storage/0432/doc_00118155 [12:11:40]save last doc name /storage/0432/doc_00118155 to /storage/kkm_last_doc_name [12:11:40]save OK [12:11:40]Clear old archive folders... [12:11:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:11:40]tlvbuf is 00359D80 [12:11:40]SAM_PROTO_ClearQueue [12:11:40]wFMCommunicate request_size=4 [12:11:40]MH_SAM_APDU [12:11:40]CAPDU: 80 09 00 00 [12:11:40]Write to MH i2c: E2 08 00 8C 03 80 09 00 00 00 00 00 00 01 [12:11:40]Write i2c OK [12:11:40]MH_I2C_Read... [12:11:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:40]Read from MH i2c: E2 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 03 00 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 03 00 8C 03 00 90 00 03 [12:11:40]RAPDU: 90 00 [12:11:40]wFMCommunicate OK [12:11:40]SAM_PROTO_ClearQueue done [12:11:40]KKMCreateOFDPacket [12:11:40]OFDProtocolAddRootSTLVToBuf [12:11:40]FM_MakeSignedData [12:11:40]FM_MakeSignedData [12:11:40]SAM_PROTO_SignData [12:11:40]wFMCommunicate request_size=4 [12:11:40]MH_SAM_APDU [12:11:40]CAPDU: 80 0D 01 02 [12:11:40]Write to MH i2c: E2 08 00 8D 03 80 0D 01 02 00 00 00 00 09 [12:11:40]Write i2c OK [12:11:40]MH_I2C_Read... [12:11:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:40]Read from MH i2c: E2 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 03 00 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 03 00 8D 03 00 90 00 04 [12:11:40]RAPDU: 90 00 [12:11:40]wFMCommunicate OK [12:11:40]wFMCommunicate request_size=255 [12:11:40]MH_SAM_APDU [12: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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 FC E3 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8B CD 01 00 35 04 06 00 57 [12:11:40]Write to MH i2c: E2 02 01 8E 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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 FC E3 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8B CD 01 00 35 04 06 00 57 00 00 3B [12:11:40]Write i2c OK [12:11:40]MH_I2C_Read... [12:11:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:40]Read from MH i2c: E2 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 03 00 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 03 00 8E 03 00 90 00 05 [12:11:40]RAPDU: 90 00 [12:11:40]wFMCommunicate OK [12:11:40]wFMCommunicate request_size=10 [12:11:40]MH_SAM_APDU [12:11:40]CAPDU: 80 0D 02 02 05 7A 41 17 11 6D [12:11:40]Write to MH i2c: E2 0D 00 8F 03 80 0D 02 02 05 00 7A 41 17 11 6D 00 00 66 [12:11:40]Write i2c OK [12:11:40]MH_I2C_Read... [12:11:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:40]Read from MH i2c: E2 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 03 00 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 03 00 8F 03 00 90 00 06 [12:11:40]RAPDU: 90 00 [12:11:40]wFMCommunicate OK [12:11:40]wFMCommunicate request_size=4 [12:11:40]MH_SAM_APDU [12:11:40]CAPDU: 80 0D 03 02 [12:11:40]Write to MH i2c: E2 08 00 90 03 80 0D 03 02 00 00 00 00 0E [12:11:40]Write i2c OK [12:11:40]MH_I2C_Read... [12:11:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:40]Read from MH i2c: E2 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 0B 00 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 0B 00 90 03 00 EB A7 AB AE 21 12 A7 E8 90 00 BC [12:11:40]RAPDU: EB A7 AB AE 21 12 A7 E8 90 00 [12:11:40]wFMCommunicate OK [12:11:40]SAM_PROTO_SignData done [12:11:40]FM_MakeSignedData done [12:11:40]CreateOFDProtocolMessage [12:11:40]wFMCommunicate request_size=4 [12:11:40]MH_SAM_APDU [12:11:40]CAPDU: 80 11 00 00 [12:11:40]Write to MH i2c: E2 08 00 91 03 80 11 00 00 00 00 00 00 0E [12:11:40]Write i2c OK [12:11:40]MH_I2C_Read... [12:11:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:40]Read from MH i2c: E2 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 17 00 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 17 00 91 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 69 [12:11:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:11:40]wFMCommunicate OK [12:11:40]CreateOFDProtocolMessage done [12:11:40]OFDSenderStorePacket 118155 [12:11:40]StoreOFDPacket docnum=118155 [12:11:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7B D6 07 01 44 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 FC E3 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8B CD 01 00 35 04 06 00 57 7A 41 17 11 6D EB A7 AB AE 21 12 A7 E8 [12:11:40]CheckFolder [12:11:40]dirname=/storage/ofd_packets [12:11:40]CheckFolder done [12:11:40]ProducePacketName [12:11:40]name=ofd_packets/00118155 [12:11:40]NVStorageSaveData ofd_packets/00118155 [12:11:40]File name is /storage/ofd_packets/00118155 [12:11:40]Write 301 bytes [12:11:40]NVStorageSaveData done [12:11:40]OFDSenderStorePacket done [12:11:40]KKMCreateOFDPacket done [12:11:40]NVStorageSaveData kkm_last_timestamp [12:11:40]File name is /storage/kkm_last_timestamp [12:11:40]Write 4 bytes [12:11:40]NVStorageSaveData done [12:11:40]ExternCall_PrintAddStr [12:11:40]wPrintStart [12:11:40]Write to MH i2c: 01 00 00 92 03 95 [12:11:40]Write i2c OK [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: 01 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: 01 07 00 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: 01 07 00 92 03 00 00 00 00 00 FF 0F AA [12:11:40]RasterBufferAndPrint [12:11:40]line Счет N : (1)949028 [12:11:40]line ИНН: 02508201610067 [12:11:40]line Контрольно-Кассовый Чек [12:11:40]line ПРОДАЖА [12:11:40]line ТРК (МРК, ГНК) : 31 [12:11:40]line Товар: 2710124130 [12:11:40]line Аи-92-К-4 [12:11:40]line 2.950 * 67.80 [12:11:40]line = 200.01 [12:11:40]line НДС 12% НСП 1% [12:11:40]line > о реализуемом товаре [12:11:40]line ОКРУГЛЕНИЕ: -0.01 [12:11:40]line ИТОГО: 200.00 [12:11:40]line Внесено: 200.00 [12:11:40]line СДАЧА: 0.00 [12:11:40]line НСП 1% : 1.77 [12:11:40]line НДС 12% : 21.24 [12:11:40]line Наличными: 200.00 [12:11:40]line Безнал.: 0.00 [12:11:40]line Место: АЗС № 134 "Партнер Нефть" [12:11:40]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:11:40]line СНО: Общий режим [12:11:40]line Чек 98 27.07.2024 12:11 [12:11:40]line Смена: 432 ФФД: 1.0 [12:11:40]line ЗНМ: 0300000044 [12:11:40]line РНМ: 0000000000092660 [12:11:40]line Версия ККМ: 001 [12:11:40]line ФМ: 0000000000874939 [12:11:40]line ФД: 118155 [12:11:40]line ФПД: 96182589657453 [12:11:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T121140&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118155&fm=96182589657453&tin=02508201610067®Number=0000000000092660&sum=20000 [12:11:40]written 0, free lines is 4095 [12:11:40]OFD Sender: Processing packet 118155 [packets to send 85, broken 84] [12:11:40]ProducePacketName [12:11:40]name=ofd_packets/00118155 [12:11:40]OFD Sender: To server: pG, [12:11:40]CommunicateWithHost lk.salyk.kg:30040 [12:11:40]ConnectInit lk.salyk.kg [12:11:41]Connected sock=10 [12:11:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7B D6 07 01 44 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 FC E3 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8B CD 01 00 35 04 06 00 57 7A 41 17 11 6D EB A7 AB AE 21 12 A7 E8 [12:11:41]Write to MH i2c: 01 00 00 BC 03 BF [12:11:41]Write i2c OK [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: 01 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: 01 07 00 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: 01 07 00 BC 03 00 00 00 00 00 E5 0C B7 [12:11:41]RasterBufferAndPrint [12:11:41]line [12:11:41]line [12:11:41]line [12:11:41]line [12:11:41]line [12:11:41]written 0, free lines is 3307 [12:11:41]MH_Cut [12:11:41]Write to MH i2c: D1 01 00 C3 03 01 98 [12:11:41]Write i2c OK [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: D1 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: D1 01 00 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: D1 01 00 C3 03 00 97 [12:11:41]Write to MH i2c: 01 00 00 C4 03 C7 [12:11:41]Write i2c OK [12:11:41]MH_I2C_Read... [12:11:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D4 79 47 00 4E AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8B CD 01 00 F4 03 04 00 8F 91 A4 66 B6 04 01 00 00 38 36 D4 45 6C F5 63 72 [12:11:41]CommunicateWithHost err = 0 [12:11:41]CheckOFDResponse [12:11:41]1017 (14) - 77093643461234 [12:11:41]1041 (16) - 0000000000874939 [12:11:41]1040 (4) - 118155 [12:11:41]1012 (4) - 27.07.2024 06:19 [12:11:41]1206 (1) - 0 [12:11:41]OFD Sender: Remove packet 118155 [12:11:41]ProducePacketName [12:11:41]name=ofd_packets/00118155 [12:11:41]NVStorageDeleteData [12:11:41]OFD Sender: No OFD packet to send [12:11:41]*** Cut start [12:11:41]*** Partial cut [12:11:41]*** CUTSNS_PIN = 1 [12:11:41]*** CUTSNS_PIN = 0 [12:11:42]*** Brake cut motor [12:11:42]Read from MH i2c: 01 [12:11:42]MH_I2C_Read... [12:11:42]*** Stop cut motor [12:11:42]*** Cut end [12:11:42]Read from MH i2c: 01 07 00 [12:11:42]MH_I2C_Read... [12:11:42]Read from MH i2c: 01 07 00 C4 03 00 00 00 00 00 FF 0F DC [12:11:42]process_action close_receipt done [12:11:42]requested_data is exist [12:11:42]produce_requested_data [12:11:42]requested_item fm.sn is exist - process it [12:11:42]wFMCommunicate request_size=4 [12:11:42]MH_SAM_APDU [12:11:42]CAPDU: 80 11 00 00 [12:11:42]Write to MH i2c: E2 08 00 C5 03 80 11 00 00 00 00 00 00 42 [12:11:42]Write i2c OK [12:11:42]MH_I2C_Read... [12:11:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:42]Read from MH i2c: E2 [12:11:42]MH_I2C_Read... [12:11:42]Read from MH i2c: E2 17 00 [12:11:42]MH_I2C_Read... [12:11:42]Read from MH i2c: E2 17 00 C5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9D [12:11:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:11:42]wFMCommunicate OK [12:11:42]requested_item fd.num is exist - process it [12:11:42]SAM_PROTO_GetFieldsCounters [12:11:42]wFMCommunicate request_size=4 [12:11:42]MH_SAM_APDU [12:11:42]CAPDU: 80 13 00 00 [12:11:42]Write to MH i2c: E2 08 00 C6 03 80 13 00 00 00 00 00 00 45 [12:11:42]Write i2c OK [12:11:42]MH_I2C_Read... [12:11:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:42]Read from MH i2c: E2 [12:11:42]MH_I2C_Read... [12:11:42]Read from MH i2c: E2 62 00 [12:11:42]MH_I2C_Read... [12:11:42]Read from MH i2c: E2 62 00 C6 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8B CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [12: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8B CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:42]wFMCommunicate OK [12:11:42]SAM_PROTO_GetFieldsCounters done [12:11:42]requested_item shift.num is exist - process it [12:11:42]requested_item shift.opened is exist - process it [12:11:42]req_shift_opened [12:11:42]FM_GetShiftState [12:11:42]SAM_PROTO_GetShiftState [12:11:42]wFMCommunicate request_size=4 [12:11:42]MH_SAM_APDU [12:11:42]CAPDU: 80 13 01 00 [12:11:42]Write to MH i2c: E2 08 00 C7 03 80 13 01 00 00 00 00 00 47 [12:11:42]Write i2c OK [12:11:42]MH_I2C_Read... [12:11:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:42]Read from MH i2c: E2 [12:11:42]MH_I2C_Read... [12:11:42]Read from MH i2c: E2 0E 00 [12:11:42]MH_I2C_Read... [12:11:42]Read from MH i2c: E2 0E 00 C7 03 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 D4 [12:11:42]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [12:11:42]wFMCommunicate OK [12:11:42]SAM_PROTO_GetShiftState done [12:11:42]FM_GetShiftState done [12:11:42]req_shift_opened done [12:11:42]requested_item shift.open_date is exist - process it [12:11:42]req_shift_open_date [12:11:42]req_shift_open_date done [12:11:42]produce_requested_data done [12:11:42]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118155,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [12:11:42]process_action_free close_receipt [12:11:42]json_value_free [12:11:42]json_value_free done [12:11:42]process_json_proto returns [12:11:42]Send response to host [12:11:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118155,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [12:11:42]free response buf [12:11:42]execute_script done [12:11:42]execute_script returns [12:11:42]free content buf [12:11:42]Sock 7.Close socket [12:11:42]Sock 7.Thread stoped [12:11:46]OFD Sender: No OFD packet to send [12:11:51]OFD Sender: No OFD packet to send [12:11:56]OFD Sender: No OFD packet to send [12:12:01]OFD Sender: No OFD packet to send [12:12:06]OFD Sender: No OFD packet to send [12:12:11]OFD Sender: No OFD packet to send [12:12:16]OFD Sender: No OFD packet to send [12:12:21]OFD Sender: No OFD packet to send [12:12:26]OFD Sender: No OFD packet to send [12:12:31]OFD Sender: No OFD packet to send [12:12:36]OFD Sender: No OFD packet to send [12:12:41]OFD Sender: No OFD packet to send [12:12:46]OFD Sender: No OFD packet to send [12:12:51]OFD Sender: No OFD packet to send [12:12:56]OFD Sender: No OFD packet to send [12:13:01]OFD Sender: No OFD packet to send [12:13:06]OFD Sender: No OFD packet to send [12:13:11]OFD Sender: No OFD packet to send [12:13:16]OFD Sender: No OFD packet to send [12:13:21]OFD Sender: No OFD packet to send [12:13:26]OFD Sender: No OFD packet to send [12:13:31]OFD Sender: No OFD packet to send [12:13:36]OFD Sender: No OFD packet to send [12:13:41]OFD Sender: No OFD packet to send [12:13:46]OFD Sender: No OFD packet to send [12:13:51]OFD Sender: No OFD packet to send [12:13:56]OFD Sender: No OFD packet to send [12:14:01]OFD Sender: No OFD packet to send [12:14:06]OFD Sender: No OFD packet to send [12:14:11]OFD Sender: No OFD packet to send [12:14:16]OFD Sender: No OFD packet to send [12:14:21]OFD Sender: No OFD packet to send [12:14:26]OFD Sender: No OFD packet to send [12:14:31]OFD Sender: No OFD packet to send [12:14:36]OFD Sender: No OFD packet to send [12:14:41]OFD Sender: No OFD packet to send [12:14:46]OFD Sender: No OFD packet to send [12:14:51]OFD Sender: No OFD packet to send [12:14:56]OFD Sender: No OFD packet to send [12:15:01]OFD Sender: No OFD packet to send [12:15:06]OFD Sender: No OFD packet to send [12:15:11]OFD Sender: No OFD packet to send [12:15:17]OFD Sender: No OFD packet to send [12:15:22]OFD Sender: No OFD packet to send [12:15:27]OFD Sender: No OFD packet to send [12:15:32]OFD Sender: No OFD packet to send [12:15:37]OFD Sender: No OFD packet to send [12:15:42]OFD Sender: No OFD packet to send [12:15:47]OFD Sender: No OFD packet to send [12:15:52]OFD Sender: No OFD packet to send [12:15:57]OFD Sender: No OFD packet to send [12:16:02]OFD Sender: No OFD packet to send [12:16:07]OFD Sender: No OFD packet to send [12:16:12]OFD Sender: No OFD packet to send [12:16:17]OFD Sender: No OFD packet to send [12:16:22]OFD Sender: No OFD packet to send [12:16:27]OFD Sender: No OFD packet to send [12:16:32]OFD Sender: No OFD packet to send [12:16:37]OFD Sender: No OFD packet to send [12:16:42]OFD Sender: No OFD packet to send [12:16:47]OFD Sender: No OFD packet to send [12:16:52]OFD Sender: No OFD packet to send [12:16:57]OFD Sender: No OFD packet to send [12:17:02]OFD Sender: No OFD packet to send [12:17:07]OFD Sender: No OFD packet to send [12:17:12]OFD Sender: No OFD packet to send [12:17:17]OFD Sender: No OFD packet to send [12:17:22]OFD Sender: No OFD packet to send [12:17:27]OFD Sender: No OFD packet to send [12:17:32]OFD Sender: No OFD packet to send [12:17:37]OFD Sender: No OFD packet to send [12:17:42]OFD Sender: No OFD packet to send [12:17:47]OFD Sender: No OFD packet to send [12:17:52]OFD Sender: No OFD packet to send [12:17:57]OFD Sender: No OFD packet to send [12:18:02]OFD Sender: No OFD packet to send [12:18:07]OFD Sender: No OFD packet to send [12:18:12]OFD Sender: No OFD packet to send [12:18:17]OFD Sender: No OFD packet to send [12:18:22]OFD Sender: No OFD packet to send [12:18:27]OFD Sender: No OFD packet to send [12:18:32]OFD Sender: No OFD packet to send [12:18:37]OFD Sender: No OFD packet to send [12:18:42]OFD Sender: No OFD packet to send [12:18:47]OFD Sender: No OFD packet to send [12:18:52]OFD Sender: No OFD packet to send [12:18:57]OFD Sender: No OFD packet to send [12:19:02]OFD Sender: No OFD packet to send [12:19:07]OFD Sender: No OFD packet to send [12:19:12]OFD Sender: No OFD packet to send [12:19:17]OFD Sender: No OFD packet to send [12:19:22]OFD Sender: No OFD packet to send [12:19:27]OFD Sender: No OFD packet to send [12:19:32]OFD Sender: No OFD packet to send [12:19:37]OFD Sender: No OFD packet to send [12:19:42]OFD Sender: No OFD packet to send [12:19:47]OFD Sender: No OFD packet to send [12:19:52]OFD Sender: No OFD packet to send [12:19:57]OFD Sender: No OFD packet to send [12:20:02]OFD Sender: No OFD packet to send [12:20:07]OFD Sender: No OFD packet to send [12:20:12]OFD Sender: No OFD packet to send [12:20:17]OFD Sender: No OFD packet to send [12:20:22]OFD Sender: No OFD packet to send [12:20:27]OFD Sender: No OFD packet to send [12:20:32]OFD Sender: No OFD packet to send [12:20:37]OFD Sender: No OFD packet to send [12:20:42]OFD Sender: No OFD packet to send [12:20:47]OFD Sender: No OFD packet to send [12:20:52]OFD Sender: No OFD packet to send [12:20:57]OFD Sender: No OFD packet to send [12:21:02]OFD Sender: No OFD packet to send [12:21:07]OFD Sender: No OFD packet to send [12:21:12]OFD Sender: No OFD packet to send [12:21:17]OFD Sender: No OFD packet to send [12:21:22]OFD Sender: No OFD packet to send [12:21:27]OFD Sender: No OFD packet to send [12:21:32]OFD Sender: No OFD packet to send [12:21:37]OFD Sender: No OFD packet to send [12:21:42]OFD Sender: No OFD packet to send [12:21:47]OFD Sender: No OFD packet to send [12:21:52]OFD Sender: No OFD packet to send [12:21:57]OFD Sender: No OFD packet to send [12:22:02]OFD Sender: No OFD packet to send [12:22:07]OFD Sender: No OFD packet to send [12:22:12]OFD Sender: No OFD packet to send [12:22:17]OFD Sender: No OFD packet to send [12:22:22]OFD Sender: No OFD packet to send [12:22:27]OFD Sender: No OFD packet to send [12:22:32]OFD Sender: No OFD packet to send [12:22:37]OFD Sender: No OFD packet to send [12:22:42]OFD Sender: No OFD packet to send [12:22:47]OFD Sender: No OFD packet to send [12:22:52]OFD Sender: No OFD packet to send [12:22:57]OFD Sender: No OFD packet to send [12:23:02]OFD Sender: No OFD packet to send [12:23:07]OFD Sender: No OFD packet to send [12:23:12]OFD Sender: No OFD packet to send [12:23:17]OFD Sender: No OFD packet to send [12:23:22]OFD Sender: No OFD packet to send [12:23:27]OFD Sender: No OFD packet to send [12:23:32]OFD Sender: No OFD packet to send [12:23:37]OFD Sender: No OFD packet to send [12:23:42]OFD Sender: No OFD packet to send [12:23:47]OFD Sender: No OFD packet to send [12:23:52]OFD Sender: No OFD packet to send [12:23:57]OFD Sender: No OFD packet to send [12:24:02]OFD Sender: No OFD packet to send [12:24:07]OFD Sender: No OFD packet to send [12:24:12]OFD Sender: No OFD packet to send [12:24:17]OFD Sender: No OFD packet to send [12:24:22]OFD Sender: No OFD packet to send [12:24:27]OFD Sender: No OFD packet to send [12:24:32]OFD Sender: No OFD packet to send [12:24:37]OFD Sender: No OFD packet to send [12:24:42]OFD Sender: No OFD packet to send [12:24:47]OFD Sender: No OFD packet to send [12:24:52]OFD Sender: No OFD packet to send [12:24:57]OFD Sender: No OFD packet to send [12:25:02]OFD Sender: No OFD packet to send [12:25:07]OFD Sender: No OFD packet to send [12:25:12]OFD Sender: No OFD packet to send [12:25:17]OFD Sender: No OFD packet to send [12:25:22]OFD Sender: No OFD packet to send [12:25:27]OFD Sender: No OFD packet to send [12:25:32]OFD Sender: No OFD packet to send [12:25:37]OFD Sender: No OFD packet to send [12:25:42]OFD Sender: No OFD packet to send [12:25:47]OFD Sender: No OFD packet to send [12:25:52]OFD Sender: No OFD packet to send [12:25:57]OFD Sender: No OFD packet to send [12:26:02]OFD Sender: No OFD packet to send [12:26:07]OFD Sender: No OFD packet to send [12:26:12]OFD Sender: No OFD packet to send [12:26:17]OFD Sender: No OFD packet to send [12:26:22]OFD Sender: No OFD packet to send [12:26:27]OFD Sender: No OFD packet to send [12:26:32]OFD Sender: No OFD packet to send [12:26:37]OFD Sender: No OFD packet to send [12:26:42]OFD Sender: No OFD packet to send [12:26:47]OFD Sender: No OFD packet to send [12:26:52]OFD Sender: No OFD packet to send [12:26:57]OFD Sender: No OFD packet to send [12:27:02]OFD Sender: No OFD packet to send [12:27:07]OFD Sender: No OFD packet to send [12:27:12]OFD Sender: No OFD packet to send [12:27:17]OFD Sender: No OFD packet to send [12:27:22]OFD Sender: No OFD packet to send [12:27:27]OFD Sender: No OFD packet to send [12:27:32]OFD Sender: No OFD packet to send [12:27:37]OFD Sender: No OFD packet to send [12:27:42]OFD Sender: No OFD packet to send [12:27:47]OFD Sender: No OFD packet to send [12:27:52]OFD Sender: No OFD packet to send [12:27:57]OFD Sender: No OFD packet to send [12:28:02]OFD Sender: No OFD packet to send [12:28:07]OFD Sender: No OFD packet to send [12:28:12]OFD Sender: No OFD packet to send [12:28:17]OFD Sender: No OFD packet to send [12:28:22]OFD Sender: No OFD packet to send [12:28:27]OFD Sender: No OFD packet to send [12:28:32]OFD Sender: No OFD packet to send [12:28:37]OFD Sender: No OFD packet to send [12:28:42]OFD Sender: No OFD packet to send [12:28:47]OFD Sender: No OFD packet to send [12:28:52]OFD Sender: No OFD packet to send [12:28:57]OFD Sender: No OFD packet to send [12:29:02]OFD Sender: No OFD packet to send [12:29:07]OFD Sender: No OFD packet to send [12:29:12]OFD Sender: No OFD packet to send [12:29:17]OFD Sender: No OFD packet to send [12:29:22]OFD Sender: No OFD packet to send [12:29:27]OFD Sender: No OFD packet to send [12:29:32]OFD Sender: No OFD packet to send [12:29:37]OFD Sender: No OFD packet to send [12:29:42]OFD Sender: No OFD packet to send [12:29:47]OFD Sender: No OFD packet to send [12:29:52]OFD Sender: No OFD packet to send [12:29:57]OFD Sender: No OFD packet to send [12:30:02]OFD Sender: No OFD packet to send [12:30:07]OFD Sender: No OFD packet to send [12:30:12]OFD Sender: No OFD packet to send [12:30:13]accept exits with 9 [12:30:13]New connection [12:30:13]New thread 3067272548 created [12:30:13]Thread 3067415908 joined [12:30:13]Waiting for new connection... [12:30:13] Sock 9.Parse request [12:30:13]Sock 9.Check first char [12:30:13]Sock 9.First char is OK [12:30:13]request: POST /json_proto HTTP/1.0 [12:30:13]Method: POST [12:30:13]URL: /json_proto [12:30:13]Method is POST - this is cgi request [12:30:13]url: /json_proto [12:30:13]query_string will be loaded in cgi processing [12:30:13]execute_cgi json_proto POST (null) [12:30:13]execute_cgi path=json_proto method=POST [12:30:13]POST find Content-Length [12:30:13]Host: 172.17.45.7:8080 [12:30:13]Content-Length: 677 [12:30:13]Content-Type: application/json [12:30:13] [12:30:13]POST finish read [12:30:13]Found Content-Length = 677 [12:30:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:13]execute_script... [12:30: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)949029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:13]POST & json_proto [12:30:13]process_json_proto [12:30:13]json parsed OK: [12:30:13]protocol is kg_v1.0 [12:30:13]action value=close_receipt [12:30:13]process_action close_receipt [12:30:13]cmd_close_receipt [12:30:13]MH_GetDate [12:30:13]Write to MH i2c: F0 00 00 C8 03 BA [12:30:13]Write i2c OK [12:30:13]MH_I2C_Read... [12:30:13]Read from MH i2c: F0 [12:30:13]MH_I2C_Read... [12:30:13]Read from MH i2c: F0 09 00 [12:30:13]MH_I2C_Read... [12:30:13]Read from MH i2c: F0 09 00 C8 03 00 57 E8 A4 66 90 0F 3E 66 4F [12:30:13]GetLastDocTimeStamp 1722082300 [12:30:13]current date 1722083415 [12:30:13]FM_GetShiftState [12:30:13]SAM_PROTO_GetShiftState [12:30:13]wFMCommunicate request_size=4 [12:30:13]MH_SAM_APDU [12:30:13]CAPDU: 80 13 01 00 [12:30:13]Write to MH i2c: E2 08 00 C9 03 80 13 01 00 00 00 00 00 49 [12:30:13]Write i2c OK [12:30:13]MH_I2C_Read... [12:30:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:13]Read from MH i2c: E2 [12:30:13]MH_I2C_Read... [12:30:13]Read from MH i2c: E2 0E 00 [12:30:13]MH_I2C_Read... [12:30:13]Read from MH i2c: E2 0E 00 C9 03 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 D6 [12:30:13]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [12:30:13]wFMCommunicate OK [12:30:13]SAM_PROTO_GetShiftState done [12:30:13]FM_GetShiftState done [12:30:13]opened in 1722038845 [12:30:13]opened+sec_in_day 1722125245 [12:30:13]quantity*price = 20001 [12:30:13]sum+1 = 20002 [12:30:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 99 27.07.2024 12:30 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118156 ФПД: 255548919717238 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T123015&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118156&fm=255548919717238&tin=02508201610067®Number=0000000000092660&sum=20000 [12:30:15]StoreToDocumentArchive [12:30:15]shift 432 fd 118156 [12:30:15]save to /storage/0432/doc_00118156 [12:30:15]save last doc name /storage/0432/doc_00118156 to /storage/kkm_last_doc_name [12:30:15]save OK [12:30:15]Clear old archive folders... [12:30:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:30:15]tlvbuf is B6F322C0 [12:30:15]SAM_PROTO_ClearQueue [12:30:15]wFMCommunicate request_size=4 [12:30:15]MH_SAM_APDU [12:30:15]CAPDU: 80 09 00 00 [12:30:15]Write to MH i2c: E2 08 00 D6 03 80 09 00 00 00 00 00 00 4B [12:30:15]Write i2c OK [12:30:15]MH_I2C_Read... [12:30:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:15]Read from MH i2c: E2 [12:30:15]MH_I2C_Read... [12:30:15]Read from MH i2c: E2 03 00 [12:30:15]MH_I2C_Read... [12:30:15]Read from MH i2c: E2 03 00 D6 03 00 90 00 4D [12:30:15]RAPDU: 90 00 [12:30:15]wFMCommunicate OK [12:30:15]SAM_PROTO_ClearQueue done [12:30:15]KKMCreateOFDPacket [12:30:15]OFDProtocolAddRootSTLVToBuf [12:30:15]FM_MakeSignedData [12:30:15]FM_MakeSignedData [12:30:15]SAM_PROTO_SignData [12:30:15]wFMCommunicate request_size=4 [12:30:15]MH_SAM_APDU [12:30:15]CAPDU: 80 0D 01 02 [12:30:15]Write to MH i2c: E2 08 00 D7 03 80 0D 01 02 00 00 00 00 53 [12:30:15]Write i2c OK [12:30:15]MH_I2C_Read... [12:30:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:15]Read from MH i2c: E2 [12:30:15]MH_I2C_Read... [12:30:15]Read from MH i2c: E2 03 00 [12:30:15]MH_I2C_Read... [12:30:15]Read from MH i2c: E2 03 00 D7 03 00 90 00 4E [12:30:15]RAPDU: 90 00 [12:30:15]wFMCommunicate OK [12:30:15]wFMCommunicate request_size=255 [12:30:15]MH_SAM_APDU [12:30: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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 57 E8 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8C CD 01 00 35 04 06 00 E8 [12:30:15]Write to MH i2c: E2 02 01 D8 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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 57 E8 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8C CD 01 00 35 04 06 00 E8 00 00 78 [12:30:15]Write i2c OK [12:30:15]MH_I2C_Read... [12:30:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:15]Read from MH i2c: E2 [12:30:15]MH_I2C_Read... [12:30:15]Read from MH i2c: E2 03 00 [12:30:15]MH_I2C_Read... [12:30:15]Read from MH i2c: E2 03 00 D8 03 00 90 00 4F [12:30:15]RAPDU: 90 00 [12:30:15]wFMCommunicate OK [12:30:15]wFMCommunicate request_size=10 [12:30:15]MH_SAM_APDU [12:30:15]CAPDU: 80 0D 02 02 05 6B 9E 95 1D 76 [12:30:15]Write to MH i2c: E2 0D 00 D9 03 80 0D 02 02 05 00 6B 9E 95 1D 76 00 00 91 [12:30:15]Write i2c OK [12:30:15]MH_I2C_Read... [12:30:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:15]Read from MH i2c: E2 [12:30:15]MH_I2C_Read... [12:30:15]Read from MH i2c: E2 03 00 [12:30:15]MH_I2C_Read... [12:30:15]Read from MH i2c: E2 03 00 D9 03 00 90 00 50 [12:30:15]RAPDU: 90 00 [12:30:15]wFMCommunicate OK [12:30:15]wFMCommunicate request_size=4 [12:30:15]MH_SAM_APDU [12:30:15]CAPDU: 80 0D 03 02 [12:30:15]Write to MH i2c: E2 08 00 DA 03 80 0D 03 02 00 00 00 00 58 [12:30:15]Write i2c OK [12:30:15]MH_I2C_Read... [12:30:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:15]Read from MH i2c: E2 [12:30:15]MH_I2C_Read... [12:30:15]Read from MH i2c: E2 0B 00 [12:30:15]MH_I2C_Read... [12:30:15]Read from MH i2c: E2 0B 00 DA 03 00 B6 C9 FE BE B5 BD 9D B0 90 00 53 [12:30:15]RAPDU: B6 C9 FE BE B5 BD 9D B0 90 00 [12:30:15]wFMCommunicate OK [12:30:15]SAM_PROTO_SignData done [12:30:15]FM_MakeSignedData done [12:30:15]CreateOFDProtocolMessage [12:30:15]wFMCommunicate request_size=4 [12:30:15]MH_SAM_APDU [12:30:15]CAPDU: 80 11 00 00 [12:30:15]Write to MH i2c: E2 08 00 DB 03 80 11 00 00 00 00 00 00 58 [12:30:15]Write i2c OK [12:30:15]MH_I2C_Read... [12:30:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:15]Read from MH i2c: E2 [12:30:15]MH_I2C_Read... [12:30:15]Read from MH i2c: E2 17 00 [12:30:15]MH_I2C_Read... [12:30:15]Read from MH i2c: E2 17 00 DB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B3 [12:30:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:30:15]wFMCommunicate OK [12:30:15]CreateOFDProtocolMessage done [12:30:15]OFDSenderStorePacket 118156 [12:30:15]StoreOFDPacket docnum=118156 [12:30:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D0 17 07 01 36 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 57 E8 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8C CD 01 00 35 04 06 00 E8 6B 9E 95 1D 76 B6 C9 FE BE B5 BD 9D B0 [12:30:15]CheckFolder [12:30:15]dirname=/storage/ofd_packets [12:30:15]CheckFolder done [12:30:15]ProducePacketName [12:30:15]name=ofd_packets/00118156 [12:30:15]NVStorageSaveData ofd_packets/00118156 [12:30:15]File name is /storage/ofd_packets/00118156 [12:30:15]Write 301 bytes [12:30:15]NVStorageSaveData done [12:30:15]OFDSenderStorePacket done [12:30:15]KKMCreateOFDPacket done [12:30:15]NVStorageSaveData kkm_last_timestamp [12:30:15]File name is /storage/kkm_last_timestamp [12:30:15]Write 4 bytes [12:30:15]NVStorageSaveData done [12:30:15]ExternCall_PrintAddStr [12:30:15]wPrintStart [12:30:15]Write to MH i2c: 01 00 00 DC 03 DF [12:30:15]Write i2c OK [12:30:15]MH_I2C_Read... [12:30:15]Read from MH i2c: 01 [12:30:15]MH_I2C_Read... [12:30:15]Read from MH i2c: 01 07 00 [12:30:15]MH_I2C_Read... [12:30:15]Read from MH i2c: 01 07 00 DC 03 00 00 00 00 00 FF 0F F4 [12:30:15]RasterBufferAndPrint [12:30:15]line Счет N : (1)949029 [12:30:15]line ИНН: 02508201610067 [12:30:15]line Контрольно-Кассовый Чек [12:30:15]line ПРОДАЖА [12:30:15]line ТРК (МРК, ГНК) : 41 [12:30:15]line Товар: 2710124130 [12:30:15]line Аи-92-К-4 [12:30:15]line 2.950 * 67.80 [12:30:15]line = 200.01 [12:30:15]line НДС 12% НСП 1% [12:30:15]line > о реализуемом товаре [12:30:15]line ОКРУГЛЕНИЕ: -0.01 [12:30:15]line ИТОГО: 200.00 [12:30:15]line Внесено: 200.00 [12:30:15]line СДАЧА: 0.00 [12:30:15]line НСП 1% : 1.77 [12:30:15]line НДС 12% : 21.24 [12:30:15]line Наличными: 200.00 [12:30:15]line Безнал.: 0.00 [12:30:15]line Место: АЗС № 134 "Партнер Нефть" [12:30:15]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:30:15]line СНО: Общий режим [12:30:15]line Чек 99 27.07.2024 12:30 [12:30:15]line Смена: 432 ФФД: 1.0 [12:30:15]line ЗНМ: 0300000044 [12:30:15]line РНМ: 0000000000092660 [12:30:15]line Версия ККМ: 001 [12:30:15]line ФМ: 0000000000874939 [12:30:15]line ФД: 118156 [12:30:15]line ФПД: 255548919717238 [12:30:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T123015&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118156&fm=255548919717238&tin=02508201610067®Number=0000000000092660&sum=20000 [12:30:15]OFD Sender: Processing packet 118156 [packets to send 85, broken 84] [12:30:15]ProducePacketName [12:30:15]name=ofd_packets/00118156 [12:30:15]OFD Sender: To server: pG, [12:30:15]CommunicateWithHost lk.salyk.kg:30040 [12:30:15]ConnectInit lk.salyk.kg [12:30:15]written 0, free lines is 4095 [12:30:15]Connected sock=10 [12:30:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D0 17 07 01 36 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 57 E8 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8C CD 01 00 35 04 06 00 E8 6B 9E 95 1D 76 B6 C9 FE BE B5 BD 9D B0 [12:30:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 3E 8B 47 00 5B 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 34 39 33 39 10 04 04 00 8C CD 01 00 F4 03 04 00 EA 95 A4 66 B6 04 01 00 00 EC 4D 0C 85 7F 46 A7 78 [12:30:16]CommunicateWithHost err = 0 [12:30:16]CheckOFDResponse [12:30:16]1017 (14) - 77093643461234 [12:30:16]1041 (16) - 0000000000874939 [12:30:16]1040 (4) - 118156 [12:30:16]1012 (4) - 27.07.2024 06:38 [12:30:16]1206 (1) - 0 [12:30:16]OFD Sender: Remove packet 118156 [12:30:16]ProducePacketName [12:30:16]name=ofd_packets/00118156 [12:30:16]NVStorageDeleteData [12:30:16]Write to MH i2c: 01 00 00 06 04 0A [12:30:16]Write i2c OK [12:30:16]MH_I2C_Read... [12:30:16]Read from MH i2c: 01 [12:30:16]MH_I2C_Read... [12:30:16]Read from MH i2c: 01 07 00 [12:30:16]MH_I2C_Read... [12:30:16]Read from MH i2c: 01 07 00 06 04 00 00 00 00 00 DC 0C F9 [12:30:16]RasterBufferAndPrint [12:30:16]line [12:30:16]line [12:30:16]line [12:30:16]line [12:30:16]line [12:30:16]written 0, free lines is 3298 [12:30:16]MH_Cut [12:30:16]Write to MH i2c: D1 01 00 0D 04 01 E3 [12:30:16]Write i2c OK [12:30:16]MH_I2C_Read... [12:30:16]Read from MH i2c: D1 [12:30:16]MH_I2C_Read... [12:30:16]Read from MH i2c: D1 01 00 [12:30:16]MH_I2C_Read... [12:30:16]Read from MH i2c: D1 01 00 0D 04 00 E2 [12:30:16]Write to MH i2c: 01 00 00 0E 04 12 [12:30:16]Write i2c OK [12:30:16]MH_I2C_Read... [12:30:16]OFD Sender: No OFD packet to send [12:30:17]*** Cut start [12:30:17]*** Partial cut [12:30:17]*** CUTSNS_PIN = 1 [12:30:17]*** CUTSNS_PIN = 0 [12:30:17]*** Brake cut motor [12:30:17]Read from MH i2c: 01 [12:30:17]MH_I2C_Read... [12:30:17]*** Stop cut motor [12:30:17]*** Cut end [12:30:17]Read from MH i2c: 01 07 00 [12:30:17]MH_I2C_Read... [12:30:17]Read from MH i2c: 01 07 00 0E 04 00 00 00 00 00 FF 0F 27 [12:30:17]process_action close_receipt done [12:30:17]requested_data is exist [12:30:17]produce_requested_data [12:30:17]requested_item fm.sn is exist - process it [12:30:17]wFMCommunicate request_size=4 [12:30:17]MH_SAM_APDU [12:30:17]CAPDU: 80 11 00 00 [12:30:17]Write to MH i2c: E2 08 00 0F 04 80 11 00 00 00 00 00 00 8D [12:30:17]Write i2c OK [12:30:17]MH_I2C_Read... [12:30:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:17]Read from MH i2c: E2 [12:30:17]MH_I2C_Read... [12:30:17]Read from MH i2c: E2 17 00 [12:30:17]MH_I2C_Read... [12:30:17]Read from MH i2c: E2 17 00 0F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E8 [12:30:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:30:17]wFMCommunicate OK [12:30:17]requested_item fd.num is exist - process it [12:30:17]SAM_PROTO_GetFieldsCounters [12:30:17]wFMCommunicate request_size=4 [12:30:17]MH_SAM_APDU [12:30:17]CAPDU: 80 13 00 00 [12:30:17]Write to MH i2c: E2 08 00 10 04 80 13 00 00 00 00 00 00 90 [12:30:17]Write i2c OK [12:30:17]MH_I2C_Read... [12:30:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:17]Read from MH i2c: E2 [12:30:17]MH_I2C_Read... [12:30:17]Read from MH i2c: E2 62 00 [12:30:17]MH_I2C_Read... [12:30:17]Read from MH i2c: E2 62 00 10 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8C CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [12:30:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8C CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:30:17]wFMCommunicate OK [12:30:17]SAM_PROTO_GetFieldsCounters done [12:30:17]requested_item shift.num is exist - process it [12:30:17]requested_item shift.opened is exist - process it [12:30:17]req_shift_opened [12:30:17]FM_GetShiftState [12:30:17]SAM_PROTO_GetShiftState [12:30:17]wFMCommunicate request_size=4 [12:30:17]MH_SAM_APDU [12:30:17]CAPDU: 80 13 01 00 [12:30:17]Write to MH i2c: E2 08 00 11 04 80 13 01 00 00 00 00 00 92 [12:30:17]Write i2c OK [12:30:17]MH_I2C_Read... [12:30:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:17]Read from MH i2c: E2 [12:30:17]MH_I2C_Read... [12:30:17]Read from MH i2c: E2 0E 00 [12:30:17]MH_I2C_Read... [12:30:17]Read from MH i2c: E2 0E 00 11 04 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 1F [12:30:17]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [12:30:17]wFMCommunicate OK [12:30:17]SAM_PROTO_GetShiftState done [12:30:17]FM_GetShiftState done [12:30:17]req_shift_opened done [12:30:17]requested_item shift.open_date is exist - process it [12:30:17]req_shift_open_date [12:30:17]req_shift_open_date done [12:30:17]produce_requested_data done [12:30:17]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118156,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [12:30:17]process_action_free close_receipt [12:30:17]json_value_free [12:30:17]json_value_free done [12:30:17]process_json_proto returns [12:30:17]Send response to host [12:30:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118156,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [12:30:17]free response buf [12:30:17]execute_script done [12:30:17]execute_script returns [12:30:17]free content buf [12:30:17]Sock 9.Close socket [12:30:17]Sock 9.Thread stoped [12:30:21]OFD Sender: No OFD packet to send [12:30:26]OFD Sender: No OFD packet to send [12:30:31]OFD Sender: No OFD packet to send [12:30:36]OFD Sender: No OFD packet to send [12:30:41]OFD Sender: No OFD packet to send [12:30:46]OFD Sender: No OFD packet to send [12:30:51]OFD Sender: No OFD packet to send [12:30:56]OFD Sender: No OFD packet to send [12:31:01]OFD Sender: No OFD packet to send [12:31:06]OFD Sender: No OFD packet to send [12:31:11]OFD Sender: No OFD packet to send [12:31:16]OFD Sender: No OFD packet to send [12:31:21]OFD Sender: No OFD packet to send [12:31:26]OFD Sender: No OFD packet to send [12:31:31]OFD Sender: No OFD packet to send [12:31:36]OFD Sender: No OFD packet to send [12:31:41]OFD Sender: No OFD packet to send [12:31:46]OFD Sender: No OFD packet to send [12:31:51]OFD Sender: No OFD packet to send [12:31:56]OFD Sender: No OFD packet to send [12:32:01]OFD Sender: No OFD packet to send [12:32:06]OFD Sender: No OFD packet to send [12:32:11]OFD Sender: No OFD packet to send [12:32:16]OFD Sender: No OFD packet to send [12:32:21]OFD Sender: No OFD packet to send [12:32:26]OFD Sender: No OFD packet to send [12:32:31]OFD Sender: No OFD packet to send [12:32:36]OFD Sender: No OFD packet to send [12:32:41]OFD Sender: No OFD packet to send [12:32:46]OFD Sender: No OFD packet to send [12:32:51]OFD Sender: No OFD packet to send [12:32:56]OFD Sender: No OFD packet to send [12:33:01]OFD Sender: No OFD packet to send [12:33:06]OFD Sender: No OFD packet to send [12:33:11]OFD Sender: No OFD packet to send [12:33:16]OFD Sender: No OFD packet to send [12:33:21]OFD Sender: No OFD packet to send [12:33:26]OFD Sender: No OFD packet to send [12:33:31]OFD Sender: No OFD packet to send [12:33:36]OFD Sender: No OFD packet to send [12:33:39]accept exits with 7 [12:33:39]New connection [12:33:39]New thread 3067415908 created [12:33:39]Thread 3067272548 joined [12:33:39]Waiting for new connection... [12:33:39] Sock 7.Parse request [12:33:39]Sock 7.Check first char [12:33:39]Sock 7.First char is OK [12:33:39]request: POST /json_proto HTTP/1.0 [12:33:39]Method: POST [12:33:39]URL: /json_proto [12:33:39]Method is POST - this is cgi request [12:33:39]url: /json_proto [12:33:39]query_string will be loaded in cgi processing [12:33:39]execute_cgi json_proto POST (null) [12:33:39]execute_cgi path=json_proto method=POST [12:33:39]POST find Content-Length [12:33:39]Host: 172.17.45.7:8080 [12:33:39]Content-Length: 819 [12:33:39]Content-Type: application/json [12:33:39] [12:33:39]POST finish read [12:33:39]Found Content-Length = 819 [12:33:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.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", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:39]execute_script... [12:33: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)949030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.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", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:39]POST & json_proto [12:33:39]process_json_proto [12:33:39]json parsed OK: [12:33:39]protocol is kg_v1.0 [12:33:39]action value=close_receipt [12:33:39]process_action close_receipt [12:33:39]cmd_close_receipt [12:33:39]MH_GetDate [12:33:39]Write to MH i2c: F0 00 00 12 04 05 [12:33:39]Write i2c OK [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: F0 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: F0 09 00 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: F0 09 00 12 04 00 25 E9 A4 66 90 0F 3E 66 69 [12:33:39]GetLastDocTimeStamp 1722083415 [12:33:39]current date 1722083621 [12:33:39]FM_GetShiftState [12:33:39]SAM_PROTO_GetShiftState [12:33:39]wFMCommunicate request_size=4 [12:33:39]MH_SAM_APDU [12:33:39]CAPDU: 80 13 01 00 [12:33:39]Write to MH i2c: E2 08 00 13 04 80 13 01 00 00 00 00 00 94 [12:33:39]Write i2c OK [12:33:39]MH_I2C_Read... [12:33:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:39]Read from MH i2c: E2 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: E2 0E 00 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: E2 0E 00 13 04 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 21 [12:33:39]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [12:33:39]wFMCommunicate OK [12:33:39]SAM_PROTO_GetShiftState done [12:33:39]FM_GetShiftState done [12:33:39]opened in 1722038845 [12:33:39]opened+sec_in_day 1722125245 [12:33:39]quantity*price = 150037 [12:33:39]sum+1 = 150039 [12:33:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 100 27.07.2024 12:33 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118157 ФПД: 218644982228417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T123341&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118157&fm=218644982228417&tin=02508201610067®Number=0000000000092660&sum=150000 [12:33:41]StoreToDocumentArchive [12:33:41]shift 432 fd 118157 [12:33:41]save to /storage/0432/doc_00118157 [12:33:41]save last doc name /storage/0432/doc_00118157 to /storage/kkm_last_doc_name [12:33:41]save OK [12:33:41]Clear old archive folders... [12:33:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:33:41]tlvbuf is B6E19610 [12:33:41]SAM_PROTO_ClearQueue [12:33:41]wFMCommunicate request_size=4 [12:33:41]MH_SAM_APDU [12:33:41]CAPDU: 80 09 00 00 [12:33:41]Write to MH i2c: E2 08 00 20 04 80 09 00 00 00 00 00 00 96 [12:33:41]Write i2c OK [12:33:41]MH_I2C_Read... [12:33:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:41]Read from MH i2c: E2 [12:33:41]MH_I2C_Read... [12:33:41]Read from MH i2c: E2 03 00 [12:33:41]MH_I2C_Read... [12:33:41]Read from MH i2c: E2 03 00 20 04 00 90 00 98 [12:33:41]RAPDU: 90 00 [12:33:41]wFMCommunicate OK [12:33:41]SAM_PROTO_ClearQueue done [12:33:41]KKMCreateOFDPacket [12:33:41]OFDProtocolAddRootSTLVToBuf [12:33:41]FM_MakeSignedData [12:33:41]FM_MakeSignedData [12:33:41]SAM_PROTO_SignData [12:33:41]wFMCommunicate request_size=4 [12:33:41]MH_SAM_APDU [12:33:41]CAPDU: 80 0D 01 02 [12:33:41]Write to MH i2c: E2 08 00 21 04 80 0D 01 02 00 00 00 00 9E [12:33:41]Write i2c OK [12:33:41]MH_I2C_Read... [12:33:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:41]Read from MH i2c: E2 [12:33:41]MH_I2C_Read... [12:33:41]Read from MH i2c: E2 03 00 [12:33:41]MH_I2C_Read... [12:33:41]Read from MH i2c: E2 03 00 21 04 00 90 00 99 [12:33:41]RAPDU: 90 00 [12:33:41]wFMCommunicate OK [12:33:41]wFMCommunicate request_size=255 [12:33:41]MH_SAM_APDU [12:33:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 25 E9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8D CD 01 00 35 04 06 00 C6 DB 40 7F [12:33:41]Write to MH i2c: E2 02 01 22 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 25 E9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8D CD 01 00 35 04 06 00 C6 DB 40 7F 00 00 8D [12:33:41]Write i2c OK [12:33:41]MH_I2C_Read... [12:33:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:41]Read from MH i2c: E2 [12:33:41]MH_I2C_Read... [12:33:41]Read from MH i2c: E2 03 00 [12:33:41]MH_I2C_Read... [12:33:41]Read from MH i2c: E2 03 00 22 04 00 90 00 9A [12:33:41]RAPDU: 90 00 [12:33:41]wFMCommunicate OK [12:33:41]wFMCommunicate request_size=7 [12:33:41]MH_SAM_APDU [12:33:41]CAPDU: 80 0D 02 02 02 65 C1 [12:33:41]Write to MH i2c: E2 0A 00 23 04 80 0D 02 02 02 00 65 C1 00 00 CB [12:33:41]Write i2c OK [12:33:41]MH_I2C_Read... [12:33:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:41]Read from MH i2c: E2 [12:33:41]MH_I2C_Read... [12:33:41]Read from MH i2c: E2 03 00 [12:33:41]MH_I2C_Read... [12:33:41]Read from MH i2c: E2 03 00 23 04 00 90 00 9B [12:33:41]RAPDU: 90 00 [12:33:41]wFMCommunicate OK [12:33:41]wFMCommunicate request_size=4 [12:33:41]MH_SAM_APDU [12:33:41]CAPDU: 80 0D 03 02 [12:33:41]Write to MH i2c: E2 08 00 24 04 80 0D 03 02 00 00 00 00 A3 [12:33:41]Write i2c OK [12:33:41]MH_I2C_Read... [12:33:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:41]Read from MH i2c: E2 [12:33:41]MH_I2C_Read... [12:33:41]Read from MH i2c: E2 0B 00 [12:33:41]MH_I2C_Read... [12:33:41]Read from MH i2c: E2 0B 00 24 04 00 F2 DB 30 3E F0 4E C2 F3 90 00 D2 [12:33:41]RAPDU: F2 DB 30 3E F0 4E C2 F3 90 00 [12:33:41]wFMCommunicate OK [12:33:41]SAM_PROTO_SignData done [12:33:41]FM_MakeSignedData done [12:33:41]CreateOFDProtocolMessage [12:33:41]wFMCommunicate request_size=4 [12:33:41]MH_SAM_APDU [12:33:41]CAPDU: 80 11 00 00 [12:33:41]Write to MH i2c: E2 08 00 25 04 80 11 00 00 00 00 00 00 A3 [12:33:41]Write i2c OK [12:33:41]MH_I2C_Read... [12:33:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:41]Read from MH i2c: E2 [12:33:41]MH_I2C_Read... [12:33:41]Read from MH i2c: E2 17 00 [12:33:41]MH_I2C_Read... [12:33:41]Read from MH i2c: E2 17 00 25 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FE [12:33:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:33:41]wFMCommunicate OK [12:33:41]CreateOFDProtocolMessage done [12:33:41]OFDSenderStorePacket 118157 [12:33:41]StoreOFDPacket docnum=118157 [12:33:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 9F 2A 04 01 73 24 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 25 E9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8D CD 01 00 35 04 06 00 C6 DB 40 7F 65 C1 F2 DB 30 3E F0 4E C2 F3 [12:33:41]CheckFolder [12:33:41]dirname=/storage/ofd_packets [12:33:41]CheckFolder done [12:33:41]ProducePacketName [12:33:41]name=ofd_packets/00118157 [12:33:41]NVStorageSaveData ofd_packets/00118157 [12:33:41]File name is /storage/ofd_packets/00118157 [12:33:41]Write 298 bytes [12:33:41]NVStorageSaveData done [12:33:41]OFDSenderStorePacket done [12:33:41]KKMCreateOFDPacket done [12:33:41]NVStorageSaveData kkm_last_timestamp [12:33:41]File name is /storage/kkm_last_timestamp [12:33:41]Write 4 bytes [12:33:41]NVStorageSaveData done [12:33:41]ExternCall_PrintAddStr [12:33:41]wPrintStart [12:33:41]Write to MH i2c: 01 00 00 26 04 2A [12:33:41]Write i2c OK [12:33:41]MH_I2C_Read... [12:33:41]Read from MH i2c: 01 [12:33:41]MH_I2C_Read... [12:33:41]Read from MH i2c: 01 07 00 [12:33:41]MH_I2C_Read... [12:33:41]Read from MH i2c: 01 07 00 26 04 00 00 00 00 00 FF 0F 3F [12:33:41]RasterBufferAndPrint [12:33:41]line Счет N : (1)949030 [12:33:41]line ИНН: 02508201610067 [12:33:41]line Контрольно-Кассовый Чек [12:33:41]line ПРОДАЖА [12:33:41]line ТРК (МРК, ГНК) : 64 [12:33:41]line Товар: 2710194800 [12:33:41]line ДТ-К-5 [12:33:41]line 19.690 * 76.20 [12:33:41]line = 1500.38 [12:33:41]line НДС 12% НСП 1% [12:33:41]line > о реализуемом товаре [12:33:41]line ОКРУГЛЕНИЕ: -0.38 [12:33:41]line ИТОГО: 1500.00 [12:33:41]line НСП 1% : 13.28 [12:33:41]line НДС 12% : 159.33 [12:33:41]line Наличными: 0.00 [12:33:41]line Безнал.: 1500.00 [12:33:41]line Место: АЗС № 134 "Партнер Нефть" [12:33:41]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:33:41]line СНО: Общий режим [12:33:41]line Чек 100 27.07.2024 12:33 [12:33:41]line Смена: 432 ФФД: 1.0 [12:33:41]line ЗНМ: 0300000044 [12:33:41]line РНМ: 0000000000092660 [12:33:41]line Версия ККМ: 001 [12:33:41]line Платежная система: O! деньги [12:33:41]line ФМ: 0000000000874939 [12:33:41]line ФД: 118157 [12:33:41]line ФПД: 218644982228417 [12:33:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T123341&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118157&fm=218644982228417&tin=02508201610067®Number=0000000000092660&sum=150000 [12:33:41]OFD Sender: Processing packet 118157 [packets to send 85, broken 84] [12:33:41]ProducePacketName [12:33:41]name=ofd_packets/00118157 [12:33:41]OFD Sender: To server: pG, [12:33:41]CommunicateWithHost lk.salyk.kg:30040 [12:33:41]ConnectInit lk.salyk.kg [12:33:41]written 0, free lines is 4095 [12:33:41]Connected sock=10 [12:33:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 9F 2A 04 01 73 24 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 25 E9 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8D CD 01 00 35 04 06 00 C6 DB 40 7F 65 C1 F2 DB 30 3E F0 4E C2 F3 [12:33:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A6 9D 47 00 74 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8D CD 01 00 F4 03 04 00 B8 96 A4 66 B6 04 01 00 00 F8 2C 5C D9 7F 11 2E D4 [12:33:42]CommunicateWithHost err = 0 [12:33:42]CheckOFDResponse [12:33:42]1017 (14) - 77093643461234 [12:33:42]1041 (16) - 0000000000874939 [12:33:42]1040 (4) - 118157 [12:33:42]1012 (4) - 27.07.2024 06:42 [12:33:42]1206 (1) - 0 [12:33:42]OFD Sender: Remove packet 118157 [12:33:42]ProducePacketName [12:33:42]name=ofd_packets/00118157 [12:33:42]NVStorageDeleteData [12:33:42]Write to MH i2c: 01 00 00 50 04 54 [12:33:42]Write i2c OK [12:33:42]MH_I2C_Read... [12:33:42]Read from MH i2c: 01 [12:33:42]MH_I2C_Read... [12:33:42]Read from MH i2c: 01 07 00 [12:33:42]MH_I2C_Read... [12:33:42]Read from MH i2c: 01 07 00 50 04 00 00 00 00 00 FA 0C 61 [12:33:42]RasterBufferAndPrint [12:33:42]line [12:33:42]line [12:33:42]line [12:33:42]line [12:33:42]line [12:33:42]written 0, free lines is 3327 [12:33:42]MH_Cut [12:33:42]Write to MH i2c: D1 01 00 57 04 01 2D [12:33:42]Write i2c OK [12:33:42]MH_I2C_Read... [12:33:42]Read from MH i2c: D1 [12:33:42]MH_I2C_Read... [12:33:42]Read from MH i2c: D1 01 00 [12:33:42]MH_I2C_Read... [12:33:42]Read from MH i2c: D1 01 00 57 04 00 2C [12:33:42]Write to MH i2c: 01 00 00 58 04 5C [12:33:42]Write i2c OK [12:33:42]MH_I2C_Read... [12:33:42]OFD Sender: No OFD packet to send [12:33:43]*** Cut start [12:33:43]*** Partial cut [12:33:43]*** CUTSNS_PIN = 1 [12:33:43]*** CUTSNS_PIN = 0 [12:33:43]*** Brake cut motor [12:33:43]Read from MH i2c: 01 [12:33:43]MH_I2C_Read... [12:33:43]*** Stop cut motor [12:33:43]*** Cut end [12:33:43]Read from MH i2c: 01 07 00 [12:33:43]MH_I2C_Read... [12:33:43]Read from MH i2c: 01 07 00 58 04 00 00 00 00 00 FF 0F 71 [12:33:43]process_action close_receipt done [12:33:43]requested_data is exist [12:33:43]produce_requested_data [12:33:43]requested_item fm.sn is exist - process it [12:33:43]wFMCommunicate request_size=4 [12:33:43]MH_SAM_APDU [12:33:43]CAPDU: 80 11 00 00 [12:33:43]Write to MH i2c: E2 08 00 59 04 80 11 00 00 00 00 00 00 D7 [12:33:43]Write i2c OK [12:33:43]MH_I2C_Read... [12:33:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:43]Read from MH i2c: E2 [12:33:43]MH_I2C_Read... [12:33:43]Read from MH i2c: E2 17 00 [12:33:43]MH_I2C_Read... [12:33:43]Read from MH i2c: E2 17 00 59 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 32 [12:33:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:33:43]wFMCommunicate OK [12:33:43]requested_item fd.num is exist - process it [12:33:43]SAM_PROTO_GetFieldsCounters [12:33:43]wFMCommunicate request_size=4 [12:33:43]MH_SAM_APDU [12:33:43]CAPDU: 80 13 00 00 [12:33:43]Write to MH i2c: E2 08 00 5A 04 80 13 00 00 00 00 00 00 DA [12:33:43]Write i2c OK [12:33:43]MH_I2C_Read... [12:33:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:43]Read from MH i2c: E2 [12:33:43]MH_I2C_Read... [12:33:43]Read from MH i2c: E2 62 00 [12:33:43]MH_I2C_Read... [12:33:43]Read from MH i2c: E2 62 00 5A 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8D CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [12:33:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8D CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:33:43]wFMCommunicate OK [12:33:43]SAM_PROTO_GetFieldsCounters done [12:33:43]requested_item shift.num is exist - process it [12:33:43]requested_item shift.opened is exist - process it [12:33:43]req_shift_opened [12:33:43]FM_GetShiftState [12:33:43]SAM_PROTO_GetShiftState [12:33:43]wFMCommunicate request_size=4 [12:33:43]MH_SAM_APDU [12:33:43]CAPDU: 80 13 01 00 [12:33:43]Write to MH i2c: E2 08 00 5B 04 80 13 01 00 00 00 00 00 DC [12:33:43]Write i2c OK [12:33:43]MH_I2C_Read... [12:33:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:43]Read from MH i2c: E2 [12:33:43]MH_I2C_Read... [12:33:43]Read from MH i2c: E2 0E 00 [12:33:43]MH_I2C_Read... [12:33:43]Read from MH i2c: E2 0E 00 5B 04 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 69 [12:33:43]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [12:33:43]wFMCommunicate OK [12:33:43]SAM_PROTO_GetShiftState done [12:33:43]FM_GetShiftState done [12:33:43]req_shift_opened done [12:33:43]requested_item shift.open_date is exist - process it [12:33:43]req_shift_open_date [12:33:43]req_shift_open_date done [12:33:43]produce_requested_data done [12:33:43]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118157,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [12:33:43]process_action_free close_receipt [12:33:43]json_value_free [12:33:43]json_value_free done [12:33:43]process_json_proto returns [12:33:43]Send response to host [12:33:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118157,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [12:33:43]free response buf [12:33:43]execute_script done [12:33:43]execute_script returns [12:33:43]free content buf [12:33:43]Sock 7.Close socket [12:33:43]Sock 7.Thread stoped [12:33:47]OFD Sender: No OFD packet to send [12:33:52]OFD Sender: No OFD packet to send [12:33:57]OFD Sender: No OFD packet to send [12:34:02]OFD Sender: No OFD packet to send [12:34:07]OFD Sender: No OFD packet to send [12:34:12]OFD Sender: No OFD packet to send [12:34:17]OFD Sender: No OFD packet to send [12:34:22]OFD Sender: No OFD packet to send [12:34:27]OFD Sender: No OFD packet to send [12:34:32]OFD Sender: No OFD packet to send [12:34:37]OFD Sender: No OFD packet to send [12:34:42]OFD Sender: No OFD packet to send [12:34:47]OFD Sender: No OFD packet to send [12:34:52]OFD Sender: No OFD packet to send [12:34:57]OFD Sender: No OFD packet to send [12:35:02]OFD Sender: No OFD packet to send [12:35:07]OFD Sender: No OFD packet to send [12:35:12]OFD Sender: No OFD packet to send [12:35:17]OFD Sender: No OFD packet to send [12:35:22]OFD Sender: No OFD packet to send [12:35:27]OFD Sender: No OFD packet to send [12:35:32]OFD Sender: No OFD packet to send [12:35:37]OFD Sender: No OFD packet to send [12:35:42]OFD Sender: No OFD packet to send [12:35:47]OFD Sender: No OFD packet to send [12:35:52]OFD Sender: No OFD packet to send [12:35:57]OFD Sender: No OFD packet to send [12:36:02]OFD Sender: No OFD packet to send [12:36:07]OFD Sender: No OFD packet to send [12:36:12]OFD Sender: No OFD packet to send [12:36:17]OFD Sender: No OFD packet to send [12:36:22]OFD Sender: No OFD packet to send [12:36:27]OFD Sender: No OFD packet to send [12:36:32]OFD Sender: No OFD packet to send [12:36:37]OFD Sender: No OFD packet to send [12:36:42]OFD Sender: No OFD packet to send [12:36:47]OFD Sender: No OFD packet to send [12:36:52]OFD Sender: No OFD packet to send [12:36:57]OFD Sender: No OFD packet to send [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:48]OFD Sender: No OFD packet to send [12:38:53]OFD Sender: No OFD packet to send [12:38:58]OFD Sender: No OFD packet to send [12:39:03]OFD Sender: No OFD packet to send [12:39:08]OFD Sender: No OFD packet to send [12:39:13]OFD Sender: No OFD packet to send [12:39:18]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:58]OFD Sender: No OFD packet to send [12:40:03]OFD Sender: No OFD packet to send [12:40:08]OFD Sender: No OFD packet to send [12:40:13]OFD Sender: No OFD packet to send [12:40:18]OFD Sender: No OFD packet to send [12:40:23]OFD Sender: No OFD packet to send [12:40:28]OFD Sender: No OFD packet to send [12:40:33]OFD Sender: No OFD packet to send [12:40:38]OFD Sender: No OFD packet to send [12:40:39]accept exits with 9 [12:40:39]New connection [12:40:39]New thread 3067272548 created [12:40:39]Thread 3067415908 joined [12:40:39]Waiting for new connection... [12:40:39] Sock 9.Parse request [12:40:39]Sock 9.Check first char [12:40:39]Sock 9.First char is OK [12:40:39]request: POST /json_proto HTTP/1.0 [12:40:39]Method: POST [12:40:39]URL: /json_proto [12:40:39]Method is POST - this is cgi request [12:40:39]url: /json_proto [12:40:39]query_string will be loaded in cgi processing [12:40:39]execute_cgi json_proto POST (null) [12:40:39]execute_cgi path=json_proto method=POST [12:40:39]POST find Content-Length [12:40:39]Host: 172.17.45.7:8080 [12:40:39]Content-Length: 677 [12:40:39]Content-Type: application/json [12:40:39] [12:40:39]POST finish read [12:40:39]Found Content-Length = 677 [12:40:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:39]execute_script... [12:40: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)949031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:39]POST & json_proto [12:40:39]process_json_proto [12:40:39]json parsed OK: [12:40:39]protocol is kg_v1.0 [12:40:39]action value=close_receipt [12:40:39]process_action close_receipt [12:40:39]cmd_close_receipt [12:40:39]MH_GetDate [12:40:39]Write to MH i2c: F0 00 00 5C 04 4F [12:40:39]Write i2c OK [12:40:39]MH_I2C_Read... [12:40:39]Read from MH i2c: F0 [12:40:39]MH_I2C_Read... [12:40:39]Read from MH i2c: F0 09 00 [12:40:39]MH_I2C_Read... [12:40:39]Read from MH i2c: F0 09 00 5C 04 00 C8 EA A4 66 90 0F 3E 66 57 [12:40:39]GetLastDocTimeStamp 1722083621 [12:40:39]current date 1722084040 [12:40:39]FM_GetShiftState [12:40:39]SAM_PROTO_GetShiftState [12:40:39]wFMCommunicate request_size=4 [12:40:39]MH_SAM_APDU [12:40:39]CAPDU: 80 13 01 00 [12:40:39]Write to MH i2c: E2 08 00 5D 04 80 13 01 00 00 00 00 00 DE [12:40:39]Write i2c OK [12:40:39]MH_I2C_Read... [12:40:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:39]Read from MH i2c: E2 [12:40:39]MH_I2C_Read... [12:40:39]Read from MH i2c: E2 0E 00 [12:40:39]MH_I2C_Read... [12:40:39]Read from MH i2c: E2 0E 00 5D 04 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 6B [12:40:39]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [12:40:39]wFMCommunicate OK [12:40:39]SAM_PROTO_GetShiftState done [12:40:39]FM_GetShiftState done [12:40:39]opened in 1722038845 [12:40:39]opened+sec_in_day 1722125245 [12:40:39]quantity*price = 60003 [12:40:39]sum+1 = 60004 [12:40:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 101 27.07.2024 12:40 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118158 ФПД: 36255396458492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T124040&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118158&fm=36255396458492&tin=02508201610067®Number=0000000000092660&sum=60000 [12:40:40]StoreToDocumentArchive [12:40:40]shift 432 fd 118158 [12:40:40]save to /storage/0432/doc_00118158 [12:40:40]save last doc name /storage/0432/doc_00118158 to /storage/kkm_last_doc_name [12:40:40]save OK [12:40:40]Clear old archive folders... [12:40:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:40:40]tlvbuf is 00382650 [12:40:40]SAM_PROTO_ClearQueue [12:40:40]wFMCommunicate request_size=4 [12:40:40]MH_SAM_APDU [12:40:40]CAPDU: 80 09 00 00 [12:40:40]Write to MH i2c: E2 08 00 6A 04 80 09 00 00 00 00 00 00 E0 [12:40:40]Write i2c OK [12:40:40]MH_I2C_Read... [12:40:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:40]Read from MH i2c: E2 [12:40:40]MH_I2C_Read... [12:40:40]Read from MH i2c: E2 03 00 [12:40:40]MH_I2C_Read... [12:40:40]Read from MH i2c: E2 03 00 6A 04 00 90 00 E2 [12:40:40]RAPDU: 90 00 [12:40:40]wFMCommunicate OK [12:40:40]SAM_PROTO_ClearQueue done [12:40:40]KKMCreateOFDPacket [12:40:40]OFDProtocolAddRootSTLVToBuf [12:40:40]FM_MakeSignedData [12:40:40]FM_MakeSignedData [12:40:40]SAM_PROTO_SignData [12:40:40]wFMCommunicate request_size=4 [12:40:40]MH_SAM_APDU [12:40:40]CAPDU: 80 0D 01 02 [12:40:40]Write to MH i2c: E2 08 00 6B 04 80 0D 01 02 00 00 00 00 E8 [12:40:40]Write i2c OK [12:40:40]MH_I2C_Read... [12:40:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:40]Read from MH i2c: E2 [12:40:40]MH_I2C_Read... [12:40:40]Read from MH i2c: E2 03 00 [12:40:40]MH_I2C_Read... [12:40:40]Read from MH i2c: E2 03 00 6B 04 00 90 00 E3 [12:40:40]RAPDU: 90 00 [12:40:40]wFMCommunicate OK [12:40:40]wFMCommunicate request_size=255 [12:40:40]MH_SAM_APDU [12:40: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 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 65 00 00 00 F4 03 04 00 C8 EA A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8E CD 01 00 35 04 06 00 20 [12:40:40]Write to MH i2c: E2 02 01 6C 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 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 65 00 00 00 F4 03 04 00 C8 EA A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8E CD 01 00 35 04 06 00 20 00 00 81 [12:40:40]Write i2c OK [12:40:40]MH_I2C_Read... [12:40:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:40]Read from MH i2c: E2 [12:40:40]MH_I2C_Read... [12:40:40]Read from MH i2c: E2 03 00 [12:40:40]MH_I2C_Read... [12:40:40]Read from MH i2c: E2 03 00 6C 04 00 90 00 E4 [12:40:40]RAPDU: 90 00 [12:40:40]wFMCommunicate OK [12:40:40]wFMCommunicate request_size=10 [12:40:40]MH_SAM_APDU [12:40:40]CAPDU: 80 0D 02 02 05 F9 5E 06 EF FC [12:40:40]Write to MH i2c: E2 0D 00 6D 04 80 0D 02 02 05 00 F9 5E 06 EF FC 00 00 3D [12:40:40]Write i2c OK [12:40:40]MH_I2C_Read... [12:40:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:40]Read from MH i2c: E2 [12:40:40]MH_I2C_Read... [12:40:40]Read from MH i2c: E2 03 00 [12:40:40]MH_I2C_Read... [12:40:40]Read from MH i2c: E2 03 00 6D 04 00 90 00 E5 [12:40:40]RAPDU: 90 00 [12:40:40]wFMCommunicate OK [12:40:40]wFMCommunicate request_size=4 [12:40:40]MH_SAM_APDU [12:40:40]CAPDU: 80 0D 03 02 [12:40:40]Write to MH i2c: E2 08 00 6E 04 80 0D 03 02 00 00 00 00 ED [12:40:40]Write i2c OK [12:40:40]MH_I2C_Read... [12:40:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:40]Read from MH i2c: E2 [12:40:40]MH_I2C_Read... [12:40:40]Read from MH i2c: E2 0B 00 [12:40:40]MH_I2C_Read... [12:40:40]Read from MH i2c: E2 0B 00 6E 04 00 E4 1C DE 06 71 12 02 43 90 00 9A [12:40:40]RAPDU: E4 1C DE 06 71 12 02 43 90 00 [12:40:40]wFMCommunicate OK [12:40:40]SAM_PROTO_SignData done [12:40:40]FM_MakeSignedData done [12:40:40]CreateOFDProtocolMessage [12:40:40]wFMCommunicate request_size=4 [12:40:40]MH_SAM_APDU [12:40:40]CAPDU: 80 11 00 00 [12:40:40]Write to MH i2c: E2 08 00 6F 04 80 11 00 00 00 00 00 00 ED [12:40:40]Write i2c OK [12:40:40]MH_I2C_Read... [12:40:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:40]Read from MH i2c: E2 [12:40:40]MH_I2C_Read... [12:40:40]Read from MH i2c: E2 17 00 [12:40:40]MH_I2C_Read... [12:40:40]Read from MH i2c: E2 17 00 6F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 48 [12:40:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:40:40]wFMCommunicate OK [12:40:40]CreateOFDProtocolMessage done [12:40:40]OFDSenderStorePacket 118158 [12:40:40]StoreOFDPacket docnum=118158 [12:40:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C1 6F 07 01 DE 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 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 65 00 00 00 F4 03 04 00 C8 EA A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8E CD 01 00 35 04 06 00 20 F9 5E 06 EF FC E4 1C DE 06 71 12 02 43 [12:40:40]CheckFolder [12:40:40]dirname=/storage/ofd_packets [12:40:40]CheckFolder done [12:40:40]ProducePacketName [12:40:40]name=ofd_packets/00118158 [12:40:40]NVStorageSaveData ofd_packets/00118158 [12:40:40]File name is /storage/ofd_packets/00118158 [12:40:40]Write 301 bytes [12:40:40]NVStorageSaveData done [12:40:40]OFDSenderStorePacket done [12:40:40]KKMCreateOFDPacket done [12:40:40]NVStorageSaveData kkm_last_timestamp [12:40:40]File name is /storage/kkm_last_timestamp [12:40:40]Write 4 bytes [12:40:40]NVStorageSaveData done [12:40:40]ExternCall_PrintAddStr [12:40:40]wPrintStart [12:40:40]Write to MH i2c: 01 00 00 70 04 74 [12:40:40]Write i2c OK [12:40:40]MH_I2C_Read... [12:40:40]Read from MH i2c: 01 [12:40:40]MH_I2C_Read... [12:40:40]Read from MH i2c: 01 07 00 [12:40:40]MH_I2C_Read... [12:40:40]Read from MH i2c: 01 07 00 70 04 00 00 00 00 00 FF 0F 89 [12:40:40]RasterBufferAndPrint [12:40:40]line Счет N : (1)949031 [12:40:40]line ИНН: 02508201610067 [12:40:40]line Контрольно-Кассовый Чек [12:40:40]line ПРОДАЖА [12:40:40]line ТРК (МРК, ГНК) : 41 [12:40:40]line Товар: 2710124130 [12:40:40]line Аи-92-К-4 [12:40:40]line 8.850 * 67.80 [12:40:40]line = 600.03 [12:40:40]line НДС 12% НСП 1% [12:40:40]line > о реализуемом товаре [12:40:40]line ОКРУГЛЕНИЕ: -0.03 [12:40:40]line ИТОГО: 600.00 [12:40:40]line Внесено: 600.00 [12:40:40]line СДАЧА: 0.00 [12:40:40]line НСП 1% : 5.31 [12:40:40]line НДС 12% : 63.72 [12:40:40]line Наличными: 600.00 [12:40:40]line Безнал.: 0.00 [12:40:40]line Место: АЗС № 134 "Партнер Нефть" [12:40:40]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:40:40]line СНО: Общий режим [12:40:40]line Чек 101 27.07.2024 12:40 [12:40:40]line Смена: 432 ФФД: 1.0 [12:40:40]line ЗНМ: 0300000044 [12:40:40]line РНМ: 0000000000092660 [12:40:40]line Версия ККМ: 001 [12:40:40]line ФМ: 0000000000874939 [12:40:40]line ФД: 118158 [12:40:40]line ФПД: 36255396458492 [12:40:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T124040&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118158&fm=36255396458492&tin=02508201610067®Number=0000000000092660&sum=60000 [12:40:41]OFD Sender: Processing packet 118158 [packets to send 85, broken 84] [12:40:41]ProducePacketName [12:40:41]name=ofd_packets/00118158 [12:40:41]OFD Sender: To server: pG, [12:40:41]CommunicateWithHost lk.salyk.kg:30040 [12:40:41]ConnectInit lk.salyk.kg [12:40:41]written 0, free lines is 4095 [12:40:41]Connected sock=10 [12:40:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C1 6F 07 01 DE 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 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 65 00 00 00 F4 03 04 00 C8 EA A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8E CD 01 00 35 04 06 00 20 F9 5E 06 EF FC E4 1C DE 06 71 12 02 43 [12:40:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 23 48 47 00 7F 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8E CD 01 00 F4 03 04 00 5B 98 A4 66 B6 04 01 00 00 34 27 29 B2 28 A5 CC 71 [12:40:41]CommunicateWithHost err = 0 [12:40:41]CheckOFDResponse [12:40:41]1017 (14) - 77093643461234 [12:40:41]1041 (16) - 0000000000874939 [12:40:41]1040 (4) - 118158 [12:40:41]1012 (4) - 27.07.2024 06:48 [12:40:41]1206 (1) - 0 [12:40:41]OFD Sender: Remove packet 118158 [12:40:41]ProducePacketName [12:40:41]name=ofd_packets/00118158 [12:40:41]NVStorageDeleteData [12:40:41]Write to MH i2c: 01 00 00 9A 04 9E [12:40:41]Write i2c OK [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: 01 [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: 01 07 00 [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: 01 07 00 9A 04 00 00 00 00 00 F2 0C A3 [12:40:41]RasterBufferAndPrint [12:40:41]line [12:40:41]line [12:40:41]line [12:40:41]line [12:40:41]line [12:40:41]written 0, free lines is 3322 [12:40:41]MH_Cut [12:40:41]Write to MH i2c: D1 01 00 A1 04 01 77 [12:40:41]Write i2c OK [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: D1 [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: D1 01 00 [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: D1 01 00 A1 04 00 76 [12:40:41]Write to MH i2c: 01 00 00 A2 04 A6 [12:40:41]Write i2c OK [12:40:41]MH_I2C_Read... [12:40:42]OFD Sender: No OFD packet to send [12:40:42]*** Cut start [12:40:42]*** Partial cut [12:40:42]*** CUTSNS_PIN = 1 [12:40:42]*** CUTSNS_PIN = 0 [12:40:42]*** Brake cut motor [12:40:42]Read from MH i2c: 01 [12:40:43]MH_I2C_Read... [12:40:43]*** Stop cut motor [12:40:43]*** Cut end [12:40:43]Read from MH i2c: 01 07 00 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: 01 07 00 A2 04 00 00 00 00 00 FF 0F BB [12:40:43]process_action close_receipt done [12:40:43]requested_data is exist [12:40:43]produce_requested_data [12:40:43]requested_item fm.sn is exist - process it [12:40:43]wFMCommunicate request_size=4 [12:40:43]MH_SAM_APDU [12:40:43]CAPDU: 80 11 00 00 [12:40:43]Write to MH i2c: E2 08 00 A3 04 80 11 00 00 00 00 00 00 21 [12:40:43]Write i2c OK [12:40:43]MH_I2C_Read... [12:40:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:43]Read from MH i2c: E2 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: E2 17 00 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: E2 17 00 A3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7C [12:40:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:40:43]wFMCommunicate OK [12:40:43]requested_item fd.num is exist - process it [12:40:43]SAM_PROTO_GetFieldsCounters [12:40:43]wFMCommunicate request_size=4 [12:40:43]MH_SAM_APDU [12:40:43]CAPDU: 80 13 00 00 [12:40:43]Write to MH i2c: E2 08 00 A4 04 80 13 00 00 00 00 00 00 24 [12:40:43]Write i2c OK [12:40:43]MH_I2C_Read... [12:40:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:43]Read from MH i2c: E2 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: E2 62 00 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: E2 62 00 A4 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8E CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [12:40:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8E CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:40:43]wFMCommunicate OK [12:40:43]SAM_PROTO_GetFieldsCounters done [12:40:43]requested_item shift.num is exist - process it [12:40:43]requested_item shift.opened is exist - process it [12:40:43]req_shift_opened [12:40:43]FM_GetShiftState [12:40:43]SAM_PROTO_GetShiftState [12:40:43]wFMCommunicate request_size=4 [12:40:43]MH_SAM_APDU [12:40:43]CAPDU: 80 13 01 00 [12:40:43]Write to MH i2c: E2 08 00 A5 04 80 13 01 00 00 00 00 00 26 [12:40:43]Write i2c OK [12:40:43]MH_I2C_Read... [12:40:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:43]Read from MH i2c: E2 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: E2 0E 00 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: E2 0E 00 A5 04 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 B3 [12:40:43]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [12:40:43]wFMCommunicate OK [12:40:43]SAM_PROTO_GetShiftState done [12:40:43]FM_GetShiftState done [12:40:43]req_shift_opened done [12:40:43]requested_item shift.open_date is exist - process it [12:40:43]req_shift_open_date [12:40:43]req_shift_open_date done [12:40:43]produce_requested_data done [12:40:43]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118158,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [12:40:43]process_action_free close_receipt [12:40:43]json_value_free [12:40:43]json_value_free done [12:40:43]process_json_proto returns [12:40:43]Send response to host [12:40:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118158,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [12:40:43]free response buf [12:40:43]execute_script done [12:40:43]execute_script returns [12:40:43]free content buf [12:40:43]Sock 9.Close socket [12:40:43]Sock 9.Thread stoped [12:40:47]OFD Sender: No OFD packet to send [12:40:52]OFD Sender: No OFD packet to send [12:40:57]OFD Sender: No OFD packet to send [12:41:02]OFD Sender: No OFD packet to send [12:41:07]OFD Sender: No OFD packet to send [12:41:12]OFD Sender: No OFD packet to send [12:41:17]OFD Sender: No OFD packet to send [12:41:22]OFD Sender: No OFD packet to send [12:41:27]OFD Sender: No OFD packet to send [12:41:32]OFD Sender: No OFD packet to send [12:41:37]OFD Sender: No OFD packet to send [12:41:42]OFD Sender: No OFD packet to send [12:41:47]OFD Sender: No OFD packet to send [12:41:52]OFD Sender: No OFD packet to send [12:41:57]OFD Sender: No OFD packet to send [12:42:02]OFD Sender: No OFD packet to send [12:42:07]OFD Sender: No OFD packet to send [12:42:12]OFD Sender: No OFD packet to send [12:42:17]OFD Sender: No OFD packet to send [12:42:22]OFD Sender: No OFD packet to send [12:42:27]OFD Sender: No OFD packet to send [12:42:32]OFD Sender: No OFD packet to send [12:42:37]OFD Sender: No OFD packet to send [12:42:42]OFD Sender: No OFD packet to send [12:42:47]OFD Sender: No OFD packet to send [12:42:52]OFD Sender: No OFD packet to send [12:42:57]OFD Sender: No OFD packet to send [12:43:02]OFD Sender: No OFD packet to send [12:43:07]OFD Sender: No OFD packet to send [12:43:12]OFD Sender: No OFD packet to send [12:43:17]OFD Sender: No OFD packet to send [12:43:22]OFD Sender: No OFD packet to send [12:43:27]OFD Sender: No OFD packet to send [12:43:28]accept exits with 7 [12:43:28]New connection [12:43:28]New thread 3067415908 created [12:43:28]Thread 3067272548 joined [12:43:28]Waiting for new connection... [12:43:28] Sock 7.Parse request [12:43:28]Sock 7.Check first char [12:43:28]Sock 7.First char is OK [12:43:28]request: POST /json_proto HTTP/1.0 [12:43:28]Method: POST [12:43:28]URL: /json_proto [12:43:28]Method is POST - this is cgi request [12:43:28]url: /json_proto [12:43:28]query_string will be loaded in cgi processing [12:43:28]execute_cgi json_proto POST (null) [12:43:28]execute_cgi path=json_proto method=POST [12:43:28]POST find Content-Length [12:43:28]Host: 172.17.45.7:8080 [12:43:28]Content-Length: 677 [12:43:28]Content-Type: application/json [12:43:28] [12:43:28]POST finish read [12:43:28]Found Content-Length = 677 [12:43:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:28]execute_script... [12:43:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:28]POST & json_proto [12:43:28]process_json_proto [12:43:28]json parsed OK: [12:43:28]protocol is kg_v1.0 [12:43:28]action value=close_receipt [12:43:28]process_action close_receipt [12:43:28]cmd_close_receipt [12:43:28]MH_GetDate [12:43:28]Write to MH i2c: F0 00 00 A6 04 99 [12:43:28]Write i2c OK [12:43:28]MH_I2C_Read... [12:43:28]Read from MH i2c: F0 [12:43:28]MH_I2C_Read... [12:43:28]Read from MH i2c: F0 09 00 [12:43:28]MH_I2C_Read... [12:43:28]Read from MH i2c: F0 09 00 A6 04 00 71 EB A4 66 90 0F 3E 66 4B [12:43:28]GetLastDocTimeStamp 1722084040 [12:43:28]current date 1722084209 [12:43:28]FM_GetShiftState [12:43:28]SAM_PROTO_GetShiftState [12:43:28]wFMCommunicate request_size=4 [12:43:28]MH_SAM_APDU [12:43:28]CAPDU: 80 13 01 00 [12:43:28]Write to MH i2c: E2 08 00 A7 04 80 13 01 00 00 00 00 00 28 [12:43:28]Write i2c OK [12:43:28]MH_I2C_Read... [12:43:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:28]Read from MH i2c: E2 [12:43:28]MH_I2C_Read... [12:43:28]Read from MH i2c: E2 0E 00 [12:43:28]MH_I2C_Read... [12:43:28]Read from MH i2c: E2 0E 00 A7 04 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 B5 [12:43:28]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [12:43:28]wFMCommunicate OK [12:43:28]SAM_PROTO_GetShiftState done [12:43:28]FM_GetShiftState done [12:43:28]opened in 1722038845 [12:43:28]opened+sec_in_day 1722125245 [12:43:28]quantity*price = 40002 [12:43:28]sum+1 = 40003 [12:43:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 102 27.07.2024 12:43 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118159 ФПД: 172670066430716 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T124329&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118159&fm=172670066430716&tin=02508201610067®Number=0000000000092660&sum=40000 [12:43:29]StoreToDocumentArchive [12:43:29]shift 432 fd 118159 [12:43:29]save to /storage/0432/doc_00118159 [12:43:29]save last doc name /storage/0432/doc_00118159 to /storage/kkm_last_doc_name [12:43:29]save OK [12:43:29]Clear old archive folders... [12:43:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:43:29]tlvbuf is 00361AC0 [12:43:29]SAM_PROTO_ClearQueue [12:43:29]wFMCommunicate request_size=4 [12:43:29]MH_SAM_APDU [12:43:29]CAPDU: 80 09 00 00 [12:43:29]Write to MH i2c: E2 08 00 B4 04 80 09 00 00 00 00 00 00 2A [12:43:29]Write i2c OK [12:43:29]MH_I2C_Read... [12:43:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:29]Read from MH i2c: E2 [12:43:29]MH_I2C_Read... [12:43:29]Read from MH i2c: E2 03 00 [12:43:29]MH_I2C_Read... [12:43:29]Read from MH i2c: E2 03 00 B4 04 00 90 00 2C [12:43:29]RAPDU: 90 00 [12:43:29]wFMCommunicate OK [12:43:29]SAM_PROTO_ClearQueue done [12:43:29]KKMCreateOFDPacket [12:43:29]OFDProtocolAddRootSTLVToBuf [12:43:29]FM_MakeSignedData [12:43:29]FM_MakeSignedData [12:43:29]SAM_PROTO_SignData [12:43:29]wFMCommunicate request_size=4 [12:43:29]MH_SAM_APDU [12:43:29]CAPDU: 80 0D 01 02 [12:43:29]Write to MH i2c: E2 08 00 B5 04 80 0D 01 02 00 00 00 00 32 [12:43:29]Write i2c OK [12:43:29]MH_I2C_Read... [12:43:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:29]Read from MH i2c: E2 [12:43:29]MH_I2C_Read... [12:43:29]Read from MH i2c: E2 03 00 [12:43:29]MH_I2C_Read... [12:43:29]Read from MH i2c: E2 03 00 B5 04 00 90 00 2D [12:43:29]RAPDU: 90 00 [12:43:29]wFMCommunicate OK [12:43:29]wFMCommunicate request_size=255 [12:43:29]MH_SAM_APDU [12:43: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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 71 EB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8F CD 01 00 35 04 06 00 9D [12:43:29]Write to MH i2c: E2 02 01 B6 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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 71 EB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8F CD 01 00 35 04 06 00 9D 00 00 12 [12:43:29]Write i2c OK [12:43:29]MH_I2C_Read... [12:43:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:30]Read from MH i2c: E2 [12:43:30]MH_I2C_Read... [12:43:30]Read from MH i2c: E2 03 00 [12:43:30]MH_I2C_Read... [12:43:30]Read from MH i2c: E2 03 00 B6 04 00 90 00 2E [12:43:30]RAPDU: 90 00 [12:43:30]wFMCommunicate OK [12:43:30]wFMCommunicate request_size=10 [12:43:30]MH_SAM_APDU [12:43:30]CAPDU: 80 0D 02 02 05 0A E1 F9 12 FC [12:43:30]Write to MH i2c: E2 0D 00 B7 04 80 0D 02 02 05 00 0A E1 F9 12 FC 00 00 31 [12:43:30]Write i2c OK [12:43:30]MH_I2C_Read... [12:43:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:30]Read from MH i2c: E2 [12:43:30]MH_I2C_Read... [12:43:30]Read from MH i2c: E2 03 00 [12:43:30]MH_I2C_Read... [12:43:30]Read from MH i2c: E2 03 00 B7 04 00 90 00 2F [12:43:30]RAPDU: 90 00 [12:43:30]wFMCommunicate OK [12:43:30]wFMCommunicate request_size=4 [12:43:30]MH_SAM_APDU [12:43:30]CAPDU: 80 0D 03 02 [12:43:30]Write to MH i2c: E2 08 00 B8 04 80 0D 03 02 00 00 00 00 37 [12:43:30]Write i2c OK [12:43:30]MH_I2C_Read... [12:43:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:30]Read from MH i2c: E2 [12:43:30]MH_I2C_Read... [12:43:30]Read from MH i2c: E2 0B 00 [12:43:30]MH_I2C_Read... [12:43:30]Read from MH i2c: E2 0B 00 B8 04 00 20 A8 A4 9A 89 4D 9D 12 90 00 C3 [12:43:30]RAPDU: 20 A8 A4 9A 89 4D 9D 12 90 00 [12:43:30]wFMCommunicate OK [12:43:30]SAM_PROTO_SignData done [12:43:30]FM_MakeSignedData done [12:43:30]CreateOFDProtocolMessage [12:43:30]wFMCommunicate request_size=4 [12:43:30]MH_SAM_APDU [12:43:30]CAPDU: 80 11 00 00 [12:43:30]Write to MH i2c: E2 08 00 B9 04 80 11 00 00 00 00 00 00 37 [12:43:30]Write i2c OK [12:43:30]MH_I2C_Read... [12:43:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:30]Read from MH i2c: E2 [12:43:30]MH_I2C_Read... [12:43:30]Read from MH i2c: E2 17 00 [12:43:30]MH_I2C_Read... [12:43:30]Read from MH i2c: E2 17 00 B9 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 92 [12:43:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:43:30]wFMCommunicate OK [12:43:30]CreateOFDProtocolMessage done [12:43:30]OFDSenderStorePacket 118159 [12:43:30]StoreOFDPacket docnum=118159 [12:43:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 12 C7 07 01 C9 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 71 EB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8F CD 01 00 35 04 06 00 9D 0A E1 F9 12 FC 20 A8 A4 9A 89 4D 9D 12 [12:43:30]CheckFolder [12:43:30]dirname=/storage/ofd_packets [12:43:30]CheckFolder done [12:43:30]ProducePacketName [12:43:30]name=ofd_packets/00118159 [12:43:30]NVStorageSaveData ofd_packets/00118159 [12:43:30]File name is /storage/ofd_packets/00118159 [12:43:30]Write 301 bytes [12:43:30]NVStorageSaveData done [12:43:30]OFDSenderStorePacket done [12:43:30]KKMCreateOFDPacket done [12:43:30]NVStorageSaveData kkm_last_timestamp [12:43:30]File name is /storage/kkm_last_timestamp [12:43:30]Write 4 bytes [12:43:30]NVStorageSaveData done [12:43:30]ExternCall_PrintAddStr [12:43:30]wPrintStart [12:43:30]Write to MH i2c: 01 00 00 BA 04 BE [12:43:30]Write i2c OK [12:43:30]MH_I2C_Read... [12:43:30]Read from MH i2c: 01 [12:43:30]MH_I2C_Read... [12:43:30]Read from MH i2c: 01 07 00 [12:43:30]MH_I2C_Read... [12:43:30]Read from MH i2c: 01 07 00 BA 04 00 00 00 00 00 FF 0F D3 [12:43:30]RasterBufferAndPrint [12:43:30]line Счет N : (1)949032 [12:43:30]line ИНН: 02508201610067 [12:43:30]line Контрольно-Кассовый Чек [12:43:30]line ПРОДАЖА [12:43:30]line ТРК (МРК, ГНК) : 51 [12:43:30]line Товар: 2710124130 [12:43:30]line Аи-92-К-4 [12:43:30]line 5.900 * 67.80 [12:43:30]line = 400.02 [12:43:30]line НДС 12% НСП 1% [12:43:30]line > о реализуемом товаре [12:43:30]line ОКРУГЛЕНИЕ: -0.02 [12:43:30]line ИТОГО: 400.00 [12:43:30]line Внесено: 400.00 [12:43:30]line СДАЧА: 0.00 [12:43:30]line НСП 1% : 3.54 [12:43:30]line НДС 12% : 42.48 [12:43:30]line Наличными: 400.00 [12:43:30]line Безнал.: 0.00 [12:43:30]line Место: АЗС № 134 "Партнер Нефть" [12:43:30]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:43:30]line СНО: Общий режим [12:43:30]line Чек 102 27.07.2024 12:43 [12:43:30]line Смена: 432 ФФД: 1.0 [12:43:30]line ЗНМ: 0300000044 [12:43:30]line РНМ: 0000000000092660 [12:43:30]line Версия ККМ: 001 [12:43:30]line ФМ: 0000000000874939 [12:43:30]line ФД: 118159 [12:43:30]line ФПД: 172670066430716 [12:43:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T124329&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118159&fm=172670066430716&tin=02508201610067®Number=0000000000092660&sum=40000 [12:43:30]written 0, free lines is 4095 [12:43:30]OFD Sender: Processing packet 118159 [packets to send 85, broken 84] [12:43:30]ProducePacketName [12:43:30]name=ofd_packets/00118159 [12:43:30]OFD Sender: To server: pG, [12:43:30]CommunicateWithHost lk.salyk.kg:30040 [12:43:30]ConnectInit lk.salyk.kg [12:43:30]Connected sock=10 [12:43:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 12 C7 07 01 C9 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 71 EB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8F CD 01 00 35 04 06 00 9D 0A E1 F9 12 FC 20 A8 A4 9A 89 4D 9D 12 [12:43:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 0E 81 47 00 F6 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8F CD 01 00 F4 03 04 00 04 99 A4 66 B6 04 01 00 00 F7 DD 6A BA AE 61 28 B0 [12:43:30]CommunicateWithHost err = 0 [12:43:30]CheckOFDResponse [12:43:30]1017 (14) - 77093643461234 [12:43:30]1041 (16) - 0000000000874939 [12:43:30]1040 (4) - 118159 [12:43:30]1012 (4) - 27.07.2024 06:51 [12:43:30]1206 (1) - 0 [12:43:30]OFD Sender: Remove packet 118159 [12:43:30]ProducePacketName [12:43:30]name=ofd_packets/00118159 [12:43:30]NVStorageDeleteData [12:43:31]Write to MH i2c: 01 00 00 E4 04 E8 [12:43:31]Write i2c OK [12:43:31]MH_I2C_Read... [12:43:31]Read from MH i2c: 01 [12:43:31]MH_I2C_Read... [12:43:31]Read from MH i2c: 01 07 00 [12:43:31]MH_I2C_Read... [12:43:31]Read from MH i2c: 01 07 00 E4 04 00 00 00 00 00 DE 0C D9 [12:43:31]RasterBufferAndPrint [12:43:31]line [12:43:31]line [12:43:31]line [12:43:31]line [12:43:31]line [12:43:31]written 0, free lines is 3301 [12:43:31]MH_Cut [12:43:31]Write to MH i2c: D1 01 00 EB 04 01 C1 [12:43:31]Write i2c OK [12:43:31]MH_I2C_Read... [12:43:31]Read from MH i2c: D1 [12:43:31]MH_I2C_Read... [12:43:31]Read from MH i2c: D1 01 00 [12:43:31]MH_I2C_Read... [12:43:31]Read from MH i2c: D1 01 00 EB 04 00 C0 [12:43:31]Write to MH i2c: 01 00 00 EC 04 F0 [12:43:31]Write i2c OK [12:43:31]MH_I2C_Read... [12:43:31]OFD Sender: No OFD packet to send [12:43:31]*** Cut start [12:43:31]*** Partial cut [12:43:31]*** CUTSNS_PIN = 1 [12:43:31]*** CUTSNS_PIN = 0 [12:43:32]*** Brake cut motor [12:43:32]Read from MH i2c: 01 [12:43:32]MH_I2C_Read... [12:43:32]*** Stop cut motor [12:43:32]*** Cut end [12:43:32]Read from MH i2c: 01 07 00 [12:43:32]MH_I2C_Read... [12:43:32]Read from MH i2c: 01 07 00 EC 04 00 00 00 00 00 FF 0F 05 [12:43:32]process_action close_receipt done [12:43:32]requested_data is exist [12:43:32]produce_requested_data [12:43:32]requested_item fm.sn is exist - process it [12:43:32]wFMCommunicate request_size=4 [12:43:32]MH_SAM_APDU [12:43:32]CAPDU: 80 11 00 00 [12:43:32]Write to MH i2c: E2 08 00 ED 04 80 11 00 00 00 00 00 00 6B [12:43:32]Write i2c OK [12:43:32]MH_I2C_Read... [12:43:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:32]Read from MH i2c: E2 [12:43:32]MH_I2C_Read... [12:43:32]Read from MH i2c: E2 17 00 [12:43:32]MH_I2C_Read... [12:43:32]Read from MH i2c: E2 17 00 ED 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C6 [12:43:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:43:32]wFMCommunicate OK [12:43:32]requested_item fd.num is exist - process it [12:43:32]SAM_PROTO_GetFieldsCounters [12:43:32]wFMCommunicate request_size=4 [12:43:32]MH_SAM_APDU [12:43:32]CAPDU: 80 13 00 00 [12:43:32]Write to MH i2c: E2 08 00 EE 04 80 13 00 00 00 00 00 00 6E [12:43:32]Write i2c OK [12:43:32]MH_I2C_Read... [12:43:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:32]Read from MH i2c: E2 [12:43:32]MH_I2C_Read... [12:43:32]Read from MH i2c: E2 62 00 [12:43:32]MH_I2C_Read... [12:43:32]Read from MH i2c: E2 62 00 EE 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8F CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [12:43:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8F CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:43:32]wFMCommunicate OK [12:43:32]SAM_PROTO_GetFieldsCounters done [12:43:32]requested_item shift.num is exist - process it [12:43:32]requested_item shift.opened is exist - process it [12:43:32]req_shift_opened [12:43:32]FM_GetShiftState [12:43:32]SAM_PROTO_GetShiftState [12:43:32]wFMCommunicate request_size=4 [12:43:32]MH_SAM_APDU [12:43:32]CAPDU: 80 13 01 00 [12:43:32]Write to MH i2c: E2 08 00 EF 04 80 13 01 00 00 00 00 00 70 [12:43:32]Write i2c OK [12:43:32]MH_I2C_Read... [12:43:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:32]Read from MH i2c: E2 [12:43:32]MH_I2C_Read... [12:43:32]Read from MH i2c: E2 0E 00 [12:43:32]MH_I2C_Read... [12:43:32]Read from MH i2c: E2 0E 00 EF 04 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 FD [12:43:32]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [12:43:32]wFMCommunicate OK [12:43:32]SAM_PROTO_GetShiftState done [12:43:32]FM_GetShiftState done [12:43:32]req_shift_opened done [12:43:32]requested_item shift.open_date is exist - process it [12:43:32]req_shift_open_date [12:43:32]req_shift_open_date done [12:43:32]produce_requested_data done [12:43:32]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118159,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [12:43:32]process_action_free close_receipt [12:43:32]json_value_free [12:43:32]json_value_free done [12:43:32]process_json_proto returns [12:43:32]Send response to host [12:43:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118159,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [12:43:32]free response buf [12:43:32]execute_script done [12:43:32]execute_script returns [12:43:32]free content buf [12:43:32]Sock 7.Close socket [12:43:32]Sock 7.Thread stoped [12:43:36]OFD Sender: No OFD packet to send [12:43:41]OFD Sender: No OFD packet to send [12:43:46]OFD Sender: No OFD packet to send [12:43:51]OFD Sender: No OFD packet to send [12:43:56]OFD Sender: No OFD packet to send [12:44:01]OFD Sender: No OFD packet to send [12:44:06]OFD Sender: No OFD packet to send [12:44:08]accept exits with 9 [12:44:08]New connection [12:44:08]New thread 3067272548 created [12:44:08]Thread 3067415908 joined [12:44:08]Waiting for new connection... [12:44:08] Sock 9.Parse request [12:44:08]Sock 9.Check first char [12:44:08]Sock 9.First char is OK [12:44:08]request: POST /json_proto HTTP/1.0 [12:44:08]Method: POST [12:44:08]URL: /json_proto [12:44:08]Method is POST - this is cgi request [12:44:08]url: /json_proto [12:44:08]query_string will be loaded in cgi processing [12:44:08]execute_cgi json_proto POST (null) [12:44:08]execute_cgi path=json_proto method=POST [12:44:08]POST find Content-Length [12:44:08]Host: 172.17.45.7:8080 [12:44:08]Content-Length: 678 [12:44:08]Content-Type: application/json [12:44:08] [12:44:08]POST finish read [12:44:08]Found Content-Length = 678 [12:44:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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:44:08]execute_script... [12:44: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)949033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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:44:08]POST & json_proto [12:44:08]process_json_proto [12:44:08]json parsed OK: [12:44:08]protocol is kg_v1.0 [12:44:08]action value=close_receipt [12:44:08]process_action close_receipt [12:44:08]cmd_close_receipt [12:44:08]MH_GetDate [12:44:08]Write to MH i2c: F0 00 00 F0 04 E3 [12:44:08]Write i2c OK [12:44:08]MH_I2C_Read... [12:44:08]Read from MH i2c: F0 [12:44:08]MH_I2C_Read... [12:44:08]Read from MH i2c: F0 09 00 [12:44:08]MH_I2C_Read... [12:44:08]Read from MH i2c: F0 09 00 F0 04 00 9A EB A4 66 90 0F 3E 66 BE [12:44:08]GetLastDocTimeStamp 1722084209 [12:44:08]current date 1722084250 [12:44:08]FM_GetShiftState [12:44:08]SAM_PROTO_GetShiftState [12:44:08]wFMCommunicate request_size=4 [12:44:08]MH_SAM_APDU [12:44:08]CAPDU: 80 13 01 00 [12:44:08]Write to MH i2c: E2 08 00 F1 04 80 13 01 00 00 00 00 00 72 [12:44:08]Write i2c OK [12:44:08]MH_I2C_Read... [12:44:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:08]Read from MH i2c: E2 [12:44:08]MH_I2C_Read... [12:44:08]Read from MH i2c: E2 0E 00 [12:44:08]MH_I2C_Read... [12:44:08]Read from MH i2c: E2 0E 00 F1 04 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 FF [12:44:08]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [12:44:08]wFMCommunicate OK [12:44:08]SAM_PROTO_GetShiftState done [12:44:08]FM_GetShiftState done [12:44:08]opened in 1722038845 [12:44:08]opened+sec_in_day 1722125245 [12:44:08]quantity*price = 70037 [12:44:08]sum+1 = 70038 [12:44:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 103 27.07.2024 12:44 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118160 ФПД: 2251783761135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T124410&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118160&fm=2251783761135&tin=02508201610067®Number=0000000000092660&sum=70000 [12:44:10]StoreToDocumentArchive [12:44:10]shift 432 fd 118160 [12:44:10]save to /storage/0432/doc_00118160 [12:44:10]save last doc name /storage/0432/doc_00118160 to /storage/kkm_last_doc_name [12:44:10]save OK [12:44:10]Clear old archive folders... [12:44:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:44:10]tlvbuf is 0036BEC0 [12:44:10]SAM_PROTO_ClearQueue [12:44:10]wFMCommunicate request_size=4 [12:44:10]MH_SAM_APDU [12:44:10]CAPDU: 80 09 00 00 [12:44:10]Write to MH i2c: E2 08 00 FE 04 80 09 00 00 00 00 00 00 74 [12:44:10]Write i2c OK [12:44:10]MH_I2C_Read... [12:44:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:44:10]Read from MH i2c: E2 [12:44:10]MH_I2C_Read... [12:44:10]Read from MH i2c: E2 03 00 [12:44:10]MH_I2C_Read... [12:44:10]Read from MH i2c: E2 03 00 FE 04 00 90 00 76 [12:44:10]RAPDU: 90 00 [12:44:10]wFMCommunicate OK [12:44:10]SAM_PROTO_ClearQueue done [12:44:10]KKMCreateOFDPacket [12:44:10]OFDProtocolAddRootSTLVToBuf [12:44:10]FM_MakeSignedData [12:44:10]FM_MakeSignedData [12:44:10]SAM_PROTO_SignData [12:44:10]wFMCommunicate request_size=4 [12:44:10]MH_SAM_APDU [12:44:10]CAPDU: 80 0D 01 02 [12:44:10]Write to MH i2c: E2 08 00 FF 04 80 0D 01 02 00 00 00 00 7C [12:44:10]Write i2c OK [12:44:10]MH_I2C_Read... [12:44:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:44:10]Read from MH i2c: E2 [12:44:10]MH_I2C_Read... [12:44:10]Read from MH i2c: E2 03 00 [12:44:10]MH_I2C_Read... [12:44:10]Read from MH i2c: E2 03 00 FF 04 00 90 00 77 [12:44:10]RAPDU: 90 00 [12:44:10]wFMCommunicate OK [12:44:10]wFMCommunicate request_size=255 [12:44:10]MH_SAM_APDU [12:44: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 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 67 00 00 00 F4 03 04 00 9A EB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 90 CD 01 00 35 04 06 00 02 [12:44:10]Write to MH i2c: E2 02 01 00 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 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 67 00 00 00 F4 03 04 00 9A EB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 90 CD 01 00 35 04 06 00 02 00 00 EF [12:44:10]Write i2c OK [12:44:10]MH_I2C_Read... [12:44:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:10]Read from MH i2c: E2 [12:44:10]MH_I2C_Read... [12:44:10]Read from MH i2c: E2 03 00 [12:44:10]MH_I2C_Read... [12:44:10]Read from MH i2c: E2 03 00 00 05 00 90 00 79 [12:44:10]RAPDU: 90 00 [12:44:10]wFMCommunicate OK [12:44:10]wFMCommunicate request_size=10 [12:44:10]MH_SAM_APDU [12:44:10]CAPDU: 80 0D 02 02 05 0C 48 C5 6C EF [12:44:10]Write to MH i2c: E2 0D 00 01 05 80 0D 02 02 05 00 0C 48 C5 6C EF 00 00 FE [12:44:10]Write i2c OK [12:44:10]MH_I2C_Read... [12:44:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:10]Read from MH i2c: E2 [12:44:10]MH_I2C_Read... [12:44:10]Read from MH i2c: E2 03 00 [12:44:10]MH_I2C_Read... [12:44:10]Read from MH i2c: E2 03 00 01 05 00 90 00 7A [12:44:10]RAPDU: 90 00 [12:44:10]wFMCommunicate OK [12:44:10]wFMCommunicate request_size=4 [12:44:10]MH_SAM_APDU [12:44:10]CAPDU: 80 0D 03 02 [12:44:10]Write to MH i2c: E2 08 00 02 05 80 0D 03 02 00 00 00 00 82 [12:44:10]Write i2c OK [12:44:10]MH_I2C_Read... [12:44:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:44:10]Read from MH i2c: E2 [12:44:10]MH_I2C_Read... [12:44:10]Read from MH i2c: E2 0B 00 [12:44:10]MH_I2C_Read... [12:44:10]Read from MH i2c: E2 0B 00 02 05 00 C2 FF CF 0D 4B EE AF 4A 90 00 52 [12:44:10]RAPDU: C2 FF CF 0D 4B EE AF 4A 90 00 [12:44:10]wFMCommunicate OK [12:44:10]SAM_PROTO_SignData done [12:44:10]FM_MakeSignedData done [12:44:10]CreateOFDProtocolMessage [12:44:10]wFMCommunicate request_size=4 [12:44:10]MH_SAM_APDU [12:44:10]CAPDU: 80 11 00 00 [12:44:10]Write to MH i2c: E2 08 00 03 05 80 11 00 00 00 00 00 00 82 [12:44:10]Write i2c OK [12:44:10]MH_I2C_Read... [12:44:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:10]Read from MH i2c: E2 [12:44:10]MH_I2C_Read... [12:44:10]Read from MH i2c: E2 17 00 [12:44:10]MH_I2C_Read... [12:44:10]Read from MH i2c: E2 17 00 03 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DD [12:44:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:44:10]wFMCommunicate OK [12:44:10]CreateOFDProtocolMessage done [12:44:10]OFDSenderStorePacket 118160 [12:44:10]StoreOFDPacket docnum=118160 [12:44:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 87 EF 07 01 AD A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 67 00 00 00 F4 03 04 00 9A EB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 90 CD 01 00 35 04 06 00 02 0C 48 C5 6C EF C2 FF CF 0D 4B EE AF 4A [12:44:10]CheckFolder [12:44:10]dirname=/storage/ofd_packets [12:44:10]CheckFolder done [12:44:10]ProducePacketName [12:44:10]name=ofd_packets/00118160 [12:44:10]NVStorageSaveData ofd_packets/00118160 [12:44:10]File name is /storage/ofd_packets/00118160 [12:44:10]Write 301 bytes [12:44:10]NVStorageSaveData done [12:44:10]OFDSenderStorePacket done [12:44:10]KKMCreateOFDPacket done [12:44:10]NVStorageSaveData kkm_last_timestamp [12:44:10]File name is /storage/kkm_last_timestamp [12:44:10]Write 4 bytes [12:44:10]NVStorageSaveData done [12:44:10]ExternCall_PrintAddStr [12:44:10]wPrintStart [12:44:10]Write to MH i2c: 01 00 00 04 05 09 [12:44:10]Write i2c OK [12:44:10]MH_I2C_Read... [12:44:10]Read from MH i2c: 01 [12:44:10]MH_I2C_Read... [12:44:10]Read from MH i2c: 01 07 00 [12:44:10]MH_I2C_Read... [12:44:10]Read from MH i2c: 01 07 00 04 05 00 00 00 00 00 FF 0F 1E [12:44:10]RasterBufferAndPrint [12:44:10]line Счет N : (1)949033 [12:44:10]line ИНН: 02508201610067 [12:44:10]line Контрольно-Кассовый Чек [12:44:10]line ПРОДАЖА [12:44:10]line ТРК (МРК, ГНК) : 41 [12:44:10]line Товар: 2710124130 [12:44:10]line Аи-92-К-4 [12:44:10]line 10.330 * 67.80 [12:44:10]line = 700.37 [12:44:10]line НДС 12% НСП 1% [12:44:10]line > о реализуемом товаре [12:44:10]line ОКРУГЛЕНИЕ: -0.37 [12:44:10]line ИТОГО: 700.00 [12:44:10]line Внесено: 700.00 [12:44:10]line СДАЧА: 0.00 [12:44:10]line НСП 1% : 6.20 [12:44:10]line НДС 12% : 74.38 [12:44:10]line Наличными: 700.00 [12:44:10]line Безнал.: 0.00 [12:44:10]line Место: АЗС № 134 "Партнер Нефть" [12:44:10]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:44:10]line СНО: Общий режим [12:44:10]line Чек 103 27.07.2024 12:44 [12:44:10]line Смена: 432 ФФД: 1.0 [12:44:10]line ЗНМ: 0300000044 [12:44:10]line РНМ: 0000000000092660 [12:44:10]line Версия ККМ: 001 [12:44:10]line ФМ: 0000000000874939 [12:44:10]line ФД: 118160 [12:44:10]line ФПД: 2251783761135 [12:44:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T124410&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118160&fm=2251783761135&tin=02508201610067®Number=0000000000092660&sum=70000 [12:44:10]written 0, free lines is 4095 [12:44:10]OFD Sender: Processing packet 118160 [packets to send 85, broken 84] [12:44:10]ProducePacketName [12:44:10]name=ofd_packets/00118160 [12:44:11]OFD Sender: To server: pG, [12:44:11]CommunicateWithHost lk.salyk.kg:30040 [12:44:11]ConnectInit lk.salyk.kg [12:44:11]Connected sock=10 [12:44:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 87 EF 07 01 AD A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 67 00 00 00 F4 03 04 00 9A EB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 90 CD 01 00 35 04 06 00 02 0C 48 C5 6C EF C2 FF CF 0D 4B EE AF 4A [12:44:11]Write to MH i2c: 01 00 00 2E 05 33 [12:44:11]Write i2c OK [12:44:11]MH_I2C_Read... [12:44:11]Read from MH i2c: 01 [12:44:11]MH_I2C_Read... [12:44:11]Read from MH i2c: 01 07 00 [12:44:11]MH_I2C_Read... [12:44:11]Read from MH i2c: 01 07 00 2E 05 00 00 00 00 00 DA 0C 20 [12:44:11]RasterBufferAndPrint [12:44:11]line [12:44:11]line [12:44:11]line [12:44:11]line [12:44:11]line [12:44:11]written 0, free lines is 3297 [12:44:11]MH_Cut [12:44:11]Write to MH i2c: D1 01 00 35 05 01 0C [12:44:11]Write i2c OK [12:44:11]MH_I2C_Read... [12:44:11]Read from MH i2c: D1 [12:44:11]MH_I2C_Read... [12:44:11]Read from MH i2c: D1 01 00 [12:44:11]MH_I2C_Read... [12:44:11]Read from MH i2c: D1 01 00 35 05 00 0B [12:44:11]Write to MH i2c: 01 00 00 36 05 3B [12:44:11]Write i2c OK [12:44:11]MH_I2C_Read... [12:44:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 AC 5B 47 00 90 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 90 CD 01 00 F4 03 04 00 2D 99 A4 66 B6 04 01 00 00 CB 2C F0 C2 09 0C AC 62 [12:44:11]CommunicateWithHost err = 0 [12:44:11]CheckOFDResponse [12:44:11]1017 (14) - 77093643461234 [12:44:11]1041 (16) - 0000000000874939 [12:44:11]1040 (4) - 118160 [12:44:11]1012 (4) - 27.07.2024 06:52 [12:44:11]1206 (1) - 0 [12:44:11]OFD Sender: Remove packet 118160 [12:44:11]ProducePacketName [12:44:11]name=ofd_packets/00118160 [12:44:11]NVStorageDeleteData [12:44:11]OFD Sender: No OFD packet to send [12:44:11]*** Cut start [12:44:11]*** Partial cut [12:44:11]*** CUTSNS_PIN = 1 [12:44:11]*** CUTSNS_PIN = 0 [12:44:12]*** Brake cut motor [12:44:12]Read from MH i2c: 01 [12:44:12]MH_I2C_Read... [12:44:12]*** Stop cut motor [12:44:12]*** Cut end [12:44:12]Read from MH i2c: 01 07 00 [12:44:12]MH_I2C_Read... [12:44:12]Read from MH i2c: 01 07 00 36 05 00 00 00 00 00 FF 0F 50 [12:44:12]process_action close_receipt done [12:44:12]requested_data is exist [12:44:12]produce_requested_data [12:44:12]requested_item fm.sn is exist - process it [12:44:12]wFMCommunicate request_size=4 [12:44:12]MH_SAM_APDU [12:44:12]CAPDU: 80 11 00 00 [12:44:12]Write to MH i2c: E2 08 00 37 05 80 11 00 00 00 00 00 00 B6 [12:44:12]Write i2c OK [12:44:12]MH_I2C_Read... [12:44:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:12]Read from MH i2c: E2 [12:44:12]MH_I2C_Read... [12:44:12]Read from MH i2c: E2 17 00 [12:44:12]MH_I2C_Read... [12:44:12]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 34 39 33 39 90 00 11 [12:44:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:44:12]wFMCommunicate OK [12:44:12]requested_item fd.num is exist - process it [12:44:12]SAM_PROTO_GetFieldsCounters [12:44:12]wFMCommunicate request_size=4 [12:44:12]MH_SAM_APDU [12:44:12]CAPDU: 80 13 00 00 [12:44:12]Write to MH i2c: E2 08 00 38 05 80 13 00 00 00 00 00 00 B9 [12:44:12]Write i2c OK [12:44:12]MH_I2C_Read... [12:44:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:44:12]Read from MH i2c: E2 [12:44:12]MH_I2C_Read... [12:44:12]Read from MH i2c: E2 62 00 [12:44:12]MH_I2C_Read... [12:44:12]Read from MH i2c: E2 62 00 38 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 90 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [12:44:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 90 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:44:12]wFMCommunicate OK [12:44:12]SAM_PROTO_GetFieldsCounters done [12:44:12]requested_item shift.num is exist - process it [12:44:12]requested_item shift.opened is exist - process it [12:44:12]req_shift_opened [12:44:12]FM_GetShiftState [12:44:12]SAM_PROTO_GetShiftState [12:44:12]wFMCommunicate request_size=4 [12:44:12]MH_SAM_APDU [12:44:12]CAPDU: 80 13 01 00 [12:44:12]Write to MH i2c: E2 08 00 39 05 80 13 01 00 00 00 00 00 BB [12:44:12]Write i2c OK [12:44:12]MH_I2C_Read... [12:44:12]Read from MH i2c: E2 [12:44:12]MH_I2C_Read... [12:44:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:12]Read from MH i2c: E2 0E 00 [12:44:12]MH_I2C_Read... [12:44:12]Read from MH i2c: E2 0E 00 39 05 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 48 [12:44:12]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [12:44:12]wFMCommunicate OK [12:44:12]SAM_PROTO_GetShiftState done [12:44:12]FM_GetShiftState done [12:44:12]req_shift_opened done [12:44:12]requested_item shift.open_date is exist - process it [12:44:12]req_shift_open_date [12:44:12]req_shift_open_date done [12:44:12]produce_requested_data done [12:44:12]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118160,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [12:44:12]process_action_free close_receipt [12:44:12]json_value_free [12:44:12]json_value_free done [12:44:12]process_json_proto returns [12:44:12]Send response to host [12:44:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118160,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [12:44:12]free response buf [12:44:12]execute_script done [12:44:12]execute_script returns [12:44:12]free content buf [12:44:12]Sock 9.Close socket [12:44:12]Sock 9.Thread stoped [12:44:16]OFD Sender: No OFD packet to send [12:44:21]OFD Sender: No OFD packet to send [12:44:26]OFD Sender: No OFD packet to send [12:44:31]OFD Sender: No OFD packet to send [12:44:36]OFD Sender: No OFD packet to send [12:44:41]OFD Sender: No OFD packet to send [12:44:46]OFD Sender: No OFD packet to send [12:44:51]OFD Sender: No OFD packet to send [12:44:56]OFD Sender: No OFD packet to send [12:45:01]OFD Sender: No OFD packet to send [12:45:06]OFD Sender: No OFD packet to send [12:45:11]OFD Sender: No OFD packet to send [12:45:16]OFD Sender: No OFD packet to send [12:45:21]OFD Sender: No OFD packet to send [12:45:26]OFD Sender: No OFD packet to send [12:45:31]OFD Sender: No OFD packet to send [12:45:36]OFD Sender: No OFD packet to send [12:45:41]OFD Sender: No OFD packet to send [12:45:46]OFD Sender: No OFD packet to send [12:45:51]OFD Sender: No OFD packet to send [12:45:56]OFD Sender: No OFD packet to send [12:46:01]OFD Sender: No OFD packet to send [12:46:06]OFD Sender: No OFD packet to send [12:46:11]OFD Sender: No OFD packet to send [12:46:16]OFD Sender: No OFD packet to send [12:46:21]OFD Sender: No OFD packet to send [12:46:26]OFD Sender: No OFD packet to send [12:46:31]OFD Sender: No OFD packet to send [12:46:36]OFD Sender: No OFD packet to send [12:46:41]OFD Sender: No OFD packet to send [12:46:46]OFD Sender: No OFD packet to send [12:46:51]OFD Sender: No OFD packet to send [12:46:56]OFD Sender: No OFD packet to send [12:47:01]OFD Sender: No OFD packet to send [12:47:06]OFD Sender: No OFD packet to send [12:47:12]OFD Sender: No OFD packet to send [12:47:17]OFD Sender: No OFD packet to send [12:47:22]OFD Sender: No OFD packet to send [12:47:27]OFD Sender: No OFD packet to send [12:47:32]OFD Sender: No OFD packet to send [12:47:37]OFD Sender: No OFD packet to send [12:47:42]OFD Sender: No OFD packet to send [12:47:47]OFD Sender: No OFD packet to send [12:47:52]OFD Sender: No OFD packet to send [12:47:57]OFD Sender: No OFD packet to send [12:48:02]OFD Sender: No OFD packet to send [12:48:07]OFD Sender: No OFD packet to send [12:48:12]OFD Sender: No OFD packet to send [12:48:17]OFD Sender: No OFD packet to send [12:48:22]OFD Sender: No OFD packet to send [12:48:27]OFD Sender: No OFD packet to send [12:48:32]OFD Sender: No OFD packet to send [12:48:37]OFD Sender: No OFD packet to send [12:48:42]OFD Sender: No OFD packet to send [12:48:47]OFD Sender: No OFD packet to send [12:48:52]OFD Sender: No OFD packet to send [12:48:57]OFD Sender: No OFD packet to send [12:49:02]OFD Sender: No OFD packet to send [12:49:07]OFD Sender: No OFD packet to send [12:49:12]OFD Sender: No OFD packet to send [12:49:17]OFD Sender: No OFD packet to send [12:49:22]OFD Sender: No OFD packet to send [12:49:27]OFD Sender: No OFD packet to send [12:49:32]OFD Sender: No OFD packet to send [12:49:37]OFD Sender: No OFD packet to send [12:49:42]OFD Sender: No OFD packet to send [12:49:47]OFD Sender: No OFD packet to send [12:49:52]OFD Sender: No OFD packet to send [12:49:57]OFD Sender: No OFD packet to send [12:50:02]OFD Sender: No OFD packet to send [12:50:07]OFD Sender: No OFD packet to send [12:50:12]OFD Sender: No OFD packet to send [12:50:17]OFD Sender: No OFD packet to send [12:50:22]OFD Sender: No OFD packet to send [12:50:27]OFD Sender: No OFD packet to send [12:50:32]OFD Sender: No OFD packet to send [12:50:37]OFD Sender: No OFD packet to send [12:50:42]OFD Sender: No OFD packet to send [12:50:47]OFD Sender: No OFD packet to send [12:50:52]OFD Sender: No OFD packet to send [12:50:57]OFD Sender: No OFD packet to send [12:51:02]OFD Sender: No OFD packet to send [12:51:07]OFD Sender: No OFD packet to send [12:51:12]OFD Sender: No OFD packet to send [12:51:17]OFD Sender: No OFD packet to send [12:51:22]OFD Sender: No OFD packet to send [12:51:27]OFD Sender: No OFD packet to send [12:51:32]OFD Sender: No OFD packet to send [12:51:37]OFD Sender: No OFD packet to send [12:51:42]OFD Sender: No OFD packet to send [12:51:47]OFD Sender: No OFD packet to send [12:51:52]OFD Sender: No OFD packet to send [12:51:57]OFD Sender: No OFD packet to send [12:52:02]OFD Sender: No OFD packet to send [12:52:07]OFD Sender: No OFD packet to send [12:52:12]OFD Sender: No OFD packet to send [12:52:17]OFD Sender: No OFD packet to send [12:52:22]OFD Sender: No OFD packet to send [12:52:27]OFD Sender: No OFD packet to send [12:52:32]OFD Sender: No OFD packet to send [12:52:37]OFD Sender: No OFD packet to send [12:52:42]OFD Sender: No OFD packet to send [12:52:47]OFD Sender: No OFD packet to send [12:52:47]accept exits with 7 [12:52:47]New connection [12:52:47]New thread 3067415908 created [12:52:47]Thread 3067272548 joined [12:52:47]Waiting for new connection... [12:52:47] Sock 7.Parse request [12:52:47]Sock 7.Check first char [12:52:47]Sock 7.First char is OK [12:52:47]request: POST /json_proto HTTP/1.0 [12:52:47]Method: POST [12:52:47]URL: /json_proto [12:52:47]Method is POST - this is cgi request [12:52:47]url: /json_proto [12:52:47]query_string will be loaded in cgi processing [12:52:47]execute_cgi json_proto POST (null) [12:52:47]execute_cgi path=json_proto method=POST [12:52:47]POST find Content-Length [12:52:47]Host: 172.17.45.7:8080 [12:52:47]Content-Length: 819 [12:52:47]Content-Type: application/json [12:52:47] [12:52:47]POST finish read [12:52:47]Found Content-Length = 819 [12:52:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 4000.00, "payments": [ { "type": 1, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:47]execute_script... [12:52:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 4000.00, "payments": [ { "type": 1, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:47]POST & json_proto [12:52:47]process_json_proto [12:52:47]json parsed OK: [12:52:47]protocol is kg_v1.0 [12:52:47]action value=close_receipt [12:52:47]process_action close_receipt [12:52:47]cmd_close_receipt [12:52:47]MH_GetDate [12:52:47]Write to MH i2c: F0 00 00 3A 05 2E [12:52:47]Write i2c OK [12:52:47]MH_I2C_Read... [12:52:47]Read from MH i2c: F0 [12:52:47]MH_I2C_Read... [12:52:47]Read from MH i2c: F0 09 00 [12:52:47]MH_I2C_Read... [12:52:47]Read from MH i2c: F0 09 00 3A 05 00 A0 ED A4 66 90 0F 3E 66 11 [12:52:47]GetLastDocTimeStamp 1722084250 [12:52:47]current date 1722084768 [12:52:47]FM_GetShiftState [12:52:47]SAM_PROTO_GetShiftState [12:52:47]wFMCommunicate request_size=4 [12:52:47]MH_SAM_APDU [12:52:47]CAPDU: 80 13 01 00 [12:52:47]Write to MH i2c: E2 08 00 3B 05 80 13 01 00 00 00 00 00 BD [12:52:47]Write i2c OK [12:52:47]MH_I2C_Read... [12:52:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:47]Read from MH i2c: E2 [12:52:47]MH_I2C_Read... [12:52:47]Read from MH i2c: E2 0E 00 [12:52:47]MH_I2C_Read... [12:52:47]Read from MH i2c: E2 0E 00 3B 05 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 4A [12:52:47]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [12:52:47]wFMCommunicate OK [12:52:47]SAM_PROTO_GetShiftState done [12:52:47]FM_GetShiftState done [12:52:47]opened in 1722038845 [12:52:47]opened+sec_in_day 1722125245 [12:52:47]quantity*price = 400050 [12:52:47]sum+1 = 400051 [12:52:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 0.00 Безнал.: 4000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 104 27.07.2024 12:52 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118161 ФПД: 155756833109438 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T125248&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118161&fm=155756833109438&tin=02508201610067®Number=0000000000092660&sum=400000 [12:52:48]StoreToDocumentArchive [12:52:48]shift 432 fd 118161 [12:52:48]save to /storage/0432/doc_00118161 [12:52:48]save last doc name /storage/0432/doc_00118161 to /storage/kkm_last_doc_name [12:52:48]save OK [12:52:48]Clear old archive folders... [12:52:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:52:48]tlvbuf is 003828B0 [12:52:48]SAM_PROTO_ClearQueue [12:52:48]wFMCommunicate request_size=4 [12:52:48]MH_SAM_APDU [12:52:48]CAPDU: 80 09 00 00 [12:52:48]Write to MH i2c: E2 08 00 48 05 80 09 00 00 00 00 00 00 BF [12:52:48]Write i2c OK [12:52:48]MH_I2C_Read... [12:52:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:48]Read from MH i2c: E2 [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: E2 03 00 [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: E2 03 00 48 05 00 90 00 C1 [12:52:48]RAPDU: 90 00 [12:52:48]wFMCommunicate OK [12:52:48]SAM_PROTO_ClearQueue done [12:52:48]KKMCreateOFDPacket [12:52:48]OFDProtocolAddRootSTLVToBuf [12:52:48]FM_MakeSignedData [12:52:48]FM_MakeSignedData [12:52:48]SAM_PROTO_SignData [12:52:48]wFMCommunicate request_size=4 [12:52:48]MH_SAM_APDU [12:52:48]CAPDU: 80 0D 01 02 [12:52:48]Write to MH i2c: E2 08 00 49 05 80 0D 01 02 00 00 00 00 C7 [12:52:48]Write i2c OK [12:52:48]MH_I2C_Read... [12:52:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:48]Read from MH i2c: E2 [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: E2 03 00 [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: E2 03 00 49 05 00 90 00 C2 [12:52:48]RAPDU: 90 00 [12:52:48]wFMCommunicate OK [12:52:48]wFMCommunicate request_size=255 [12:52:48]MH_SAM_APDU [12:52: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 A0 ED A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 91 CD 01 00 35 04 06 00 8D A8 F6 B5 [12:52:48]Write to MH i2c: E2 02 01 4A 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 A0 ED A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 91 CD 01 00 35 04 06 00 8D A8 F6 B5 00 00 6B [12:52:48]Write i2c OK [12:52:48]MH_I2C_Read... [12:52:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:49]Read from MH i2c: E2 [12:52:49]MH_I2C_Read... [12:52:49]Read from MH i2c: E2 03 00 [12:52:49]MH_I2C_Read... [12:52:49]Read from MH i2c: E2 03 00 4A 05 00 90 00 C3 [12:52:49]RAPDU: 90 00 [12:52:49]wFMCommunicate OK [12:52:49]wFMCommunicate request_size=7 [12:52:49]MH_SAM_APDU [12:52:49]CAPDU: 80 0D 02 02 02 75 BE [12:52:49]Write to MH i2c: E2 0A 00 4B 05 80 0D 02 02 02 00 75 BE 00 00 01 [12:52:49]Write i2c OK [12:52:49]MH_I2C_Read... [12:52:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:49]Read from MH i2c: E2 [12:52:49]MH_I2C_Read... [12:52:49]Read from MH i2c: E2 03 00 [12:52:49]MH_I2C_Read... [12:52:49]Read from MH i2c: E2 03 00 4B 05 00 90 00 C4 [12:52:49]RAPDU: 90 00 [12:52:49]wFMCommunicate OK [12:52:49]wFMCommunicate request_size=4 [12:52:49]MH_SAM_APDU [12:52:49]CAPDU: 80 0D 03 02 [12:52:49]Write to MH i2c: E2 08 00 4C 05 80 0D 03 02 00 00 00 00 CC [12:52:49]Write i2c OK [12:52:49]MH_I2C_Read... [12:52:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:49]Read from MH i2c: E2 [12:52:49]MH_I2C_Read... [12:52:49]Read from MH i2c: E2 0B 00 [12:52:49]MH_I2C_Read... [12:52:49]Read from MH i2c: E2 0B 00 4C 05 00 BB CB 32 27 66 FD F0 FC 90 00 FB [12:52:49]RAPDU: BB CB 32 27 66 FD F0 FC 90 00 [12:52:49]wFMCommunicate OK [12:52:49]SAM_PROTO_SignData done [12:52:49]FM_MakeSignedData done [12:52:49]CreateOFDProtocolMessage [12:52:49]wFMCommunicate request_size=4 [12:52:49]MH_SAM_APDU [12:52:49]CAPDU: 80 11 00 00 [12:52:49]Write to MH i2c: E2 08 00 4D 05 80 11 00 00 00 00 00 00 CC [12:52:49]Write i2c OK [12:52:49]MH_I2C_Read... [12:52:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:49]Read from MH i2c: E2 [12:52:49]MH_I2C_Read... [12:52:49]Read from MH i2c: E2 17 00 [12:52:49]MH_I2C_Read... [12:52:49]Read from MH i2c: E2 17 00 4D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 27 [12:52:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:52:49]wFMCommunicate OK [12:52:49]CreateOFDProtocolMessage done [12:52:49]OFDSenderStorePacket 118161 [12:52:49]StoreOFDPacket docnum=118161 [12:52:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 2E 49 04 01 94 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 A0 ED A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 91 CD 01 00 35 04 06 00 8D A8 F6 B5 75 BE BB CB 32 27 66 FD F0 FC [12:52:49]CheckFolder [12:52:49]dirname=/storage/ofd_packets [12:52:49]CheckFolder done [12:52:49]ProducePacketName [12:52:49]name=ofd_packets/00118161 [12:52:49]NVStorageSaveData ofd_packets/00118161 [12:52:49]File name is /storage/ofd_packets/00118161 [12:52:49]Write 298 bytes [12:52:49]NVStorageSaveData done [12:52:49]OFDSenderStorePacket done [12:52:49]KKMCreateOFDPacket done [12:52:49]NVStorageSaveData kkm_last_timestamp [12:52:49]File name is /storage/kkm_last_timestamp [12:52:49]Write 4 bytes [12:52:49]NVStorageSaveData done [12:52:49]ExternCall_PrintAddStr [12:52:49]wPrintStart [12:52:49]Write to MH i2c: 01 00 00 4E 05 53 [12:52:49]Write i2c OK [12:52:49]MH_I2C_Read... [12:52:49]Read from MH i2c: 01 [12:52:49]MH_I2C_Read... [12:52:49]Read from MH i2c: 01 07 00 [12:52:49]MH_I2C_Read... [12:52:49]Read from MH i2c: 01 07 00 4E 05 00 00 00 00 00 FF 0F 68 [12:52:49]RasterBufferAndPrint [12:52:49]line Счет N : (1)949035 [12:52:49]line ИНН: 02508201610067 [12:52:49]line Контрольно-Кассовый Чек [12:52:49]line ПРОДАЖА [12:52:49]line ТРК (МРК, ГНК) : 54 [12:52:49]line Товар: 2710194800 [12:52:49]line ДТ-К-5 [12:52:49]line 52.500 * 76.20 [12:52:49]line = 4000.50 [12:52:49]line НДС 12% НСП 1% [12:52:49]line > о реализуемом товаре [12:52:49]line ОКРУГЛЕНИЕ: -0.50 [12:52:49]line ИТОГО: 4000.00 [12:52:49]line НСП 1% : 35.40 [12:52:49]line НДС 12% : 424.83 [12:52:49]line Наличными: 0.00 [12:52:49]line Безнал.: 4000.00 [12:52:49]line Место: АЗС № 134 "Партнер Нефть" [12:52:49]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:52:49]line СНО: Общий режим [12:52:49]line Чек 104 27.07.2024 12:52 [12:52:49]line Смена: 432 ФФД: 1.0 [12:52:49]line ЗНМ: 0300000044 [12:52:49]line РНМ: 0000000000092660 [12:52:49]line Версия ККМ: 001 [12:52:49]line Платежная система: O! деньги [12:52:49]line ФМ: 0000000000874939 [12:52:49]line ФД: 118161 [12:52:49]line ФПД: 155756833109438 [12:52:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T125248&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118161&fm=155756833109438&tin=02508201610067®Number=0000000000092660&sum=400000 [12:52:49]OFD Sender: Processing packet 118161 [packets to send 85, broken 84] [12:52:49]ProducePacketName [12:52:49]name=ofd_packets/00118161 [12:52:49]OFD Sender: To server: pG, [12:52:49]CommunicateWithHost lk.salyk.kg:30040 [12:52:49]ConnectInit lk.salyk.kg [12:52:49]written 0, free lines is 4095 [12:52:49]Connected sock=10 [12:52:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 2E 49 04 01 94 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 A0 ED A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 91 CD 01 00 35 04 06 00 8D A8 F6 B5 75 BE BB CB 32 27 66 FD F0 FC [12:52:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 AC 13 47 00 31 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 34 39 33 39 10 04 04 00 91 CD 01 00 F4 03 04 00 33 9B A4 66 B6 04 01 00 00 3F 04 0E EA 44 25 FF 7E [12:52:49]CommunicateWithHost err = 0 [12:52:49]CheckOFDResponse [12:52:49]1017 (14) - 77093643461234 [12:52:49]1041 (16) - 0000000000874939 [12:52:49]1040 (4) - 118161 [12:52:49]1012 (4) - 27.07.2024 07:01 [12:52:49]1206 (1) - 0 [12:52:49]OFD Sender: Remove packet 118161 [12:52:49]ProducePacketName [12:52:49]name=ofd_packets/00118161 [12:52:49]NVStorageDeleteData [12:52:50]Write to MH i2c: 01 00 00 78 05 7D [12:52:50]Write i2c OK [12:52:50]MH_I2C_Read... [12:52:50]Read from MH i2c: 01 [12:52:50]MH_I2C_Read... [12:52:50]Read from MH i2c: 01 07 00 [12:52:50]MH_I2C_Read... [12:52:50]Read from MH i2c: 01 07 00 78 05 00 00 00 00 00 EC 0C 7C [12:52:50]RasterBufferAndPrint [12:52:50]line [12:52:50]line [12:52:50]line [12:52:50]line [12:52:50]line [12:52:50]written 0, free lines is 3315 [12:52:50]MH_Cut [12:52:50]Write to MH i2c: D1 01 00 7F 05 01 56 [12:52:50]Write i2c OK [12:52:50]MH_I2C_Read... [12:52:50]Read from MH i2c: D1 [12:52:50]MH_I2C_Read... [12:52:50]Read from MH i2c: D1 01 00 [12:52:50]MH_I2C_Read... [12:52:50]Read from MH i2c: D1 01 00 7F 05 00 55 [12:52:50]Write to MH i2c: 01 00 00 80 05 85 [12:52:50]Write i2c OK [12:52:50]MH_I2C_Read... [12:52:50]OFD Sender: No OFD packet to send [12:52:50]*** Cut start [12:52:50]*** Partial cut [12:52:50]*** CUTSNS_PIN = 1 [12:52:50]*** CUTSNS_PIN = 0 [12:52:51]*** Brake cut motor [12:52:51]Read from MH i2c: 01 [12:52:51]MH_I2C_Read... [12:52:51]*** Stop cut motor [12:52:51]*** Cut end [12:52:51]Read from MH i2c: 01 07 00 [12:52:51]MH_I2C_Read... [12:52:51]Read from MH i2c: 01 07 00 80 05 00 00 00 00 00 FF 0F 9A [12:52:51]process_action close_receipt done [12:52:51]requested_data is exist [12:52:51]produce_requested_data [12:52:51]requested_item fm.sn is exist - process it [12:52:51]wFMCommunicate request_size=4 [12:52:51]MH_SAM_APDU [12:52:51]CAPDU: 80 11 00 00 [12:52:51]Write to MH i2c: E2 08 00 81 05 80 11 00 00 00 00 00 00 00 [12:52:51]Write i2c OK [12:52:51]MH_I2C_Read... [12:52:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:51]Read from MH i2c: E2 [12:52:51]MH_I2C_Read... [12:52:51]Read from MH i2c: E2 17 00 [12:52:51]MH_I2C_Read... [12:52:51]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 34 39 33 39 90 00 5B [12:52:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:52:51]wFMCommunicate OK [12:52:51]requested_item fd.num is exist - process it [12:52:51]SAM_PROTO_GetFieldsCounters [12:52:51]wFMCommunicate request_size=4 [12:52:51]MH_SAM_APDU [12:52:51]CAPDU: 80 13 00 00 [12:52:51]Write to MH i2c: E2 08 00 82 05 80 13 00 00 00 00 00 00 03 [12:52:51]Write i2c OK [12:52:51]MH_I2C_Read... [12:52:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:51]Read from MH i2c: E2 [12:52:51]MH_I2C_Read... [12:52:51]Read from MH i2c: E2 62 00 [12:52:51]MH_I2C_Read... [12:52:51]Read from MH i2c: E2 62 00 82 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 91 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [12:52:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 91 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:52:51]wFMCommunicate OK [12:52:51]SAM_PROTO_GetFieldsCounters done [12:52:51]requested_item shift.num is exist - process it [12:52:51]requested_item shift.opened is exist - process it [12:52:51]req_shift_opened [12:52:51]FM_GetShiftState [12:52:51]SAM_PROTO_GetShiftState [12:52:51]wFMCommunicate request_size=4 [12:52:51]MH_SAM_APDU [12:52:51]CAPDU: 80 13 01 00 [12:52:51]Write to MH i2c: E2 08 00 83 05 80 13 01 00 00 00 00 00 05 [12:52:51]Write i2c OK [12:52:51]MH_I2C_Read... [12:52:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:51]Read from MH i2c: E2 [12:52:51]MH_I2C_Read... [12:52:51]Read from MH i2c: E2 0E 00 [12:52:51]MH_I2C_Read... [12:52:51]Read from MH i2c: E2 0E 00 83 05 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 92 [12:52:51]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [12:52:51]wFMCommunicate OK [12:52:51]SAM_PROTO_GetShiftState done [12:52:51]FM_GetShiftState done [12:52:51]req_shift_opened done [12:52:51]requested_item shift.open_date is exist - process it [12:52:51]req_shift_open_date [12:52:51]req_shift_open_date done [12:52:51]produce_requested_data done [12:52:51]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118161,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [12:52:51]process_action_free close_receipt [12:52:51]json_value_free [12:52:51]json_value_free done [12:52:51]process_json_proto returns [12:52:51]Send response to host [12:52:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118161,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [12:52:51]free response buf [12:52:51]execute_script done [12:52:51]execute_script returns [12:52:51]free content buf [12:52:51]Sock 7.Close socket [12:52:51]Sock 7.Thread stoped [12:52:55]OFD Sender: No OFD packet to send [12:53:00]OFD Sender: No OFD packet to send [12:53:05]OFD Sender: No OFD packet to send [12:53:10]OFD Sender: No OFD packet to send [12:53:15]OFD Sender: No OFD packet to send [12:53:20]OFD Sender: No OFD packet to send [12:53:25]OFD Sender: No OFD packet to send [12:53:30]OFD Sender: No OFD packet to send [12:53:35]OFD Sender: No OFD packet to send [12:53:40]OFD Sender: No OFD packet to send [12:53:44]accept exits with 9 [12:53:44]New connection [12:53:44]New thread 3067272548 created [12:53:44]Thread 3067415908 joined [12:53:44]Waiting for new connection... [12:53:44] Sock 9.Parse request [12:53:44]Sock 9.Check first char [12:53:44]Sock 9.First char is OK [12:53:44]request: POST /json_proto HTTP/1.0 [12:53:44]Method: POST [12:53:44]URL: /json_proto [12:53:44]Method is POST - this is cgi request [12:53:44]url: /json_proto [12:53:44]query_string will be loaded in cgi processing [12:53:44]execute_cgi json_proto POST (null) [12:53:44]execute_cgi path=json_proto method=POST [12:53:44]POST find Content-Length [12:53:44]Host: 172.17.45.7:8080 [12:53:44]Content-Length: 682 [12:53:44]Content-Type: application/json [12:53:44] [12:53:44]POST finish read [12:53:44]Found Content-Length = 682 [12:53:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 30.600, "sum" : 2270.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2270.00, "total" : 2270.00, "payments": [ { "type": 0, "sum" : 2270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:44]execute_script... [12:53:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 30.600, "sum" : 2270.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2270.00, "total" : 2270.00, "payments": [ { "type": 0, "sum" : 2270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:44]POST & json_proto [12:53:44]process_json_proto [12:53:44]json parsed OK: [12:53:44]protocol is kg_v1.0 [12:53:44]action value=close_receipt [12:53:44]process_action close_receipt [12:53:44]cmd_close_receipt [12:53:44]MH_GetDate [12:53:44]Write to MH i2c: F0 00 00 84 05 78 [12:53:44]Write i2c OK [12:53:44]MH_I2C_Read... [12:53:44]Read from MH i2c: F0 [12:53:44]MH_I2C_Read... [12:53:44]Read from MH i2c: F0 09 00 [12:53:44]MH_I2C_Read... [12:53:44]Read from MH i2c: F0 09 00 84 05 00 DA ED A4 66 90 0F 3E 66 95 [12:53:44]GetLastDocTimeStamp 1722084768 [12:53:44]current date 1722084826 [12:53:44]FM_GetShiftState [12:53:44]SAM_PROTO_GetShiftState [12:53:44]wFMCommunicate request_size=4 [12:53:44]MH_SAM_APDU [12:53:44]CAPDU: 80 13 01 00 [12:53:44]Write to MH i2c: E2 08 00 85 05 80 13 01 00 00 00 00 00 07 [12:53:44]Write i2c OK [12:53:44]MH_I2C_Read... [12:53:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:44]Read from MH i2c: E2 [12:53:44]MH_I2C_Read... [12:53:44]Read from MH i2c: E2 0E 00 [12:53:44]MH_I2C_Read... [12:53:44]Read from MH i2c: E2 0E 00 85 05 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 94 [12:53:44]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [12:53:44]wFMCommunicate OK [12:53:44]SAM_PROTO_GetShiftState done [12:53:44]FM_GetShiftState done [12:53:44]opened in 1722038845 [12:53:44]opened+sec_in_day 1722125245 [12:53:44]quantity*price = 227052 [12:53:44]sum+1 = 227053 [12:53:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 2270.00 Внесено: 2270.00 СДАЧА: 0.00 НСП 1% : 20.09 НДС 12% : 241.12 Наличными: 2270.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 105 27.07.2024 12:53 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118162 ФПД: 230242983527209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T125346&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118162&fm=230242983527209&tin=02508201610067®Number=0000000000092660&sum=227000 [12:53:46]StoreToDocumentArchive [12:53:46]shift 432 fd 118162 [12:53:46]save to /storage/0432/doc_00118162 [12:53:46]save last doc name /storage/0432/doc_00118162 to /storage/kkm_last_doc_name [12:53:46]save OK [12:53:46]Clear old archive folders... [12:53:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:53:46]tlvbuf is 00370240 [12:53:46]SAM_PROTO_ClearQueue [12:53:46]wFMCommunicate request_size=4 [12:53:46]MH_SAM_APDU [12:53:46]CAPDU: 80 09 00 00 [12:53:46]Write to MH i2c: E2 08 00 92 05 80 09 00 00 00 00 00 00 09 [12:53:46]Write i2c OK [12:53:46]MH_I2C_Read... [12:53:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:46]Read from MH i2c: E2 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 03 00 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 03 00 92 05 00 90 00 0B [12:53:46]RAPDU: 90 00 [12:53:46]wFMCommunicate OK [12:53:46]SAM_PROTO_ClearQueue done [12:53:46]KKMCreateOFDPacket [12:53:46]OFDProtocolAddRootSTLVToBuf [12:53:46]FM_MakeSignedData [12:53:46]FM_MakeSignedData [12:53:46]SAM_PROTO_SignData [12:53:46]wFMCommunicate request_size=4 [12:53:46]MH_SAM_APDU [12:53:46]CAPDU: 80 0D 01 02 [12:53:46]Write to MH i2c: E2 08 00 93 05 80 0D 01 02 00 00 00 00 11 [12:53:46]Write i2c OK [12:53:46]MH_I2C_Read... [12:53:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:46]Read from MH i2c: E2 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 03 00 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 03 00 93 05 00 90 00 0C [12:53:46]RAPDU: 90 00 [12:53:46]wFMCommunicate OK [12:53:46]wFMCommunicate request_size=255 [12:53:46]MH_SAM_APDU [12:53:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 88 77 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EC 76 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 76 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 5E 00 00 00 00 07 04 06 00 B8 76 03 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 DA ED A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 92 CD 01 00 35 04 06 00 D1 [12:53:46]Write to MH i2c: E2 02 01 94 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 88 77 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EC 76 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 76 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 5E 00 00 00 00 07 04 06 00 B8 76 03 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 DA ED A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 92 CD 01 00 35 04 06 00 D1 00 00 8B [12:53:46]Write i2c OK [12:53:46]MH_I2C_Read... [12:53:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:46]Read from MH i2c: E2 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 03 00 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 03 00 94 05 00 90 00 0D [12:53:46]RAPDU: 90 00 [12:53:46]wFMCommunicate OK [12:53:46]wFMCommunicate request_size=10 [12:53:46]MH_SAM_APDU [12:53:46]CAPDU: 80 0D 02 02 05 67 9F 3E C3 29 [12:53:46]Write to MH i2c: E2 0D 00 95 05 80 0D 02 02 05 00 67 9F 3E C3 29 00 00 4E [12:53:46]Write i2c OK [12:53:46]MH_I2C_Read... [12:53:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:46]Read from MH i2c: E2 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 03 00 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 03 00 95 05 00 90 00 0E [12:53:46]RAPDU: 90 00 [12:53:46]wFMCommunicate OK [12:53:46]wFMCommunicate request_size=4 [12:53:46]MH_SAM_APDU [12:53:46]CAPDU: 80 0D 03 02 [12:53:46]Write to MH i2c: E2 08 00 96 05 80 0D 03 02 00 00 00 00 16 [12:53:46]Write i2c OK [12:53:46]MH_I2C_Read... [12:53:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:46]Read from MH i2c: E2 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 0B 00 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 0B 00 96 05 00 AF 76 E9 C4 38 F2 56 5D 90 00 C6 [12:53:46]RAPDU: AF 76 E9 C4 38 F2 56 5D 90 00 [12:53:46]wFMCommunicate OK [12:53:46]SAM_PROTO_SignData done [12:53:46]FM_MakeSignedData done [12:53:46]CreateOFDProtocolMessage [12:53:46]wFMCommunicate request_size=4 [12:53:46]MH_SAM_APDU [12:53:46]CAPDU: 80 11 00 00 [12:53:46]Write to MH i2c: E2 08 00 97 05 80 11 00 00 00 00 00 00 16 [12:53:46]Write i2c OK [12:53:46]MH_I2C_Read... [12:53:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:46]Read from MH i2c: E2 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 17 00 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 17 00 97 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 71 [12:53:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:53:46]wFMCommunicate OK [12:53:46]CreateOFDProtocolMessage done [12:53:46]OFDSenderStorePacket 118162 [12:53:46]StoreOFDPacket docnum=118162 [12:53:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 79 35 07 01 02 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 88 77 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EC 76 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 76 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 5E 00 00 00 00 07 04 06 00 B8 76 03 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 DA ED A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 92 CD 01 00 35 04 06 00 D1 67 9F 3E C3 29 AF 76 E9 C4 38 F2 56 5D [12:53:46]CheckFolder [12:53:46]dirname=/storage/ofd_packets [12:53:46]CheckFolder done [12:53:46]ProducePacketName [12:53:46]name=ofd_packets/00118162 [12:53:46]NVStorageSaveData ofd_packets/00118162 [12:53:46]File name is /storage/ofd_packets/00118162 [12:53:46]Write 301 bytes [12:53:46]NVStorageSaveData done [12:53:46]OFDSenderStorePacket done [12:53:46]KKMCreateOFDPacket done [12:53:46]NVStorageSaveData kkm_last_timestamp [12:53:46]File name is /storage/kkm_last_timestamp [12:53:46]Write 4 bytes [12:53:46]NVStorageSaveData done [12:53:46]OFD Sender: Processing packet 118162 [packets to send 85, broken 84] [12:53:46]ProducePacketName [12:53:46]name=ofd_packets/00118162 [12:53:46]OFD Sender: To server: pG, [12:53:46]CommunicateWithHost lk.salyk.kg:30040 [12:53:46]ConnectInit lk.salyk.kg [12:53:46]ExternCall_PrintAddStr [12:53:46]wPrintStart [12:53:46]Write to MH i2c: 01 00 00 98 05 9D [12:53:46]Write i2c OK [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: 01 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: 01 07 00 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: 01 07 00 98 05 00 00 00 00 00 FF 0F B2 [12:53:46]RasterBufferAndPrint [12:53:46]line Счет N : (1)949034 [12:53:46]line ИНН: 02508201610067 [12:53:46]line Контрольно-Кассовый Чек [12:53:46]line ПРОДАЖА [12:53:46]line ТРК (МРК, ГНК) : 33 [12:53:46]line Товар: 2710124500 [12:53:46]line Аи-95-К-3 [12:53:46]line 30.600 * 74.20 [12:53:46]line = 2270.52 [12:53:46]line НДС 12% НСП 1% [12:53:46]line > о реализуемом товаре [12:53:46]line ОКРУГЛЕНИЕ: -0.52 [12:53:46]line ИТОГО: 2270.00 [12:53:46]line Внесено: 2270.00 [12:53:46]line СДАЧА: 0.00 [12:53:46]line НСП 1% : 20.09 [12:53:46]line НДС 12% : 241.12 [12:53:46]line Наличными: 2270.00 [12:53:46]line Безнал.: 0.00 [12:53:46]line Место: АЗС № 134 "Партнер Нефть" [12:53:46]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:53:46]line СНО: Общий режим [12:53:46]line Чек 105 27.07.2024 12:53 [12:53:46]line Смена: 432 ФФД: 1.0 [12:53:46]line ЗНМ: 0300000044 [12:53:46]line РНМ: 0000000000092660 [12:53:46]line Версия ККМ: 001 [12:53:46]line ФМ: 0000000000874939 [12:53:46]line ФД: 118162 [12:53:46]line ФПД: 230242983527209 [12:53:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T125346&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118162&fm=230242983527209&tin=02508201610067®Number=0000000000092660&sum=227000 [12:53:46]Connected sock=11 [12:53:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 79 35 07 01 02 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 88 77 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EC 76 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 76 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 5E 00 00 00 00 07 04 06 00 B8 76 03 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 DA ED A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 92 CD 01 00 35 04 06 00 D1 67 9F 3E C3 29 AF 76 E9 C4 38 F2 56 5D [12:53:46]written 0, free lines is 4095 [12:53:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 01 06 47 00 1E 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 34 39 33 39 10 04 04 00 92 CD 01 00 F4 03 04 00 6D 9B A4 66 B6 04 01 00 00 FE 12 88 B0 C0 D5 DA B1 [12:53:47]CommunicateWithHost err = 0 [12:53:47]CheckOFDResponse [12:53:47]1017 (14) - 77093643461234 [12:53:47]1041 (16) - 0000000000874939 [12:53:47]1040 (4) - 118162 [12:53:47]1012 (4) - 27.07.2024 07:02 [12:53:47]1206 (1) - 0 [12:53:47]OFD Sender: Remove packet 118162 [12:53:47]ProducePacketName [12:53:47]name=ofd_packets/00118162 [12:53:47]NVStorageDeleteData [12:53:47]Write to MH i2c: 01 00 00 C2 05 C7 [12:53:47]Write i2c OK [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: 01 [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: 01 07 00 [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: 01 07 00 C2 05 00 00 00 00 00 E1 0C BB [12:53:47]RasterBufferAndPrint [12:53:47]line [12:53:47]line [12:53:47]line [12:53:47]line [12:53:47]line [12:53:47]written 0, free lines is 3305 [12:53:47]MH_Cut [12:53:47]Write to MH i2c: D1 01 00 C9 05 01 A0 [12:53:47]Write i2c OK [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: D1 [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: D1 01 00 [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: D1 01 00 C9 05 00 9F [12:53:47]Write to MH i2c: 01 00 00 CA 05 CF [12:53:47]Write i2c OK [12:53:47]MH_I2C_Read... [12:53:47]OFD Sender: No OFD packet to send [12:53:48]*** Cut start [12:53:48]*** Partial cut [12:53:48]*** CUTSNS_PIN = 1 [12:53:48]*** CUTSNS_PIN = 0 [12:53:48]*** Brake cut motor [12:53:48]Read from MH i2c: 01 [12:53:48]MH_I2C_Read... [12:53:48]*** Stop cut motor [12:53:48]*** Cut end [12:53:48]Read from MH i2c: 01 07 00 [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: 01 07 00 CA 05 00 00 00 00 00 FF 0F E4 [12:53:48]process_action close_receipt done [12:53:48]requested_data is exist [12:53:48]produce_requested_data [12:53:48]requested_item fm.sn is exist - process it [12:53:48]wFMCommunicate request_size=4 [12:53:48]MH_SAM_APDU [12:53:48]CAPDU: 80 11 00 00 [12:53:48]Write to MH i2c: E2 08 00 CB 05 80 11 00 00 00 00 00 00 4A [12:53:48]Write i2c OK [12:53:48]MH_I2C_Read... [12:53:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:48]Read from MH i2c: E2 [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: E2 17 00 [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: E2 17 00 CB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A5 [12:53:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:53:48]wFMCommunicate OK [12:53:48]requested_item fd.num is exist - process it [12:53:48]SAM_PROTO_GetFieldsCounters [12:53:48]wFMCommunicate request_size=4 [12:53:48]MH_SAM_APDU [12:53:48]CAPDU: 80 13 00 00 [12:53:48]Write to MH i2c: E2 08 00 CC 05 80 13 00 00 00 00 00 00 4D [12:53:48]Write i2c OK [12:53:48]MH_I2C_Read... [12:53:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:48]Read from MH i2c: E2 [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: E2 62 00 [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: E2 62 00 CC 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 92 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [12:53:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 92 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:53:48]wFMCommunicate OK [12:53:48]SAM_PROTO_GetFieldsCounters done [12:53:48]requested_item shift.num is exist - process it [12:53:48]requested_item shift.opened is exist - process it [12:53:48]req_shift_opened [12:53:48]FM_GetShiftState [12:53:48]SAM_PROTO_GetShiftState [12:53:48]wFMCommunicate request_size=4 [12:53:48]MH_SAM_APDU [12:53:48]CAPDU: 80 13 01 00 [12:53:48]Write to MH i2c: E2 08 00 CD 05 80 13 01 00 00 00 00 00 4F [12:53:48]Write i2c OK [12:53:48]MH_I2C_Read... [12:53:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:49]Read from MH i2c: E2 [12:53:49]MH_I2C_Read... [12:53:49]Read from MH i2c: E2 0E 00 [12:53:49]MH_I2C_Read... [12:53:49]Read from MH i2c: E2 0E 00 CD 05 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 DC [12:53:49]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [12:53:49]wFMCommunicate OK [12:53:49]SAM_PROTO_GetShiftState done [12:53:49]FM_GetShiftState done [12:53:49]req_shift_opened done [12:53:49]requested_item shift.open_date is exist - process it [12:53:49]req_shift_open_date [12:53:49]req_shift_open_date done [12:53:49]produce_requested_data done [12:53:49]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118162,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [12:53:49]process_action_free close_receipt [12:53:49]json_value_free [12:53:49]json_value_free done [12:53:49]process_json_proto returns [12:53:49]Send response to host [12:53:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118162,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [12:53:49]free response buf [12:53:49]execute_script done [12:53:49]execute_script returns [12:53:49]free content buf [12:53:49]Sock 9.Close socket [12:53:49]Sock 9.Thread stoped [12:53:52]OFD Sender: No OFD packet to send [12:53:57]OFD Sender: No OFD packet to send [12:54:02]OFD Sender: No OFD packet to send [12:54:07]OFD Sender: No OFD packet to send [12:54:12]OFD Sender: No OFD packet to send [12:54:17]OFD Sender: No OFD packet to send [12:54:22]accept exits with 7 [12:54:22]New connection [12:54:22]New thread 3067415908 created [12:54:22]Thread 3067272548 joined [12:54:22]Waiting for new connection... [12:54:22] Sock 7.Parse request [12:54:22]Sock 7.Check first char [12:54:22]Sock 7.First char is OK [12:54:22]request: POST /json_proto HTTP/1.0 [12:54:22]Method: POST [12:54:22]URL: /json_proto [12:54:22]Method is POST - this is cgi request [12:54:22]url: /json_proto [12:54:22]query_string will be loaded in cgi processing [12:54:22]execute_cgi json_proto POST (null) [12:54:22]execute_cgi path=json_proto method=POST [12:54:22]POST find Content-Length [12:54:22]Host: 172.17.45.7:8080 [12:54:22]Content-Length: 674 [12:54:22]Content-Type: application/json [12:54:22] [12:54:22]POST finish read [12:54:22]Found Content-Length = 674 [12:54:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:22]execute_script... [12:54: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)949036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:22]POST & json_proto [12:54:22]process_json_proto [12:54:22]json parsed OK: [12:54:22]protocol is kg_v1.0 [12:54:22]action value=close_receipt [12:54:22]process_action close_receipt [12:54:22]cmd_close_receipt [12:54:22]MH_GetDate [12:54:22]Write to MH i2c: F0 00 00 CE 05 C2 [12:54:22]Write i2c OK [12:54:22]MH_I2C_Read... [12:54:22]Read from MH i2c: F0 [12:54:22]MH_I2C_Read... [12:54:22]Read from MH i2c: F0 09 00 [12:54:22]MH_I2C_Read... [12:54:22]Read from MH i2c: F0 09 00 CE 05 00 FF ED A4 66 90 0F 3E 66 04 [12:54:22]GetLastDocTimeStamp 1722084826 [12:54:22]current date 1722084863 [12:54:22]FM_GetShiftState [12:54:22]SAM_PROTO_GetShiftState [12:54:22]wFMCommunicate request_size=4 [12:54:22]MH_SAM_APDU [12:54:22]CAPDU: 80 13 01 00 [12:54:22]Write to MH i2c: E2 08 00 CF 05 80 13 01 00 00 00 00 00 51 [12:54:22]Write i2c OK [12:54:22]MH_I2C_Read... [12:54:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:22]Read from MH i2c: E2 [12:54:22]MH_I2C_Read... [12:54:22]Read from MH i2c: E2 0E 00 [12:54:22]MH_I2C_Read... [12:54:22]Read from MH i2c: E2 0E 00 CF 05 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 DE [12:54:22]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [12:54:22]wFMCommunicate OK [12:54:22]SAM_PROTO_GetShiftState done [12:54:22]FM_GetShiftState done [12:54:22]opened in 1722038845 [12:54:22]opened+sec_in_day 1722125245 [12:54:22]quantity*price = 50063 [12:54:22]sum+1 = 50064 [12:54:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 106 27.07.2024 12:54 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118163 ФПД: 205138420242000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T125423&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118163&fm=205138420242000&tin=02508201610067®Number=0000000000092660&sum=50000 [12:54:23]StoreToDocumentArchive [12:54:23]shift 432 fd 118163 [12:54:23]save to /storage/0432/doc_00118163 [12:54:23]save last doc name /storage/0432/doc_00118163 to /storage/kkm_last_doc_name [12:54:23]save OK [12:54:23]Clear old archive folders... [12:54:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:54:23]tlvbuf is 00378D30 [12:54:23]SAM_PROTO_ClearQueue [12:54:23]wFMCommunicate request_size=4 [12:54:23]MH_SAM_APDU [12:54:23]CAPDU: 80 09 00 00 [12:54:23]Write to MH i2c: E2 08 00 DC 05 80 09 00 00 00 00 00 00 53 [12:54:23]Write i2c OK [12:54:23]MH_I2C_Read... [12:54:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:23]Read from MH i2c: E2 [12:54:23]MH_I2C_Read... [12:54:23]Read from MH i2c: E2 03 00 [12:54:23]MH_I2C_Read... [12:54:23]Read from MH i2c: E2 03 00 DC 05 00 90 00 55 [12:54:23]RAPDU: 90 00 [12:54:23]wFMCommunicate OK [12:54:23]SAM_PROTO_ClearQueue done [12:54:23]KKMCreateOFDPacket [12:54:23]OFDProtocolAddRootSTLVToBuf [12:54:23]FM_MakeSignedData [12:54:23]FM_MakeSignedData [12:54:23]SAM_PROTO_SignData [12:54:23]wFMCommunicate request_size=4 [12:54:23]MH_SAM_APDU [12:54:23]CAPDU: 80 0D 01 02 [12:54:23]Write to MH i2c: E2 08 00 DD 05 80 0D 01 02 00 00 00 00 5B [12:54:23]Write i2c OK [12:54:23]MH_I2C_Read... [12:54:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:23]Read from MH i2c: E2 [12:54:23]MH_I2C_Read... [12:54:23]Read from MH i2c: E2 03 00 [12:54:23]MH_I2C_Read... [12:54:23]Read from MH i2c: E2 03 00 DD 05 00 90 00 56 [12:54:23]RAPDU: 90 00 [12:54:23]wFMCommunicate OK [12:54:23]wFMCommunicate request_size=255 [12:54:23]MH_SAM_APDU [12:54: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 FF ED A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 93 CD 01 00 35 04 06 00 BA 92 82 AB [12:54:23]Write to MH i2c: E2 02 01 DE 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 FF ED A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 93 CD 01 00 35 04 06 00 BA 92 82 AB 00 00 5E [12:54:23]Write i2c OK [12:54:23]MH_I2C_Read... [12:54:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:24]Read from MH i2c: E2 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 03 00 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 03 00 DE 05 00 90 00 57 [12:54:24]RAPDU: 90 00 [12:54:24]wFMCommunicate OK [12:54:24]wFMCommunicate request_size=7 [12:54:24]MH_SAM_APDU [12:54:24]CAPDU: 80 0D 02 02 02 16 50 [12:54:24]Write to MH i2c: E2 0A 00 DF 05 80 0D 02 02 02 00 16 50 00 00 C8 [12:54:24]Write i2c OK [12:54:24]MH_I2C_Read... [12:54:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:24]Read from MH i2c: E2 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 03 00 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 03 00 DF 05 00 90 00 58 [12:54:24]RAPDU: 90 00 [12:54:24]wFMCommunicate OK [12:54:24]wFMCommunicate request_size=4 [12:54:24]MH_SAM_APDU [12:54:24]CAPDU: 80 0D 03 02 [12:54:24]Write to MH i2c: E2 08 00 E0 05 80 0D 03 02 00 00 00 00 60 [12:54:24]Write i2c OK [12:54:24]MH_I2C_Read... [12:54:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:24]Read from MH i2c: E2 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 0B 00 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 0B 00 E0 05 00 01 2E C4 78 92 47 B0 4F 90 00 A4 [12:54:24]RAPDU: 01 2E C4 78 92 47 B0 4F 90 00 [12:54:24]wFMCommunicate OK [12:54:24]SAM_PROTO_SignData done [12:54:24]FM_MakeSignedData done [12:54:24]CreateOFDProtocolMessage [12:54:24]wFMCommunicate request_size=4 [12:54:24]MH_SAM_APDU [12:54:24]CAPDU: 80 11 00 00 [12:54:24]Write to MH i2c: E2 08 00 E1 05 80 11 00 00 00 00 00 00 60 [12:54:24]Write i2c OK [12:54:24]MH_I2C_Read... [12:54:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:24]Read from MH i2c: E2 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 17 00 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 17 00 E1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BB [12:54:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:54:24]wFMCommunicate OK [12:54:24]CreateOFDProtocolMessage done [12:54:24]OFDSenderStorePacket 118163 [12:54:24]StoreOFDPacket docnum=118163 [12:54:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 81 CD 04 01 B5 20 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 FF ED A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 93 CD 01 00 35 04 06 00 BA 92 82 AB 16 50 01 2E C4 78 92 47 B0 4F [12:54:24]CheckFolder [12:54:24]dirname=/storage/ofd_packets [12:54:24]CheckFolder done [12:54:24]ProducePacketName [12:54:24]name=ofd_packets/00118163 [12:54:24]NVStorageSaveData ofd_packets/00118163 [12:54:24]File name is /storage/ofd_packets/00118163 [12:54:24]Write 298 bytes [12:54:24]NVStorageSaveData done [12:54:24]OFDSenderStorePacket done [12:54:24]KKMCreateOFDPacket done [12:54:24]NVStorageSaveData kkm_last_timestamp [12:54:24]File name is /storage/kkm_last_timestamp [12:54:24]Write 4 bytes [12:54:24]NVStorageSaveData done [12:54:24]ExternCall_PrintAddStr [12:54:24]wPrintStart [12:54:24]Write to MH i2c: 01 00 00 E2 05 E7 [12:54:24]Write i2c OK [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: 01 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: 01 07 00 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: 01 07 00 E2 05 00 00 00 00 00 FF 0F FC [12:54:24]RasterBufferAndPrint [12:54:24]line Счет N : (1)949036 [12:54:24]line ИНН: 02508201610067 [12:54:24]line Контрольно-Кассовый Чек [12:54:24]line ПРОДАЖА [12:54:24]line ТРК (МРК, ГНК) : 54 [12:54:24]line Товар: 2710194800 [12:54:24]line ДТ-К-5 [12:54:24]line 6.570 * 76.20 [12:54:24]line = 500.63 [12:54:24]line НДС 12% НСП 1% [12:54:24]line > о реализуемом товаре [12:54:24]line ОКРУГЛЕНИЕ: -0.63 [12:54:24]line ИТОГО: 500.00 [12:54:24]line Внесено: 500.00 [12:54:24]line СДАЧА: 0.00 [12:54:24]line НСП 1% : 4.43 [12:54:24]line НДС 12% : 53.16 [12:54:24]line Наличными: 500.00 [12:54:24]line Безнал.: 0.00 [12:54:24]line Место: АЗС № 134 "Партнер Нефть" [12:54:24]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:54:24]line СНО: Общий режим [12:54:24]line Чек 106 27.07.2024 12:54 [12:54:24]line Смена: 432 ФФД: 1.0 [12:54:24]line ЗНМ: 0300000044 [12:54:24]line РНМ: 0000000000092660 [12:54:24]line Версия ККМ: 001 [12:54:24]line ФМ: 0000000000874939 [12:54:24]line ФД: 118163 [12:54:24]line ФПД: 205138420242000 [12:54:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T125423&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118163&fm=205138420242000&tin=02508201610067®Number=0000000000092660&sum=50000 [12:54:24]written 0, free lines is 4095 [12:54:24]OFD Sender: Processing packet 118163 [packets to send 85, broken 84] [12:54:24]ProducePacketName [12:54:24]name=ofd_packets/00118163 [12:54:24]OFD Sender: To server: pG, [12:54:24]CommunicateWithHost lk.salyk.kg:30040 [12:54:24]ConnectInit lk.salyk.kg [12:54:24]Connected sock=10 [12:54:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 81 CD 04 01 B5 20 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 FF ED A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 93 CD 01 00 35 04 06 00 BA 92 82 AB 16 50 01 2E C4 78 92 47 B0 4F [12:54:24]Write to MH i2c: 01 00 00 0C 06 12 [12:54:24]Write i2c OK [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: 01 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: 01 07 00 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: 01 07 00 0C 06 00 00 00 00 00 E5 0C 0A [12:54:24]RasterBufferAndPrint [12:54:24]line [12:54:24]line [12:54:24]line [12:54:24]line [12:54:24]line [12:54:24]written 0, free lines is 3307 [12:54:24]MH_Cut [12:54:24]Write to MH i2c: D1 01 00 13 06 01 EB [12:54:24]Write i2c OK [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: D1 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: D1 01 00 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: D1 01 00 13 06 00 EA [12:54:24]Write to MH i2c: 01 00 00 14 06 1A [12:54:24]Write i2c OK [12:54:24]MH_I2C_Read... [12:54:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 62 33 47 00 54 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 93 CD 01 00 F4 03 04 00 92 9B A4 66 B6 04 01 00 00 13 49 88 DD 02 41 5E 78 [12:54:24]CommunicateWithHost err = 0 [12:54:24]CheckOFDResponse [12:54:24]1017 (14) - 77093643461234 [12:54:24]1041 (16) - 0000000000874939 [12:54:24]1040 (4) - 118163 [12:54:24]1012 (4) - 27.07.2024 07:02 [12:54:24]1206 (1) - 0 [12:54:24]OFD Sender: Remove packet 118163 [12:54:24]ProducePacketName [12:54:24]name=ofd_packets/00118163 [12:54:24]NVStorageDeleteData [12:54:25]OFD Sender: No OFD packet to send [12:54:25]*** Cut start [12:54:25]*** Partial cut [12:54:25]*** CUTSNS_PIN = 1 [12:54:25]*** CUTSNS_PIN = 0 [12:54:25]*** Brake cut motor [12:54:25]Read from MH i2c: 01 [12:54:25]MH_I2C_Read... [12:54:25]*** Stop cut motor [12:54:25]*** Cut end [12:54:25]Read from MH i2c: 01 07 00 [12:54:25]MH_I2C_Read... [12:54:25]Read from MH i2c: 01 07 00 14 06 00 00 00 00 00 FF 0F 2F [12:54:25]process_action close_receipt done [12:54:25]requested_data is exist [12:54:25]produce_requested_data [12:54:25]requested_item fm.sn is exist - process it [12:54:25]wFMCommunicate request_size=4 [12:54:25]MH_SAM_APDU [12:54:25]CAPDU: 80 11 00 00 [12:54:25]Write to MH i2c: E2 08 00 15 06 80 11 00 00 00 00 00 00 95 [12:54:25]Write i2c OK [12:54:25]MH_I2C_Read... [12:54:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:26]Read from MH i2c: E2 [12:54:26]MH_I2C_Read... [12:54:26]Read from MH i2c: E2 17 00 [12:54:26]MH_I2C_Read... [12:54:26]Read from MH i2c: E2 17 00 15 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F0 [12:54:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:54:26]wFMCommunicate OK [12:54:26]requested_item fd.num is exist - process it [12:54:26]SAM_PROTO_GetFieldsCounters [12:54:26]wFMCommunicate request_size=4 [12:54:26]MH_SAM_APDU [12:54:26]CAPDU: 80 13 00 00 [12:54:26]Write to MH i2c: E2 08 00 16 06 80 13 00 00 00 00 00 00 98 [12:54:26]Write i2c OK [12:54:26]MH_I2C_Read... [12:54:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:26]Read from MH i2c: E2 [12:54:26]MH_I2C_Read... [12:54:26]Read from MH i2c: E2 62 00 [12:54:26]MH_I2C_Read... [12:54:26]Read from MH i2c: E2 62 00 16 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 93 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [12:54:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 93 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:54:26]wFMCommunicate OK [12:54:26]SAM_PROTO_GetFieldsCounters done [12:54:26]requested_item shift.num is exist - process it [12:54:26]requested_item shift.opened is exist - process it [12:54:26]req_shift_opened [12:54:26]FM_GetShiftState [12:54:26]SAM_PROTO_GetShiftState [12:54:26]wFMCommunicate request_size=4 [12:54:26]MH_SAM_APDU [12:54:26]CAPDU: 80 13 01 00 [12:54:26]Write to MH i2c: E2 08 00 17 06 80 13 01 00 00 00 00 00 9A [12:54:26]Write i2c OK [12:54:26]MH_I2C_Read... [12:54:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:26]Read from MH i2c: E2 [12:54:26]MH_I2C_Read... [12:54:26]Read from MH i2c: E2 0E 00 [12:54:26]MH_I2C_Read... [12:54:26]Read from MH i2c: E2 0E 00 17 06 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 27 [12:54:26]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [12:54:26]wFMCommunicate OK [12:54:26]SAM_PROTO_GetShiftState done [12:54:26]FM_GetShiftState done [12:54:26]req_shift_opened done [12:54:26]requested_item shift.open_date is exist - process it [12:54:26]req_shift_open_date [12:54:26]req_shift_open_date done [12:54:26]produce_requested_data done [12:54:26]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118163,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [12:54:26]process_action_free close_receipt [12:54:26]json_value_free [12:54:26]json_value_free done [12:54:26]process_json_proto returns [12:54:26]Send response to host [12:54:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118163,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [12:54:26]free response buf [12:54:26]execute_script done [12:54:26]execute_script returns [12:54:26]free content buf [12:54:26]Sock 7.Close socket [12:54:26]Sock 7.Thread stoped [12:54:30]OFD Sender: No OFD packet to send [12:54:35]OFD Sender: No OFD packet to send [12:54:40]OFD Sender: No OFD packet to send [12:54:45]OFD Sender: No OFD packet to send [12:54:50]OFD Sender: No OFD packet to send [12:54:55]OFD Sender: No OFD packet to send [12:55:00]OFD Sender: No OFD packet to send [12:55:04]accept exits with 9 [12:55:04]New connection [12:55:04]New thread 3067272548 created [12:55:04]Thread 3067415908 joined [12:55:04]Waiting for new connection... [12:55:04] Sock 9.Parse request [12:55:04]Sock 9.Check first char [12:55:04]Sock 9.First char is OK [12:55:04]request: POST /json_proto HTTP/1.0 [12:55:04]Method: POST [12:55:04]URL: /json_proto [12:55:04]Method is POST - this is cgi request [12:55:04]url: /json_proto [12:55:04]query_string will be loaded in cgi processing [12:55:04]execute_cgi json_proto POST (null) [12:55:04]execute_cgi path=json_proto method=POST [12:55:04]POST find Content-Length [12:55:04]Host: 172.17.45.7:8080 [12:55:04]Content-Length: 677 [12:55:04]Content-Type: application/json [12:55:04] [12:55:04]POST finish read [12:55:04]Found Content-Length = 677 [12:55:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:04]execute_script... [12:55: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)949037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:04]POST & json_proto [12:55:04]process_json_proto [12:55:04]json parsed OK: [12:55:04]protocol is kg_v1.0 [12:55:04]action value=close_receipt [12:55:04]process_action close_receipt [12:55:04]cmd_close_receipt [12:55:04]MH_GetDate [12:55:04]Write to MH i2c: F0 00 00 18 06 0D [12:55:04]Write i2c OK [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: F0 [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: F0 09 00 [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: F0 09 00 18 06 00 29 EE A4 66 90 0F 3E 66 7A [12:55:04]GetLastDocTimeStamp 1722084863 [12:55:04]current date 1722084905 [12:55:04]FM_GetShiftState [12:55:04]SAM_PROTO_GetShiftState [12:55:04]wFMCommunicate request_size=4 [12:55:04]MH_SAM_APDU [12:55:04]CAPDU: 80 13 01 00 [12:55:04]Write to MH i2c: E2 08 00 19 06 80 13 01 00 00 00 00 00 9C [12:55:04]Write i2c OK [12:55:04]MH_I2C_Read... [12:55:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:04]Read from MH i2c: E2 [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: E2 0E 00 [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: E2 0E 00 19 06 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 29 [12:55:04]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [12:55:04]wFMCommunicate OK [12:55:04]SAM_PROTO_GetShiftState done [12:55:04]FM_GetShiftState done [12:55:04]opened in 1722038845 [12:55:04]opened+sec_in_day 1722125245 [12:55:04]quantity*price = 40002 [12:55:04]sum+1 = 40003 [12:55:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 107 27.07.2024 12:55 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118164 ФПД: 86788882762623 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T125505&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118164&fm=86788882762623&tin=02508201610067®Number=0000000000092660&sum=40000 [12:55:05]StoreToDocumentArchive [12:55:05]shift 432 fd 118164 [12:55:05]save to /storage/0432/doc_00118164 [12:55:05]save last doc name /storage/0432/doc_00118164 to /storage/kkm_last_doc_name [12:55:05]save OK [12:55:05]Clear old archive folders... [12:55:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:55:05]tlvbuf is 003913E0 [12:55:05]SAM_PROTO_ClearQueue [12:55:05]wFMCommunicate request_size=4 [12:55:05]MH_SAM_APDU [12:55:05]CAPDU: 80 09 00 00 [12:55:05]Write to MH i2c: E2 08 00 26 06 80 09 00 00 00 00 00 00 9E [12:55:05]Write i2c OK [12:55:05]MH_I2C_Read... [12:55:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:55:05]Read from MH i2c: E2 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: E2 03 00 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: E2 03 00 26 06 00 90 00 A0 [12:55:05]RAPDU: 90 00 [12:55:05]wFMCommunicate OK [12:55:05]SAM_PROTO_ClearQueue done [12:55:05]KKMCreateOFDPacket [12:55:05]OFDProtocolAddRootSTLVToBuf [12:55:05]FM_MakeSignedData [12:55:05]FM_MakeSignedData [12:55:05]SAM_PROTO_SignData [12:55:05]wFMCommunicate request_size=4 [12:55:05]MH_SAM_APDU [12:55:05]CAPDU: 80 0D 01 02 [12:55:05]Write to MH i2c: E2 08 00 27 06 80 0D 01 02 00 00 00 00 A6 [12:55:05]Write i2c OK [12:55:05]MH_I2C_Read... [12:55:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:55:05]Read from MH i2c: E2 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: E2 03 00 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: E2 03 00 27 06 00 90 00 A1 [12:55:05]RAPDU: 90 00 [12:55:05]wFMCommunicate OK [12:55:05]wFMCommunicate request_size=255 [12:55:05]MH_SAM_APDU [12:55: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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 29 EE A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 94 CD 01 00 35 04 06 00 4E [12:55:05]Write to MH i2c: E2 02 01 28 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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 29 EE A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 94 CD 01 00 35 04 06 00 4E 00 00 FC [12:55:05]Write i2c OK [12:55:05]MH_I2C_Read... [12:55:05]OFD Sender: No OFD packet to send [12:55:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:05]Read from MH i2c: E2 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: E2 03 00 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: E2 03 00 28 06 00 90 00 A2 [12:55:05]RAPDU: 90 00 [12:55:05]wFMCommunicate OK [12:55:05]wFMCommunicate request_size=10 [12:55:05]MH_SAM_APDU [12:55:05]CAPDU: 80 0D 02 02 05 EF 1C 87 0B 7F [12:55:05]Write to MH i2c: E2 0D 00 29 06 80 0D 02 02 05 00 EF 1C 87 0B 7F 00 00 CF [12:55:05]Write i2c OK [12:55:05]MH_I2C_Read... [12:55:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:05]Read from MH i2c: E2 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: E2 03 00 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: E2 03 00 29 06 00 90 00 A3 [12:55:05]RAPDU: 90 00 [12:55:05]wFMCommunicate OK [12:55:05]wFMCommunicate request_size=4 [12:55:05]MH_SAM_APDU [12:55:05]CAPDU: 80 0D 03 02 [12:55:05]Write to MH i2c: E2 08 00 2A 06 80 0D 03 02 00 00 00 00 AB [12:55:05]Write i2c OK [12:55:05]MH_I2C_Read... [12:55:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:55:05]Read from MH i2c: E2 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: E2 0B 00 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: E2 0B 00 2A 06 00 59 87 E2 E9 6B 15 DC AC 90 00 5F [12:55:05]RAPDU: 59 87 E2 E9 6B 15 DC AC 90 00 [12:55:05]wFMCommunicate OK [12:55:05]SAM_PROTO_SignData done [12:55:05]FM_MakeSignedData done [12:55:05]CreateOFDProtocolMessage [12:55:05]wFMCommunicate request_size=4 [12:55:05]MH_SAM_APDU [12:55:05]CAPDU: 80 11 00 00 [12:55:05]Write to MH i2c: E2 08 00 2B 06 80 11 00 00 00 00 00 00 AB [12:55:05]Write i2c OK [12:55:05]MH_I2C_Read... [12:55:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:05]Read from MH i2c: E2 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: E2 17 00 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: E2 17 00 2B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 06 [12:55:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:55:05]wFMCommunicate OK [12:55:05]CreateOFDProtocolMessage done [12:55:05]OFDSenderStorePacket 118164 [12:55:05]StoreOFDPacket docnum=118164 [12:55:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2B 5B 07 01 29 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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 29 EE A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 94 CD 01 00 35 04 06 00 4E EF 1C 87 0B 7F 59 87 E2 E9 6B 15 DC AC [12:55:05]CheckFolder [12:55:05]dirname=/storage/ofd_packets [12:55:05]CheckFolder done [12:55:05]ProducePacketName [12:55:05]name=ofd_packets/00118164 [12:55:05]NVStorageSaveData ofd_packets/00118164 [12:55:05]File name is /storage/ofd_packets/00118164 [12:55:05]Write 301 bytes [12:55:05]NVStorageSaveData done [12:55:05]OFDSenderStorePacket done [12:55:05]KKMCreateOFDPacket done [12:55:05]NVStorageSaveData kkm_last_timestamp [12:55:05]File name is /storage/kkm_last_timestamp [12:55:05]Write 4 bytes [12:55:05]NVStorageSaveData done [12:55:05]ExternCall_PrintAddStr [12:55:05]wPrintStart [12:55:05]Write to MH i2c: 01 00 00 2C 06 32 [12:55:05]Write i2c OK [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: 01 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: 01 07 00 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: 01 07 00 2C 06 00 00 00 00 00 FF 0F 47 [12:55:05]RasterBufferAndPrint [12:55:05]line Счет N : (1)949037 [12:55:05]line ИНН: 02508201610067 [12:55:05]line Контрольно-Кассовый Чек [12:55:05]line ПРОДАЖА [12:55:05]line ТРК (МРК, ГНК) : 41 [12:55:05]line Товар: 2710124130 [12:55:05]line Аи-92-К-4 [12:55:05]line 5.900 * 67.80 [12:55:05]line = 400.02 [12:55:05]line НДС 12% НСП 1% [12:55:05]line > о реализуемом товаре [12:55:05]line ОКРУГЛЕНИЕ: -0.02 [12:55:05]line ИТОГО: 400.00 [12:55:05]line Внесено: 400.00 [12:55:05]line СДАЧА: 0.00 [12:55:05]line НСП 1% : 3.54 [12:55:05]line НДС 12% : 42.48 [12:55:05]line Наличными: 400.00 [12:55:05]line Безнал.: 0.00 [12:55:05]line Место: АЗС № 134 "Партнер Нефть" [12:55:05]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:55:05]line СНО: Общий режим [12:55:05]line Чек 107 27.07.2024 12:55 [12:55:05]line Смена: 432 ФФД: 1.0 [12:55:05]line ЗНМ: 0300000044 [12:55:05]line РНМ: 0000000000092660 [12:55:05]line Версия ККМ: 001 [12:55:05]line ФМ: 0000000000874939 [12:55:05]line ФД: 118164 [12:55:05]line ФПД: 86788882762623 [12:55:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T125505&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118164&fm=86788882762623&tin=02508201610067®Number=0000000000092660&sum=40000 [12:55:05]written 0, free lines is 4095 [12:55:05]OFD Sender: Processing packet 118164 [packets to send 85, broken 84] [12:55:05]ProducePacketName [12:55:05]name=ofd_packets/00118164 [12:55:05]OFD Sender: To server: pG, [12:55:05]CommunicateWithHost lk.salyk.kg:30040 [12:55:05]ConnectInit lk.salyk.kg [12:55:05]Connected sock=10 [12:55:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2B 5B 07 01 29 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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 29 EE A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 94 CD 01 00 35 04 06 00 4E EF 1C 87 0B 7F 59 87 E2 E9 6B 15 DC AC [12:55:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 1B D6 47 00 87 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 94 CD 01 00 F4 03 04 00 BC 9B A4 66 B6 04 01 00 00 42 0C 2A 64 41 0B 56 E2 [12:55:06]CommunicateWithHost err = 0 [12:55:06]CheckOFDResponse [12:55:06]1017 (14) - 77093643461234 [12:55:06]1041 (16) - 0000000000874939 [12:55:06]1040 (4) - 118164 [12:55:06]1012 (4) - 27.07.2024 07:03 [12:55:06]1206 (1) - 0 [12:55:06]OFD Sender: Remove packet 118164 [12:55:06]ProducePacketName [12:55:06]name=ofd_packets/00118164 [12:55:06]NVStorageDeleteData [12:55:06]Write to MH i2c: 01 00 00 56 06 5C [12:55:06]Write i2c OK [12:55:06]MH_I2C_Read... [12:55:06]Read from MH i2c: 01 [12:55:06]MH_I2C_Read... [12:55:06]Read from MH i2c: 01 07 00 [12:55:06]MH_I2C_Read... [12:55:06]Read from MH i2c: 01 07 00 56 06 00 00 00 00 00 F2 0C 61 [12:55:06]RasterBufferAndPrint [12:55:06]line [12:55:06]line [12:55:06]line [12:55:06]line [12:55:06]line [12:55:06]written 0, free lines is 3323 [12:55:06]MH_Cut [12:55:06]Write to MH i2c: D1 01 00 5D 06 01 35 [12:55:06]Write i2c OK [12:55:06]MH_I2C_Read... [12:55:06]Read from MH i2c: D1 [12:55:06]MH_I2C_Read... [12:55:06]Read from MH i2c: D1 01 00 [12:55:06]MH_I2C_Read... [12:55:06]Read from MH i2c: D1 01 00 5D 06 00 34 [12:55:06]Write to MH i2c: 01 00 00 5E 06 64 [12:55:06]Write i2c OK [12:55:06]MH_I2C_Read... [12:55:06]OFD Sender: No OFD packet to send [12:55:06]*** Cut start [12:55:06]*** Partial cut [12:55:06]*** CUTSNS_PIN = 1 [12:55:07]*** CUTSNS_PIN = 0 [12:55:07]*** Brake cut motor [12:55:07]Read from MH i2c: 01 [12:55:07]MH_I2C_Read... [12:55:07]*** Stop cut motor [12:55:07]*** Cut end [12:55:07]Read from MH i2c: 01 07 00 [12:55:07]MH_I2C_Read... [12:55:07]Read from MH i2c: 01 07 00 5E 06 00 00 00 00 00 FF 0F 79 [12:55:07]process_action close_receipt done [12:55:07]requested_data is exist [12:55:07]produce_requested_data [12:55:07]requested_item fm.sn is exist - process it [12:55:07]wFMCommunicate request_size=4 [12:55:07]MH_SAM_APDU [12:55:07]CAPDU: 80 11 00 00 [12:55:07]Write to MH i2c: E2 08 00 5F 06 80 11 00 00 00 00 00 00 DF [12:55:07]Write i2c OK [12:55:07]MH_I2C_Read... [12:55:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:07]Read from MH i2c: E2 [12:55:07]MH_I2C_Read... [12:55:07]Read from MH i2c: E2 17 00 [12:55:07]MH_I2C_Read... [12:55:07]Read from MH i2c: E2 17 00 5F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3A [12:55:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:55:07]wFMCommunicate OK [12:55:07]requested_item fd.num is exist - process it [12:55:07]SAM_PROTO_GetFieldsCounters [12:55:07]wFMCommunicate request_size=4 [12:55:07]MH_SAM_APDU [12:55:07]CAPDU: 80 13 00 00 [12:55:07]Write to MH i2c: E2 08 00 60 06 80 13 00 00 00 00 00 00 E2 [12:55:07]Write i2c OK [12:55:07]MH_I2C_Read... [12:55:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:07]Read from MH i2c: E2 [12:55:07]MH_I2C_Read... [12:55:07]Read from MH i2c: E2 62 00 [12:55:07]MH_I2C_Read... [12:55:07]Read from MH i2c: E2 62 00 60 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 94 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [12:55:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 94 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:55:07]wFMCommunicate OK [12:55:07]SAM_PROTO_GetFieldsCounters done [12:55:07]requested_item shift.num is exist - process it [12:55:07]requested_item shift.opened is exist - process it [12:55:07]req_shift_opened [12:55:07]FM_GetShiftState [12:55:07]SAM_PROTO_GetShiftState [12:55:07]wFMCommunicate request_size=4 [12:55:07]MH_SAM_APDU [12:55:07]CAPDU: 80 13 01 00 [12:55:07]Write to MH i2c: E2 08 00 61 06 80 13 01 00 00 00 00 00 E4 [12:55:07]Write i2c OK [12:55:07]MH_I2C_Read... [12:55:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:07]Read from MH i2c: E2 [12:55:07]MH_I2C_Read... [12:55:07]Read from MH i2c: E2 0E 00 [12:55:07]MH_I2C_Read... [12:55:07]Read from MH i2c: E2 0E 00 61 06 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 71 [12:55:07]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [12:55:07]wFMCommunicate OK [12:55:07]SAM_PROTO_GetShiftState done [12:55:07]FM_GetShiftState done [12:55:07]req_shift_opened done [12:55:07]requested_item shift.open_date is exist - process it [12:55:07]req_shift_open_date [12:55:07]req_shift_open_date done [12:55:07]produce_requested_data done [12:55:07]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118164,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [12:55:07]process_action_free close_receipt [12:55:07]json_value_free [12:55:07]json_value_free done [12:55:07]process_json_proto returns [12:55:07]Send response to host [12:55:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118164,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [12:55:07]free response buf [12:55:07]execute_script done [12:55:07]execute_script returns [12:55:07]free content buf [12:55:07]Sock 9.Close socket [12:55:07]Sock 9.Thread stoped [12:55:11]OFD Sender: No OFD packet to send [12:55:16]OFD Sender: No OFD packet to send [12:55:21]OFD Sender: No OFD packet to send [12:55:26]OFD Sender: No OFD packet to send [12:55:31]OFD Sender: No OFD packet to send [12:55:36]OFD Sender: No OFD packet to send [12:55:41]OFD Sender: No OFD packet to send [12:55:46]OFD Sender: No OFD packet to send [12:55:51]OFD Sender: No OFD packet to send [12:55:56]OFD Sender: No OFD packet to send [12:56:01]OFD Sender: No OFD packet to send [12:56:06]OFD Sender: No OFD packet to send [12:56:11]OFD Sender: No OFD packet to send [12:56:16]OFD Sender: No OFD packet to send [12:56:21]OFD Sender: No OFD packet to send [12:56:26]OFD Sender: No OFD packet to send [12:56:31]OFD Sender: No OFD packet to send [12:56:36]OFD Sender: No OFD packet to send [12:56:41]OFD Sender: No OFD packet to send [12:56:46]OFD Sender: No OFD packet to send [12:56:51]OFD Sender: No OFD packet to send [12:56:56]OFD Sender: No OFD packet to send [12:57:01]OFD Sender: No OFD packet to send [12:57:06]OFD Sender: No OFD packet to send [12:57:11]OFD Sender: No OFD packet to send [12:57:16]OFD Sender: No OFD packet to send [12:57:21]OFD Sender: No OFD packet to send [12:57:26]OFD Sender: No OFD packet to send [12:57:31]OFD Sender: No OFD packet to send [12:57:36]OFD Sender: No OFD packet to send [12:57:41]OFD Sender: No OFD packet to send [12:57:46]OFD Sender: No OFD packet to send [12:57:51]OFD Sender: No OFD packet to send [12:57:56]OFD Sender: No OFD packet to send [12:58:01]OFD Sender: No OFD packet to send [12:58:06]OFD Sender: No OFD packet to send [12:58:11]OFD Sender: No OFD packet to send [12:58:16]OFD Sender: No OFD packet to send [12:58:21]OFD Sender: No OFD packet to send [12:58:26]OFD Sender: No OFD packet to send [12:58:31]OFD Sender: No OFD packet to send [12:58:36]OFD Sender: No OFD packet to send [12:58:41]OFD Sender: No OFD packet to send [12:58:46]OFD Sender: No OFD packet to send [12:58:51]OFD Sender: No OFD packet to send [12:58:56]OFD Sender: No OFD packet to send [12:59:01]OFD Sender: No OFD packet to send [12:59:06]OFD Sender: No OFD packet to send [12:59:11]OFD Sender: No OFD packet to send [12:59:16]OFD Sender: No OFD packet to send [12:59:21]OFD Sender: No OFD packet to send [12:59:26]OFD Sender: No OFD packet to send [12:59:31]OFD Sender: No OFD packet to send [12:59:36]OFD Sender: No OFD packet to send [12:59:40]accept exits with 7 [12:59:40]New connection [12:59:40]New thread 3067415908 created [12:59:40]Thread 3067272548 joined [12:59:40]Waiting for new connection... [12:59:40] Sock 7.Parse request [12:59:40]Sock 7.Check first char [12:59:40]Sock 7.First char is OK [12:59:40]request: POST /json_proto HTTP/1.0 [12:59:40]Method: POST [12:59:40]URL: /json_proto [12:59:40]Method is POST - this is cgi request [12:59:40]url: /json_proto [12:59:40]query_string will be loaded in cgi processing [12:59:40]execute_cgi json_proto POST (null) [12:59:40]execute_cgi path=json_proto method=POST [12:59:40]POST find Content-Length [12:59:40]Host: 172.17.45.7:8080 [12:59:40]Content-Length: 674 [12:59:40]Content-Type: application/json [12:59:40] [12:59:40]POST finish read [12:59:40]Found Content-Length = 674 [12:59:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:40]execute_script... [12:59: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)949039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:40]POST & json_proto [12:59:40]process_json_proto [12:59:40]json parsed OK: [12:59:40]protocol is kg_v1.0 [12:59:40]action value=close_receipt [12:59:40]process_action close_receipt [12:59:40]cmd_close_receipt [12:59:40]MH_GetDate [12:59:40]Write to MH i2c: F0 00 00 62 06 57 [12:59:40]Write i2c OK [12:59:40]MH_I2C_Read... [12:59:40]Read from MH i2c: F0 [12:59:40]MH_I2C_Read... [12:59:40]Read from MH i2c: F0 09 00 [12:59:40]MH_I2C_Read... [12:59:40]Read from MH i2c: F0 09 00 62 06 00 3E EF A4 66 90 0F 3E 66 DA [12:59:40]GetLastDocTimeStamp 1722084905 [12:59:40]current date 1722085182 [12:59:40]FM_GetShiftState [12:59:40]SAM_PROTO_GetShiftState [12:59:40]wFMCommunicate request_size=4 [12:59:40]MH_SAM_APDU [12:59:40]CAPDU: 80 13 01 00 [12:59:40]Write to MH i2c: E2 08 00 63 06 80 13 01 00 00 00 00 00 E6 [12:59:40]Write i2c OK [12:59:40]MH_I2C_Read... [12:59:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:40]Read from MH i2c: E2 [12:59:40]MH_I2C_Read... [12:59:40]Read from MH i2c: E2 0E 00 [12:59:40]MH_I2C_Read... [12:59:40]Read from MH i2c: E2 0E 00 63 06 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 73 [12:59:40]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [12:59:40]wFMCommunicate OK [12:59:40]SAM_PROTO_GetShiftState done [12:59:40]FM_GetShiftState done [12:59:40]opened in 1722038845 [12:59:40]opened+sec_in_day 1722125245 [12:59:40]quantity*price = 50063 [12:59:40]sum+1 = 50064 [12:59:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 108 27.07.2024 12:59 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118165 ФПД: 49741954884962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T125942&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118165&fm=49741954884962&tin=02508201610067®Number=0000000000092660&sum=50000 [12:59:41]StoreToDocumentArchive [12:59:41]shift 432 fd 118165 [12:59:41]save to /storage/0432/doc_00118165 [12:59:41]save last doc name /storage/0432/doc_00118165 to /storage/kkm_last_doc_name [12:59:41]save OK [12:59:41]Clear old archive folders... [12:59:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:59:41]tlvbuf is 00392C90 [12:59:41]SAM_PROTO_ClearQueue [12:59:41]wFMCommunicate request_size=4 [12:59:41]MH_SAM_APDU [12:59:41]CAPDU: 80 09 00 00 [12:59:41]Write to MH i2c: E2 08 00 70 06 80 09 00 00 00 00 00 00 E8 [12:59:41]Write i2c OK [12:59:41]MH_I2C_Read... [12:59:42]Read from MH i2c: E2 [12:59:42]MH_I2C_Read... [12:59:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:59:42]Read from MH i2c: E2 03 00 [12:59:42]MH_I2C_Read... [12:59:42]Read from MH i2c: E2 03 00 70 06 00 90 00 EA [12:59:42]RAPDU: 90 00 [12:59:42]wFMCommunicate OK [12:59:42]SAM_PROTO_ClearQueue done [12:59:42]KKMCreateOFDPacket [12:59:42]OFDProtocolAddRootSTLVToBuf [12:59:42]FM_MakeSignedData [12:59:42]FM_MakeSignedData [12:59:42]SAM_PROTO_SignData [12:59:42]wFMCommunicate request_size=4 [12:59:42]MH_SAM_APDU [12:59:42]CAPDU: 80 0D 01 02 [12:59:42]Write to MH i2c: E2 08 00 71 06 80 0D 01 02 00 00 00 00 F0 [12:59:42]Write i2c OK [12:59:42]MH_I2C_Read... [12:59:42]OFD Sender: No OFD packet to send [12:59:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:59:42]Read from MH i2c: E2 [12:59:42]MH_I2C_Read... [12:59:42]Read from MH i2c: E2 03 00 [12:59:42]MH_I2C_Read... [12:59:42]Read from MH i2c: E2 03 00 71 06 00 90 00 EB [12:59:42]RAPDU: 90 00 [12:59:42]wFMCommunicate OK [12:59:42]wFMCommunicate request_size=255 [12:59:42]MH_SAM_APDU [12:59: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 3E EF A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 95 CD 01 00 35 04 06 00 2D 3D 73 8D [12:59:42]Write to MH i2c: E2 02 01 72 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 3E EF A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 95 CD 01 00 35 04 06 00 2D 3D 73 8D 00 00 29 [12:59:42]Write i2c OK [12:59:42]MH_I2C_Read... [12:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:42]Read from MH i2c: E2 [12:59:42]MH_I2C_Read... [12:59:42]Read from MH i2c: E2 03 00 [12:59:42]MH_I2C_Read... [12:59:42]Read from MH i2c: E2 03 00 72 06 00 90 00 EC [12:59:42]RAPDU: 90 00 [12:59:42]wFMCommunicate OK [12:59:42]wFMCommunicate request_size=7 [12:59:42]MH_SAM_APDU [12:59:42]CAPDU: 80 0D 02 02 02 25 62 [12:59:42]Write to MH i2c: E2 0A 00 73 06 80 0D 02 02 02 00 25 62 00 00 7E [12:59:42]Write i2c OK [12:59:42]MH_I2C_Read... [12:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:42]Read from MH i2c: E2 [12:59:42]MH_I2C_Read... [12:59:42]Read from MH i2c: E2 03 00 [12:59:42]MH_I2C_Read... [12:59:42]Read from MH i2c: E2 03 00 73 06 00 90 00 ED [12:59:42]RAPDU: 90 00 [12:59:42]wFMCommunicate OK [12:59:42]wFMCommunicate request_size=4 [12:59:42]MH_SAM_APDU [12:59:42]CAPDU: 80 0D 03 02 [12:59:42]Write to MH i2c: E2 08 00 74 06 80 0D 03 02 00 00 00 00 F5 [12:59:42]Write i2c OK [12:59:42]MH_I2C_Read... [12:59:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:42]Read from MH i2c: E2 [12:59:42]MH_I2C_Read... [12:59:42]Read from MH i2c: E2 0B 00 [12:59:42]MH_I2C_Read... [12:59:42]Read from MH i2c: E2 0B 00 74 06 00 9E 8D C1 8C 2B 1D 22 CC 90 00 A4 [12:59:42]RAPDU: 9E 8D C1 8C 2B 1D 22 CC 90 00 [12:59:42]wFMCommunicate OK [12:59:42]SAM_PROTO_SignData done [12:59:42]FM_MakeSignedData done [12:59:42]CreateOFDProtocolMessage [12:59:42]wFMCommunicate request_size=4 [12:59:42]MH_SAM_APDU [12:59:42]CAPDU: 80 11 00 00 [12:59:42]Write to MH i2c: E2 08 00 75 06 80 11 00 00 00 00 00 00 F5 [12:59:42]Write i2c OK [12:59:42]MH_I2C_Read... [12:59:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:42]Read from MH i2c: E2 [12:59:42]MH_I2C_Read... [12:59:42]Read from MH i2c: E2 17 00 [12:59:42]MH_I2C_Read... [12:59:42]Read from MH i2c: E2 17 00 75 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 50 [12:59:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:59:42]wFMCommunicate OK [12:59:42]CreateOFDProtocolMessage done [12:59:42]OFDSenderStorePacket 118165 [12:59:42]StoreOFDPacket docnum=118165 [12:59:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F8 B7 04 01 E9 E6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 3E EF A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 95 CD 01 00 35 04 06 00 2D 3D 73 8D 25 62 9E 8D C1 8C 2B 1D 22 CC [12:59:42]CheckFolder [12:59:42]dirname=/storage/ofd_packets [12:59:42]CheckFolder done [12:59:42]ProducePacketName [12:59:42]name=ofd_packets/00118165 [12:59:42]NVStorageSaveData ofd_packets/00118165 [12:59:42]File name is /storage/ofd_packets/00118165 [12:59:42]Write 298 bytes [12:59:42]NVStorageSaveData done [12:59:42]OFDSenderStorePacket done [12:59:42]KKMCreateOFDPacket done [12:59:42]NVStorageSaveData kkm_last_timestamp [12:59:42]File name is /storage/kkm_last_timestamp [12:59:42]Write 4 bytes [12:59:42]NVStorageSaveData done [12:59:42]ExternCall_PrintAddStr [12:59:42]wPrintStart [12:59:42]Write to MH i2c: 01 00 00 76 06 7C [12:59:42]Write i2c OK [12:59:42]MH_I2C_Read... [12:59:42]Read from MH i2c: 01 [12:59:42]MH_I2C_Read... [12:59:42]Read from MH i2c: 01 07 00 [12:59:42]MH_I2C_Read... [12:59:42]Read from MH i2c: 01 07 00 76 06 00 00 00 00 00 FF 0F 91 [12:59:42]RasterBufferAndPrint [12:59:42]line Счет N : (1)949039 [12:59:42]line ИНН: 02508201610067 [12:59:42]line Контрольно-Кассовый Чек [12:59:42]line ПРОДАЖА [12:59:42]line ТРК (МРК, ГНК) : 54 [12:59:42]line Товар: 2710194800 [12:59:42]line ДТ-К-5 [12:59:42]line 6.570 * 76.20 [12:59:42]line = 500.63 [12:59:42]line НДС 12% НСП 1% [12:59:42]line > о реализуемом товаре [12:59:42]line ОКРУГЛЕНИЕ: -0.63 [12:59:42]line ИТОГО: 500.00 [12:59:42]line Внесено: 500.00 [12:59:42]line СДАЧА: 0.00 [12:59:42]line НСП 1% : 4.43 [12:59:42]line НДС 12% : 53.16 [12:59:42]line Наличными: 500.00 [12:59:42]line Безнал.: 0.00 [12:59:42]line Место: АЗС № 134 "Партнер Нефть" [12:59:42]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:59:42]line СНО: Общий режим [12:59:42]line Чек 108 27.07.2024 12:59 [12:59:42]line Смена: 432 ФФД: 1.0 [12:59:42]line ЗНМ: 0300000044 [12:59:42]line РНМ: 0000000000092660 [12:59:42]line Версия ККМ: 001 [12:59:42]line ФМ: 0000000000874939 [12:59:42]line ФД: 118165 [12:59:42]line ФПД: 49741954884962 [12:59:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T125942&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118165&fm=49741954884962&tin=02508201610067®Number=0000000000092660&sum=50000 [12:59:42]OFD Sender: Processing packet 118165 [packets to send 85, broken 84] [12:59:42]ProducePacketName [12:59:42]name=ofd_packets/00118165 [12:59:42]OFD Sender: To server: pG, [12:59:42]CommunicateWithHost lk.salyk.kg:30040 [12:59:42]ConnectInit lk.salyk.kg [12:59:42]written 0, free lines is 4095 [12:59:42]Connected sock=10 [12:59:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F8 B7 04 01 E9 E6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 3E EF A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 95 CD 01 00 35 04 06 00 2D 3D 73 8D 25 62 9E 8D C1 8C 2B 1D 22 CC [12:59:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D1 7C 47 00 DB 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 95 CD 01 00 F4 03 04 00 D0 9C A4 66 B6 04 01 00 00 2E AD 6A DC 45 43 BB 73 [12:59:43]CommunicateWithHost err = 0 [12:59:43]CheckOFDResponse [12:59:43]1017 (14) - 77093643461234 [12:59:43]1041 (16) - 0000000000874939 [12:59:43]1040 (4) - 118165 [12:59:43]1012 (4) - 27.07.2024 07:08 [12:59:43]1206 (1) - 0 [12:59:43]OFD Sender: Remove packet 118165 [12:59:43]ProducePacketName [12:59:43]name=ofd_packets/00118165 [12:59:43]NVStorageDeleteData [12:59:43]Write to MH i2c: 01 00 00 A0 06 A6 [12:59:43]Write i2c OK [12:59:43]MH_I2C_Read... [12:59:43]Read from MH i2c: 01 [12:59:43]MH_I2C_Read... [12:59:43]Read from MH i2c: 01 07 00 [12:59:43]MH_I2C_Read... [12:59:43]Read from MH i2c: 01 07 00 A0 06 00 00 00 00 00 D4 0C 8D [12:59:43]RasterBufferAndPrint [12:59:43]line [12:59:43]line [12:59:43]line [12:59:43]line [12:59:43]line [12:59:43]written 0, free lines is 3290 [12:59:43]MH_Cut [12:59:43]Write to MH i2c: D1 01 00 A7 06 01 7F [12:59:43]Write i2c OK [12:59:43]MH_I2C_Read... [12:59:43]Read from MH i2c: D1 [12:59:43]MH_I2C_Read... [12:59:43]Read from MH i2c: D1 01 00 [12:59:43]MH_I2C_Read... [12:59:43]Read from MH i2c: D1 01 00 A7 06 00 7E [12:59:43]Write to MH i2c: 01 00 00 A8 06 AE [12:59:43]Write i2c OK [12:59:43]MH_I2C_Read... [12:59:43]OFD Sender: No OFD packet to send [12:59:44]*** Cut start [12:59:44]*** Partial cut [12:59:44]*** CUTSNS_PIN = 1 [12:59:44]*** CUTSNS_PIN = 0 [12:59:44]*** Brake cut motor [12:59:44]Read from MH i2c: 01 [12:59:44]MH_I2C_Read... [12:59:44]*** Stop cut motor [12:59:44]*** Cut end [12:59:44]Read from MH i2c: 01 07 00 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: 01 07 00 A8 06 00 00 00 00 00 FF 0F C3 [12:59:44]process_action close_receipt done [12:59:44]requested_data is exist [12:59:44]produce_requested_data [12:59:44]requested_item fm.sn is exist - process it [12:59:44]wFMCommunicate request_size=4 [12:59:44]MH_SAM_APDU [12:59:44]CAPDU: 80 11 00 00 [12:59:44]Write to MH i2c: E2 08 00 A9 06 80 11 00 00 00 00 00 00 29 [12:59:44]Write i2c OK [12:59:44]MH_I2C_Read... [12:59:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:44]Read from MH i2c: E2 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 17 00 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 17 00 A9 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 84 [12:59:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:59:44]wFMCommunicate OK [12:59:44]requested_item fd.num is exist - process it [12:59:44]SAM_PROTO_GetFieldsCounters [12:59:44]wFMCommunicate request_size=4 [12:59:44]MH_SAM_APDU [12:59:44]CAPDU: 80 13 00 00 [12:59:44]Write to MH i2c: E2 08 00 AA 06 80 13 00 00 00 00 00 00 2C [12:59:44]Write i2c OK [12:59:44]MH_I2C_Read... [12:59:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:44]Read from MH i2c: E2 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 62 00 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 62 00 AA 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 95 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [12:59:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 95 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:59:44]wFMCommunicate OK [12:59:44]SAM_PROTO_GetFieldsCounters done [12:59:44]requested_item shift.num is exist - process it [12:59:44]requested_item shift.opened is exist - process it [12:59:44]req_shift_opened [12:59:44]FM_GetShiftState [12:59:44]SAM_PROTO_GetShiftState [12:59:44]wFMCommunicate request_size=4 [12:59:44]MH_SAM_APDU [12:59:44]CAPDU: 80 13 01 00 [12:59:44]Write to MH i2c: E2 08 00 AB 06 80 13 01 00 00 00 00 00 2E [12:59:44]Write i2c OK [12:59:44]MH_I2C_Read... [12:59:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:44]Read from MH i2c: E2 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 0E 00 [12:59:44]MH_I2C_Read... [12:59:44]Read from MH i2c: E2 0E 00 AB 06 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 BB [12:59:44]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [12:59:44]wFMCommunicate OK [12:59:44]SAM_PROTO_GetShiftState done [12:59:44]FM_GetShiftState done [12:59:44]req_shift_opened done [12:59:44]requested_item shift.open_date is exist - process it [12:59:44]req_shift_open_date [12:59:44]req_shift_open_date done [12:59:44]produce_requested_data done [12:59:44]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118165,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [12:59:44]process_action_free close_receipt [12:59:44]json_value_free [12:59:44]json_value_free done [12:59:44]process_json_proto returns [12:59:44]Send response to host [12:59:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118165,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [12:59:44]free response buf [12:59:44]execute_script done [12:59:44]execute_script returns [12:59:44]free content buf [12:59:44]Sock 7.Close socket [12:59:44]Sock 7.Thread stoped [12:59:48]OFD Sender: No OFD packet to send [12:59:53]OFD Sender: No OFD packet to send [12:59:58]OFD Sender: No OFD packet to send [13:00:03]OFD Sender: No OFD packet to send [13:00:08]OFD Sender: No OFD packet to send [13:00:13]OFD Sender: No OFD packet to send [13:00:18]OFD Sender: No OFD packet to send [13:00:23]OFD Sender: No OFD packet to send [13:00:28]OFD Sender: No OFD packet to send [13:00:29]accept exits with 9 [13:00:29]New connection [13:00:29]New thread 3067272548 created [13:00:29]Thread 3067415908 joined [13:00:29]Waiting for new connection... [13:00:29] Sock 9.Parse request [13:00:29]Sock 9.Check first char [13:00:29]Sock 9.First char is OK [13:00:29]request: POST /json_proto HTTP/1.0 [13:00:29]Method: POST [13:00:29]URL: /json_proto [13:00:29]Method is POST - this is cgi request [13:00:29]url: /json_proto [13:00:29]query_string will be loaded in cgi processing [13:00:29]execute_cgi json_proto POST (null) [13:00:29]execute_cgi path=json_proto method=POST [13:00:29]POST find Content-Length [13:00:29]Host: 172.17.45.7:8080 [13:00:29]Content-Length: 819 [13:00:29]Content-Type: application/json [13:00:29] [13:00:29]POST finish read [13:00:29]Found Content-Length = 819 [13:00:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 85.310, "sum" : 6500.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", "total" : 6500.00, "payments": [ { "type": 1, "sum" : 6500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:29]execute_script... [13:00:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 85.310, "sum" : 6500.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", "total" : 6500.00, "payments": [ { "type": 1, "sum" : 6500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:29]POST & json_proto [13:00:29]process_json_proto [13:00:29]json parsed OK: [13:00:29]protocol is kg_v1.0 [13:00:29]action value=close_receipt [13:00:29]process_action close_receipt [13:00:29]cmd_close_receipt [13:00:29]MH_GetDate [13:00:29]Write to MH i2c: F0 00 00 AC 06 A1 [13:00:29]Write i2c OK [13:00:29]MH_I2C_Read... [13:00:29]Read from MH i2c: F0 [13:00:29]MH_I2C_Read... [13:00:29]Read from MH i2c: F0 09 00 [13:00:29]MH_I2C_Read... [13:00:29]Read from MH i2c: F0 09 00 AC 06 00 6F EF A4 66 90 0F 3E 66 55 [13:00:29]GetLastDocTimeStamp 1722085182 [13:00:29]current date 1722085231 [13:00:29]FM_GetShiftState [13:00:29]SAM_PROTO_GetShiftState [13:00:29]wFMCommunicate request_size=4 [13:00:29]MH_SAM_APDU [13:00:29]CAPDU: 80 13 01 00 [13:00:29]Write to MH i2c: E2 08 00 AD 06 80 13 01 00 00 00 00 00 30 [13:00:29]Write i2c OK [13:00:29]MH_I2C_Read... [13:00:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:29]Read from MH i2c: E2 [13:00:29]MH_I2C_Read... [13:00:29]Read from MH i2c: E2 0E 00 [13:00:29]MH_I2C_Read... [13:00:29]Read from MH i2c: E2 0E 00 AD 06 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 BD [13:00:29]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [13:00:29]wFMCommunicate OK [13:00:29]SAM_PROTO_GetShiftState done [13:00:29]FM_GetShiftState done [13:00:29]opened in 1722038845 [13:00:29]opened+sec_in_day 1722125245 [13:00:29]quantity*price = 650062 [13:00:29]sum+1 = 650063 [13:00:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 6500.00 НСП 1% : 57.53 НДС 12% : 690.33 Наличными: 0.00 Безнал.: 6500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 109 27.07.2024 13:00 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118166 ФПД: 147805841530771 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T130031&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118166&fm=147805841530771&tin=02508201610067®Number=0000000000092660&sum=650000 [13:00:30]StoreToDocumentArchive [13:00:30]shift 432 fd 118166 [13:00:30]save to /storage/0432/doc_00118166 [13:00:30]save last doc name /storage/0432/doc_00118166 to /storage/kkm_last_doc_name [13:00:30]save OK [13:00:30]Clear old archive folders... [13:00:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:00:30]tlvbuf is 00391B50 [13:00:30]SAM_PROTO_ClearQueue [13:00:30]wFMCommunicate request_size=4 [13:00:30]MH_SAM_APDU [13:00:30]CAPDU: 80 09 00 00 [13:00:30]Write to MH i2c: E2 08 00 BA 06 80 09 00 00 00 00 00 00 32 [13:00:30]Write i2c OK [13:00:30]MH_I2C_Read... [13:00:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:30]Read from MH i2c: E2 [13:00:30]MH_I2C_Read... [13:00:30]Read from MH i2c: E2 03 00 [13:00:30]MH_I2C_Read... [13:00:30]Read from MH i2c: E2 03 00 BA 06 00 90 00 34 [13:00:30]RAPDU: 90 00 [13:00:30]wFMCommunicate OK [13:00:30]SAM_PROTO_ClearQueue done [13:00:30]KKMCreateOFDPacket [13:00:30]OFDProtocolAddRootSTLVToBuf [13:00:30]FM_MakeSignedData [13:00:30]FM_MakeSignedData [13:00:30]SAM_PROTO_SignData [13:00:30]wFMCommunicate request_size=4 [13:00:30]MH_SAM_APDU [13:00:30]CAPDU: 80 0D 01 02 [13:00:30]Write to MH i2c: E2 08 00 BB 06 80 0D 01 02 00 00 00 00 3A [13:00:30]Write i2c OK [13:00:30]MH_I2C_Read... [13:00:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:31]Read from MH i2c: E2 [13:00:31]MH_I2C_Read... [13:00:31]Read from MH i2c: E2 03 00 [13:00:31]MH_I2C_Read... [13:00:31]Read from MH i2c: E2 03 00 BB 06 00 90 00 35 [13:00:31]RAPDU: 90 00 [13:00:31]wFMCommunicate OK [13:00:31]wFMCommunicate request_size=255 [13:00:31]MH_SAM_APDU [13:00: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 4D 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4E EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 EB 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 6F EF A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 96 CD 01 00 35 04 06 00 86 6D BA AE [13:00:31]Write to MH i2c: E2 02 01 BC 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 4D 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4E EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 EB 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 6F EF A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 96 CD 01 00 35 04 06 00 86 6D BA AE 00 00 E4 [13:00:31]Write i2c OK [13:00:31]MH_I2C_Read... [13:00:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:31]Read from MH i2c: E2 [13:00:31]MH_I2C_Read... [13:00:31]Read from MH i2c: E2 03 00 [13:00:31]MH_I2C_Read... [13:00:31]Read from MH i2c: E2 03 00 BC 06 00 90 00 36 [13:00:31]RAPDU: 90 00 [13:00:31]wFMCommunicate OK [13:00:31]wFMCommunicate request_size=7 [13:00:31]MH_SAM_APDU [13:00:31]CAPDU: 80 0D 02 02 02 1F 93 [13:00:31]Write to MH i2c: E2 0A 00 BD 06 80 0D 02 02 02 00 1F 93 00 00 F3 [13:00:31]Write i2c OK [13:00:31]MH_I2C_Read... [13:00:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:31]Read from MH i2c: E2 [13:00:31]MH_I2C_Read... [13:00:31]Read from MH i2c: E2 03 00 [13:00:31]MH_I2C_Read... [13:00:31]Read from MH i2c: E2 03 00 BD 06 00 90 00 37 [13:00:31]RAPDU: 90 00 [13:00:31]wFMCommunicate OK [13:00:31]wFMCommunicate request_size=4 [13:00:31]MH_SAM_APDU [13:00:31]CAPDU: 80 0D 03 02 [13:00:31]Write to MH i2c: E2 08 00 BE 06 80 0D 03 02 00 00 00 00 3F [13:00:31]Write i2c OK [13:00:31]MH_I2C_Read... [13:00:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:31]Read from MH i2c: E2 [13:00:31]MH_I2C_Read... [13:00:31]Read from MH i2c: E2 0B 00 [13:00:31]MH_I2C_Read... [13:00:31]Read from MH i2c: E2 0B 00 BE 06 00 59 0F 36 51 CC CD CD 35 90 00 CA [13:00:31]RAPDU: 59 0F 36 51 CC CD CD 35 90 00 [13:00:31]wFMCommunicate OK [13:00:31]SAM_PROTO_SignData done [13:00:31]FM_MakeSignedData done [13:00:31]CreateOFDProtocolMessage [13:00:31]wFMCommunicate request_size=4 [13:00:31]MH_SAM_APDU [13:00:31]CAPDU: 80 11 00 00 [13:00:31]Write to MH i2c: E2 08 00 BF 06 80 11 00 00 00 00 00 00 3F [13:00:31]Write i2c OK [13:00:31]MH_I2C_Read... [13:00:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:31]Read from MH i2c: E2 [13:00:31]MH_I2C_Read... [13:00:31]Read from MH i2c: E2 17 00 [13:00:31]MH_I2C_Read... [13:00:31]Read from MH i2c: E2 17 00 BF 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9A [13:00:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:00:31]wFMCommunicate OK [13:00:31]CreateOFDProtocolMessage done [13:00:31]OFDSenderStorePacket 118166 [13:00:31]StoreOFDPacket docnum=118166 [13:00:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 AB BB 04 01 17 7F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 4D 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4E EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 EB 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 6F EF A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 96 CD 01 00 35 04 06 00 86 6D BA AE 1F 93 59 0F 36 51 CC CD CD 35 [13:00:31]CheckFolder [13:00:31]dirname=/storage/ofd_packets [13:00:31]CheckFolder done [13:00:31]ProducePacketName [13:00:31]name=ofd_packets/00118166 [13:00:31]NVStorageSaveData ofd_packets/00118166 [13:00:31]File name is /storage/ofd_packets/00118166 [13:00:31]Write 298 bytes [13:00:31]NVStorageSaveData done [13:00:31]OFDSenderStorePacket done [13:00:31]KKMCreateOFDPacket done [13:00:31]NVStorageSaveData kkm_last_timestamp [13:00:31]File name is /storage/kkm_last_timestamp [13:00:31]Write 4 bytes [13:00:31]NVStorageSaveData done [13:00:31]ExternCall_PrintAddStr [13:00:31]wPrintStart [13:00:31]Write to MH i2c: 01 00 00 C0 06 C6 [13:00:31]Write i2c OK [13:00:31]MH_I2C_Read... [13:00:31]Read from MH i2c: 01 [13:00:31]MH_I2C_Read... [13:00:31]Read from MH i2c: 01 07 00 [13:00:31]MH_I2C_Read... [13:00:31]Read from MH i2c: 01 07 00 C0 06 00 00 00 00 00 FF 0F DB [13:00:31]RasterBufferAndPrint [13:00:31]line Счет N : (1)949038 [13:00:31]line ИНН: 02508201610067 [13:00:31]line Контрольно-Кассовый Чек [13:00:31]line ПРОДАЖА [13:00:31]line ТРК (МРК, ГНК) : 64 [13:00:31]line Товар: 2710194800 [13:00:31]line ДТ-К-5 [13:00:31]line 85.310 * 76.20 [13:00:31]line = 6500.62 [13:00:31]line НДС 12% НСП 1% [13:00:31]line > о реализуемом товаре [13:00:31]line ОКРУГЛЕНИЕ: -0.62 [13:00:31]line ИТОГО: 6500.00 [13:00:31]line НСП 1% : 57.53 [13:00:31]line НДС 12% : 690.33 [13:00:31]line Наличными: 0.00 [13:00:31]line Безнал.: 6500.00 [13:00:31]line Место: АЗС № 134 "Партнер Нефть" [13:00:31]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:00:31]line СНО: Общий режим [13:00:31]line Чек 109 27.07.2024 13:00 [13:00:31]line Смена: 432 ФФД: 1.0 [13:00:31]line ЗНМ: 0300000044 [13:00:31]line РНМ: 0000000000092660 [13:00:31]line Версия ККМ: 001 [13:00:31]line Платежная система: O! деньги [13:00:31]line ФМ: 0000000000874939 [13:00:31]line ФД: 118166 [13:00:31]line ФПД: 147805841530771 [13:00:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T130031&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118166&fm=147805841530771&tin=02508201610067®Number=0000000000092660&sum=650000 [13:00:31]OFD Sender: Processing packet 118166 [packets to send 85, broken 84] [13:00:31]ProducePacketName [13:00:31]name=ofd_packets/00118166 [13:00:31]OFD Sender: To server: pG, [13:00:31]CommunicateWithHost lk.salyk.kg:30040 [13:00:31]ConnectInit lk.salyk.kg [13:00:31]written 0, free lines is 4095 [13:00:31]Connected sock=10 [13:00:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 AB BB 04 01 17 7F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 4D 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4E EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 EB 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 6F EF A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 96 CD 01 00 35 04 06 00 86 6D BA AE 1F 93 59 0F 36 51 CC CD CD 35 [13:00:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 FD 09 47 00 20 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 96 CD 01 00 F4 03 04 00 01 9D A4 66 B6 04 01 00 00 7F 61 86 06 40 D9 F3 5B [13:00:32]CommunicateWithHost err = 0 [13:00:32]CheckOFDResponse [13:00:32]1017 (14) - 77093643461234 [13:00:32]1041 (16) - 0000000000874939 [13:00:32]1040 (4) - 118166 [13:00:32]1012 (4) - 27.07.2024 07:08 [13:00:32]1206 (1) - 0 [13:00:32]OFD Sender: Remove packet 118166 [13:00:32]ProducePacketName [13:00:32]name=ofd_packets/00118166 [13:00:32]NVStorageDeleteData [13:00:32]Write to MH i2c: 01 00 00 EA 06 F0 [13:00:32]Write i2c OK [13:00:32]MH_I2C_Read... [13:00:32]Read from MH i2c: 01 [13:00:32]MH_I2C_Read... [13:00:32]Read from MH i2c: 01 07 00 [13:00:32]MH_I2C_Read... [13:00:32]Read from MH i2c: 01 07 00 EA 06 00 00 00 00 00 F0 0C F3 [13:00:32]RasterBufferAndPrint [13:00:32]line [13:00:32]line [13:00:32]line [13:00:32]line [13:00:32]line [13:00:32]written 0, free lines is 3318 [13:00:32]MH_Cut [13:00:32]Write to MH i2c: D1 01 00 F1 06 01 C9 [13:00:32]Write i2c OK [13:00:32]MH_I2C_Read... [13:00:32]Read from MH i2c: D1 [13:00:32]MH_I2C_Read... [13:00:32]Read from MH i2c: D1 01 00 [13:00:32]MH_I2C_Read... [13:00:32]Read from MH i2c: D1 01 00 F1 06 00 C8 [13:00:32]Write to MH i2c: 01 00 00 F2 06 F8 [13:00:32]Write i2c OK [13:00:32]MH_I2C_Read... [13:00:32]OFD Sender: No OFD packet to send [13:00:32]*** Cut start [13:00:32]*** Partial cut [13:00:32]*** CUTSNS_PIN = 1 [13:00:33]*** CUTSNS_PIN = 0 [13:00:33]*** Brake cut motor [13:00:33]Read from MH i2c: 01 [13:00:33]MH_I2C_Read... [13:00:33]*** Stop cut motor [13:00:33]*** Cut end [13:00:33]Read from MH i2c: 01 07 00 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: 01 07 00 F2 06 00 00 00 00 00 FF 0F 0D [13:00:33]process_action close_receipt done [13:00:33]requested_data is exist [13:00:33]produce_requested_data [13:00:33]requested_item fm.sn is exist - process it [13:00:33]wFMCommunicate request_size=4 [13:00:33]MH_SAM_APDU [13:00:33]CAPDU: 80 11 00 00 [13:00:33]Write to MH i2c: E2 08 00 F3 06 80 11 00 00 00 00 00 00 73 [13:00:33]Write i2c OK [13:00:33]MH_I2C_Read... [13:00:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:33]Read from MH i2c: E2 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 17 00 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 17 00 F3 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CE [13:00:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:00:33]wFMCommunicate OK [13:00:33]requested_item fd.num is exist - process it [13:00:33]SAM_PROTO_GetFieldsCounters [13:00:33]wFMCommunicate request_size=4 [13:00:33]MH_SAM_APDU [13:00:33]CAPDU: 80 13 00 00 [13:00:33]Write to MH i2c: E2 08 00 F4 06 80 13 00 00 00 00 00 00 76 [13:00:33]Write i2c OK [13:00:33]MH_I2C_Read... [13:00:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:33]Read from MH i2c: E2 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 62 00 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 62 00 F4 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 96 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [13:00:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 96 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:00:33]wFMCommunicate OK [13:00:33]SAM_PROTO_GetFieldsCounters done [13:00:33]requested_item shift.num is exist - process it [13:00:33]requested_item shift.opened is exist - process it [13:00:33]req_shift_opened [13:00:33]FM_GetShiftState [13:00:33]SAM_PROTO_GetShiftState [13:00:33]wFMCommunicate request_size=4 [13:00:33]MH_SAM_APDU [13:00:33]CAPDU: 80 13 01 00 [13:00:33]Write to MH i2c: E2 08 00 F5 06 80 13 01 00 00 00 00 00 78 [13:00:33]Write i2c OK [13:00:33]MH_I2C_Read... [13:00:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:33]Read from MH i2c: E2 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 0E 00 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 0E 00 F5 06 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 05 [13:00:33]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [13:00:33]wFMCommunicate OK [13:00:33]SAM_PROTO_GetShiftState done [13:00:33]FM_GetShiftState done [13:00:33]req_shift_opened done [13:00:33]requested_item shift.open_date is exist - process it [13:00:33]req_shift_open_date [13:00:33]req_shift_open_date done [13:00:33]produce_requested_data done [13:00:33]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118166,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [13:00:33]process_action_free close_receipt [13:00:33]json_value_free [13:00:33]json_value_free done [13:00:33]process_json_proto returns [13:00:33]Send response to host [13:00:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118166,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [13:00:33]free response buf [13:00:33]execute_script done [13:00:33]execute_script returns [13:00:33]free content buf [13:00:33]Sock 9.Close socket [13:00:33]Sock 9.Thread stoped [13:00:37]OFD Sender: No OFD packet to send [13:00:42]OFD Sender: No OFD packet to send [13:00:47]OFD Sender: No OFD packet to send [13:00:52]OFD Sender: No OFD packet to send [13:00:57]OFD Sender: No OFD packet to send [13:01:02]OFD Sender: No OFD packet to send [13:01:07]OFD Sender: No OFD packet to send [13:01:12]OFD Sender: No OFD packet to send [13:01:17]OFD Sender: No OFD packet to send [13:01:22]OFD Sender: No OFD packet to send [13:01:27]OFD Sender: No OFD packet to send [13:01:32]OFD Sender: No OFD packet to send [13:01:37]OFD Sender: No OFD packet to send [13:01:42]OFD Sender: No OFD packet to send [13:01:47]OFD Sender: No OFD packet to send [13:01:52]OFD Sender: No OFD packet to send [13:01:57]OFD Sender: No OFD packet to send [13:02:02]OFD Sender: No OFD packet to send [13:02:07]OFD Sender: No OFD packet to send [13:02:12]OFD Sender: No OFD packet to send [13:02:17]OFD Sender: No OFD packet to send [13:02:22]OFD Sender: No OFD packet to send [13:02:27]OFD Sender: No OFD packet to send [13:02:32]OFD Sender: No OFD packet to send [13:02:37]OFD Sender: No OFD packet to send [13:02:42]OFD Sender: No OFD packet to send [13:02:47]OFD Sender: No OFD packet to send [13:02:52]OFD Sender: No OFD packet to send [13:02:57]OFD Sender: No OFD packet to send [13:03:02]OFD Sender: No OFD packet to send [13:03:07]OFD Sender: No OFD packet to send [13:03:12]OFD Sender: No OFD packet to send [13:03:17]OFD Sender: No OFD packet to send [13:03:22]OFD Sender: No OFD packet to send [13:03:27]OFD Sender: No OFD packet to send [13:03:32]OFD Sender: No OFD packet to send [13:03:37]OFD Sender: No OFD packet to send [13:03:42]OFD Sender: No OFD packet to send [13:03:47]OFD Sender: No OFD packet to send [13:03:52]OFD Sender: No OFD packet to send [13:03:57]OFD Sender: No OFD packet to send [13:04:02]OFD Sender: No OFD packet to send [13:04:07]OFD Sender: No OFD packet to send [13:04:12]OFD Sender: No OFD packet to send [13:04:17]OFD Sender: No OFD packet to send [13:04:22]OFD Sender: No OFD packet to send [13:04:27]OFD Sender: No OFD packet to send [13:04:32]OFD Sender: No OFD packet to send [13:04:37]OFD Sender: No OFD packet to send [13:04:42]OFD Sender: No OFD packet to send [13:04:47]OFD Sender: No OFD packet to send [13:04:52]OFD Sender: No OFD packet to send [13:04:57]OFD Sender: No OFD packet to send [13:05:02]OFD Sender: No OFD packet to send [13:05:07]OFD Sender: No OFD packet to send [13:05:12]OFD Sender: No OFD packet to send [13:05:17]OFD Sender: No OFD packet to send [13:05:22]OFD Sender: No OFD packet to send [13:05:27]OFD Sender: No OFD packet to send [13:05:32]OFD Sender: No OFD packet to send [13:05:37]OFD Sender: No OFD packet to send [13:05:42]OFD Sender: No OFD packet to send [13:05:47]OFD Sender: No OFD packet to send [13:05:52]OFD Sender: No OFD packet to send [13:05:57]OFD Sender: No OFD packet to send [13:06:02]OFD Sender: No OFD packet to send [13:06:07]OFD Sender: No OFD packet to send [13:06:12]OFD Sender: No OFD packet to send [13:06:17]OFD Sender: No OFD packet to send [13:06:22]OFD Sender: No OFD packet to send [13:06:27]OFD Sender: No OFD packet to send [13:06:32]OFD Sender: No OFD packet to send [13:06:37]OFD Sender: No OFD packet to send [13:06:42]OFD Sender: No OFD packet to send [13:06:47]OFD Sender: No OFD packet to send [13:06:52]OFD Sender: No OFD packet to send [13:06:57]OFD Sender: No OFD packet to send [13:07:03]OFD Sender: No OFD packet to send [13:07:08]OFD Sender: No OFD packet to send [13:07:13]OFD Sender: No OFD packet to send [13:07:18]OFD Sender: No OFD packet to send [13:07:23]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:08:03]OFD Sender: No OFD packet to send [13:08:07]accept exits with 7 [13:08:07]New connection [13:08:07]New thread 3067415908 created [13:08:07]Thread 3067272548 joined [13:08:07]Waiting for new connection... [13:08:07] Sock 7.Parse request [13:08:07]Sock 7.Check first char [13:08:07]Sock 7.First char is OK [13:08:07]request: POST /json_proto HTTP/1.0 [13:08:07]Method: POST [13:08:07]URL: /json_proto [13:08:07]Method is POST - this is cgi request [13:08:07]url: /json_proto [13:08:07]query_string will be loaded in cgi processing [13:08:07]execute_cgi json_proto POST (null) [13:08:07]execute_cgi path=json_proto method=POST [13:08:07]POST find Content-Length [13:08:07]Host: 172.17.45.7:8080 [13:08:07]Content-Length: 679 [13:08:07]Content-Type: application/json [13:08:07] [13:08:07]POST finish read [13:08:07]Found Content-Length = 679 [13:08:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:07]execute_script... [13:08: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)949040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:07]POST & json_proto [13:08:07]process_json_proto [13:08:07]json parsed OK: [13:08:07]protocol is kg_v1.0 [13:08:07]action value=close_receipt [13:08:07]process_action close_receipt [13:08:07]cmd_close_receipt [13:08:07]MH_GetDate [13:08:07]Write to MH i2c: F0 00 00 F6 06 EB [13:08:07]Write i2c OK [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: F0 [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: F0 09 00 [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: F0 09 00 F6 06 00 38 F1 A4 66 90 0F 3E 66 6A [13:08:07]GetLastDocTimeStamp 1722085231 [13:08:07]current date 1722085688 [13:08:07]FM_GetShiftState [13:08:07]SAM_PROTO_GetShiftState [13:08:07]wFMCommunicate request_size=4 [13:08:07]MH_SAM_APDU [13:08:07]CAPDU: 80 13 01 00 [13:08:07]Write to MH i2c: E2 08 00 F7 06 80 13 01 00 00 00 00 00 7A [13:08:07]Write i2c OK [13:08:07]MH_I2C_Read... [13:08:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:07]Read from MH i2c: E2 [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: E2 0E 00 [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: E2 0E 00 F7 06 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 07 [13:08:07]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [13:08:07]wFMCommunicate OK [13:08:07]SAM_PROTO_GetShiftState done [13:08:07]FM_GetShiftState done [13:08:07]opened in 1722038845 [13:08:07]opened+sec_in_day 1722125245 [13:08:07]quantity*price = 100050 [13:08:07]sum+1 = 100052 [13:08:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 110 27.07.2024 13:08 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118167 ФПД: 255679496356783 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T130808&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118167&fm=255679496356783&tin=02508201610067®Number=0000000000092660&sum=100000 [13:08:08]StoreToDocumentArchive [13:08:08]shift 432 fd 118167 [13:08:08]save to /storage/0432/doc_00118167 [13:08:08]save last doc name /storage/0432/doc_00118167 to /storage/kkm_last_doc_name [13:08:08]save OK [13:08:08]Clear old archive folders... [13:08:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:08:08]tlvbuf is 00384230 [13:08:08]SAM_PROTO_ClearQueue [13:08:08]wFMCommunicate request_size=4 [13:08:08]MH_SAM_APDU [13:08:08]CAPDU: 80 09 00 00 [13:08:08]Write to MH i2c: E2 08 00 04 07 80 09 00 00 00 00 00 00 7D [13:08:08]Write i2c OK [13:08:08]MH_I2C_Read... [13:08:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:08:08]Read from MH i2c: E2 [13:08:08]MH_I2C_Read... [13:08:08]Read from MH i2c: E2 03 00 [13:08:08]MH_I2C_Read... [13:08:08]Read from MH i2c: E2 03 00 04 07 00 90 00 7F [13:08:08]RAPDU: 90 00 [13:08:08]wFMCommunicate OK [13:08:08]SAM_PROTO_ClearQueue done [13:08:08]KKMCreateOFDPacket [13:08:08]OFDProtocolAddRootSTLVToBuf [13:08:08]FM_MakeSignedData [13:08:08]FM_MakeSignedData [13:08:08]SAM_PROTO_SignData [13:08:08]wFMCommunicate request_size=4 [13:08:08]MH_SAM_APDU [13:08:08]CAPDU: 80 0D 01 02 [13:08:08]Write to MH i2c: E2 08 00 05 07 80 0D 01 02 00 00 00 00 85 [13:08:08]Write i2c OK [13:08:08]MH_I2C_Read... [13:08:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:08:08]Read from MH i2c: E2 [13:08:08]MH_I2C_Read... [13:08:08]Read from MH i2c: E2 03 00 [13:08:08]MH_I2C_Read... [13:08:08]Read from MH i2c: E2 03 00 05 07 00 90 00 80 [13:08:08]RAPDU: 90 00 [13:08:08]wFMCommunicate OK [13:08:08]wFMCommunicate request_size=255 [13:08:08]MH_SAM_APDU [13:08: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 38 F1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 97 CD 01 00 35 04 06 00 E8 8A 05 8E [13:08:08]Write to MH i2c: E2 02 01 06 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 38 F1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 97 CD 01 00 35 04 06 00 E8 8A 05 8E 00 00 D1 [13:08:08]Write i2c OK [13:08:08]MH_I2C_Read... [13:08:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:09]Read from MH i2c: E2 [13:08:09]MH_I2C_Read... [13:08:09]Read from MH i2c: E2 03 00 [13:08:09]MH_I2C_Read... [13:08:09]Read from MH i2c: E2 03 00 06 07 00 90 00 81 [13:08:09]RAPDU: 90 00 [13:08:09]wFMCommunicate OK [13:08:09]wFMCommunicate request_size=7 [13:08:09]MH_SAM_APDU [13:08:09]CAPDU: 80 0D 02 02 02 83 AF [13:08:09]Write to MH i2c: E2 0A 00 07 07 80 0D 02 02 02 00 83 AF 00 00 BE [13:08:09]Write i2c OK [13:08:09]MH_I2C_Read... [13:08:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:09]Read from MH i2c: E2 [13:08:09]MH_I2C_Read... [13:08:09]Read from MH i2c: E2 03 00 [13:08:09]MH_I2C_Read... [13:08:09]Read from MH i2c: E2 03 00 07 07 00 90 00 82 [13:08:09]RAPDU: 90 00 [13:08:09]wFMCommunicate OK [13:08:09]wFMCommunicate request_size=4 [13:08:09]MH_SAM_APDU [13:08:09]CAPDU: 80 0D 03 02 [13:08:09]Write to MH i2c: E2 08 00 08 07 80 0D 03 02 00 00 00 00 8A [13:08:09]Write i2c OK [13:08:09]MH_I2C_Read... [13:08:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:08:09]Read from MH i2c: E2 [13:08:09]MH_I2C_Read... [13:08:09]Read from MH i2c: E2 0B 00 [13:08:09]MH_I2C_Read... [13:08:09]Read from MH i2c: E2 0B 00 08 07 00 50 BA 60 8B B1 5C EF 57 90 00 D3 [13:08:09]RAPDU: 50 BA 60 8B B1 5C EF 57 90 00 [13:08:09]wFMCommunicate OK [13:08:09]SAM_PROTO_SignData done [13:08:09]FM_MakeSignedData done [13:08:09]CreateOFDProtocolMessage [13:08:09]wFMCommunicate request_size=4 [13:08:09]MH_SAM_APDU [13:08:09]CAPDU: 80 11 00 00 [13:08:09]Write to MH i2c: E2 08 00 09 07 80 11 00 00 00 00 00 00 8A [13:08:09]Write i2c OK [13:08:09]MH_I2C_Read... [13:08:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:09]Read from MH i2c: E2 [13:08:09]MH_I2C_Read... [13:08:09]Read from MH i2c: E2 17 00 [13:08:09]MH_I2C_Read... [13:08:09]Read from MH i2c: E2 17 00 09 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E5 [13:08:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:08:09]wFMCommunicate OK [13:08:09]CreateOFDProtocolMessage done [13:08:09]OFDSenderStorePacket 118167 [13:08:09]StoreOFDPacket docnum=118167 [13:08:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F0 BF 04 01 08 02 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 38 F1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 97 CD 01 00 35 04 06 00 E8 8A 05 8E 83 AF 50 BA 60 8B B1 5C EF 57 [13:08:09]CheckFolder [13:08:09]dirname=/storage/ofd_packets [13:08:09]CheckFolder done [13:08:09]ProducePacketName [13:08:09]name=ofd_packets/00118167 [13:08:09]NVStorageSaveData ofd_packets/00118167 [13:08:09]File name is /storage/ofd_packets/00118167 [13:08:09]Write 298 bytes [13:08:09]NVStorageSaveData done [13:08:09]OFDSenderStorePacket done [13:08:09]KKMCreateOFDPacket done [13:08:09]NVStorageSaveData kkm_last_timestamp [13:08:09]File name is /storage/kkm_last_timestamp [13:08:09]Write 4 bytes [13:08:09]NVStorageSaveData done [13:08:09]ExternCall_PrintAddStr [13:08:09]wPrintStart [13:08:09]Write to MH i2c: 01 00 00 0A 07 11 [13:08:09]Write i2c OK [13:08:09]MH_I2C_Read... [13:08:09]Read from MH i2c: 01 [13:08:09]MH_I2C_Read... [13:08:09]Read from MH i2c: 01 07 00 [13:08:09]MH_I2C_Read... [13:08:09]Read from MH i2c: 01 07 00 0A 07 00 00 00 00 00 FF 0F 26 [13:08:09]RasterBufferAndPrint [13:08:09]line Счет N : (1)949040 [13:08:09]line ИНН: 02508201610067 [13:08:09]line Контрольно-Кассовый Чек [13:08:09]line ПРОДАЖА [13:08:09]line ТРК (МРК, ГНК) : 44 [13:08:09]line Товар: 2710194800 [13:08:09]line ДТ-К-5 [13:08:09]line 13.130 * 76.20 [13:08:09]line = 1000.51 [13:08:09]line НДС 12% НСП 1% [13:08:09]line > о реализуемом товаре [13:08:09]line ОКРУГЛЕНИЕ: -0.51 [13:08:09]line ИТОГО: 1000.00 [13:08:09]line Внесено: 1000.00 [13:08:09]line СДАЧА: 0.00 [13:08:09]line НСП 1% : 8.85 [13:08:09]line НДС 12% : 106.25 [13:08:09]line Наличными: 1000.00 [13:08:09]line Безнал.: 0.00 [13:08:09]line Место: АЗС № 134 "Партнер Нефть" [13:08:09]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:08:09]line СНО: Общий режим [13:08:09]line Чек 110 27.07.2024 13:08 [13:08:09]line Смена: 432 ФФД: 1.0 [13:08:09]line ЗНМ: 0300000044 [13:08:09]line РНМ: 0000000000092660 [13:08:09]line Версия ККМ: 001 [13:08:09]line ФМ: 0000000000874939 [13:08:09]line ФД: 118167 [13:08:09]line ФПД: 255679496356783 [13:08:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T130808&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118167&fm=255679496356783&tin=02508201610067®Number=0000000000092660&sum=100000 [13:08:09]OFD Sender: Processing packet 118167 [packets to send 85, broken 84] [13:08:09]ProducePacketName [13:08:09]name=ofd_packets/00118167 [13:08:09]OFD Sender: To server: pG, [13:08:09]CommunicateWithHost lk.salyk.kg:30040 [13:08:09]ConnectInit lk.salyk.kg [13:08:09]written 0, free lines is 4095 [13:08:09]Connected sock=10 [13:08:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F0 BF 04 01 08 02 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 38 F1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 97 CD 01 00 35 04 06 00 E8 8A 05 8E 83 AF 50 BA 60 8B B1 5C EF 57 [13:08:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 CD 63 47 00 13 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 97 CD 01 00 F4 03 04 00 CB 9E A4 66 B6 04 01 00 00 93 16 FF 34 D4 84 34 CA [13:08:09]CommunicateWithHost err = 0 [13:08:09]CheckOFDResponse [13:08:09]1017 (14) - 77093643461234 [13:08:09]1041 (16) - 0000000000874939 [13:08:09]1040 (4) - 118167 [13:08:09]1012 (4) - 27.07.2024 07:16 [13:08:09]1206 (1) - 0 [13:08:09]OFD Sender: Remove packet 118167 [13:08:09]ProducePacketName [13:08:09]name=ofd_packets/00118167 [13:08:09]NVStorageDeleteData [13:08:09]Write to MH i2c: 01 00 00 34 07 3B [13:08:09]Write i2c OK [13:08:09]MH_I2C_Read... [13:08:09]Read from MH i2c: 01 [13:08:09]MH_I2C_Read... [13:08:09]Read from MH i2c: 01 07 00 [13:08:09]MH_I2C_Read... [13:08:09]Read from MH i2c: 01 07 00 34 07 00 00 00 00 00 D6 0C 24 [13:08:09]RasterBufferAndPrint [13:08:09]line [13:08:09]line [13:08:09]line [13:08:09]line [13:08:09]line [13:08:09]written 0, free lines is 3295 [13:08:09]MH_Cut [13:08:09]Write to MH i2c: D1 01 00 3B 07 01 14 [13:08:09]Write i2c OK [13:08:09]MH_I2C_Read... [13:08:09]Read from MH i2c: D1 [13:08:09]MH_I2C_Read... [13:08:09]Read from MH i2c: D1 01 00 [13:08:09]MH_I2C_Read... [13:08:09]Read from MH i2c: D1 01 00 3B 07 00 13 [13:08:09]Write to MH i2c: 01 00 00 3C 07 43 [13:08:09]Write i2c OK [13:08:09]MH_I2C_Read... [13:08:10]OFD Sender: No OFD packet to send [13:08:10]*** Cut start [13:08:10]*** Partial cut [13:08:10]*** CUTSNS_PIN = 1 [13:08:10]*** CUTSNS_PIN = 0 [13:08:10]*** Brake cut motor [13:08:11]Read from MH i2c: 01 [13:08:11]MH_I2C_Read... [13:08:11]*** Stop cut motor [13:08:11]*** Cut end [13:08:11]Read from MH i2c: 01 07 00 [13:08:11]MH_I2C_Read... [13:08:11]Read from MH i2c: 01 07 00 3C 07 00 00 00 00 00 FF 0F 58 [13:08:11]process_action close_receipt done [13:08:11]requested_data is exist [13:08:11]produce_requested_data [13:08:11]requested_item fm.sn is exist - process it [13:08:11]wFMCommunicate request_size=4 [13:08:11]MH_SAM_APDU [13:08:11]CAPDU: 80 11 00 00 [13:08:11]Write to MH i2c: E2 08 00 3D 07 80 11 00 00 00 00 00 00 BE [13:08:11]Write i2c OK [13:08:11]MH_I2C_Read... [13:08:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:11]Read from MH i2c: E2 [13:08:11]MH_I2C_Read... [13:08:11]Read from MH i2c: E2 17 00 [13:08:11]MH_I2C_Read... [13:08:11]Read from MH i2c: E2 17 00 3D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 19 [13:08:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:08:11]wFMCommunicate OK [13:08:11]requested_item fd.num is exist - process it [13:08:11]SAM_PROTO_GetFieldsCounters [13:08:11]wFMCommunicate request_size=4 [13:08:11]MH_SAM_APDU [13:08:11]CAPDU: 80 13 00 00 [13:08:11]Write to MH i2c: E2 08 00 3E 07 80 13 00 00 00 00 00 00 C1 [13:08:11]Write i2c OK [13:08:11]MH_I2C_Read... [13:08:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:08:11]Read from MH i2c: E2 [13:08:11]MH_I2C_Read... [13:08:11]Read from MH i2c: E2 62 00 [13:08:11]MH_I2C_Read... [13:08:11]Read from MH i2c: E2 62 00 3E 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 97 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [13:08:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 97 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:08:11]wFMCommunicate OK [13:08:11]SAM_PROTO_GetFieldsCounters done [13:08:11]requested_item shift.num is exist - process it [13:08:11]requested_item shift.opened is exist - process it [13:08:11]req_shift_opened [13:08:11]FM_GetShiftState [13:08:11]SAM_PROTO_GetShiftState [13:08:11]wFMCommunicate request_size=4 [13:08:11]MH_SAM_APDU [13:08:11]CAPDU: 80 13 01 00 [13:08:11]Write to MH i2c: E2 08 00 3F 07 80 13 01 00 00 00 00 00 C3 [13:08:11]Write i2c OK [13:08:11]MH_I2C_Read... [13:08:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:11]Read from MH i2c: E2 [13:08:11]MH_I2C_Read... [13:08:11]Read from MH i2c: E2 0E 00 [13:08:11]MH_I2C_Read... [13:08:11]Read from MH i2c: E2 0E 00 3F 07 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 50 [13:08:11]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [13:08:11]wFMCommunicate OK [13:08:11]SAM_PROTO_GetShiftState done [13:08:11]FM_GetShiftState done [13:08:11]req_shift_opened done [13:08:11]requested_item shift.open_date is exist - process it [13:08:11]req_shift_open_date [13:08:11]req_shift_open_date done [13:08:11]produce_requested_data done [13:08:11]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118167,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [13:08:11]process_action_free close_receipt [13:08:11]json_value_free [13:08:11]json_value_free done [13:08:11]process_json_proto returns [13:08:11]Send response to host [13:08:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118167,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [13:08:11]free response buf [13:08:11]execute_script done [13:08:11]execute_script returns [13:08:11]free content buf [13:08:11]Sock 7.Close socket [13:08:11]Sock 7.Thread stoped [13:08:15]OFD Sender: No OFD packet to send [13:08:20]OFD Sender: No OFD packet to send [13:08:25]OFD Sender: No OFD packet to send [13:08:30]OFD Sender: No OFD packet to send [13:08:35]OFD Sender: No OFD packet to send [13:08:40]OFD Sender: No OFD packet to send [13:08:45]OFD Sender: No OFD packet to send [13:08:50]OFD Sender: No OFD packet to send [13:08:55]OFD Sender: No OFD packet to send [13:09:00]OFD Sender: No OFD packet to send [13:09:05]OFD Sender: No OFD packet to send [13:09:10]OFD Sender: No OFD packet to send [13:09:15]OFD Sender: No OFD packet to send [13:09:20]OFD Sender: No OFD packet to send [13:09:21]accept exits with 9 [13:09:21]New connection [13:09:21]New thread 3067272548 created [13:09:21]Thread 3067415908 joined [13:09:21]Waiting for new connection... [13:09:21] Sock 9.Parse request [13:09:21]Sock 9.Check first char [13:09:21]Sock 9.First char is OK [13:09:21]request: POST /json_proto HTTP/1.0 [13:09:21]Method: POST [13:09:21]URL: /json_proto [13:09:21]Method is POST - this is cgi request [13:09:21]url: /json_proto [13:09:21]query_string will be loaded in cgi processing [13:09:21]execute_cgi json_proto POST (null) [13:09:21]execute_cgi path=json_proto method=POST [13:09:21]POST find Content-Length [13:09:21]Host: 172.17.45.7:8080 [13:09:21]Content-Length: 682 [13:09:21]Content-Type: application/json [13:09:21] [13:09:21]POST finish read [13:09:21]Found Content-Length = 682 [13:09:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:21]execute_script... [13:09: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)949041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:21]POST & json_proto [13:09:21]process_json_proto [13:09:21]json parsed OK: [13:09:21]protocol is kg_v1.0 [13:09:21]action value=close_receipt [13:09:21]process_action close_receipt [13:09:21]cmd_close_receipt [13:09:21]MH_GetDate [13:09:21]Write to MH i2c: F0 00 00 40 07 36 [13:09:21]Write i2c OK [13:09:21]MH_I2C_Read... [13:09:21]Read from MH i2c: F0 [13:09:21]MH_I2C_Read... [13:09:21]Read from MH i2c: F0 09 00 [13:09:21]MH_I2C_Read... [13:09:21]Read from MH i2c: F0 09 00 40 07 00 82 F1 A4 66 90 0F 3E 66 FF [13:09:21]GetLastDocTimeStamp 1722085688 [13:09:21]current date 1722085762 [13:09:21]FM_GetShiftState [13:09:21]SAM_PROTO_GetShiftState [13:09:21]wFMCommunicate request_size=4 [13:09:21]MH_SAM_APDU [13:09:21]CAPDU: 80 13 01 00 [13:09:21]Write to MH i2c: E2 08 00 41 07 80 13 01 00 00 00 00 00 C5 [13:09:21]Write i2c OK [13:09:21]MH_I2C_Read... [13:09:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:21]Read from MH i2c: E2 [13:09:21]MH_I2C_Read... [13:09:21]Read from MH i2c: E2 0E 00 [13:09:21]MH_I2C_Read... [13:09:21]Read from MH i2c: E2 0E 00 41 07 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 52 [13:09:21]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [13:09:21]wFMCommunicate OK [13:09:21]SAM_PROTO_GetShiftState done [13:09:21]FM_GetShiftState done [13:09:21]opened in 1722038845 [13:09:21]opened+sec_in_day 1722125245 [13:09:21]quantity*price = 150032 [13:09:21]sum+1 = 150033 [13:09:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 111 27.07.2024 13:09 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118168 ФПД: 189879720977327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T130922&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118168&fm=189879720977327&tin=02508201610067®Number=0000000000092660&sum=150000 [13:09:22]StoreToDocumentArchive [13:09:22]shift 432 fd 118168 [13:09:22]save to /storage/0432/doc_00118168 [13:09:22]save last doc name /storage/0432/doc_00118168 to /storage/kkm_last_doc_name [13:09:22]save OK [13:09:22]Clear old archive folders... [13:09:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:09:22]tlvbuf is 003407F0 [13:09:22]SAM_PROTO_ClearQueue [13:09:22]wFMCommunicate request_size=4 [13:09:22]MH_SAM_APDU [13:09:22]CAPDU: 80 09 00 00 [13:09:22]Write to MH i2c: E2 08 00 4E 07 80 09 00 00 00 00 00 00 C7 [13:09:22]Write i2c OK [13:09:22]MH_I2C_Read... [13:09:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:22]Read from MH i2c: E2 [13:09:22]MH_I2C_Read... [13:09:22]Read from MH i2c: E2 03 00 [13:09:22]MH_I2C_Read... [13:09:22]Read from MH i2c: E2 03 00 4E 07 00 90 00 C9 [13:09:22]RAPDU: 90 00 [13:09:22]wFMCommunicate OK [13:09:22]SAM_PROTO_ClearQueue done [13:09:22]KKMCreateOFDPacket [13:09:22]OFDProtocolAddRootSTLVToBuf [13:09:22]FM_MakeSignedData [13:09:22]FM_MakeSignedData [13:09:22]SAM_PROTO_SignData [13:09:22]wFMCommunicate request_size=4 [13:09:22]MH_SAM_APDU [13:09:22]CAPDU: 80 0D 01 02 [13:09:22]Write to MH i2c: E2 08 00 4F 07 80 0D 01 02 00 00 00 00 CF [13:09:22]Write i2c OK [13:09:22]MH_I2C_Read... [13:09:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:22]Read from MH i2c: E2 [13:09:22]MH_I2C_Read... [13:09:22]Read from MH i2c: E2 03 00 [13:09:22]MH_I2C_Read... [13:09:22]Read from MH i2c: E2 03 00 4F 07 00 90 00 CA [13:09:22]RAPDU: 90 00 [13:09:22]wFMCommunicate OK [13:09:22]wFMCommunicate request_size=255 [13:09:22]MH_SAM_APDU [13:09:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 82 F1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 98 CD 01 00 35 04 06 00 AC [13:09:22]Write to MH i2c: E2 02 01 50 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 82 F1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 98 CD 01 00 35 04 06 00 AC 00 00 74 [13:09:22]Write i2c OK [13:09:22]MH_I2C_Read... [13:09:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:22]Read from MH i2c: E2 [13:09:22]MH_I2C_Read... [13:09:22]Read from MH i2c: E2 03 00 [13:09:22]MH_I2C_Read... [13:09:22]Read from MH i2c: E2 03 00 50 07 00 90 00 CB [13:09:22]RAPDU: 90 00 [13:09:22]wFMCommunicate OK [13:09:22]wFMCommunicate request_size=10 [13:09:22]MH_SAM_APDU [13:09:22]CAPDU: 80 0D 02 02 05 B1 D1 51 A3 AF [13:09:22]Write to MH i2c: E2 0D 00 51 07 80 0D 02 02 05 00 B1 D1 51 A3 AF 00 00 01 [13:09:22]Write i2c OK [13:09:22]MH_I2C_Read... [13:09:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:22]Read from MH i2c: E2 [13:09:22]MH_I2C_Read... [13:09:22]Read from MH i2c: E2 03 00 [13:09:22]MH_I2C_Read... [13:09:22]Read from MH i2c: E2 03 00 51 07 00 90 00 CC [13:09:22]RAPDU: 90 00 [13:09:22]wFMCommunicate OK [13:09:22]wFMCommunicate request_size=4 [13:09:22]MH_SAM_APDU [13:09:22]CAPDU: 80 0D 03 02 [13:09:22]Write to MH i2c: E2 08 00 52 07 80 0D 03 02 00 00 00 00 D4 [13:09:22]Write i2c OK [13:09:22]MH_I2C_Read... [13:09:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:22]Read from MH i2c: E2 [13:09:22]MH_I2C_Read... [13:09:22]Read from MH i2c: E2 0B 00 [13:09:22]MH_I2C_Read... [13:09:22]Read from MH i2c: E2 0B 00 52 07 00 0D 2E 2D 24 D2 77 B5 6A 90 00 C9 [13:09:22]RAPDU: 0D 2E 2D 24 D2 77 B5 6A 90 00 [13:09:22]wFMCommunicate OK [13:09:22]SAM_PROTO_SignData done [13:09:22]FM_MakeSignedData done [13:09:22]CreateOFDProtocolMessage [13:09:22]wFMCommunicate request_size=4 [13:09:22]MH_SAM_APDU [13:09:22]CAPDU: 80 11 00 00 [13:09:22]Write to MH i2c: E2 08 00 53 07 80 11 00 00 00 00 00 00 D4 [13:09:22]Write i2c OK [13:09:22]MH_I2C_Read... [13:09:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:22]Read from MH i2c: E2 [13:09:22]MH_I2C_Read... [13:09:22]Read from MH i2c: E2 17 00 [13:09:22]MH_I2C_Read... [13:09:22]Read from MH i2c: E2 17 00 53 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2F [13:09:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:09:22]wFMCommunicate OK [13:09:22]CreateOFDProtocolMessage done [13:09:22]OFDSenderStorePacket 118168 [13:09:22]StoreOFDPacket docnum=118168 [13:09:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 1B 31 07 01 C8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 82 F1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 98 CD 01 00 35 04 06 00 AC B1 D1 51 A3 AF 0D 2E 2D 24 D2 77 B5 6A [13:09:22]CheckFolder [13:09:22]dirname=/storage/ofd_packets [13:09:22]CheckFolder done [13:09:22]ProducePacketName [13:09:22]name=ofd_packets/00118168 [13:09:22]NVStorageSaveData ofd_packets/00118168 [13:09:22]File name is /storage/ofd_packets/00118168 [13:09:22]Write 301 bytes [13:09:22]NVStorageSaveData done [13:09:22]OFDSenderStorePacket done [13:09:22]KKMCreateOFDPacket done [13:09:22]NVStorageSaveData kkm_last_timestamp [13:09:22]File name is /storage/kkm_last_timestamp [13:09:22]Write 4 bytes [13:09:22]NVStorageSaveData done [13:09:22]ExternCall_PrintAddStr [13:09:22]wPrintStart [13:09:22]Write to MH i2c: 01 00 00 54 07 5B [13:09:22]Write i2c OK [13:09:22]MH_I2C_Read... [13:09:22]Read from MH i2c: 01 [13:09:22]MH_I2C_Read... [13:09:22]Read from MH i2c: 01 07 00 [13:09:22]MH_I2C_Read... [13:09:22]Read from MH i2c: 01 07 00 54 07 00 00 00 00 00 FF 0F 70 [13:09:22]RasterBufferAndPrint [13:09:22]line Счет N : (1)949041 [13:09:22]line ИНН: 02508201610067 [13:09:22]line Контрольно-Кассовый Чек [13:09:22]line ПРОДАЖА [13:09:22]line ТРК (МРК, ГНК) : 33 [13:09:22]line Товар: 2710124500 [13:09:22]line Аи-95-К-3 [13:09:22]line 20.220 * 74.20 [13:09:22]line = 1500.32 [13:09:22]line НДС 12% НСП 1% [13:09:22]line > о реализуемом товаре [13:09:22]line ОКРУГЛЕНИЕ: -0.32 [13:09:22]line ИТОГО: 1500.00 [13:09:22]line Внесено: 1500.00 [13:09:22]line СДАЧА: 0.00 [13:09:22]line НСП 1% : 13.28 [13:09:22]line НДС 12% : 159.33 [13:09:22]line Наличными: 1500.00 [13:09:22]line Безнал.: 0.00 [13:09:22]line Место: АЗС № 134 "Партнер Нефть" [13:09:22]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:09:22]line СНО: Общий режим [13:09:22]line Чек 111 27.07.2024 13:09 [13:09:22]line Смена: 432 ФФД: 1.0 [13:09:22]line ЗНМ: 0300000044 [13:09:22]line РНМ: 0000000000092660 [13:09:22]line Версия ККМ: 001 [13:09:22]line ФМ: 0000000000874939 [13:09:22]line ФД: 118168 [13:09:22]line ФПД: 189879720977327 [13:09:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T130922&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118168&fm=189879720977327&tin=02508201610067®Number=0000000000092660&sum=150000 [13:09:23]OFD Sender: Processing packet 118168 [packets to send 85, broken 84] [13:09:23]ProducePacketName [13:09:23]name=ofd_packets/00118168 [13:09:23]OFD Sender: To server: pG, [13:09:23]CommunicateWithHost lk.salyk.kg:30040 [13:09:23]ConnectInit lk.salyk.kg [13:09:23]written 0, free lines is 4095 [13:09:23]Connected sock=10 [13:09:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 1B 31 07 01 C8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 82 F1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 98 CD 01 00 35 04 06 00 AC B1 D1 51 A3 AF 0D 2E 2D 24 D2 77 B5 6A [13:09:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 00 91 47 00 C2 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 98 CD 01 00 F4 03 04 00 15 9F A4 66 B6 04 01 00 00 F9 E1 77 F2 AE E3 76 89 [13:09:23]CommunicateWithHost err = 0 [13:09:23]CheckOFDResponse [13:09:23]1017 (14) - 77093643461234 [13:09:23]1041 (16) - 0000000000874939 [13:09:23]1040 (4) - 118168 [13:09:23]1012 (4) - 27.07.2024 07:17 [13:09:23]1206 (1) - 0 [13:09:23]OFD Sender: Remove packet 118168 [13:09:23]ProducePacketName [13:09:23]name=ofd_packets/00118168 [13:09:23]NVStorageDeleteData [13:09:23]Write to MH i2c: 01 00 00 7E 07 85 [13:09:23]Write i2c OK [13:09:23]MH_I2C_Read... [13:09:23]Read from MH i2c: 01 [13:09:23]MH_I2C_Read... [13:09:23]Read from MH i2c: 01 07 00 [13:09:23]MH_I2C_Read... [13:09:23]Read from MH i2c: 01 07 00 7E 07 00 00 00 00 00 E5 0C 7D [13:09:23]RasterBufferAndPrint [13:09:23]line [13:09:23]line [13:09:23]line [13:09:23]line [13:09:23]line [13:09:23]written 0, free lines is 3306 [13:09:23]MH_Cut [13:09:23]Write to MH i2c: D1 01 00 85 07 01 5E [13:09:23]Write i2c OK [13:09:23]MH_I2C_Read... [13:09:23]Read from MH i2c: D1 [13:09:23]MH_I2C_Read... [13:09:23]Read from MH i2c: D1 01 00 [13:09:23]MH_I2C_Read... [13:09:23]Read from MH i2c: D1 01 00 85 07 00 5D [13:09:23]Write to MH i2c: 01 00 00 86 07 8D [13:09:23]Write i2c OK [13:09:23]MH_I2C_Read... [13:09:24]OFD Sender: No OFD packet to send [13:09:24]*** Cut start [13:09:24]*** Partial cut [13:09:24]*** CUTSNS_PIN = 1 [13:09:24]*** CUTSNS_PIN = 0 [13:09:24]*** Brake cut motor [13:09:24]Read from MH i2c: 01 [13:09:24]MH_I2C_Read... [13:09:24]*** Stop cut motor [13:09:24]*** Cut end [13:09:24]Read from MH i2c: 01 07 00 [13:09:24]MH_I2C_Read... [13:09:24]Read from MH i2c: 01 07 00 86 07 00 00 00 00 00 FF 0F A2 [13:09:24]process_action close_receipt done [13:09:24]requested_data is exist [13:09:24]produce_requested_data [13:09:24]requested_item fm.sn is exist - process it [13:09:24]wFMCommunicate request_size=4 [13:09:24]MH_SAM_APDU [13:09:24]CAPDU: 80 11 00 00 [13:09:24]Write to MH i2c: E2 08 00 87 07 80 11 00 00 00 00 00 00 08 [13:09:24]Write i2c OK [13:09:24]MH_I2C_Read... [13:09:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:25]Read from MH i2c: E2 [13:09:25]MH_I2C_Read... [13:09:25]Read from MH i2c: E2 17 00 [13:09:25]MH_I2C_Read... [13:09:25]Read from MH i2c: E2 17 00 87 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 63 [13:09:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:09:25]wFMCommunicate OK [13:09:25]requested_item fd.num is exist - process it [13:09:25]SAM_PROTO_GetFieldsCounters [13:09:25]wFMCommunicate request_size=4 [13:09:25]MH_SAM_APDU [13:09:25]CAPDU: 80 13 00 00 [13:09:25]Write to MH i2c: E2 08 00 88 07 80 13 00 00 00 00 00 00 0B [13:09:25]Write i2c OK [13:09:25]MH_I2C_Read... [13:09:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:25]Read from MH i2c: E2 [13:09:25]MH_I2C_Read... [13:09:25]Read from MH i2c: E2 62 00 [13:09:25]MH_I2C_Read... [13:09:25]Read from MH i2c: E2 62 00 88 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 98 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [13:09:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 98 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:09:25]wFMCommunicate OK [13:09:25]SAM_PROTO_GetFieldsCounters done [13:09:25]requested_item shift.num is exist - process it [13:09:25]requested_item shift.opened is exist - process it [13:09:25]req_shift_opened [13:09:25]FM_GetShiftState [13:09:25]SAM_PROTO_GetShiftState [13:09:25]wFMCommunicate request_size=4 [13:09:25]MH_SAM_APDU [13:09:25]CAPDU: 80 13 01 00 [13:09:25]Write to MH i2c: E2 08 00 89 07 80 13 01 00 00 00 00 00 0D [13:09:25]Write i2c OK [13:09:25]MH_I2C_Read... [13:09:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:25]Read from MH i2c: E2 [13:09:25]MH_I2C_Read... [13:09:25]Read from MH i2c: E2 0E 00 [13:09:25]MH_I2C_Read... [13:09:25]Read from MH i2c: E2 0E 00 89 07 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 9A [13:09:25]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [13:09:25]wFMCommunicate OK [13:09:25]SAM_PROTO_GetShiftState done [13:09:25]FM_GetShiftState done [13:09:25]req_shift_opened done [13:09:25]requested_item shift.open_date is exist - process it [13:09:25]req_shift_open_date [13:09:25]req_shift_open_date done [13:09:25]produce_requested_data done [13:09:25]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118168,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [13:09:25]process_action_free close_receipt [13:09:25]json_value_free [13:09:25]json_value_free done [13:09:25]process_json_proto returns [13:09:25]Send response to host [13:09:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118168,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [13:09:25]free response buf [13:09:25]execute_script done [13:09:25]execute_script returns [13:09:25]free content buf [13:09:25]Sock 9.Close socket [13:09:25]Sock 9.Thread stoped [13:09:29]OFD Sender: No OFD packet to send [13:09:34]OFD Sender: No OFD packet to send [13:09:39]OFD Sender: No OFD packet to send [13:09:44]OFD Sender: No OFD packet to send [13:09:49]OFD Sender: No OFD packet to send [13:09:54]OFD Sender: No OFD packet to send [13:09:59]OFD Sender: No OFD packet to send [13:10:04]OFD Sender: No OFD packet to send [13:10:09]OFD Sender: No OFD packet to send [13:10:14]OFD Sender: No OFD packet to send [13:10:19]OFD Sender: No OFD packet to send [13:10:24]OFD Sender: No OFD packet to send [13:10:29]OFD Sender: No OFD packet to send [13:10:34]OFD Sender: No OFD packet to send [13:10:39]OFD Sender: No OFD packet to send [13:10:44]OFD Sender: No OFD packet to send [13:10:49]OFD Sender: No OFD packet to send [13:10:54]OFD Sender: No OFD packet to send [13:10:59]OFD Sender: No OFD packet to send [13:11:04]OFD Sender: No OFD packet to send [13:11:09]OFD Sender: No OFD packet to send [13:11:10]accept exits with 7 [13:11:10]New connection [13:11:10]New thread 3067415908 created [13:11:10]Thread 3067272548 joined [13:11:10]Waiting for new connection... [13:11:10] Sock 7.Parse request [13:11:10]Sock 7.Check first char [13:11:10]Sock 7.First char is OK [13:11:10]request: POST /json_proto HTTP/1.0 [13:11:10]Method: POST [13:11:10]URL: /json_proto [13:11:10]Method is POST - this is cgi request [13:11:10]url: /json_proto [13:11:10]query_string will be loaded in cgi processing [13:11:10]execute_cgi json_proto POST (null) [13:11:10]execute_cgi path=json_proto method=POST [13:11:10]POST find Content-Length [13:11:10]Host: 172.17.45.7:8080 [13:11:10]Content-Length: 682 [13:11:10]Content-Type: application/json [13:11:10] [13:11:10]POST finish read [13:11:10]Found Content-Length = 682 [13:11:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:11:10]execute_script... [13:11: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)949042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:11:10]POST & json_proto [13:11:10]process_json_proto [13:11:10]json parsed OK: [13:11:10]protocol is kg_v1.0 [13:11:10]action value=close_receipt [13:11:10]process_action close_receipt [13:11:10]cmd_close_receipt [13:11:10]MH_GetDate [13:11:10]Write to MH i2c: F0 00 00 8A 07 80 [13:11:10]Write i2c OK [13:11:10]MH_I2C_Read... [13:11:10]Read from MH i2c: F0 [13:11:10]MH_I2C_Read... [13:11:10]Read from MH i2c: F0 09 00 [13:11:10]MH_I2C_Read... [13:11:10]Read from MH i2c: F0 09 00 8A 07 00 EF F1 A4 66 90 0F 3E 66 B6 [13:11:10]GetLastDocTimeStamp 1722085762 [13:11:10]current date 1722085871 [13:11:10]FM_GetShiftState [13:11:10]SAM_PROTO_GetShiftState [13:11:10]wFMCommunicate request_size=4 [13:11:10]MH_SAM_APDU [13:11:10]CAPDU: 80 13 01 00 [13:11:10]Write to MH i2c: E2 08 00 8B 07 80 13 01 00 00 00 00 00 0F [13:11:10]Write i2c OK [13:11:10]MH_I2C_Read... [13:11:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:10]Read from MH i2c: E2 [13:11:10]MH_I2C_Read... [13:11:10]Read from MH i2c: E2 0E 00 [13:11:10]MH_I2C_Read... [13:11:10]Read from MH i2c: E2 0E 00 8B 07 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 9C [13:11:10]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [13:11:10]wFMCommunicate OK [13:11:10]SAM_PROTO_GetShiftState done [13:11:10]FM_GetShiftState done [13:11:10]opened in 1722038845 [13:11:10]opened+sec_in_day 1722125245 [13:11:10]quantity*price = 100005 [13:11:10]sum+1 = 100006 [13:11:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 112 27.07.2024 13:11 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118169 ФПД: 278809480269607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T131111&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118169&fm=278809480269607&tin=02508201610067®Number=0000000000092660&sum=100000 [13:11:11]StoreToDocumentArchive [13:11:11]shift 432 fd 118169 [13:11:11]save to /storage/0432/doc_00118169 [13:11:11]save last doc name /storage/0432/doc_00118169 to /storage/kkm_last_doc_name [13:11:11]save OK [13:11:11]Clear old archive folders... [13:11:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:11:11]tlvbuf is 0038EF90 [13:11:11]SAM_PROTO_ClearQueue [13:11:11]wFMCommunicate request_size=4 [13:11:11]MH_SAM_APDU [13:11:11]CAPDU: 80 09 00 00 [13:11:11]Write to MH i2c: E2 08 00 98 07 80 09 00 00 00 00 00 00 11 [13:11:11]Write i2c OK [13:11:11]MH_I2C_Read... [13:11:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:11]Read from MH i2c: E2 [13:11:11]MH_I2C_Read... [13:11:11]Read from MH i2c: E2 03 00 [13:11:11]MH_I2C_Read... [13:11:11]Read from MH i2c: E2 03 00 98 07 00 90 00 13 [13:11:11]RAPDU: 90 00 [13:11:11]wFMCommunicate OK [13:11:11]SAM_PROTO_ClearQueue done [13:11:11]KKMCreateOFDPacket [13:11:11]OFDProtocolAddRootSTLVToBuf [13:11:11]FM_MakeSignedData [13:11:11]FM_MakeSignedData [13:11:11]SAM_PROTO_SignData [13:11:11]wFMCommunicate request_size=4 [13:11:11]MH_SAM_APDU [13:11:11]CAPDU: 80 0D 01 02 [13:11:11]Write to MH i2c: E2 08 00 99 07 80 0D 01 02 00 00 00 00 19 [13:11:11]Write i2c OK [13:11:11]MH_I2C_Read... [13:11:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:11]Read from MH i2c: E2 [13:11:11]MH_I2C_Read... [13:11:11]Read from MH i2c: E2 03 00 [13:11:11]MH_I2C_Read... [13:11:11]Read from MH i2c: E2 03 00 99 07 00 90 00 14 [13:11:11]RAPDU: 90 00 [13:11:11]wFMCommunicate OK [13:11:11]wFMCommunicate request_size=255 [13:11:11]MH_SAM_APDU [13:11: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 EF F1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 99 CD 01 00 35 04 06 00 FD [13:11:11]Write to MH i2c: E2 02 01 9A 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 EF F1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 99 CD 01 00 35 04 06 00 FD 00 00 9B [13:11:11]Write i2c OK [13:11:11]MH_I2C_Read... [13:11:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:11]Read from MH i2c: E2 [13:11:11]MH_I2C_Read... [13:11:11]Read from MH i2c: E2 03 00 [13:11:11]MH_I2C_Read... [13:11:11]Read from MH i2c: E2 03 00 9A 07 00 90 00 15 [13:11:11]RAPDU: 90 00 [13:11:11]wFMCommunicate OK [13:11:11]wFMCommunicate request_size=10 [13:11:11]MH_SAM_APDU [13:11:11]CAPDU: 80 0D 02 02 05 93 64 08 0F 27 [13:11:11]Write to MH i2c: E2 0D 00 9B 07 80 0D 02 02 05 00 93 64 08 0F 27 00 00 5B [13:11:11]Write i2c OK [13:11:11]MH_I2C_Read... [13:11:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:11]Read from MH i2c: E2 [13:11:11]MH_I2C_Read... [13:11:11]Read from MH i2c: E2 03 00 [13:11:11]MH_I2C_Read... [13:11:11]Read from MH i2c: E2 03 00 9B 07 00 90 00 16 [13:11:11]RAPDU: 90 00 [13:11:11]wFMCommunicate OK [13:11:11]wFMCommunicate request_size=4 [13:11:11]MH_SAM_APDU [13:11:11]CAPDU: 80 0D 03 02 [13:11:11]Write to MH i2c: E2 08 00 9C 07 80 0D 03 02 00 00 00 00 1E [13:11:11]Write i2c OK [13:11:11]MH_I2C_Read... [13:11:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:12]Read from MH i2c: E2 [13:11:12]MH_I2C_Read... [13:11:12]Read from MH i2c: E2 0B 00 [13:11:12]MH_I2C_Read... [13:11:12]Read from MH i2c: E2 0B 00 9C 07 00 F2 FA BF 65 03 0F 9D C3 90 00 A1 [13:11:12]RAPDU: F2 FA BF 65 03 0F 9D C3 90 00 [13:11:12]wFMCommunicate OK [13:11:12]SAM_PROTO_SignData done [13:11:12]FM_MakeSignedData done [13:11:12]CreateOFDProtocolMessage [13:11:12]wFMCommunicate request_size=4 [13:11:12]MH_SAM_APDU [13:11:12]CAPDU: 80 11 00 00 [13:11:12]Write to MH i2c: E2 08 00 9D 07 80 11 00 00 00 00 00 00 1E [13:11:12]Write i2c OK [13:11:12]MH_I2C_Read... [13:11:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:12]Read from MH i2c: E2 [13:11:12]MH_I2C_Read... [13:11:12]Read from MH i2c: E2 17 00 [13:11:12]MH_I2C_Read... [13:11:12]Read from MH i2c: E2 17 00 9D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 79 [13:11:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:11:12]wFMCommunicate OK [13:11:12]CreateOFDProtocolMessage done [13:11:12]OFDSenderStorePacket 118169 [13:11:12]StoreOFDPacket docnum=118169 [13:11:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 95 58 07 01 C1 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 EF F1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 99 CD 01 00 35 04 06 00 FD 93 64 08 0F 27 F2 FA BF 65 03 0F 9D C3 [13:11:12]CheckFolder [13:11:12]dirname=/storage/ofd_packets [13:11:12]CheckFolder done [13:11:12]ProducePacketName [13:11:12]name=ofd_packets/00118169 [13:11:12]NVStorageSaveData ofd_packets/00118169 [13:11:12]File name is /storage/ofd_packets/00118169 [13:11:12]Write 301 bytes [13:11:12]NVStorageSaveData done [13:11:12]OFDSenderStorePacket done [13:11:12]KKMCreateOFDPacket done [13:11:12]NVStorageSaveData kkm_last_timestamp [13:11:12]File name is /storage/kkm_last_timestamp [13:11:12]Write 4 bytes [13:11:12]NVStorageSaveData done [13:11:12]ExternCall_PrintAddStr [13:11:12]wPrintStart [13:11:12]Write to MH i2c: 01 00 00 9E 07 A5 [13:11:12]OFD Sender: Processing packet 118169 [packets to send 85, broken 84] [13:11:12]ProducePacketName [13:11:12]name=ofd_packets/00118169 [13:11:12]OFD Sender: To server: pG, [13:11:12]CommunicateWithHost lk.salyk.kg:30040 [13:11:12]ConnectInit lk.salyk.kg [13:11:12]Write i2c OK [13:11:12]MH_I2C_Read... [13:11:12]Read from MH i2c: 01 [13:11:12]MH_I2C_Read... [13:11:12]Read from MH i2c: 01 07 00 [13:11:12]MH_I2C_Read... [13:11:12]Read from MH i2c: 01 07 00 9E 07 00 00 00 00 00 FF 0F BA [13:11:12]RasterBufferAndPrint [13:11:12]line Счет N : (1)949042 [13:11:12]line ИНН: 02508201610067 [13:11:12]line Контрольно-Кассовый Чек [13:11:12]line ПРОДАЖА [13:11:12]line ТРК (МРК, ГНК) : 41 [13:11:12]line Товар: 2710124130 [13:11:12]line Аи-92-К-4 [13:11:12]line 14.750 * 67.80 [13:11:12]line = 1000.05 [13:11:12]line НДС 12% НСП 1% [13:11:12]line > о реализуемом товаре [13:11:12]line ОКРУГЛЕНИЕ: -0.05 [13:11:12]line ИТОГО: 1000.00 [13:11:12]line Внесено: 1000.00 [13:11:12]line СДАЧА: 0.00 [13:11:12]line НСП 1% : 8.85 [13:11:12]line НДС 12% : 106.20 [13:11:12]line Наличными: 1000.00 [13:11:12]line Безнал.: 0.00 [13:11:12]line Место: АЗС № 134 "Партнер Нефть" [13:11:12]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:11:12]line СНО: Общий режим [13:11:12]line Чек 112 27.07.2024 13:11 [13:11:12]line Смена: 432 ФФД: 1.0 [13:11:12]line ЗНМ: 0300000044 [13:11:12]line РНМ: 0000000000092660 [13:11:12]line Версия ККМ: 001 [13:11:12]line ФМ: 0000000000874939 [13:11:12]line ФД: 118169 [13:11:12]line ФПД: 278809480269607 [13:11:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T131111&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118169&fm=278809480269607&tin=02508201610067®Number=0000000000092660&sum=100000 [13:11:12]Connected sock=11 [13:11:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 95 58 07 01 C1 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 EF F1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 99 CD 01 00 35 04 06 00 FD 93 64 08 0F 27 F2 FA BF 65 03 0F 9D C3 [13:11:12]written 0, free lines is 4095 [13:11:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 27 34 47 00 51 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 99 CD 01 00 F4 03 04 00 82 9F A4 66 B6 04 01 00 00 52 43 E6 07 D0 4F B4 28 [13:11:12]CommunicateWithHost err = 0 [13:11:12]CheckOFDResponse [13:11:12]1017 (14) - 77093643461234 [13:11:12]1041 (16) - 0000000000874939 [13:11:12]1040 (4) - 118169 [13:11:12]1012 (4) - 27.07.2024 07:19 [13:11:12]1206 (1) - 0 [13:11:12]OFD Sender: Remove packet 118169 [13:11:12]ProducePacketName [13:11:12]name=ofd_packets/00118169 [13:11:12]NVStorageDeleteData [13:11:12]Write to MH i2c: 01 00 00 C8 07 CF [13:11:12]Write i2c OK [13:11:12]MH_I2C_Read... [13:11:12]Read from MH i2c: 01 [13:11:12]MH_I2C_Read... [13:11:12]Read from MH i2c: 01 07 00 [13:11:12]MH_I2C_Read... [13:11:12]Read from MH i2c: 01 07 00 C8 07 00 00 00 00 00 DD 0C BF [13:11:12]RasterBufferAndPrint [13:11:12]line [13:11:12]line [13:11:12]line [13:11:12]line [13:11:12]line [13:11:12]written 0, free lines is 3299 [13:11:12]MH_Cut [13:11:12]Write to MH i2c: D1 01 00 CF 07 01 A8 [13:11:12]Write i2c OK [13:11:12]MH_I2C_Read... [13:11:12]Read from MH i2c: D1 [13:11:12]MH_I2C_Read... [13:11:12]Read from MH i2c: D1 01 00 [13:11:12]MH_I2C_Read... [13:11:12]Read from MH i2c: D1 01 00 CF 07 00 A7 [13:11:12]Write to MH i2c: 01 00 00 D0 07 D7 [13:11:12]Write i2c OK [13:11:12]MH_I2C_Read... [13:11:13]OFD Sender: No OFD packet to send [13:11:13]*** Cut start [13:11:13]*** Partial cut [13:11:13]*** CUTSNS_PIN = 1 [13:11:13]*** CUTSNS_PIN = 0 [13:11:13]*** Brake cut motor [13:11:14]Read from MH i2c: 01 [13:11:14]MH_I2C_Read... [13:11:14]*** Stop cut motor [13:11:14]*** Cut end [13:11:14]Read from MH i2c: 01 07 00 [13:11:14]MH_I2C_Read... [13:11:14]Read from MH i2c: 01 07 00 D0 07 00 00 00 00 00 FF 0F EC [13:11:14]process_action close_receipt done [13:11:14]requested_data is exist [13:11:14]produce_requested_data [13:11:14]requested_item fm.sn is exist - process it [13:11:14]wFMCommunicate request_size=4 [13:11:14]MH_SAM_APDU [13:11:14]CAPDU: 80 11 00 00 [13:11:14]Write to MH i2c: E2 08 00 D1 07 80 11 00 00 00 00 00 00 52 [13:11:14]Write i2c OK [13:11:14]MH_I2C_Read... [13:11:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:14]Read from MH i2c: E2 [13:11:14]MH_I2C_Read... [13:11:14]Read from MH i2c: E2 17 00 [13:11:14]MH_I2C_Read... [13:11:14]Read from MH i2c: E2 17 00 D1 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AD [13:11:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:11:14]wFMCommunicate OK [13:11:14]requested_item fd.num is exist - process it [13:11:14]SAM_PROTO_GetFieldsCounters [13:11:14]wFMCommunicate request_size=4 [13:11:14]MH_SAM_APDU [13:11:14]CAPDU: 80 13 00 00 [13:11:14]Write to MH i2c: E2 08 00 D2 07 80 13 00 00 00 00 00 00 55 [13:11:14]Write i2c OK [13:11:14]MH_I2C_Read... [13:11:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:14]Read from MH i2c: E2 [13:11:14]MH_I2C_Read... [13:11:14]Read from MH i2c: E2 62 00 [13:11:14]MH_I2C_Read... [13:11:14]Read from MH i2c: E2 62 00 D2 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 99 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [13:11:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 99 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:11:14]wFMCommunicate OK [13:11:14]SAM_PROTO_GetFieldsCounters done [13:11:14]requested_item shift.num is exist - process it [13:11:14]requested_item shift.opened is exist - process it [13:11:14]req_shift_opened [13:11:14]FM_GetShiftState [13:11:14]SAM_PROTO_GetShiftState [13:11:14]wFMCommunicate request_size=4 [13:11:14]MH_SAM_APDU [13:11:14]CAPDU: 80 13 01 00 [13:11:14]Write to MH i2c: E2 08 00 D3 07 80 13 01 00 00 00 00 00 57 [13:11:14]Write i2c OK [13:11:14]MH_I2C_Read... [13:11:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:14]Read from MH i2c: E2 [13:11:14]MH_I2C_Read... [13:11:14]Read from MH i2c: E2 0E 00 [13:11:14]MH_I2C_Read... [13:11:14]Read from MH i2c: E2 0E 00 D3 07 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 E4 [13:11:14]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [13:11:14]wFMCommunicate OK [13:11:14]SAM_PROTO_GetShiftState done [13:11:14]FM_GetShiftState done [13:11:14]req_shift_opened done [13:11:14]requested_item shift.open_date is exist - process it [13:11:14]req_shift_open_date [13:11:14]req_shift_open_date done [13:11:14]produce_requested_data done [13:11:14]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118169,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [13:11:14]process_action_free close_receipt [13:11:14]json_value_free [13:11:14]json_value_free done [13:11:14]process_json_proto returns [13:11:14]Send response to host [13:11:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118169,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [13:11:14]free response buf [13:11:14]execute_script done [13:11:14]execute_script returns [13:11:14]free content buf [13:11:14]Sock 7.Close socket [13:11:14]Sock 7.Thread stoped [13:11:18]OFD Sender: No OFD packet to send [13:11:22]accept exits with 9 [13:11:22]New connection [13:11:22]New thread 3067272548 created [13:11:22]Thread 3067415908 joined [13:11:22]Waiting for new connection... [13:11:22] Sock 9.Parse request [13:11:22]Sock 9.Check first char [13:11:22]Sock 9.First char is OK [13:11:22]request: POST /json_proto HTTP/1.0 [13:11:22]Method: POST [13:11:22]URL: /json_proto [13:11:22]Method is POST - this is cgi request [13:11:22]url: /json_proto [13:11:22]query_string will be loaded in cgi processing [13:11:22]execute_cgi json_proto POST (null) [13:11:22]execute_cgi path=json_proto method=POST [13:11:22]POST find Content-Length [13:11:22]Host: 172.17.45.7:8080 [13:11:22]Content-Length: 674 [13:11:22]Content-Type: application/json [13:11:22] [13:11:22]POST finish read [13:11:22]Found Content-Length = 674 [13:11:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:22]execute_script... [13:11: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)949043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:22]POST & json_proto [13:11:22]process_json_proto [13:11:22]json parsed OK: [13:11:22]protocol is kg_v1.0 [13:11:22]action value=close_receipt [13:11:22]process_action close_receipt [13:11:22]cmd_close_receipt [13:11:22]MH_GetDate [13:11:22]Write to MH i2c: F0 00 00 D4 07 CA [13:11:22]Write i2c OK [13:11:22]MH_I2C_Read... [13:11:22]Read from MH i2c: F0 [13:11:22]MH_I2C_Read... [13:11:22]Read from MH i2c: F0 09 00 [13:11:22]MH_I2C_Read... [13:11:22]Read from MH i2c: F0 09 00 D4 07 00 FC F1 A4 66 90 0F 3E 66 0D [13:11:22]GetLastDocTimeStamp 1722085871 [13:11:22]current date 1722085884 [13:11:22]FM_GetShiftState [13:11:22]SAM_PROTO_GetShiftState [13:11:22]wFMCommunicate request_size=4 [13:11:22]MH_SAM_APDU [13:11:22]CAPDU: 80 13 01 00 [13:11:22]Write to MH i2c: E2 08 00 D5 07 80 13 01 00 00 00 00 00 59 [13:11:22]Write i2c OK [13:11:22]MH_I2C_Read... [13:11:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:23]Read from MH i2c: E2 [13:11:23]MH_I2C_Read... [13:11:23]Read from MH i2c: E2 0E 00 [13:11:23]MH_I2C_Read... [13:11:23]Read from MH i2c: E2 0E 00 D5 07 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 E6 [13:11:23]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [13:11:23]wFMCommunicate OK [13:11:23]SAM_PROTO_GetShiftState done [13:11:23]FM_GetShiftState done [13:11:23]opened in 1722038845 [13:11:23]opened+sec_in_day 1722125245 [13:11:23]quantity*price = 70027 [13:11:23]sum+1 = 70029 [13:11:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 113 27.07.2024 13:11 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118170 ФПД: 12427491982059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T131124&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118170&fm=12427491982059&tin=02508201610067®Number=0000000000092660&sum=70000 [13:11:24]StoreToDocumentArchive [13:11:24]shift 432 fd 118170 [13:11:24]save to /storage/0432/doc_00118170 [13:11:24]save last doc name /storage/0432/doc_00118170 to /storage/kkm_last_doc_name [13:11:24]save OK [13:11:24]Clear old archive folders... [13:11:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:11:24]tlvbuf is 00378CF0 [13:11:24]SAM_PROTO_ClearQueue [13:11:24]wFMCommunicate request_size=4 [13:11:24]MH_SAM_APDU [13:11:24]CAPDU: 80 09 00 00 [13:11:24]Write to MH i2c: E2 08 00 E2 07 80 09 00 00 00 00 00 00 5B [13:11:24]Write i2c OK [13:11:24]MH_I2C_Read... [13:11:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:24]Read from MH i2c: E2 [13:11:24]MH_I2C_Read... [13:11:24]Read from MH i2c: E2 03 00 [13:11:24]MH_I2C_Read... [13:11:24]Read from MH i2c: E2 03 00 E2 07 00 90 00 5D [13:11:24]RAPDU: 90 00 [13:11:24]wFMCommunicate OK [13:11:24]SAM_PROTO_ClearQueue done [13:11:24]KKMCreateOFDPacket [13:11:24]OFDProtocolAddRootSTLVToBuf [13:11:24]FM_MakeSignedData [13:11:24]FM_MakeSignedData [13:11:24]SAM_PROTO_SignData [13:11:24]wFMCommunicate request_size=4 [13:11:24]MH_SAM_APDU [13:11:24]CAPDU: 80 0D 01 02 [13:11:24]Write to MH i2c: E2 08 00 E3 07 80 0D 01 02 00 00 00 00 63 [13:11:24]Write i2c OK [13:11:24]MH_I2C_Read... [13:11:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:24]Read from MH i2c: E2 [13:11:24]MH_I2C_Read... [13:11:24]Read from MH i2c: E2 03 00 [13:11:24]MH_I2C_Read... [13:11:24]Read from MH i2c: E2 03 00 E3 07 00 90 00 5E [13:11:24]RAPDU: 90 00 [13:11:24]wFMCommunicate OK [13:11:24]wFMCommunicate request_size=255 [13:11:24]MH_SAM_APDU [13:11:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 FC F1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9A CD 01 00 35 04 06 00 0B 4D 80 3E [13:11:24]Write to MH i2c: E2 02 01 E4 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 FC F1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9A CD 01 00 35 04 06 00 0B 4D 80 3E 00 00 86 [13:11:24]Write i2c OK [13:11:24]MH_I2C_Read... [13:11:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:24]Read from MH i2c: E2 [13:11:24]MH_I2C_Read... [13:11:24]Read from MH i2c: E2 03 00 [13:11:24]MH_I2C_Read... [13:11:24]Read from MH i2c: E2 03 00 E4 07 00 90 00 5F [13:11:24]RAPDU: 90 00 [13:11:24]wFMCommunicate OK [13:11:24]wFMCommunicate request_size=7 [13:11:24]MH_SAM_APDU [13:11:24]CAPDU: 80 0D 02 02 02 BA EB [13:11:24]Write to MH i2c: E2 0A 00 E5 07 80 0D 02 02 02 00 BA EB 00 00 0F [13:11:24]Write i2c OK [13:11:24]MH_I2C_Read... [13:11:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:24]Read from MH i2c: E2 [13:11:24]MH_I2C_Read... [13:11:24]Read from MH i2c: E2 03 00 [13:11:24]MH_I2C_Read... [13:11:24]Read from MH i2c: E2 03 00 E5 07 00 90 00 60 [13:11:24]RAPDU: 90 00 [13:11:24]wFMCommunicate OK [13:11:24]wFMCommunicate request_size=4 [13:11:24]MH_SAM_APDU [13:11:24]CAPDU: 80 0D 03 02 [13:11:24]Write to MH i2c: E2 08 00 E6 07 80 0D 03 02 00 00 00 00 68 [13:11:24]Write i2c OK [13:11:24]MH_I2C_Read... [13:11:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:24]Read from MH i2c: E2 [13:11:24]MH_I2C_Read... [13:11:24]Read from MH i2c: E2 0B 00 [13:11:24]MH_I2C_Read... [13:11:24]Read from MH i2c: E2 0B 00 E6 07 00 D5 AF D4 61 95 19 CA 1F 90 00 B9 [13:11:24]RAPDU: D5 AF D4 61 95 19 CA 1F 90 00 [13:11:24]wFMCommunicate OK [13:11:24]SAM_PROTO_SignData done [13:11:24]FM_MakeSignedData done [13:11:24]CreateOFDProtocolMessage [13:11:24]wFMCommunicate request_size=4 [13:11:24]MH_SAM_APDU [13:11:24]CAPDU: 80 11 00 00 [13:11:24]Write to MH i2c: E2 08 00 E7 07 80 11 00 00 00 00 00 00 68 [13:11:24]Write i2c OK [13:11:24]MH_I2C_Read... [13:11:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:24]Read from MH i2c: E2 [13:11:24]MH_I2C_Read... [13:11:24]Read from MH i2c: E2 17 00 [13:11:24]MH_I2C_Read... [13:11:24]Read from MH i2c: E2 17 00 E7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C3 [13:11:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:11:24]wFMCommunicate OK [13:11:24]CreateOFDProtocolMessage done [13:11:24]OFDSenderStorePacket 118170 [13:11:24]StoreOFDPacket docnum=118170 [13:11:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 23 5C 04 01 FC 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 FC F1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9A CD 01 00 35 04 06 00 0B 4D 80 3E BA EB D5 AF D4 61 95 19 CA 1F [13:11:24]CheckFolder [13:11:24]dirname=/storage/ofd_packets [13:11:24]CheckFolder done [13:11:24]ProducePacketName [13:11:24]name=ofd_packets/00118170 [13:11:24]NVStorageSaveData ofd_packets/00118170 [13:11:24]File name is /storage/ofd_packets/00118170 [13:11:24]Write 298 bytes [13:11:24]NVStorageSaveData done [13:11:24]OFDSenderStorePacket done [13:11:24]KKMCreateOFDPacket done [13:11:24]NVStorageSaveData kkm_last_timestamp [13:11:24]File name is /storage/kkm_last_timestamp [13:11:24]Write 4 bytes [13:11:24]NVStorageSaveData done [13:11:24]ExternCall_PrintAddStr [13:11:24]wPrintStart [13:11:24]Write to MH i2c: 01 00 00 E8 07 EF [13:11:24]Write i2c OK [13:11:24]MH_I2C_Read... [13:11:24]Read from MH i2c: 01 [13:11:24]MH_I2C_Read... [13:11:24]Read from MH i2c: 01 07 00 [13:11:24]MH_I2C_Read... [13:11:24]Read from MH i2c: 01 07 00 E8 07 00 00 00 00 00 FF 0F 04 [13:11:24]RasterBufferAndPrint [13:11:24]line Счет N : (1)949043 [13:11:24]line ИНН: 02508201610067 [13:11:24]line Контрольно-Кассовый Чек [13:11:24]line ПРОДАЖА [13:11:24]line ТРК (МРК, ГНК) : 64 [13:11:24]line Товар: 2710194800 [13:11:24]line ДТ-К-5 [13:11:24]line 9.190 * 76.20 [13:11:24]line = 700.28 [13:11:24]line НДС 12% НСП 1% [13:11:24]line > о реализуемом товаре [13:11:24]line ОКРУГЛЕНИЕ: -0.28 [13:11:24]line ИТОГО: 700.00 [13:11:24]line Внесено: 700.00 [13:11:24]line СДАЧА: 0.00 [13:11:24]line НСП 1% : 6.20 [13:11:24]line НДС 12% : 74.37 [13:11:24]line Наличными: 700.00 [13:11:24]line Безнал.: 0.00 [13:11:24]line Место: АЗС № 134 "Партнер Нефть" [13:11:24]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:11:24]line СНО: Общий режим [13:11:24]line Чек 113 27.07.2024 13:11 [13:11:24]line Смена: 432 ФФД: 1.0 [13:11:24]line ЗНМ: 0300000044 [13:11:24]line РНМ: 0000000000092660 [13:11:24]line Версия ККМ: 001 [13:11:24]line ФМ: 0000000000874939 [13:11:24]line ФД: 118170 [13:11:24]line ФПД: 12427491982059 [13:11:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T131124&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118170&fm=12427491982059&tin=02508201610067®Number=0000000000092660&sum=70000 [13:11:25]OFD Sender: Processing packet 118170 [packets to send 85, broken 84] [13:11:25]ProducePacketName [13:11:25]name=ofd_packets/00118170 [13:11:25]OFD Sender: To server: pG, [13:11:25]CommunicateWithHost lk.salyk.kg:30040 [13:11:25]ConnectInit lk.salyk.kg [13:11:25]written 0, free lines is 4095 [13:11:25]Connected sock=10 [13:11:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 23 5C 04 01 FC 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 FC F1 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9A CD 01 00 35 04 06 00 0B 4D 80 3E BA EB D5 AF D4 61 95 19 CA 1F [13:11:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C0 89 47 00 C9 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9A CD 01 00 F4 03 04 00 8F 9F A4 66 B6 04 01 00 00 64 B7 2A 35 F7 9E 74 33 [13:11:25]CommunicateWithHost err = 0 [13:11:25]CheckOFDResponse [13:11:25]1017 (14) - 77093643461234 [13:11:25]1041 (16) - 0000000000874939 [13:11:25]1040 (4) - 118170 [13:11:25]1012 (4) - 27.07.2024 07:19 [13:11:25]1206 (1) - 0 [13:11:25]OFD Sender: Remove packet 118170 [13:11:25]ProducePacketName [13:11:25]name=ofd_packets/00118170 [13:11:25]NVStorageDeleteData [13:11:25]Write to MH i2c: 01 00 00 12 08 1A [13:11:25]Write i2c OK [13:11:25]MH_I2C_Read... [13:11:25]Read from MH i2c: 01 [13:11:25]MH_I2C_Read... [13:11:25]Read from MH i2c: 01 07 00 [13:11:25]MH_I2C_Read... [13:11:25]Read from MH i2c: 01 07 00 12 08 00 00 00 00 00 E3 0C 10 [13:11:25]RasterBufferAndPrint [13:11:25]line [13:11:25]line [13:11:25]line [13:11:25]line [13:11:25]line [13:11:25]written 0, free lines is 3305 [13:11:25]MH_Cut [13:11:25]Write to MH i2c: D1 01 00 19 08 01 F3 [13:11:25]Write i2c OK [13:11:25]MH_I2C_Read... [13:11:25]Read from MH i2c: D1 [13:11:25]MH_I2C_Read... [13:11:25]Read from MH i2c: D1 01 00 [13:11:25]MH_I2C_Read... [13:11:25]Read from MH i2c: D1 01 00 19 08 00 F2 [13:11:25]Write to MH i2c: 01 00 00 1A 08 22 [13:11:25]Write i2c OK [13:11:25]MH_I2C_Read... [13:11:25]OFD Sender: No OFD packet to send [13:11:26]*** Cut start [13:11:26]*** Partial cut [13:11:26]*** CUTSNS_PIN = 1 [13:11:26]*** CUTSNS_PIN = 0 [13:11:26]*** Brake cut motor [13:11:26]Read from MH i2c: 01 [13:11:26]MH_I2C_Read... [13:11:26]*** Stop cut motor [13:11:26]*** Cut end [13:11:26]Read from MH i2c: 01 07 00 [13:11:26]MH_I2C_Read... [13:11:26]Read from MH i2c: 01 07 00 1A 08 00 00 00 00 00 FF 0F 37 [13:11:26]process_action close_receipt done [13:11:26]requested_data is exist [13:11:26]produce_requested_data [13:11:26]requested_item fm.sn is exist - process it [13:11:26]wFMCommunicate request_size=4 [13:11:26]MH_SAM_APDU [13:11:26]CAPDU: 80 11 00 00 [13:11:26]Write to MH i2c: E2 08 00 1B 08 80 11 00 00 00 00 00 00 9D [13:11:26]Write i2c OK [13:11:26]MH_I2C_Read... [13:11:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:26]Read from MH i2c: E2 [13:11:26]MH_I2C_Read... [13:11:26]Read from MH i2c: E2 17 00 [13:11:26]MH_I2C_Read... [13:11:26]Read from MH i2c: E2 17 00 1B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F8 [13:11:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:11:26]wFMCommunicate OK [13:11:26]requested_item fd.num is exist - process it [13:11:26]SAM_PROTO_GetFieldsCounters [13:11:26]wFMCommunicate request_size=4 [13:11:26]MH_SAM_APDU [13:11:26]CAPDU: 80 13 00 00 [13:11:26]Write to MH i2c: E2 08 00 1C 08 80 13 00 00 00 00 00 00 A0 [13:11:26]Write i2c OK [13:11:26]MH_I2C_Read... [13:11:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:26]Read from MH i2c: E2 [13:11:26]MH_I2C_Read... [13:11:26]Read from MH i2c: E2 62 00 [13:11:26]MH_I2C_Read... [13:11:26]Read from MH i2c: E2 62 00 1C 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9A CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [13:11:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9A CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:11:27]wFMCommunicate OK [13:11:27]SAM_PROTO_GetFieldsCounters done [13:11:27]requested_item shift.num is exist - process it [13:11:27]requested_item shift.opened is exist - process it [13:11:27]req_shift_opened [13:11:27]FM_GetShiftState [13:11:27]SAM_PROTO_GetShiftState [13:11:27]wFMCommunicate request_size=4 [13:11:27]MH_SAM_APDU [13:11:27]CAPDU: 80 13 01 00 [13:11:27]Write to MH i2c: E2 08 00 1D 08 80 13 01 00 00 00 00 00 A2 [13:11:27]Write i2c OK [13:11:27]MH_I2C_Read... [13:11:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:27]Read from MH i2c: E2 [13:11:27]MH_I2C_Read... [13:11:27]Read from MH i2c: E2 0E 00 [13:11:27]MH_I2C_Read... [13:11:27]Read from MH i2c: E2 0E 00 1D 08 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 2F [13:11:27]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [13:11:27]wFMCommunicate OK [13:11:27]SAM_PROTO_GetShiftState done [13:11:27]FM_GetShiftState done [13:11:27]req_shift_opened done [13:11:27]requested_item shift.open_date is exist - process it [13:11:27]req_shift_open_date [13:11:27]req_shift_open_date done [13:11:27]produce_requested_data done [13:11:27]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118170,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [13:11:27]process_action_free close_receipt [13:11:27]json_value_free [13:11:27]json_value_free done [13:11:27]process_json_proto returns [13:11:27]Send response to host [13:11:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118170,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [13:11:27]free response buf [13:11:27]execute_script done [13:11:27]execute_script returns [13:11:27]free content buf [13:11:27]Sock 9.Close socket [13:11:27]Sock 9.Thread stoped [13:11:30]OFD Sender: No OFD packet to send [13:11:35]OFD Sender: No OFD packet to send [13:11:40]OFD Sender: No OFD packet to send [13:11:45]OFD Sender: No OFD packet to send [13:11:50]OFD Sender: No OFD packet to send [13:11:55]OFD Sender: No OFD packet to send [13:12:00]OFD Sender: No OFD packet to send [13:12:05]OFD Sender: No OFD packet to send [13:12:10]OFD Sender: No OFD packet to send [13:12:15]OFD Sender: No OFD packet to send [13:12:20]OFD Sender: No OFD packet to send [13:12:25]OFD Sender: No OFD packet to send [13:12:30]OFD Sender: No OFD packet to send [13:12:35]OFD Sender: No OFD packet to send [13:12:40]OFD Sender: No OFD packet to send [13:12:45]OFD Sender: No OFD packet to send [13:12:50]OFD Sender: No OFD packet to send [13:12:55]OFD Sender: No OFD packet to send [13:13:00]OFD Sender: No OFD packet to send [13:13:05]OFD Sender: No OFD packet to send [13:13:10]OFD Sender: No OFD packet to send [13:13:15]OFD Sender: No OFD packet to send [13:13:20]OFD Sender: No OFD packet to send [13:13:25]OFD Sender: No OFD packet to send [13:13:30]OFD Sender: No OFD packet to send [13:13:35]OFD Sender: No OFD packet to send [13:13:40]OFD Sender: No OFD packet to send [13:13:45]OFD Sender: No OFD packet to send [13:13:50]OFD Sender: No OFD packet to send [13:13:55]OFD Sender: No OFD packet to send [13:14:00]OFD Sender: No OFD packet to send [13:14:05]OFD Sender: No OFD packet to send [13:14:10]OFD Sender: No OFD packet to send [13:14:15]OFD Sender: No OFD packet to send [13:14:21]OFD Sender: No OFD packet to send [13:14:26]OFD Sender: No OFD packet to send [13:14:31]OFD Sender: No OFD packet to send [13:14:36]OFD Sender: No OFD packet to send [13:14:41]OFD Sender: No OFD packet to send [13:14:46]OFD Sender: No OFD packet to send [13:14:51]OFD Sender: No OFD packet to send [13:14:56]OFD Sender: No OFD packet to send [13:15:01]OFD Sender: No OFD packet to send [13:15:06]OFD Sender: No OFD packet to send [13:15:11]OFD Sender: No OFD packet to send [13:15:16]OFD Sender: No OFD packet to send [13:15:21]OFD Sender: No OFD packet to send [13:15:26]OFD Sender: No OFD packet to send [13:15:31]OFD Sender: No OFD packet to send [13:15:36]OFD Sender: No OFD packet to send [13:15:41]OFD Sender: No OFD packet to send [13:15:46]OFD Sender: No OFD packet to send [13:15:51]OFD Sender: No OFD packet to send [13:15:56]OFD Sender: No OFD packet to send [13:16:01]OFD Sender: No OFD packet to send [13:16:06]OFD Sender: No OFD packet to send [13:16:11]OFD Sender: No OFD packet to send [16:15:33]ConnectInit Can't connect to host [16:15:34]ConnectInit Can't take IP for lk.salyk.kg [16:15:34]CommunicateWithHost connect error [16:15:34]CommunicateWithHost err = -1 [16:15:34]OFD Sender: Server communicate error [16:15:39]OFD Sender: Processing packet 118171 [packets to send 136, broken 85] [16:15:39]ProducePacketName [16:15:39]name=ofd_packets/00118171 [16:15:39]OFD Sender: To server: pG, [16:15:39]CommunicateWithHost lk.salyk.kg:30040 [16:15:39]ConnectInit lk.salyk.kg [16:15:39]Connected sock=7 [16:15:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 05 15 04 01 BF D3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 58 F4 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9B CD 01 00 35 04 06 00 75 87 DD FB 28 87 81 61 38 1F B9 B9 15 1A [16:15:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 79 6F 47 00 F0 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9B CD 01 00 F4 03 04 00 BC CA A4 66 B6 04 01 00 00 D0 FF C7 6C 05 7F 9B AA [16:15:39]CommunicateWithHost err = 0 [16:15:39]CheckOFDResponse [16:15:39]1017 (14) - 77093643461234 [16:15:39]1041 (16) - 0000000000874939 [16:15:39]1040 (4) - 118171 [16:15:39]1012 (4) - 27.07.2024 10:23 [16:15:39]1206 (1) - 0 [16:15:39]OFD Sender: Remove packet 118171 [16:15:39]ProducePacketName [16:15:39]name=ofd_packets/00118171 [16:15:39]NVStorageDeleteData [16:15:39]OFD Sender: Processing packet 118172 [packets to send 135, broken 85] [16:15:39]ProducePacketName [16:15:39]name=ofd_packets/00118172 [16:15:39]OFD Sender: To server: pG, [16:15:39]CommunicateWithHost lk.salyk.kg:30040 [16:15:39]ConnectInit lk.salyk.kg [16:15:40]Connected sock=7 [16:15:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 9D 59 07 01 81 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 73 00 00 00 F4 03 04 00 31 F5 A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9C CD 01 00 35 04 06 00 01 57 9A 88 D3 68 DB 06 B3 10 3F 44 91 67 [16:15:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B7 DA 47 00 AE 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 34 39 33 39 10 04 04 00 9C CD 01 00 F4 03 04 00 BC CA A4 66 B6 04 01 00 00 10 6B 42 C4 0D D9 9F 36 [16:15:40]CommunicateWithHost err = 0 [16:15:40]CheckOFDResponse [16:15:40]1017 (14) - 77093643461234 [16:15:40]1041 (16) - 0000000000874939 [16:15:40]1040 (4) - 118172 [16:15:40]1012 (4) - 27.07.2024 10:23 [16:15:40]1206 (1) - 0 [16:15:40]OFD Sender: Remove packet 118172 [16:15:40]ProducePacketName [16:15:40]name=ofd_packets/00118172 [16:15:40]NVStorageDeleteData [16:15:40]OFD Sender: Processing packet 118173 [packets to send 134, broken 85] [16:15:40]ProducePacketName [16:15:40]name=ofd_packets/00118173 [16:15:40]OFD Sender: To server: pG, [16:15:40]CommunicateWithHost lk.salyk.kg:30040 [16:15:40]ConnectInit lk.salyk.kg [16:15:40]Connected sock=7 [16:15:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 CA CB 04 01 7E 12 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 3E FB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9D CD 01 00 35 04 06 00 2F 48 17 DD 9A AB 51 DF 9B 05 2A 02 D3 7E [16:15:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A0 A8 47 00 4C 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9D CD 01 00 F4 03 04 00 BD CA A4 66 B6 04 01 00 00 D6 D0 B7 BD 5E 82 FC CA [16:15:41]CommunicateWithHost err = 0 [16:15:41]CheckOFDResponse [16:15:41]1017 (14) - 77093643461234 [16:15:41]1041 (16) - 0000000000874939 [16:15:41]1040 (4) - 118173 [16:15:41]1012 (4) - 27.07.2024 10:23 [16:15:41]1206 (1) - 0 [16:15:41]OFD Sender: Remove packet 118173 [16:15:41]ProducePacketName [16:15:41]name=ofd_packets/00118173 [16:15:41]NVStorageDeleteData [16:15:41]OFD Sender: Processing packet 118174 [packets to send 133, broken 85] [16:15:41]ProducePacketName [16:15:41]name=ofd_packets/00118174 [16:15:41]OFD Sender: To server: pG, [16:15:41]CommunicateWithHost lk.salyk.kg:30040 [16:15:41]ConnectInit lk.salyk.kg [16:15:41]Connected sock=7 [16:15:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 95 49 07 01 1F DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 6C FB A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9E CD 01 00 35 04 06 00 DA E5 78 F7 66 EB 78 AB A6 9F AB 4D 9A AD [16:15:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 36 10 47 00 A7 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9E CD 01 00 F4 03 04 00 BE CA A4 66 B6 04 01 00 00 E2 2D DD F1 1B 2A 89 8D [16:15:41]CommunicateWithHost err = 0 [16:15:41]CheckOFDResponse [16:15:41]1017 (14) - 77093643461234 [16:15:41]1041 (16) - 0000000000874939 [16:15:41]1040 (4) - 118174 [16:15:41]1012 (4) - 27.07.2024 10:23 [16:15:41]1206 (1) - 0 [16:15:41]OFD Sender: Remove packet 118174 [16:15:41]ProducePacketName [16:15:41]name=ofd_packets/00118174 [16:15:41]NVStorageDeleteData [16:15:42]OFD Sender: Processing packet 118175 [packets to send 132, broken 85] [16:15:42]ProducePacketName [16:15:42]name=ofd_packets/00118175 [16:15:42]OFD Sender: To server: pG, [16:15:42]CommunicateWithHost lk.salyk.kg:30040 [16:15:42]ConnectInit lk.salyk.kg [16:15:42]Connected sock=7 [16:15:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 09 B3 07 01 F4 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 0F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 AC 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 63 FC A4 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9F CD 01 00 35 04 06 00 AC DA F3 A1 F5 61 7A 63 3B 05 D4 D2 77 28 [16:15:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 0C 80 47 00 07 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9F CD 01 00 F4 03 04 00 BF CA A4 66 B6 04 01 00 00 B1 AD E3 F3 F9 F7 CA A5 [16:15:42]CommunicateWithHost err = 0 [16:15:42]CheckOFDResponse [16:15:42]1017 (14) - 77093643461234 [16:15:42]1041 (16) - 0000000000874939 [16:15:42]1040 (4) - 118175 [16:15:42]1012 (4) - 27.07.2024 10:23 [16:15:42]1206 (1) - 0 [16:15:42]OFD Sender: Remove packet 118175 [16:15:42]ProducePacketName [16:15:42]name=ofd_packets/00118175 [16:15:42]NVStorageDeleteData [16:15:42]accept exits with 10 [16:15:42]New connection [16:15:42]New thread 3067096420 created [16:15:42]Thread 3066953060 joined [16:15:42]Waiting for new connection... [16:15:42] Sock 10.Parse request [16:15:42]Sock 10.Check first char [16:15:42]Sock 10.First char is OK [16:15:42]request: POST /json_proto HTTP/1.0 [16:15:42]Method: POST [16:15:42]URL: /json_proto [16:15:42]Method is POST - this is cgi request [16:15:42]url: /json_proto [16:15:42]query_string will be loaded in cgi processing [16:15:42]execute_cgi json_proto POST (null) [16:15:42]execute_cgi path=json_proto method=POST [16:15:42]POST find Content-Length [16:15:42]Host: 172.17.45.7:8080 [16:15:42]Content-Length: 682 [16:15:42]Content-Type: application/json [16:15:42] [16:15:42]POST finish read [16:15:42]Found Content-Length = 682 [16:15:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:15:42]execute_script... [16:15:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:15:42]POST & json_proto [16:15:42]process_json_proto [16:15:42]json parsed OK: [16:15:42]protocol is kg_v1.0 [16:15:42]action value=close_receipt [16:15:42]process_action close_receipt [16:15:42]cmd_close_receipt [16:15:42]MH_GetDate [16:15:42]Write to MH i2c: F0 00 00 70 0A 69 [16:15:42]Write i2c OK [16:15:42]MH_I2C_Read... [16:15:42]Read from MH i2c: F0 [16:15:42]MH_I2C_Read... [16:15:42]Read from MH i2c: F0 09 00 [16:15:42]MH_I2C_Read... [16:15:42]Read from MH i2c: F0 09 00 70 0A 00 2F 1D A5 66 90 0F 3E 66 0C [16:15:42]GetLastDocTimeStamp 1722096577 [16:15:42]current date 1722096943 [16:15:42]FM_GetShiftState [16:15:42]SAM_PROTO_GetShiftState [16:15:42]wFMCommunicate request_size=4 [16:15:42]MH_SAM_APDU [16:15:42]CAPDU: 80 13 01 00 [16:15:42]Write to MH i2c: E2 08 00 71 0A 80 13 01 00 00 00 00 00 F8 [16:15:42]Write i2c OK [16:15:42]MH_I2C_Read... [16:15:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:42]Read from MH i2c: E2 [16:15:42]MH_I2C_Read... [16:15:42]Read from MH i2c: E2 0E 00 [16:15:42]MH_I2C_Read... [16:15:42]Read from MH i2c: E2 0E 00 71 0A 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 85 [16:15:42]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [16:15:42]wFMCommunicate OK [16:15:42]SAM_PROTO_GetShiftState done [16:15:42]FM_GetShiftState done [16:15:42]opened in 1722038845 [16:15:42]opened+sec_in_day 1722125245 [16:15:42]quantity*price = 100005 [16:15:42]sum+1 = 100006 [16:15:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 166 27.07.2024 16:15 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118223 ФПД: 165722886620308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T161543&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118223&fm=165722886620308&tin=02508201610067®Number=0000000000092660&sum=100000 [16:15:44]StoreToDocumentArchive [16:15:44]shift 432 fd 118223 [16:15:44]save to /storage/0432/doc_00118223 [16:15:44]save last doc name /storage/0432/doc_00118223 to /storage/kkm_last_doc_name [16:15:44]OFD Sender: Processing packet 118177 [packets to send 130, broken 85] [16:15:44]ProducePacketName [16:15:44]name=ofd_packets/00118177 [16:15:44]save OK [16:15:44]Clear old archive folders... [16:15:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:15:44]tlvbuf is 01DB7740 [16:15:44]SAM_PROTO_ClearQueue [16:15:44]wFMCommunicate request_size=4 [16:15:44]MH_SAM_APDU [16:15:44]CAPDU: 80 09 00 00 [16:15:44]Write to MH i2c: E2 08 00 7E 0A 80 09 00 00 00 00 00 00 FA [16:15:44]OFD Sender: To server: pG, [16:15:44]CommunicateWithHost lk.salyk.kg:30040 [16:15:44]ConnectInit lk.salyk.kg [16:15:44]Write i2c OK [16:15:44]MH_I2C_Read... [16:15:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:15:44]Read from MH i2c: E2 [16:15:44]MH_I2C_Read... [16:15:44]Read from MH i2c: E2 03 00 [16:15:44]MH_I2C_Read... [16:15:44]Read from MH i2c: E2 03 00 7E 0A 00 90 00 FC [16:15:44]RAPDU: 90 00 [16:15:44]wFMCommunicate OK [16:15:44]SAM_PROTO_ClearQueue done [16:15:44]KKMCreateOFDPacket [16:15:44]OFDProtocolAddRootSTLVToBuf [16:15:44]FM_MakeSignedData [16:15:44]FM_MakeSignedData [16:15:44]SAM_PROTO_SignData [16:15:44]wFMCommunicate request_size=4 [16:15:44]MH_SAM_APDU [16:15:44]CAPDU: 80 0D 01 02 [16:15:44]Write to MH i2c: E2 08 00 7F 0A 80 0D 01 02 00 00 00 00 02 [16:15:44]Write i2c OK [16:15:44]MH_I2C_Read... [16:15:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:15:44]Read from MH i2c: E2 [16:15:44]MH_I2C_Read... [16:15:44]Read from MH i2c: E2 03 00 [16:15:44]MH_I2C_Read... [16:15:44]Read from MH i2c: E2 03 00 7F 0A 00 90 00 FD [16:15:44]RAPDU: 90 00 [16:15:44]wFMCommunicate OK [16:15:44]wFMCommunicate request_size=255 [16:15:44]MH_SAM_APDU [16:15: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 2F 1D A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CF CD 01 00 35 04 06 00 96 [16:15:44]Write to MH i2c: E2 02 01 80 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 2F 1D A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CF CD 01 00 35 04 06 00 96 00 00 F6 [16:15:44]Write i2c OK [16:15:44]MH_I2C_Read... [16:15:44]Connected sock=9 [16:15:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 14 54 04 01 89 F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 75 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 80 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 80 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 80 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 6E 01 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A1 CD 01 00 35 04 06 00 27 8F 1B 54 EE 69 B9 AD 0C 63 BB E1 1F 8A [16:15:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 71 C4 47 00 26 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A1 CD 01 00 F4 03 04 00 C1 CA A4 66 B6 04 01 00 00 1A 62 93 33 28 46 5B F1 [16:15:44]CommunicateWithHost err = 0 [16:15:44]CheckOFDResponse [16:15:44]1017 (14) - 77093643461234 [16:15:44]1041 (16) - 0000000000874939 [16:15:44]1040 (4) - 118177 [16:15:44]1012 (4) - 27.07.2024 10:24 [16:15:44]1206 (1) - 0 [16:15:44]OFD Sender: Remove packet 118177 [16:15:44]ProducePacketName [16:15:44]name=ofd_packets/00118177 [16:15:44]NVStorageDeleteData [16:15:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:44]Read from MH i2c: E2 [16:15:44]MH_I2C_Read... [16:15:44]Read from MH i2c: E2 03 00 [16:15:44]MH_I2C_Read... [16:15:44]Read from MH i2c: E2 03 00 80 0A 00 90 00 FE [16:15:44]RAPDU: 90 00 [16:15:44]wFMCommunicate OK [16:15:44]wFMCommunicate request_size=10 [16:15:44]MH_SAM_APDU [16:15:44]CAPDU: 80 0D 02 02 05 B9 5D C9 C4 94 [16:15:44]Write to MH i2c: E2 0D 00 81 0A 80 0D 02 02 05 00 B9 5D C9 C4 94 00 00 46 [16:15:44]Write i2c OK [16:15:44]MH_I2C_Read... [16:15:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:44]Read from MH i2c: E2 [16:15:44]MH_I2C_Read... [16:15:44]Read from MH i2c: E2 03 00 [16:15:44]MH_I2C_Read... [16:15:44]Read from MH i2c: E2 03 00 81 0A 00 90 00 FF [16:15:44]RAPDU: 90 00 [16:15:44]wFMCommunicate OK [16:15:44]wFMCommunicate request_size=4 [16:15:44]MH_SAM_APDU [16:15:44]CAPDU: 80 0D 03 02 [16:15:44]Write to MH i2c: E2 08 00 82 0A 80 0D 03 02 00 00 00 00 07 [16:15:44]Write i2c OK [16:15:44]MH_I2C_Read... [16:15:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:15:44]Read from MH i2c: E2 [16:15:44]MH_I2C_Read... [16:15:44]Read from MH i2c: E2 0B 00 [16:15:44]MH_I2C_Read... [16:15:44]Read from MH i2c: E2 0B 00 82 0A 00 B1 7C A7 39 3D 34 A9 07 90 00 36 [16:15:44]RAPDU: B1 7C A7 39 3D 34 A9 07 90 00 [16:15:44]wFMCommunicate OK [16:15:44]SAM_PROTO_SignData done [16:15:44]FM_MakeSignedData done [16:15:44]CreateOFDProtocolMessage [16:15:44]wFMCommunicate request_size=4 [16:15:44]MH_SAM_APDU [16:15:44]CAPDU: 80 11 00 00 [16:15:44]Write to MH i2c: E2 08 00 83 0A 80 11 00 00 00 00 00 00 07 [16:15:44]Write i2c OK [16:15:44]MH_I2C_Read... [16:15:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:44]Read from MH i2c: E2 [16:15:44]MH_I2C_Read... [16:15:44]Read from MH i2c: E2 17 00 [16:15:44]MH_I2C_Read... [16:15:44]Read from MH i2c: E2 17 00 83 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 62 [16:15:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:15:44]wFMCommunicate OK [16:15:44]CreateOFDProtocolMessage done [16:15:44]OFDSenderStorePacket 118223 [16:15:44]StoreOFDPacket docnum=118223 [16:15:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 DC E8 07 01 42 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 2F 1D A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CF CD 01 00 35 04 06 00 96 B9 5D C9 C4 94 B1 7C A7 39 3D 34 A9 07 [16:15:44]CheckFolder [16:15:44]dirname=/storage/ofd_packets [16:15:44]CheckFolder done [16:15:44]ProducePacketName [16:15:44]name=ofd_packets/00118223 [16:15:44]NVStorageSaveData ofd_packets/00118223 [16:15:44]File name is /storage/ofd_packets/00118223 [16:15:44]OFD Sender: Processing packet 118178 [packets to send 129, broken 85] [16:15:44]ProducePacketName [16:15:44]name=ofd_packets/00118178 [16:15:44]Write 301 bytes [16:15:44]NVStorageSaveData done [16:15:44]OFDSenderStorePacket done [16:15:44]KKMCreateOFDPacket done [16:15:44]NVStorageSaveData kkm_last_timestamp [16:15:44]File name is /storage/kkm_last_timestamp [16:15:44]Write 4 bytes [16:15:44]NVStorageSaveData done [16:15:44]ExternCall_PrintAddStr [16:15:44]wPrintStart [16:15:44]Write to MH i2c: 01 00 00 84 0A 8E [16:15:44]OFD Sender: To server: pG, [16:15:44]CommunicateWithHost lk.salyk.kg:30040 [16:15:44]ConnectInit lk.salyk.kg [16:15:44]Write i2c OK [16:15:44]MH_I2C_Read... [16:15:44]Read from MH i2c: 01 [16:15:44]MH_I2C_Read... [16:15:44]Read from MH i2c: 01 07 00 [16:15:44]MH_I2C_Read... [16:15:44]Read from MH i2c: 01 07 00 84 0A 00 00 00 00 00 FF 0F A3 [16:15:44]RasterBufferAndPrint [16:15:44]line Счет N : (1)949096 [16:15:44]line ИНН: 02508201610067 [16:15:44]line Контрольно-Кассовый Чек [16:15:45]line ПРОДАЖА [16:15:45]line ТРК (МРК, ГНК) : 41 [16:15:45]line Товар: 2710124130 [16:15:45]line Аи-92-К-4 [16:15:45]line 14.750 * 67.80 [16:15:45]line = 1000.05 [16:15:45]line НДС 12% НСП 1% [16:15:45]line > о реализуемом товаре [16:15:45]line ОКРУГЛЕНИЕ: -0.05 [16:15:45]line ИТОГО: 1000.00 [16:15:45]line Внесено: 1000.00 [16:15:45]line СДАЧА: 0.00 [16:15:45]line НСП 1% : 8.85 [16:15:45]line НДС 12% : 106.20 [16:15:45]line Наличными: 1000.00 [16:15:45]line Безнал.: 0.00 [16:15:45]line Место: АЗС № 134 "Партнер Нефть" [16:15:45]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:15:45]line СНО: Общий режим [16:15:45]line Чек 166 27.07.2024 16:15 [16:15:45]line Смена: 432 ФФД: 1.0 [16:15:45]line ЗНМ: 0300000044 [16:15:45]line РНМ: 0000000000092660 [16:15:45]line Версия ККМ: 001 [16:15:45]line ФМ: 0000000000874939 [16:15:45]line ФД: 118223 [16:15:45]line ФПД: 165722886620308 [16:15:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T161543&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118223&fm=165722886620308&tin=02508201610067®Number=0000000000092660&sum=100000 [16:15:45]written 0, free lines is 4095 [16:15:45]Connected sock=9 [16:15:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 DF 2E 07 01 37 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 39 04 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A2 CD 01 00 35 04 06 00 FE 7C BC 57 35 DB 17 2B 3B 01 EB 57 29 BC [16:15:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 18 FD 47 00 CB 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A2 CD 01 00 F4 03 04 00 C1 CA A4 66 B6 04 01 00 00 D8 A1 F6 D7 1B E0 C6 8A [16:15:45]CommunicateWithHost err = 0 [16:15:45]CheckOFDResponse [16:15:45]1017 (14) - 77093643461234 [16:15:45]1041 (16) - 0000000000874939 [16:15:45]1040 (4) - 118178 [16:15:45]1012 (4) - 27.07.2024 10:24 [16:15:45]1206 (1) - 0 [16:15:45]OFD Sender: Remove packet 118178 [16:15:45]ProducePacketName [16:15:45]name=ofd_packets/00118178 [16:15:45]NVStorageDeleteData [16:15:45]Write to MH i2c: 01 00 00 AE 0A B8 [16:15:45]Write i2c OK [16:15:45]MH_I2C_Read... [16:15:45]Read from MH i2c: 01 [16:15:45]MH_I2C_Read... [16:15:45]Read from MH i2c: 01 07 00 [16:15:45]MH_I2C_Read... [16:15:45]Read from MH i2c: 01 07 00 AE 0A 00 00 00 00 00 F2 0C BD [16:15:45]RasterBufferAndPrint [16:15:45]line [16:15:45]line [16:15:45]line [16:15:45]line [16:15:45]line [16:15:45]written 0, free lines is 3325 [16:15:45]MH_Cut [16:15:45]Write to MH i2c: D1 01 00 B5 0A 01 91 [16:15:45]Write i2c OK [16:15:45]MH_I2C_Read... [16:15:45]Read from MH i2c: D1 [16:15:45]MH_I2C_Read... [16:15:45]Read from MH i2c: D1 01 00 [16:15:45]MH_I2C_Read... [16:15:45]Read from MH i2c: D1 01 00 B5 0A 00 90 [16:15:45]Write to MH i2c: 01 00 00 B6 0A C0 [16:15:45]Write i2c OK [16:15:45]MH_I2C_Read... [16:15:45]OFD Sender: Processing packet 118179 [packets to send 129, broken 85] [16:15:45]ProducePacketName [16:15:45]name=ofd_packets/00118179 [16:15:45]OFD Sender: To server: pG, [16:15:45]CommunicateWithHost lk.salyk.kg:30040 [16:15:45]ConnectInit lk.salyk.kg [16:15:45]Connected sock=9 [16:15:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7F A6 07 01 6B A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 3F 04 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A3 CD 01 00 35 04 06 00 EC A7 7F 1D 98 69 22 2D 38 30 69 FA AE B4 [16:15:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C2 05 47 00 73 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 34 39 33 39 10 04 04 00 A3 CD 01 00 F4 03 04 00 C2 CA A4 66 B6 04 01 00 00 21 3E EC 2C C6 CF 3B 25 [16:15:46]CommunicateWithHost err = 0 [16:15:46]CheckOFDResponse [16:15:46]1017 (14) - 77093643461234 [16:15:46]1041 (16) - 0000000000874939 [16:15:46]1040 (4) - 118179 [16:15:46]1012 (4) - 27.07.2024 10:24 [16:15:46]1206 (1) - 0 [16:15:46]OFD Sender: Remove packet 118179 [16:15:46]ProducePacketName [16:15:46]name=ofd_packets/00118179 [16:15:46]NVStorageDeleteData [16:15:46]*** Cut start [16:15:46]*** Partial cut [16:15:46]*** CUTSNS_PIN = 1 [16:15:46]*** CUTSNS_PIN = 0 [16:15:46]*** Brake cut motor [16:15:46]OFD Sender: Processing packet 118180 [packets to send 128, broken 85] [16:15:46]ProducePacketName [16:15:46]name=ofd_packets/00118180 [16:15:46]OFD Sender: To server: pG, [16:15:46]CommunicateWithHost lk.salyk.kg:30040 [16:15:46]ConnectInit lk.salyk.kg [16:15:46]Read from MH i2c: 01 [16:15:46]MH_I2C_Read... [16:15:46]*** Stop cut motor [16:15:46]*** Cut end [16:15:46]Read from MH i2c: 01 07 00 [16:15:46]MH_I2C_Read... [16:15:46]Read from MH i2c: 01 07 00 B6 0A 00 00 00 00 00 FF 0F D5 [16:15:46]process_action close_receipt done [16:15:46]requested_data is exist [16:15:46]produce_requested_data [16:15:46]requested_item fm.sn is exist - process it [16:15:46]wFMCommunicate request_size=4 [16:15:46]MH_SAM_APDU [16:15:46]CAPDU: 80 11 00 00 [16:15:46]Write to MH i2c: E2 08 00 B7 0A 80 11 00 00 00 00 00 00 3B [16:15:46]Write i2c OK [16:15:46]MH_I2C_Read... [16:15:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:46]Read from MH i2c: E2 [16:15:46]MH_I2C_Read... [16:15:46]Read from MH i2c: E2 17 00 [16:15:46]MH_I2C_Read... [16:15:46]Read from MH i2c: E2 17 00 B7 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 96 [16:15:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:15:46]wFMCommunicate OK [16:15:46]requested_item fd.num is exist - process it [16:15:46]SAM_PROTO_GetFieldsCounters [16:15:46]wFMCommunicate request_size=4 [16:15:46]MH_SAM_APDU [16:15:46]CAPDU: 80 13 00 00 [16:15:46]Write to MH i2c: E2 08 00 B8 0A 80 13 00 00 00 00 00 00 3E [16:15:46]Connected sock=9 [16:15:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 4C 24 04 01 CC 84 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 DF 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 52 A3 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A3 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 B4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A3 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 7B 04 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A4 CD 01 00 35 04 06 00 EE 6D 8D 35 86 F8 DA 5D B6 B9 08 7E 5A 5F [16:15:46]Write i2c OK [16:15:46]MH_I2C_Read... [16:15:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:15:46]Read from MH i2c: E2 [16:15:46]MH_I2C_Read... [16:15:47]Read from MH i2c: E2 62 00 [16:15:47]MH_I2C_Read... [16:15:47]Read from MH i2c: E2 62 00 B8 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CF CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [16:15:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CF CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:15:47]wFMCommunicate OK [16:15:47]SAM_PROTO_GetFieldsCounters done [16:15:47]requested_item shift.num is exist - process it [16:15:47]requested_item shift.opened is exist - process it [16:15:47]req_shift_opened [16:15:47]FM_GetShiftState [16:15:47]SAM_PROTO_GetShiftState [16:15:47]wFMCommunicate request_size=4 [16:15:47]MH_SAM_APDU [16:15:47]CAPDU: 80 13 01 00 [16:15:47]Write to MH i2c: E2 08 00 B9 0A 80 13 01 00 00 00 00 00 40 [16:15:47]Write i2c OK [16:15:47]MH_I2C_Read... [16:15:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 41 B6 47 00 23 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A4 CD 01 00 F4 03 04 00 C3 CA A4 66 B6 04 01 00 00 74 3B E8 AF 01 CD 4B F9 [16:15:47]CommunicateWithHost err = 0 [16:15:47]CheckOFDResponse [16:15:47]1017 (14) - 77093643461234 [16:15:47]1041 (16) - 0000000000874939 [16:15:47]1040 (4) - 118180 [16:15:47]1012 (4) - 27.07.2024 10:24 [16:15:47]1206 (1) - 0 [16:15:47]OFD Sender: Remove packet 118180 [16:15:47]ProducePacketName [16:15:47]name=ofd_packets/00118180 [16:15:47]NVStorageDeleteData [16:15:47]Read from MH i2c: E2 [16:15:47]MH_I2C_Read... [16:15:47]Read from MH i2c: E2 0E 00 [16:15:47]MH_I2C_Read... [16:15:47]Read from MH i2c: E2 0E 00 B9 0A 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 CD [16:15:47]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [16:15:47]wFMCommunicate OK [16:15:47]SAM_PROTO_GetShiftState done [16:15:47]FM_GetShiftState done [16:15:47]req_shift_opened done [16:15:47]requested_item shift.open_date is exist - process it [16:15:47]req_shift_open_date [16:15:47]req_shift_open_date done [16:15:47]produce_requested_data done [16:15:47]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118223,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [16:15:47]process_action_free close_receipt [16:15:47]json_value_free [16:15:47]json_value_free done [16:15:47]process_json_proto returns [16:15:47]Send response to host [16:15:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118223,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [16:15:47]free response buf [16:15:47]execute_script done [16:15:47]execute_script returns [16:15:47]free content buf [16:15:47]Sock 10.Close socket [16:15:47]Sock 10.Thread stoped [16:15:47]OFD Sender: Processing packet 118181 [packets to send 127, broken 85] [16:15:47]ProducePacketName [16:15:47]name=ofd_packets/00118181 [16:15:47]OFD Sender: To server: pG, [16:15:47]CommunicateWithHost lk.salyk.kg:30040 [16:15:47]ConnectInit lk.salyk.kg [16:15:47]Connected sock=9 [16:15:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 82 C8 23 01 77 40 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 8B 04 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 A2 CD 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A5 CD 01 00 35 04 06 00 6D 6D 77 75 72 D6 C9 D4 07 72 06 07 49 58 [16:15:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 CD B1 47 00 66 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 34 39 33 39 10 04 04 00 A5 CD 01 00 F4 03 04 00 C4 CA A4 66 B6 04 01 00 00 0D AA E8 32 ED 33 E7 07 [16:15:47]CommunicateWithHost err = 0 [16:15:47]CheckOFDResponse [16:15:47]1017 (14) - 77093643461234 [16:15:47]1041 (16) - 0000000000874939 [16:15:47]1040 (4) - 118181 [16:15:47]1012 (4) - 27.07.2024 10:24 [16:15:47]1206 (1) - 0 [16:15:47]OFD Sender: Remove packet 118181 [16:15:47]ProducePacketName [16:15:47]name=ofd_packets/00118181 [16:15:47]NVStorageDeleteData [16:15:48]OFD Sender: Processing packet 118182 [packets to send 126, broken 85] [16:15:48]ProducePacketName [16:15:48]name=ofd_packets/00118182 [16:15:48]OFD Sender: To server: pG, [16:15:48]CommunicateWithHost lk.salyk.kg:30040 [16:15:48]ConnectInit lk.salyk.kg [16:15:48]Connected sock=9 [16: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 34 39 33 39 0F 01 00 00 05 C8 07 01 74 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 90 04 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A6 CD 01 00 35 04 06 00 DA 3D CD 17 F8 3D 77 79 4E 16 1E A3 28 BF [16:15:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 7F D4 47 00 77 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A6 CD 01 00 F4 03 04 00 C5 CA A4 66 B6 04 01 00 00 DD 44 26 3A 43 85 16 1A [16:15:48]CommunicateWithHost err = 0 [16:15:48]CheckOFDResponse [16:15:48]1017 (14) - 77093643461234 [16:15:48]1041 (16) - 0000000000874939 [16:15:48]1040 (4) - 118182 [16:15:48]1012 (4) - 27.07.2024 10:24 [16:15:48]1206 (1) - 0 [16:15:48]OFD Sender: Remove packet 118182 [16:15:48]ProducePacketName [16:15:48]name=ofd_packets/00118182 [16:15:48]NVStorageDeleteData [16:15:49]OFD Sender: Processing packet 118183 [packets to send 125, broken 85] [16:15:49]ProducePacketName [16:15:49]name=ofd_packets/00118183 [16:15:49]OFD Sender: To server: pG, [16:15:49]CommunicateWithHost lk.salyk.kg:30040 [16:15:49]ConnectInit lk.salyk.kg [16:15:49]Connected sock=10 [16:15:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C6 6B 07 01 B9 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7E 00 00 00 F4 03 04 00 0D 05 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A7 CD 01 00 35 04 06 00 CF FE 0F 88 17 BD A4 21 EA D7 21 55 F9 D5 [16:15:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 24 37 47 00 01 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A7 CD 01 00 F4 03 04 00 C6 CA A4 66 B6 04 01 00 00 E5 6C EA 92 1A D6 33 B2 [16:15:49]CommunicateWithHost err = 0 [16:15:49]CheckOFDResponse [16:15:49]1017 (14) - 77093643461234 [16:15:49]1041 (16) - 0000000000874939 [16:15:49]1040 (4) - 118183 [16:15:49]1012 (4) - 27.07.2024 10:24 [16:15:49]1206 (1) - 0 [16:15:49]OFD Sender: Remove packet 118183 [16:15:49]ProducePacketName [16:15:49]name=ofd_packets/00118183 [16:15:49]NVStorageDeleteData [16:15:50]OFD Sender: Processing packet 118184 [packets to send 124, broken 85] [16:15:50]ProducePacketName [16:15:50]name=ofd_packets/00118184 [16:15:50]OFD Sender: To server: pG, [16:15:50]CommunicateWithHost lk.salyk.kg:30040 [16:15:50]ConnectInit lk.salyk.kg [16:15:50]Connected sock=9 [16:15:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 D0 59 04 01 2E 0F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE 21 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 11 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 C9 05 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A8 CD 01 00 35 04 06 00 9C AA 35 30 F7 FA B4 08 29 08 75 BB 23 6D [16:15:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B7 86 47 00 01 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A8 CD 01 00 F4 03 04 00 C7 CA A4 66 B6 04 01 00 00 AB D8 97 B0 31 0E 6C 82 [16:15:50]CommunicateWithHost err = 0 [16:15:50]CheckOFDResponse [16:15:50]1017 (14) - 77093643461234 [16:15:50]1041 (16) - 0000000000874939 [16:15:50]1040 (4) - 118184 [16:15:50]1012 (4) - 27.07.2024 10:24 [16:15:50]1206 (1) - 0 [16:15:50]OFD Sender: Remove packet 118184 [16:15:50]ProducePacketName [16:15:50]name=ofd_packets/00118184 [16:15:50]NVStorageDeleteData [16:15:50]OFD Sender: Processing packet 118185 [packets to send 123, broken 85] [16:15:50]ProducePacketName [16:15:50]name=ofd_packets/00118185 [16:15:50]OFD Sender: To server: pG, [16:15:50]CommunicateWithHost lk.salyk.kg:30040 [16:15:50]ConnectInit lk.salyk.kg [16:15:51]Connected sock=9 [16:15:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 91 DB 04 01 01 2A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 EF 05 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A9 CD 01 00 35 04 06 00 2F DB AF AB 48 CF 57 6E 7D 41 F2 15 81 7F [16:15:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 36 68 47 00 2C 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A9 CD 01 00 F4 03 04 00 C7 CA A4 66 B6 04 01 00 00 88 50 1B EA 83 D6 39 ED [16:15:51]CommunicateWithHost err = 0 [16:15:51]CheckOFDResponse [16:15:51]1017 (14) - 77093643461234 [16:15:51]1041 (16) - 0000000000874939 [16:15:51]1040 (4) - 118185 [16:15:51]1012 (4) - 27.07.2024 10:24 [16:15:51]1206 (1) - 0 [16:15:51]OFD Sender: Remove packet 118185 [16:15:51]ProducePacketName [16:15:51]name=ofd_packets/00118185 [16:15:51]NVStorageDeleteData [16:15:51]OFD Sender: Processing packet 118186 [packets to send 122, broken 85] [16:15:51]ProducePacketName [16:15:51]name=ofd_packets/00118186 [16:15:51]OFD Sender: To server: pG, [16:15:51]CommunicateWithHost lk.salyk.kg:30040 [16:15:51]ConnectInit lk.salyk.kg [16:15:51]Connected sock=9 [16:15:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F9 75 04 01 A9 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 05 06 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AA CD 01 00 35 04 06 00 79 DC 8E 32 57 A4 68 9F E8 8E D2 02 C9 F1 [16:15:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 EE 10 47 00 50 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AA CD 01 00 F4 03 04 00 C8 CA A4 66 B6 04 01 00 00 A5 77 90 EF 63 7E 27 F2 [16:15:52]CommunicateWithHost err = 0 [16:15:52]CheckOFDResponse [16:15:52]1017 (14) - 77093643461234 [16:15:52]1041 (16) - 0000000000874939 [16:15:52]1040 (4) - 118186 [16:15:52]1012 (4) - 27.07.2024 10:24 [16:15:52]1206 (1) - 0 [16:15:52]OFD Sender: Remove packet 118186 [16:15:52]ProducePacketName [16:15:52]name=ofd_packets/00118186 [16:15:52]NVStorageDeleteData [16:15:52]OFD Sender: Processing packet 118188 [packets to send 121, broken 85] [16:15:52]ProducePacketName [16:15:52]name=ofd_packets/00118188 [16:15:52]OFD Sender: To server: pG, [16:15:52]CommunicateWithHost lk.salyk.kg:30040 [16:15:52]ConnectInit lk.salyk.kg [16:15:52]Connected sock=9 [16:15:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 28 01 00 00 CD 4E 20 01 AD FC 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 5C 06 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 AB CD 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AC CD 01 00 35 04 06 00 7A BF DF D3 29 26 B0 7D DA 59 DB 2A 7F E2 [16:15:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 59 AD 47 00 08 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AC CD 01 00 F4 03 04 00 C9 CA A4 66 B6 04 01 00 00 B7 B7 6C 4A B3 C6 96 FB [16:15:53]CommunicateWithHost err = 0 [16:15:53]CheckOFDResponse [16:15:53]1017 (14) - 77093643461234 [16:15:53]1041 (16) - 0000000000874939 [16:15:53]1040 (4) - 118188 [16:15:53]1012 (4) - 27.07.2024 10:24 [16:15:53]1206 (1) - 0 [16:15:53]OFD Sender: Remove packet 118188 [16:15:53]ProducePacketName [16:15:53]name=ofd_packets/00118188 [16:15:53]NVStorageDeleteData [16:15:53]OFD Sender: Processing packet 118189 [packets to send 120, broken 85] [16:15:53]ProducePacketName [16:15:53]name=ofd_packets/00118189 [16:15:53]OFD Sender: To server: pG, [16:15:53]CommunicateWithHost lk.salyk.kg:30040 [16:15:53]ConnectInit lk.salyk.kg [16:15:53]Connected sock=9 [16:15:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 85 90 04 01 A0 F6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 34 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C7 8C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 8C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 83 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 2A 00 00 00 00 07 04 06 00 7C 8C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 61 06 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AD CD 01 00 35 04 06 00 BF F7 08 11 A3 71 BF 84 C9 C0 A3 0F DB 94 [16:15:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 9A 34 47 00 D4 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AD CD 01 00 F4 03 04 00 CA CA A4 66 B6 04 01 00 00 7B 27 36 FD FE D9 A2 5E [16:15:53]CommunicateWithHost err = 0 [16:15:53]CheckOFDResponse [16:15:53]1017 (14) - 77093643461234 [16:15:53]1041 (16) - 0000000000874939 [16:15:53]1040 (4) - 118189 [16:15:53]1012 (4) - 27.07.2024 10:24 [16:15:53]1206 (1) - 0 [16:15:53]OFD Sender: Remove packet 118189 [16:15:53]ProducePacketName [16:15:53]name=ofd_packets/00118189 [16:15:53]NVStorageDeleteData [16:15:54]OFD Sender: Processing packet 118190 [packets to send 119, broken 85] [16:15:54]ProducePacketName [16:15:54]name=ofd_packets/00118190 [16:15:54]OFD Sender: To server: pG, [16:15:54]CommunicateWithHost lk.salyk.kg:30040 [16:15:54]ConnectInit lk.salyk.kg [16:15:54]Connected sock=10 [16:15:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 66 25 07 01 EC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 B6 49 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 FE 06 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AE CD 01 00 35 04 06 00 F8 A3 06 A8 46 72 C9 67 86 A6 C5 69 23 96 [16:15:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 65 70 47 00 5D 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AE CD 01 00 F4 03 04 00 CB CA A4 66 B6 04 01 00 00 F2 66 54 FB 4F 68 29 1D [16:15:54]CommunicateWithHost err = 0 [16:15:54]CheckOFDResponse [16:15:54]1017 (14) - 77093643461234 [16:15:54]1041 (16) - 0000000000874939 [16:15:54]1040 (4) - 118190 [16:15:54]1012 (4) - 27.07.2024 10:24 [16:15:54]1206 (1) - 0 [16:15:54]OFD Sender: Remove packet 118190 [16:15:54]ProducePacketName [16:15:54]name=ofd_packets/00118190 [16:15:54]NVStorageDeleteData [16:15:55]OFD Sender: Processing packet 118191 [packets to send 118, broken 85] [16:15:55]ProducePacketName [16:15:55]name=ofd_packets/00118191 [16:15:55]OFD Sender: To server: pG, [16:15:55]CommunicateWithHost lk.salyk.kg:30040 [16:15:55]ConnectInit lk.salyk.kg [16:15:55]Connected sock=9 [16:15:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 79 0A 07 01 3A E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 86 00 00 00 F4 03 04 00 EA 07 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AF CD 01 00 35 04 06 00 A8 EA 7C 5E E7 F7 49 9C 75 DB F2 B2 F2 3F [16:15:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 7E F2 47 00 97 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 34 39 33 39 10 04 04 00 AF CD 01 00 F4 03 04 00 CC CA A4 66 B6 04 01 00 00 83 C6 B9 EA 76 7E A5 C8 [16:15:55]CommunicateWithHost err = 0 [16:15:55]CheckOFDResponse [16:15:55]1017 (14) - 77093643461234 [16:15:55]1041 (16) - 0000000000874939 [16:15:55]1040 (4) - 118191 [16:15:55]1012 (4) - 27.07.2024 10:24 [16:15:55]1206 (1) - 0 [16:15:55]OFD Sender: Remove packet 118191 [16:15:55]ProducePacketName [16:15:55]name=ofd_packets/00118191 [16:15:55]NVStorageDeleteData [16:15:56]OFD Sender: Processing packet 118192 [packets to send 117, broken 85] [16:15:56]ProducePacketName [16:15:56]name=ofd_packets/00118192 [16:15:56]OFD Sender: To server: pG, [16:15:56]CommunicateWithHost lk.salyk.kg:30040 [16:15:56]ConnectInit lk.salyk.kg [16:15:56]Connected sock=9 [16:15:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E2 3D 07 01 72 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 87 00 00 00 F4 03 04 00 21 09 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B0 CD 01 00 35 04 06 00 38 FF 6B 7A 1E BD DD 1C 8A 24 E0 A1 D5 0F [16:15:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 47 6E 47 00 ED 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B0 CD 01 00 F4 03 04 00 CD CA A4 66 B6 04 01 00 00 5B 92 F1 33 9E 03 FB 14 [16:15:56]CommunicateWithHost err = 0 [16:15:56]CheckOFDResponse [16:15:56]1017 (14) - 77093643461234 [16:15:56]1041 (16) - 0000000000874939 [16:15:56]1040 (4) - 118192 [16:15:56]1012 (4) - 27.07.2024 10:24 [16:15:56]1206 (1) - 0 [16:15:56]OFD Sender: Remove packet 118192 [16:15:56]ProducePacketName [16:15:56]name=ofd_packets/00118192 [16:15:56]NVStorageDeleteData [16:15:57]OFD Sender: Processing packet 118193 [packets to send 116, broken 85] [16:15:57]ProducePacketName [16:15:57]name=ofd_packets/00118193 [16:15:57]OFD Sender: To server: pG, [16:15:57]CommunicateWithHost lk.salyk.kg:30040 [16:15:57]ConnectInit lk.salyk.kg [16:15:57]Connected sock=9 [16:15:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 9F 79 07 01 EC 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 88 00 00 00 F4 03 04 00 02 0A A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B1 CD 01 00 35 04 06 00 B2 78 4D 20 7A A0 1F E0 FC 9C 0A AB 86 24 [16:15:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 27 6B 47 00 0A AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B1 CD 01 00 F4 03 04 00 CE CA A4 66 B6 04 01 00 00 F4 05 CE 42 E5 06 C3 B8 [16:15:57]CommunicateWithHost err = 0 [16:15:57]CheckOFDResponse [16:15:57]1017 (14) - 77093643461234 [16:15:57]1041 (16) - 0000000000874939 [16:15:57]1040 (4) - 118193 [16:15:57]1012 (4) - 27.07.2024 10:24 [16:15:57]1206 (1) - 0 [16:15:57]OFD Sender: Remove packet 118193 [16:15:57]ProducePacketName [16:15:57]name=ofd_packets/00118193 [16:15:57]NVStorageDeleteData [16:15:58]OFD Sender: Processing packet 118194 [packets to send 115, broken 85] [16:15:58]ProducePacketName [16:15:58]name=ofd_packets/00118194 [16:15:58]OFD Sender: To server: pG, [16:15:58]CommunicateWithHost lk.salyk.kg:30040 [16:15:58]ConnectInit lk.salyk.kg [16:15:58]Connected sock=9 [16:15:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B9 60 04 01 4E 3B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 75 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 82 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 06 0A A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B2 CD 01 00 35 04 06 00 57 32 94 30 58 B5 04 10 5A 65 DD D6 95 3F [16:15:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 6B A6 47 00 12 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B2 CD 01 00 F4 03 04 00 CE CA A4 66 B6 04 01 00 00 BF 2E E0 76 FE C5 48 69 [16:15:58]CommunicateWithHost err = 0 [16:15:58]CheckOFDResponse [16:15:58]1017 (14) - 77093643461234 [16:15:58]1041 (16) - 0000000000874939 [16:15:58]1040 (4) - 118194 [16:15:58]1012 (4) - 27.07.2024 10:24 [16:15:58]1206 (1) - 0 [16:15:58]OFD Sender: Remove packet 118194 [16:15:58]ProducePacketName [16:15:58]name=ofd_packets/00118194 [16:15:58]NVStorageDeleteData [16:15:58]OFD Sender: Processing packet 118195 [packets to send 114, broken 85] [16:15:58]ProducePacketName [16:15:58]name=ofd_packets/00118195 [16:15:58]OFD Sender: To server: pG, [16:15:58]CommunicateWithHost lk.salyk.kg:30040 [16:15:58]ConnectInit lk.salyk.kg [16:15:58]Connected sock=9 [16:15:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7C 44 07 01 17 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 34 FF 03 08 00 03 44 20 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C3 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 17 00 00 00 00 07 04 06 00 C0 DA 00 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 AB 0B A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B3 CD 01 00 35 04 06 00 06 E5 02 9C FC 5F 0E 93 49 B1 41 0E FD 87 [16:15:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 FF F2 47 00 FE BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B3 CD 01 00 F4 03 04 00 CF CA A4 66 B6 04 01 00 00 22 B9 D6 21 BA CE 85 1C [16:15:59]CommunicateWithHost err = 0 [16:15:59]CheckOFDResponse [16:15:59]1017 (14) - 77093643461234 [16:15:59]1041 (16) - 0000000000874939 [16:15:59]1040 (4) - 118195 [16:15:59]1012 (4) - 27.07.2024 10:24 [16:15:59]1206 (1) - 0 [16:15:59]OFD Sender: Remove packet 118195 [16:15:59]ProducePacketName [16:15:59]name=ofd_packets/00118195 [16:15:59]NVStorageDeleteData [16:15:59]OFD Sender: Processing packet 118196 [packets to send 113, broken 85] [16:15:59]ProducePacketName [16:15:59]name=ofd_packets/00118196 [16:15:59]OFD Sender: To server: pG, [16:15:59]CommunicateWithHost lk.salyk.kg:30040 [16:15:59]ConnectInit lk.salyk.kg [16:15:59]Connected sock=5 [16:15:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 31 69 07 01 76 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 32 0D A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B4 CD 01 00 35 04 06 00 80 5B 05 B1 EE 04 7B 35 92 59 6E AE 0C A9 [16:16:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 83 AF 47 00 D9 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 34 39 33 39 10 04 04 00 B4 CD 01 00 F4 03 04 00 D0 CA A4 66 B6 04 01 00 00 48 4E 20 5B 85 39 7B A4 [16:16:00]CommunicateWithHost err = 0 [16:16:00]CheckOFDResponse [16:16:00]1017 (14) - 77093643461234 [16:16:00]1041 (16) - 0000000000874939 [16:16:00]1040 (4) - 118196 [16:16:00]1012 (4) - 27.07.2024 10:24 [16:16:00]1206 (1) - 0 [16:16:00]OFD Sender: Remove packet 118196 [16:16:00]ProducePacketName [16:16:00]name=ofd_packets/00118196 [16:16:00]NVStorageDeleteData [16:16:00]OFD Sender: Processing packet 118197 [packets to send 112, broken 85] [16:16:00]ProducePacketName [16:16:00]name=ofd_packets/00118197 [16:16:00]OFD Sender: To server: pG, [16:16:00]CommunicateWithHost lk.salyk.kg:30040 [16:16:00]ConnectInit lk.salyk.kg [16:16:00]Connected sock=5 [16:16:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 76 FF 04 01 67 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 51 0E A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B5 CD 01 00 35 04 06 00 DD 96 A1 68 32 A1 EC 0E 20 8C BB B5 5E 3E [16:16:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 26 69 47 00 88 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B5 CD 01 00 F4 03 04 00 D1 CA A4 66 B6 04 01 00 00 27 03 BD 9A 2B 10 A8 73 [16:16:01]CommunicateWithHost err = 0 [16:16:01]CheckOFDResponse [16:16:01]1017 (14) - 77093643461234 [16:16:01]1041 (16) - 0000000000874939 [16:16:01]1040 (4) - 118197 [16:16:01]1012 (4) - 27.07.2024 10:24 [16:16:01]1206 (1) - 0 [16:16:01]OFD Sender: Remove packet 118197 [16:16:01]ProducePacketName [16:16:01]name=ofd_packets/00118197 [16:16:01]NVStorageDeleteData [16:16:01]OFD Sender: Processing packet 118198 [packets to send 111, broken 85] [16:16:01]ProducePacketName [16:16:01]name=ofd_packets/00118198 [16:16:01]OFD Sender: To server: pG, [16:16:01]CommunicateWithHost lk.salyk.kg:30040 [16:16:01]ConnectInit lk.salyk.kg [16:16:01]Connected sock=5 [16:16:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 BB C4 04 01 0D 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 A7 0E A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B6 CD 01 00 35 04 06 00 F7 66 8C CD BC 2F 0D 67 BA F4 56 72 E5 64 [16:16:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 71 61 47 00 71 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B6 CD 01 00 F4 03 04 00 D2 CA A4 66 B6 04 01 00 00 4C 8F FE F7 62 AA 54 F2 [16:16:02]CommunicateWithHost err = 0 [16:16:02]CheckOFDResponse [16:16:02]1017 (14) - 77093643461234 [16:16:02]1041 (16) - 0000000000874939 [16:16:02]1040 (4) - 118198 [16:16:02]1012 (4) - 27.07.2024 10:24 [16:16:02]1206 (1) - 0 [16:16:02]OFD Sender: Remove packet 118198 [16:16:02]ProducePacketName [16:16:02]name=ofd_packets/00118198 [16:16:02]NVStorageDeleteData [16:16:02]OFD Sender: Processing packet 118199 [packets to send 110, broken 85] [16:16:02]ProducePacketName [16:16:02]name=ofd_packets/00118199 [16:16:02]OFD Sender: To server: pG, [16:16:02]CommunicateWithHost lk.salyk.kg:30040 [16:16:02]ConnectInit lk.salyk.kg [16:16:02]Connected sock=5 [16:16:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 41 40 07 01 37 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 12 25 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 56 FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 1A 00 00 00 00 07 04 06 00 2C FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 E4 0E A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B7 CD 01 00 35 04 06 00 15 19 B6 22 02 DC E5 C7 26 BB 5B 8C BB 5B [16:16:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 00 A2 47 00 5A 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 34 39 33 39 10 04 04 00 B7 CD 01 00 F4 03 04 00 D3 CA A4 66 B6 04 01 00 00 4C 9A 99 A5 94 F3 B8 44 [16:16:02]CommunicateWithHost err = 0 [16:16:02]CheckOFDResponse [16:16:02]1017 (14) - 77093643461234 [16:16:02]1041 (16) - 0000000000874939 [16:16:02]1040 (4) - 118199 [16:16:02]1012 (4) - 27.07.2024 10:24 [16:16:02]1206 (1) - 0 [16:16:02]OFD Sender: Remove packet 118199 [16:16:02]ProducePacketName [16:16:02]name=ofd_packets/00118199 [16:16:02]NVStorageDeleteData [16:16:03]OFD Sender: Processing packet 118200 [packets to send 109, broken 85] [16:16:03]ProducePacketName [16:16:03]name=ofd_packets/00118200 [16:16:03]OFD Sender: To server: pG, [16:16:03]CommunicateWithHost lk.salyk.kg:30040 [16:16:03]ConnectInit lk.salyk.kg [16:16:03]Connected sock=5 [16:16:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 0F 91 04 01 9E 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 3D 0F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B8 CD 01 00 35 04 06 00 92 C9 67 04 C0 3E C1 F6 FF CB FB 46 F6 6A [16:16:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 8B EA 47 00 4B C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B8 CD 01 00 F4 03 04 00 D4 CA A4 66 B6 04 01 00 00 EA 9C 15 6E 51 B9 D1 0C [16:16:03]CommunicateWithHost err = 0 [16:16:03]CheckOFDResponse [16:16:03]1017 (14) - 77093643461234 [16:16:03]1041 (16) - 0000000000874939 [16:16:03]1040 (4) - 118200 [16:16:03]1012 (4) - 27.07.2024 10:24 [16:16:03]1206 (1) - 0 [16:16:03]OFD Sender: Remove packet 118200 [16:16:03]ProducePacketName [16:16:03]name=ofd_packets/00118200 [16:16:03]NVStorageDeleteData [16:16:04]OFD Sender: Processing packet 118201 [packets to send 108, broken 85] [16:16:04]ProducePacketName [16:16:04]name=ofd_packets/00118201 [16:16:04]OFD Sender: To server: pG, [16:16:04]CommunicateWithHost lk.salyk.kg:30040 [16:16:04]ConnectInit lk.salyk.kg [16:16:04]Connected sock=5 [16:16:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 EB 57 07 01 2F 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 AD 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 90 00 00 00 F4 03 04 00 99 0F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B9 CD 01 00 35 04 06 00 9C 1C 4C 2A 0E 8C 7C C3 30 4D 76 A9 EC 5D [16:16:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B4 2C 47 00 78 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 34 39 33 39 10 04 04 00 B9 CD 01 00 F4 03 04 00 D5 CA A4 66 B6 04 01 00 00 4D 17 AB B1 85 0A E2 67 [16:16:04]CommunicateWithHost err = 0 [16:16:04]CheckOFDResponse [16:16:04]1017 (14) - 77093643461234 [16:16:04]1041 (16) - 0000000000874939 [16:16:04]1040 (4) - 118201 [16:16:04]1012 (4) - 27.07.2024 10:24 [16:16:04]1206 (1) - 0 [16:16:04]OFD Sender: Remove packet 118201 [16:16:04]ProducePacketName [16:16:04]name=ofd_packets/00118201 [16:16:04]NVStorageDeleteData [16:16:05]OFD Sender: Processing packet 118202 [packets to send 107, broken 85] [16:16:05]ProducePacketName [16:16:05]name=ofd_packets/00118202 [16:16:05]OFD Sender: To server: pG, [16:16:05]CommunicateWithHost lk.salyk.kg:30040 [16:16:05]ConnectInit lk.salyk.kg [16:16:05]Connected sock=9 [16:16:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 28 04 07 01 22 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 F3 0F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BA CD 01 00 35 04 06 00 13 DE 82 1C B2 1A 73 72 07 F8 70 EF 47 93 [16:16:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D7 80 47 00 31 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 34 39 33 39 10 04 04 00 BA CD 01 00 F4 03 04 00 D6 CA A4 66 B6 04 01 00 00 B6 0E 9A EF B0 98 D7 C8 [16:16:05]CommunicateWithHost err = 0 [16:16:05]CheckOFDResponse [16:16:05]1017 (14) - 77093643461234 [16:16:05]1041 (16) - 0000000000874939 [16:16:05]1040 (4) - 118202 [16:16:05]1012 (4) - 27.07.2024 10:24 [16:16:05]1206 (1) - 0 [16:16:05]OFD Sender: Remove packet 118202 [16:16:05]ProducePacketName [16:16:05]name=ofd_packets/00118202 [16:16:05]NVStorageDeleteData [16:16:06]OFD Sender: Processing packet 118203 [packets to send 106, broken 85] [16:16:06]ProducePacketName [16:16:06]name=ofd_packets/00118203 [16:16:06]OFD Sender: To server: pG, [16:16:06]CommunicateWithHost lk.salyk.kg:30040 [16:16:06]ConnectInit lk.salyk.kg [16:16:06]Connected sock=9 [16:16:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D0 EE 07 01 80 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 7D 10 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BB CD 01 00 35 04 06 00 95 AF 1C 36 1A C0 1B 85 0A 55 A6 8B 0D 8A [16:16:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 6B 0C 47 00 89 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 34 39 33 39 10 04 04 00 BB CD 01 00 F4 03 04 00 D7 CA A4 66 B6 04 01 00 00 D1 15 DC C1 7F 71 8C 95 [16:16:06]CommunicateWithHost err = 0 [16:16:06]CheckOFDResponse [16:16:06]1017 (14) - 77093643461234 [16:16:06]1041 (16) - 0000000000874939 [16:16:06]1040 (4) - 118203 [16:16:06]1012 (4) - 27.07.2024 10:24 [16:16:06]1206 (1) - 0 [16:16:06]OFD Sender: Remove packet 118203 [16:16:06]ProducePacketName [16:16:06]name=ofd_packets/00118203 [16:16:06]NVStorageDeleteData [16:16:07]OFD Sender: Processing packet 118204 [packets to send 105, broken 85] [16:16:07]ProducePacketName [16:16:07]name=ofd_packets/00118204 [16:16:07]OFD Sender: To server: pG, [16:16:07]CommunicateWithHost lk.salyk.kg:30040 [16:16:07]ConnectInit lk.salyk.kg [16:16:07]Connected sock=9 [16:16:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F4 9F 04 01 D3 2C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 A5 10 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BC CD 01 00 35 04 06 00 EF 9D BF D2 47 C5 B9 E2 D2 46 14 9D AF 50 [16:16:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 FB EE 47 00 2B C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BC CD 01 00 F4 03 04 00 D8 CA A4 66 B6 04 01 00 00 9C CC CD 5A 5C 15 E3 AD [16:16:07]CommunicateWithHost err = 0 [16:16:07]CheckOFDResponse [16:16:07]1017 (14) - 77093643461234 [16:16:07]1041 (16) - 0000000000874939 [16:16:07]1040 (4) - 118204 [16:16:07]1012 (4) - 27.07.2024 10:24 [16:16:07]1206 (1) - 0 [16:16:07]OFD Sender: Remove packet 118204 [16:16:07]ProducePacketName [16:16:07]name=ofd_packets/00118204 [16:16:07]NVStorageDeleteData [16:16:08]OFD Sender: Processing packet 118205 [packets to send 104, broken 85] [16:16:08]ProducePacketName [16:16:08]name=ofd_packets/00118205 [16:16:08]OFD Sender: To server: pG, [16:16:08]CommunicateWithHost lk.salyk.kg:30040 [16:16:08]ConnectInit lk.salyk.kg [16:16:08]Connected sock=9 [16:16:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 28 01 00 00 31 05 20 01 5B 58 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 CF 10 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 BC CD 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BD CD 01 00 35 04 06 00 BA CF 4E 54 9B 4B C2 02 D8 F0 D7 B3 39 CF [16:16:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 BC BB 47 00 FA 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BD CD 01 00 F4 03 04 00 D9 CA A4 66 B6 04 01 00 00 DB 3C FD D8 D0 3C 9F E8 [16:16:08]CommunicateWithHost err = 0 [16:16:08]CheckOFDResponse [16:16:08]1017 (14) - 77093643461234 [16:16:08]1041 (16) - 0000000000874939 [16:16:08]1040 (4) - 118205 [16:16:08]1012 (4) - 27.07.2024 10:24 [16:16:08]1206 (1) - 0 [16:16:08]OFD Sender: Remove packet 118205 [16:16:08]ProducePacketName [16:16:08]name=ofd_packets/00118205 [16:16:08]NVStorageDeleteData [16:16:09]OFD Sender: Processing packet 118206 [packets to send 103, broken 85] [16:16:09]ProducePacketName [16:16:09]name=ofd_packets/00118206 [16:16:09]OFD Sender: To server: pG, [16:16:09]CommunicateWithHost lk.salyk.kg:30040 [16:16:09]ConnectInit lk.salyk.kg [16:16:09]Connected sock=9 [16: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 34 39 33 39 0C 01 00 00 C6 F7 04 01 E1 52 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 23 11 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BE CD 01 00 35 04 06 00 85 71 EA 1D 62 A1 D9 64 DB D7 17 6D 5C B0 [16:16:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C4 5F 47 00 5F 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 34 39 33 39 10 04 04 00 BE CD 01 00 F4 03 04 00 DA CA A4 66 B6 04 01 00 00 D7 40 56 77 0B AA B8 CB [16:16:09]CommunicateWithHost err = 0 [16:16:09]CheckOFDResponse [16:16:09]1017 (14) - 77093643461234 [16:16:09]1041 (16) - 0000000000874939 [16:16:09]1040 (4) - 118206 [16:16:09]1012 (4) - 27.07.2024 10:24 [16:16:09]1206 (1) - 0 [16:16:09]OFD Sender: Remove packet 118206 [16:16:09]ProducePacketName [16:16:09]name=ofd_packets/00118206 [16:16:09]NVStorageDeleteData [16:16:09]OFD Sender: Processing packet 118207 [packets to send 102, broken 85] [16:16:09]ProducePacketName [16:16:09]name=ofd_packets/00118207 [16:16:09]OFD Sender: To server: pG, [16:16:09]CommunicateWithHost lk.salyk.kg:30040 [16:16:09]ConnectInit lk.salyk.kg [16:16:10]Connected sock=9 [16:16:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A6 DA 07 01 34 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 34 FF 03 08 00 03 10 90 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BE D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 45 12 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BF CD 01 00 35 04 06 00 DC 4B 95 18 19 91 DA 96 21 9F 72 29 5D 38 [16:16:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 31 27 47 00 5B 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BF CD 01 00 F4 03 04 00 DB CA A4 66 B6 04 01 00 00 E3 CF 5E 4F 87 8E 84 89 [16:16:10]CommunicateWithHost err = 0 [16:16:10]CheckOFDResponse [16:16:10]1017 (14) - 77093643461234 [16:16:10]1041 (16) - 0000000000874939 [16:16:10]1040 (4) - 118207 [16:16:10]1012 (4) - 27.07.2024 10:24 [16:16:10]1206 (1) - 0 [16:16:10]OFD Sender: Remove packet 118207 [16:16:10]ProducePacketName [16:16:10]name=ofd_packets/00118207 [16:16:10]NVStorageDeleteData [16:16:10]OFD Sender: Processing packet 118208 [packets to send 101, broken 85] [16:16:10]ProducePacketName [16:16:10]name=ofd_packets/00118208 [16:16:10]OFD Sender: To server: pG, [16:16:10]CommunicateWithHost lk.salyk.kg:30040 [16:16:10]ConnectInit lk.salyk.kg [16:16:11]Connected sock=9 [16:16:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B1 B9 04 01 C2 DA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 C0 15 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C0 CD 01 00 35 04 06 00 66 7E 74 A1 09 F3 C2 FC 63 E4 0F F4 47 EA [16:16:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 6D 4D 47 00 44 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C0 CD 01 00 F4 03 04 00 DB CA A4 66 B6 04 01 00 00 4B 81 22 1D 7D 3A 95 C3 [16:16:11]CommunicateWithHost err = 0 [16:16:11]CheckOFDResponse [16:16:11]1017 (14) - 77093643461234 [16:16:11]1041 (16) - 0000000000874939 [16:16:11]1040 (4) - 118208 [16:16:11]1012 (4) - 27.07.2024 10:24 [16:16:11]1206 (1) - 0 [16:16:11]OFD Sender: Remove packet 118208 [16:16:11]ProducePacketName [16:16:11]name=ofd_packets/00118208 [16:16:11]NVStorageDeleteData [16:16:11]OFD Sender: Processing packet 118209 [packets to send 100, broken 85] [16:16:11]ProducePacketName [16:16:11]name=ofd_packets/00118209 [16:16:11]OFD Sender: To server: pG, [16:16:11]CommunicateWithHost lk.salyk.kg:30040 [16:16:11]ConnectInit lk.salyk.kg [16:16:11]Connected sock=9 [16:16:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D1 CE 07 01 16 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 0E 16 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C1 CD 01 00 35 04 06 00 92 10 66 8A 8D 2A AC 3C F4 22 EF DA 9F F0 [16:16:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 57 DE 47 00 33 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C1 CD 01 00 F4 03 04 00 DC CA A4 66 B6 04 01 00 00 05 BE 89 F9 DD 4F EF 1A [16:16:12]CommunicateWithHost err = 0 [16:16:12]CheckOFDResponse [16:16:12]1017 (14) - 77093643461234 [16:16:12]1041 (16) - 0000000000874939 [16:16:12]1040 (4) - 118209 [16:16:12]1012 (4) - 27.07.2024 10:24 [16:16:12]1206 (1) - 0 [16:16:12]OFD Sender: Remove packet 118209 [16:16:12]ProducePacketName [16:16:12]name=ofd_packets/00118209 [16:16:12]NVStorageDeleteData [16:16:12]OFD Sender: Processing packet 118210 [packets to send 99, broken 85] [16:16:12]ProducePacketName [16:16:12]name=ofd_packets/00118210 [16:16:12]OFD Sender: To server: pG, [16:16:12]CommunicateWithHost lk.salyk.kg:30040 [16:16:12]ConnectInit lk.salyk.kg [16:16:12]Connected sock=9 [16:16:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E7 AB 04 01 CB 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 29 16 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C2 CD 01 00 35 04 06 00 44 BC 42 DC C6 A3 CD FE D7 9E 4B 26 2D 16 [16:16:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B8 F4 47 00 29 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C2 CD 01 00 F4 03 04 00 DD CA A4 66 B6 04 01 00 00 6A 6B 6A F6 6A D7 BE CB [16:16:13]CommunicateWithHost err = 0 [16:16:13]CheckOFDResponse [16:16:13]1017 (14) - 77093643461234 [16:16:13]1041 (16) - 0000000000874939 [16:16:13]1040 (4) - 118210 [16:16:13]1012 (4) - 27.07.2024 10:24 [16:16:13]1206 (1) - 0 [16:16:13]OFD Sender: Remove packet 118210 [16:16:13]ProducePacketName [16:16:13]name=ofd_packets/00118210 [16:16:13]NVStorageDeleteData [16:16:13]OFD Sender: Processing packet 118211 [packets to send 98, broken 85] [16:16:13]ProducePacketName [16:16:13]name=ofd_packets/00118211 [16:16:13]OFD Sender: To server: pG, [16:16:13]CommunicateWithHost lk.salyk.kg:30040 [16:16:13]ConnectInit lk.salyk.kg [16:16:13]Connected sock=9 [16: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 34 39 33 39 0C 01 00 00 2F E2 04 01 39 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 F1 16 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C3 CD 01 00 35 04 06 00 AE 38 C2 40 89 AE 3B 90 69 1F B9 31 6E 2B [16:16:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F3 FB 47 00 68 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C3 CD 01 00 F4 03 04 00 DE CA A4 66 B6 04 01 00 00 8E BA 05 8F BF EE 58 2A [16:16:14]CommunicateWithHost err = 0 [16:16:14]CheckOFDResponse [16:16:14]1017 (14) - 77093643461234 [16:16:14]1041 (16) - 0000000000874939 [16:16:14]1040 (4) - 118211 [16:16:14]1012 (4) - 27.07.2024 10:24 [16:16:14]1206 (1) - 0 [16:16:14]OFD Sender: Remove packet 118211 [16:16:14]ProducePacketName [16:16:14]name=ofd_packets/00118211 [16:16:14]NVStorageDeleteData [16:16:14]OFD Sender: Processing packet 118212 [packets to send 97, broken 85] [16:16:14]ProducePacketName [16:16:14]name=ofd_packets/00118212 [16:16:14]OFD Sender: To server: pG, [16:16:14]CommunicateWithHost lk.salyk.kg:30040 [16:16:14]ConnectInit lk.salyk.kg [16:16:14]Connected sock=9 [16:16:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E0 03 07 01 0C 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 34 FF 03 08 00 03 70 67 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4E BD 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C BD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 4A 00 00 00 00 07 04 06 00 2C BD 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 FE 16 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C4 CD 01 00 35 04 06 00 56 2F 9B 69 6A 97 15 0B 88 56 AA 97 04 85 [16:16:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 4A B4 47 00 1D 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C4 CD 01 00 F4 03 04 00 DF CA A4 66 B6 04 01 00 00 22 3D 4E 4C D0 84 20 2D [16:16:15]CommunicateWithHost err = 0 [16:16:15]CheckOFDResponse [16:16:15]1017 (14) - 77093643461234 [16:16:15]1041 (16) - 0000000000874939 [16:16:15]1040 (4) - 118212 [16:16:15]1012 (4) - 27.07.2024 10:24 [16:16:15]1206 (1) - 0 [16:16:15]OFD Sender: Remove packet 118212 [16:16:15]ProducePacketName [16:16:15]name=ofd_packets/00118212 [16:16:15]NVStorageDeleteData [16:16:15]OFD Sender: Processing packet 118213 [packets to send 96, broken 85] [16:16:15]ProducePacketName [16:16:15]name=ofd_packets/00118213 [16:16:15]OFD Sender: To server: pG, [16:16:15]CommunicateWithHost lk.salyk.kg:30040 [16:16:15]ConnectInit lk.salyk.kg [16:16:15]Connected sock=10 [16:16:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 6F A4 04 01 2C 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 1C 18 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C5 CD 01 00 35 04 06 00 31 30 D3 E2 FC 33 D4 01 DB 87 82 DF F0 24 [16:16:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 73 5C 47 00 D4 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C5 CD 01 00 F4 03 04 00 E0 CA A4 66 B6 04 01 00 00 01 3B 50 76 5F 87 F9 4D [16:16:15]CommunicateWithHost err = 0 [16:16:15]CheckOFDResponse [16:16:15]1017 (14) - 77093643461234 [16:16:15]1041 (16) - 0000000000874939 [16:16:15]1040 (4) - 118213 [16:16:15]1012 (4) - 27.07.2024 10:24 [16:16:15]1206 (1) - 0 [16:16:15]OFD Sender: Remove packet 118213 [16:16:15]ProducePacketName [16:16:15]name=ofd_packets/00118213 [16:16:15]NVStorageDeleteData [16:16:16]OFD Sender: Processing packet 118214 [packets to send 95, broken 85] [16:16:16]ProducePacketName [16:16:16]name=ofd_packets/00118214 [16:16:16]OFD Sender: To server: pG, [16:16:16]CommunicateWithHost lk.salyk.kg:30040 [16:16:16]ConnectInit lk.salyk.kg [16:16:16]Connected sock=9 [16:16:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 97 4B 04 01 7F 38 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 A4 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 28 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 E2 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 52 18 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C6 CD 01 00 35 04 06 00 56 7E E8 AC 01 3D C8 D8 7D 23 57 5E 01 EC [16:16:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 20 33 47 00 C1 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C6 CD 01 00 F4 03 04 00 E1 CA A4 66 B6 04 01 00 00 9E E3 3F 15 3B 2F 85 6F [16:16:16]CommunicateWithHost err = 0 [16:16:16]CheckOFDResponse [16:16:16]1017 (14) - 77093643461234 [16:16:16]1041 (16) - 0000000000874939 [16:16:16]1040 (4) - 118214 [16:16:16]1012 (4) - 27.07.2024 10:24 [16:16:16]1206 (1) - 0 [16:16:16]OFD Sender: Remove packet 118214 [16:16:16]ProducePacketName [16:16:16]name=ofd_packets/00118214 [16:16:16]NVStorageDeleteData [16:16:17]OFD Sender: Processing packet 118215 [packets to send 94, broken 85] [16:16:17]ProducePacketName [16:16:17]name=ofd_packets/00118215 [16:16:17]OFD Sender: To server: pG, [16:16:17]CommunicateWithHost lk.salyk.kg:30040 [16:16:17]ConnectInit lk.salyk.kg [16:16:17]Connected sock=9 [16:16:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 49 F5 07 01 76 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 1C 19 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C7 CD 01 00 35 04 06 00 B2 8B DF 0E 8E 90 27 50 06 8F 24 5E F2 B2 [16:16:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 2C FF 47 00 D8 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 34 39 33 39 10 04 04 00 C7 CD 01 00 F4 03 04 00 E2 CA A4 66 B6 04 01 00 00 70 85 E1 86 5E BB 40 FA [16:16:17]CommunicateWithHost err = 0 [16:16:17]CheckOFDResponse [16:16:17]1017 (14) - 77093643461234 [16:16:17]1041 (16) - 0000000000874939 [16:16:17]1040 (4) - 118215 [16:16:17]1012 (4) - 27.07.2024 10:24 [16:16:17]1206 (1) - 0 [16:16:17]OFD Sender: Remove packet 118215 [16:16:17]ProducePacketName [16:16:17]name=ofd_packets/00118215 [16:16:17]NVStorageDeleteData [16:16:18]OFD Sender: Processing packet 118216 [packets to send 93, broken 85] [16:16:18]ProducePacketName [16:16:18]name=ofd_packets/00118216 [16:16:18]OFD Sender: To server: pG, [16:16:18]CommunicateWithHost lk.salyk.kg:30040 [16:16:18]ConnectInit lk.salyk.kg [16:16:18]Connected sock=9 [16:16:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 49 24 23 01 B5 58 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 24 19 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 C7 CD 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C8 CD 01 00 35 04 06 00 C2 11 06 8B 5C 31 9C 32 FA FB 44 48 3B 5E [16:16:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 9C D3 47 00 FC C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C8 CD 01 00 F4 03 04 00 E3 CA A4 66 B6 04 01 00 00 01 A4 48 C4 30 0C CA AB [16:16:18]CommunicateWithHost err = 0 [16:16:18]CheckOFDResponse [16:16:18]1017 (14) - 77093643461234 [16:16:18]1041 (16) - 0000000000874939 [16:16:18]1040 (4) - 118216 [16:16:18]1012 (4) - 27.07.2024 10:24 [16:16:18]1206 (1) - 0 [16:16:18]OFD Sender: Remove packet 118216 [16:16:18]ProducePacketName [16:16:18]name=ofd_packets/00118216 [16:16:18]NVStorageDeleteData [16:16:19]OFD Sender: Processing packet 118217 [packets to send 92, broken 85] [16:16:19]ProducePacketName [16:16:19]name=ofd_packets/00118217 [16:16:19]OFD Sender: To server: pG, [16:16:19]CommunicateWithHost lk.salyk.kg:30040 [16:16:19]ConnectInit lk.salyk.kg [16:16:19]Connected sock=9 [16: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 34 39 33 39 0F 01 00 00 31 D2 07 01 3D D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 35 19 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C9 CD 01 00 35 04 06 00 A5 6F B8 8E E1 B5 CB 8E E6 AD 13 44 99 66 [16:16:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 6F 54 47 00 83 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C9 CD 01 00 F4 03 04 00 E4 CA A4 66 B6 04 01 00 00 CD E2 3A FB 9B 61 52 32 [16:16:19]CommunicateWithHost err = 0 [16:16:19]CheckOFDResponse [16:16:19]1017 (14) - 77093643461234 [16:16:19]1041 (16) - 0000000000874939 [16:16:19]1040 (4) - 118217 [16:16:19]1012 (4) - 27.07.2024 10:24 [16:16:19]1206 (1) - 0 [16:16:19]OFD Sender: Remove packet 118217 [16:16:19]ProducePacketName [16:16:19]name=ofd_packets/00118217 [16:16:19]NVStorageDeleteData [16:16:20]OFD Sender: Processing packet 118218 [packets to send 91, broken 85] [16:16:20]ProducePacketName [16:16:20]name=ofd_packets/00118218 [16:16:20]OFD Sender: To server: pG, [16:16:20]CommunicateWithHost lk.salyk.kg:30040 [16:16:20]ConnectInit lk.salyk.kg [16:16:20]Connected sock=9 [16:16:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 9A DC 07 01 B7 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 40 19 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CA CD 01 00 35 04 06 00 A0 54 54 AA 0E 02 55 27 2E 00 32 E0 C5 3C [16:16:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 63 BF 47 00 4A D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CA CD 01 00 F4 03 04 00 E5 CA A4 66 B6 04 01 00 00 45 64 97 4D 65 48 1C 75 [16:16:20]CommunicateWithHost err = 0 [16:16:20]CheckOFDResponse [16:16:20]1017 (14) - 77093643461234 [16:16:20]1041 (16) - 0000000000874939 [16:16:20]1040 (4) - 118218 [16:16:20]1012 (4) - 27.07.2024 10:24 [16:16:20]1206 (1) - 0 [16:16:20]OFD Sender: Remove packet 118218 [16:16:20]ProducePacketName [16:16:20]name=ofd_packets/00118218 [16:16:20]NVStorageDeleteData [16:16:21]OFD Sender: Processing packet 118219 [packets to send 90, broken 85] [16:16:21]ProducePacketName [16:16:21]name=ofd_packets/00118219 [16:16:21]OFD Sender: To server: pG, [16:16:21]CommunicateWithHost lk.salyk.kg:30040 [16:16:21]ConnectInit lk.salyk.kg [16:16:21]Connected sock=9 [16:16:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 26 12 07 01 FF DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 CB 19 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CB CD 01 00 35 04 06 00 5C AA D2 4E BE 07 47 49 A8 6E 86 E1 A3 87 [16:16:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 12 67 47 00 C6 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CB CD 01 00 F4 03 04 00 E6 CA A4 66 B6 04 01 00 00 B5 D5 E9 52 D7 17 0F 86 [16:16:21]CommunicateWithHost err = 0 [16:16:21]CheckOFDResponse [16:16:21]1017 (14) - 77093643461234 [16:16:21]1041 (16) - 0000000000874939 [16:16:21]1040 (4) - 118219 [16:16:21]1012 (4) - 27.07.2024 10:24 [16:16:21]1206 (1) - 0 [16:16:21]OFD Sender: Remove packet 118219 [16:16:21]ProducePacketName [16:16:21]name=ofd_packets/00118219 [16:16:21]NVStorageDeleteData [16:16:22]OFD Sender: Processing packet 118220 [packets to send 89, broken 85] [16:16:22]ProducePacketName [16:16:22]name=ofd_packets/00118220 [16:16:22]OFD Sender: To server: pG, [16:16:22]CommunicateWithHost lk.salyk.kg:30040 [16:16:22]ConnectInit lk.salyk.kg [16:16:22]Connected sock=9 [16:16:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 53 98 23 01 CA 02 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 DE 19 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 CB CD 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CC CD 01 00 35 04 06 00 7C EA AA 1F 4F E6 8D 62 6F E0 CC 4A F9 86 [16:16:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 84 C7 47 00 1B F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CC CD 01 00 F4 03 04 00 E7 CA A4 66 B6 04 01 00 00 03 E3 31 33 8E EF 60 FD [16:16:22]CommunicateWithHost err = 0 [16:16:22]CheckOFDResponse [16:16:22]1017 (14) - 77093643461234 [16:16:22]1041 (16) - 0000000000874939 [16:16:22]1040 (4) - 118220 [16:16:22]1012 (4) - 27.07.2024 10:24 [16:16:22]1206 (1) - 0 [16:16:22]OFD Sender: Remove packet 118220 [16:16:22]ProducePacketName [16:16:22]name=ofd_packets/00118220 [16:16:22]NVStorageDeleteData [16:16:23]OFD Sender: Processing packet 118221 [packets to send 88, broken 85] [16:16:23]ProducePacketName [16:16:23]name=ofd_packets/00118221 [16:16:23]OFD Sender: To server: pG, [16:16:23]CommunicateWithHost lk.salyk.kg:30040 [16:16:23]ConnectInit lk.salyk.kg [16:16:23]Connected sock=9 [16:16:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7A 14 07 01 55 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 21 1A A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CD CD 01 00 35 04 06 00 43 16 85 3E 72 B8 77 8D D0 9A 85 EF 22 C2 [16:16:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 AB 1B 47 00 6D 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 34 39 33 39 10 04 04 00 CD CD 01 00 F4 03 04 00 E8 CA A4 66 B6 04 01 00 00 C7 08 CE 79 C7 B9 70 98 [16:16:23]CommunicateWithHost err = 0 [16:16:23]CheckOFDResponse [16:16:23]1017 (14) - 77093643461234 [16:16:23]1041 (16) - 0000000000874939 [16:16:23]1040 (4) - 118221 [16:16:23]1012 (4) - 27.07.2024 10:24 [16:16:23]1206 (1) - 0 [16:16:23]OFD Sender: Remove packet 118221 [16:16:23]ProducePacketName [16:16:23]name=ofd_packets/00118221 [16:16:23]NVStorageDeleteData [16:16:24]OFD Sender: Processing packet 118222 [packets to send 87, broken 85] [16:16:24]ProducePacketName [16:16:24]name=ofd_packets/00118222 [16:16:24]OFD Sender: To server: pG, [16:16:24]CommunicateWithHost lk.salyk.kg:30040 [16:16:24]ConnectInit lk.salyk.kg [16:16:24]Connected sock=9 [16:16:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C1 28 07 01 86 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 C1 1B A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CE CD 01 00 35 04 06 00 20 F3 42 2C 81 B5 0B 8B 21 92 91 67 DE D5 [16:16:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E4 E6 47 00 FB C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CE CD 01 00 F4 03 04 00 E9 CA A4 66 B6 04 01 00 00 42 45 82 AC B1 45 C0 D9 [16:16:24]CommunicateWithHost err = 0 [16:16:24]CheckOFDResponse [16:16:24]1017 (14) - 77093643461234 [16:16:24]1041 (16) - 0000000000874939 [16:16:24]1040 (4) - 118222 [16:16:24]1012 (4) - 27.07.2024 10:24 [16:16:24]1206 (1) - 0 [16:16:24]OFD Sender: Remove packet 118222 [16:16:24]ProducePacketName [16:16:24]name=ofd_packets/00118222 [16:16:24]NVStorageDeleteData [16:16:25]OFD Sender: Processing packet 118223 [packets to send 86, broken 85] [16:16:25]ProducePacketName [16:16:25]name=ofd_packets/00118223 [16:16:25]OFD Sender: To server: pG, [16:16:25]CommunicateWithHost lk.salyk.kg:30040 [16:16:25]ConnectInit lk.salyk.kg [16:16:25]Connected sock=9 [16:16:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 DC E8 07 01 42 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 2F 1D A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CF CD 01 00 35 04 06 00 96 B9 5D C9 C4 94 B1 7C A7 39 3D 34 A9 07 [16:16:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 4B 0B 47 00 9B 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CF CD 01 00 F4 03 04 00 EA CA A4 66 B6 04 01 00 00 DB 1C 98 01 F4 DF 50 FC [16:16:25]CommunicateWithHost err = 0 [16:16:25]CheckOFDResponse [16:16:25]1017 (14) - 77093643461234 [16:16:25]1041 (16) - 0000000000874939 [16:16:25]1040 (4) - 118223 [16:16:25]1012 (4) - 27.07.2024 10:24 [16:16:25]1206 (1) - 0 [16:16:25]OFD Sender: Remove packet 118223 [16:16:25]ProducePacketName [16:16:25]name=ofd_packets/00118223 [16:16:25]NVStorageDeleteData [16:16:25]OFD Sender: No OFD packet to send [16:16:26]OFD Sender: No OFD packet to send [16:16:31]OFD Sender: No OFD packet to send [16:16:36]OFD Sender: No OFD packet to send [16:16:41]OFD Sender: No OFD packet to send [16:16:46]OFD Sender: No OFD packet to send [16:16:51]OFD Sender: No OFD packet to send [16:16:56]OFD Sender: No OFD packet to send [16:17:01]OFD Sender: No OFD packet to send [16:17:06]OFD Sender: No OFD packet to send [16:17:11]OFD Sender: No OFD packet to send [16:17:16]OFD Sender: No OFD packet to send [16:17:21]OFD Sender: No OFD packet to send [16:17:26]OFD Sender: No OFD packet to send [16:17:31]OFD Sender: No OFD packet to send [16:17:36]OFD Sender: No OFD packet to send [16:17:41]OFD Sender: No OFD packet to send [16:17:46]OFD Sender: No OFD packet to send [16:17:51]OFD Sender: No OFD packet to send [16:17:56]OFD Sender: No OFD packet to send [16:18:01]OFD Sender: No OFD packet to send [16:18:06]OFD Sender: No OFD packet to send [16:18:11]OFD Sender: No OFD packet to send [16:18:16]OFD Sender: No OFD packet to send [16:18:21]OFD Sender: No OFD packet to send [16:18:26]OFD Sender: No OFD packet to send [16:18:31]OFD Sender: No OFD packet to send [16:18:36]OFD Sender: No OFD packet to send [16:18:41]OFD Sender: No OFD packet to send [16:18:46]OFD Sender: No OFD packet to send [16:18:51]OFD Sender: No OFD packet to send [16:18:56]OFD Sender: No OFD packet to send [16:19:01]OFD Sender: No OFD packet to send [16:19:02]accept exits with 7 [16:19:02]New connection [16:19:02]New thread 3066953060 created [16:19:02] Sock 7.Parse request [16:19:02]Thread 3067096420 joined [16:19:02]Sock 7.Check first char [16:19:02]Waiting for new connection... [16:19:02]Sock 7.First char is OK [16:19:02]request: POST /json_proto HTTP/1.0 [16:19:02]Method: POST [16:19:02]URL: /json_proto [16:19:02]Method is POST - this is cgi request [16:19:02]url: /json_proto [16:19:02]query_string will be loaded in cgi processing [16:19:02]execute_cgi json_proto POST (null) [16:19:02]execute_cgi path=json_proto method=POST [16:19:02]POST find Content-Length [16:19:02]Host: 172.17.45.7:8080 [16:19:02]Content-Length: 819 [16:19:02]Content-Type: application/json [16:19:02] [16:19:02]POST finish read [16:19:02]Found Content-Length = 819 [16:19:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.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", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:02]execute_script... [16:19:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.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", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:02]POST & json_proto [16:19:02]process_json_proto [16:19:02]json parsed OK: [16:19:02]protocol is kg_v1.0 [16:19:02]action value=close_receipt [16:19:02]process_action close_receipt [16:19:02]cmd_close_receipt [16:19:02]MH_GetDate [16:19:02]Write to MH i2c: F0 00 00 BA 0A B3 [16:19:02]Write i2c OK [16:19:02]MH_I2C_Read... [16:19:02]Read from MH i2c: F0 [16:19:02]MH_I2C_Read... [16:19:02]Read from MH i2c: F0 09 00 [16:19:02]MH_I2C_Read... [16:19:02]Read from MH i2c: F0 09 00 BA 0A 00 F6 1D A5 66 90 0F 3E 66 1D [16:19:02]GetLastDocTimeStamp 1722096943 [16:19:02]current date 1722097142 [16:19:02]FM_GetShiftState [16:19:02]SAM_PROTO_GetShiftState [16:19:02]wFMCommunicate request_size=4 [16:19:02]MH_SAM_APDU [16:19:02]CAPDU: 80 13 01 00 [16:19:02]Write to MH i2c: E2 08 00 BB 0A 80 13 01 00 00 00 00 00 42 [16:19:02]Write i2c OK [16:19:02]MH_I2C_Read... [16:19:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:02]Read from MH i2c: E2 [16:19:02]MH_I2C_Read... [16:19:02]Read from MH i2c: E2 0E 00 [16:19:02]MH_I2C_Read... [16:19:02]Read from MH i2c: E2 0E 00 BB 0A 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 CF [16:19:02]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [16:19:02]wFMCommunicate OK [16:19:02]SAM_PROTO_GetShiftState done [16:19:02]FM_GetShiftState done [16:19:02]opened in 1722038845 [16:19:02]opened+sec_in_day 1722125245 [16:19:02]quantity*price = 150037 [16:19:02]sum+1 = 150039 [16:19:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 167 27.07.2024 16:19 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118224 ФПД: 166118782913657 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T161903&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118224&fm=166118782913657&tin=02508201610067®Number=0000000000092660&sum=150000 [16:19:03]StoreToDocumentArchive [16:19:03]shift 432 fd 118224 [16:19:03]save to /storage/0432/doc_00118224 [16:19:03]save last doc name /storage/0432/doc_00118224 to /storage/kkm_last_doc_name [16:19:03]save OK [16:19:03]Clear old archive folders... [16:19:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:19:03]tlvbuf is B6F7B7C0 [16:19:03]SAM_PROTO_ClearQueue [16:19:03]wFMCommunicate request_size=4 [16:19:03]MH_SAM_APDU [16:19:03]CAPDU: 80 09 00 00 [16:19:03]Write to MH i2c: E2 08 00 C8 0A 80 09 00 00 00 00 00 00 44 [16:19:03]Write i2c OK [16:19:03]MH_I2C_Read... [16:19:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:19:03]Read from MH i2c: E2 [16:19:03]MH_I2C_Read... [16:19:03]Read from MH i2c: E2 03 00 [16:19:03]MH_I2C_Read... [16:19:03]Read from MH i2c: E2 03 00 C8 0A 00 90 00 46 [16:19:03]RAPDU: 90 00 [16:19:03]wFMCommunicate OK [16:19:03]SAM_PROTO_ClearQueue done [16:19:03]KKMCreateOFDPacket [16:19:03]OFDProtocolAddRootSTLVToBuf [16:19:03]FM_MakeSignedData [16:19:03]FM_MakeSignedData [16:19:03]SAM_PROTO_SignData [16:19:03]wFMCommunicate request_size=4 [16:19:03]MH_SAM_APDU [16:19:03]CAPDU: 80 0D 01 02 [16:19:03]Write to MH i2c: E2 08 00 C9 0A 80 0D 01 02 00 00 00 00 4C [16:19:03]Write i2c OK [16:19:03]MH_I2C_Read... [16:19:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:19:03]Read from MH i2c: E2 [16:19:03]MH_I2C_Read... [16:19:03]Read from MH i2c: E2 03 00 [16:19:03]MH_I2C_Read... [16:19:03]Read from MH i2c: E2 03 00 C9 0A 00 90 00 47 [16:19:03]RAPDU: 90 00 [16:19:03]wFMCommunicate OK [16:19:03]wFMCommunicate request_size=255 [16:19:03]MH_SAM_APDU [16:19: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 F7 1D A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D0 CD 01 00 35 04 06 00 97 15 8B 0B [16:19:03]Write to MH i2c: E2 02 01 CA 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 F7 1D A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D0 CD 01 00 35 04 06 00 97 15 8B 0B 00 00 AA [16:19:03]Write i2c OK [16:19:03]MH_I2C_Read... [16:19:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:04]Read from MH i2c: E2 [16:19:04]MH_I2C_Read... [16:19:04]Read from MH i2c: E2 03 00 [16:19:04]MH_I2C_Read... [16:19:04]Read from MH i2c: E2 03 00 CA 0A 00 90 00 48 [16:19:04]RAPDU: 90 00 [16:19:04]wFMCommunicate OK [16:19:04]wFMCommunicate request_size=7 [16:19:04]MH_SAM_APDU [16:19:04]CAPDU: 80 0D 02 02 02 CC 79 [16:19:04]Write to MH i2c: E2 0A 00 CB 0A 80 0D 02 02 02 00 CC 79 00 00 98 [16:19:04]Write i2c OK [16:19:04]MH_I2C_Read... [16:19:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:04]Read from MH i2c: E2 [16:19:04]MH_I2C_Read... [16:19:04]Read from MH i2c: E2 03 00 [16:19:04]MH_I2C_Read... [16:19:04]Read from MH i2c: E2 03 00 CB 0A 00 90 00 49 [16:19:04]RAPDU: 90 00 [16:19:04]wFMCommunicate OK [16:19:04]wFMCommunicate request_size=4 [16:19:04]MH_SAM_APDU [16:19:04]CAPDU: 80 0D 03 02 [16:19:04]Write to MH i2c: E2 08 00 CC 0A 80 0D 03 02 00 00 00 00 51 [16:19:04]Write i2c OK [16:19:04]MH_I2C_Read... [16:19:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:19:04]Read from MH i2c: E2 [16:19:04]MH_I2C_Read... [16:19:04]Read from MH i2c: E2 0B 00 [16:19:04]MH_I2C_Read... [16:19:04]Read from MH i2c: E2 0B 00 CC 0A 00 CE C0 16 40 C3 7C 0E 3B 90 00 BE [16:19:04]RAPDU: CE C0 16 40 C3 7C 0E 3B 90 00 [16:19:04]wFMCommunicate OK [16:19:04]SAM_PROTO_SignData done [16:19:04]FM_MakeSignedData done [16:19:04]CreateOFDProtocolMessage [16:19:04]wFMCommunicate request_size=4 [16:19:04]MH_SAM_APDU [16:19:04]CAPDU: 80 11 00 00 [16:19:04]Write to MH i2c: E2 08 00 CD 0A 80 11 00 00 00 00 00 00 51 [16:19:04]Write i2c OK [16:19:04]MH_I2C_Read... [16:19:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:04]Read from MH i2c: E2 [16:19:04]MH_I2C_Read... [16:19:04]Read from MH i2c: E2 17 00 [16:19:04]MH_I2C_Read... [16:19:04]Read from MH i2c: E2 17 00 CD 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AC [16:19:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:19:04]wFMCommunicate OK [16:19:04]CreateOFDProtocolMessage done [16:19:04]OFDSenderStorePacket 118224 [16:19:04]StoreOFDPacket docnum=118224 [16:19:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C8 78 04 01 E6 45 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 F7 1D A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D0 CD 01 00 35 04 06 00 97 15 8B 0B CC 79 CE C0 16 40 C3 7C 0E 3B [16:19:04]CheckFolder [16:19:04]dirname=/storage/ofd_packets [16:19:04]CheckFolder done [16:19:04]ProducePacketName [16:19:04]name=ofd_packets/00118224 [16:19:04]NVStorageSaveData ofd_packets/00118224 [16:19:04]File name is /storage/ofd_packets/00118224 [16:19:04]Write 298 bytes [16:19:04]NVStorageSaveData done [16:19:04]OFDSenderStorePacket done [16:19:04]KKMCreateOFDPacket done [16:19:04]NVStorageSaveData kkm_last_timestamp [16:19:04]File name is /storage/kkm_last_timestamp [16:19:04]Write 4 bytes [16:19:04]NVStorageSaveData done [16:19:04]ExternCall_PrintAddStr [16:19:04]wPrintStart [16:19:04]Write to MH i2c: 01 00 00 CE 0A D8 [16:19:04]Write i2c OK [16:19:04]MH_I2C_Read... [16:19:04]Read from MH i2c: 01 [16:19:04]MH_I2C_Read... [16:19:04]Read from MH i2c: 01 07 00 [16:19:04]MH_I2C_Read... [16:19:04]Read from MH i2c: 01 07 00 CE 0A 00 00 00 00 00 FF 0F ED [16:19:04]RasterBufferAndPrint [16:19:04]line Счет N : (1)949097 [16:19:04]line ИНН: 02508201610067 [16:19:04]line Контрольно-Кассовый Чек [16:19:04]line ПРОДАЖА [16:19:04]line ТРК (МРК, ГНК) : 44 [16:19:04]line Товар: 2710194800 [16:19:04]line ДТ-К-5 [16:19:04]line 19.690 * 76.20 [16:19:04]line = 1500.38 [16:19:04]line НДС 12% НСП 1% [16:19:04]line > о реализуемом товаре [16:19:04]line ОКРУГЛЕНИЕ: -0.38 [16:19:04]line ИТОГО: 1500.00 [16:19:04]line НСП 1% : 13.28 [16:19:04]line НДС 12% : 159.33 [16:19:04]line Наличными: 0.00 [16:19:04]line Безнал.: 1500.00 [16:19:04]line Место: АЗС № 134 "Партнер Нефть" [16:19:04]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:19:04]line СНО: Общий режим [16:19:04]line Чек 167 27.07.2024 16:19 [16:19:04]line Смена: 432 ФФД: 1.0 [16:19:04]line ЗНМ: 0300000044 [16:19:04]line РНМ: 0000000000092660 [16:19:04]line Версия ККМ: 001 [16:19:04]line Платежная система: O! деньги [16:19:04]line ФМ: 0000000000874939 [16:19:04]line ФД: 118224 [16:19:04]line ФПД: 166118782913657 [16:19:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T161903&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118224&fm=166118782913657&tin=02508201610067®Number=0000000000092660&sum=150000 [16:19:04]written 0, free lines is 4095 [16:19:04]OFD Sender: Processing packet 118224 [packets to send 86, broken 85] [16:19:04]ProducePacketName [16:19:04]name=ofd_packets/00118224 [16:19:04]OFD Sender: To server: pG, [16:19:04]CommunicateWithHost lk.salyk.kg:30040 [16:19:04]ConnectInit lk.salyk.kg [16:19:04]Connected sock=10 [16:19:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C8 78 04 01 E6 45 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 F7 1D A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D0 CD 01 00 35 04 06 00 97 15 8B 0B CC 79 CE C0 16 40 C3 7C 0E 3B [16:19:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 42 C2 47 00 72 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D0 CD 01 00 F4 03 04 00 89 CB A4 66 B6 04 01 00 00 1B 9F B0 AB 6C E5 16 2F [16:19:04]CommunicateWithHost err = 0 [16:19:04]CheckOFDResponse [16:19:04]1017 (14) - 77093643461234 [16:19:04]1041 (16) - 0000000000874939 [16:19:04]1040 (4) - 118224 [16:19:04]1012 (4) - 27.07.2024 10:27 [16:19:04]1206 (1) - 0 [16:19:04]OFD Sender: Remove packet 118224 [16:19:04]ProducePacketName [16:19:04]name=ofd_packets/00118224 [16:19:04]NVStorageDeleteData [16:19:04]Write to MH i2c: 01 00 00 F8 0A 02 [16:19:04]Write i2c OK [16:19:04]MH_I2C_Read... [16:19:04]Read from MH i2c: 01 [16:19:04]MH_I2C_Read... [16:19:04]Read from MH i2c: 01 07 00 [16:19:04]MH_I2C_Read... [16:19:04]Read from MH i2c: 01 07 00 F8 0A 00 00 00 00 00 DA 0C EF [16:19:04]RasterBufferAndPrint [16:19:04]line [16:19:04]line [16:19:04]line [16:19:04]line [16:19:04]line [16:19:04]written 0, free lines is 3298 [16:19:04]MH_Cut [16:19:04]Write to MH i2c: D1 01 00 FF 0A 01 DB [16:19:04]Write i2c OK [16:19:04]MH_I2C_Read... [16:19:04]Read from MH i2c: D1 [16:19:04]MH_I2C_Read... [16:19:04]Read from MH i2c: D1 01 00 [16:19:04]MH_I2C_Read... [16:19:04]Read from MH i2c: D1 01 00 FF 0A 00 DA [16:19:04]Write to MH i2c: 01 00 00 00 0B 0B [16:19:04]Write i2c OK [16:19:04]MH_I2C_Read... [16:19:05]OFD Sender: No OFD packet to send [16:19:05]*** Cut start [16:19:05]*** Partial cut [16:19:05]*** CUTSNS_PIN = 1 [16:19:05]*** CUTSNS_PIN = 0 [16:19:05]*** Brake cut motor [16:19:06]Read from MH i2c: 01 [16:19:06]MH_I2C_Read... [16:19:06]*** Stop cut motor [16:19:06]*** Cut end [16:19:06]Read from MH i2c: 01 07 00 [16:19:06]MH_I2C_Read... [16:19:06]Read from MH i2c: 01 07 00 00 0B 00 00 00 00 00 FF 0F 20 [16:19:06]process_action close_receipt done [16:19:06]requested_data is exist [16:19:06]produce_requested_data [16:19:06]requested_item fm.sn is exist - process it [16:19:06]wFMCommunicate request_size=4 [16:19:06]MH_SAM_APDU [16:19:06]CAPDU: 80 11 00 00 [16:19:06]Write to MH i2c: E2 08 00 01 0B 80 11 00 00 00 00 00 00 86 [16:19:06]Write i2c OK [16:19:06]MH_I2C_Read... [16:19:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:06]Read from MH i2c: E2 [16:19:06]MH_I2C_Read... [16:19:06]Read from MH i2c: E2 17 00 [16:19:06]MH_I2C_Read... [16:19:06]Read from MH i2c: E2 17 00 01 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E1 [16:19:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:19:06]wFMCommunicate OK [16:19:06]requested_item fd.num is exist - process it [16:19:06]SAM_PROTO_GetFieldsCounters [16:19:06]wFMCommunicate request_size=4 [16:19:06]MH_SAM_APDU [16:19:06]CAPDU: 80 13 00 00 [16:19:06]Write to MH i2c: E2 08 00 02 0B 80 13 00 00 00 00 00 00 89 [16:19:06]Write i2c OK [16:19:06]MH_I2C_Read... [16:19:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:19:06]Read from MH i2c: E2 [16:19:06]MH_I2C_Read... [16:19:06]Read from MH i2c: E2 62 00 [16:19:06]MH_I2C_Read... [16:19:06]Read from MH i2c: E2 62 00 02 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D0 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [16:19:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D0 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:19:06]wFMCommunicate OK [16:19:06]SAM_PROTO_GetFieldsCounters done [16:19:06]requested_item shift.num is exist - process it [16:19:06]requested_item shift.opened is exist - process it [16:19:06]req_shift_opened [16:19:06]FM_GetShiftState [16:19:06]SAM_PROTO_GetShiftState [16:19:06]wFMCommunicate request_size=4 [16:19:06]MH_SAM_APDU [16:19:06]CAPDU: 80 13 01 00 [16:19:06]Write to MH i2c: E2 08 00 03 0B 80 13 01 00 00 00 00 00 8B [16:19:06]Write i2c OK [16:19:06]MH_I2C_Read... [16:19:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:06]Read from MH i2c: E2 [16:19:06]MH_I2C_Read... [16:19:06]Read from MH i2c: E2 0E 00 [16:19:06]MH_I2C_Read... [16:19:06]Read from MH i2c: E2 0E 00 03 0B 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 18 [16:19:06]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [16:19:06]wFMCommunicate OK [16:19:06]SAM_PROTO_GetShiftState done [16:19:06]FM_GetShiftState done [16:19:06]req_shift_opened done [16:19:06]requested_item shift.open_date is exist - process it [16:19:06]req_shift_open_date [16:19:06]req_shift_open_date done [16:19:06]produce_requested_data done [16:19:06]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118224,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [16:19:06]process_action_free close_receipt [16:19:06]json_value_free [16:19:06]json_value_free done [16:19:06]process_json_proto returns [16:19:06]Send response to host [16:19:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118224,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [16:19:06]free response buf [16:19:06]execute_script done [16:19:06]execute_script returns [16:19:06]free content buf [16:19:06]Sock 7.Close socket [16:19:06]Sock 7.Thread stoped [16:19:10]OFD Sender: No OFD packet to send [16:19:15]OFD Sender: No OFD packet to send [16:19:20]OFD Sender: No OFD packet to send [16:19:25]OFD Sender: No OFD packet to send [16:19:30]OFD Sender: No OFD packet to send [16:19:35]OFD Sender: No OFD packet to send [16:19:40]OFD Sender: No OFD packet to send [16:19:45]OFD Sender: No OFD packet to send [16:19:50]OFD Sender: No OFD packet to send [16:19:55]OFD Sender: No OFD packet to send [16:20:00]OFD Sender: No OFD packet to send [16:20:05]OFD Sender: No OFD packet to send [16:20:10]OFD Sender: No OFD packet to send [16:20:15]OFD Sender: No OFD packet to send [16:20:20]OFD Sender: No OFD packet to send [16:20:25]OFD Sender: No OFD packet to send [16:20:30]OFD Sender: No OFD packet to send [16:20:35]OFD Sender: No OFD packet to send [16:20:40]OFD Sender: No OFD packet to send [16:20:45]OFD Sender: No OFD packet to send [16:20:50]OFD Sender: No OFD packet to send [16:20:55]OFD Sender: No OFD packet to send [16:21:00]OFD Sender: No OFD packet to send [16:21:05]OFD Sender: No OFD packet to send [16:21:10]OFD Sender: No OFD packet to send [16:21:15]OFD Sender: No OFD packet to send [16:21:20]OFD Sender: No OFD packet to send [16:21:25]OFD Sender: No OFD packet to send [16:21:30]OFD Sender: No OFD packet to send [16:21:35]OFD Sender: No OFD packet to send [16:21:40]OFD Sender: No OFD packet to send [16:21:45]OFD Sender: No OFD packet to send [16:21:50]OFD Sender: No OFD packet to send [16:21:55]OFD Sender: No OFD packet to send [16:22:00]OFD Sender: No OFD packet to send [16:22:05]OFD Sender: No OFD packet to send [16:22:10]OFD Sender: No OFD packet to send [16:22:15]OFD Sender: No OFD packet to send [16:22:20]OFD Sender: No OFD packet to send [16:22:25]OFD Sender: No OFD packet to send [16:22:30]OFD Sender: No OFD packet to send [16:22:35]OFD Sender: No OFD packet to send [16:22:40]OFD Sender: No OFD packet to send [16:22:45]OFD Sender: No OFD packet to send [16:22:50]OFD Sender: No OFD packet to send [16:22:55]OFD Sender: No OFD packet to send [16:23:00]OFD Sender: No OFD packet to send [16:23:05]OFD Sender: No OFD packet to send [16:23:10]OFD Sender: No OFD packet to send [16:23:15]OFD Sender: No OFD packet to send [16:23:20]OFD Sender: No OFD packet to send [16:23:25]OFD Sender: No OFD packet to send [16:23:30]OFD Sender: No OFD packet to send [16:23:35]OFD Sender: No OFD packet to send [16:23:40]OFD Sender: No OFD packet to send [16:23:42]accept exits with 9 [16:23:42]New connection [16:23:42]New thread 3067096420 created [16:23:42]Thread 3066953060 joined [16:23:42]Waiting for new connection... [16:23:42] Sock 9.Parse request [16:23:42]Sock 9.Check first char [16:23:42]Sock 9.First char is OK [16:23:42]request: POST /json_proto HTTP/1.0 [16:23:42]Method: POST [16:23:42]URL: /json_proto [16:23:42]Method is POST - this is cgi request [16:23:42]url: /json_proto [16:23:42]query_string will be loaded in cgi processing [16:23:42]execute_cgi json_proto POST (null) [16:23:42]execute_cgi path=json_proto method=POST [16:23:42]POST find Content-Length [16:23:42]Host: 172.17.45.7:8080 [16:23:42]Content-Length: 677 [16:23:42]Content-Type: application/json [16:23:42] [16:23:42]POST finish read [16:23:42]Found Content-Length = 677 [16:23:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:42]execute_script... [16:23: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)949098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:42]POST & json_proto [16:23:42]process_json_proto [16:23:42]json parsed OK: [16:23:42]protocol is kg_v1.0 [16:23:42]action value=close_receipt [16:23:42]process_action close_receipt [16:23:42]cmd_close_receipt [16:23:42]MH_GetDate [16:23:42]Write to MH i2c: F0 00 00 04 0B FE [16:23:42]Write i2c OK [16:23:42]MH_I2C_Read... [16:23:42]Read from MH i2c: F0 [16:23:42]MH_I2C_Read... [16:23:42]Read from MH i2c: F0 09 00 [16:23:42]MH_I2C_Read... [16:23:42]Read from MH i2c: F0 09 00 04 0B 00 0E 1F A5 66 90 0F 3E 66 82 [16:23:42]GetLastDocTimeStamp 1722097143 [16:23:42]current date 1722097422 [16:23:42]FM_GetShiftState [16:23:42]SAM_PROTO_GetShiftState [16:23:42]wFMCommunicate request_size=4 [16:23:42]MH_SAM_APDU [16:23:42]CAPDU: 80 13 01 00 [16:23:42]Write to MH i2c: E2 08 00 05 0B 80 13 01 00 00 00 00 00 8D [16:23:42]Write i2c OK [16:23:42]MH_I2C_Read... [16:23:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:42]Read from MH i2c: E2 [16:23:42]MH_I2C_Read... [16:23:42]Read from MH i2c: E2 0E 00 [16:23:42]MH_I2C_Read... [16:23:42]Read from MH i2c: E2 0E 00 05 0B 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 1A [16:23:42]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [16:23:42]wFMCommunicate OK [16:23:42]SAM_PROTO_GetShiftState done [16:23:42]FM_GetShiftState done [16:23:42]opened in 1722038845 [16:23:42]opened+sec_in_day 1722125245 [16:23:42]quantity*price = 20001 [16:23:42]sum+1 = 20002 [16:23:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 168 27.07.2024 16:23 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118225 ФПД: 123404668426210 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T162342&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118225&fm=123404668426210&tin=02508201610067®Number=0000000000092660&sum=20000 [16:23:43]StoreToDocumentArchive [16:23:43]shift 432 fd 118225 [16:23:43]save to /storage/0432/doc_00118225 [16:23:43]save last doc name /storage/0432/doc_00118225 to /storage/kkm_last_doc_name [16:23:43]save OK [16:23:43]Clear old archive folders... [16:23:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:23:43]tlvbuf is 01DE72C0 [16:23:43]SAM_PROTO_ClearQueue [16:23:43]wFMCommunicate request_size=4 [16:23:43]MH_SAM_APDU [16:23:43]CAPDU: 80 09 00 00 [16:23:43]Write to MH i2c: E2 08 00 12 0B 80 09 00 00 00 00 00 00 8F [16:23:43]Write i2c OK [16:23:43]MH_I2C_Read... [16:23:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:23:43]Read from MH i2c: E2 [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: E2 03 00 [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: E2 03 00 12 0B 00 90 00 91 [16:23:43]RAPDU: 90 00 [16:23:43]wFMCommunicate OK [16:23:43]SAM_PROTO_ClearQueue done [16:23:43]KKMCreateOFDPacket [16:23:43]OFDProtocolAddRootSTLVToBuf [16:23:43]FM_MakeSignedData [16:23:43]FM_MakeSignedData [16:23:43]SAM_PROTO_SignData [16:23:43]wFMCommunicate request_size=4 [16:23:43]MH_SAM_APDU [16:23:43]CAPDU: 80 0D 01 02 [16:23:43]Write to MH i2c: E2 08 00 13 0B 80 0D 01 02 00 00 00 00 97 [16:23:43]Write i2c OK [16:23:43]MH_I2C_Read... [16:23:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:23:43]Read from MH i2c: E2 [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: E2 03 00 [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: E2 03 00 13 0B 00 90 00 92 [16:23:43]RAPDU: 90 00 [16:23:43]wFMCommunicate OK [16:23:43]wFMCommunicate request_size=255 [16:23:43]MH_SAM_APDU [16:23: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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 0E 1F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D1 CD 01 00 35 04 06 00 70 [16:23:43]Write to MH i2c: E2 02 01 14 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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 0E 1F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D1 CD 01 00 35 04 06 00 70 00 00 BD [16:23:43]Write i2c OK [16:23:43]MH_I2C_Read... [16:23:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:44]Read from MH i2c: E2 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: E2 03 00 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: E2 03 00 14 0B 00 90 00 93 [16:23:44]RAPDU: 90 00 [16:23:44]wFMCommunicate OK [16:23:44]wFMCommunicate request_size=10 [16:23:44]MH_SAM_APDU [16:23:44]CAPDU: 80 0D 02 02 05 3C 63 6C D7 E2 [16:23:44]Write to MH i2c: E2 0D 00 15 0B 80 0D 02 02 05 00 3C 63 6C D7 E2 00 00 68 [16:23:44]Write i2c OK [16:23:44]MH_I2C_Read... [16:23:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:44]Read from MH i2c: E2 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: E2 03 00 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: E2 03 00 15 0B 00 90 00 94 [16:23:44]RAPDU: 90 00 [16:23:44]wFMCommunicate OK [16:23:44]wFMCommunicate request_size=4 [16:23:44]MH_SAM_APDU [16:23:44]CAPDU: 80 0D 03 02 [16:23:44]Write to MH i2c: E2 08 00 16 0B 80 0D 03 02 00 00 00 00 9C [16:23:44]Write i2c OK [16:23:44]MH_I2C_Read... [16:23:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:23:44]Read from MH i2c: E2 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: E2 0B 00 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: E2 0B 00 16 0B 00 39 2A 1F 95 39 4F CE B1 90 00 BB [16:23:44]RAPDU: 39 2A 1F 95 39 4F CE B1 90 00 [16:23:44]wFMCommunicate OK [16:23:44]SAM_PROTO_SignData done [16:23:44]FM_MakeSignedData done [16:23:44]CreateOFDProtocolMessage [16:23:44]wFMCommunicate request_size=4 [16:23:44]MH_SAM_APDU [16:23:44]CAPDU: 80 11 00 00 [16:23:44]Write to MH i2c: E2 08 00 17 0B 80 11 00 00 00 00 00 00 9C [16:23:44]Write i2c OK [16:23:44]MH_I2C_Read... [16:23:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:44]Read from MH i2c: E2 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: E2 17 00 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: E2 17 00 17 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F7 [16:23:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:23:44]wFMCommunicate OK [16:23:44]CreateOFDProtocolMessage done [16:23:44]OFDSenderStorePacket 118225 [16:23:44]StoreOFDPacket docnum=118225 [16:23:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 99 9B 07 01 93 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 0E 1F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D1 CD 01 00 35 04 06 00 70 3C 63 6C D7 E2 39 2A 1F 95 39 4F CE B1 [16:23:44]CheckFolder [16:23:44]dirname=/storage/ofd_packets [16:23:44]CheckFolder done [16:23:44]ProducePacketName [16:23:44]name=ofd_packets/00118225 [16:23:44]NVStorageSaveData ofd_packets/00118225 [16:23:44]File name is /storage/ofd_packets/00118225 [16:23:44]Write 301 bytes [16:23:44]NVStorageSaveData done [16:23:44]OFDSenderStorePacket done [16:23:44]KKMCreateOFDPacket done [16:23:44]NVStorageSaveData kkm_last_timestamp [16:23:44]File name is /storage/kkm_last_timestamp [16:23:44]Write 4 bytes [16:23:44]NVStorageSaveData done [16:23:44]ExternCall_PrintAddStr [16:23:44]wPrintStart [16:23:44]Write to MH i2c: 01 00 00 18 0B 23 [16:23:44]Write i2c OK [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: 01 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: 01 07 00 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: 01 07 00 18 0B 00 00 00 00 00 FF 0F 38 [16:23:44]RasterBufferAndPrint [16:23:44]line Счет N : (1)949098 [16:23:44]line ИНН: 02508201610067 [16:23:44]line Контрольно-Кассовый Чек [16:23:44]line ПРОДАЖА [16:23:44]line ТРК (МРК, ГНК) : 51 [16:23:44]line Товар: 2710124130 [16:23:44]line Аи-92-К-4 [16:23:44]line 2.950 * 67.80 [16:23:44]line = 200.01 [16:23:44]line НДС 12% НСП 1% [16:23:44]line > о реализуемом товаре [16:23:44]line ОКРУГЛЕНИЕ: -0.01 [16:23:44]line ИТОГО: 200.00 [16:23:44]line Внесено: 200.00 [16:23:44]line СДАЧА: 0.00 [16:23:44]line НСП 1% : 1.77 [16:23:44]line НДС 12% : 21.24 [16:23:44]line Наличными: 200.00 [16:23:44]line Безнал.: 0.00 [16:23:44]line Место: АЗС № 134 "Партнер Нефть" [16:23:44]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:23:44]line СНО: Общий режим [16:23:44]line Чек 168 27.07.2024 16:23 [16:23:44]line Смена: 432 ФФД: 1.0 [16:23:44]line ЗНМ: 0300000044 [16:23:44]line РНМ: 0000000000092660 [16:23:44]line Версия ККМ: 001 [16:23:44]line ФМ: 0000000000874939 [16:23:44]line ФД: 118225 [16:23:44]line ФПД: 123404668426210 [16:23:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T162342&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118225&fm=123404668426210&tin=02508201610067®Number=0000000000092660&sum=20000 [16:23:44]written 0, free lines is 4095 [16:23:44]OFD Sender: Processing packet 118225 [packets to send 86, broken 85] [16:23:44]ProducePacketName [16:23:44]name=ofd_packets/00118225 [16:23:44]OFD Sender: To server: pG, [16:23:44]CommunicateWithHost lk.salyk.kg:30040 [16:23:44]ConnectInit lk.salyk.kg [16:23:44]Connected sock=10 [16:23:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 99 9B 07 01 93 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 0E 1F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D1 CD 01 00 35 04 06 00 70 3C 63 6C D7 E2 39 2A 1F 95 39 4F CE B1 [16:23:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 38 74 47 00 66 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D1 CD 01 00 F4 03 04 00 A1 CC A4 66 B6 04 01 00 00 CF EE 84 75 66 9E 11 C6 [16:23:44]CommunicateWithHost err = 0 [16:23:44]CheckOFDResponse [16:23:44]1017 (14) - 77093643461234 [16:23:44]1041 (16) - 0000000000874939 [16:23:44]1040 (4) - 118225 [16:23:44]1012 (4) - 27.07.2024 10:32 [16:23:44]1206 (1) - 0 [16:23:44]OFD Sender: Remove packet 118225 [16:23:44]ProducePacketName [16:23:44]name=ofd_packets/00118225 [16:23:44]NVStorageDeleteData [16:23:44]Write to MH i2c: 01 00 00 42 0B 4D [16:23:44]Write i2c OK [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: 01 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: 01 07 00 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: 01 07 00 42 0B 00 00 00 00 00 DC 0C 3C [16:23:44]RasterBufferAndPrint [16:23:44]line [16:23:44]line [16:23:44]line [16:23:44]line [16:23:44]line [16:23:44]written 0, free lines is 3298 [16:23:44]MH_Cut [16:23:44]Write to MH i2c: D1 01 00 49 0B 01 26 [16:23:44]Write i2c OK [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: D1 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: D1 01 00 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: D1 01 00 49 0B 00 25 [16:23:44]Write to MH i2c: 01 00 00 4A 0B 55 [16:23:44]Write i2c OK [16:23:44]MH_I2C_Read... [16:23:45]OFD Sender: No OFD packet to send [16:23:45]*** Cut start [16:23:45]*** Partial cut [16:23:45]*** CUTSNS_PIN = 1 [16:23:45]*** CUTSNS_PIN = 0 [16:23:45]*** Brake cut motor [16:23:46]Read from MH i2c: 01 [16:23:46]MH_I2C_Read... [16:23:46]*** Stop cut motor [16:23:46]*** Cut end [16:23:46]Read from MH i2c: 01 07 00 [16:23:46]MH_I2C_Read... [16:23:46]Read from MH i2c: 01 07 00 4A 0B 00 00 00 00 00 FF 0F 6A [16:23:46]process_action close_receipt done [16:23:46]requested_data is exist [16:23:46]produce_requested_data [16:23:46]requested_item fm.sn is exist - process it [16:23:46]wFMCommunicate request_size=4 [16:23:46]MH_SAM_APDU [16:23:46]CAPDU: 80 11 00 00 [16:23:46]Write to MH i2c: E2 08 00 4B 0B 80 11 00 00 00 00 00 00 D0 [16:23:46]Write i2c OK [16:23:46]MH_I2C_Read... [16:23:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:46]Read from MH i2c: E2 [16:23:46]MH_I2C_Read... [16:23:46]Read from MH i2c: E2 17 00 [16:23:46]MH_I2C_Read... [16:23:46]Read from MH i2c: E2 17 00 4B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2B [16:23:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:23:46]wFMCommunicate OK [16:23:46]requested_item fd.num is exist - process it [16:23:46]SAM_PROTO_GetFieldsCounters [16:23:46]wFMCommunicate request_size=4 [16:23:46]MH_SAM_APDU [16:23:46]CAPDU: 80 13 00 00 [16:23:46]Write to MH i2c: E2 08 00 4C 0B 80 13 00 00 00 00 00 00 D3 [16:23:46]Write i2c OK [16:23:46]MH_I2C_Read... [16:23:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:23:46]Read from MH i2c: E2 [16:23:46]MH_I2C_Read... [16:23:46]Read from MH i2c: E2 62 00 [16:23:46]MH_I2C_Read... [16:23:46]Read from MH i2c: E2 62 00 4C 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D1 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [16:23:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D1 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:23:46]wFMCommunicate OK [16:23:46]SAM_PROTO_GetFieldsCounters done [16:23:46]requested_item shift.num is exist - process it [16:23:46]requested_item shift.opened is exist - process it [16:23:46]req_shift_opened [16:23:46]FM_GetShiftState [16:23:46]SAM_PROTO_GetShiftState [16:23:46]wFMCommunicate request_size=4 [16:23:46]MH_SAM_APDU [16:23:46]CAPDU: 80 13 01 00 [16:23:46]Write to MH i2c: E2 08 00 4D 0B 80 13 01 00 00 00 00 00 D5 [16:23:46]Write i2c OK [16:23:46]MH_I2C_Read... [16:23:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:46]Read from MH i2c: E2 [16:23:46]MH_I2C_Read... [16:23:46]Read from MH i2c: E2 0E 00 [16:23:46]MH_I2C_Read... [16:23:46]Read from MH i2c: E2 0E 00 4D 0B 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 62 [16:23:46]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [16:23:46]wFMCommunicate OK [16:23:46]SAM_PROTO_GetShiftState done [16:23:46]FM_GetShiftState done [16:23:46]req_shift_opened done [16:23:46]requested_item shift.open_date is exist - process it [16:23:46]req_shift_open_date [16:23:46]req_shift_open_date done [16:23:46]produce_requested_data done [16:23:46]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118225,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [16:23:46]process_action_free close_receipt [16:23:46]json_value_free [16:23:46]json_value_free done [16:23:46]process_json_proto returns [16:23:46]Send response to host [16:23:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118225,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [16:23:46]free response buf [16:23:46]execute_script done [16:23:46]execute_script returns [16:23:46]free content buf [16:23:46]Sock 9.Close socket [16:23:46]Sock 9.Thread stoped [16:23:50]OFD Sender: No OFD packet to send [16:23:55]OFD Sender: No OFD packet to send [16:23:59]accept exits with 7 [16:23:59]New connection [16:23:59]New thread 3066953060 created [16:23:59]Thread 3067096420 joined [16:23:59]Waiting for new connection... [16:23:59] Sock 7.Parse request [16:23:59]Sock 7.Check first char [16:23:59]Sock 7.First char is OK [16:23:59]request: POST /json_proto HTTP/1.0 [16:23:59]Method: POST [16:23:59]URL: /json_proto [16:23:59]Method is POST - this is cgi request [16:23:59]url: /json_proto [16:23:59]query_string will be loaded in cgi processing [16:23:59]execute_cgi json_proto POST (null) [16:23:59]execute_cgi path=json_proto method=POST [16:23:59]POST find Content-Length [16:23:59]Host: 172.17.45.7:8080 [16:23:59]Content-Length: 682 [16:23:59]Content-Type: application/json [16:23:59] [16:23:59]POST finish read [16:23:59]Found Content-Length = 682 [16:23:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 15.270, "sum" : 1035.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1035.00, "total" : 1035.00, "payments": [ { "type": 0, "sum" : 1035.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:59]execute_script... [16:23: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)949099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 15.270, "sum" : 1035.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1035.00, "total" : 1035.00, "payments": [ { "type": 0, "sum" : 1035.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:59]POST & json_proto [16:23:59]process_json_proto [16:23:59]json parsed OK: [16:23:59]protocol is kg_v1.0 [16:23:59]action value=close_receipt [16:23:59]process_action close_receipt [16:23:59]cmd_close_receipt [16:23:59]MH_GetDate [16:23:59]Write to MH i2c: F0 00 00 4E 0B 48 [16:23:59]Write i2c OK [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: F0 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: F0 09 00 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: F0 09 00 4E 0B 00 20 1F A5 66 90 0F 3E 66 DE [16:23:59]GetLastDocTimeStamp 1722097422 [16:23:59]current date 1722097440 [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 4F 0B 80 13 01 00 00 00 00 00 D7 [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 4F 0B 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 64 [16:23:59]RAPDU: 09 00 01 3D 3A A4 66 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]opened in 1722038845 [16:23:59]opened+sec_in_day 1722125245 [16:23:59]quantity*price = 103530 [16:23:59]sum+1 = 103532 [16:23:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 1035.00 Внесено: 1035.00 СДАЧА: 0.00 НСП 1% : 9.16 НДС 12% : 109.94 Наличными: 1035.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 169 27.07.2024 16:24 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118226 ФПД: 202228492187004 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T162400&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118226&fm=202228492187004&tin=02508201610067®Number=0000000000092660&sum=103500 [16:24:01]StoreToDocumentArchive [16:24:01]shift 432 fd 118226 [16:24:01]save to /storage/0432/doc_00118226 [16:24:01]save last doc name /storage/0432/doc_00118226 to /storage/kkm_last_doc_name [16:24:01]save OK [16:24:01]Clear old archive folders... [16:24:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:24:01]tlvbuf is 01DCDDD0 [16:24:01]SAM_PROTO_ClearQueue [16:24:01]wFMCommunicate request_size=4 [16:24:01]MH_SAM_APDU [16:24:01]CAPDU: 80 09 00 00 [16:24:01]Write to MH i2c: E2 08 00 5C 0B 80 09 00 00 00 00 00 00 D9 [16:24:01]Write i2c OK [16:24:01]MH_I2C_Read... [16:24:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:01]Read from MH i2c: E2 [16:24:01]MH_I2C_Read... [16:24:01]Read from MH i2c: E2 03 00 [16:24:01]MH_I2C_Read... [16:24:01]Read from MH i2c: E2 03 00 5C 0B 00 90 00 DB [16:24:01]RAPDU: 90 00 [16:24:01]wFMCommunicate OK [16:24:01]SAM_PROTO_ClearQueue done [16:24:01]KKMCreateOFDPacket [16:24:01]OFDProtocolAddRootSTLVToBuf [16:24:01]FM_MakeSignedData [16:24:01]FM_MakeSignedData [16:24:01]SAM_PROTO_SignData [16:24:01]wFMCommunicate request_size=4 [16:24:01]MH_SAM_APDU [16:24:01]CAPDU: 80 0D 01 02 [16:24:01]Write to MH i2c: E2 08 00 5D 0B 80 0D 01 02 00 00 00 00 E1 [16:24:01]Write i2c OK [16:24:01]MH_I2C_Read... [16:24:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:01]Read from MH i2c: E2 [16:24:01]MH_I2C_Read... [16:24:01]Read from MH i2c: E2 03 00 [16:24:01]MH_I2C_Read... [16:24:01]Read from MH i2c: E2 03 00 5D 0B 00 90 00 DC [16:24:01]RAPDU: 90 00 [16:24:01]wFMCommunicate OK [16:24:01]wFMCommunicate request_size=255 [16:24:01]MH_SAM_APDU [16:24: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 34 FF 03 08 00 03 A6 3B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6B 94 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 94 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 2A 00 00 00 00 07 04 06 00 4C 94 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 20 1F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D2 CD 01 00 35 04 06 00 B7 [16:24:01]Write to MH i2c: E2 02 01 5E 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 34 FF 03 08 00 03 A6 3B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6B 94 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 94 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 2A 00 00 00 00 07 04 06 00 4C 94 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 20 1F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D2 CD 01 00 35 04 06 00 B7 00 00 D7 [16:24:01]Write i2c OK [16:24:01]MH_I2C_Read... [16:24:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:01]Read from MH i2c: E2 [16:24:01]MH_I2C_Read... [16:24:01]Read from MH i2c: E2 03 00 [16:24:01]MH_I2C_Read... [16:24:01]Read from MH i2c: E2 03 00 5E 0B 00 90 00 DD [16:24:01]RAPDU: 90 00 [16:24:01]wFMCommunicate OK [16:24:01]wFMCommunicate request_size=10 [16:24:01]MH_SAM_APDU [16:24:01]CAPDU: 80 0D 02 02 05 EC FD 70 B5 7C [16:24:01]Write to MH i2c: E2 0D 00 5F 0B 80 0D 02 02 05 00 EC FD 70 B5 7C 00 00 78 [16:24:01]Write i2c OK [16:24:01]MH_I2C_Read... [16:24:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:01]Read from MH i2c: E2 [16:24:01]MH_I2C_Read... [16:24:01]Read from MH i2c: E2 03 00 [16:24:01]MH_I2C_Read... [16:24:01]Read from MH i2c: E2 03 00 5F 0B 00 90 00 DE [16:24:01]RAPDU: 90 00 [16:24:01]wFMCommunicate OK [16:24:01]wFMCommunicate request_size=4 [16:24:01]MH_SAM_APDU [16:24:01]CAPDU: 80 0D 03 02 [16:24:01]Write to MH i2c: E2 08 00 60 0B 80 0D 03 02 00 00 00 00 E6 [16:24:01]Write i2c OK [16:24:01]MH_I2C_Read... [16:24:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:01]Read from MH i2c: E2 [16:24:01]MH_I2C_Read... [16:24:01]Read from MH i2c: E2 0B 00 [16:24:01]MH_I2C_Read... [16:24:01]Read from MH i2c: E2 0B 00 60 0B 00 95 C6 04 31 B5 A7 69 27 90 00 63 [16:24:01]RAPDU: 95 C6 04 31 B5 A7 69 27 90 00 [16:24:01]wFMCommunicate OK [16:24:01]SAM_PROTO_SignData done [16:24:01]FM_MakeSignedData done [16:24:01]CreateOFDProtocolMessage [16:24:01]wFMCommunicate request_size=4 [16:24:01]MH_SAM_APDU [16:24:01]CAPDU: 80 11 00 00 [16:24:01]Write to MH i2c: E2 08 00 61 0B 80 11 00 00 00 00 00 00 E6 [16:24:01]Write i2c OK [16:24:01]MH_I2C_Read... [16:24:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:01]Read from MH i2c: E2 [16:24:01]MH_I2C_Read... [16:24:01]Read from MH i2c: E2 17 00 [16:24:01]MH_I2C_Read... [16:24:01]Read from MH i2c: E2 17 00 61 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 41 [16:24:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:24:01]wFMCommunicate OK [16:24:01]CreateOFDProtocolMessage done [16:24:01]OFDSenderStorePacket 118226 [16:24:01]StoreOFDPacket docnum=118226 [16:24:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 74 67 07 01 62 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 34 FF 03 08 00 03 A6 3B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6B 94 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 94 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 2A 00 00 00 00 07 04 06 00 4C 94 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 20 1F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D2 CD 01 00 35 04 06 00 B7 EC FD 70 B5 7C 95 C6 04 31 B5 A7 69 27 [16:24:01]CheckFolder [16:24:01]dirname=/storage/ofd_packets [16:24:01]CheckFolder done [16:24:01]ProducePacketName [16:24:01]name=ofd_packets/00118226 [16:24:01]NVStorageSaveData ofd_packets/00118226 [16:24:01]File name is /storage/ofd_packets/00118226 [16:24:01]Write 301 bytes [16:24:01]NVStorageSaveData done [16:24:01]OFDSenderStorePacket done [16:24:01]KKMCreateOFDPacket done [16:24:01]NVStorageSaveData kkm_last_timestamp [16:24:01]File name is /storage/kkm_last_timestamp [16:24:01]Write 4 bytes [16:24:01]NVStorageSaveData done [16:24:01]ExternCall_PrintAddStr [16:24:01]wPrintStart [16:24:01]Write to MH i2c: 01 00 00 62 0B 6D [16:24:01]Write i2c OK [16:24:01]MH_I2C_Read... [16:24:01]Read from MH i2c: 01 [16:24:01]MH_I2C_Read... [16:24:01]Read from MH i2c: 01 07 00 [16:24:01]MH_I2C_Read... [16:24:01]Read from MH i2c: 01 07 00 62 0B 00 00 00 00 00 FF 0F 82 [16:24:01]RasterBufferAndPrint [16:24:01]line Счет N : (1)949099 [16:24:01]line ИНН: 02508201610067 [16:24:01]line Контрольно-Кассовый Чек [16:24:01]line ПРОДАЖА [16:24:01]line ТРК (МРК, ГНК) : 41 [16:24:01]line Товар: 2710124130 [16:24:01]line Аи-92-К-4 [16:24:01]line 15.270 * 67.80 [16:24:01]line = 1035.31 [16:24:01]line НДС 12% НСП 1% [16:24:01]line > о реализуемом товаре [16:24:01]line ОКРУГЛЕНИЕ: -0.31 [16:24:01]line ИТОГО: 1035.00 [16:24:01]line Внесено: 1035.00 [16:24:01]line СДАЧА: 0.00 [16:24:01]line НСП 1% : 9.16 [16:24:01]line НДС 12% : 109.94 [16:24:01]line Наличными: 1035.00 [16:24:01]line Безнал.: 0.00 [16:24:01]line Место: АЗС № 134 "Партнер Нефть" [16:24:01]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:24:01]line СНО: Общий режим [16:24:01]line Чек 169 27.07.2024 16:24 [16:24:01]line Смена: 432 ФФД: 1.0 [16:24:01]line ЗНМ: 0300000044 [16:24:01]line РНМ: 0000000000092660 [16:24:01]line Версия ККМ: 001 [16:24:01]line ФМ: 0000000000874939 [16:24:01]line ФД: 118226 [16:24:01]line ФПД: 202228492187004 [16:24:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T162400&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118226&fm=202228492187004&tin=02508201610067®Number=0000000000092660&sum=103500 [16:24:01]OFD Sender: Processing packet 118226 [packets to send 86, broken 85] [16:24:01]ProducePacketName [16:24:01]name=ofd_packets/00118226 [16:24:01]OFD Sender: To server: pG, [16:24:01]CommunicateWithHost lk.salyk.kg:30040 [16:24:01]ConnectInit lk.salyk.kg [16:24:01]written 0, free lines is 4095 [16:24:02]Connected sock=10 [16:24:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 74 67 07 01 62 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 34 FF 03 08 00 03 A6 3B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6B 94 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 94 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 94 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 2A 00 00 00 00 07 04 06 00 4C 94 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 20 1F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D2 CD 01 00 35 04 06 00 B7 EC FD 70 B5 7C 95 C6 04 31 B5 A7 69 27 [16:24:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 BA 3F 47 00 B8 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 34 39 33 39 10 04 04 00 D2 CD 01 00 F4 03 04 00 B2 CC A4 66 B6 04 01 00 00 5D 09 78 E0 FB 49 4A 67 [16:24:02]CommunicateWithHost err = 0 [16:24:02]CheckOFDResponse [16:24:02]1017 (14) - 77093643461234 [16:24:02]1041 (16) - 0000000000874939 [16:24:02]1040 (4) - 118226 [16:24:02]1012 (4) - 27.07.2024 10:32 [16:24:02]1206 (1) - 0 [16:24:02]OFD Sender: Remove packet 118226 [16:24:02]ProducePacketName [16:24:02]name=ofd_packets/00118226 [16:24:02]NVStorageDeleteData [16:24:02]Write to MH i2c: 01 00 00 8C 0B 97 [16:24:02]Write i2c OK [16:24:02]MH_I2C_Read... [16:24:02]Read from MH i2c: 01 [16:24:02]MH_I2C_Read... [16:24:02]Read from MH i2c: 01 07 00 [16:24:02]MH_I2C_Read... [16:24:02]Read from MH i2c: 01 07 00 8C 0B 00 00 00 00 00 DC 0C 86 [16:24:02]RasterBufferAndPrint [16:24:02]line [16:24:02]line [16:24:02]line [16:24:02]line [16:24:02]line [16:24:02]written 0, free lines is 3298 [16:24:02]MH_Cut [16:24:02]Write to MH i2c: D1 01 00 93 0B 01 70 [16:24:02]Write i2c OK [16:24:02]MH_I2C_Read... [16:24:02]Read from MH i2c: D1 [16:24:02]MH_I2C_Read... [16:24:02]Read from MH i2c: D1 01 00 [16:24:02]MH_I2C_Read... [16:24:02]Read from MH i2c: D1 01 00 93 0B 00 6F [16:24:02]Write to MH i2c: 01 00 00 94 0B 9F [16:24:02]Write i2c OK [16:24:02]MH_I2C_Read... [16:24:02]OFD Sender: No OFD packet to send [16:24:03]*** Cut start [16:24:03]*** Partial cut [16:24:03]*** CUTSNS_PIN = 1 [16:24:03]*** CUTSNS_PIN = 0 [16:24:03]*** Brake cut motor [16:24:03]Read from MH i2c: 01 [16:24:03]MH_I2C_Read... [16:24:03]*** Stop cut motor [16:24:03]*** Cut end [16:24:03]Read from MH i2c: 01 07 00 [16:24:03]MH_I2C_Read... [16:24:03]Read from MH i2c: 01 07 00 94 0B 00 00 00 00 00 FF 0F B4 [16:24:03]process_action close_receipt done [16:24:03]requested_data is exist [16:24:03]produce_requested_data [16:24:03]requested_item fm.sn is exist - process it [16:24:03]wFMCommunicate request_size=4 [16:24:03]MH_SAM_APDU [16:24:03]CAPDU: 80 11 00 00 [16:24:03]Write to MH i2c: E2 08 00 95 0B 80 11 00 00 00 00 00 00 1A [16:24:03]Write i2c OK [16:24:03]MH_I2C_Read... [16:24:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:03]Read from MH i2c: E2 [16:24:03]MH_I2C_Read... [16:24:03]Read from MH i2c: E2 17 00 [16:24:03]MH_I2C_Read... [16:24:03]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 34 39 33 39 90 00 75 [16:24:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:24:03]wFMCommunicate OK [16:24:03]requested_item fd.num is exist - process it [16:24:03]SAM_PROTO_GetFieldsCounters [16:24:03]wFMCommunicate request_size=4 [16:24:03]MH_SAM_APDU [16:24:03]CAPDU: 80 13 00 00 [16:24:03]Write to MH i2c: E2 08 00 96 0B 80 13 00 00 00 00 00 00 1D [16:24:03]Write i2c OK [16:24:03]MH_I2C_Read... [16:24:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:03]Read from MH i2c: E2 [16:24:03]MH_I2C_Read... [16:24:03]Read from MH i2c: E2 62 00 [16:24:03]MH_I2C_Read... [16:24:03]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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D2 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [16:24:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D2 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:24:03]wFMCommunicate OK [16:24:03]SAM_PROTO_GetFieldsCounters done [16:24:03]requested_item shift.num is exist - process it [16:24:03]requested_item shift.opened is exist - process it [16:24:03]req_shift_opened [16:24:03]FM_GetShiftState [16:24:03]SAM_PROTO_GetShiftState [16:24:03]wFMCommunicate request_size=4 [16:24:03]MH_SAM_APDU [16:24:03]CAPDU: 80 13 01 00 [16:24:03]Write to MH i2c: E2 08 00 97 0B 80 13 01 00 00 00 00 00 1F [16:24:03]Write i2c OK [16:24:03]MH_I2C_Read... [16:24:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:04]Read from MH i2c: E2 [16:24:04]MH_I2C_Read... [16:24:04]Read from MH i2c: E2 0E 00 [16:24:04]MH_I2C_Read... [16:24:04]Read from MH i2c: E2 0E 00 97 0B 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 AC [16:24:04]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [16:24:04]wFMCommunicate OK [16:24:04]SAM_PROTO_GetShiftState done [16:24:04]FM_GetShiftState done [16:24:04]req_shift_opened done [16:24:04]requested_item shift.open_date is exist - process it [16:24:04]req_shift_open_date [16:24:04]req_shift_open_date done [16:24:04]produce_requested_data done [16:24:04]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118226,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [16:24:04]process_action_free close_receipt [16:24:04]json_value_free [16:24:04]json_value_free done [16:24:04]process_json_proto returns [16:24:04]Send response to host [16:24:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118226,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [16:24:04]free response buf [16:24:04]execute_script done [16:24:04]execute_script returns [16:24:04]free content buf [16:24:04]Sock 7.Close socket [16:24:04]Sock 7.Thread stoped [16:24:07]OFD Sender: No OFD packet to send [16:24:12]OFD Sender: No OFD packet to send [16:24:17]OFD Sender: No OFD packet to send [16:24:22]OFD Sender: No OFD packet to send [16:24:23]accept exits with 9 [16:24:23]New connection [16:24:23]New thread 3067096420 created [16:24:23]Thread 3066953060 joined [16:24:23]Waiting for new connection... [16:24:23] Sock 9.Parse request [16:24:23]Sock 9.Check first char [16:24:23]Sock 9.First char is OK [16:24:23]request: POST /json_proto HTTP/1.0 [16:24:23]Method: POST [16:24:23]URL: /json_proto [16:24:23]Method is POST - this is cgi request [16:24:23]url: /json_proto [16:24:23]query_string will be loaded in cgi processing [16:24:23]execute_cgi json_proto POST (null) [16:24:23]execute_cgi path=json_proto method=POST [16:24:23]POST find Content-Length [16:24:23]Host: 172.17.45.7:8080 [16:24:23]Content-Length: 677 [16:24:23]Content-Type: application/json [16:24:23] [16:24:23]POST finish read [16:24:23]Found Content-Length = 677 [16:24:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:23]execute_script... [16:24: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)949100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:23]POST & json_proto [16:24:23]process_json_proto [16:24:23]json parsed OK: [16:24:23]protocol is kg_v1.0 [16:24:23]action value=close_receipt [16:24:23]process_action close_receipt [16:24:23]cmd_close_receipt [16:24:23]MH_GetDate [16:24:23]Write to MH i2c: F0 00 00 98 0B 92 [16:24:23]Write i2c OK [16:24:23]MH_I2C_Read... [16:24:23]Read from MH i2c: F0 [16:24:23]MH_I2C_Read... [16:24:23]Read from MH i2c: F0 09 00 [16:24:23]MH_I2C_Read... [16:24:23]Read from MH i2c: F0 09 00 98 0B 00 37 1F A5 66 90 0F 3E 66 3F [16:24:23]GetLastDocTimeStamp 1722097440 [16:24:23]current date 1722097463 [16:24:23]FM_GetShiftState [16:24:23]SAM_PROTO_GetShiftState [16:24:23]wFMCommunicate request_size=4 [16:24:23]MH_SAM_APDU [16:24:23]CAPDU: 80 13 01 00 [16:24:23]Write to MH i2c: E2 08 00 99 0B 80 13 01 00 00 00 00 00 21 [16:24:23]Write i2c OK [16:24:23]MH_I2C_Read... [16:24:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:23]Read from MH i2c: E2 [16:24:23]MH_I2C_Read... [16:24:23]Read from MH i2c: E2 0E 00 [16:24:23]MH_I2C_Read... [16:24:23]Read from MH i2c: E2 0E 00 99 0B 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 AE [16:24:23]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [16:24:23]wFMCommunicate OK [16:24:23]SAM_PROTO_GetShiftState done [16:24:23]FM_GetShiftState done [16:24:23]opened in 1722038845 [16:24:23]opened+sec_in_day 1722125245 [16:24:23]quantity*price = 40002 [16:24:23]sum+1 = 40003 [16:24:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 170 27.07.2024 16:24 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118227 ФПД: 236810590067430 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T162423&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118227&fm=236810590067430&tin=02508201610067®Number=0000000000092660&sum=40000 [16:24:24]StoreToDocumentArchive [16:24:24]shift 432 fd 118227 [16:24:24]save to /storage/0432/doc_00118227 [16:24:24]save last doc name /storage/0432/doc_00118227 to /storage/kkm_last_doc_name [16:24:24]save OK [16:24:24]Clear old archive folders... [16:24:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:24:24]tlvbuf is 01DE64F0 [16:24:24]SAM_PROTO_ClearQueue [16:24:24]wFMCommunicate request_size=4 [16:24:24]MH_SAM_APDU [16:24:24]CAPDU: 80 09 00 00 [16:24:24]Write to MH i2c: E2 08 00 A6 0B 80 09 00 00 00 00 00 00 23 [16:24:24]Write i2c OK [16:24:24]MH_I2C_Read... [16:24:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:24]Read from MH i2c: E2 [16:24:24]MH_I2C_Read... [16:24:24]Read from MH i2c: E2 03 00 [16:24:24]MH_I2C_Read... [16:24:24]Read from MH i2c: E2 03 00 A6 0B 00 90 00 25 [16:24:24]RAPDU: 90 00 [16:24:24]wFMCommunicate OK [16:24:24]SAM_PROTO_ClearQueue done [16:24:24]KKMCreateOFDPacket [16:24:24]OFDProtocolAddRootSTLVToBuf [16:24:24]FM_MakeSignedData [16:24:24]FM_MakeSignedData [16:24:24]SAM_PROTO_SignData [16:24:24]wFMCommunicate request_size=4 [16:24:24]MH_SAM_APDU [16:24:24]CAPDU: 80 0D 01 02 [16:24:24]Write to MH i2c: E2 08 00 A7 0B 80 0D 01 02 00 00 00 00 2B [16:24:24]Write i2c OK [16:24:24]MH_I2C_Read... [16:24:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:24]Read from MH i2c: E2 [16:24:24]MH_I2C_Read... [16:24:24]Read from MH i2c: E2 03 00 [16:24:24]MH_I2C_Read... [16:24:24]Read from MH i2c: E2 03 00 A7 0B 00 90 00 26 [16:24:24]RAPDU: 90 00 [16:24:24]wFMCommunicate OK [16:24:24]wFMCommunicate request_size=255 [16:24:24]MH_SAM_APDU [16:24: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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 37 1F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D3 CD 01 00 35 04 06 00 D7 [16:24:24]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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 37 1F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D3 CD 01 00 35 04 06 00 D7 00 00 C8 [16:24:24]Write i2c OK [16:24:24]MH_I2C_Read... [16:24:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:24]Read from MH i2c: E2 [16:24:24]MH_I2C_Read... [16:24:24]Read from MH i2c: E2 03 00 [16:24:24]MH_I2C_Read... [16:24:24]Read from MH i2c: E2 03 00 A8 0B 00 90 00 27 [16:24:24]RAPDU: 90 00 [16:24:24]wFMCommunicate OK [16:24:24]wFMCommunicate request_size=10 [16:24:24]MH_SAM_APDU [16:24:24]CAPDU: 80 0D 02 02 05 60 C3 19 9A E6 [16:24:24]Write to MH i2c: E2 0D 00 A9 0B 80 0D 02 02 05 00 60 C3 19 9A E6 00 00 F4 [16:24:24]Write i2c OK [16:24:24]MH_I2C_Read... [16:24:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:25]Read from MH i2c: E2 [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: E2 03 00 [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: E2 03 00 A9 0B 00 90 00 28 [16:24:25]RAPDU: 90 00 [16:24:25]wFMCommunicate OK [16:24:25]wFMCommunicate request_size=4 [16:24:25]MH_SAM_APDU [16:24:25]CAPDU: 80 0D 03 02 [16:24:25]Write to MH i2c: E2 08 00 AA 0B 80 0D 03 02 00 00 00 00 30 [16:24:25]Write i2c OK [16:24:25]MH_I2C_Read... [16:24:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:25]Read from MH i2c: E2 [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: E2 0B 00 [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: E2 0B 00 AA 0B 00 3A FA EB 97 FD 54 92 D5 90 00 9F [16:24:25]RAPDU: 3A FA EB 97 FD 54 92 D5 90 00 [16:24:25]wFMCommunicate OK [16:24:25]SAM_PROTO_SignData done [16:24:25]FM_MakeSignedData done [16:24:25]CreateOFDProtocolMessage [16:24:25]wFMCommunicate request_size=4 [16:24:25]MH_SAM_APDU [16:24:25]CAPDU: 80 11 00 00 [16:24:25]Write to MH i2c: E2 08 00 AB 0B 80 11 00 00 00 00 00 00 30 [16:24:25]Write i2c OK [16:24:25]MH_I2C_Read... [16:24:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:25]Read from MH i2c: E2 [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: E2 17 00 [16:24:25]MH_I2C_Read... [16:24:25]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 34 39 33 39 90 00 8B [16:24:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:24:25]wFMCommunicate OK [16:24:25]CreateOFDProtocolMessage done [16:24:25]OFDSenderStorePacket 118227 [16:24:25]StoreOFDPacket docnum=118227 [16:24:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 AF EF 07 01 1E 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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 37 1F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D3 CD 01 00 35 04 06 00 D7 60 C3 19 9A E6 3A FA EB 97 FD 54 92 D5 [16:24:25]CheckFolder [16:24:25]dirname=/storage/ofd_packets [16:24:25]CheckFolder done [16:24:25]ProducePacketName [16:24:25]name=ofd_packets/00118227 [16:24:25]NVStorageSaveData ofd_packets/00118227 [16:24:25]File name is /storage/ofd_packets/00118227 [16:24:25]Write 301 bytes [16:24:25]NVStorageSaveData done [16:24:25]OFDSenderStorePacket done [16:24:25]KKMCreateOFDPacket done [16:24:25]NVStorageSaveData kkm_last_timestamp [16:24:25]File name is /storage/kkm_last_timestamp [16:24:25]Write 4 bytes [16:24:25]NVStorageSaveData done [16:24:25]ExternCall_PrintAddStr [16:24:25]wPrintStart [16:24:25]Write to MH i2c: 01 00 00 AC 0B B7 [16:24:25]Write i2c OK [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: 01 [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: 01 07 00 [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: 01 07 00 AC 0B 00 00 00 00 00 FF 0F CC [16:24:25]RasterBufferAndPrint [16:24:25]line Счет N : (1)949100 [16:24:25]line ИНН: 02508201610067 [16:24:25]line Контрольно-Кассовый Чек [16:24:25]line ПРОДАЖА [16:24:25]line ТРК (МРК, ГНК) : 31 [16:24:25]line Товар: 2710124130 [16:24:25]line Аи-92-К-4 [16:24:25]line 5.900 * 67.80 [16:24:25]line = 400.02 [16:24:25]line НДС 12% НСП 1% [16:24:25]line > о реализуемом товаре [16:24:25]line ОКРУГЛЕНИЕ: -0.02 [16:24:25]line ИТОГО: 400.00 [16:24:25]line Внесено: 400.00 [16:24:25]line СДАЧА: 0.00 [16:24:25]line НСП 1% : 3.54 [16:24:25]line НДС 12% : 42.48 [16:24:25]line Наличными: 400.00 [16:24:25]line Безнал.: 0.00 [16:24:25]line Место: АЗС № 134 "Партнер Нефть" [16:24:25]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:24:25]line СНО: Общий режим [16:24:25]line Чек 170 27.07.2024 16:24 [16:24:25]line Смена: 432 ФФД: 1.0 [16:24:25]line ЗНМ: 0300000044 [16:24:25]line РНМ: 0000000000092660 [16:24:25]line Версия ККМ: 001 [16:24:25]line ФМ: 0000000000874939 [16:24:25]line ФД: 118227 [16:24:25]line ФПД: 236810590067430 [16:24:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T162423&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118227&fm=236810590067430&tin=02508201610067®Number=0000000000092660&sum=40000 [16:24:25]written 0, free lines is 4095 [16:24:25]OFD Sender: Processing packet 118227 [packets to send 86, broken 85] [16:24:25]ProducePacketName [16:24:25]name=ofd_packets/00118227 [16:24:25]OFD Sender: To server: pG, [16:24:25]CommunicateWithHost lk.salyk.kg:30040 [16:24:25]ConnectInit lk.salyk.kg [16:24:25]Connected sock=10 [16:24:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 AF EF 07 01 1E 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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 37 1F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D3 CD 01 00 35 04 06 00 D7 60 C3 19 9A E6 3A FA EB 97 FD 54 92 D5 [16:24:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 CB 6A 47 00 39 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D3 CD 01 00 F4 03 04 00 CA CC A4 66 B6 04 01 00 00 F3 76 1B 4C 5C D6 7B 30 [16:24:25]CommunicateWithHost err = 0 [16:24:25]CheckOFDResponse [16:24:25]1017 (14) - 77093643461234 [16:24:25]1041 (16) - 0000000000874939 [16:24:25]1040 (4) - 118227 [16:24:25]1012 (4) - 27.07.2024 10:32 [16:24:25]1206 (1) - 0 [16:24:25]OFD Sender: Remove packet 118227 [16:24:25]ProducePacketName [16:24:25]name=ofd_packets/00118227 [16:24:25]NVStorageDeleteData [16:24:25]Write to MH i2c: 01 00 00 D6 0B E1 [16:24:25]Write i2c OK [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: 01 [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: 01 07 00 [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: 01 07 00 D6 0B 00 00 00 00 00 D5 0C C9 [16:24:25]RasterBufferAndPrint [16:24:25]line [16:24:25]line [16:24:25]line [16:24:25]line [16:24:25]line [16:24:25]written 0, free lines is 3292 [16:24:25]MH_Cut [16:24:25]Write to MH i2c: D1 01 00 DD 0B 01 BA [16:24:25]Write i2c OK [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: D1 [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: D1 01 00 [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: D1 01 00 DD 0B 00 B9 [16:24:25]Write to MH i2c: 01 00 00 DE 0B E9 [16:24:25]Write i2c OK [16:24:25]MH_I2C_Read... [16:24:26]OFD Sender: No OFD packet to send [16:24:26]*** Cut start [16:24:26]*** Partial cut [16:24:26]*** CUTSNS_PIN = 1 [16:24:26]*** CUTSNS_PIN = 0 [16:24:26]*** Brake cut motor [16:24:27]Read from MH i2c: 01 [16:24:27]MH_I2C_Read... [16:24:27]*** Stop cut motor [16:24:27]*** Cut end [16:24:27]Read from MH i2c: 01 07 00 [16:24:27]MH_I2C_Read... [16:24:27]Read from MH i2c: 01 07 00 DE 0B 00 00 00 00 00 FF 0F FE [16:24:27]process_action close_receipt done [16:24:27]requested_data is exist [16:24:27]produce_requested_data [16:24:27]requested_item fm.sn is exist - process it [16:24:27]wFMCommunicate request_size=4 [16:24:27]MH_SAM_APDU [16:24:27]CAPDU: 80 11 00 00 [16:24:27]Write to MH i2c: E2 08 00 DF 0B 80 11 00 00 00 00 00 00 64 [16:24:27]Write i2c OK [16:24:27]MH_I2C_Read... [16:24:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:27]Read from MH i2c: E2 [16:24:27]MH_I2C_Read... [16:24:27]Read from MH i2c: E2 17 00 [16:24:27]MH_I2C_Read... [16:24:27]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 34 39 33 39 90 00 BF [16:24:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:24:27]wFMCommunicate OK [16:24:27]requested_item fd.num is exist - process it [16:24:27]SAM_PROTO_GetFieldsCounters [16:24:27]wFMCommunicate request_size=4 [16:24:27]MH_SAM_APDU [16:24:27]CAPDU: 80 13 00 00 [16:24:27]Write to MH i2c: E2 08 00 E0 0B 80 13 00 00 00 00 00 00 67 [16:24:27]Write i2c OK [16:24:27]MH_I2C_Read... [16:24:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:27]Read from MH i2c: E2 [16:24:27]MH_I2C_Read... [16:24:27]Read from MH i2c: E2 62 00 [16:24:27]MH_I2C_Read... [16:24:27]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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D3 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [16:24:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D3 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:24:27]wFMCommunicate OK [16:24:27]SAM_PROTO_GetFieldsCounters done [16:24:27]requested_item shift.num is exist - process it [16:24:27]requested_item shift.opened is exist - process it [16:24:27]req_shift_opened [16:24:27]FM_GetShiftState [16:24:27]SAM_PROTO_GetShiftState [16:24:27]wFMCommunicate request_size=4 [16:24:27]MH_SAM_APDU [16:24:27]CAPDU: 80 13 01 00 [16:24:27]Write to MH i2c: E2 08 00 E1 0B 80 13 01 00 00 00 00 00 69 [16:24:27]Write i2c OK [16:24:27]MH_I2C_Read... [16:24:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:27]Read from MH i2c: E2 [16:24:27]MH_I2C_Read... [16:24:27]Read from MH i2c: E2 0E 00 [16:24:27]MH_I2C_Read... [16:24:27]Read from MH i2c: E2 0E 00 E1 0B 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 F6 [16:24:27]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [16:24:27]wFMCommunicate OK [16:24:27]SAM_PROTO_GetShiftState done [16:24:27]FM_GetShiftState done [16:24:27]req_shift_opened done [16:24:27]requested_item shift.open_date is exist - process it [16:24:27]req_shift_open_date [16:24:27]req_shift_open_date done [16:24:27]produce_requested_data done [16:24:27]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118227,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [16:24:27]process_action_free close_receipt [16:24:27]json_value_free [16:24:27]json_value_free done [16:24:27]process_json_proto returns [16:24:27]Send response to host [16:24:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118227,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [16:24:27]free response buf [16:24:27]execute_script done [16:24:27]execute_script returns [16:24:27]free content buf [16:24:27]Sock 9.Close socket [16:24:27]Sock 9.Thread stoped [16:24:31]OFD Sender: No OFD packet to send [16:24:36]OFD Sender: No OFD packet to send [16:24:41]OFD Sender: No OFD packet to send [16:24:46]OFD Sender: No OFD packet to send [16:24:51]OFD Sender: No OFD packet to send [16:24:56]OFD Sender: No OFD packet to send [16:25:01]OFD Sender: No OFD packet to send [16:25:06]OFD Sender: No OFD packet to send [16:25:11]OFD Sender: No OFD packet to send [16:25:16]OFD Sender: No OFD packet to send [16:25:21]OFD Sender: No OFD packet to send [16:25:26]OFD Sender: No OFD packet to send [16:25:28]accept exits with 7 [16:25:28]New connection [16:25:28]New thread 3066953060 created [16:25:28]Thread 3067096420 joined [16:25:28]Waiting for new connection... [16:25:28] Sock 7.Parse request [16:25:28]Sock 7.Check first char [16:25:28]Sock 7.First char is OK [16:25:28]request: POST /json_proto HTTP/1.0 [16:25:28]Method: POST [16:25:28]URL: /json_proto [16:25:28]Method is POST - this is cgi request [16:25:28]url: /json_proto [16:25:28]query_string will be loaded in cgi processing [16:25:28]execute_cgi json_proto POST (null) [16:25:28]execute_cgi path=json_proto method=POST [16:25:28]POST find Content-Length [16:25:28]Host: 172.17.45.7:8080 [16:25:28]Content-Length: 734 [16:25:28]Content-Type: application/json [16:25:28] [16:25:28]POST finish read [16:25:28]Found Content-Length = 734 [16:25:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118227, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:28]execute_script... [16:25:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118227, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:28]POST & json_proto [16:25:28]process_json_proto [16:25:28]json parsed OK: [16:25:28]protocol is kg_v1.0 [16:25:28]action value=close_receipt [16:25:28]process_action close_receipt [16:25:28]cmd_close_receipt [16:25:28]MH_GetDate [16:25:28]Write to MH i2c: F0 00 00 E2 0B DC [16:25:28]Write i2c OK [16:25:28]MH_I2C_Read... [16:25:28]Read from MH i2c: F0 [16:25:28]MH_I2C_Read... [16:25:28]Read from MH i2c: F0 09 00 [16:25:28]MH_I2C_Read... [16:25:28]Read from MH i2c: F0 09 00 E2 0B 00 79 1F A5 66 90 0F 3E 66 CB [16:25:28]GetLastDocTimeStamp 1722097463 [16:25:28]current date 1722097529 [16:25:28]FM_GetShiftState [16:25:28]SAM_PROTO_GetShiftState [16:25:28]wFMCommunicate request_size=4 [16:25:28]MH_SAM_APDU [16:25:28]CAPDU: 80 13 01 00 [16:25:28]Write to MH i2c: E2 08 00 E3 0B 80 13 01 00 00 00 00 00 6B [16:25:28]Write i2c OK [16:25:28]MH_I2C_Read... [16:25:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:28]Read from MH i2c: E2 [16:25:28]MH_I2C_Read... [16:25:28]Read from MH i2c: E2 0E 00 [16:25:28]MH_I2C_Read... [16:25:28]Read from MH i2c: E2 0E 00 E3 0B 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 F8 [16:25:28]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [16:25:28]wFMCommunicate OK [16:25:28]SAM_PROTO_GetShiftState done [16:25:28]FM_GetShiftState done [16:25:28]opened in 1722038845 [16:25:28]opened+sec_in_day 1722125245 [16:25:28]quantity*price = 40002 [16:25:28]sum+1 = 40003 [16:25:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 171 27.07.2024 16:25 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФД осн.: 118227 ФМ осн.: 0000000000874939 ФМ: 0000000000874939 ФД: 118228 ФПД: 121385296386633 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T162529&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118228&fm=121385296386633&tin=02508201610067®Number=0000000000092660&sum=40000 [16:25:30]StoreToDocumentArchive [16:25:30]shift 432 fd 118228 [16:25:30]save to /storage/0432/doc_00118228 [16:25:30]save last doc name /storage/0432/doc_00118228 to /storage/kkm_last_doc_name [16:25:30]save OK [16:25:30]Clear old archive folders... [16:25:30]ProcessDocumentItem done err = 0, tmpTLVsize=279 [16:25:30]tlvbuf is 01D9EE10 [16:25:30]SAM_PROTO_ClearQueue [16:25:30]wFMCommunicate request_size=4 [16:25:30]MH_SAM_APDU [16:25:30]CAPDU: 80 09 00 00 [16:25:30]Write to MH i2c: E2 08 00 F2 0B 80 09 00 00 00 00 00 00 6F [16:25:30]Write i2c OK [16:25:30]MH_I2C_Read... [16:25:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:30]Read from MH i2c: E2 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: E2 03 00 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: E2 03 00 F2 0B 00 90 00 71 [16:25:30]RAPDU: 90 00 [16:25:30]wFMCommunicate OK [16:25:30]SAM_PROTO_ClearQueue done [16:25:30]KKMCreateOFDPacket [16:25:30]OFDProtocolAddRootSTLVToBuf [16:25:30]FM_MakeSignedData [16:25:30]FM_MakeSignedData [16:25:30]SAM_PROTO_SignData [16:25:30]wFMCommunicate request_size=4 [16:25:30]MH_SAM_APDU [16:25:30]CAPDU: 80 0D 01 02 [16:25:30]Write to MH i2c: E2 08 00 F3 0B 80 0D 01 02 00 00 00 00 77 [16:25:30]Write i2c OK [16:25:30]MH_I2C_Read... [16:25:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:30]Read from MH i2c: E2 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: E2 03 00 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: E2 03 00 F3 0B 00 90 00 72 [16:25:30]RAPDU: 90 00 [16:25:30]wFMCommunicate OK [16:25:30]wFMCommunicate request_size=255 [16:25:30]MH_SAM_APDU [16:25:30]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 79 1F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 D3 CD 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 [16:25:30]Write to MH i2c: E2 02 01 F4 0B 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 79 1F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 D3 CD 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 00 00 E2 [16:25:30]Write i2c OK [16:25:30]MH_I2C_Read... [16:25:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:30]Read from MH i2c: E2 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: E2 03 00 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: E2 03 00 F4 0B 00 90 00 73 [16:25:30]RAPDU: 90 00 [16:25:30]wFMCommunicate OK [16:25:30]wFMCommunicate request_size=38 [16:25:30]MH_SAM_APDU [16:25:30]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D4 CD 01 00 35 04 06 00 6E 66 37 78 DA 49 [16:25:30]Write to MH i2c: E2 29 00 F5 0B 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D4 CD 01 00 35 04 06 00 6E 66 37 78 DA 49 00 00 53 [16:25:30]Write i2c OK [16:25:30]MH_I2C_Read... [16:25:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:30]Read from MH i2c: E2 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: E2 03 00 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: E2 03 00 F5 0B 00 90 00 74 [16:25:30]RAPDU: 90 00 [16:25:30]wFMCommunicate OK [16:25:30]wFMCommunicate request_size=4 [16:25:30]MH_SAM_APDU [16:25:30]CAPDU: 80 0D 03 02 [16:25:30]Write to MH i2c: E2 08 00 F6 0B 80 0D 03 02 00 00 00 00 7C [16:25:30]Write i2c OK [16:25:30]MH_I2C_Read... [16:25:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:30]Read from MH i2c: E2 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: E2 0B 00 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: E2 0B 00 F6 0B 00 70 C9 06 6B E3 8A 51 38 90 00 1D [16:25:30]RAPDU: 70 C9 06 6B E3 8A 51 38 90 00 [16:25:30]wFMCommunicate OK [16:25:30]SAM_PROTO_SignData done [16:25:30]FM_MakeSignedData done [16:25:30]CreateOFDProtocolMessage [16:25:30]wFMCommunicate request_size=4 [16:25:30]MH_SAM_APDU [16:25:30]CAPDU: 80 11 00 00 [16:25:30]Write to MH i2c: E2 08 00 F7 0B 80 11 00 00 00 00 00 00 7C [16:25:30]Write i2c OK [16:25:30]MH_I2C_Read... [16:25:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:30]Read from MH i2c: E2 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: E2 17 00 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: E2 17 00 F7 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D7 [16:25:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:25:30]wFMCommunicate OK [16:25:30]CreateOFDProtocolMessage done [16:25:30]OFDSenderStorePacket 118228 [16:25:30]StoreOFDPacket docnum=118228 [16:25:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 4A EE 23 01 5B E5 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 79 1F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 D3 CD 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D4 CD 01 00 35 04 06 00 6E 66 37 78 DA 49 70 C9 06 6B E3 8A 51 38 [16:25:30]CheckFolder [16:25:30]dirname=/storage/ofd_packets [16:25:30]CheckFolder done [16:25:30]ProducePacketName [16:25:30]name=ofd_packets/00118228 [16:25:30]NVStorageSaveData ofd_packets/00118228 [16:25:30]File name is /storage/ofd_packets/00118228 [16:25:30]Write 329 bytes [16:25:30]NVStorageSaveData done [16:25:30]OFDSenderStorePacket done [16:25:30]KKMCreateOFDPacket done [16:25:30]NVStorageSaveData kkm_last_timestamp [16:25:30]File name is /storage/kkm_last_timestamp [16:25:30]Write 4 bytes [16:25:30]NVStorageSaveData done [16:25:30]ExternCall_PrintAddStr [16:25:30]wPrintStart [16:25:30]Write to MH i2c: 01 00 00 F8 0B 03 [16:25:30]Write i2c OK [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: 01 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: 01 07 00 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: 01 07 00 F8 0B 00 00 00 00 00 FF 0F 18 [16:25:30]RasterBufferAndPrint [16:25:30]line Счет N : (1)949100 [16:25:30]line ИНН: 02508201610067 [16:25:30]line Контрольно-Кассовый Чек [16:25:30]line ВОЗВРАТ ПРОДАЖИ [16:25:30]line ТРК (МРК, ГНК) : 31 [16:25:30]line Товар: 2710124130 [16:25:30]line Аи-92-К-4 [16:25:30]line 5.900 * 67.80 [16:25:30]line = 400.02 [16:25:30]line НДС 12% НСП 1% [16:25:30]line > о реализуемом товаре [16:25:30]line ОКРУГЛЕНИЕ: -0.02 [16:25:30]line ИТОГО: 400.00 [16:25:30]line НСП 1% : 3.54 [16:25:30]line НДС 12% : 42.48 [16:25:30]line Наличными: 400.00 [16:25:30]line Безнал.: 0.00 [16:25:30]line Место: АЗС № 134 "Партнер Нефть" [16:25:30]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:25:30]line СНО: Общий режим [16:25:30]line Чек 171 27.07.2024 16:25 [16:25:30]line Смена: 432 ФФД: 1.0 [16:25:30]line ЗНМ: 0300000044 [16:25:30]line РНМ: 0000000000092660 [16:25:30]line Версия ККМ: 001 [16:25:30]line ФД осн.: 118227 [16:25:30]line ФМ осн.: 0000000000874939 [16:25:30]line ФМ: 0000000000874939 [16:25:30]line ФД: 118228 [16:25:30]line ФПД: 121385296386633 [16:25:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T162529&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118228&fm=121385296386633&tin=02508201610067®Number=0000000000092660&sum=40000 [16:25:31]OFD Sender: Processing packet 118228 [packets to send 86, broken 85] [16:25:31]ProducePacketName [16:25:31]name=ofd_packets/00118228 [16:25:31]OFD Sender: To server: pG, [16:25:31]CommunicateWithHost lk.salyk.kg:30040 [16:25:31]ConnectInit lk.salyk.kg [16:25:31]written 0, free lines is 4095 [16:25:31]Connected sock=10 [16:25:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 4A EE 23 01 5B E5 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 79 1F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 D3 CD 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D4 CD 01 00 35 04 06 00 6E 66 37 78 DA 49 70 C9 06 6B E3 8A 51 38 [16:25:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 12 DA 47 00 84 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D4 CD 01 00 F4 03 04 00 0C CD A4 66 B6 04 01 00 00 36 F2 88 54 B1 41 E0 99 [16:25:31]CommunicateWithHost err = 0 [16:25:31]CheckOFDResponse [16:25:31]1017 (14) - 77093643461234 [16:25:31]1041 (16) - 0000000000874939 [16:25:31]1040 (4) - 118228 [16:25:31]1012 (4) - 27.07.2024 10:33 [16:25:31]1206 (1) - 0 [16:25:31]OFD Sender: Remove packet 118228 [16:25:31]ProducePacketName [16:25:31]name=ofd_packets/00118228 [16:25:31]NVStorageDeleteData [16:25:31]Write to MH i2c: 01 00 00 22 0C 2E [16:25:31]Write i2c OK [16:25:31]MH_I2C_Read... [16:25:31]Read from MH i2c: 01 [16:25:31]MH_I2C_Read... [16:25:31]Read from MH i2c: 01 07 00 [16:25:31]MH_I2C_Read... [16:25:31]Read from MH i2c: 01 07 00 22 0C 00 00 00 00 00 EB 0C 2C [16:25:31]RasterBufferAndPrint [16:25:31]line [16:25:31]line [16:25:31]line [16:25:31]line [16:25:31]line [16:25:31]written 0, free lines is 3313 [16:25:31]MH_Cut [16:25:31]Write to MH i2c: D1 01 00 29 0C 01 07 [16:25:31]Write i2c OK [16:25:31]MH_I2C_Read... [16:25:31]Read from MH i2c: D1 [16:25:31]MH_I2C_Read... [16:25:31]Read from MH i2c: D1 01 00 [16:25:31]MH_I2C_Read... [16:25:31]Read from MH i2c: D1 01 00 29 0C 00 06 [16:25:31]Write to MH i2c: 01 00 00 2A 0C 36 [16:25:31]Write i2c OK [16:25:31]MH_I2C_Read... [16:25:31]OFD Sender: No OFD packet to send [16:25:32]*** Cut start [16:25:32]*** Partial cut [16:25:32]*** CUTSNS_PIN = 1 [16:25:32]*** CUTSNS_PIN = 0 [16:25:32]*** Brake cut motor [16:25:32]Read from MH i2c: 01 [16:25:32]MH_I2C_Read... [16:25:32]*** Stop cut motor [16:25:32]*** Cut end [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 2A 0C 00 00 00 00 00 FF 0F 4B [16:25:32]process_action close_receipt done [16:25:32]requested_data is exist [16:25:32]produce_requested_data [16:25:32]requested_item fm.sn is exist - process it [16:25:32]wFMCommunicate request_size=4 [16:25:32]MH_SAM_APDU [16:25:32]CAPDU: 80 11 00 00 [16:25:32]Write to MH i2c: E2 08 00 2B 0C 80 11 00 00 00 00 00 00 B1 [16:25:32]Write i2c OK [16:25:32]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 2B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0C [16:25:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:25:32]wFMCommunicate OK [16:25:32]requested_item fd.num is exist - process it [16:25:32]SAM_PROTO_GetFieldsCounters [16:25:32]wFMCommunicate request_size=4 [16:25:32]MH_SAM_APDU [16:25:32]CAPDU: 80 13 00 00 [16:25:32]Write to MH i2c: E2 08 00 2C 0C 80 13 00 00 00 00 00 00 B4 [16:25:32]Write i2c OK [16:25:32]MH_I2C_Read... [16:25:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:33]Read from MH i2c: E2 [16:25:33]MH_I2C_Read... [16:25:33]Read from MH i2c: E2 62 00 [16:25:33]MH_I2C_Read... [16:25:33]Read from MH i2c: E2 62 00 2C 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D4 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [16:25:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D4 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:25:33]wFMCommunicate OK [16:25:33]SAM_PROTO_GetFieldsCounters done [16:25:33]requested_item shift.num is exist - process it [16:25:33]requested_item shift.opened is exist - process it [16:25:33]req_shift_opened [16:25:33]FM_GetShiftState [16:25:33]SAM_PROTO_GetShiftState [16:25:33]wFMCommunicate request_size=4 [16:25:33]MH_SAM_APDU [16:25:33]CAPDU: 80 13 01 00 [16:25:33]Write to MH i2c: E2 08 00 2D 0C 80 13 01 00 00 00 00 00 B6 [16:25:33]Write i2c OK [16:25:33]MH_I2C_Read... [16:25:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:33]Read from MH i2c: E2 [16:25:33]MH_I2C_Read... [16:25:33]Read from MH i2c: E2 0E 00 [16:25:33]MH_I2C_Read... [16:25:33]Read from MH i2c: E2 0E 00 2D 0C 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 43 [16:25:33]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [16:25:33]wFMCommunicate OK [16:25:33]SAM_PROTO_GetShiftState done [16:25:33]FM_GetShiftState done [16:25:33]req_shift_opened done [16:25:33]requested_item shift.open_date is exist - process it [16:25:33]req_shift_open_date [16:25:33]req_shift_open_date done [16:25:33]produce_requested_data done [16:25:33]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118228,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [16:25:33]process_action_free close_receipt [16:25:33]json_value_free [16:25:33]json_value_free done [16:25:33]process_json_proto returns [16:25:33]Send response to host [16:25:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118228,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [16:25:33]free response buf [16:25:33]execute_script done [16:25:33]execute_script returns [16:25:33]free content buf [16:25:33]Sock 7.Close socket [16:25:33]Sock 7.Thread stoped [16:25:33]accept exits with 9 [16:25:33]New connection [16:25:33]New thread 3067096420 created [16:25:33]Thread 3066953060 joined [16:25:33]Waiting for new connection... [16:25:33] Sock 9.Parse request [16:25:33]Sock 9.Check first char [16:25:33]Sock 9.First char is OK [16:25:33]request: POST /json_proto HTTP/1.0 [16:25:33]Method: POST [16:25:33]URL: /json_proto [16:25:33]Method is POST - this is cgi request [16:25:33]url: /json_proto [16:25:33]query_string will be loaded in cgi processing [16:25:33]execute_cgi json_proto POST (null) [16:25:33]execute_cgi path=json_proto method=POST [16:25:33]POST find Content-Length [16:25:33]Host: 172.17.45.7:8080 [16:25:33]Content-Length: 677 [16:25:33]Content-Type: application/json [16:25:33] [16:25:33]POST finish read [16:25:33]Found Content-Length = 677 [16:25:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:33]execute_script... [16:25: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)949101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:33]POST & json_proto [16:25:33]process_json_proto [16:25:33]json parsed OK: [16:25:33]protocol is kg_v1.0 [16:25:33]action value=close_receipt [16:25:33]process_action close_receipt [16:25:33]cmd_close_receipt [16:25:33]MH_GetDate [16:25:33]Write to MH i2c: F0 00 00 2E 0C 29 [16:25:33]Write i2c OK [16:25:33]MH_I2C_Read... [16:25:33]Read from MH i2c: F0 [16:25:33]MH_I2C_Read... [16:25:33]Read from MH i2c: F0 09 00 [16:25:33]MH_I2C_Read... [16:25:33]Read from MH i2c: F0 09 00 2E 0C 00 7E 1F A5 66 90 0F 3E 66 1D [16:25:33]GetLastDocTimeStamp 1722097529 [16:25:33]current date 1722097534 [16:25:33]FM_GetShiftState [16:25:33]SAM_PROTO_GetShiftState [16:25:33]wFMCommunicate request_size=4 [16:25:33]MH_SAM_APDU [16:25:33]CAPDU: 80 13 01 00 [16:25:33]Write to MH i2c: E2 08 00 2F 0C 80 13 01 00 00 00 00 00 B8 [16:25:33]Write i2c OK [16:25:33]MH_I2C_Read... [16:25:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:33]Read from MH i2c: E2 [16:25:33]MH_I2C_Read... [16:25:33]Read from MH i2c: E2 0E 00 [16:25:33]MH_I2C_Read... [16:25:33]Read from MH i2c: E2 0E 00 2F 0C 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 45 [16:25:33]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [16:25:33]wFMCommunicate OK [16:25:33]SAM_PROTO_GetShiftState done [16:25:33]FM_GetShiftState done [16:25:33]opened in 1722038845 [16:25:33]opened+sec_in_day 1722125245 [16:25:33]quantity*price = 40068 [16:25:33]sum+1 = 40069 [16:25:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 172 27.07.2024 16:25 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118229 ФПД: 43229293132089 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T162534&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118229&fm=43229293132089&tin=02508201610067®Number=0000000000092660&sum=40000 [16:25:35]StoreToDocumentArchive [16:25:35]shift 432 fd 118229 [16:25:35]save to /storage/0432/doc_00118229 [16:25:35]save last doc name /storage/0432/doc_00118229 to /storage/kkm_last_doc_name [16:25:35]save OK [16:25:35]Clear old archive folders... [16:25:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:25:35]tlvbuf is 01DE2B30 [16:25:35]SAM_PROTO_ClearQueue [16:25:35]wFMCommunicate request_size=4 [16:25:35]MH_SAM_APDU [16:25:35]CAPDU: 80 09 00 00 [16:25:35]Write to MH i2c: E2 08 00 3C 0C 80 09 00 00 00 00 00 00 BA [16:25:35]Write i2c OK [16:25:35]MH_I2C_Read... [16:25:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:35]Read from MH i2c: E2 [16:25:35]MH_I2C_Read... [16:25:35]Read from MH i2c: E2 03 00 [16:25:35]MH_I2C_Read... [16:25:35]Read from MH i2c: E2 03 00 3C 0C 00 90 00 BC [16:25:35]RAPDU: 90 00 [16:25:35]wFMCommunicate OK [16:25:35]SAM_PROTO_ClearQueue done [16:25:35]KKMCreateOFDPacket [16:25:35]OFDProtocolAddRootSTLVToBuf [16:25:35]FM_MakeSignedData [16:25:35]FM_MakeSignedData [16:25:35]SAM_PROTO_SignData [16:25:35]wFMCommunicate request_size=4 [16:25:35]MH_SAM_APDU [16:25:35]CAPDU: 80 0D 01 02 [16:25:35]Write to MH i2c: E2 08 00 3D 0C 80 0D 01 02 00 00 00 00 C2 [16:25:35]Write i2c OK [16:25:35]MH_I2C_Read... [16:25:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:35]Read from MH i2c: E2 [16:25:35]MH_I2C_Read... [16:25:35]Read from MH i2c: E2 03 00 [16:25:35]MH_I2C_Read... [16:25:35]Read from MH i2c: E2 03 00 3D 0C 00 90 00 BD [16:25:35]RAPDU: 90 00 [16:25:35]wFMCommunicate OK [16:25:35]wFMCommunicate request_size=255 [16:25:35]MH_SAM_APDU [16:25: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 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 AC 00 00 00 F4 03 04 00 7E 1F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D5 CD 01 00 35 04 06 00 27 [16:25:35]Write to MH i2c: E2 02 01 3E 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 AC 00 00 00 F4 03 04 00 7E 1F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D5 CD 01 00 35 04 06 00 27 00 00 D3 [16:25:35]Write i2c OK [16:25:35]MH_I2C_Read... [16:25:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:35]Read from MH i2c: E2 [16:25:35]MH_I2C_Read... [16:25:35]Read from MH i2c: E2 03 00 [16:25:35]MH_I2C_Read... [16:25:35]Read from MH i2c: E2 03 00 3E 0C 00 90 00 BE [16:25:35]RAPDU: 90 00 [16:25:35]wFMCommunicate OK [16:25:35]wFMCommunicate request_size=10 [16:25:35]MH_SAM_APDU [16:25:35]CAPDU: 80 0D 02 02 05 51 1A A9 39 39 [16:25:35]Write to MH i2c: E2 0D 00 3F 0C 80 0D 02 02 05 00 51 1A A9 39 39 00 00 55 [16:25:35]Write i2c OK [16:25:35]MH_I2C_Read... [16:25:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:35]Read from MH i2c: E2 [16:25:35]MH_I2C_Read... [16:25:35]Read from MH i2c: E2 03 00 [16:25:35]MH_I2C_Read... [16:25:35]Read from MH i2c: E2 03 00 3F 0C 00 90 00 BF [16:25:35]RAPDU: 90 00 [16:25:35]wFMCommunicate OK [16:25:35]wFMCommunicate request_size=4 [16:25:35]MH_SAM_APDU [16:25:35]CAPDU: 80 0D 03 02 [16:25:35]Write to MH i2c: E2 08 00 40 0C 80 0D 03 02 00 00 00 00 C7 [16:25:35]Write i2c OK [16:25:35]MH_I2C_Read... [16:25:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:35]Read from MH i2c: E2 [16:25:35]MH_I2C_Read... [16:25:35]Read from MH i2c: E2 0B 00 [16:25:35]MH_I2C_Read... [16:25:35]Read from MH i2c: E2 0B 00 40 0C 00 9A 62 56 35 6B D6 20 3F 90 00 EF [16:25:35]RAPDU: 9A 62 56 35 6B D6 20 3F 90 00 [16:25:35]wFMCommunicate OK [16:25:35]SAM_PROTO_SignData done [16:25:35]FM_MakeSignedData done [16:25:35]CreateOFDProtocolMessage [16:25:35]wFMCommunicate request_size=4 [16:25:35]MH_SAM_APDU [16:25:35]CAPDU: 80 11 00 00 [16:25:35]Write to MH i2c: E2 08 00 41 0C 80 11 00 00 00 00 00 00 C7 [16:25:35]Write i2c OK [16:25:35]MH_I2C_Read... [16:25:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:35]Read from MH i2c: E2 [16:25:35]MH_I2C_Read... [16:25:35]Read from MH i2c: E2 17 00 [16:25:35]MH_I2C_Read... [16:25:35]Read from MH i2c: E2 17 00 41 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 22 [16:25:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:25:35]wFMCommunicate OK [16:25:35]CreateOFDProtocolMessage done [16:25:35]OFDSenderStorePacket 118229 [16:25:35]StoreOFDPacket docnum=118229 [16:25:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D3 B8 07 01 7A 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 AC 00 00 00 F4 03 04 00 7E 1F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D5 CD 01 00 35 04 06 00 27 51 1A A9 39 39 9A 62 56 35 6B D6 20 3F [16:25:35]CheckFolder [16:25:35]dirname=/storage/ofd_packets [16:25:35]CheckFolder done [16:25:35]ProducePacketName [16:25:35]name=ofd_packets/00118229 [16:25:35]NVStorageSaveData ofd_packets/00118229 [16:25:35]File name is /storage/ofd_packets/00118229 [16:25:35]Write 301 bytes [16:25:35]NVStorageSaveData done [16:25:35]OFDSenderStorePacket done [16:25:35]KKMCreateOFDPacket done [16:25:35]NVStorageSaveData kkm_last_timestamp [16:25:35]File name is /storage/kkm_last_timestamp [16:25:35]Write 4 bytes [16:25:35]NVStorageSaveData done [16:25:35]ExternCall_PrintAddStr [16:25:35]wPrintStart [16:25:35]Write to MH i2c: 01 00 00 42 0C 4E [16:25:35]Write i2c OK [16:25:35]MH_I2C_Read... [16:25:35]Read from MH i2c: 01 [16:25:35]MH_I2C_Read... [16:25:35]Read from MH i2c: 01 07 00 [16:25:35]MH_I2C_Read... [16:25:35]Read from MH i2c: 01 07 00 42 0C 00 00 00 00 00 FF 0F 63 [16:25:35]RasterBufferAndPrint [16:25:35]line Счет N : (1)949101 [16:25:35]line ИНН: 02508201610067 [16:25:35]line Контрольно-Кассовый Чек [16:25:35]line ПРОДАЖА [16:25:35]line ТРК (МРК, ГНК) : 33 [16:25:35]line Товар: 2710124500 [16:25:35]line Аи-95-К-3 [16:25:35]line 5.400 * 74.20 [16:25:35]line = 400.68 [16:25:35]line НДС 12% НСП 1% [16:25:35]line > о реализуемом товаре [16:25:35]line ОКРУГЛЕНИЕ: -0.68 [16:25:35]line ИТОГО: 400.00 [16:25:35]line Внесено: 400.00 [16:25:35]line СДАЧА: 0.00 [16:25:35]line НСП 1% : 3.55 [16:25:35]line НДС 12% : 42.55 [16:25:35]line Наличными: 400.00 [16:25:36]line Безнал.: 0.00 [16:25:36]line Место: АЗС № 134 "Партнер Нефть" [16:25:36]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:25:36]line СНО: Общий режим [16:25:36]line Чек 172 27.07.2024 16:25 [16:25:36]line Смена: 432 ФФД: 1.0 [16:25:36]line ЗНМ: 0300000044 [16:25:36]line РНМ: 0000000000092660 [16:25:36]line Версия ККМ: 001 [16:25:36]line ФМ: 0000000000874939 [16:25:36]line ФД: 118229 [16:25:36]line ФПД: 43229293132089 [16:25:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T162534&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118229&fm=43229293132089&tin=02508201610067®Number=0000000000092660&sum=40000 [16:25:36]OFD Sender: Processing packet 118229 [packets to send 86, broken 85] [16:25:36]ProducePacketName [16:25:36]name=ofd_packets/00118229 [16:25:36]OFD Sender: To server: pG, [16:25:36]CommunicateWithHost lk.salyk.kg:30040 [16:25:36]ConnectInit lk.salyk.kg [16:25:36]written 0, free lines is 4095 [16:25:36]Connected sock=10 [16: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 34 39 33 39 0F 01 00 00 D3 B8 07 01 7A 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 AC 00 00 00 F4 03 04 00 7E 1F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D5 CD 01 00 35 04 06 00 27 51 1A A9 39 39 9A 62 56 35 6B D6 20 3F [16:25:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 4B AE 47 00 EF 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 34 39 33 39 10 04 04 00 D5 CD 01 00 F4 03 04 00 10 CD A4 66 B6 04 01 00 00 B7 46 0D D6 75 3A EC 27 [16:25:36]CommunicateWithHost err = 0 [16:25:36]CheckOFDResponse [16:25:36]1017 (14) - 77093643461234 [16:25:36]1041 (16) - 0000000000874939 [16:25:36]1040 (4) - 118229 [16:25:36]1012 (4) - 27.07.2024 10:33 [16:25:36]1206 (1) - 0 [16:25:36]OFD Sender: Remove packet 118229 [16:25:36]ProducePacketName [16:25:36]name=ofd_packets/00118229 [16:25:36]NVStorageDeleteData [16:25:36]Write to MH i2c: 01 00 00 6C 0C 78 [16:25:36]Write i2c OK [16:25:36]MH_I2C_Read... [16:25:36]Read from MH i2c: 01 [16:25:36]MH_I2C_Read... [16:25:36]Read from MH i2c: 01 07 00 [16:25:36]MH_I2C_Read... [16:25:36]Read from MH i2c: 01 07 00 6C 0C 00 00 00 00 00 EE 0C 79 [16:25:36]RasterBufferAndPrint [16:25:36]line [16:25:36]line [16:25:36]line [16:25:36]line [16:25:36]line [16:25:36]written 0, free lines is 3323 [16:25:36]MH_Cut [16:25:36]Write to MH i2c: D1 01 00 73 0C 01 51 [16:25:36]Write i2c OK [16:25:36]MH_I2C_Read... [16:25:36]Read from MH i2c: D1 [16:25:36]MH_I2C_Read... [16:25:36]Read from MH i2c: D1 01 00 [16:25:36]MH_I2C_Read... [16:25:36]Read from MH i2c: D1 01 00 73 0C 00 50 [16:25:36]Write to MH i2c: 01 00 00 74 0C 80 [16:25:36]Write i2c OK [16:25:36]MH_I2C_Read... [16:25:36]OFD Sender: No OFD packet to send [16:25:37]*** Cut start [16:25:37]*** Partial cut [16:25:37]*** CUTSNS_PIN = 1 [16:25:37]*** CUTSNS_PIN = 0 [16:25:37]*** Brake cut motor [16:25:37]Read from MH i2c: 01 [16:25:37]MH_I2C_Read... [16:25:37]*** Stop cut motor [16:25:37]*** Cut end [16:25:37]Read from MH i2c: 01 07 00 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: 01 07 00 74 0C 00 00 00 00 00 FF 0F 95 [16:25:37]process_action close_receipt done [16:25:37]requested_data is exist [16:25:37]produce_requested_data [16:25:37]requested_item fm.sn is exist - process it [16:25:37]wFMCommunicate request_size=4 [16:25:37]MH_SAM_APDU [16:25:37]CAPDU: 80 11 00 00 [16:25:37]Write to MH i2c: E2 08 00 75 0C 80 11 00 00 00 00 00 00 FB [16:25:37]Write i2c OK [16:25:37]MH_I2C_Read... [16:25:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:37]Read from MH i2c: E2 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: E2 17 00 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: E2 17 00 75 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 56 [16:25:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:25:37]wFMCommunicate OK [16:25:37]requested_item fd.num is exist - process it [16:25:37]SAM_PROTO_GetFieldsCounters [16:25:37]wFMCommunicate request_size=4 [16:25:37]MH_SAM_APDU [16:25:37]CAPDU: 80 13 00 00 [16:25:37]Write to MH i2c: E2 08 00 76 0C 80 13 00 00 00 00 00 00 FE [16:25:37]Write i2c OK [16:25:37]MH_I2C_Read... [16:25:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:37]Read from MH i2c: E2 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: E2 62 00 [16:25:37]MH_I2C_Read... [16:25:37]Read from MH i2c: E2 62 00 76 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D5 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [16:25:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D5 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:25:38]wFMCommunicate OK [16:25:38]SAM_PROTO_GetFieldsCounters done [16:25:38]requested_item shift.num is exist - process it [16:25:38]requested_item shift.opened is exist - process it [16:25:38]req_shift_opened [16:25:38]FM_GetShiftState [16:25:38]SAM_PROTO_GetShiftState [16:25:38]wFMCommunicate request_size=4 [16:25:38]MH_SAM_APDU [16:25:38]CAPDU: 80 13 01 00 [16:25:38]Write to MH i2c: E2 08 00 77 0C 80 13 01 00 00 00 00 00 00 [16:25:38]Write i2c OK [16:25:38]MH_I2C_Read... [16:25:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:38]Read from MH i2c: E2 [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: E2 0E 00 [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: E2 0E 00 77 0C 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 8D [16:25:38]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [16:25:38]wFMCommunicate OK [16:25:38]SAM_PROTO_GetShiftState done [16:25:38]FM_GetShiftState done [16:25:38]req_shift_opened done [16:25:38]requested_item shift.open_date is exist - process it [16:25:38]req_shift_open_date [16:25:38]req_shift_open_date done [16:25:38]produce_requested_data done [16:25:38]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118229,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [16:25:38]process_action_free close_receipt [16:25:38]json_value_free [16:25:38]json_value_free done [16:25:38]process_json_proto returns [16:25:38]Send response to host [16:25:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118229,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [16:25:38]free response buf [16:25:38]execute_script done [16:25:38]execute_script returns [16:25:38]free content buf [16:25:38]Sock 9.Close socket [16:25:38]Sock 9.Thread stoped [16:25:41]OFD Sender: No OFD packet to send [16:25:46]OFD Sender: No OFD packet to send [16:25:51]OFD Sender: No OFD packet to send [16:25:56]OFD Sender: No OFD packet to send [16:26:01]OFD Sender: No OFD packet to send [16:26:06]OFD Sender: No OFD packet to send [16:26:11]OFD Sender: No OFD packet to send [16:26:16]OFD Sender: No OFD packet to send [16:26:21]OFD Sender: No OFD packet to send [16:26:26]OFD Sender: No OFD packet to send [16:26:31]OFD Sender: No OFD packet to send [16:26:36]OFD Sender: No OFD packet to send [16:26:41]OFD Sender: No OFD packet to send [16:26:46]OFD Sender: No OFD packet to send [16:26:51]OFD Sender: No OFD packet to send [16:26:56]OFD Sender: No OFD packet to send [16:27:01]OFD Sender: No OFD packet to send [16:27:06]OFD Sender: No OFD packet to send [16:27:11]OFD Sender: No OFD packet to send [16:27:16]OFD Sender: No OFD packet to send [16:27:21]OFD Sender: No OFD packet to send [16:27:26]OFD Sender: No OFD packet to send [16:27:31]OFD Sender: No OFD packet to send [16:27:36]OFD Sender: No OFD packet to send [16:27:41]OFD Sender: No OFD packet to send [16:27:46]OFD Sender: No OFD packet to send [16:27:51]OFD Sender: No OFD packet to send [16:27:56]OFD Sender: No OFD packet to send [16:28:01]OFD Sender: No OFD packet to send [16:28:07]OFD Sender: No OFD packet to send [16:28:12]OFD Sender: No OFD packet to send [16:28:17]OFD Sender: No OFD packet to send [16:28:22]OFD Sender: No OFD packet to send [16:28:27]OFD Sender: No OFD packet to send [16:28:32]OFD Sender: No OFD packet to send [16:28:37]OFD Sender: No OFD packet to send [16:28:42]OFD Sender: No OFD packet to send [16:28:47]OFD Sender: No OFD packet to send [16:28:52]OFD Sender: No OFD packet to send [16:28:57]OFD Sender: No OFD packet to send [16:29:02]OFD Sender: No OFD packet to send [16:29:07]OFD Sender: No OFD packet to send [16:29:12]OFD Sender: No OFD packet to send [16:29:17]OFD Sender: No OFD packet to send [16:29:22]OFD Sender: No OFD packet to send [16:29:27]OFD Sender: No OFD packet to send [16:29:32]OFD Sender: No OFD packet to send [16:29:37]OFD Sender: No OFD packet to send [16:29:42]OFD Sender: No OFD packet to send [16:29:47]OFD Sender: No OFD packet to send [16:29:52]OFD Sender: No OFD packet to send [16:29:57]OFD Sender: No OFD packet to send [16:30:02]OFD Sender: No OFD packet to send [16:30:07]OFD Sender: No OFD packet to send [16:30:12]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [16:30:32]OFD Sender: No OFD packet to send [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:52]OFD Sender: No OFD packet to send [16:30:57]OFD Sender: No OFD packet to send [16:31:02]OFD Sender: No OFD packet to send [16:31:07]OFD Sender: No OFD packet to send [16:31:12]OFD Sender: No OFD packet to send [16:31:17]OFD Sender: No OFD packet to send [16:31:22]OFD Sender: No OFD packet to send [16:31:27]OFD Sender: No OFD packet to send [16:31:32]OFD Sender: No OFD packet to send [16:31:37]OFD Sender: No OFD packet to send [16:31:42]OFD Sender: No OFD packet to send [16:31:47]OFD Sender: No OFD packet to send [16:31:52]OFD Sender: No OFD packet to send [16:31:57]OFD Sender: No OFD packet to send [16:32: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:38]accept exits with 7 [16:32:38]New connection [16:32:38]New thread 3066953060 created [16:32:38]Thread 3067096420 joined [16:32:38]Waiting for new connection... [16:32:38] Sock 7.Parse request [16:32:38]Sock 7.Check first char [16:32:38]Sock 7.First char is OK [16:32:38]request: POST /json_proto HTTP/1.0 [16:32:38]Method: POST [16:32:38]URL: /json_proto [16:32:38]Method is POST - this is cgi request [16:32:38]url: /json_proto [16:32:38]query_string will be loaded in cgi processing [16:32:38]execute_cgi json_proto POST (null) [16:32:38]execute_cgi path=json_proto method=POST [16:32:38]POST find Content-Length [16:32:38]Host: 172.17.45.7:8080 [16:32:38]Content-Length: 679 [16:32:38]Content-Type: application/json [16:32:38] [16:32:38]POST finish read [16:32:38]Found Content-Length = 679 [16:32:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:38]execute_script... [16:32: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)949102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:38]POST & json_proto [16:32:38]process_json_proto [16:32:38]json parsed OK: [16:32:38]protocol is kg_v1.0 [16:32:38]action value=close_receipt [16:32:38]process_action close_receipt [16:32:38]cmd_close_receipt [16:32:38]MH_GetDate [16:32:38]Write to MH i2c: F0 00 00 78 0C 73 [16:32:38]Write i2c OK [16:32:38]MH_I2C_Read... [16:32:38]Read from MH i2c: F0 [16:32:38]MH_I2C_Read... [16:32:38]Read from MH i2c: F0 09 00 [16:32:38]MH_I2C_Read... [16:32:38]Read from MH i2c: F0 09 00 78 0C 00 27 21 A5 66 90 0F 3E 66 12 [16:32:38]GetLastDocTimeStamp 1722097534 [16:32:38]current date 1722097959 [16:32:38]FM_GetShiftState [16:32:38]SAM_PROTO_GetShiftState [16:32:38]wFMCommunicate request_size=4 [16:32:38]MH_SAM_APDU [16:32:38]CAPDU: 80 13 01 00 [16:32:38]Write to MH i2c: E2 08 00 79 0C 80 13 01 00 00 00 00 00 02 [16:32:38]Write i2c OK [16:32:38]MH_I2C_Read... [16:32:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:38]Read from MH i2c: E2 [16:32:38]MH_I2C_Read... [16:32:38]Read from MH i2c: E2 0E 00 [16:32:38]MH_I2C_Read... [16:32:38]Read from MH i2c: E2 0E 00 79 0C 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 8F [16:32:38]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [16:32:38]wFMCommunicate OK [16:32:38]SAM_PROTO_GetShiftState done [16:32:38]FM_GetShiftState done [16:32:38]opened in 1722038845 [16:32:38]opened+sec_in_day 1722125245 [16:32:38]quantity*price = 100050 [16:32:38]sum+1 = 100052 [16:32:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 173 27.07.2024 16:32 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118230 ФПД: 206824514559696 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T163239&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118230&fm=206824514559696&tin=02508201610067®Number=0000000000092660&sum=100000 [16:32:39]StoreToDocumentArchive [16:32:39]shift 432 fd 118230 [16:32:39]save to /storage/0432/doc_00118230 [16:32:39]save last doc name /storage/0432/doc_00118230 to /storage/kkm_last_doc_name [16:32:39]save OK [16:32:39]Clear old archive folders... [16:32:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:32:39]tlvbuf is 01DDEE00 [16:32:39]SAM_PROTO_ClearQueue [16:32:39]wFMCommunicate request_size=4 [16:32:39]MH_SAM_APDU [16:32:39]CAPDU: 80 09 00 00 [16:32:39]Write to MH i2c: E2 08 00 86 0C 80 09 00 00 00 00 00 00 04 [16:32:39]Write i2c OK [16:32:39]MH_I2C_Read... [16:32:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:32:39]Read from MH i2c: E2 [16:32:39]MH_I2C_Read... [16:32:39]Read from MH i2c: E2 03 00 [16:32:39]MH_I2C_Read... [16:32:39]Read from MH i2c: E2 03 00 86 0C 00 90 00 06 [16:32:39]RAPDU: 90 00 [16:32:39]wFMCommunicate OK [16:32:39]SAM_PROTO_ClearQueue done [16:32:39]KKMCreateOFDPacket [16:32:39]OFDProtocolAddRootSTLVToBuf [16:32:39]FM_MakeSignedData [16:32:39]FM_MakeSignedData [16:32:39]SAM_PROTO_SignData [16:32:39]wFMCommunicate request_size=4 [16:32:39]MH_SAM_APDU [16:32:39]CAPDU: 80 0D 01 02 [16:32:39]Write to MH i2c: E2 08 00 87 0C 80 0D 01 02 00 00 00 00 0C [16:32:39]Write i2c OK [16:32:39]MH_I2C_Read... [16:32:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:32:40]Read from MH i2c: E2 [16:32:40]MH_I2C_Read... [16:32:40]Read from MH i2c: E2 03 00 [16:32:40]MH_I2C_Read... [16:32:40]Read from MH i2c: E2 03 00 87 0C 00 90 00 07 [16:32:40]RAPDU: 90 00 [16:32:40]wFMCommunicate OK [16:32:40]wFMCommunicate request_size=255 [16:32:40]MH_SAM_APDU [16:32:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 27 21 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D6 CD 01 00 35 04 06 00 BC 1B 15 B8 [16:32:40]Write to MH i2c: E2 02 01 88 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 27 21 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D6 CD 01 00 35 04 06 00 BC 1B 15 B8 00 00 95 [16:32:40]Write i2c OK [16:32:40]MH_I2C_Read... [16:32:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:40]Read from MH i2c: E2 [16:32:40]MH_I2C_Read... [16:32:40]Read from MH i2c: E2 03 00 [16:32:40]MH_I2C_Read... [16:32:40]Read from MH i2c: E2 03 00 88 0C 00 90 00 08 [16:32:40]RAPDU: 90 00 [16:32:40]wFMCommunicate OK [16:32:40]wFMCommunicate request_size=7 [16:32:40]MH_SAM_APDU [16:32:40]CAPDU: 80 0D 02 02 02 9E D0 [16:32:40]Write to MH i2c: E2 0A 00 89 0C 80 0D 02 02 02 00 9E D0 00 00 81 [16:32:40]Write i2c OK [16:32:40]MH_I2C_Read... [16:32:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:40]Read from MH i2c: E2 [16:32:40]MH_I2C_Read... [16:32:40]Read from MH i2c: E2 03 00 [16:32:40]MH_I2C_Read... [16:32:40]Read from MH i2c: E2 03 00 89 0C 00 90 00 09 [16:32:40]RAPDU: 90 00 [16:32:40]wFMCommunicate OK [16:32:40]wFMCommunicate request_size=4 [16:32:40]MH_SAM_APDU [16:32:40]CAPDU: 80 0D 03 02 [16:32:40]Write to MH i2c: E2 08 00 8A 0C 80 0D 03 02 00 00 00 00 11 [16:32:40]Write i2c OK [16:32:40]MH_I2C_Read... [16:32:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:32:40]Read from MH i2c: E2 [16:32:40]MH_I2C_Read... [16:32:40]Read from MH i2c: E2 0B 00 [16:32:40]MH_I2C_Read... [16:32:40]Read from MH i2c: E2 0B 00 8A 0C 00 C0 C3 F1 35 7A 86 49 C8 90 00 CC [16:32:40]RAPDU: C0 C3 F1 35 7A 86 49 C8 90 00 [16:32:40]wFMCommunicate OK [16:32:40]SAM_PROTO_SignData done [16:32:40]FM_MakeSignedData done [16:32:40]CreateOFDProtocolMessage [16:32:40]wFMCommunicate request_size=4 [16:32:40]MH_SAM_APDU [16:32:40]CAPDU: 80 11 00 00 [16:32:40]Write to MH i2c: E2 08 00 8B 0C 80 11 00 00 00 00 00 00 11 [16:32:40]Write i2c OK [16:32:40]MH_I2C_Read... [16:32:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:40]Read from MH i2c: E2 [16:32:40]MH_I2C_Read... [16:32:40]Read from MH i2c: E2 17 00 [16:32:40]MH_I2C_Read... [16:32:40]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 34 39 33 39 90 00 6C [16:32:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:32:40]wFMCommunicate OK [16:32:40]CreateOFDProtocolMessage done [16:32:40]OFDSenderStorePacket 118230 [16:32:40]StoreOFDPacket docnum=118230 [16:32:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 32 DE 04 01 BD 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 27 21 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D6 CD 01 00 35 04 06 00 BC 1B 15 B8 9E D0 C0 C3 F1 35 7A 86 49 C8 [16:32:40]CheckFolder [16:32:40]dirname=/storage/ofd_packets [16:32:40]CheckFolder done [16:32:40]ProducePacketName [16:32:40]name=ofd_packets/00118230 [16:32:40]NVStorageSaveData ofd_packets/00118230 [16:32:40]File name is /storage/ofd_packets/00118230 [16:32:40]Write 298 bytes [16:32:40]NVStorageSaveData done [16:32:40]OFDSenderStorePacket done [16:32:40]KKMCreateOFDPacket done [16:32:40]NVStorageSaveData kkm_last_timestamp [16:32:40]File name is /storage/kkm_last_timestamp [16:32:40]Write 4 bytes [16:32:40]NVStorageSaveData done [16:32:40]ExternCall_PrintAddStr [16:32:40]wPrintStart [16:32:40]Write to MH i2c: 01 00 00 8C 0C 98 [16:32:40]Write i2c OK [16:32:40]MH_I2C_Read... [16:32:40]Read from MH i2c: 01 [16:32:40]MH_I2C_Read... [16:32:40]Read from MH i2c: 01 07 00 [16:32:40]MH_I2C_Read... [16:32:40]Read from MH i2c: 01 07 00 8C 0C 00 00 00 00 00 FF 0F AD [16:32:40]RasterBufferAndPrint [16:32:40]line Счет N : (1)949102 [16:32:40]line ИНН: 02508201610067 [16:32:40]line Контрольно-Кассовый Чек [16:32:40]line ПРОДАЖА [16:32:40]line ТРК (МРК, ГНК) : 21 [16:32:40]line Товар: 2710194800 [16:32:40]line ДТ-К-5 [16:32:40]line 13.130 * 76.20 [16:32:40]line = 1000.51 [16:32:40]line НДС 12% НСП 1% [16:32:40]line > о реализуемом товаре [16:32:40]line ОКРУГЛЕНИЕ: -0.51 [16:32:40]line ИТОГО: 1000.00 [16:32:40]line Внесено: 1000.00 [16:32:40]line СДАЧА: 0.00 [16:32:40]line НСП 1% : 8.85 [16:32:40]line НДС 12% : 106.25 [16:32:40]line Наличными: 1000.00 [16:32:40]line Безнал.: 0.00 [16:32:40]line Место: АЗС № 134 "Партнер Нефть" [16:32:40]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:32:40]line СНО: Общий режим [16:32:40]line Чек 173 27.07.2024 16:32 [16:32:40]line Смена: 432 ФФД: 1.0 [16:32:40]line ЗНМ: 0300000044 [16:32:40]line РНМ: 0000000000092660 [16:32:40]line Версия ККМ: 001 [16:32:40]line ФМ: 0000000000874939 [16:32:40]line ФД: 118230 [16:32:40]line ФПД: 206824514559696 [16:32:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T163239&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118230&fm=206824514559696&tin=02508201610067®Number=0000000000092660&sum=100000 [16:32:40]OFD Sender: Processing packet 118230 [packets to send 86, broken 85] [16:32:40]ProducePacketName [16:32:40]name=ofd_packets/00118230 [16:32:40]OFD Sender: To server: pG, [16:32:40]CommunicateWithHost lk.salyk.kg:30040 [16:32:40]ConnectInit lk.salyk.kg [16:32:40]written 0, free lines is 4095 [16:32:40]Connected sock=10 [16:32:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 32 DE 04 01 BD 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 27 21 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D6 CD 01 00 35 04 06 00 BC 1B 15 B8 9E D0 C0 C3 F1 35 7A 86 49 C8 [16:32:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D7 B3 47 00 8A 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D6 CD 01 00 F4 03 04 00 B9 CE A4 66 B6 04 01 00 00 50 13 F4 C3 BE C3 E5 4F [16:32:41]CommunicateWithHost err = 0 [16:32:41]CheckOFDResponse [16:32:41]1017 (14) - 77093643461234 [16:32:41]1041 (16) - 0000000000874939 [16:32:41]1040 (4) - 118230 [16:32:41]1012 (4) - 27.07.2024 10:40 [16:32:41]1206 (1) - 0 [16:32:41]OFD Sender: Remove packet 118230 [16:32:41]ProducePacketName [16:32:41]name=ofd_packets/00118230 [16:32:41]NVStorageDeleteData [16:32:41]Write to MH i2c: 01 00 00 B6 0C C2 [16:32:41]Write i2c OK [16:32:41]MH_I2C_Read... [16:32:41]Read from MH i2c: 01 [16:32:41]MH_I2C_Read... [16:32:41]Read from MH i2c: 01 07 00 [16:32:41]MH_I2C_Read... [16:32:41]Read from MH i2c: 01 07 00 B6 0C 00 00 00 00 00 D4 0C A9 [16:32:41]RasterBufferAndPrint [16:32:41]line [16:32:41]line [16:32:41]line [16:32:41]line [16:32:41]line [16:32:41]written 0, free lines is 3292 [16:32:41]MH_Cut [16:32:41]Write to MH i2c: D1 01 00 BD 0C 01 9B [16:32:41]Write i2c OK [16:32:41]MH_I2C_Read... [16:32:41]Read from MH i2c: D1 [16:32:41]MH_I2C_Read... [16:32:41]Read from MH i2c: D1 01 00 [16:32:41]MH_I2C_Read... [16:32:41]Read from MH i2c: D1 01 00 BD 0C 00 9A [16:32:41]Write to MH i2c: 01 00 00 BE 0C CA [16:32:41]Write i2c OK [16:32:41]MH_I2C_Read... [16:32:41]OFD Sender: No OFD packet to send [16:32:41]*** Cut start [16:32:41]*** Partial cut [16:32:41]*** CUTSNS_PIN = 1 [16:32:42]*** CUTSNS_PIN = 0 [16:32:42]*** Brake cut motor [16:32:42]Read from MH i2c: 01 [16:32:42]MH_I2C_Read... [16:32:42]*** Stop cut motor [16:32:42]*** Cut end [16:32:42]Read from MH i2c: 01 07 00 [16:32:42]MH_I2C_Read... [16:32:42]Read from MH i2c: 01 07 00 BE 0C 00 00 00 00 00 FF 0F DF [16:32:42]process_action close_receipt done [16:32:42]requested_data is exist [16:32:42]produce_requested_data [16:32:42]requested_item fm.sn is exist - process it [16:32:42]wFMCommunicate request_size=4 [16:32:42]MH_SAM_APDU [16:32:42]CAPDU: 80 11 00 00 [16:32:42]Write to MH i2c: E2 08 00 BF 0C 80 11 00 00 00 00 00 00 45 [16:32:42]Write i2c OK [16:32:42]MH_I2C_Read... [16:32:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:42]Read from MH i2c: E2 [16:32:42]MH_I2C_Read... [16:32:42]Read from MH i2c: E2 17 00 [16:32:42]MH_I2C_Read... [16:32:42]Read from MH i2c: E2 17 00 BF 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A0 [16:32:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:32:42]wFMCommunicate OK [16:32:42]requested_item fd.num is exist - process it [16:32:42]SAM_PROTO_GetFieldsCounters [16:32:42]wFMCommunicate request_size=4 [16:32:42]MH_SAM_APDU [16:32:42]CAPDU: 80 13 00 00 [16:32:42]Write to MH i2c: E2 08 00 C0 0C 80 13 00 00 00 00 00 00 48 [16:32:42]Write i2c OK [16:32:42]MH_I2C_Read... [16:32:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:32:42]Read from MH i2c: E2 [16:32:42]MH_I2C_Read... [16:32:42]Read from MH i2c: E2 62 00 [16:32:42]MH_I2C_Read... [16:32:42]Read from MH i2c: E2 62 00 C0 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D6 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [16:32:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D6 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:32:42]wFMCommunicate OK [16:32:42]SAM_PROTO_GetFieldsCounters done [16:32:42]requested_item shift.num is exist - process it [16:32:42]requested_item shift.opened is exist - process it [16:32:42]req_shift_opened [16:32:42]FM_GetShiftState [16:32:42]SAM_PROTO_GetShiftState [16:32:42]wFMCommunicate request_size=4 [16:32:42]MH_SAM_APDU [16:32:42]CAPDU: 80 13 01 00 [16:32:42]Write to MH i2c: E2 08 00 C1 0C 80 13 01 00 00 00 00 00 4A [16:32:42]Write i2c OK [16:32:42]MH_I2C_Read... [16:32:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:42]Read from MH i2c: E2 [16:32:42]MH_I2C_Read... [16:32:42]Read from MH i2c: E2 0E 00 [16:32:42]MH_I2C_Read... [16:32:42]Read from MH i2c: E2 0E 00 C1 0C 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 D7 [16:32:42]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [16:32:42]wFMCommunicate OK [16:32:42]SAM_PROTO_GetShiftState done [16:32:42]FM_GetShiftState done [16:32:42]req_shift_opened done [16:32:42]requested_item shift.open_date is exist - process it [16:32:42]req_shift_open_date [16:32:42]req_shift_open_date done [16:32:42]produce_requested_data done [16:32:42]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118230,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [16:32:42]process_action_free close_receipt [16:32:42]json_value_free [16:32:42]json_value_free done [16:32:42]process_json_proto returns [16:32:42]Send response to host [16:32:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118230,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [16:32:42]free response buf [16:32:42]execute_script done [16:32:42]execute_script returns [16:32:42]free content buf [16:32:42]Sock 7.Close socket [16:32:42]Sock 7.Thread stoped [16:32:46]OFD Sender: No OFD packet to send [16:32:51]OFD Sender: No OFD packet to send [16:32:56]OFD Sender: No OFD packet to send [16:33:01]OFD Sender: No OFD packet to send [16:33:06]OFD Sender: No OFD packet to send [16:33:11]OFD Sender: No OFD packet to send [16:33:16]OFD Sender: No OFD packet to send [16:33:21]OFD Sender: No OFD packet to send [16:33:26]OFD Sender: No OFD packet to send [16:33:31]OFD Sender: No OFD packet to send [16:33:36]OFD Sender: No OFD packet to send [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:34:01]OFD Sender: No OFD packet to send [16:34:06]OFD Sender: No OFD packet to send [16:34:11]OFD Sender: No OFD packet to send [16:34:16]OFD Sender: No OFD packet to send [16:34:21]OFD Sender: No OFD packet to send [16:34:26]OFD Sender: No OFD packet to send [16:34:31]OFD Sender: No OFD packet to send [16:34:36]OFD Sender: No OFD packet to send [16:34:41]OFD Sender: No OFD packet to send [16:34:46]OFD Sender: No OFD packet to send [16:34:51]OFD Sender: No OFD packet to send [16:34:56]OFD Sender: No OFD packet to send [16:35:01]OFD Sender: No OFD packet to send [16:35:06]OFD Sender: No OFD packet to send [16:35:11]OFD Sender: No OFD packet to send [16:35:16]OFD Sender: No OFD packet to send [16:35:21]OFD Sender: No OFD packet to send [16:35:26]OFD Sender: No OFD packet to send [16:35:31]OFD Sender: No OFD packet to send [16:35:36]OFD Sender: No OFD packet to send [16:35:41]OFD Sender: No OFD packet to send [16:35:46]OFD Sender: No OFD packet to send [16:35:51]OFD Sender: No OFD packet to send [16:35:56]OFD Sender: No OFD packet to send [16:36:01]OFD Sender: No OFD packet to send [16:36:06]OFD Sender: No OFD packet to send [16:36:11]OFD Sender: No OFD packet to send [16:36:16]OFD Sender: No OFD packet to send [16:36:21]OFD Sender: No OFD packet to send [16:36:26]OFD Sender: No OFD packet to send [16:36:31]OFD Sender: No OFD packet to send [16:36:36]OFD Sender: No OFD packet to send [16:36:41]OFD Sender: No OFD packet to send [16:36:46]OFD Sender: No OFD packet to send [16:36:51]OFD Sender: No OFD packet to send [16:36:56]OFD Sender: No OFD packet to send [16:37:01]OFD Sender: No OFD packet to send [16:37:06]OFD Sender: No OFD packet to send [16:37:11]OFD Sender: No OFD packet to send [16:37:16]OFD Sender: No OFD packet to send [16:37:21]OFD Sender: No OFD packet to send [16:37:26]OFD Sender: No OFD packet to send [16:37:31]OFD Sender: No OFD packet to send [16:37:36]OFD Sender: No OFD packet to send [16:37:41]OFD Sender: No OFD packet to send [16:37:46]OFD Sender: No OFD packet to send [16:37:51]OFD Sender: No OFD packet to send [16:37:56]OFD Sender: No OFD packet to send [16:38:01]OFD Sender: No OFD packet to send [16:38:06]OFD Sender: No OFD packet to send [16:38:11]OFD Sender: No OFD packet to send [16:38:16]OFD Sender: No OFD packet to send [16:38:21]OFD Sender: No OFD packet to send [16:38:26]OFD Sender: No OFD packet to send [16:38:31]OFD Sender: No OFD packet to send [16:38:36]OFD Sender: No OFD packet to send [16:38:41]OFD Sender: No OFD packet to send [16:38:46]OFD Sender: No OFD packet to send [16:38:51]OFD Sender: No OFD packet to send [16:38:57]OFD Sender: No OFD packet to send [16:39:02]OFD Sender: No OFD packet to send [16:39:07]OFD Sender: No OFD packet to send [16:39:12]OFD Sender: No OFD packet to send [16:39:17]OFD Sender: No OFD packet to send [16:39:22]OFD Sender: No OFD packet to send [16:39:27]OFD Sender: No OFD packet to send [16:39:32]OFD Sender: No OFD packet to send [16:39:37]OFD Sender: No OFD packet to send [16:39:38]accept exits with 9 [16:39:38]New connection [16:39:38]New thread 3067096420 created [16:39:38]Thread 3066953060 joined [16:39:38]Waiting for new connection... [16:39:38] Sock 9.Parse request [16:39:38]Sock 9.Check first char [16:39:38]Sock 9.First char is OK [16:39:38]request: POST /json_proto HTTP/1.0 [16:39:38]Method: POST [16:39:38]URL: /json_proto [16:39:38]Method is POST - this is cgi request [16:39:38]url: /json_proto [16:39:38]query_string will be loaded in cgi processing [16:39:38]execute_cgi json_proto POST (null) [16:39:38]execute_cgi path=json_proto method=POST [16:39:38]POST find Content-Length [16:39:38]Host: 172.17.45.7:8080 [16:39:38]Content-Length: 674 [16:39:38]Content-Type: application/json [16:39:38] [16:39:38]POST finish read [16:39:38]Found Content-Length = 674 [16:39:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:39:38]execute_script... [16:39: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)949103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:39:38]POST & json_proto [16:39:38]process_json_proto [16:39:38]json parsed OK: [16:39:38]protocol is kg_v1.0 [16:39:38]action value=close_receipt [16:39:38]process_action close_receipt [16:39:38]cmd_close_receipt [16:39:38]MH_GetDate [16:39:38]Write to MH i2c: F0 00 00 C2 0C BD [16:39:38]Write i2c OK [16:39:38]MH_I2C_Read... [16:39:38]Read from MH i2c: F0 [16:39:38]MH_I2C_Read... [16:39:38]Read from MH i2c: F0 09 00 [16:39:38]MH_I2C_Read... [16:39:38]Read from MH i2c: F0 09 00 C2 0C 00 CA 22 A5 66 90 0F 3E 66 00 [16:39:38]GetLastDocTimeStamp 1722097959 [16:39:38]current date 1722098378 [16:39:38]FM_GetShiftState [16:39:38]SAM_PROTO_GetShiftState [16:39:38]wFMCommunicate request_size=4 [16:39:38]MH_SAM_APDU [16:39:38]CAPDU: 80 13 01 00 [16:39:38]Write to MH i2c: E2 08 00 C3 0C 80 13 01 00 00 00 00 00 4C [16:39:38]Write i2c OK [16:39:38]MH_I2C_Read... [16:39:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:38]Read from MH i2c: E2 [16:39:38]MH_I2C_Read... [16:39:38]Read from MH i2c: E2 0E 00 [16:39:38]MH_I2C_Read... [16:39:38]Read from MH i2c: E2 0E 00 C3 0C 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 D9 [16:39:38]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [16:39:38]wFMCommunicate OK [16:39:38]SAM_PROTO_GetShiftState done [16:39:38]FM_GetShiftState done [16:39:38]opened in 1722038845 [16:39:38]opened+sec_in_day 1722125245 [16:39:38]quantity*price = 50063 [16:39:38]sum+1 = 50064 [16:39:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 174 27.07.2024 16:39 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118231 ФПД: 64678452670007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T163938&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118231&fm=64678452670007&tin=02508201610067®Number=0000000000092660&sum=50000 [16:39:39]StoreToDocumentArchive [16:39:39]shift 432 fd 118231 [16:39:39]save to /storage/0432/doc_00118231 [16:39:39]save last doc name /storage/0432/doc_00118231 to /storage/kkm_last_doc_name [16:39:39]save OK [16:39:39]Clear old archive folders... [16:39:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:39:39]tlvbuf is 01DFE080 [16:39:39]SAM_PROTO_ClearQueue [16:39:39]wFMCommunicate request_size=4 [16:39:39]MH_SAM_APDU [16:39:39]CAPDU: 80 09 00 00 [16:39:39]Write to MH i2c: E2 08 00 D0 0C 80 09 00 00 00 00 00 00 4E [16:39:39]Write i2c OK [16:39:39]MH_I2C_Read... [16:39:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:39:39]Read from MH i2c: E2 [16:39:39]MH_I2C_Read... [16:39:39]Read from MH i2c: E2 03 00 [16:39:39]MH_I2C_Read... [16:39:39]Read from MH i2c: E2 03 00 D0 0C 00 90 00 50 [16:39:39]RAPDU: 90 00 [16:39:39]wFMCommunicate OK [16:39:39]SAM_PROTO_ClearQueue done [16:39:39]KKMCreateOFDPacket [16:39:39]OFDProtocolAddRootSTLVToBuf [16:39:39]FM_MakeSignedData [16:39:39]FM_MakeSignedData [16:39:39]SAM_PROTO_SignData [16:39:39]wFMCommunicate request_size=4 [16:39:39]MH_SAM_APDU [16:39:39]CAPDU: 80 0D 01 02 [16:39:39]Write to MH i2c: E2 08 00 D1 0C 80 0D 01 02 00 00 00 00 56 [16:39:39]Write i2c OK [16:39:39]MH_I2C_Read... [16:39:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:39:39]Read from MH i2c: E2 [16:39:39]MH_I2C_Read... [16:39:39]Read from MH i2c: E2 03 00 [16:39:39]MH_I2C_Read... [16:39:39]Read from MH i2c: E2 03 00 D1 0C 00 90 00 51 [16:39:39]RAPDU: 90 00 [16:39:39]wFMCommunicate OK [16:39:39]wFMCommunicate request_size=255 [16:39:39]MH_SAM_APDU [16:39:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 CA 22 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D7 CD 01 00 35 04 06 00 3A D3 20 32 [16:39:39]Write to MH i2c: E2 02 01 D2 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 CA 22 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D7 CD 01 00 35 04 06 00 3A D3 20 32 00 00 C8 [16:39:39]Write i2c OK [16:39:39]MH_I2C_Read... [16:39:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:39]Read from MH i2c: E2 [16:39:39]MH_I2C_Read... [16:39:39]Read from MH i2c: E2 03 00 [16:39:39]MH_I2C_Read... [16:39:39]Read from MH i2c: E2 03 00 D2 0C 00 90 00 52 [16:39:39]RAPDU: 90 00 [16:39:39]wFMCommunicate OK [16:39:39]wFMCommunicate request_size=7 [16:39:39]MH_SAM_APDU [16:39:39]CAPDU: 80 0D 02 02 02 2E 37 [16:39:39]Write to MH i2c: E2 0A 00 D3 0C 80 0D 02 02 02 00 2E 37 00 00 C2 [16:39:39]Write i2c OK [16:39:39]MH_I2C_Read... [16:39:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:39]Read from MH i2c: E2 [16:39:39]MH_I2C_Read... [16:39:39]Read from MH i2c: E2 03 00 [16:39:39]MH_I2C_Read... [16:39:39]Read from MH i2c: E2 03 00 D3 0C 00 90 00 53 [16:39:39]RAPDU: 90 00 [16:39:39]wFMCommunicate OK [16:39:39]wFMCommunicate request_size=4 [16:39:39]MH_SAM_APDU [16:39:39]CAPDU: 80 0D 03 02 [16:39:39]Write to MH i2c: E2 08 00 D4 0C 80 0D 03 02 00 00 00 00 5B [16:39:39]Write i2c OK [16:39:39]MH_I2C_Read... [16:39:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:39:39]Read from MH i2c: E2 [16:39:39]MH_I2C_Read... [16:39:39]Read from MH i2c: E2 0B 00 [16:39:39]MH_I2C_Read... [16:39:39]Read from MH i2c: E2 0B 00 D4 0C 00 2A FE D2 53 91 44 10 0B 90 00 99 [16:39:39]RAPDU: 2A FE D2 53 91 44 10 0B 90 00 [16:39:39]wFMCommunicate OK [16:39:39]SAM_PROTO_SignData done [16:39:39]FM_MakeSignedData done [16:39:39]CreateOFDProtocolMessage [16:39:39]wFMCommunicate request_size=4 [16:39:39]MH_SAM_APDU [16:39:39]CAPDU: 80 11 00 00 [16:39:39]Write to MH i2c: E2 08 00 D5 0C 80 11 00 00 00 00 00 00 5B [16:39:39]Write i2c OK [16:39:39]MH_I2C_Read... [16:39:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:40]Read from MH i2c: E2 [16:39:40]MH_I2C_Read... [16:39:40]Read from MH i2c: E2 17 00 [16:39:40]MH_I2C_Read... [16:39:40]Read from MH i2c: E2 17 00 D5 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B6 [16:39:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:39:40]wFMCommunicate OK [16:39:40]CreateOFDProtocolMessage done [16:39:40]OFDSenderStorePacket 118231 [16:39:40]StoreOFDPacket docnum=118231 [16:39:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C7 59 04 01 CE F4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 CA 22 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D7 CD 01 00 35 04 06 00 3A D3 20 32 2E 37 2A FE D2 53 91 44 10 0B [16:39:40]CheckFolder [16:39:40]dirname=/storage/ofd_packets [16:39:40]CheckFolder done [16:39:40]ProducePacketName [16:39:40]name=ofd_packets/00118231 [16:39:40]NVStorageSaveData ofd_packets/00118231 [16:39:40]File name is /storage/ofd_packets/00118231 [16:39:40]Write 298 bytes [16:39:40]NVStorageSaveData done [16:39:40]OFDSenderStorePacket done [16:39:40]KKMCreateOFDPacket done [16:39:40]NVStorageSaveData kkm_last_timestamp [16:39:40]File name is /storage/kkm_last_timestamp [16:39:40]Write 4 bytes [16:39:40]NVStorageSaveData done [16:39:40]ExternCall_PrintAddStr [16:39:40]wPrintStart [16:39:40]Write to MH i2c: 01 00 00 D6 0C E2 [16:39:40]Write i2c OK [16:39:40]MH_I2C_Read... [16:39:40]Read from MH i2c: 01 [16:39:40]MH_I2C_Read... [16:39:40]Read from MH i2c: 01 07 00 [16:39:40]MH_I2C_Read... [16:39:40]Read from MH i2c: 01 07 00 D6 0C 00 00 00 00 00 FF 0F F7 [16:39:40]RasterBufferAndPrint [16:39:40]line Счет N : (1)949103 [16:39:40]line ИНН: 02508201610067 [16:39:40]line Контрольно-Кассовый Чек [16:39:40]line ПРОДАЖА [16:39:40]line ТРК (МРК, ГНК) : 44 [16:39:40]line Товар: 2710194800 [16:39:40]line ДТ-К-5 [16:39:40]line 6.570 * 76.20 [16:39:40]line = 500.63 [16:39:40]line НДС 12% НСП 1% [16:39:40]line > о реализуемом товаре [16:39:40]line ОКРУГЛЕНИЕ: -0.63 [16:39:40]line ИТОГО: 500.00 [16:39:40]line Внесено: 500.00 [16:39:40]line СДАЧА: 0.00 [16:39:40]line НСП 1% : 4.43 [16:39:40]line НДС 12% : 53.16 [16:39:40]line Наличными: 500.00 [16:39:40]line Безнал.: 0.00 [16:39:40]line Место: АЗС № 134 "Партнер Нефть" [16:39:40]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:39:40]line СНО: Общий режим [16:39:40]line Чек 174 27.07.2024 16:39 [16:39:40]line Смена: 432 ФФД: 1.0 [16:39:40]line ЗНМ: 0300000044 [16:39:40]line РНМ: 0000000000092660 [16:39:40]line Версия ККМ: 001 [16:39:40]line ФМ: 0000000000874939 [16:39:40]line ФД: 118231 [16:39:40]line ФПД: 64678452670007 [16:39:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T163938&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118231&fm=64678452670007&tin=02508201610067®Number=0000000000092660&sum=50000 [16:39:40]OFD Sender: Processing packet 118231 [packets to send 86, broken 85] [16:39:40]ProducePacketName [16:39:40]name=ofd_packets/00118231 [16:39:40]OFD Sender: To server: pG, [16:39:40]CommunicateWithHost lk.salyk.kg:30040 [16:39:40]ConnectInit lk.salyk.kg [16:39:40]written 0, free lines is 4095 [16:39:40]Connected sock=10 [16:39:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C7 59 04 01 CE F4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 CA 22 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D7 CD 01 00 35 04 06 00 3A D3 20 32 2E 37 2A FE D2 53 91 44 10 0B [16:39:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 EF 4D 47 00 89 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D7 CD 01 00 F4 03 04 00 5D D0 A4 66 B6 04 01 00 00 A3 2E F1 AE 1A 90 0E 43 [16:39:40]CommunicateWithHost err = 0 [16:39:40]CheckOFDResponse [16:39:40]1017 (14) - 77093643461234 [16:39:40]1041 (16) - 0000000000874939 [16:39:40]1040 (4) - 118231 [16:39:40]1012 (4) - 27.07.2024 10:47 [16:39:40]1206 (1) - 0 [16:39:40]OFD Sender: Remove packet 118231 [16:39:40]ProducePacketName [16:39:40]name=ofd_packets/00118231 [16:39:40]NVStorageDeleteData [16:39:40]Write to MH i2c: 01 00 00 00 0D 0D [16:39:40]Write i2c OK [16:39:40]MH_I2C_Read... [16:39:40]Read from MH i2c: 01 [16:39:40]MH_I2C_Read... [16:39:40]Read from MH i2c: 01 07 00 [16:39:40]MH_I2C_Read... [16:39:40]Read from MH i2c: 01 07 00 00 0D 00 00 00 00 00 CF 0C EF [16:39:40]RasterBufferAndPrint [16:39:40]line [16:39:40]line [16:39:40]line [16:39:40]line [16:39:40]line [16:39:40]written 0, free lines is 3286 [16:39:40]MH_Cut [16:39:40]Write to MH i2c: D1 01 00 07 0D 01 E6 [16:39:40]Write i2c OK [16:39:40]MH_I2C_Read... [16:39:40]Read from MH i2c: D1 [16:39:40]MH_I2C_Read... [16:39:40]Read from MH i2c: D1 01 00 [16:39:40]MH_I2C_Read... [16:39:40]Read from MH i2c: D1 01 00 07 0D 00 E5 [16:39:40]Write to MH i2c: 01 00 00 08 0D 15 [16:39:40]Write i2c OK [16:39:40]MH_I2C_Read... [16:39:41]OFD Sender: No OFD packet to send [16:39:41]*** Cut start [16:39:41]*** Partial cut [16:39:41]*** CUTSNS_PIN = 1 [16:39:41]*** CUTSNS_PIN = 0 [16:39:41]*** Brake cut motor [16:39:42]Read from MH i2c: 01 [16:39:42]MH_I2C_Read... [16:39:42]*** Stop cut motor [16:39:42]*** Cut end [16:39:42]Read from MH i2c: 01 07 00 [16:39:42]MH_I2C_Read... [16:39:42]Read from MH i2c: 01 07 00 08 0D 00 00 00 00 00 FF 0F 2A [16:39:42]process_action close_receipt done [16:39:42]requested_data is exist [16:39:42]produce_requested_data [16:39:42]requested_item fm.sn is exist - process it [16:39:42]wFMCommunicate request_size=4 [16:39:42]MH_SAM_APDU [16:39:42]CAPDU: 80 11 00 00 [16:39:42]Write to MH i2c: E2 08 00 09 0D 80 11 00 00 00 00 00 00 90 [16:39:42]Write i2c OK [16:39:42]MH_I2C_Read... [16:39:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:42]Read from MH i2c: E2 [16:39:42]MH_I2C_Read... [16:39:42]Read from MH i2c: E2 17 00 [16:39:42]MH_I2C_Read... [16:39:42]Read from MH i2c: E2 17 00 09 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EB [16:39:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:39:42]wFMCommunicate OK [16:39:42]requested_item fd.num is exist - process it [16:39:42]SAM_PROTO_GetFieldsCounters [16:39:42]wFMCommunicate request_size=4 [16:39:42]MH_SAM_APDU [16:39:42]CAPDU: 80 13 00 00 [16:39:42]Write to MH i2c: E2 08 00 0A 0D 80 13 00 00 00 00 00 00 93 [16:39:42]Write i2c OK [16:39:42]MH_I2C_Read... [16:39:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:39:42]Read from MH i2c: E2 [16:39:42]MH_I2C_Read... [16:39:42]Read from MH i2c: E2 62 00 [16:39:42]MH_I2C_Read... [16:39:42]Read from MH i2c: E2 62 00 0A 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D7 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [16:39:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D7 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:39:42]wFMCommunicate OK [16:39:42]SAM_PROTO_GetFieldsCounters done [16:39:42]requested_item shift.num is exist - process it [16:39:42]requested_item shift.opened is exist - process it [16:39:42]req_shift_opened [16:39:42]FM_GetShiftState [16:39:42]SAM_PROTO_GetShiftState [16:39:42]wFMCommunicate request_size=4 [16:39:42]MH_SAM_APDU [16:39:42]CAPDU: 80 13 01 00 [16:39:42]Write to MH i2c: E2 08 00 0B 0D 80 13 01 00 00 00 00 00 95 [16:39:42]Write i2c OK [16:39:42]MH_I2C_Read... [16:39:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:42]Read from MH i2c: E2 [16:39:42]MH_I2C_Read... [16:39:42]Read from MH i2c: E2 0E 00 [16:39:42]MH_I2C_Read... [16:39:42]Read from MH i2c: E2 0E 00 0B 0D 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 22 [16:39:42]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [16:39:42]wFMCommunicate OK [16:39:42]SAM_PROTO_GetShiftState done [16:39:42]FM_GetShiftState done [16:39:42]req_shift_opened done [16:39:42]requested_item shift.open_date is exist - process it [16:39:42]req_shift_open_date [16:39:42]req_shift_open_date done [16:39:42]produce_requested_data done [16:39:42]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118231,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [16:39:42]process_action_free close_receipt [16:39:42]json_value_free [16:39:42]json_value_free done [16:39:42]process_json_proto returns [16:39:42]Send response to host [16:39:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118231,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [16:39:42]free response buf [16:39:42]execute_script done [16:39:42]execute_script returns [16:39:42]free content buf [16:39:42]Sock 9.Close socket [16:39:42]Sock 9.Thread stoped [16:39:46]OFD Sender: No OFD packet to send [16:39:51]OFD Sender: No OFD packet to send [16:39:56]OFD Sender: No OFD packet to send [16:40:01]OFD Sender: No OFD packet to send [16:40:06]OFD Sender: No OFD packet to send [16:40:11]OFD Sender: No OFD packet to send [16:40:16]OFD Sender: No OFD packet to send [16:40:21]OFD Sender: No OFD packet to send [16:40:26]OFD Sender: No OFD packet to send [16:40:31]OFD Sender: No OFD packet to send [16:40:36]OFD Sender: No OFD packet to send [16:40:41]OFD Sender: No OFD packet to send [16:40:46]OFD Sender: No OFD packet to send [16:40:51]OFD Sender: No OFD packet to send [16:40:56]OFD Sender: No OFD packet to send [16:41:01]OFD Sender: No OFD packet to send [16:41:06]OFD Sender: No OFD packet to send [16:41:11]OFD Sender: No OFD packet to send [16:41:16]OFD Sender: No OFD packet to send [16:41:21]OFD Sender: No OFD packet to send [16:41:26]OFD Sender: No OFD packet to send [16:41:31]OFD Sender: No OFD packet to send [16:41:36]OFD Sender: No OFD packet to send [16:41:41]OFD Sender: No OFD packet to send [16:41:46]OFD Sender: No OFD packet to send [16:41:51]OFD Sender: No OFD packet to send [16:41:56]OFD Sender: No OFD packet to send [16:42:01]OFD Sender: No OFD packet to send [16:42:06]OFD Sender: No OFD packet to send [16:42:11]OFD Sender: No OFD packet to send [16:42:16]OFD Sender: No OFD packet to send [16:42:21]OFD Sender: No OFD packet to send [16:42:26]OFD Sender: No OFD packet to send [16:42:31]OFD Sender: No OFD packet to send [16:42:36]OFD Sender: No OFD packet to send [16:42:41]OFD Sender: No OFD packet to send [16:42:46]OFD Sender: No OFD packet to send [16:42:51]OFD Sender: No OFD packet to send [16:42:56]OFD Sender: No OFD packet to send [16:43:01]OFD Sender: No OFD packet to send [16:43:06]OFD Sender: No OFD packet to send [16:43:11]OFD Sender: No OFD packet to send [16:43:16]OFD Sender: No OFD packet to send [16:43:21]OFD Sender: No OFD packet to send [16:43:26]OFD Sender: No OFD packet to send [16:43:29]accept exits with 7 [16:43:29]New connection [16:43:29]New thread 3066953060 created [16:43:29]Thread 3067096420 joined [16:43:29]Waiting for new connection... [16:43:29] Sock 7.Parse request [16:43:29]Sock 7.Check first char [16:43:29]Sock 7.First char is OK [16:43:29]request: POST /json_proto HTTP/1.0 [16:43:29]Method: POST [16:43:29]URL: /json_proto [16:43:29]Method is POST - this is cgi request [16:43:29]url: /json_proto [16:43:29]query_string will be loaded in cgi processing [16:43:29]execute_cgi json_proto POST (null) [16:43:29]execute_cgi path=json_proto method=POST [16:43:29]POST find Content-Length [16:43:29]Host: 172.17.45.7:8080 [16:43:29]Content-Length: 682 [16:43:29]Content-Type: application/json [16:43:29] [16:43:29]POST finish read [16:43:29]Found Content-Length = 682 [16:43:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:43:29]execute_script... [16:43: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)949104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:43:29]POST & json_proto [16:43:29]process_json_proto [16:43:29]json parsed OK: [16:43:29]protocol is kg_v1.0 [16:43:29]action value=close_receipt [16:43:29]process_action close_receipt [16:43:29]cmd_close_receipt [16:43:29]MH_GetDate [16:43:29]Write to MH i2c: F0 00 00 0C 0D 08 [16:43:29]Write i2c OK [16:43:29]MH_I2C_Read... [16:43:29]Read from MH i2c: F0 [16:43:29]MH_I2C_Read... [16:43:29]Read from MH i2c: F0 09 00 [16:43:29]MH_I2C_Read... [16:43:29]Read from MH i2c: F0 09 00 0C 0D 00 B1 23 A5 66 90 0F 3E 66 33 [16:43:29]GetLastDocTimeStamp 1722098378 [16:43:29]current date 1722098609 [16:43:29]FM_GetShiftState [16:43:29]SAM_PROTO_GetShiftState [16:43:29]wFMCommunicate request_size=4 [16:43:29]MH_SAM_APDU [16:43:29]CAPDU: 80 13 01 00 [16:43:29]Write to MH i2c: E2 08 00 0D 0D 80 13 01 00 00 00 00 00 97 [16:43:29]Write i2c OK [16:43:29]MH_I2C_Read... [16:43:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:29]Read from MH i2c: E2 [16:43:29]MH_I2C_Read... [16:43:29]Read from MH i2c: E2 0E 00 [16:43:29]MH_I2C_Read... [16:43:29]Read from MH i2c: E2 0E 00 0D 0D 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 24 [16:43:29]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [16:43:29]wFMCommunicate OK [16:43:29]SAM_PROTO_GetShiftState done [16:43:29]FM_GetShiftState done [16:43:29]opened in 1722038845 [16:43:29]opened+sec_in_day 1722125245 [16:43:29]quantity*price = 100005 [16:43:29]sum+1 = 100006 [16:43:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 175 27.07.2024 16:43 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118232 ФПД: 218667252021142 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T164329&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118232&fm=218667252021142&tin=02508201610067®Number=0000000000092660&sum=100000 [16:43:30]StoreToDocumentArchive [16:43:30]shift 432 fd 118232 [16:43:30]save to /storage/0432/doc_00118232 [16:43:30]save last doc name /storage/0432/doc_00118232 to /storage/kkm_last_doc_name [16:43:30]save OK [16:43:30]Clear old archive folders... [16:43:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:43:30]tlvbuf is 01DE3960 [16:43:30]SAM_PROTO_ClearQueue [16:43:30]wFMCommunicate request_size=4 [16:43:30]MH_SAM_APDU [16:43:30]CAPDU: 80 09 00 00 [16:43:30]Write to MH i2c: E2 08 00 1A 0D 80 09 00 00 00 00 00 00 99 [16:43:30]Write i2c OK [16:43:30]MH_I2C_Read... [16:43:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:43:30]Read from MH i2c: E2 [16:43:30]MH_I2C_Read... [16:43:30]Read from MH i2c: E2 03 00 [16:43:30]MH_I2C_Read... [16:43:30]Read from MH i2c: E2 03 00 1A 0D 00 90 00 9B [16:43:30]RAPDU: 90 00 [16:43:30]wFMCommunicate OK [16:43:30]SAM_PROTO_ClearQueue done [16:43:30]KKMCreateOFDPacket [16:43:30]OFDProtocolAddRootSTLVToBuf [16:43:30]FM_MakeSignedData [16:43:30]FM_MakeSignedData [16:43:30]SAM_PROTO_SignData [16:43:30]wFMCommunicate request_size=4 [16:43:30]MH_SAM_APDU [16:43:30]CAPDU: 80 0D 01 02 [16:43:30]Write to MH i2c: E2 08 00 1B 0D 80 0D 01 02 00 00 00 00 A1 [16:43:30]Write i2c OK [16:43:30]MH_I2C_Read... [16:43:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:43:30]Read from MH i2c: E2 [16:43:30]MH_I2C_Read... [16:43:30]Read from MH i2c: E2 03 00 [16:43:30]MH_I2C_Read... [16:43:30]Read from MH i2c: E2 03 00 1B 0D 00 90 00 9C [16:43:30]RAPDU: 90 00 [16:43:30]wFMCommunicate OK [16:43:30]wFMCommunicate request_size=255 [16:43:30]MH_SAM_APDU [16:43: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 B1 23 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D8 CD 01 00 35 04 06 00 C6 [16:43:30]Write to MH i2c: E2 02 01 1C 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 B1 23 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D8 CD 01 00 35 04 06 00 C6 00 00 5F [16:43:30]Write i2c OK [16:43:30]MH_I2C_Read... [16:43:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:30]Read from MH i2c: E2 [16:43:30]MH_I2C_Read... [16:43:30]Read from MH i2c: E2 03 00 [16:43:30]MH_I2C_Read... [16:43:30]Read from MH i2c: E2 03 00 1C 0D 00 90 00 9D [16:43:30]RAPDU: 90 00 [16:43:30]wFMCommunicate OK [16:43:30]wFMCommunicate request_size=10 [16:43:30]MH_SAM_APDU [16:43:30]CAPDU: 80 0D 02 02 05 E0 6F E1 77 96 [16:43:30]Write to MH i2c: E2 0D 00 1D 0D 80 0D 02 02 05 00 E0 6F E1 77 96 00 00 EB [16:43:30]Write i2c OK [16:43:30]MH_I2C_Read... [16:43:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:30]Read from MH i2c: E2 [16:43:30]MH_I2C_Read... [16:43:30]Read from MH i2c: E2 03 00 [16:43:30]MH_I2C_Read... [16:43:30]Read from MH i2c: E2 03 00 1D 0D 00 90 00 9E [16:43:30]RAPDU: 90 00 [16:43:30]wFMCommunicate OK [16:43:30]wFMCommunicate request_size=4 [16:43:30]MH_SAM_APDU [16:43:30]CAPDU: 80 0D 03 02 [16:43:30]Write to MH i2c: E2 08 00 1E 0D 80 0D 03 02 00 00 00 00 A6 [16:43:30]Write i2c OK [16:43:30]MH_I2C_Read... [16:43:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:43:30]Read from MH i2c: E2 [16:43:30]MH_I2C_Read... [16:43:30]Read from MH i2c: E2 0B 00 [16:43:30]MH_I2C_Read... [16:43:30]Read from MH i2c: E2 0B 00 1E 0D 00 7E 1E E6 7E 36 E6 33 EA 90 00 E0 [16:43:30]RAPDU: 7E 1E E6 7E 36 E6 33 EA 90 00 [16:43:30]wFMCommunicate OK [16:43:30]SAM_PROTO_SignData done [16:43:30]FM_MakeSignedData done [16:43:30]CreateOFDProtocolMessage [16:43:30]wFMCommunicate request_size=4 [16:43:30]MH_SAM_APDU [16:43:30]CAPDU: 80 11 00 00 [16:43:30]Write to MH i2c: E2 08 00 1F 0D 80 11 00 00 00 00 00 00 A6 [16:43:30]Write i2c OK [16:43:30]MH_I2C_Read... [16:43:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:31]Read from MH i2c: E2 [16:43:31]MH_I2C_Read... [16:43:31]Read from MH i2c: E2 17 00 [16:43:31]MH_I2C_Read... [16:43:31]Read from MH i2c: E2 17 00 1F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 01 [16:43:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:43:31]wFMCommunicate OK [16:43:31]CreateOFDProtocolMessage done [16:43:31]OFDSenderStorePacket 118232 [16:43:31]StoreOFDPacket docnum=118232 [16:43:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 3B 6C 07 01 52 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 B1 23 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D8 CD 01 00 35 04 06 00 C6 E0 6F E1 77 96 7E 1E E6 7E 36 E6 33 EA [16:43:31]CheckFolder [16:43:31]dirname=/storage/ofd_packets [16:43:31]CheckFolder done [16:43:31]ProducePacketName [16:43:31]name=ofd_packets/00118232 [16:43:31]NVStorageSaveData ofd_packets/00118232 [16:43:31]File name is /storage/ofd_packets/00118232 [16:43:31]Write 301 bytes [16:43:31]NVStorageSaveData done [16:43:31]OFDSenderStorePacket done [16:43:31]KKMCreateOFDPacket done [16:43:31]NVStorageSaveData kkm_last_timestamp [16:43:31]File name is /storage/kkm_last_timestamp [16:43:31]Write 4 bytes [16:43:31]NVStorageSaveData done [16:43:31]ExternCall_PrintAddStr [16:43:31]wPrintStart [16:43:31]Write to MH i2c: 01 00 00 20 0D 2D [16:43:31]Write i2c OK [16:43:31]MH_I2C_Read... [16:43:31]Read from MH i2c: 01 [16:43:31]MH_I2C_Read... [16:43:31]Read from MH i2c: 01 07 00 [16:43:31]MH_I2C_Read... [16:43:31]Read from MH i2c: 01 07 00 20 0D 00 00 00 00 00 FF 0F 42 [16:43:31]RasterBufferAndPrint [16:43:31]line Счет N : (1)949104 [16:43:31]line ИНН: 02508201610067 [16:43:31]line Контрольно-Кассовый Чек [16:43:31]line ПРОДАЖА [16:43:31]line ТРК (МРК, ГНК) : 31 [16:43:31]line Товар: 2710124130 [16:43:31]line Аи-92-К-4 [16:43:31]line 14.750 * 67.80 [16:43:31]line = 1000.05 [16:43:31]line НДС 12% НСП 1% [16:43:31]line > о реализуемом товаре [16:43:31]line ОКРУГЛЕНИЕ: -0.05 [16:43:31]line ИТОГО: 1000.00 [16:43:31]line Внесено: 1000.00 [16:43:31]line СДАЧА: 0.00 [16:43:31]line НСП 1% : 8.85 [16:43:31]line НДС 12% : 106.20 [16:43:31]line Наличными: 1000.00 [16:43:31]line Безнал.: 0.00 [16:43:31]line Место: АЗС № 134 "Партнер Нефть" [16:43:31]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:43:31]line СНО: Общий режим [16:43:31]line Чек 175 27.07.2024 16:43 [16:43:31]line Смена: 432 ФФД: 1.0 [16:43:31]line ЗНМ: 0300000044 [16:43:31]line РНМ: 0000000000092660 [16:43:31]line Версия ККМ: 001 [16:43:31]line ФМ: 0000000000874939 [16:43:31]line ФД: 118232 [16:43:31]line ФПД: 218667252021142 [16:43:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T164329&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118232&fm=218667252021142&tin=02508201610067®Number=0000000000092660&sum=100000 [16:43:31]OFD Sender: Processing packet 118232 [packets to send 86, broken 85] [16:43:31]ProducePacketName [16:43:31]name=ofd_packets/00118232 [16:43:31]OFD Sender: To server: pG, [16:43:31]CommunicateWithHost lk.salyk.kg:30040 [16:43:31]ConnectInit lk.salyk.kg [16:43:31]written 0, free lines is 4095 [16:43:31]Connected sock=10 [16:43:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 3B 6C 07 01 52 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 B1 23 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D8 CD 01 00 35 04 06 00 C6 E0 6F E1 77 96 7E 1E E6 7E 36 E6 33 EA [16:43:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D9 5A 47 00 46 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 34 39 33 39 10 04 04 00 D8 CD 01 00 F4 03 04 00 44 D1 A4 66 B6 04 01 00 00 00 75 23 E7 CB 2E 10 AB [16:43:31]CommunicateWithHost err = 0 [16:43:31]CheckOFDResponse [16:43:31]1017 (14) - 77093643461234 [16:43:31]1041 (16) - 0000000000874939 [16:43:31]1040 (4) - 118232 [16:43:31]1012 (4) - 27.07.2024 10:51 [16:43:31]1206 (1) - 0 [16:43:31]OFD Sender: Remove packet 118232 [16:43:31]ProducePacketName [16:43:31]name=ofd_packets/00118232 [16:43:31]NVStorageDeleteData [16:43:31]Write to MH i2c: 01 00 00 4A 0D 57 [16:43:31]Write i2c OK [16:43:31]MH_I2C_Read... [16:43:31]Read from MH i2c: 01 [16:43:31]MH_I2C_Read... [16:43:31]Read from MH i2c: 01 07 00 [16:43:31]MH_I2C_Read... [16:43:31]Read from MH i2c: 01 07 00 4A 0D 00 00 00 00 00 DA 0C 44 [16:43:31]RasterBufferAndPrint [16:43:31]line [16:43:31]line [16:43:31]line [16:43:31]line [16:43:31]line [16:43:31]written 0, free lines is 3297 [16:43:31]MH_Cut [16:43:31]Write to MH i2c: D1 01 00 51 0D 01 30 [16:43:31]Write i2c OK [16:43:31]MH_I2C_Read... [16:43:31]Read from MH i2c: D1 [16:43:31]MH_I2C_Read... [16:43:31]Read from MH i2c: D1 01 00 [16:43:31]MH_I2C_Read... [16:43:31]Read from MH i2c: D1 01 00 51 0D 00 2F [16:43:31]Write to MH i2c: 01 00 00 52 0D 5F [16:43:31]Write i2c OK [16:43:31]MH_I2C_Read... [16:43:32]OFD Sender: No OFD packet to send [16:43:32]*** Cut start [16:43:32]*** Partial cut [16:43:32]*** CUTSNS_PIN = 1 [16:43:32]*** CUTSNS_PIN = 0 [16:43:32]*** Brake cut motor [16:43:33]Read from MH i2c: 01 [16:43:33]MH_I2C_Read... [16:43:33]*** Stop cut motor [16:43:33]*** Cut end [16:43:33]Read from MH i2c: 01 07 00 [16:43:33]MH_I2C_Read... [16:43:33]Read from MH i2c: 01 07 00 52 0D 00 00 00 00 00 FF 0F 74 [16:43:33]process_action close_receipt done [16:43:33]requested_data is exist [16:43:33]produce_requested_data [16:43:33]requested_item fm.sn is exist - process it [16:43:33]wFMCommunicate request_size=4 [16:43:33]MH_SAM_APDU [16:43:33]CAPDU: 80 11 00 00 [16:43:33]Write to MH i2c: E2 08 00 53 0D 80 11 00 00 00 00 00 00 DA [16:43:33]Write i2c OK [16:43:33]MH_I2C_Read... [16:43:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:33]Read from MH i2c: E2 [16:43:33]MH_I2C_Read... [16:43:33]Read from MH i2c: E2 17 00 [16:43:33]MH_I2C_Read... [16:43:33]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 34 39 33 39 90 00 35 [16:43:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:43:33]wFMCommunicate OK [16:43:33]requested_item fd.num is exist - process it [16:43:33]SAM_PROTO_GetFieldsCounters [16:43:33]wFMCommunicate request_size=4 [16:43:33]MH_SAM_APDU [16:43:33]CAPDU: 80 13 00 00 [16:43:33]Write to MH i2c: E2 08 00 54 0D 80 13 00 00 00 00 00 00 DD [16:43:33]Write i2c OK [16:43:33]MH_I2C_Read... [16:43:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:43:33]Read from MH i2c: E2 [16:43:33]MH_I2C_Read... [16:43:33]Read from MH i2c: E2 62 00 [16:43:33]MH_I2C_Read... [16:43:33]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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D8 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [16:43:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D8 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:43:33]wFMCommunicate OK [16:43:33]SAM_PROTO_GetFieldsCounters done [16:43:33]requested_item shift.num is exist - process it [16:43:33]requested_item shift.opened is exist - process it [16:43:33]req_shift_opened [16:43:33]FM_GetShiftState [16:43:33]SAM_PROTO_GetShiftState [16:43:33]wFMCommunicate request_size=4 [16:43:33]MH_SAM_APDU [16:43:33]CAPDU: 80 13 01 00 [16:43:33]Write to MH i2c: E2 08 00 55 0D 80 13 01 00 00 00 00 00 DF [16:43:33]Write i2c OK [16:43:33]MH_I2C_Read... [16:43:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:33]Read from MH i2c: E2 [16:43:33]MH_I2C_Read... [16:43:33]Read from MH i2c: E2 0E 00 [16:43:33]MH_I2C_Read... [16:43:33]Read from MH i2c: E2 0E 00 55 0D 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 6C [16:43:33]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [16:43:33]wFMCommunicate OK [16:43:33]SAM_PROTO_GetShiftState done [16:43:33]FM_GetShiftState done [16:43:33]req_shift_opened done [16:43:33]requested_item shift.open_date is exist - process it [16:43:33]req_shift_open_date [16:43:33]req_shift_open_date done [16:43:33]produce_requested_data done [16:43:33]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118232,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [16:43:33]process_action_free close_receipt [16:43:33]json_value_free [16:43:33]json_value_free done [16:43:33]process_json_proto returns [16:43:33]Send response to host [16:43:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118232,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [16:43:33]free response buf [16:43:33]execute_script done [16:43:33]execute_script returns [16:43:33]free content buf [16:43:33]Sock 7.Close socket [16:43:33]Sock 7.Thread stoped [16:43:37]OFD Sender: No OFD packet to send [16:43:42]OFD Sender: No OFD packet to send [16:43:47]OFD Sender: No OFD packet to send [16:43:52]OFD Sender: No OFD packet to send [16:43:57]OFD Sender: No OFD packet to send [16:44:02]OFD Sender: No OFD packet to send [16:44:07]OFD Sender: No OFD packet to send [16:44:12]OFD Sender: No OFD packet to send [16:44:17]OFD Sender: No OFD packet to send [16:44:22]OFD Sender: No OFD packet to send [16:44:27]OFD Sender: No OFD packet to send [16:44:32]OFD Sender: No OFD packet to send [16:44:37]OFD Sender: No OFD packet to send [16:44:42]OFD Sender: No OFD packet to send [16:44:47]OFD Sender: No OFD packet to send [16:44:52]OFD Sender: No OFD packet to send [16:44:57]OFD Sender: No OFD packet to send [16:45:02]OFD Sender: No OFD packet to send [16:45:07]OFD Sender: No OFD packet to send [16:45:12]OFD Sender: No OFD packet to send [16:45:17]OFD Sender: No OFD packet to send [16:45:22]OFD Sender: No OFD packet to send [16:45:27]OFD Sender: No OFD packet to send [16:45:32]OFD Sender: No OFD packet to send [16:45:37]OFD Sender: No OFD packet to send [16:45:42]OFD Sender: No OFD packet to send [16:45:47]OFD Sender: No OFD packet to send [16:45:52]OFD Sender: No OFD packet to send [16:45:57]OFD Sender: No OFD packet to send [16:46:02]OFD Sender: No OFD packet to send [16:46:07]OFD Sender: No OFD packet to send [16:46:12]OFD Sender: No OFD packet to send [16:46:17]OFD Sender: No OFD packet to send [16:46:22]OFD Sender: No OFD packet to send [16:46:27]OFD Sender: No OFD packet to send [16:46:32]OFD Sender: No OFD packet to send [16:46:37]OFD Sender: No OFD packet to send [16:46:42]OFD Sender: No OFD packet to send [16:46:47]OFD Sender: No OFD packet to send [16:46:52]OFD Sender: No OFD packet to send [16:46:57]OFD Sender: No OFD packet to send [16:47:02]OFD Sender: No OFD packet to send [16:47:07]OFD Sender: No OFD packet to send [16:47:12]OFD Sender: No OFD packet to send [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:02]OFD Sender: No OFD packet to send [16:50:07]OFD Sender: No OFD packet to send [16:50:12]OFD Sender: No OFD packet to send [16:50:17]OFD Sender: No OFD packet to send [16:50:22]OFD Sender: No OFD packet to send [16:50:27]OFD Sender: No OFD packet to send [16:50:32]OFD Sender: No OFD packet to send [16:50:37]OFD Sender: No OFD packet to send [16:50:42]OFD Sender: No OFD packet to send [16:50:47]OFD Sender: No OFD packet to send [16:50:52]OFD Sender: No OFD packet to send [16:50:57]OFD Sender: No OFD packet to send [16:50:58]accept exits with 9 [16:50:58]New connection [16:50:58]New thread 3067096420 created [16:50:58]Thread 3066953060 joined [16:50:58]Waiting for new connection... [16:50:58] Sock 9.Parse request [16:50:58]Sock 9.Check first char [16:50:58]Sock 9.First char is OK [16:50:58]request: POST /json_proto HTTP/1.0 [16:50:58]Method: POST [16:50:58]URL: /json_proto [16:50:58]Method is POST - this is cgi request [16:50:58]url: /json_proto [16:50:58]query_string will be loaded in cgi processing [16:50:58]execute_cgi json_proto POST (null) [16:50:58]execute_cgi path=json_proto method=POST [16:50:58]POST find Content-Length [16:50:58]Host: 172.17.45.7:8080 [16:50:58]Content-Length: 679 [16:50:58]Content-Type: application/json [16:50:58] [16:50:58]POST finish read [16:50:58]Found Content-Length = 679 [16:50:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "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" ] } } [16:50:58]execute_script... [16:50:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "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" ] } } [16:50:58]POST & json_proto [16:50:58]process_json_proto [16:50:58]json parsed OK: [16:50:58]protocol is kg_v1.0 [16:50:58]action value=close_receipt [16:50:58]process_action close_receipt [16:50:58]cmd_close_receipt [16:50:58]MH_GetDate [16:50:58]Write to MH i2c: F0 00 00 56 0D 52 [16:50:58]Write i2c OK [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: F0 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: F0 09 00 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: F0 09 00 56 0D 00 73 25 A5 66 90 0F 3E 66 41 [16:50:58]GetLastDocTimeStamp 1722098609 [16:50:58]current date 1722099059 [16:50:58]FM_GetShiftState [16:50:58]SAM_PROTO_GetShiftState [16:50:58]wFMCommunicate request_size=4 [16:50:58]MH_SAM_APDU [16:50:58]CAPDU: 80 13 01 00 [16:50:58]Write to MH i2c: E2 08 00 57 0D 80 13 01 00 00 00 00 00 E1 [16:50:58]Write i2c OK [16:50:58]MH_I2C_Read... [16:50:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:58]Read from MH i2c: E2 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: E2 0E 00 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: E2 0E 00 57 0D 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 6E [16:50:58]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [16:50:58]wFMCommunicate OK [16:50:58]SAM_PROTO_GetShiftState done [16:50:58]FM_GetShiftState done [16:50:58]opened in 1722038845 [16:50:58]opened+sec_in_day 1722125245 [16:50:58]quantity*price = 120015 [16:50:58]sum+1 = 120016 [16:50:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 176 27.07.2024 16:50 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118233 ФПД: 133212448814061 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T165059&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118233&fm=133212448814061&tin=02508201610067®Number=0000000000092660&sum=120000 [16:50:59]StoreToDocumentArchive [16:50:59]shift 432 fd 118233 [16:50:59]save to /storage/0432/doc_00118233 [16:50:59]save last doc name /storage/0432/doc_00118233 to /storage/kkm_last_doc_name [16:50:59]save OK [16:50:59]Clear old archive folders... [16:50:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:50:59]tlvbuf is 01E41190 [16:50:59]SAM_PROTO_ClearQueue [16:50:59]wFMCommunicate request_size=4 [16:50:59]MH_SAM_APDU [16:50:59]CAPDU: 80 09 00 00 [16:50:59]Write to MH i2c: E2 08 00 64 0D 80 09 00 00 00 00 00 00 E3 [16:50:59]Write i2c OK [16:50:59]MH_I2C_Read... [16:50:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:59]Read from MH i2c: E2 [16:50:59]MH_I2C_Read... [16:50:59]Read from MH i2c: E2 03 00 [16:50:59]MH_I2C_Read... [16:50:59]Read from MH i2c: E2 03 00 64 0D 00 90 00 E5 [16:50:59]RAPDU: 90 00 [16:50:59]wFMCommunicate OK [16:50:59]SAM_PROTO_ClearQueue done [16:50:59]KKMCreateOFDPacket [16:50:59]OFDProtocolAddRootSTLVToBuf [16:50:59]FM_MakeSignedData [16:50:59]FM_MakeSignedData [16:50:59]SAM_PROTO_SignData [16:50:59]wFMCommunicate request_size=4 [16:50:59]MH_SAM_APDU [16:50:59]CAPDU: 80 0D 01 02 [16:50:59]Write to MH i2c: E2 08 00 65 0D 80 0D 01 02 00 00 00 00 EB [16:50:59]Write i2c OK [16:50:59]MH_I2C_Read... [16:50:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:59]Read from MH i2c: E2 [16:50:59]MH_I2C_Read... [16:50:59]Read from MH i2c: E2 03 00 [16:50:59]MH_I2C_Read... [16:50:59]Read from MH i2c: E2 03 00 65 0D 00 90 00 E6 [16:50:59]RAPDU: 90 00 [16:50:59]wFMCommunicate OK [16:50:59]wFMCommunicate request_size=255 [16:50:59]MH_SAM_APDU [16:50:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 73 25 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D9 CD 01 00 35 04 06 00 79 27 F0 B0 [16:50:59]Write to MH i2c: E2 02 01 66 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 73 25 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D9 CD 01 00 35 04 06 00 79 27 F0 B0 00 00 D4 [16:50:59]Write i2c OK [16:50:59]MH_I2C_Read... [16:51:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:00]Read from MH i2c: E2 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: E2 03 00 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: E2 03 00 66 0D 00 90 00 E7 [16:51:00]RAPDU: 90 00 [16:51:00]wFMCommunicate OK [16:51:00]wFMCommunicate request_size=7 [16:51:00]MH_SAM_APDU [16:51:00]CAPDU: 80 0D 02 02 02 F3 ED [16:51:00]Write to MH i2c: E2 0A 00 67 0D 80 0D 02 02 02 00 F3 ED 00 00 D2 [16:51:00]Write i2c OK [16:51:00]MH_I2C_Read... [16:51:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:00]Read from MH i2c: E2 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: E2 03 00 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: E2 03 00 67 0D 00 90 00 E8 [16:51:00]RAPDU: 90 00 [16:51:00]wFMCommunicate OK [16:51:00]wFMCommunicate request_size=4 [16:51:00]MH_SAM_APDU [16:51:00]CAPDU: 80 0D 03 02 [16:51:00]Write to MH i2c: E2 08 00 68 0D 80 0D 03 02 00 00 00 00 F0 [16:51:00]Write i2c OK [16:51:00]MH_I2C_Read... [16:51:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:51:00]Read from MH i2c: E2 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: E2 0B 00 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: E2 0B 00 68 0D 00 2F 08 7C D8 32 C3 2B 03 90 00 9F [16:51:00]RAPDU: 2F 08 7C D8 32 C3 2B 03 90 00 [16:51:00]wFMCommunicate OK [16:51:00]SAM_PROTO_SignData done [16:51:00]FM_MakeSignedData done [16:51:00]CreateOFDProtocolMessage [16:51:00]wFMCommunicate request_size=4 [16:51:00]MH_SAM_APDU [16:51:00]CAPDU: 80 11 00 00 [16:51:00]Write to MH i2c: E2 08 00 69 0D 80 11 00 00 00 00 00 00 F0 [16:51:00]Write i2c OK [16:51:00]MH_I2C_Read... [16:51:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:00]Read from MH i2c: E2 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: E2 17 00 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: E2 17 00 69 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4B [16:51:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:51:00]wFMCommunicate OK [16:51:00]CreateOFDProtocolMessage done [16:51:00]OFDSenderStorePacket 118233 [16:51:00]StoreOFDPacket docnum=118233 [16:51:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 EB 97 04 01 17 FC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 73 25 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D9 CD 01 00 35 04 06 00 79 27 F0 B0 F3 ED 2F 08 7C D8 32 C3 2B 03 [16:51:00]CheckFolder [16:51:00]dirname=/storage/ofd_packets [16:51:00]CheckFolder done [16:51:00]ProducePacketName [16:51:00]name=ofd_packets/00118233 [16:51:00]NVStorageSaveData ofd_packets/00118233 [16:51:00]File name is /storage/ofd_packets/00118233 [16:51:00]Write 298 bytes [16:51:00]NVStorageSaveData done [16:51:00]OFDSenderStorePacket done [16:51:00]KKMCreateOFDPacket done [16:51:00]NVStorageSaveData kkm_last_timestamp [16:51:00]File name is /storage/kkm_last_timestamp [16:51:00]Write 4 bytes [16:51:00]NVStorageSaveData done [16:51:00]ExternCall_PrintAddStr [16:51:00]wPrintStart [16:51:00]Write to MH i2c: 01 00 00 6A 0D 77 [16:51:00]Write i2c OK [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: 01 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: 01 07 00 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: 01 07 00 6A 0D 00 00 00 00 00 FF 0F 8C [16:51:00]RasterBufferAndPrint [16:51:00]line Счет N : (1)949105 [16:51:00]line ИНН: 02508201610067 [16:51:00]line Контрольно-Кассовый Чек [16:51:00]line ПРОДАЖА [16:51:00]line ТРК (МРК, ГНК) : 21 [16:51:00]line Товар: 2710194800 [16:51:00]line ДТ-К-5 [16:51:00]line 15.750 * 76.20 [16:51:00]line = 1200.15 [16:51:00]line НДС 12% НСП 1% [16:51:00]line > о реализуемом товаре [16:51:00]line ОКРУГЛЕНИЕ: -0.15 [16:51:00]line ИТОГО: 1200.00 [16:51:00]line Внесено: 1200.00 [16:51:00]line СДАЧА: 0.00 [16:51:00]line НСП 1% : 10.62 [16:51:00]line НДС 12% : 127.45 [16:51:00]line Наличными: 1200.00 [16:51:00]line Безнал.: 0.00 [16:51:00]line Место: АЗС № 134 "Партнер Нефть" [16:51:00]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:51:00]line СНО: Общий режим [16:51:00]line Чек 176 27.07.2024 16:50 [16:51:00]line Смена: 432 ФФД: 1.0 [16:51:00]line ЗНМ: 0300000044 [16:51:00]line РНМ: 0000000000092660 [16:51:00]line Версия ККМ: 001 [16:51:00]line ФМ: 0000000000874939 [16:51:00]line ФД: 118233 [16:51:00]line ФПД: 133212448814061 [16:51:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T165059&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118233&fm=133212448814061&tin=02508201610067®Number=0000000000092660&sum=120000 [16:51:00]OFD Sender: Processing packet 118233 [packets to send 86, broken 85] [16:51:00]ProducePacketName [16:51:00]name=ofd_packets/00118233 [16:51:00]OFD Sender: To server: pG, [16:51:00]CommunicateWithHost lk.salyk.kg:30040 [16:51:00]ConnectInit lk.salyk.kg [16:51:00]written 0, free lines is 4095 [16:51:00]Connected sock=10 [16:51:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 EB 97 04 01 17 FC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 73 25 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D9 CD 01 00 35 04 06 00 79 27 F0 B0 F3 ED 2F 08 7C D8 32 C3 2B 03 [16:51:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 11 1C 47 00 3E 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 34 39 33 39 10 04 04 00 D9 CD 01 00 F4 03 04 00 05 D3 A4 66 B6 04 01 00 00 6D 82 35 35 32 16 61 99 [16:51:00]CommunicateWithHost err = 0 [16:51:00]CheckOFDResponse [16:51:00]1017 (14) - 77093643461234 [16:51:00]1041 (16) - 0000000000874939 [16:51:00]1040 (4) - 118233 [16:51:00]1012 (4) - 27.07.2024 10:59 [16:51:00]1206 (1) - 0 [16:51:00]OFD Sender: Remove packet 118233 [16:51:00]ProducePacketName [16:51:00]name=ofd_packets/00118233 [16:51:00]NVStorageDeleteData [16:51:00]Write to MH i2c: 01 00 00 94 0D A1 [16:51:00]Write i2c OK [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: 01 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: 01 07 00 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: 01 07 00 94 0D 00 00 00 00 00 D5 0C 89 [16:51:00]RasterBufferAndPrint [16:51:00]line [16:51:00]line [16:51:00]line [16:51:00]line [16:51:00]line [16:51:00]written 0, free lines is 3293 [16:51:00]MH_Cut [16:51:00]Write to MH i2c: D1 01 00 9B 0D 01 7A [16:51:00]Write i2c OK [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: D1 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: D1 01 00 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: D1 01 00 9B 0D 00 79 [16:51:00]Write to MH i2c: 01 00 00 9C 0D A9 [16:51:00]Write i2c OK [16:51:00]MH_I2C_Read... [16:51:01]OFD Sender: No OFD packet to send [16:51:01]*** Cut start [16:51:01]*** Partial cut [16:51:01]*** CUTSNS_PIN = 1 [16:51:01]*** CUTSNS_PIN = 0 [16:51:01]*** Brake cut motor [16:51:02]Read from MH i2c: 01 [16:51:02]MH_I2C_Read... [16:51:02]*** Stop cut motor [16:51:02]*** Cut end [16:51:02]Read from MH i2c: 01 07 00 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: 01 07 00 9C 0D 00 00 00 00 00 FF 0F BE [16:51:02]process_action close_receipt done [16:51:02]requested_data is exist [16:51:02]produce_requested_data [16:51:02]requested_item fm.sn is exist - process it [16:51:02]wFMCommunicate request_size=4 [16:51:02]MH_SAM_APDU [16:51:02]CAPDU: 80 11 00 00 [16:51:02]Write to MH i2c: E2 08 00 9D 0D 80 11 00 00 00 00 00 00 24 [16:51:02]Write i2c OK [16:51:02]MH_I2C_Read... [16:51:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:02]Read from MH i2c: E2 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: E2 17 00 [16:51:02]MH_I2C_Read... [16:51:02]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 34 39 33 39 90 00 7F [16:51:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:51:02]wFMCommunicate OK [16:51:02]requested_item fd.num is exist - process it [16:51:02]SAM_PROTO_GetFieldsCounters [16:51:02]wFMCommunicate request_size=4 [16:51:02]MH_SAM_APDU [16:51:02]CAPDU: 80 13 00 00 [16:51:02]Write to MH i2c: E2 08 00 9E 0D 80 13 00 00 00 00 00 00 27 [16:51:02]Write i2c OK [16:51:02]MH_I2C_Read... [16:51:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:51:02]Read from MH i2c: E2 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: E2 62 00 [16:51:02]MH_I2C_Read... [16:51:02]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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D9 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [16:51:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D9 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:51:02]wFMCommunicate OK [16:51:02]SAM_PROTO_GetFieldsCounters done [16:51:02]requested_item shift.num is exist - process it [16:51:02]requested_item shift.opened is exist - process it [16:51:02]req_shift_opened [16:51:02]FM_GetShiftState [16:51:02]SAM_PROTO_GetShiftState [16:51:02]wFMCommunicate request_size=4 [16:51:02]MH_SAM_APDU [16:51:02]CAPDU: 80 13 01 00 [16:51:02]Write to MH i2c: E2 08 00 9F 0D 80 13 01 00 00 00 00 00 29 [16:51:02]Write i2c OK [16:51:02]MH_I2C_Read... [16:51:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:02]Read from MH i2c: E2 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: E2 0E 00 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: E2 0E 00 9F 0D 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 B6 [16:51:02]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [16:51:02]wFMCommunicate OK [16:51:02]SAM_PROTO_GetShiftState done [16:51:02]FM_GetShiftState done [16:51:02]req_shift_opened done [16:51:02]requested_item shift.open_date is exist - process it [16:51:02]req_shift_open_date [16:51:02]req_shift_open_date done [16:51:02]produce_requested_data done [16:51:02]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118233,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [16:51:02]process_action_free close_receipt [16:51:02]json_value_free [16:51:02]json_value_free done [16:51:02]process_json_proto returns [16:51:02]Send response to host [16:51:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118233,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [16:51:02]free response buf [16:51:02]execute_script done [16:51:02]execute_script returns [16:51:02]free content buf [16:51:02]Sock 9.Close socket [16:51:02]Sock 9.Thread stoped [16:51:06]OFD Sender: No OFD packet to send [16:51:11]OFD Sender: No OFD packet to send [16:51:16]OFD Sender: No OFD packet to send [16:51:21]OFD Sender: No OFD packet to send [16:51:26]OFD Sender: No OFD packet to send [16:51:31]OFD Sender: No OFD packet to send [16:51:36]OFD Sender: No OFD packet to send [16:51:41]OFD Sender: No OFD packet to send [16:51:46]OFD Sender: No OFD packet to send [16:51:51]OFD Sender: No OFD packet to send [16:51:56]OFD Sender: No OFD packet to send [16:52:01]OFD Sender: No OFD packet to send [16:52:06]OFD Sender: No OFD packet to send [16:52:11]OFD Sender: No OFD packet to send [16:52:16]OFD Sender: No OFD packet to send [16:52:18]accept exits with 7 [16:52:18]New connection [16:52:18]New thread 3066953060 created [16:52:18]Thread 3067096420 joined [16:52:18]Waiting for new connection... [16:52:18] Sock 7.Parse request [16:52:18]Sock 7.Check first char [16:52:18]Sock 7.First char is OK [16:52:18]request: POST /json_proto HTTP/1.0 [16:52:18]Method: POST [16:52:18]URL: /json_proto [16:52:18]Method is POST - this is cgi request [16:52:18]url: /json_proto [16:52:18]query_string will be loaded in cgi processing [16:52:18]execute_cgi json_proto POST (null) [16:52:18]execute_cgi path=json_proto method=POST [16:52:18]POST find Content-Length [16:52:18]Host: 172.17.45.7:8080 [16:52:18]Content-Length: 736 [16:52:18]Content-Type: application/json [16:52:18] [16:52:18]POST finish read [16:52:18]Found Content-Length = 736 [16:52:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118233, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "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" ] } } [16:52:18]execute_script... [16:52:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118233, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "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" ] } } [16:52:18]POST & json_proto [16:52:18]process_json_proto [16:52:18]json parsed OK: [16:52:18]protocol is kg_v1.0 [16:52:18]action value=close_receipt [16:52:18]process_action close_receipt [16:52:18]cmd_close_receipt [16:52:18]MH_GetDate [16:52:18]Write to MH i2c: F0 00 00 A0 0D 9C [16:52:18]Write i2c OK [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: F0 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: F0 09 00 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: F0 09 00 A0 0D 00 C2 25 A5 66 90 0F 3E 66 DA [16:52:18]GetLastDocTimeStamp 1722099059 [16:52:18]current date 1722099138 [16:52:18]FM_GetShiftState [16:52:18]SAM_PROTO_GetShiftState [16:52:18]wFMCommunicate request_size=4 [16:52:18]MH_SAM_APDU [16:52:18]CAPDU: 80 13 01 00 [16:52:18]Write to MH i2c: E2 08 00 A1 0D 80 13 01 00 00 00 00 00 2B [16:52:18]Write i2c OK [16:52:18]MH_I2C_Read... [16:52:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:18]Read from MH i2c: E2 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 0E 00 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 0E 00 A1 0D 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 B8 [16:52:18]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [16:52:18]wFMCommunicate OK [16:52:18]SAM_PROTO_GetShiftState done [16:52:18]FM_GetShiftState done [16:52:18]opened in 1722038845 [16:52:18]opened+sec_in_day 1722125245 [16:52:18]quantity*price = 120015 [16:52:18]sum+1 = 120016 [16:52:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 177 27.07.2024 16:52 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФД осн.: 118233 ФМ осн.: 0000000000874939 ФМ: 0000000000874939 ФД: 118234 ФПД: 98878603982502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T165218&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118234&fm=98878603982502&tin=02508201610067®Number=0000000000092660&sum=120000 [16:52:19]StoreToDocumentArchive [16:52:19]shift 432 fd 118234 [16:52:19]save to /storage/0432/doc_00118234 [16:52:19]save last doc name /storage/0432/doc_00118234 to /storage/kkm_last_doc_name [16:52:19]save OK [16:52:19]Clear old archive folders... [16:52:19]ProcessDocumentItem done err = 0, tmpTLVsize=276 [16:52:19]tlvbuf is 01D9F280 [16:52:19]SAM_PROTO_ClearQueue [16:52:19]wFMCommunicate request_size=4 [16:52:19]MH_SAM_APDU [16:52:19]CAPDU: 80 09 00 00 [16:52:19]Write to MH i2c: E2 08 00 B0 0D 80 09 00 00 00 00 00 00 2F [16:52:19]Write i2c OK [16:52:19]MH_I2C_Read... [16:52:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:19]Read from MH i2c: E2 [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: E2 03 00 [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: E2 03 00 B0 0D 00 90 00 31 [16:52:19]RAPDU: 90 00 [16:52:19]wFMCommunicate OK [16:52:19]SAM_PROTO_ClearQueue done [16:52:19]KKMCreateOFDPacket [16:52:19]OFDProtocolAddRootSTLVToBuf [16:52:19]FM_MakeSignedData [16:52:19]FM_MakeSignedData [16:52:19]SAM_PROTO_SignData [16:52:19]wFMCommunicate request_size=4 [16:52:19]MH_SAM_APDU [16:52:19]CAPDU: 80 0D 01 02 [16:52:19]Write to MH i2c: E2 08 00 B1 0D 80 0D 01 02 00 00 00 00 37 [16:52:19]Write i2c OK [16:52:19]MH_I2C_Read... [16:52:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:19]Read from MH i2c: E2 [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: E2 03 00 [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: E2 03 00 B1 0D 00 90 00 32 [16:52:19]RAPDU: 90 00 [16:52:19]wFMCommunicate OK [16:52:19]wFMCommunicate request_size=255 [16:52:19]MH_SAM_APDU [16:52:19]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 C2 25 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 D9 CD 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 [16:52:19]Write to MH i2c: E2 02 01 B2 0D 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 C2 25 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 D9 CD 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 00 00 22 [16:52:19]Write i2c OK [16:52:19]MH_I2C_Read... [16:52:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:19]Read from MH i2c: E2 [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: E2 03 00 [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: E2 03 00 B2 0D 00 90 00 33 [16:52:19]RAPDU: 90 00 [16:52:19]wFMCommunicate OK [16:52:19]wFMCommunicate request_size=35 [16:52:19]MH_SAM_APDU [16:52:19]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DA CD 01 00 35 04 06 00 59 ED F8 10 F6 A6 [16:52:19]Write to MH i2c: E2 26 00 B3 0D 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DA CD 01 00 35 04 06 00 59 ED F8 10 F6 A6 00 00 C7 [16:52:19]Write i2c OK [16:52:19]MH_I2C_Read... [16:52:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:19]Read from MH i2c: E2 [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: E2 03 00 [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: E2 03 00 B3 0D 00 90 00 34 [16:52:19]RAPDU: 90 00 [16:52:19]wFMCommunicate OK [16:52:19]wFMCommunicate request_size=4 [16:52:19]MH_SAM_APDU [16:52:19]CAPDU: 80 0D 03 02 [16:52:19]Write to MH i2c: E2 08 00 B4 0D 80 0D 03 02 00 00 00 00 3C [16:52:19]Write i2c OK [16:52:19]MH_I2C_Read... [16:52:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:19]Read from MH i2c: E2 [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: E2 0B 00 [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: E2 0B 00 B4 0D 00 43 1B 52 64 10 1B 5B 53 90 00 2A [16:52:19]RAPDU: 43 1B 52 64 10 1B 5B 53 90 00 [16:52:19]wFMCommunicate OK [16:52:19]SAM_PROTO_SignData done [16:52:19]FM_MakeSignedData done [16:52:19]CreateOFDProtocolMessage [16:52:19]wFMCommunicate request_size=4 [16:52:19]MH_SAM_APDU [16:52:19]CAPDU: 80 11 00 00 [16:52:19]Write to MH i2c: E2 08 00 B5 0D 80 11 00 00 00 00 00 00 3C [16:52:19]Write i2c OK [16:52:19]MH_I2C_Read... [16:52:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:19]Read from MH i2c: E2 [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: E2 17 00 [16:52:19]MH_I2C_Read... [16:52:19]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 34 39 33 39 90 00 97 [16:52:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:52:19]wFMCommunicate OK [16:52:19]CreateOFDProtocolMessage done [16:52:19]OFDSenderStorePacket 118234 [16:52:19]StoreOFDPacket docnum=118234 [16:52:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 28 01 00 00 3F B0 20 01 BA 6D 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 C2 25 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 D9 CD 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DA CD 01 00 35 04 06 00 59 ED F8 10 F6 A6 43 1B 52 64 10 1B 5B 53 [16:52:19]CheckFolder [16:52:19]dirname=/storage/ofd_packets [16:52:19]CheckFolder done [16:52:19]ProducePacketName [16:52:19]name=ofd_packets/00118234 [16:52:19]NVStorageSaveData ofd_packets/00118234 [16:52:19]File name is /storage/ofd_packets/00118234 [16:52:19]Write 326 bytes [16:52:19]NVStorageSaveData done [16:52:19]OFDSenderStorePacket done [16:52:19]KKMCreateOFDPacket done [16:52:19]NVStorageSaveData kkm_last_timestamp [16:52:19]File name is /storage/kkm_last_timestamp [16:52:19]Write 4 bytes [16:52:19]NVStorageSaveData done [16:52:19]ExternCall_PrintAddStr [16:52:19]wPrintStart [16:52:19]Write to MH i2c: 01 00 00 B6 0D C3 [16:52:19]Write i2c OK [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: 01 [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: 01 07 00 [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: 01 07 00 B6 0D 00 00 00 00 00 FF 0F D8 [16:52:19]RasterBufferAndPrint [16:52:19]line Счет N : (1)949105 [16:52:19]line ИНН: 02508201610067 [16:52:19]line Контрольно-Кассовый Чек [16:52:19]line ВОЗВРАТ ПРОДАЖИ [16:52:19]line ТРК (МРК, ГНК) : 21 [16:52:19]line Товар: 2710194800 [16:52:19]line ДТ-К-5 [16:52:19]line 15.750 * 76.20 [16:52:19]line = 1200.15 [16:52:19]line НДС 12% НСП 1% [16:52:19]line > о реализуемом товаре [16:52:19]line ОКРУГЛЕНИЕ: -0.15 [16:52:19]line ИТОГО: 1200.00 [16:52:19]line НСП 1% : 10.62 [16:52:19]line НДС 12% : 127.45 [16:52:19]line Наличными: 1200.00 [16:52:19]line Безнал.: 0.00 [16:52:19]line Место: АЗС № 134 "Партнер Нефть" [16:52:19]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:52:19]line СНО: Общий режим [16:52:19]line Чек 177 27.07.2024 16:52 [16:52:19]line Смена: 432 ФФД: 1.0 [16:52:19]line ЗНМ: 0300000044 [16:52:19]line РНМ: 0000000000092660 [16:52:19]line Версия ККМ: 001 [16:52:19]line ФД осн.: 118233 [16:52:19]line ФМ осн.: 0000000000874939 [16:52:19]line ФМ: 0000000000874939 [16:52:19]line ФД: 118234 [16:52:19]line ФПД: 98878603982502 [16:52:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T165218&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118234&fm=98878603982502&tin=02508201610067®Number=0000000000092660&sum=120000 [16:52:20]OFD Sender: Processing packet 118234 [packets to send 86, broken 85] [16:52:20]ProducePacketName [16:52:20]name=ofd_packets/00118234 [16:52:20]OFD Sender: To server: pG, [16:52:20]CommunicateWithHost lk.salyk.kg:30040 [16:52:20]ConnectInit lk.salyk.kg [16:52:20]written 0, free lines is 4095 [16:52:20]Connected sock=10 [16:52:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 28 01 00 00 3F B0 20 01 BA 6D 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 C2 25 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 D9 CD 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DA CD 01 00 35 04 06 00 59 ED F8 10 F6 A6 43 1B 52 64 10 1B 5B 53 [16:52:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 3A 32 47 00 D9 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 34 39 33 39 10 04 04 00 DA CD 01 00 F4 03 04 00 55 D3 A4 66 B6 04 01 00 00 50 AB C2 A6 B8 25 2A F6 [16:52:20]CommunicateWithHost err = 0 [16:52:20]CheckOFDResponse [16:52:20]1017 (14) - 77093643461234 [16:52:20]1041 (16) - 0000000000874939 [16:52:20]1040 (4) - 118234 [16:52:20]1012 (4) - 27.07.2024 11:00 [16:52:20]1206 (1) - 0 [16:52:20]OFD Sender: Remove packet 118234 [16:52:20]ProducePacketName [16:52:20]name=ofd_packets/00118234 [16:52:20]NVStorageDeleteData [16:52:20]Write to MH i2c: 01 00 00 E0 0D ED [16:52:20]Write i2c OK [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: 01 [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: 01 07 00 [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: 01 07 00 E0 0D 00 00 00 00 00 D8 0C D8 [16:52:20]RasterBufferAndPrint [16:52:20]line [16:52:20]line [16:52:20]line [16:52:20]line [16:52:20]line [16:52:20]written 0, free lines is 3296 [16:52:20]MH_Cut [16:52:20]Write to MH i2c: D1 01 00 E7 0D 01 C6 [16:52:20]Write i2c OK [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: D1 [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: D1 01 00 [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: D1 01 00 E7 0D 00 C5 [16:52:20]Write to MH i2c: 01 00 00 E8 0D F5 [16:52:20]Write i2c OK [16:52:20]MH_I2C_Read... [16:52:21]OFD Sender: No OFD packet to send [16:52:21]*** Cut start [16:52:21]*** Partial cut [16:52:21]*** CUTSNS_PIN = 1 [16:52:21]*** CUTSNS_PIN = 0 [16:52:21]*** Brake cut motor [16:52:22]Read from MH i2c: 01 [16:52:22]MH_I2C_Read... [16:52:22]*** Stop cut motor [16:52:22]*** Cut end [16:52:22]Read from MH i2c: 01 07 00 [16:52:22]MH_I2C_Read... [16:52:22]Read from MH i2c: 01 07 00 E8 0D 00 00 00 00 00 FF 0F 0A [16:52:22]process_action close_receipt done [16:52:22]requested_data is exist [16:52:22]produce_requested_data [16:52:22]requested_item fm.sn is exist - process it [16:52:22]wFMCommunicate request_size=4 [16:52:22]MH_SAM_APDU [16:52:22]CAPDU: 80 11 00 00 [16:52:22]Write to MH i2c: E2 08 00 E9 0D 80 11 00 00 00 00 00 00 70 [16:52:22]Write i2c OK [16:52:22]MH_I2C_Read... [16:52:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:22]Read from MH i2c: E2 [16:52:22]MH_I2C_Read... [16:52:22]Read from MH i2c: E2 17 00 [16:52:22]MH_I2C_Read... [16:52:22]Read from MH i2c: E2 17 00 E9 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CB [16:52:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:52:22]wFMCommunicate OK [16:52:22]requested_item fd.num is exist - process it [16:52:22]SAM_PROTO_GetFieldsCounters [16:52:22]wFMCommunicate request_size=4 [16:52:22]MH_SAM_APDU [16:52:22]CAPDU: 80 13 00 00 [16:52:22]Write to MH i2c: E2 08 00 EA 0D 80 13 00 00 00 00 00 00 73 [16:52:22]Write i2c OK [16:52:22]MH_I2C_Read... [16:52:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:22]Read from MH i2c: E2 [16:52:22]MH_I2C_Read... [16:52:22]Read from MH i2c: E2 62 00 [16:52:22]MH_I2C_Read... [16:52:22]Read from MH i2c: E2 62 00 EA 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DA CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [16:52:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DA CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:52:22]wFMCommunicate OK [16:52:22]SAM_PROTO_GetFieldsCounters done [16:52:22]requested_item shift.num is exist - process it [16:52:22]requested_item shift.opened is exist - process it [16:52:22]req_shift_opened [16:52:22]FM_GetShiftState [16:52:22]SAM_PROTO_GetShiftState [16:52:22]wFMCommunicate request_size=4 [16:52:22]MH_SAM_APDU [16:52:22]CAPDU: 80 13 01 00 [16:52:22]Write to MH i2c: E2 08 00 EB 0D 80 13 01 00 00 00 00 00 75 [16:52:22]Write i2c OK [16:52:22]MH_I2C_Read... [16:52:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:22]Read from MH i2c: E2 [16:52:22]MH_I2C_Read... [16:52:22]Read from MH i2c: E2 0E 00 [16:52:22]MH_I2C_Read... [16:52:22]Read from MH i2c: E2 0E 00 EB 0D 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 02 [16:52:22]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [16:52:22]wFMCommunicate OK [16:52:22]SAM_PROTO_GetShiftState done [16:52:22]FM_GetShiftState done [16:52:22]req_shift_opened done [16:52:22]requested_item shift.open_date is exist - process it [16:52:22]req_shift_open_date [16:52:22]req_shift_open_date done [16:52:22]produce_requested_data done [16:52:22]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118234,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [16:52:22]process_action_free close_receipt [16:52:22]json_value_free [16:52:22]json_value_free done [16:52:22]process_json_proto returns [16:52:22]Send response to host [16:52:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118234,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [16:52:22]free response buf [16:52:22]execute_script done [16:52:22]execute_script returns [16:52:22]free content buf [16:52:22]Sock 7.Close socket [16:52:22]Sock 7.Thread stoped [16:52:22]accept exits with 9 [16:52:22]New connection [16:52:22]New thread 3067096420 created [16:52:22]Thread 3066953060 joined [16:52:22]Waiting for new connection... [16:52:22] Sock 9.Parse request [16:52:22]Sock 9.Check first char [16:52:22]Sock 9.First char is OK [16:52:22]request: POST /json_proto HTTP/1.0 [16:52:22]Method: POST [16:52:22]URL: /json_proto [16:52:22]Method is POST - this is cgi request [16:52:22]url: /json_proto [16:52:22]query_string will be loaded in cgi processing [16:52:22]execute_cgi json_proto POST (null) [16:52:22]execute_cgi path=json_proto method=POST [16:52:22]POST find Content-Length [16:52:22]Host: 172.17.45.7:8080 [16:52:22]Content-Length: 679 [16:52:22]Content-Type: application/json [16:52:22] [16:52:22]POST finish read [16:52:22]Found Content-Length = 679 [16:52:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 14.470, "sum" : 1102.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1102.00, "payments": [ { "type": 0, "sum" : 1102.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:22]execute_script... [16:52: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)949105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 14.470, "sum" : 1102.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1102.00, "payments": [ { "type": 0, "sum" : 1102.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:22]POST & json_proto [16:52:22]process_json_proto [16:52:22]json parsed OK: [16:52:22]protocol is kg_v1.0 [16:52:22]action value=close_receipt [16:52:22]process_action close_receipt [16:52:22]cmd_close_receipt [16:52:22]MH_GetDate [16:52:22]Write to MH i2c: F0 00 00 EC 0D E8 [16:52:22]Write i2c OK [16:52:22]MH_I2C_Read... [16:52:22]Read from MH i2c: F0 [16:52:22]MH_I2C_Read... [16:52:22]Read from MH i2c: F0 09 00 [16:52:22]MH_I2C_Read... [16:52:22]Read from MH i2c: F0 09 00 EC 0D 00 C7 25 A5 66 90 0F 3E 66 2B [16:52:22]GetLastDocTimeStamp 1722099138 [16:52:22]current date 1722099143 [16:52:22]FM_GetShiftState [16:52:22]SAM_PROTO_GetShiftState [16:52:22]wFMCommunicate request_size=4 [16:52:22]MH_SAM_APDU [16:52:22]CAPDU: 80 13 01 00 [16:52:22]Write to MH i2c: E2 08 00 ED 0D 80 13 01 00 00 00 00 00 77 [16:52:22]Write i2c OK [16:52:22]MH_I2C_Read... [16:52:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:22]Read from MH i2c: E2 [16:52:22]MH_I2C_Read... [16:52:22]Read from MH i2c: E2 0E 00 [16:52:22]MH_I2C_Read... [16:52:22]Read from MH i2c: E2 0E 00 ED 0D 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 04 [16:52:22]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [16:52:22]wFMCommunicate OK [16:52:22]SAM_PROTO_GetShiftState done [16:52:22]FM_GetShiftState done [16:52:22]opened in 1722038845 [16:52:22]opened+sec_in_day 1722125245 [16:52:22]quantity*price = 110261 [16:52:22]sum+1 = 110262 [16:52:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1102.00 Внесено: 1200.00 СДАЧА: 98.00 НСП 1% : 9.76 НДС 12% : 117.09 Наличными: 1102.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 178 27.07.2024 16:52 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118235 ФПД: 62783170505916 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T165223&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118235&fm=62783170505916&tin=02508201610067®Number=0000000000092660&sum=110200 [16:52:23]StoreToDocumentArchive [16:52:23]shift 432 fd 118235 [16:52:23]save to /storage/0432/doc_00118235 [16:52:23]save last doc name /storage/0432/doc_00118235 to /storage/kkm_last_doc_name [16:52:23]save OK [16:52:23]Clear old archive folders... [16:52:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:52:23]tlvbuf is 01E2EA20 [16:52:23]SAM_PROTO_ClearQueue [16:52:23]wFMCommunicate request_size=4 [16:52:23]MH_SAM_APDU [16:52:23]CAPDU: 80 09 00 00 [16:52:23]Write to MH i2c: E2 08 00 FA 0D 80 09 00 00 00 00 00 00 79 [16:52:23]Write i2c OK [16:52:23]MH_I2C_Read... [16:52:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:23]Read from MH i2c: E2 [16:52:23]MH_I2C_Read... [16:52:23]Read from MH i2c: E2 03 00 [16:52:23]MH_I2C_Read... [16:52:23]Read from MH i2c: E2 03 00 FA 0D 00 90 00 7B [16:52:23]RAPDU: 90 00 [16:52:23]wFMCommunicate OK [16:52:23]SAM_PROTO_ClearQueue done [16:52:23]KKMCreateOFDPacket [16:52:23]OFDProtocolAddRootSTLVToBuf [16:52:23]FM_MakeSignedData [16:52:23]FM_MakeSignedData [16:52:23]SAM_PROTO_SignData [16:52:23]wFMCommunicate request_size=4 [16:52:23]MH_SAM_APDU [16:52:23]CAPDU: 80 0D 01 02 [16:52:23]Write to MH i2c: E2 08 00 FB 0D 80 0D 01 02 00 00 00 00 81 [16:52:23]Write i2c OK [16:52:23]MH_I2C_Read... [16:52:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:23]Read from MH i2c: E2 [16:52:23]MH_I2C_Read... [16:52:23]Read from MH i2c: E2 03 00 [16:52:24]MH_I2C_Read... [16:52:24]Read from MH i2c: E2 03 00 FB 0D 00 90 00 7C [16:52:24]RAPDU: 90 00 [16:52:24]wFMCommunicate OK [16:52:24]wFMCommunicate request_size=255 [16:52:24]MH_SAM_APDU [16:52:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B5 AE 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 AE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 2D 00 00 00 00 07 04 06 00 78 AE 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 C7 25 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DB CD 01 00 35 04 06 00 39 19 D8 93 [16:52:24]Write to MH i2c: E2 02 01 FC 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B5 AE 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 AE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 2D 00 00 00 00 07 04 06 00 78 AE 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 C7 25 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DB CD 01 00 35 04 06 00 39 19 D8 93 00 00 B7 [16:52:24]Write i2c OK [16:52:24]MH_I2C_Read... [16:52:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:24]Read from MH i2c: E2 [16:52:24]MH_I2C_Read... [16:52:24]Read from MH i2c: E2 03 00 [16:52:24]MH_I2C_Read... [16:52:24]Read from MH i2c: E2 03 00 FC 0D 00 90 00 7D [16:52:24]RAPDU: 90 00 [16:52:24]wFMCommunicate OK [16:52:24]wFMCommunicate request_size=7 [16:52:24]MH_SAM_APDU [16:52:24]CAPDU: 80 0D 02 02 02 6C BC [16:52:24]Write to MH i2c: E2 0A 00 FD 0D 80 0D 02 02 02 00 6C BC 00 00 B0 [16:52:24]Write i2c OK [16:52:24]MH_I2C_Read... [16:52:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:24]Read from MH i2c: E2 [16:52:24]MH_I2C_Read... [16:52:24]Read from MH i2c: E2 03 00 [16:52:24]MH_I2C_Read... [16:52:24]Read from MH i2c: E2 03 00 FD 0D 00 90 00 7E [16:52:24]RAPDU: 90 00 [16:52:24]wFMCommunicate OK [16:52:24]wFMCommunicate request_size=4 [16:52:24]MH_SAM_APDU [16:52:24]CAPDU: 80 0D 03 02 [16:52:24]Write to MH i2c: E2 08 00 FE 0D 80 0D 03 02 00 00 00 00 86 [16:52:24]Write i2c OK [16:52:24]MH_I2C_Read... [16:52:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:24]Read from MH i2c: E2 [16:52:24]MH_I2C_Read... [16:52:24]Read from MH i2c: E2 0B 00 [16:52:24]MH_I2C_Read... [16:52:24]Read from MH i2c: E2 0B 00 FE 0D 00 09 5D 30 64 95 A3 57 98 90 00 A8 [16:52:24]RAPDU: 09 5D 30 64 95 A3 57 98 90 00 [16:52:24]wFMCommunicate OK [16:52:24]SAM_PROTO_SignData done [16:52:24]FM_MakeSignedData done [16:52:24]CreateOFDProtocolMessage [16:52:24]wFMCommunicate request_size=4 [16:52:24]MH_SAM_APDU [16:52:24]CAPDU: 80 11 00 00 [16:52:24]Write to MH i2c: E2 08 00 FF 0D 80 11 00 00 00 00 00 00 86 [16:52:24]Write i2c OK [16:52:24]MH_I2C_Read... [16:52:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:24]Read from MH i2c: E2 [16:52:24]MH_I2C_Read... [16:52:24]Read from MH i2c: E2 17 00 [16:52:24]MH_I2C_Read... [16:52:24]Read from MH i2c: E2 17 00 FF 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E1 [16:52:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:52:24]wFMCommunicate OK [16:52:24]CreateOFDProtocolMessage done [16:52:24]OFDSenderStorePacket 118235 [16:52:24]StoreOFDPacket docnum=118235 [16:52:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 81 F1 04 01 93 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B5 AE 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 AE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 2D 00 00 00 00 07 04 06 00 78 AE 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 C7 25 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DB CD 01 00 35 04 06 00 39 19 D8 93 6C BC 09 5D 30 64 95 A3 57 98 [16:52:24]CheckFolder [16:52:24]dirname=/storage/ofd_packets [16:52:24]CheckFolder done [16:52:24]ProducePacketName [16:52:24]name=ofd_packets/00118235 [16:52:24]NVStorageSaveData ofd_packets/00118235 [16:52:24]File name is /storage/ofd_packets/00118235 [16:52:24]Write 298 bytes [16:52:24]NVStorageSaveData done [16:52:24]OFDSenderStorePacket done [16:52:24]KKMCreateOFDPacket done [16:52:24]NVStorageSaveData kkm_last_timestamp [16:52:24]File name is /storage/kkm_last_timestamp [16:52:24]Write 4 bytes [16:52:24]NVStorageSaveData done [16:52:24]ExternCall_PrintAddStr [16:52:25]wPrintStart [16:52:25]Write to MH i2c: 01 00 00 00 0E 0E [16:52:25]OFD Sender: Processing packet 118235 [packets to send 86, broken 85] [16:52:25]ProducePacketName [16:52:25]Write i2c OK [16:52:25]MH_I2C_Read... [16:52:25]name=ofd_packets/00118235 [16:52:25]OFD Sender: To server: pG, [16:52:25]CommunicateWithHost lk.salyk.kg:30040 [16:52:25]ConnectInit lk.salyk.kg [16:52:25]Read from MH i2c: 01 [16:52:25]MH_I2C_Read... [16:52:25]Read from MH i2c: 01 07 00 [16:52:25]MH_I2C_Read... [16:52:25]Read from MH i2c: 01 07 00 00 0E 00 00 00 00 00 FF 0F 23 [16:52:25]RasterBufferAndPrint [16:52:25]line Счет N : (1)949105 [16:52:25]line ИНН: 02508201610067 [16:52:25]line Контрольно-Кассовый Чек [16:52:25]line ПРОДАЖА [16:52:25]line ТРК (МРК, ГНК) : 21 [16:52:25]line Товар: 2710194800 [16:52:25]line ДТ-К-5 [16:52:25]line 14.470 * 76.20 [16:52:25]line = 1102.61 [16:52:25]line НДС 12% НСП 1% [16:52:25]line > о реализуемом товаре [16:52:25]line ОКРУГЛЕНИЕ: -0.61 [16:52:25]line ИТОГО: 1102.00 [16:52:25]line Внесено: 1200.00 [16:52:25]line СДАЧА: 98.00 [16:52:25]line НСП 1% : 9.76 [16:52:25]line НДС 12% : 117.09 [16:52:25]line Наличными: 1102.00 [16:52:25]line Безнал.: 0.00 [16:52:25]line Место: АЗС № 134 "Партнер Нефть" [16:52:25]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:52:25]line СНО: Общий режим [16:52:25]line Чек 178 27.07.2024 16:52 [16:52:25]line Смена: 432 ФФД: 1.0 [16:52:25]line ЗНМ: 0300000044 [16:52:25]line РНМ: 0000000000092660 [16:52:25]line Версия ККМ: 001 [16:52:25]line ФМ: 0000000000874939 [16:52:25]line ФД: 118235 [16:52:25]line ФПД: 62783170505916 [16:52:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T165223&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118235&fm=62783170505916&tin=02508201610067®Number=0000000000092660&sum=110200 [16:52:25]written 0, free lines is 4095 [16:52:25]Connected sock=10 [16:52:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 81 F1 04 01 93 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B5 AE 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 AE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 2D 00 00 00 00 07 04 06 00 78 AE 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 C7 25 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DB CD 01 00 35 04 06 00 39 19 D8 93 6C BC 09 5D 30 64 95 A3 57 98 [16:52:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F0 BF 47 00 30 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DB CD 01 00 F4 03 04 00 5A D3 A4 66 B6 04 01 00 00 6D B4 04 7A DC DB 88 EA [16:52:25]CommunicateWithHost err = 0 [16:52:25]CheckOFDResponse [16:52:25]1017 (14) - 77093643461234 [16:52:25]1041 (16) - 0000000000874939 [16:52:25]1040 (4) - 118235 [16:52:25]1012 (4) - 27.07.2024 11:00 [16:52:25]1206 (1) - 0 [16:52:25]OFD Sender: Remove packet 118235 [16:52:25]ProducePacketName [16:52:25]name=ofd_packets/00118235 [16:52:25]NVStorageDeleteData [16:52:25]Write to MH i2c: 01 00 00 2A 0E 38 [16:52:25]Write i2c OK [16:52:25]MH_I2C_Read... [16:52:25]Read from MH i2c: 01 [16:52:25]MH_I2C_Read... [16:52:25]Read from MH i2c: 01 07 00 [16:52:25]MH_I2C_Read... [16:52:25]Read from MH i2c: 01 07 00 2A 0E 00 00 00 00 00 ED 0C 38 [16:52:25]RasterBufferAndPrint [16:52:25]line [16:52:25]line [16:52:25]line [16:52:25]line [16:52:25]line [16:52:25]written 0, free lines is 3325 [16:52:25]MH_Cut [16:52:25]Write to MH i2c: D1 01 00 31 0E 01 11 [16:52:25]Write i2c OK [16:52:25]MH_I2C_Read... [16:52:25]Read from MH i2c: D1 [16:52:25]MH_I2C_Read... [16:52:25]Read from MH i2c: D1 01 00 [16:52:25]MH_I2C_Read... [16:52:25]Read from MH i2c: D1 01 00 31 0E 00 10 [16:52:25]Write to MH i2c: 01 00 00 32 0E 40 [16:52:25]Write i2c OK [16:52:25]MH_I2C_Read... [16:52:25]OFD Sender: No OFD packet to send [16:52:26]*** Cut start [16:52:26]*** Partial cut [16:52:26]*** CUTSNS_PIN = 1 [16:52:26]*** CUTSNS_PIN = 0 [16:52:26]*** Brake cut motor [16:52:26]Read from MH i2c: 01 [16:52:26]MH_I2C_Read... [16:52:26]*** Stop cut motor [16:52:26]*** Cut end [16:52:26]Read from MH i2c: 01 07 00 [16:52:26]MH_I2C_Read... [16:52:26]Read from MH i2c: 01 07 00 32 0E 00 00 00 00 00 FF 0F 55 [16:52:26]process_action close_receipt done [16:52:26]requested_data is exist [16:52:26]produce_requested_data [16:52:26]requested_item fm.sn is exist - process it [16:52:26]wFMCommunicate request_size=4 [16:52:26]MH_SAM_APDU [16:52:26]CAPDU: 80 11 00 00 [16:52:26]Write to MH i2c: E2 08 00 33 0E 80 11 00 00 00 00 00 00 BB [16:52:26]Write i2c OK [16:52:26]MH_I2C_Read... [16:52:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:26]Read from MH i2c: E2 [16:52:26]MH_I2C_Read... [16:52:26]Read from MH i2c: E2 17 00 [16:52:26]MH_I2C_Read... [16:52:26]Read from MH i2c: E2 17 00 33 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 16 [16:52:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:52:26]wFMCommunicate OK [16:52:26]requested_item fd.num is exist - process it [16:52:26]SAM_PROTO_GetFieldsCounters [16:52:26]wFMCommunicate request_size=4 [16:52:26]MH_SAM_APDU [16:52:26]CAPDU: 80 13 00 00 [16:52:26]Write to MH i2c: E2 08 00 34 0E 80 13 00 00 00 00 00 00 BE [16:52:26]Write i2c OK [16:52:26]MH_I2C_Read... [16:52:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:27]Read from MH i2c: E2 [16:52:27]MH_I2C_Read... [16:52:27]Read from MH i2c: E2 62 00 [16:52:27]MH_I2C_Read... [16:52:27]Read from MH i2c: E2 62 00 34 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DB CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [16:52:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DB CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:52:27]wFMCommunicate OK [16:52:27]SAM_PROTO_GetFieldsCounters done [16:52:27]requested_item shift.num is exist - process it [16:52:27]requested_item shift.opened is exist - process it [16:52:27]req_shift_opened [16:52:27]FM_GetShiftState [16:52:27]SAM_PROTO_GetShiftState [16:52:27]wFMCommunicate request_size=4 [16:52:27]MH_SAM_APDU [16:52:27]CAPDU: 80 13 01 00 [16:52:27]Write to MH i2c: E2 08 00 35 0E 80 13 01 00 00 00 00 00 C0 [16:52:27]Write i2c OK [16:52:27]MH_I2C_Read... [16:52:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:27]Read from MH i2c: E2 [16:52:27]MH_I2C_Read... [16:52:27]Read from MH i2c: E2 0E 00 [16:52:27]MH_I2C_Read... [16:52:27]Read from MH i2c: E2 0E 00 35 0E 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 4D [16:52:27]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [16:52:27]wFMCommunicate OK [16:52:27]SAM_PROTO_GetShiftState done [16:52:27]FM_GetShiftState done [16:52:27]req_shift_opened done [16:52:27]requested_item shift.open_date is exist - process it [16:52:27]req_shift_open_date [16:52:27]req_shift_open_date done [16:52:27]produce_requested_data done [16:52:27]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118235,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [16:52:27]process_action_free close_receipt [16:52:27]json_value_free [16:52:27]json_value_free done [16:52:27]process_json_proto returns [16:52:27]Send response to host [16:52:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118235,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [16:52:27]free response buf [16:52:27]execute_script done [16:52:27]execute_script returns [16:52:27]free content buf [16:52:27]Sock 9.Close socket [16:52:27]Sock 9.Thread stoped [16:52:30]OFD Sender: No OFD packet to send [16:52:35]OFD Sender: No OFD packet to send [16:52:40]OFD Sender: No OFD packet to send [16:52:45]OFD Sender: No OFD packet to send [16:52:50]OFD Sender: No OFD packet to send [16:52:55]OFD Sender: No OFD packet to send [16:53:00]OFD Sender: No OFD packet to send [16:53:05]OFD Sender: No OFD packet to send [16:53:10]OFD Sender: No OFD packet to send [16:53:15]OFD Sender: No OFD packet to send [16:53:20]OFD Sender: No OFD packet to send [16:53:25]OFD Sender: No OFD packet to send [16:53:30]OFD Sender: No OFD packet to send [16:53:35]OFD Sender: No OFD packet to send [16:53:41]OFD Sender: No OFD packet to send [16:53:46]OFD Sender: No OFD packet to send [16:53:51]OFD Sender: No OFD packet to send [16:53:56]OFD Sender: No OFD packet to send [16:54:01]OFD Sender: No OFD packet to send [16:54:06]OFD Sender: No OFD packet to send [16:54:11]OFD Sender: No OFD packet to send [16:54:16]OFD Sender: No OFD packet to send [16:54:21]OFD Sender: No OFD packet to send [16:54:26]OFD Sender: No OFD packet to send [16:54:31]OFD Sender: No OFD packet to send [16:54:36]OFD Sender: No OFD packet to send [16:54:41]OFD Sender: No OFD packet to send [16:54:46]OFD Sender: No OFD packet to send [16:54:51]OFD Sender: No OFD packet to send [16:54:56]OFD Sender: No OFD packet to send [16:55:01]OFD Sender: No OFD packet to send [16:55:06]OFD Sender: No OFD packet to send [16:55:11]OFD Sender: No OFD packet to send [16:55:16]OFD Sender: No OFD packet to send [16:55:21]OFD Sender: No OFD packet to send [16:55:26]OFD Sender: No OFD packet to send [16:55:31]OFD Sender: No OFD packet to send [16:55:36]OFD Sender: No OFD packet to send [16:55:41]OFD Sender: No OFD packet to send [16:55:46]OFD Sender: No OFD packet to send [16:55:51]OFD Sender: No OFD packet to send [16:55:56]OFD Sender: No OFD packet to send [16:56:01]OFD Sender: No OFD packet to send [16:56:06]OFD Sender: No OFD packet to send [16:56:11]OFD Sender: No OFD packet to send [16:56:16]OFD Sender: No OFD packet to send [16:56:21]OFD Sender: No OFD packet to send [16:56:26]OFD Sender: No OFD packet to send [16:56:31]OFD Sender: No OFD packet to send [16:56:36]OFD Sender: No OFD packet to send [16:56:41]OFD Sender: No OFD packet to send [16:56:46]OFD Sender: No OFD packet to send [16:56:51]OFD Sender: No OFD packet to send [16:56:56]OFD Sender: No OFD packet to send [16:57:01]OFD Sender: No OFD packet to send [16:57:06]OFD Sender: No OFD packet to send [16:57:11]OFD Sender: No OFD packet to send [16:57:16]OFD Sender: No OFD packet to send [16:57:21]OFD Sender: No OFD packet to send [16:57:26]OFD Sender: No OFD packet to send [16:57:31]OFD Sender: No OFD packet to send [16:57:36]OFD Sender: No OFD packet to send [16:57:41]OFD Sender: No OFD packet to send [16:57:46]OFD Sender: No OFD packet to send [16:57:51]OFD Sender: No OFD packet to send [16:57:56]OFD Sender: No OFD packet to send [16:58:01]OFD Sender: No OFD packet to send [16:58:06]OFD Sender: No OFD packet to send [16:58:11]OFD Sender: No OFD packet to send [16:58:16]OFD Sender: No OFD packet to send [16:58:21]OFD Sender: No OFD packet to send [16:58:26]OFD Sender: No OFD packet to send [16:58:31]OFD Sender: No OFD packet to send [16:58:36]OFD Sender: No OFD packet to send [16:58:41]OFD Sender: No OFD packet to send [16:58:46]OFD Sender: No OFD packet to send [16:58:51]OFD Sender: No OFD packet to send [16:58:56]OFD Sender: No OFD packet to send [16:59:01]OFD Sender: No OFD packet to send [16:59:06]OFD Sender: No OFD packet to send [16:59:11]OFD Sender: No OFD packet to send [16:59:16]OFD Sender: No OFD packet to send [16:59:21]OFD Sender: No OFD packet to send [16:59:26]OFD Sender: No OFD packet to send [16:59:31]OFD Sender: No OFD packet to send [16:59:36]OFD Sender: No OFD packet to send [16:59:41]OFD Sender: No OFD packet to send [16:59:46]OFD Sender: No OFD packet to send [16:59:51]OFD Sender: No OFD packet to send [16:59:56]OFD Sender: No OFD packet to send [17:00:01]OFD Sender: No OFD packet to send [17:00:06]OFD Sender: No OFD packet to send [17:00:11]OFD Sender: No OFD packet to send [17:00:16]OFD Sender: No OFD packet to send [17:00:21]OFD Sender: No OFD packet to send [17:00:26]OFD Sender: No OFD packet to send [17:00:31]OFD Sender: No OFD packet to send [17:00:36]OFD Sender: No OFD packet to send [17:00:41]OFD Sender: No OFD packet to send [17:00:46]OFD Sender: No OFD packet to send [17:00:51]OFD Sender: No OFD packet to send [17:00:56]OFD Sender: No OFD packet to send [17:01:01]OFD Sender: No OFD packet to send [17:01:06]OFD Sender: No OFD packet to send [17:01:11]OFD Sender: No OFD packet to send [17:01:16]OFD Sender: No OFD packet to send [17:01:21]OFD Sender: No OFD packet to send [17:01:26]OFD Sender: No OFD packet to send [17:01:31]OFD Sender: No OFD packet to send [17:01:36]OFD Sender: No OFD packet to send [17:01:41]OFD Sender: No OFD packet to send [17:01:46]OFD Sender: No OFD packet to send [17:01:51]OFD Sender: No OFD packet to send [17:01:56]OFD Sender: No OFD packet to send [17:02:01]OFD Sender: No OFD packet to send [17:02:06]OFD Sender: No OFD packet to send [17:02:11]OFD Sender: No OFD packet to send [17:02: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:48]accept exits with 7 [17:03:48]New connection [17:03:48]New thread 3066953060 created [17:03:48]Thread 3067096420 joined [17:03:48]Waiting for new connection... [17:03:48] Sock 7.Parse request [17:03:48]Sock 7.Check first char [17:03:48]Sock 7.First char is OK [17:03:48]request: POST /json_proto HTTP/1.0 [17:03:48]Method: POST [17:03:48]URL: /json_proto [17:03:48]Method is POST - this is cgi request [17:03:48]url: /json_proto [17:03:48]query_string will be loaded in cgi processing [17:03:48]execute_cgi json_proto POST (null) [17:03:48]execute_cgi path=json_proto method=POST [17:03:48]POST find Content-Length [17:03:48]Host: 172.17.45.7:8080 [17:03:48]Content-Length: 819 [17:03:48]Content-Type: application/json [17:03:48] [17:03:48]POST finish read [17:03:48]Found Content-Length = 819 [17:03:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:48]execute_script... [17:03: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)949106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:48]POST & json_proto [17:03:48]process_json_proto [17:03:48]json parsed OK: [17:03:48]protocol is kg_v1.0 [17:03:48]action value=close_receipt [17:03:48]process_action close_receipt [17:03:48]cmd_close_receipt [17:03:48]MH_GetDate [17:03:48]Write to MH i2c: F0 00 00 36 0E 33 [17:03:48]Write i2c OK [17:03:48]MH_I2C_Read... [17:03:48]Read from MH i2c: F0 [17:03:48]MH_I2C_Read... [17:03:48]Read from MH i2c: F0 09 00 [17:03:48]MH_I2C_Read... [17:03:48]Read from MH i2c: F0 09 00 36 0E 00 75 28 A5 66 90 0F 3E 66 27 [17:03:48]GetLastDocTimeStamp 1722099143 [17:03:48]current date 1722099829 [17:03:48]FM_GetShiftState [17:03:48]SAM_PROTO_GetShiftState [17:03:48]wFMCommunicate request_size=4 [17:03:48]MH_SAM_APDU [17:03:48]CAPDU: 80 13 01 00 [17:03:48]Write to MH i2c: E2 08 00 37 0E 80 13 01 00 00 00 00 00 C2 [17:03:48]Write i2c OK [17:03:48]MH_I2C_Read... [17:03:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:48]Read from MH i2c: E2 [17:03:48]MH_I2C_Read... [17:03:48]Read from MH i2c: E2 0E 00 [17:03:48]MH_I2C_Read... [17:03:48]Read from MH i2c: E2 0E 00 37 0E 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 4F [17:03:48]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [17:03:48]wFMCommunicate OK [17:03:48]SAM_PROTO_GetShiftState done [17:03:48]FM_GetShiftState done [17:03:48]opened in 1722038845 [17:03:48]opened+sec_in_day 1722125245 [17:03:48]quantity*price = 200025 [17:03:48]sum+1 = 200026 [17:03:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 179 27.07.2024 17:03 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118236 ФПД: 127995931109989 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T170349&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118236&fm=127995931109989&tin=02508201610067®Number=0000000000092660&sum=200000 [17:03:49]StoreToDocumentArchive [17:03:49]shift 432 fd 118236 [17:03:49]save to /storage/0432/doc_00118236 [17:03:49]save last doc name /storage/0432/doc_00118236 to /storage/kkm_last_doc_name [17:03:49]save OK [17:03:49]Clear old archive folders... [17:03:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:03:49]tlvbuf is 01DF3670 [17:03:49]SAM_PROTO_ClearQueue [17:03:49]wFMCommunicate request_size=4 [17:03:49]MH_SAM_APDU [17:03:49]CAPDU: 80 09 00 00 [17:03:49]Write to MH i2c: E2 08 00 44 0E 80 09 00 00 00 00 00 00 C4 [17:03:49]Write i2c OK [17:03:49]MH_I2C_Read... [17:03:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:49]Read from MH i2c: E2 [17:03:49]MH_I2C_Read... [17:03:49]Read from MH i2c: E2 03 00 [17:03:49]MH_I2C_Read... [17:03:49]Read from MH i2c: E2 03 00 44 0E 00 90 00 C6 [17:03:49]RAPDU: 90 00 [17:03:49]wFMCommunicate OK [17:03:49]SAM_PROTO_ClearQueue done [17:03:49]KKMCreateOFDPacket [17:03:49]OFDProtocolAddRootSTLVToBuf [17:03:49]FM_MakeSignedData [17:03:49]FM_MakeSignedData [17:03:49]SAM_PROTO_SignData [17:03:49]wFMCommunicate request_size=4 [17:03:49]MH_SAM_APDU [17:03:49]CAPDU: 80 0D 01 02 [17:03:49]Write to MH i2c: E2 08 00 45 0E 80 0D 01 02 00 00 00 00 CC [17:03:49]Write i2c OK [17:03:49]MH_I2C_Read... [17:03:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:49]Read from MH i2c: E2 [17:03:49]MH_I2C_Read... [17:03:49]Read from MH i2c: E2 03 00 [17:03:49]MH_I2C_Read... [17:03:49]Read from MH i2c: E2 03 00 45 0E 00 90 00 C7 [17:03:49]RAPDU: 90 00 [17:03:49]wFMCommunicate OK [17:03:49]wFMCommunicate request_size=255 [17:03:49]MH_SAM_APDU [17:03: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 75 28 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DC CD 01 00 35 04 06 00 74 69 60 01 [17:03:49]Write to MH i2c: E2 02 01 46 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 75 28 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DC CD 01 00 35 04 06 00 74 69 60 01 00 00 3E [17:03:49]Write i2c OK [17:03:49]MH_I2C_Read... [17:03:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:50]Read from MH i2c: E2 [17:03:50]MH_I2C_Read... [17:03:50]Read from MH i2c: E2 03 00 [17:03:50]MH_I2C_Read... [17:03:50]Read from MH i2c: E2 03 00 46 0E 00 90 00 C8 [17:03:50]RAPDU: 90 00 [17:03:50]wFMCommunicate OK [17:03:50]wFMCommunicate request_size=7 [17:03:50]MH_SAM_APDU [17:03:50]CAPDU: 80 0D 02 02 02 AA 65 [17:03:50]Write to MH i2c: E2 0A 00 47 0E 80 0D 02 02 02 00 AA 65 00 00 E2 [17:03:50]Write i2c OK [17:03:50]MH_I2C_Read... [17:03:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:50]Read from MH i2c: E2 [17:03:50]MH_I2C_Read... [17:03:50]Read from MH i2c: E2 03 00 [17:03:50]MH_I2C_Read... [17:03:50]Read from MH i2c: E2 03 00 47 0E 00 90 00 C9 [17:03:50]RAPDU: 90 00 [17:03:50]wFMCommunicate OK [17:03:50]wFMCommunicate request_size=4 [17:03:50]MH_SAM_APDU [17:03:50]CAPDU: 80 0D 03 02 [17:03:50]Write to MH i2c: E2 08 00 48 0E 80 0D 03 02 00 00 00 00 D1 [17:03:50]Write i2c OK [17:03:50]MH_I2C_Read... [17:03:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:50]Read from MH i2c: E2 [17:03:50]MH_I2C_Read... [17:03:50]Read from MH i2c: E2 0B 00 [17:03:50]MH_I2C_Read... [17:03:50]Read from MH i2c: E2 0B 00 48 0E 00 9A 81 06 3B 79 2A AC 67 90 00 E4 [17:03:50]RAPDU: 9A 81 06 3B 79 2A AC 67 90 00 [17:03:50]wFMCommunicate OK [17:03:50]SAM_PROTO_SignData done [17:03:50]FM_MakeSignedData done [17:03:50]CreateOFDProtocolMessage [17:03:50]wFMCommunicate request_size=4 [17:03:50]MH_SAM_APDU [17:03:50]CAPDU: 80 11 00 00 [17:03:50]Write to MH i2c: E2 08 00 49 0E 80 11 00 00 00 00 00 00 D1 [17:03:50]Write i2c OK [17:03:50]MH_I2C_Read... [17:03:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:50]Read from MH i2c: E2 [17:03:50]MH_I2C_Read... [17:03:50]Read from MH i2c: E2 17 00 [17:03:50]MH_I2C_Read... [17:03:50]Read from MH i2c: E2 17 00 49 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2C [17:03:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:03:50]wFMCommunicate OK [17:03:50]CreateOFDProtocolMessage done [17:03:50]OFDSenderStorePacket 118236 [17:03:50]StoreOFDPacket docnum=118236 [17:03:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F6 2C 04 01 4B 7B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 75 28 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DC CD 01 00 35 04 06 00 74 69 60 01 AA 65 9A 81 06 3B 79 2A AC 67 [17:03:50]CheckFolder [17:03:50]dirname=/storage/ofd_packets [17:03:50]CheckFolder done [17:03:50]ProducePacketName [17:03:50]name=ofd_packets/00118236 [17:03:50]NVStorageSaveData ofd_packets/00118236 [17:03:50]File name is /storage/ofd_packets/00118236 [17:03:50]Write 298 bytes [17:03:50]NVStorageSaveData done [17:03:50]OFDSenderStorePacket done [17:03:50]KKMCreateOFDPacket done [17:03:50]NVStorageSaveData kkm_last_timestamp [17:03:50]File name is /storage/kkm_last_timestamp [17:03:50]Write 4 bytes [17:03:50]NVStorageSaveData done [17:03:50]ExternCall_PrintAddStr [17:03:50]wPrintStart [17:03:50]Write to MH i2c: 01 00 00 4A 0E 58 [17:03:50]Write i2c OK [17:03:50]MH_I2C_Read... [17:03:50]Read from MH i2c: 01 [17:03:50]MH_I2C_Read... [17:03:50]Read from MH i2c: 01 07 00 [17:03:50]MH_I2C_Read... [17:03:50]Read from MH i2c: 01 07 00 4A 0E 00 00 00 00 00 FF 0F 6D [17:03:50]RasterBufferAndPrint [17:03:50]line Счет N : (1)949106 [17:03:50]line ИНН: 02508201610067 [17:03:50]line Контрольно-Кассовый Чек [17:03:50]line ПРОДАЖА [17:03:50]line ТРК (МРК, ГНК) : 44 [17:03:50]line Товар: 2710194800 [17:03:50]line ДТ-К-5 [17:03:50]line 26.250 * 76.20 [17:03:50]line = 2000.25 [17:03:50]line НДС 12% НСП 1% [17:03:50]line > о реализуемом товаре [17:03:50]line ОКРУГЛЕНИЕ: -0.25 [17:03:50]line ИТОГО: 2000.00 [17:03:50]line НСП 1% : 17.70 [17:03:50]line НДС 12% : 212.42 [17:03:50]line Наличными: 0.00 [17:03:50]line Безнал.: 2000.00 [17:03:50]line Место: АЗС № 134 "Партнер Нефть" [17:03:50]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:03:50]line СНО: Общий режим [17:03:50]line Чек 179 27.07.2024 17:03 [17:03:50]line Смена: 432 ФФД: 1.0 [17:03:50]line ЗНМ: 0300000044 [17:03:50]line РНМ: 0000000000092660 [17:03:50]line Версия ККМ: 001 [17:03:50]line Платежная система: O! деньги [17:03:50]line ФМ: 0000000000874939 [17:03:50]line ФД: 118236 [17:03:50]line ФПД: 127995931109989 [17:03:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T170349&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118236&fm=127995931109989&tin=02508201610067®Number=0000000000092660&sum=200000 [17:03:50]OFD Sender: Processing packet 118236 [packets to send 86, broken 85] [17:03:50]ProducePacketName [17:03:50]name=ofd_packets/00118236 [17:03:50]OFD Sender: To server: pG, [17:03:50]CommunicateWithHost lk.salyk.kg:30040 [17:03:50]ConnectInit lk.salyk.kg [17:03:50]written 0, free lines is 4095 [17:03:50]Connected sock=10 [17:03:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F6 2C 04 01 4B 7B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 75 28 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DC CD 01 00 35 04 06 00 74 69 60 01 AA 65 9A 81 06 3B 79 2A AC 67 [17:03:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 EF 88 47 00 25 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DC CD 01 00 F4 03 04 00 07 D6 A4 66 B6 04 01 00 00 0B B8 A0 68 41 C8 A8 76 [17:03:51]CommunicateWithHost err = 0 [17:03:51]CheckOFDResponse [17:03:51]1017 (14) - 77093643461234 [17:03:51]1041 (16) - 0000000000874939 [17:03:51]1040 (4) - 118236 [17:03:51]1012 (4) - 27.07.2024 11:12 [17:03:51]1206 (1) - 0 [17:03:51]OFD Sender: Remove packet 118236 [17:03:51]ProducePacketName [17:03:51]name=ofd_packets/00118236 [17:03:51]NVStorageDeleteData [17:03:51]Write to MH i2c: 01 00 00 74 0E 82 [17:03:51]Write i2c OK [17:03:51]MH_I2C_Read... [17:03:51]Read from MH i2c: 01 [17:03:51]MH_I2C_Read... [17:03:51]Read from MH i2c: 01 07 00 [17:03:51]MH_I2C_Read... [17:03:51]Read from MH i2c: 01 07 00 74 0E 00 00 00 00 00 D3 0C 68 [17:03:51]RasterBufferAndPrint [17:03:51]line [17:03:51]line [17:03:51]line [17:03:51]line [17:03:51]line [17:03:51]written 0, free lines is 3290 [17:03:51]MH_Cut [17:03:51]Write to MH i2c: D1 01 00 7B 0E 01 5B [17:03:51]Write i2c OK [17:03:51]MH_I2C_Read... [17:03:51]Read from MH i2c: D1 [17:03:51]MH_I2C_Read... [17:03:51]Read from MH i2c: D1 01 00 [17:03:51]MH_I2C_Read... [17:03:51]Read from MH i2c: D1 01 00 7B 0E 00 5A [17:03:51]Write to MH i2c: 01 00 00 7C 0E 8A [17:03:51]Write i2c OK [17:03:51]MH_I2C_Read... [17:03:51]OFD Sender: No OFD packet to send [17:03:51]*** Cut start [17:03:51]*** Partial cut [17:03:51]*** CUTSNS_PIN = 1 [17:03:51]*** CUTSNS_PIN = 0 [17:03:52]*** Brake cut motor [17:03:52]Read from MH i2c: 01 [17:03:52]MH_I2C_Read... [17:03:52]*** Stop cut motor [17:03:52]*** Cut end [17:03:52]Read from MH i2c: 01 07 00 [17:03:52]MH_I2C_Read... [17:03:52]Read from MH i2c: 01 07 00 7C 0E 00 00 00 00 00 FF 0F 9F [17:03:52]process_action close_receipt done [17:03:52]requested_data is exist [17:03:52]produce_requested_data [17:03:52]requested_item fm.sn is exist - process it [17:03:52]wFMCommunicate request_size=4 [17:03:52]MH_SAM_APDU [17:03:52]CAPDU: 80 11 00 00 [17:03:52]Write to MH i2c: E2 08 00 7D 0E 80 11 00 00 00 00 00 00 05 [17:03:52]Write i2c OK [17:03:52]MH_I2C_Read... [17:03:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:52]Read from MH i2c: E2 [17:03:52]MH_I2C_Read... [17:03:52]Read from MH i2c: E2 17 00 [17:03:52]MH_I2C_Read... [17:03:52]Read from MH i2c: E2 17 00 7D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 60 [17:03:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:03:52]wFMCommunicate OK [17:03:52]requested_item fd.num is exist - process it [17:03:52]SAM_PROTO_GetFieldsCounters [17:03:52]wFMCommunicate request_size=4 [17:03:52]MH_SAM_APDU [17:03:52]CAPDU: 80 13 00 00 [17:03:52]Write to MH i2c: E2 08 00 7E 0E 80 13 00 00 00 00 00 00 08 [17:03:52]Write i2c OK [17:03:52]MH_I2C_Read... [17:03:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:52]Read from MH i2c: E2 [17:03:52]MH_I2C_Read... [17:03:52]Read from MH i2c: E2 62 00 [17:03:52]MH_I2C_Read... [17:03:52]Read from MH i2c: E2 62 00 7E 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DC CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [17:03:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DC CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:03:52]wFMCommunicate OK [17:03:52]SAM_PROTO_GetFieldsCounters done [17:03:52]requested_item shift.num is exist - process it [17:03:52]requested_item shift.opened is exist - process it [17:03:52]req_shift_opened [17:03:52]FM_GetShiftState [17:03:52]SAM_PROTO_GetShiftState [17:03:52]wFMCommunicate request_size=4 [17:03:52]MH_SAM_APDU [17:03:52]CAPDU: 80 13 01 00 [17:03:52]Write to MH i2c: E2 08 00 7F 0E 80 13 01 00 00 00 00 00 0A [17:03:52]Write i2c OK [17:03:52]MH_I2C_Read... [17:03:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:52]Read from MH i2c: E2 [17:03:52]MH_I2C_Read... [17:03:52]Read from MH i2c: E2 0E 00 [17:03:52]MH_I2C_Read... [17:03:52]Read from MH i2c: E2 0E 00 7F 0E 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 97 [17:03:52]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [17:03:52]wFMCommunicate OK [17:03:52]SAM_PROTO_GetShiftState done [17:03:52]FM_GetShiftState done [17:03:52]req_shift_opened done [17:03:52]requested_item shift.open_date is exist - process it [17:03:52]req_shift_open_date [17:03:52]req_shift_open_date done [17:03:52]produce_requested_data done [17:03:52]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118236,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [17:03:52]process_action_free close_receipt [17:03:52]json_value_free [17:03:52]json_value_free done [17:03:52]process_json_proto returns [17:03:52]Send response to host [17:03:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118236,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [17:03:52]free response buf [17:03:52]execute_script done [17:03:52]execute_script returns [17:03:52]free content buf [17:03:52]Sock 7.Close socket [17:03:52]Sock 7.Thread stoped [17:03:55]accept exits with 9 [17:03:55]New connection [17:03:55]New thread 3067096420 created [17:03:55]Thread 3066953060 joined [17:03:55]Waiting for new connection... [17:03:55] Sock 9.Parse request [17:03:55]Sock 9.Check first char [17:03:55]Sock 9.First char is OK [17:03:55]request: POST /json_proto HTTP/1.0 [17:03:55]Method: POST [17:03:55]URL: /json_proto [17:03:55]Method is POST - this is cgi request [17:03:55]url: /json_proto [17:03:55]query_string will be loaded in cgi processing [17:03:55]execute_cgi json_proto POST (null) [17:03:55]execute_cgi path=json_proto method=POST [17:03:55]POST find Content-Length [17:03:55]Host: 172.17.45.7:8080 [17:03:55]Content-Length: 679 [17:03:55]Content-Type: application/json [17:03:55] [17:03:55]POST finish read [17:03:55]Found Content-Length = 679 [17:03:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:55]execute_script... [17:03: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)949107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:55]POST & json_proto [17:03:55]process_json_proto [17:03:55]json parsed OK: [17:03:55]protocol is kg_v1.0 [17:03:55]action value=close_receipt [17:03:55]process_action close_receipt [17:03:55]cmd_close_receipt [17:03:55]MH_GetDate [17:03:55]Write to MH i2c: F0 00 00 80 0E 7D [17:03:55]Write i2c OK [17:03:55]MH_I2C_Read... [17:03:55]Read from MH i2c: F0 [17:03:55]MH_I2C_Read... [17:03:55]Read from MH i2c: F0 09 00 [17:03:55]MH_I2C_Read... [17:03:55]Read from MH i2c: F0 09 00 80 0E 00 7B 28 A5 66 90 0F 3E 66 77 [17:03:55]GetLastDocTimeStamp 1722099829 [17:03:55]current date 1722099835 [17:03:55]FM_GetShiftState [17:03:55]SAM_PROTO_GetShiftState [17:03:55]wFMCommunicate request_size=4 [17:03:55]MH_SAM_APDU [17:03:55]CAPDU: 80 13 01 00 [17:03:55]Write to MH i2c: E2 08 00 81 0E 80 13 01 00 00 00 00 00 0C [17:03:55]Write i2c OK [17:03:55]MH_I2C_Read... [17:03:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:55]Read from MH i2c: E2 [17:03:55]MH_I2C_Read... [17:03:55]Read from MH i2c: E2 0E 00 [17:03:55]MH_I2C_Read... [17:03:55]Read from MH i2c: E2 0E 00 81 0E 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 99 [17:03:55]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [17:03:55]wFMCommunicate OK [17:03:55]SAM_PROTO_GetShiftState done [17:03:55]FM_GetShiftState done [17:03:55]opened in 1722038845 [17:03:55]opened+sec_in_day 1722125245 [17:03:55]quantity*price = 100050 [17:03:55]sum+1 = 100052 [17:03:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 180 27.07.2024 17:03 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118237 ФПД: 191195437370978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T170356&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118237&fm=191195437370978&tin=02508201610067®Number=0000000000092660&sum=100000 [17:03:56]StoreToDocumentArchive [17:03:56]shift 432 fd 118237 [17:03:56]save to /storage/0432/doc_00118237 [17:03:56]save last doc name /storage/0432/doc_00118237 to /storage/kkm_last_doc_name [17:03:56]save OK [17:03:56]Clear old archive folders... [17:03:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:03:56]tlvbuf is 01E4BBE0 [17:03:56]SAM_PROTO_ClearQueue [17:03:56]wFMCommunicate request_size=4 [17:03:56]MH_SAM_APDU [17:03:56]CAPDU: 80 09 00 00 [17:03:56]Write to MH i2c: E2 08 00 8E 0E 80 09 00 00 00 00 00 00 0E [17:03:56]Write i2c OK [17:03:56]MH_I2C_Read... [17:03:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:56]Read from MH i2c: E2 [17:03:56]MH_I2C_Read... [17:03:56]Read from MH i2c: E2 03 00 [17:03:56]MH_I2C_Read... [17:03:56]Read from MH i2c: E2 03 00 8E 0E 00 90 00 10 [17:03:56]RAPDU: 90 00 [17:03:56]wFMCommunicate OK [17:03:56]SAM_PROTO_ClearQueue done [17:03:56]KKMCreateOFDPacket [17:03:56]OFDProtocolAddRootSTLVToBuf [17:03:56]FM_MakeSignedData [17:03:56]FM_MakeSignedData [17:03:56]SAM_PROTO_SignData [17:03:56]wFMCommunicate request_size=4 [17:03:56]MH_SAM_APDU [17:03:56]CAPDU: 80 0D 01 02 [17:03:56]Write to MH i2c: E2 08 00 8F 0E 80 0D 01 02 00 00 00 00 16 [17:03:56]Write i2c OK [17:03:56]MH_I2C_Read... [17:03:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:56]Read from MH i2c: E2 [17:03:56]MH_I2C_Read... [17:03:56]Read from MH i2c: E2 03 00 [17:03:56]MH_I2C_Read... [17:03:56]Read from MH i2c: E2 03 00 8F 0E 00 90 00 11 [17:03:56]RAPDU: 90 00 [17:03:56]wFMCommunicate OK [17:03:56]wFMCommunicate request_size=255 [17:03:56]MH_SAM_APDU [17:03: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 7C 28 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DD CD 01 00 35 04 06 00 AD E4 28 20 [17:03:56]Write to MH i2c: E2 02 01 90 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 7C 28 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DD CD 01 00 35 04 06 00 AD E4 28 20 00 00 3E [17:03:56]Write i2c OK [17:03:56]MH_I2C_Read... [17:03:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:57]Read from MH i2c: E2 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 03 00 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 03 00 90 0E 00 90 00 12 [17:03:57]RAPDU: 90 00 [17:03:57]wFMCommunicate OK [17:03:57]wFMCommunicate request_size=7 [17:03:57]MH_SAM_APDU [17:03:57]CAPDU: 80 0D 02 02 02 8E 62 [17:03:57]Write to MH i2c: E2 0A 00 91 0E 80 0D 02 02 02 00 8E 62 00 00 0D [17:03:57]Write i2c OK [17:03:57]MH_I2C_Read... [17:03:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:57]Read from MH i2c: E2 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 03 00 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 03 00 91 0E 00 90 00 13 [17:03:57]RAPDU: 90 00 [17:03:57]wFMCommunicate OK [17:03:57]wFMCommunicate request_size=4 [17:03:57]MH_SAM_APDU [17:03:57]CAPDU: 80 0D 03 02 [17:03:57]Write to MH i2c: E2 08 00 92 0E 80 0D 03 02 00 00 00 00 1B [17:03:57]Write i2c OK [17:03:57]MH_I2C_Read... [17:03:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:57]Read from MH i2c: E2 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 0B 00 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 0B 00 92 0E 00 7A 97 B5 A1 39 26 5D 52 90 00 91 [17:03:57]RAPDU: 7A 97 B5 A1 39 26 5D 52 90 00 [17:03:57]wFMCommunicate OK [17:03:57]SAM_PROTO_SignData done [17:03:57]FM_MakeSignedData done [17:03:57]CreateOFDProtocolMessage [17:03:57]wFMCommunicate request_size=4 [17:03:57]MH_SAM_APDU [17:03:57]CAPDU: 80 11 00 00 [17:03:57]Write to MH i2c: E2 08 00 93 0E 80 11 00 00 00 00 00 00 1B [17:03:57]Write i2c OK [17:03:57]MH_I2C_Read... [17:03:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:57]Read from MH i2c: E2 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 17 00 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 17 00 93 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 76 [17:03:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:03:57]wFMCommunicate OK [17:03:57]CreateOFDProtocolMessage done [17:03:57]OFDSenderStorePacket 118237 [17:03:57]StoreOFDPacket docnum=118237 [17:03:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 53 83 04 01 53 0D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 7C 28 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DD CD 01 00 35 04 06 00 AD E4 28 20 8E 62 7A 97 B5 A1 39 26 5D 52 [17:03:57]CheckFolder [17:03:57]dirname=/storage/ofd_packets [17:03:57]CheckFolder done [17:03:57]ProducePacketName [17:03:57]name=ofd_packets/00118237 [17:03:57]NVStorageSaveData ofd_packets/00118237 [17:03:57]File name is /storage/ofd_packets/00118237 [17:03:57]Write 298 bytes [17:03:57]NVStorageSaveData done [17:03:57]OFDSenderStorePacket done [17:03:57]KKMCreateOFDPacket done [17:03:57]NVStorageSaveData kkm_last_timestamp [17:03:57]File name is /storage/kkm_last_timestamp [17:03:57]Write 4 bytes [17:03:57]NVStorageSaveData done [17:03:57]ExternCall_PrintAddStr [17:03:57]wPrintStart [17:03:57]Write to MH i2c: 01 00 00 94 0E A2 [17:03:57]Write i2c OK [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: 01 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: 01 07 00 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: 01 07 00 94 0E 00 00 00 00 00 FF 0F B7 [17:03:57]RasterBufferAndPrint [17:03:57]line Счет N : (1)949107 [17:03:57]line ИНН: 02508201610067 [17:03:57]line Контрольно-Кассовый Чек [17:03:57]line ПРОДАЖА [17:03:57]line ТРК (МРК, ГНК) : 64 [17:03:57]line Товар: 2710194800 [17:03:57]line ДТ-К-5 [17:03:57]line 13.130 * 76.20 [17:03:57]line = 1000.51 [17:03:57]line НДС 12% НСП 1% [17:03:57]line > о реализуемом товаре [17:03:57]line ОКРУГЛЕНИЕ: -0.51 [17:03:57]line ИТОГО: 1000.00 [17:03:57]line Внесено: 1000.00 [17:03:57]line СДАЧА: 0.00 [17:03:57]line НСП 1% : 8.85 [17:03:57]line НДС 12% : 106.25 [17:03:57]line Наличными: 1000.00 [17:03:57]line Безнал.: 0.00 [17:03:57]line Место: АЗС № 134 "Партнер Нефть" [17:03:57]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:03:57]line СНО: Общий режим [17:03:57]line Чек 180 27.07.2024 17:03 [17:03:57]line Смена: 432 ФФД: 1.0 [17:03:57]line ЗНМ: 0300000044 [17:03:57]line РНМ: 0000000000092660 [17:03:57]line Версия ККМ: 001 [17:03:57]line ФМ: 0000000000874939 [17:03:57]line ФД: 118237 [17:03:57]line ФПД: 191195437370978 [17:03:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T170356&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118237&fm=191195437370978&tin=02508201610067®Number=0000000000092660&sum=100000 [17:03:57]written 0, free lines is 4095 [17:03:57]OFD Sender: Processing packet 118237 [packets to send 86, broken 85] [17:03:57]ProducePacketName [17:03:57]name=ofd_packets/00118237 [17:03:57]OFD Sender: To server: pG, [17:03:57]CommunicateWithHost lk.salyk.kg:30040 [17:03:57]ConnectInit lk.salyk.kg [17:03:57]Connected sock=10 [17:03:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 53 83 04 01 53 0D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 7C 28 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DD CD 01 00 35 04 06 00 AD E4 28 20 8E 62 7A 97 B5 A1 39 26 5D 52 [17:03:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 3B 82 47 00 F6 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DD CD 01 00 F4 03 04 00 0E D6 A4 66 B6 04 01 00 00 2A FB 61 EA 82 54 66 81 [17:03:57]CommunicateWithHost err = 0 [17:03:57]CheckOFDResponse [17:03:57]1017 (14) - 77093643461234 [17:03:57]1041 (16) - 0000000000874939 [17:03:57]1040 (4) - 118237 [17:03:57]1012 (4) - 27.07.2024 11:12 [17:03:57]1206 (1) - 0 [17:03:57]OFD Sender: Remove packet 118237 [17:03:57]ProducePacketName [17:03:57]name=ofd_packets/00118237 [17:03:57]NVStorageDeleteData [17:03:57]Write to MH i2c: 01 00 00 BE 0E CC [17:03:57]Write i2c OK [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: 01 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: 01 07 00 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: 01 07 00 BE 0E 00 00 00 00 00 DE 0C BD [17:03:57]RasterBufferAndPrint [17:03:57]line [17:03:57]line [17:03:57]line [17:03:57]line [17:03:57]line [17:03:57]written 0, free lines is 3308 [17:03:57]MH_Cut [17:03:57]Write to MH i2c: D1 01 00 C5 0E 01 A5 [17:03:57]Write i2c OK [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: D1 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: D1 01 00 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: D1 01 00 C5 0E 00 A4 [17:03:57]Write to MH i2c: 01 00 00 C6 0E D4 [17:03:57]Write i2c OK [17:03:57]MH_I2C_Read... [17:03:58]OFD Sender: No OFD packet to send [17:03:58]*** Cut start [17:03:58]*** Partial cut [17:03:58]*** CUTSNS_PIN = 1 [17:03:58]*** CUTSNS_PIN = 0 [17:03:58]*** Brake cut motor [17:03:59]Read from MH i2c: 01 [17:03:59]MH_I2C_Read... [17:03:59]*** Stop cut motor [17:03:59]*** Cut end [17:03:59]Read from MH i2c: 01 07 00 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: 01 07 00 C6 0E 00 00 00 00 00 FF 0F E9 [17:03:59]process_action close_receipt done [17:03:59]requested_data is exist [17:03:59]produce_requested_data [17:03:59]requested_item fm.sn is exist - process it [17:03:59]wFMCommunicate request_size=4 [17:03:59]MH_SAM_APDU [17:03:59]CAPDU: 80 11 00 00 [17:03:59]Write to MH i2c: E2 08 00 C7 0E 80 11 00 00 00 00 00 00 4F [17:03:59]Write i2c OK [17:03:59]MH_I2C_Read... [17:03:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:59]Read from MH i2c: E2 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: E2 17 00 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: E2 17 00 C7 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AA [17:03:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:03:59]wFMCommunicate OK [17:03:59]requested_item fd.num is exist - process it [17:03:59]SAM_PROTO_GetFieldsCounters [17:03:59]wFMCommunicate request_size=4 [17:03:59]MH_SAM_APDU [17:03:59]CAPDU: 80 13 00 00 [17:03:59]Write to MH i2c: E2 08 00 C8 0E 80 13 00 00 00 00 00 00 52 [17:03:59]Write i2c OK [17:03:59]MH_I2C_Read... [17:03:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:59]Read from MH i2c: E2 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: E2 62 00 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: E2 62 00 C8 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DD CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [17:03:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DD CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:03:59]wFMCommunicate OK [17:03:59]SAM_PROTO_GetFieldsCounters done [17:03:59]requested_item shift.num is exist - process it [17:03:59]requested_item shift.opened is exist - process it [17:03:59]req_shift_opened [17:03:59]FM_GetShiftState [17:03:59]SAM_PROTO_GetShiftState [17:03:59]wFMCommunicate request_size=4 [17:03:59]MH_SAM_APDU [17:03:59]CAPDU: 80 13 01 00 [17:03:59]Write to MH i2c: E2 08 00 C9 0E 80 13 01 00 00 00 00 00 54 [17:03:59]Write i2c OK [17:03:59]MH_I2C_Read... [17:03:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:59]Read from MH i2c: E2 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: E2 0E 00 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: E2 0E 00 C9 0E 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 E1 [17:03:59]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [17:03:59]wFMCommunicate OK [17:03:59]SAM_PROTO_GetShiftState done [17:03:59]FM_GetShiftState done [17:03:59]req_shift_opened done [17:03:59]requested_item shift.open_date is exist - process it [17:03:59]req_shift_open_date [17:03:59]req_shift_open_date done [17:03:59]produce_requested_data done [17:03:59]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118237,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [17:03:59]process_action_free close_receipt [17:03:59]json_value_free [17:03:59]json_value_free done [17:03:59]process_json_proto returns [17:03:59]Send response to host [17:03:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118237,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [17:03:59]free response buf [17:03:59]execute_script done [17:03:59]execute_script returns [17:03:59]free content buf [17:03:59]Sock 9.Close socket [17:03:59]Sock 9.Thread stoped [17:04:03]OFD Sender: No OFD packet to send [17:04:08]OFD Sender: No OFD packet to send [17:04:13]OFD Sender: No OFD packet to send [17:04:18]OFD Sender: No OFD packet to send [17:04:23]OFD Sender: No OFD packet to send [17:04:28]OFD Sender: No OFD packet to send [17:04:33]OFD Sender: No OFD packet to send [17:04:38]OFD Sender: No OFD packet to send [17:04:43]OFD Sender: No OFD packet to send [17:04:48]OFD Sender: No OFD packet to send [17:04:53]OFD Sender: No OFD packet to send [17:04:58]OFD Sender: No OFD packet to send [17:05:03]OFD Sender: No OFD packet to send [17:05:08]OFD Sender: No OFD packet to send [17:05:13]OFD Sender: No OFD packet to send [17:05:18]OFD Sender: No OFD packet to send [17:05:23]OFD Sender: No OFD packet to send [17:05:28]OFD Sender: No OFD packet to send [17:05:33]OFD Sender: No OFD packet to send [17:05:38]OFD Sender: No OFD packet to send [17:05:39]accept exits with 7 [17:05:39]New connection [17:05:39]New thread 3066953060 created [17:05:39]Thread 3067096420 joined [17:05:39]Waiting for new connection... [17:05:39] Sock 7.Parse request [17:05:39]Sock 7.Check first char [17:05:39]Sock 7.First char is OK [17:05:39]request: POST /json_proto HTTP/1.0 [17:05:39]Method: POST [17:05:39]URL: /json_proto [17:05:39]Method is POST - this is cgi request [17:05:39]url: /json_proto [17:05:39]query_string will be loaded in cgi processing [17:05:39]execute_cgi json_proto POST (null) [17:05:39]execute_cgi path=json_proto method=POST [17:05:39]POST find Content-Length [17:05:39]Host: 172.17.45.7:8080 [17:05:39]Content-Length: 682 [17:05:39]Content-Type: application/json [17:05:39] [17:05:39]POST finish read [17:05:39]Found Content-Length = 682 [17:05:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:05:39]execute_script... [17:05: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)949108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:05:39]POST & json_proto [17:05:39]process_json_proto [17:05:39]json parsed OK: [17:05:39]protocol is kg_v1.0 [17:05:39]action value=close_receipt [17:05:39]process_action close_receipt [17:05:39]cmd_close_receipt [17:05:39]MH_GetDate [17:05:39]Write to MH i2c: F0 00 00 CA 0E C7 [17:05:39]Write i2c OK [17:05:39]MH_I2C_Read... [17:05:39]Read from MH i2c: F0 [17:05:39]MH_I2C_Read... [17:05:39]Read from MH i2c: F0 09 00 [17:05:39]MH_I2C_Read... [17:05:39]Read from MH i2c: F0 09 00 CA 0E 00 E4 28 A5 66 90 0F 3E 66 2A [17:05:39]GetLastDocTimeStamp 1722099836 [17:05:39]current date 1722099940 [17:05:39]FM_GetShiftState [17:05:39]SAM_PROTO_GetShiftState [17:05:39]wFMCommunicate request_size=4 [17:05:39]MH_SAM_APDU [17:05:39]CAPDU: 80 13 01 00 [17:05:39]Write to MH i2c: E2 08 00 CB 0E 80 13 01 00 00 00 00 00 56 [17:05:39]Write i2c OK [17:05:39]MH_I2C_Read... [17:05:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:39]Read from MH i2c: E2 [17:05:39]MH_I2C_Read... [17:05:39]Read from MH i2c: E2 0E 00 [17:05:39]MH_I2C_Read... [17:05:39]Read from MH i2c: E2 0E 00 CB 0E 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 E3 [17:05:39]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [17:05:39]wFMCommunicate OK [17:05:39]SAM_PROTO_GetShiftState done [17:05:39]FM_GetShiftState done [17:05:39]opened in 1722038845 [17:05:39]opened+sec_in_day 1722125245 [17:05:39]quantity*price = 100005 [17:05:39]sum+1 = 100006 [17:05:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 181 27.07.2024 17:05 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118238 ФПД: 44017177126090 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T170540&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118238&fm=44017177126090&tin=02508201610067®Number=0000000000092660&sum=100000 [17:05:40]StoreToDocumentArchive [17:05:40]shift 432 fd 118238 [17:05:40]save to /storage/0432/doc_00118238 [17:05:40]save last doc name /storage/0432/doc_00118238 to /storage/kkm_last_doc_name [17:05:40]save OK [17:05:40]Clear old archive folders... [17:05:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:05:40]tlvbuf is 01DCDD30 [17:05:40]SAM_PROTO_ClearQueue [17:05:40]wFMCommunicate request_size=4 [17:05:40]MH_SAM_APDU [17:05:40]CAPDU: 80 09 00 00 [17:05:40]Write to MH i2c: E2 08 00 D8 0E 80 09 00 00 00 00 00 00 58 [17:05:40]Write i2c OK [17:05:40]MH_I2C_Read... [17:05:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:05:40]Read from MH i2c: E2 [17:05:40]MH_I2C_Read... [17:05:40]Read from MH i2c: E2 03 00 [17:05:40]MH_I2C_Read... [17:05:40]Read from MH i2c: E2 03 00 D8 0E 00 90 00 5A [17:05:40]RAPDU: 90 00 [17:05:40]wFMCommunicate OK [17:05:40]SAM_PROTO_ClearQueue done [17:05:40]KKMCreateOFDPacket [17:05:40]OFDProtocolAddRootSTLVToBuf [17:05:40]FM_MakeSignedData [17:05:40]FM_MakeSignedData [17:05:40]SAM_PROTO_SignData [17:05:40]wFMCommunicate request_size=4 [17:05:40]MH_SAM_APDU [17:05:40]CAPDU: 80 0D 01 02 [17:05:40]Write to MH i2c: E2 08 00 D9 0E 80 0D 01 02 00 00 00 00 60 [17:05:40]Write i2c OK [17:05:40]MH_I2C_Read... [17:05:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:05:41]Read from MH i2c: E2 [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: E2 03 00 [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: E2 03 00 D9 0E 00 90 00 5B [17:05:41]RAPDU: 90 00 [17:05:41]wFMCommunicate OK [17:05:41]wFMCommunicate request_size=255 [17:05:41]MH_SAM_APDU [17:05:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 E4 28 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DE CD 01 00 35 04 06 00 28 [17:05:41]Write to MH i2c: E2 02 01 DA 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 E4 28 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DE CD 01 00 35 04 06 00 28 00 00 C4 [17:05:41]Write i2c OK [17:05:41]MH_I2C_Read... [17:05:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:41]Read from MH i2c: E2 [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: E2 03 00 [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: E2 03 00 DA 0E 00 90 00 5C [17:05:41]RAPDU: 90 00 [17:05:41]wFMCommunicate OK [17:05:41]wFMCommunicate request_size=10 [17:05:41]MH_SAM_APDU [17:05:41]CAPDU: 80 0D 02 02 05 08 8C 34 E4 CA [17:05:41]Write to MH i2c: E2 0D 00 DB 0E 80 0D 02 02 05 00 08 8C 34 E4 CA 00 00 E3 [17:05:41]Write i2c OK [17:05:41]MH_I2C_Read... [17:05:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:41]Read from MH i2c: E2 [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: E2 03 00 [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: E2 03 00 DB 0E 00 90 00 5D [17:05:41]RAPDU: 90 00 [17:05:41]wFMCommunicate OK [17:05:41]wFMCommunicate request_size=4 [17:05:41]MH_SAM_APDU [17:05:41]CAPDU: 80 0D 03 02 [17:05:41]Write to MH i2c: E2 08 00 DC 0E 80 0D 03 02 00 00 00 00 65 [17:05:41]Write i2c OK [17:05:41]MH_I2C_Read... [17:05:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:05:41]Read from MH i2c: E2 [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: E2 0B 00 [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: E2 0B 00 DC 0E 00 26 60 87 13 E5 58 DF 4D 90 00 EF [17:05:41]RAPDU: 26 60 87 13 E5 58 DF 4D 90 00 [17:05:41]wFMCommunicate OK [17:05:41]SAM_PROTO_SignData done [17:05:41]FM_MakeSignedData done [17:05:41]CreateOFDProtocolMessage [17:05:41]wFMCommunicate request_size=4 [17:05:41]MH_SAM_APDU [17:05:41]CAPDU: 80 11 00 00 [17:05:41]Write to MH i2c: E2 08 00 DD 0E 80 11 00 00 00 00 00 00 65 [17:05:41]Write i2c OK [17:05:41]MH_I2C_Read... [17:05:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:41]Read from MH i2c: E2 [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: E2 17 00 [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: E2 17 00 DD 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C0 [17:05:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:05:41]wFMCommunicate OK [17:05:41]CreateOFDProtocolMessage done [17:05:41]OFDSenderStorePacket 118238 [17:05:41]StoreOFDPacket docnum=118238 [17:05:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 81 37 07 01 4F F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 E4 28 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DE CD 01 00 35 04 06 00 28 08 8C 34 E4 CA 26 60 87 13 E5 58 DF 4D [17:05:41]CheckFolder [17:05:41]dirname=/storage/ofd_packets [17:05:41]CheckFolder done [17:05:41]ProducePacketName [17:05:41]name=ofd_packets/00118238 [17:05:41]NVStorageSaveData ofd_packets/00118238 [17:05:41]File name is /storage/ofd_packets/00118238 [17:05:41]Write 301 bytes [17:05:41]NVStorageSaveData done [17:05:41]OFDSenderStorePacket done [17:05:41]KKMCreateOFDPacket done [17:05:41]NVStorageSaveData kkm_last_timestamp [17:05:41]File name is /storage/kkm_last_timestamp [17:05:41]Write 4 bytes [17:05:41]NVStorageSaveData done [17:05:41]ExternCall_PrintAddStr [17:05:41]wPrintStart [17:05:41]Write to MH i2c: 01 00 00 DE 0E EC [17:05:41]Write i2c OK [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: 01 [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: 01 07 00 [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: 01 07 00 DE 0E 00 00 00 00 00 FF 0F 01 [17:05:41]RasterBufferAndPrint [17:05:41]line Счет N : (1)949108 [17:05:41]line ИНН: 02508201610067 [17:05:41]line Контрольно-Кассовый Чек [17:05:41]line ПРОДАЖА [17:05:41]line ТРК (МРК, ГНК) : 41 [17:05:41]line Товар: 2710124130 [17:05:41]line Аи-92-К-4 [17:05:41]line 14.750 * 67.80 [17:05:41]line = 1000.05 [17:05:41]line НДС 12% НСП 1% [17:05:41]line > о реализуемом товаре [17:05:41]line ОКРУГЛЕНИЕ: -0.05 [17:05:41]line ИТОГО: 1000.00 [17:05:41]line Внесено: 1000.00 [17:05:41]line СДАЧА: 0.00 [17:05:41]line НСП 1% : 8.85 [17:05:41]line НДС 12% : 106.20 [17:05:41]line Наличными: 1000.00 [17:05:41]line Безнал.: 0.00 [17:05:41]line Место: АЗС № 134 "Партнер Нефть" [17:05:41]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:05:41]line СНО: Общий режим [17:05:41]line Чек 181 27.07.2024 17:05 [17:05:41]line Смена: 432 ФФД: 1.0 [17:05:41]line ЗНМ: 0300000044 [17:05:41]line РНМ: 0000000000092660 [17:05:41]line Версия ККМ: 001 [17:05:41]line ФМ: 0000000000874939 [17:05:41]line ФД: 118238 [17:05:41]line ФПД: 44017177126090 [17:05:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T170540&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118238&fm=44017177126090&tin=02508201610067®Number=0000000000092660&sum=100000 [17:05:41]OFD Sender: Processing packet 118238 [packets to send 86, broken 85] [17:05:41]ProducePacketName [17:05:41]name=ofd_packets/00118238 [17:05:41]OFD Sender: To server: pG, [17:05:41]CommunicateWithHost lk.salyk.kg:30040 [17:05:41]ConnectInit lk.salyk.kg [17:05:41]written 0, free lines is 4095 [17:05:41]Connected sock=10 [17:05:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 81 37 07 01 4F F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 E4 28 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DE CD 01 00 35 04 06 00 28 08 8C 34 E4 CA 26 60 87 13 E5 58 DF 4D [17:05:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B8 F4 47 00 0A 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DE CD 01 00 F4 03 04 00 76 D6 A4 66 B6 04 01 00 00 99 F8 AC B1 C5 E5 A4 8A [17:05:42]CommunicateWithHost err = 0 [17:05:42]CheckOFDResponse [17:05:42]1017 (14) - 77093643461234 [17:05:42]1041 (16) - 0000000000874939 [17:05:42]1040 (4) - 118238 [17:05:42]1012 (4) - 27.07.2024 11:13 [17:05:42]1206 (1) - 0 [17:05:42]OFD Sender: Remove packet 118238 [17:05:42]ProducePacketName [17:05:42]name=ofd_packets/00118238 [17:05:42]NVStorageDeleteData [17:05:42]Write to MH i2c: 01 00 00 08 0F 17 [17:05:42]Write i2c OK [17:05:42]MH_I2C_Read... [17:05:42]Read from MH i2c: 01 [17:05:42]MH_I2C_Read... [17:05:42]Read from MH i2c: 01 07 00 [17:05:42]MH_I2C_Read... [17:05:42]Read from MH i2c: 01 07 00 08 0F 00 00 00 00 00 D0 0C FA [17:05:42]RasterBufferAndPrint [17:05:42]line [17:05:42]line [17:05:42]line [17:05:42]line [17:05:42]line [17:05:42]written 0, free lines is 3287 [17:05:42]MH_Cut [17:05:42]Write to MH i2c: D1 01 00 0F 0F 01 F0 [17:05:42]Write i2c OK [17:05:42]MH_I2C_Read... [17:05:42]Read from MH i2c: D1 [17:05:42]MH_I2C_Read... [17:05:42]Read from MH i2c: D1 01 00 [17:05:42]MH_I2C_Read... [17:05:42]Read from MH i2c: D1 01 00 0F 0F 00 EF [17:05:42]Write to MH i2c: 01 00 00 10 0F 1F [17:05:42]Write i2c OK [17:05:42]MH_I2C_Read... [17:05:42]OFD Sender: No OFD packet to send [17:05:42]*** Cut start [17:05:42]*** Partial cut [17:05:42]*** CUTSNS_PIN = 1 [17:05:43]*** CUTSNS_PIN = 0 [17:05:43]*** Brake cut motor [17:05:43]Read from MH i2c: 01 [17:05:43]MH_I2C_Read... [17:05:43]*** Stop cut motor [17:05:43]*** Cut end [17:05:43]Read from MH i2c: 01 07 00 [17:05:43]MH_I2C_Read... [17:05:43]Read from MH i2c: 01 07 00 10 0F 00 00 00 00 00 FF 0F 34 [17:05:43]process_action close_receipt done [17:05:43]requested_data is exist [17:05:43]produce_requested_data [17:05:43]requested_item fm.sn is exist - process it [17:05:43]wFMCommunicate request_size=4 [17:05:43]MH_SAM_APDU [17:05:43]CAPDU: 80 11 00 00 [17:05:43]Write to MH i2c: E2 08 00 11 0F 80 11 00 00 00 00 00 00 9A [17:05:43]Write i2c OK [17:05:43]MH_I2C_Read... [17:05:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:43]Read from MH i2c: E2 [17:05:43]MH_I2C_Read... [17:05:43]Read from MH i2c: E2 17 00 [17:05:43]MH_I2C_Read... [17:05:43]Read from MH i2c: E2 17 00 11 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F5 [17:05:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:05:43]wFMCommunicate OK [17:05:43]requested_item fd.num is exist - process it [17:05:43]SAM_PROTO_GetFieldsCounters [17:05:43]wFMCommunicate request_size=4 [17:05:43]MH_SAM_APDU [17:05:43]CAPDU: 80 13 00 00 [17:05:43]Write to MH i2c: E2 08 00 12 0F 80 13 00 00 00 00 00 00 9D [17:05:43]Write i2c OK [17:05:43]MH_I2C_Read... [17:05:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:05:43]Read from MH i2c: E2 [17:05:43]MH_I2C_Read... [17:05:43]Read from MH i2c: E2 62 00 [17:05:43]MH_I2C_Read... [17:05:43]Read from MH i2c: E2 62 00 12 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DE CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [17:05:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DE CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:05:43]wFMCommunicate OK [17:05:43]SAM_PROTO_GetFieldsCounters done [17:05:43]requested_item shift.num is exist - process it [17:05:43]requested_item shift.opened is exist - process it [17:05:43]req_shift_opened [17:05:43]FM_GetShiftState [17:05:43]SAM_PROTO_GetShiftState [17:05:43]wFMCommunicate request_size=4 [17:05:43]MH_SAM_APDU [17:05:43]CAPDU: 80 13 01 00 [17:05:43]Write to MH i2c: E2 08 00 13 0F 80 13 01 00 00 00 00 00 9F [17:05:43]Write i2c OK [17:05:43]MH_I2C_Read... [17:05:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:43]Read from MH i2c: E2 [17:05:43]MH_I2C_Read... [17:05:43]Read from MH i2c: E2 0E 00 [17:05:43]MH_I2C_Read... [17:05:43]Read from MH i2c: E2 0E 00 13 0F 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 2C [17:05:43]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [17:05:43]wFMCommunicate OK [17:05:43]SAM_PROTO_GetShiftState done [17:05:43]FM_GetShiftState done [17:05:43]req_shift_opened done [17:05:43]requested_item shift.open_date is exist - process it [17:05:43]req_shift_open_date [17:05:43]req_shift_open_date done [17:05:43]produce_requested_data done [17:05:43]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118238,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [17:05:43]process_action_free close_receipt [17:05:43]json_value_free [17:05:43]json_value_free done [17:05:43]process_json_proto returns [17:05:43]Send response to host [17:05:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118238,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [17:05:43]free response buf [17:05:43]execute_script done [17:05:43]execute_script returns [17:05:43]free content buf [17:05:43]Sock 7.Close socket [17:05:43]Sock 7.Thread stoped [17:05:47]OFD Sender: No OFD packet to send [17:05:52]OFD Sender: No OFD packet to send [17:05:57]OFD Sender: No OFD packet to send [17:06:02]OFD Sender: No OFD packet to send [17:06:07]OFD Sender: No OFD packet to send [17:06:12]OFD Sender: No OFD packet to send [17:06:17]OFD Sender: No OFD packet to send [17:06:22]OFD Sender: No OFD packet to send [17:06:27]OFD Sender: No OFD packet to send [17:06:32]OFD Sender: No OFD packet to send [17:06:37]OFD Sender: No OFD packet to send [17:06:42]OFD Sender: No OFD packet to send [17:06:47]OFD Sender: No OFD packet to send [17:06:52]OFD Sender: No OFD packet to send [17:06:57]OFD Sender: No OFD packet to send [17:07:02]OFD Sender: No OFD packet to send [17:07:07]OFD Sender: No OFD packet to send [17:07:12]OFD Sender: No OFD packet to send [17:07:17]OFD Sender: No OFD packet to send [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:22]OFD Sender: No OFD packet to send [17:08:27]OFD Sender: No OFD packet to send [17:08:32]OFD Sender: No OFD packet to send [17:08:37]OFD Sender: No OFD packet to send [17:08:42]OFD Sender: No OFD packet to send [17:08:47]OFD Sender: No OFD packet to send [17:08:52]OFD Sender: No OFD packet to send [17:08:57]OFD Sender: No OFD packet to send [17:09:02]OFD Sender: No OFD packet to send [17:09:07]OFD Sender: No OFD packet to send [17:09:12]OFD Sender: No OFD packet to send [17:09:17]OFD Sender: No OFD packet to send [17:09:22]OFD Sender: No OFD packet to send [17:09:27]OFD Sender: No OFD packet to send [17:09:32]OFD Sender: No OFD packet to send [17:09:37]OFD Sender: No OFD packet to send [17:09:42]OFD Sender: No OFD packet to send [17:09:47]OFD Sender: No OFD packet to send [17:09:52]OFD Sender: No OFD packet to send [17:09:57]OFD Sender: No OFD packet to send [17:10:02]OFD Sender: No OFD packet to send [17:10:07]OFD Sender: No OFD packet to send [17:10:12]OFD Sender: No OFD packet to send [17:10:17]OFD Sender: No OFD packet to send [17:10:22]OFD Sender: No OFD packet to send [17:10:27]OFD Sender: No OFD packet to send [17:10:32]OFD Sender: No OFD packet to send [17:10:37]OFD Sender: No OFD packet to send [17:10:42]OFD Sender: No OFD packet to send [17:10:47]OFD Sender: No OFD packet to send [17:10:52]OFD Sender: No OFD packet to send [17:10:57]OFD Sender: No OFD packet to send [17:11:02]OFD Sender: No OFD packet to send [17:11:07]OFD Sender: No OFD packet to send [17:11:12]OFD Sender: No OFD packet to send [17:11:17]OFD Sender: No OFD packet to send [17:11:22]OFD Sender: No OFD packet to send [17:11:27]OFD Sender: No OFD packet to send [17:11:32]OFD Sender: No OFD packet to send [17:11:37]OFD Sender: No OFD packet to send [17:11:42]OFD Sender: No OFD packet to send [17:11:47]OFD Sender: No OFD packet to send [17:11:53]OFD Sender: No OFD packet to send [17:11:58]OFD Sender: No OFD packet to send [17:12:03]OFD Sender: No OFD packet to send [17:12:08]OFD Sender: No OFD packet to send [17:12:13]OFD Sender: No OFD packet to send [17:12:18]OFD Sender: No OFD packet to send [17:12:23]OFD Sender: No OFD packet to send [17:12:28]OFD Sender: No OFD packet to send [17:12:33]OFD Sender: No OFD packet to send [17:12:38]OFD Sender: No OFD packet to send [17:12:43]OFD Sender: No OFD packet to send [17:12:48]OFD Sender: No OFD packet to send [17:12:53]OFD Sender: No OFD packet to send [17:12:58]OFD Sender: No OFD packet to send [17:13:03]OFD Sender: No OFD packet to send [17:13:08]OFD Sender: No OFD packet to send [17:13:13]OFD Sender: No OFD packet to send [17:13:18]OFD Sender: No OFD packet to send [17:13:23]OFD Sender: No OFD packet to send [17:13:28]OFD Sender: No OFD packet to send [17:13:33]OFD Sender: No OFD packet to send [17:13:38]OFD Sender: No OFD packet to send [17:13:43]OFD Sender: No OFD packet to send [17:13:48]OFD Sender: No OFD packet to send [17:13:53]OFD Sender: No OFD packet to send [17:13:58]OFD Sender: No OFD packet to send [17:14:03]OFD Sender: No OFD packet to send [17:14:08]OFD Sender: No OFD packet to send [17:14:13]OFD Sender: No OFD packet to send [17:14:18]OFD Sender: No OFD packet to send [17:14:19]accept exits with 9 [17:14:19]New connection [17:14:19]New thread 3067096420 created [17:14:19]Thread 3066953060 joined [17:14:19]Waiting for new connection... [17:14:19] Sock 9.Parse request [17:14:19]Sock 9.Check first char [17:14:19]Sock 9.First char is OK [17:14:19]request: POST /json_proto HTTP/1.0 [17:14:19]Method: POST [17:14:19]URL: /json_proto [17:14:19]Method is POST - this is cgi request [17:14:19]url: /json_proto [17:14:19]query_string will be loaded in cgi processing [17:14:19]execute_cgi json_proto POST (null) [17:14:19]execute_cgi path=json_proto method=POST [17:14:19]POST find Content-Length [17:14:19]Host: 172.17.45.7:8080 [17:14:19]Content-Length: 677 [17:14:19]Content-Type: application/json [17:14:19] [17:14:19]POST finish read [17:14:19]Found Content-Length = 677 [17:14:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:19]execute_script... [17:14: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)949109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:19]POST & json_proto [17:14:19]process_json_proto [17:14:19]json parsed OK: [17:14:19]protocol is kg_v1.0 [17:14:19]action value=close_receipt [17:14:19]process_action close_receipt [17:14:19]cmd_close_receipt [17:14:19]MH_GetDate [17:14:19]Write to MH i2c: F0 00 00 14 0F 12 [17:14:19]Write i2c OK [17:14:19]MH_I2C_Read... [17:14:19]Read from MH i2c: F0 [17:14:19]MH_I2C_Read... [17:14:19]Read from MH i2c: F0 09 00 [17:14:19]MH_I2C_Read... [17:14:19]Read from MH i2c: F0 09 00 14 0F 00 EB 2A A5 66 90 0F 3E 66 7E [17:14:19]GetLastDocTimeStamp 1722099940 [17:14:19]current date 1722100459 [17:14:19]FM_GetShiftState [17:14:19]SAM_PROTO_GetShiftState [17:14:19]wFMCommunicate request_size=4 [17:14:19]MH_SAM_APDU [17:14:19]CAPDU: 80 13 01 00 [17:14:19]Write to MH i2c: E2 08 00 15 0F 80 13 01 00 00 00 00 00 A1 [17:14:19]Write i2c OK [17:14:19]MH_I2C_Read... [17:14:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:19]Read from MH i2c: E2 [17:14:19]MH_I2C_Read... [17:14:19]Read from MH i2c: E2 0E 00 [17:14:19]MH_I2C_Read... [17:14:19]Read from MH i2c: E2 0E 00 15 0F 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 2E [17:14:19]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [17:14:19]wFMCommunicate OK [17:14:19]SAM_PROTO_GetShiftState done [17:14:19]FM_GetShiftState done [17:14:19]opened in 1722038845 [17:14:19]opened+sec_in_day 1722125245 [17:14:19]quantity*price = 50036 [17:14:19]sum+1 = 50037 [17:14:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 182 27.07.2024 17:14 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118239 ФПД: 252942332896421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T171419&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118239&fm=252942332896421&tin=02508201610067®Number=0000000000092660&sum=50000 [17:14:20]StoreToDocumentArchive [17:14:20]shift 432 fd 118239 [17:14:20]save to /storage/0432/doc_00118239 [17:14:20]save last doc name /storage/0432/doc_00118239 to /storage/kkm_last_doc_name [17:14:20]save OK [17:14:20]Clear old archive folders... [17:14:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:14:20]tlvbuf is 01E40300 [17:14:20]SAM_PROTO_ClearQueue [17:14:20]wFMCommunicate request_size=4 [17:14:20]MH_SAM_APDU [17:14:20]CAPDU: 80 09 00 00 [17:14:20]Write to MH i2c: E2 08 00 22 0F 80 09 00 00 00 00 00 00 A3 [17:14:20]Write i2c OK [17:14:20]MH_I2C_Read... [17:14:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:20]Read from MH i2c: E2 [17:14:20]MH_I2C_Read... [17:14:20]Read from MH i2c: E2 03 00 [17:14:20]MH_I2C_Read... [17:14:20]Read from MH i2c: E2 03 00 22 0F 00 90 00 A5 [17:14:20]RAPDU: 90 00 [17:14:20]wFMCommunicate OK [17:14:20]SAM_PROTO_ClearQueue done [17:14:20]KKMCreateOFDPacket [17:14:20]OFDProtocolAddRootSTLVToBuf [17:14:20]FM_MakeSignedData [17:14:20]FM_MakeSignedData [17:14:20]SAM_PROTO_SignData [17:14:20]wFMCommunicate request_size=4 [17:14:20]MH_SAM_APDU [17:14:20]CAPDU: 80 0D 01 02 [17:14:20]Write to MH i2c: E2 08 00 23 0F 80 0D 01 02 00 00 00 00 AB [17:14:20]Write i2c OK [17:14:20]MH_I2C_Read... [17:14:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:20]Read from MH i2c: E2 [17:14:20]MH_I2C_Read... [17:14:20]Read from MH i2c: E2 03 00 [17:14:20]MH_I2C_Read... [17:14:20]Read from MH i2c: E2 03 00 23 0F 00 90 00 A6 [17:14:20]RAPDU: 90 00 [17:14:20]wFMCommunicate OK [17:14:20]wFMCommunicate request_size=255 [17:14:20]MH_SAM_APDU [17:14:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B6 00 00 00 F4 03 04 00 EB 2A A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DF CD 01 00 35 04 06 00 E6 [17:14:20]Write to MH i2c: E2 02 01 24 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B6 00 00 00 F4 03 04 00 EB 2A A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DF CD 01 00 35 04 06 00 E6 00 00 49 [17:14:20]Write i2c OK [17:14:20]MH_I2C_Read... [17:14:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:20]Read from MH i2c: E2 [17:14:20]MH_I2C_Read... [17:14:20]Read from MH i2c: E2 03 00 [17:14:20]MH_I2C_Read... [17:14:20]Read from MH i2c: E2 03 00 24 0F 00 90 00 A7 [17:14:20]RAPDU: 90 00 [17:14:20]wFMCommunicate OK [17:14:20]wFMCommunicate request_size=10 [17:14:20]MH_SAM_APDU [17:14:20]CAPDU: 80 0D 02 02 05 0C B9 E6 A4 A5 [17:14:20]Write to MH i2c: E2 0D 00 25 0F 80 0D 02 02 05 00 0C B9 E6 A4 A5 00 00 AC [17:14:20]Write i2c OK [17:14:20]MH_I2C_Read... [17:14:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:20]Read from MH i2c: E2 [17:14:20]MH_I2C_Read... [17:14:20]Read from MH i2c: E2 03 00 [17:14:20]MH_I2C_Read... [17:14:20]Read from MH i2c: E2 03 00 25 0F 00 90 00 A8 [17:14:20]RAPDU: 90 00 [17:14:20]wFMCommunicate OK [17:14:20]wFMCommunicate request_size=4 [17:14:20]MH_SAM_APDU [17:14:20]CAPDU: 80 0D 03 02 [17:14:20]Write to MH i2c: E2 08 00 26 0F 80 0D 03 02 00 00 00 00 B0 [17:14:20]Write i2c OK [17:14:20]MH_I2C_Read... [17:14:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:20]Read from MH i2c: E2 [17:14:20]MH_I2C_Read... [17:14:20]Read from MH i2c: E2 0B 00 [17:14:20]MH_I2C_Read... [17:14:20]Read from MH i2c: E2 0B 00 26 0F 00 FC 5A 25 F3 02 7E 28 50 90 00 17 [17:14:20]RAPDU: FC 5A 25 F3 02 7E 28 50 90 00 [17:14:20]wFMCommunicate OK [17:14:20]SAM_PROTO_SignData done [17:14:20]FM_MakeSignedData done [17:14:20]CreateOFDProtocolMessage [17:14:20]wFMCommunicate request_size=4 [17:14:20]MH_SAM_APDU [17:14:20]CAPDU: 80 11 00 00 [17:14:20]Write to MH i2c: E2 08 00 27 0F 80 11 00 00 00 00 00 00 B0 [17:14:20]Write i2c OK [17:14:20]MH_I2C_Read... [17:14:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:20]Read from MH i2c: E2 [17:14:20]MH_I2C_Read... [17:14:20]Read from MH i2c: E2 17 00 [17:14:20]MH_I2C_Read... [17:14:20]Read from MH i2c: E2 17 00 27 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0B [17:14:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:14:20]wFMCommunicate OK [17:14:20]CreateOFDProtocolMessage done [17:14:20]OFDSenderStorePacket 118239 [17:14:20]StoreOFDPacket docnum=118239 [17:14:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 92 B1 07 01 EC 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B6 00 00 00 F4 03 04 00 EB 2A A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DF CD 01 00 35 04 06 00 E6 0C B9 E6 A4 A5 FC 5A 25 F3 02 7E 28 50 [17:14:20]CheckFolder [17:14:20]dirname=/storage/ofd_packets [17:14:20]CheckFolder done [17:14:20]ProducePacketName [17:14:20]name=ofd_packets/00118239 [17:14:20]NVStorageSaveData ofd_packets/00118239 [17:14:20]File name is /storage/ofd_packets/00118239 [17:14:20]Write 301 bytes [17:14:20]NVStorageSaveData done [17:14:20]OFDSenderStorePacket done [17:14:20]KKMCreateOFDPacket done [17:14:20]NVStorageSaveData kkm_last_timestamp [17:14:20]File name is /storage/kkm_last_timestamp [17:14:20]Write 4 bytes [17:14:20]NVStorageSaveData done [17:14:20]ExternCall_PrintAddStr [17:14:20]wPrintStart [17:14:20]Write to MH i2c: 01 00 00 28 0F 37 [17:14:20]Write i2c OK [17:14:20]MH_I2C_Read... [17:14:20]Read from MH i2c: 01 [17:14:20]MH_I2C_Read... [17:14:20]Read from MH i2c: 01 07 00 [17:14:20]MH_I2C_Read... [17:14:20]Read from MH i2c: 01 07 00 28 0F 00 00 00 00 00 FF 0F 4C [17:14:20]RasterBufferAndPrint [17:14:20]line Счет N : (1)949109 [17:14:20]line ИНН: 02508201610067 [17:14:20]line Контрольно-Кассовый Чек [17:14:20]line ПРОДАЖА [17:14:20]line ТРК (МРК, ГНК) : 31 [17:14:20]line Товар: 2710124130 [17:14:20]line Аи-92-К-4 [17:14:20]line 7.380 * 67.80 [17:14:20]line = 500.36 [17:14:20]line НДС 12% НСП 1% [17:14:20]line > о реализуемом товаре [17:14:20]line ОКРУГЛЕНИЕ: -0.36 [17:14:20]line ИТОГО: 500.00 [17:14:20]line Внесено: 500.00 [17:14:20]line СДАЧА: 0.00 [17:14:20]line НСП 1% : 4.43 [17:14:20]line НДС 12% : 53.14 [17:14:20]line Наличными: 500.00 [17:14:20]line Безнал.: 0.00 [17:14:20]line Место: АЗС № 134 "Партнер Нефть" [17:14:20]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:14:20]line СНО: Общий режим [17:14:20]line Чек 182 27.07.2024 17:14 [17:14:20]line Смена: 432 ФФД: 1.0 [17:14:20]line ЗНМ: 0300000044 [17:14:20]line РНМ: 0000000000092660 [17:14:20]line Версия ККМ: 001 [17:14:20]line ФМ: 0000000000874939 [17:14:20]line ФД: 118239 [17:14:20]line ФПД: 252942332896421 [17:14:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T171419&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118239&fm=252942332896421&tin=02508201610067®Number=0000000000092660&sum=50000 [17:14:21]OFD Sender: Processing packet 118239 [packets to send 86, broken 85] [17:14:21]ProducePacketName [17:14:21]name=ofd_packets/00118239 [17:14:21]OFD Sender: To server: pG, [17:14:21]CommunicateWithHost lk.salyk.kg:30040 [17:14:21]ConnectInit lk.salyk.kg [17:14:21]written 0, free lines is 4095 [17:14:21]Connected sock=10 [17:14:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 92 B1 07 01 EC 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B6 00 00 00 F4 03 04 00 EB 2A A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DF CD 01 00 35 04 06 00 E6 0C B9 E6 A4 A5 FC 5A 25 F3 02 7E 28 50 [17:14:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 30 C8 47 00 4A 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DF CD 01 00 F4 03 04 00 7E D8 A4 66 B6 04 01 00 00 A9 B6 FA 76 A9 37 DA 92 [17:14:21]CommunicateWithHost err = 0 [17:14:21]CheckOFDResponse [17:14:21]1017 (14) - 77093643461234 [17:14:21]1041 (16) - 0000000000874939 [17:14:21]1040 (4) - 118239 [17:14:21]1012 (4) - 27.07.2024 11:22 [17:14:21]1206 (1) - 0 [17:14:21]OFD Sender: Remove packet 118239 [17:14:21]ProducePacketName [17:14:21]name=ofd_packets/00118239 [17:14:21]NVStorageDeleteData [17:14:21]Write to MH i2c: 01 00 00 52 0F 61 [17:14:21]Write i2c OK [17:14:21]MH_I2C_Read... [17:14:21]Read from MH i2c: 01 [17:14:21]MH_I2C_Read... [17:14:21]Read from MH i2c: 01 07 00 [17:14:21]MH_I2C_Read... [17:14:21]Read from MH i2c: 01 07 00 52 0F 00 00 00 00 00 D7 0C 4B [17:14:21]RasterBufferAndPrint [17:14:21]line [17:14:21]line [17:14:21]line [17:14:21]line [17:14:21]line [17:14:21]written 0, free lines is 3294 [17:14:21]MH_Cut [17:14:21]Write to MH i2c: D1 01 00 59 0F 01 3A [17:14:21]Write i2c OK [17:14:21]MH_I2C_Read... [17:14:21]Read from MH i2c: D1 [17:14:21]MH_I2C_Read... [17:14:21]Read from MH i2c: D1 01 00 [17:14:21]MH_I2C_Read... [17:14:21]Read from MH i2c: D1 01 00 59 0F 00 39 [17:14:21]Write to MH i2c: 01 00 00 5A 0F 69 [17:14:21]Write i2c OK [17:14:21]MH_I2C_Read... [17:14:22]OFD Sender: No OFD packet to send [17:14:22]*** Cut start [17:14:22]*** Partial cut [17:14:22]*** CUTSNS_PIN = 1 [17:14:22]*** CUTSNS_PIN = 0 [17:14:22]*** Brake cut motor [17:14:23]Read from MH i2c: 01 [17:14:23]MH_I2C_Read... [17:14:23]*** Stop cut motor [17:14:23]*** Cut end [17:14:23]Read from MH i2c: 01 07 00 [17:14:23]MH_I2C_Read... [17:14:23]Read from MH i2c: 01 07 00 5A 0F 00 00 00 00 00 FF 0F 7E [17:14:23]process_action close_receipt done [17:14:23]requested_data is exist [17:14:23]produce_requested_data [17:14:23]requested_item fm.sn is exist - process it [17:14:23]wFMCommunicate request_size=4 [17:14:23]MH_SAM_APDU [17:14:23]CAPDU: 80 11 00 00 [17:14:23]Write to MH i2c: E2 08 00 5B 0F 80 11 00 00 00 00 00 00 E4 [17:14:23]Write i2c OK [17:14:23]MH_I2C_Read... [17:14:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:23]Read from MH i2c: E2 [17:14:23]MH_I2C_Read... [17:14:23]Read from MH i2c: E2 17 00 [17:14:23]MH_I2C_Read... [17:14:23]Read from MH i2c: E2 17 00 5B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3F [17:14:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:14:23]wFMCommunicate OK [17:14:23]requested_item fd.num is exist - process it [17:14:23]SAM_PROTO_GetFieldsCounters [17:14:23]wFMCommunicate request_size=4 [17:14:23]MH_SAM_APDU [17:14:23]CAPDU: 80 13 00 00 [17:14:23]Write to MH i2c: E2 08 00 5C 0F 80 13 00 00 00 00 00 00 E7 [17:14:23]Write i2c OK [17:14:23]MH_I2C_Read... [17:14:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:23]Read from MH i2c: E2 [17:14:23]MH_I2C_Read... [17:14:23]Read from MH i2c: E2 62 00 [17:14:23]MH_I2C_Read... [17:14:23]Read from MH i2c: E2 62 00 5C 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DF CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [17:14:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DF CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:14:23]wFMCommunicate OK [17:14:23]SAM_PROTO_GetFieldsCounters done [17:14:23]requested_item shift.num is exist - process it [17:14:23]requested_item shift.opened is exist - process it [17:14:23]req_shift_opened [17:14:23]FM_GetShiftState [17:14:23]SAM_PROTO_GetShiftState [17:14:23]wFMCommunicate request_size=4 [17:14:23]MH_SAM_APDU [17:14:23]CAPDU: 80 13 01 00 [17:14:23]Write to MH i2c: E2 08 00 5D 0F 80 13 01 00 00 00 00 00 E9 [17:14:23]Write i2c OK [17:14:23]MH_I2C_Read... [17:14:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:23]Read from MH i2c: E2 [17:14:23]MH_I2C_Read... [17:14:23]Read from MH i2c: E2 0E 00 [17:14:23]MH_I2C_Read... [17:14:23]Read from MH i2c: E2 0E 00 5D 0F 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 76 [17:14:23]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [17:14:23]wFMCommunicate OK [17:14:23]SAM_PROTO_GetShiftState done [17:14:23]FM_GetShiftState done [17:14:23]req_shift_opened done [17:14:23]requested_item shift.open_date is exist - process it [17:14:23]req_shift_open_date [17:14:23]req_shift_open_date done [17:14:23]produce_requested_data done [17:14:23]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118239,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [17:14:23]process_action_free close_receipt [17:14:23]json_value_free [17:14:23]json_value_free done [17:14:23]process_json_proto returns [17:14:23]Send response to host [17:14:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118239,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [17:14:23]free response buf [17:14:23]execute_script done [17:14:23]execute_script returns [17:14:23]free content buf [17:14:23]Sock 9.Close socket [17:14:23]Sock 9.Thread stoped [17:14:27]OFD Sender: No OFD packet to send [17:14:32]OFD Sender: No OFD packet to send [17:14:37]OFD Sender: No OFD packet to send [17:14:42]OFD Sender: No OFD packet to send [17:14:47]OFD Sender: No OFD packet to send [17:14:52]OFD Sender: No OFD packet to send [17:14:57]OFD Sender: No OFD packet to send [17:15:02]OFD Sender: No OFD packet to send [17:15:07]OFD Sender: No OFD packet to send [17:15:12]OFD Sender: No OFD packet to send [17:15:17]OFD Sender: No OFD packet to send [17:15:22]OFD Sender: No OFD packet to send [17:15:27]OFD Sender: No OFD packet to send [17:15:32]OFD Sender: No OFD packet to send [17:15:37]OFD Sender: No OFD packet to send [17:15:42]OFD Sender: No OFD packet to send [17:15:47]OFD Sender: No OFD packet to send [17:15:52]OFD Sender: No OFD packet to send [17:15:57]OFD Sender: No OFD packet to send [17:16:02]OFD Sender: No OFD packet to send [17:16:07]OFD Sender: No OFD packet to send [17:16:12]OFD Sender: No OFD packet to send [17:16:17]OFD Sender: No OFD packet to send [17:16:22]OFD Sender: No OFD packet to send [17:16:27]OFD Sender: No OFD packet to send [17:16:32]OFD Sender: No OFD packet to send [17:16:37]OFD Sender: No OFD packet to send [17:16:42]OFD Sender: No OFD packet to send [17:16:47]OFD Sender: No OFD packet to send [17:16:52]OFD Sender: No OFD packet to send [17:16:57]OFD Sender: No OFD packet to send [17:17:02]OFD Sender: No OFD packet to send [17:17:07]OFD Sender: No OFD packet to send [17:17:12]OFD Sender: No OFD packet to send [17:17:17]OFD Sender: No OFD packet to send [17:17:22]OFD Sender: No OFD packet to send [17:17:27]OFD Sender: No OFD packet to send [17:17:32]OFD Sender: No OFD packet to send [17:17:37]OFD Sender: No OFD packet to send [17:17:42]OFD Sender: No OFD packet to send [17:17:47]OFD Sender: No OFD packet to send [17:17:52]OFD Sender: No OFD packet to send [17:17:57]OFD Sender: No OFD packet to send [17:18:02]OFD Sender: No OFD packet to send [17:18:07]OFD Sender: No OFD packet to send [17:18:12]OFD Sender: No OFD packet to send [17:18:17]OFD Sender: No OFD packet to send [17:18:22]OFD Sender: No OFD packet to send [17:18:27]OFD Sender: No OFD packet to send [17:18:32]OFD Sender: No OFD packet to send [17:18:37]OFD Sender: No OFD packet to send [17:18:42]OFD Sender: No OFD packet to send [17:18:47]OFD Sender: No OFD packet to send [17:18:52]OFD Sender: No OFD packet to send [17:18:57]OFD Sender: No OFD packet to send [17:19:02]OFD Sender: No OFD packet to send [17:19:02]accept exits with 7 [17:19:02]New connection [17:19:02]New thread 3066953060 created [17:19:02]Thread 3067096420 joined [17:19:02]Waiting for new connection... [17:19:02] Sock 7.Parse request [17:19:02]Sock 7.Check first char [17:19:02]Sock 7.First char is OK [17:19:02]request: POST /json_proto HTTP/1.0 [17:19:02]Method: POST [17:19:02]URL: /json_proto [17:19:02]Method is POST - this is cgi request [17:19:02]url: /json_proto [17:19:02]query_string will be loaded in cgi processing [17:19:02]execute_cgi json_proto POST (null) [17:19:02]execute_cgi path=json_proto method=POST [17:19:02]POST find Content-Length [17:19:02]Host: 172.17.45.7:8080 [17:19:02]Content-Length: 678 [17:19:02]Content-Type: application/json [17:19:02] [17:19:02]POST finish read [17:19:02]Found Content-Length = 678 [17:19:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:02]execute_script... [17:19:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:02]POST & json_proto [17:19:02]process_json_proto [17:19:02]json parsed OK: [17:19:02]protocol is kg_v1.0 [17:19:02]action value=close_receipt [17:19:02]process_action close_receipt [17:19:02]cmd_close_receipt [17:19:02]MH_GetDate [17:19:02]Write to MH i2c: F0 00 00 5E 0F 5C [17:19:02]Write i2c OK [17:19:02]MH_I2C_Read... [17:19:02]Read from MH i2c: F0 [17:19:02]MH_I2C_Read... [17:19:02]Read from MH i2c: F0 09 00 [17:19:02]MH_I2C_Read... [17:19:02]Read from MH i2c: F0 09 00 5E 0F 00 07 2C A5 66 90 0F 3E 66 E6 [17:19:02]GetLastDocTimeStamp 1722100459 [17:19:02]current date 1722100743 [17:19:02]FM_GetShiftState [17:19:02]SAM_PROTO_GetShiftState [17:19:02]wFMCommunicate request_size=4 [17:19:02]MH_SAM_APDU [17:19:02]CAPDU: 80 13 01 00 [17:19:02]Write to MH i2c: E2 08 00 5F 0F 80 13 01 00 00 00 00 00 EB [17:19:02]Write i2c OK [17:19:02]MH_I2C_Read... [17:19:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:02]Read from MH i2c: E2 [17:19:02]MH_I2C_Read... [17:19:02]Read from MH i2c: E2 0E 00 [17:19:02]MH_I2C_Read... [17:19:02]Read from MH i2c: E2 0E 00 5F 0F 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 78 [17:19:02]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [17:19:02]wFMCommunicate OK [17:19:02]SAM_PROTO_GetShiftState done [17:19:02]FM_GetShiftState done [17:19:02]opened in 1722038845 [17:19:02]opened+sec_in_day 1722125245 [17:19:02]quantity*price = 80004 [17:19:02]sum+1 = 80005 [17:19:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 183 27.07.2024 17:19 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118240 ФПД: 245445070065643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T171903&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118240&fm=245445070065643&tin=02508201610067®Number=0000000000092660&sum=80000 [17:19:03]StoreToDocumentArchive [17:19:03]shift 432 fd 118240 [17:19:03]save to /storage/0432/doc_00118240 [17:19:03]save last doc name /storage/0432/doc_00118240 to /storage/kkm_last_doc_name [17:19:03]save OK [17:19:03]Clear old archive folders... [17:19:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:19:03]tlvbuf is 01DE6740 [17:19:03]SAM_PROTO_ClearQueue [17:19:03]wFMCommunicate request_size=4 [17:19:03]MH_SAM_APDU [17:19:03]CAPDU: 80 09 00 00 [17:19:03]Write to MH i2c: E2 08 00 6C 0F 80 09 00 00 00 00 00 00 ED [17:19:03]Write i2c OK [17:19:03]MH_I2C_Read... [17:19:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:03]Read from MH i2c: E2 [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: E2 03 00 [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: E2 03 00 6C 0F 00 90 00 EF [17:19:03]RAPDU: 90 00 [17:19:03]wFMCommunicate OK [17:19:03]SAM_PROTO_ClearQueue done [17:19:03]KKMCreateOFDPacket [17:19:03]OFDProtocolAddRootSTLVToBuf [17:19:03]FM_MakeSignedData [17:19:03]FM_MakeSignedData [17:19:03]SAM_PROTO_SignData [17:19:03]wFMCommunicate request_size=4 [17:19:03]MH_SAM_APDU [17:19:03]CAPDU: 80 0D 01 02 [17:19:03]Write to MH i2c: E2 08 00 6D 0F 80 0D 01 02 00 00 00 00 F5 [17:19:03]Write i2c OK [17:19:03]MH_I2C_Read... [17:19:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:03]Read from MH i2c: E2 [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: E2 03 00 [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: E2 03 00 6D 0F 00 90 00 F0 [17:19:03]RAPDU: 90 00 [17:19:03]wFMCommunicate OK [17:19:03]wFMCommunicate request_size=255 [17:19:03]MH_SAM_APDU [17:19: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 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 B7 00 00 00 F4 03 04 00 07 2C A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E0 CD 01 00 35 04 06 00 DF [17:19:03]Write to MH i2c: E2 02 01 6E 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 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 B7 00 00 00 F4 03 04 00 07 2C A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E0 CD 01 00 35 04 06 00 DF 00 00 59 [17:19:03]Write i2c OK [17:19:03]MH_I2C_Read... [17:19:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:04]Read from MH i2c: E2 [17:19:04]MH_I2C_Read... [17:19:04]Read from MH i2c: E2 03 00 [17:19:04]MH_I2C_Read... [17:19:04]Read from MH i2c: E2 03 00 6E 0F 00 90 00 F1 [17:19:04]RAPDU: 90 00 [17:19:04]wFMCommunicate OK [17:19:04]wFMCommunicate request_size=10 [17:19:04]MH_SAM_APDU [17:19:04]CAPDU: 80 0D 02 02 05 3B 22 36 8F EB [17:19:04]Write to MH i2c: E2 0D 00 6F 0F 80 0D 02 02 05 00 3B 22 36 8F EB 00 00 0F [17:19:04]Write i2c OK [17:19:04]MH_I2C_Read... [17:19:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:04]Read from MH i2c: E2 [17:19:04]MH_I2C_Read... [17:19:04]Read from MH i2c: E2 03 00 [17:19:04]MH_I2C_Read... [17:19:04]Read from MH i2c: E2 03 00 6F 0F 00 90 00 F2 [17:19:04]RAPDU: 90 00 [17:19:04]wFMCommunicate OK [17:19:04]wFMCommunicate request_size=4 [17:19:04]MH_SAM_APDU [17:19:04]CAPDU: 80 0D 03 02 [17:19:04]Write to MH i2c: E2 08 00 70 0F 80 0D 03 02 00 00 00 00 FA [17:19:04]Write i2c OK [17:19:04]MH_I2C_Read... [17:19:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:04]Read from MH i2c: E2 [17:19:04]MH_I2C_Read... [17:19:04]Read from MH i2c: E2 0B 00 [17:19:04]MH_I2C_Read... [17:19:04]Read from MH i2c: E2 0B 00 70 0F 00 83 4E 32 9C 0B 51 F0 23 90 00 09 [17:19:04]RAPDU: 83 4E 32 9C 0B 51 F0 23 90 00 [17:19:04]wFMCommunicate OK [17:19:04]SAM_PROTO_SignData done [17:19:04]FM_MakeSignedData done [17:19:04]CreateOFDProtocolMessage [17:19:04]wFMCommunicate request_size=4 [17:19:04]MH_SAM_APDU [17:19:04]CAPDU: 80 11 00 00 [17:19:04]Write to MH i2c: E2 08 00 71 0F 80 11 00 00 00 00 00 00 FA [17:19:04]Write i2c OK [17:19:04]MH_I2C_Read... [17:19:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:04]Read from MH i2c: E2 [17:19:04]MH_I2C_Read... [17:19:04]Read from MH i2c: E2 17 00 [17:19:04]MH_I2C_Read... [17:19:04]Read from MH i2c: E2 17 00 71 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 55 [17:19:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:19:04]wFMCommunicate OK [17:19:04]CreateOFDProtocolMessage done [17:19:04]OFDSenderStorePacket 118240 [17:19:04]StoreOFDPacket docnum=118240 [17:19:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F8 CC 07 01 06 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 B7 00 00 00 F4 03 04 00 07 2C A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E0 CD 01 00 35 04 06 00 DF 3B 22 36 8F EB 83 4E 32 9C 0B 51 F0 23 [17:19:04]CheckFolder [17:19:04]dirname=/storage/ofd_packets [17:19:04]CheckFolder done [17:19:04]ProducePacketName [17:19:04]name=ofd_packets/00118240 [17:19:04]NVStorageSaveData ofd_packets/00118240 [17:19:04]File name is /storage/ofd_packets/00118240 [17:19:04]Write 301 bytes [17:19:04]NVStorageSaveData done [17:19:04]OFDSenderStorePacket done [17:19:04]KKMCreateOFDPacket done [17:19:04]NVStorageSaveData kkm_last_timestamp [17:19:04]File name is /storage/kkm_last_timestamp [17:19:04]Write 4 bytes [17:19:04]NVStorageSaveData done [17:19:04]ExternCall_PrintAddStr [17:19:04]wPrintStart [17:19:04]Write to MH i2c: 01 00 00 72 0F 81 [17:19:04]Write i2c OK [17:19:04]MH_I2C_Read... [17:19:04]Read from MH i2c: 01 [17:19:04]MH_I2C_Read... [17:19:04]Read from MH i2c: 01 07 00 [17:19:04]MH_I2C_Read... [17:19:04]Read from MH i2c: 01 07 00 72 0F 00 00 00 00 00 FF 0F 96 [17:19:04]RasterBufferAndPrint [17:19:04]line Счет N : (1)949110 [17:19:04]line ИНН: 02508201610067 [17:19:04]line Контрольно-Кассовый Чек [17:19:04]line ПРОДАЖА [17:19:04]line ТРК (МРК, ГНК) : 51 [17:19:04]line Товар: 2710124130 [17:19:04]line Аи-92-К-4 [17:19:04]line 11.800 * 67.80 [17:19:04]line = 800.04 [17:19:04]line НДС 12% НСП 1% [17:19:04]line > о реализуемом товаре [17:19:04]line ОКРУГЛЕНИЕ: -0.04 [17:19:04]line ИТОГО: 800.00 [17:19:04]line Внесено: 800.00 [17:19:04]line СДАЧА: 0.00 [17:19:04]line НСП 1% : 7.08 [17:19:04]line НДС 12% : 84.96 [17:19:04]line Наличными: 800.00 [17:19:04]line Безнал.: 0.00 [17:19:04]line Место: АЗС № 134 "Партнер Нефть" [17:19:04]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:19:04]line СНО: Общий режим [17:19:04]line Чек 183 27.07.2024 17:19 [17:19:04]line Смена: 432 ФФД: 1.0 [17:19:04]line ЗНМ: 0300000044 [17:19:04]line РНМ: 0000000000092660 [17:19:04]line Версия ККМ: 001 [17:19:04]line ФМ: 0000000000874939 [17:19:04]line ФД: 118240 [17:19:04]line ФПД: 245445070065643 [17:19:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T171903&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118240&fm=245445070065643&tin=02508201610067®Number=0000000000092660&sum=80000 [17:19:04]written 0, free lines is 4095 [17:19:04]OFD Sender: Processing packet 118240 [packets to send 86, broken 85] [17:19:04]ProducePacketName [17:19:04]name=ofd_packets/00118240 [17:19:04]OFD Sender: To server: pG, [17:19:04]CommunicateWithHost lk.salyk.kg:30040 [17:19:04]ConnectInit lk.salyk.kg [17:19:04]Connected sock=10 [17:19:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F8 CC 07 01 06 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 B7 00 00 00 F4 03 04 00 07 2C A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E0 CD 01 00 35 04 06 00 DF 3B 22 36 8F EB 83 4E 32 9C 0B 51 F0 23 [17:19:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 AF 07 47 00 FE D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E0 CD 01 00 F4 03 04 00 99 D9 A4 66 B6 04 01 00 00 81 1B 80 A6 23 29 2F 8E [17:19:04]CommunicateWithHost err = 0 [17:19:04]CheckOFDResponse [17:19:04]1017 (14) - 77093643461234 [17:19:04]1041 (16) - 0000000000874939 [17:19:04]1040 (4) - 118240 [17:19:04]1012 (4) - 27.07.2024 11:27 [17:19:04]1206 (1) - 0 [17:19:04]OFD Sender: Remove packet 118240 [17:19:04]ProducePacketName [17:19:04]name=ofd_packets/00118240 [17:19:04]NVStorageDeleteData [17:19:04]Write to MH i2c: 01 00 00 9C 0F AB [17:19:04]Write i2c OK [17:19:04]MH_I2C_Read... [17:19:04]Read from MH i2c: 01 [17:19:04]MH_I2C_Read... [17:19:04]Read from MH i2c: 01 07 00 [17:19:04]MH_I2C_Read... [17:19:04]Read from MH i2c: 01 07 00 9C 0F 00 00 00 00 00 CB 0C 89 [17:19:04]RasterBufferAndPrint [17:19:04]line [17:19:04]line [17:19:04]line [17:19:04]line [17:19:04]line [17:19:04]written 0, free lines is 3283 [17:19:04]MH_Cut [17:19:04]Write to MH i2c: D1 01 00 A3 0F 01 84 [17:19:04]Write i2c OK [17:19:04]MH_I2C_Read... [17:19:04]Read from MH i2c: D1 [17:19:04]MH_I2C_Read... [17:19:04]Read from MH i2c: D1 01 00 [17:19:04]MH_I2C_Read... [17:19:04]Read from MH i2c: D1 01 00 A3 0F 00 83 [17:19:04]Write to MH i2c: 01 00 00 A4 0F B3 [17:19:04]Write i2c OK [17:19:04]MH_I2C_Read... [17:19:05]OFD Sender: No OFD packet to send [17:19:05]*** Cut start [17:19:05]*** Partial cut [17:19:05]*** CUTSNS_PIN = 1 [17:19:05]*** CUTSNS_PIN = 0 [17:19:05]*** Brake cut motor [17:19:06]Read from MH i2c: 01 [17:19:06]MH_I2C_Read... [17:19:06]*** Stop cut motor [17:19:06]*** Cut end [17:19:06]Read from MH i2c: 01 07 00 [17:19:06]MH_I2C_Read... [17:19:06]Read from MH i2c: 01 07 00 A4 0F 00 00 00 00 00 FF 0F C8 [17:19:06]process_action close_receipt done [17:19:06]requested_data is exist [17:19:06]produce_requested_data [17:19:06]requested_item fm.sn is exist - process it [17:19:06]wFMCommunicate request_size=4 [17:19:06]MH_SAM_APDU [17:19:06]CAPDU: 80 11 00 00 [17:19:06]Write to MH i2c: E2 08 00 A5 0F 80 11 00 00 00 00 00 00 2E [17:19:06]Write i2c OK [17:19:06]MH_I2C_Read... [17:19:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:06]Read from MH i2c: E2 [17:19:06]MH_I2C_Read... [17:19:06]Read from MH i2c: E2 17 00 [17:19:06]MH_I2C_Read... [17:19:06]Read from MH i2c: E2 17 00 A5 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 89 [17:19:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:19:06]wFMCommunicate OK [17:19:06]requested_item fd.num is exist - process it [17:19:06]SAM_PROTO_GetFieldsCounters [17:19:06]wFMCommunicate request_size=4 [17:19:06]MH_SAM_APDU [17:19:06]CAPDU: 80 13 00 00 [17:19:06]Write to MH i2c: E2 08 00 A6 0F 80 13 00 00 00 00 00 00 31 [17:19:06]Write i2c OK [17:19:06]MH_I2C_Read... [17:19:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:06]Read from MH i2c: E2 [17:19:06]MH_I2C_Read... [17:19:06]Read from MH i2c: E2 62 00 [17:19:06]MH_I2C_Read... [17:19:06]Read from MH i2c: E2 62 00 A6 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E0 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [17:19:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E0 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:06]wFMCommunicate OK [17:19:06]SAM_PROTO_GetFieldsCounters done [17:19:06]requested_item shift.num is exist - process it [17:19:06]requested_item shift.opened is exist - process it [17:19:06]req_shift_opened [17:19:06]FM_GetShiftState [17:19:06]SAM_PROTO_GetShiftState [17:19:06]wFMCommunicate request_size=4 [17:19:06]MH_SAM_APDU [17:19:06]CAPDU: 80 13 01 00 [17:19:06]Write to MH i2c: E2 08 00 A7 0F 80 13 01 00 00 00 00 00 33 [17:19:06]Write i2c OK [17:19:06]MH_I2C_Read... [17:19:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:06]Read from MH i2c: E2 [17:19:06]MH_I2C_Read... [17:19:06]Read from MH i2c: E2 0E 00 [17:19:06]MH_I2C_Read... [17:19:06]Read from MH i2c: E2 0E 00 A7 0F 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 C0 [17:19:06]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [17:19:06]wFMCommunicate OK [17:19:06]SAM_PROTO_GetShiftState done [17:19:06]FM_GetShiftState done [17:19:06]req_shift_opened done [17:19:06]requested_item shift.open_date is exist - process it [17:19:06]req_shift_open_date [17:19:06]req_shift_open_date done [17:19:06]produce_requested_data done [17:19:06]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118240,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [17:19:06]process_action_free close_receipt [17:19:06]json_value_free [17:19:06]json_value_free done [17:19:06]process_json_proto returns [17:19:06]Send response to host [17:19:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118240,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [17:19:06]free response buf [17:19:06]execute_script done [17:19:06]execute_script returns [17:19:06]free content buf [17:19:06]Sock 7.Close socket [17:19:06]Sock 7.Thread stoped [17:19:10]OFD Sender: No OFD packet to send [17:19:15]OFD Sender: No OFD packet to send [17:19:20]OFD Sender: No OFD packet to send [17:19:25]OFD Sender: No OFD packet to send [17:19:30]OFD Sender: No OFD packet to send [17:19:35]OFD Sender: No OFD packet to send [17:19:40]OFD Sender: No OFD packet to send [17:19:45]OFD Sender: No OFD packet to send [17:19:50]OFD Sender: No OFD packet to send [17:19:55]OFD Sender: No OFD packet to send [17:20:00]OFD Sender: No OFD packet to send [17:20:01]accept exits with 9 [17:20:01]New connection [17:20:01]New thread 3067096420 created [17:20:01]Thread 3066953060 joined [17:20:01]Waiting for new connection... [17:20:01] Sock 9.Parse request [17:20:01]Sock 9.Check first char [17:20:01]Sock 9.First char is OK [17:20:01]request: POST /json_proto HTTP/1.0 [17:20:01]Method: POST [17:20:01]URL: /json_proto [17:20:01]Method is POST - this is cgi request [17:20:01]url: /json_proto [17:20:01]query_string will be loaded in cgi processing [17:20:01]execute_cgi json_proto POST (null) [17:20:01]execute_cgi path=json_proto method=POST [17:20:01]POST find Content-Length [17:20:01]Host: 172.17.45.7:8080 [17:20:01]Content-Length: 677 [17:20:01]Content-Type: application/json [17:20:01] [17:20:01]POST finish read [17:20:01]Found Content-Length = 677 [17:20:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:20:01]execute_script... [17:20: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)949111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:20:01]POST & json_proto [17:20:01]process_json_proto [17:20:01]json parsed OK: [17:20:01]protocol is kg_v1.0 [17:20:01]action value=close_receipt [17:20:01]process_action close_receipt [17:20:01]cmd_close_receipt [17:20:01]MH_GetDate [17:20:01]Write to MH i2c: F0 00 00 A8 0F A6 [17:20:01]Write i2c OK [17:20:01]MH_I2C_Read... [17:20:01]Read from MH i2c: F0 [17:20:01]MH_I2C_Read... [17:20:01]Read from MH i2c: F0 09 00 [17:20:01]MH_I2C_Read... [17:20:01]Read from MH i2c: F0 09 00 A8 0F 00 42 2C A5 66 90 0F 3E 66 6B [17:20:01]GetLastDocTimeStamp 1722100743 [17:20:01]current date 1722100802 [17:20:01]FM_GetShiftState [17:20:01]SAM_PROTO_GetShiftState [17:20:01]wFMCommunicate request_size=4 [17:20:01]MH_SAM_APDU [17:20:01]CAPDU: 80 13 01 00 [17:20:01]Write to MH i2c: E2 08 00 A9 0F 80 13 01 00 00 00 00 00 35 [17:20:01]Write i2c OK [17:20:01]MH_I2C_Read... [17:20:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:01]Read from MH i2c: E2 [17:20:01]MH_I2C_Read... [17:20:01]Read from MH i2c: E2 0E 00 [17:20:01]MH_I2C_Read... [17:20:01]Read from MH i2c: E2 0E 00 A9 0F 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 C2 [17:20:01]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [17:20:01]wFMCommunicate OK [17:20:01]SAM_PROTO_GetShiftState done [17:20:01]FM_GetShiftState done [17:20:01]opened in 1722038845 [17:20:01]opened+sec_in_day 1722125245 [17:20:01]quantity*price = 40002 [17:20:01]sum+1 = 40003 [17:20:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 184 27.07.2024 17:20 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118241 ФПД: 84166557107689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T172002&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118241&fm=84166557107689&tin=02508201610067®Number=0000000000092660&sum=40000 [17:20:02]StoreToDocumentArchive [17:20:02]shift 432 fd 118241 [17:20:02]save to /storage/0432/doc_00118241 [17:20:02]save last doc name /storage/0432/doc_00118241 to /storage/kkm_last_doc_name [17:20:02]save OK [17:20:02]Clear old archive folders... [17:20:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:20:02]tlvbuf is 01E40A60 [17:20:02]SAM_PROTO_ClearQueue [17:20:02]wFMCommunicate request_size=4 [17:20:02]MH_SAM_APDU [17:20:02]CAPDU: 80 09 00 00 [17:20:02]Write to MH i2c: E2 08 00 B6 0F 80 09 00 00 00 00 00 00 37 [17:20:02]Write i2c OK [17:20:02]MH_I2C_Read... [17:20:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:20:02]Read from MH i2c: E2 [17:20:02]MH_I2C_Read... [17:20:02]Read from MH i2c: E2 03 00 [17:20:02]MH_I2C_Read... [17:20:02]Read from MH i2c: E2 03 00 B6 0F 00 90 00 39 [17:20:02]RAPDU: 90 00 [17:20:02]wFMCommunicate OK [17:20:02]SAM_PROTO_ClearQueue done [17:20:02]KKMCreateOFDPacket [17:20:02]OFDProtocolAddRootSTLVToBuf [17:20:02]FM_MakeSignedData [17:20:02]FM_MakeSignedData [17:20:02]SAM_PROTO_SignData [17:20:02]wFMCommunicate request_size=4 [17:20:02]MH_SAM_APDU [17:20:02]CAPDU: 80 0D 01 02 [17:20:02]Write to MH i2c: E2 08 00 B7 0F 80 0D 01 02 00 00 00 00 3F [17:20:02]Write i2c OK [17:20:02]MH_I2C_Read... [17:20:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:20:02]Read from MH i2c: E2 [17:20:02]MH_I2C_Read... [17:20:02]Read from MH i2c: E2 03 00 [17:20:02]MH_I2C_Read... [17:20:02]Read from MH i2c: E2 03 00 B7 0F 00 90 00 3A [17:20:02]RAPDU: 90 00 [17:20:02]wFMCommunicate OK [17:20:02]wFMCommunicate request_size=255 [17:20:02]MH_SAM_APDU [17:20: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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 42 2C A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E1 CD 01 00 35 04 06 00 4C [17:20:02]Write to MH i2c: E2 02 01 B8 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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 42 2C A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E1 CD 01 00 35 04 06 00 4C 00 00 85 [17:20:02]Write i2c OK [17:20:02]MH_I2C_Read... [17:20:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:03]Read from MH i2c: E2 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 03 00 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 03 00 B8 0F 00 90 00 3B [17:20:03]RAPDU: 90 00 [17:20:03]wFMCommunicate OK [17:20:03]wFMCommunicate request_size=10 [17:20:03]MH_SAM_APDU [17:20:03]CAPDU: 80 0D 02 02 05 8C 8D BD 05 E9 [17:20:03]Write to MH i2c: E2 0D 00 B9 0F 80 0D 02 02 05 00 8C 8D BD 05 E9 00 00 10 [17:20:03]Write i2c OK [17:20:03]MH_I2C_Read... [17:20:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:03]Read from MH i2c: E2 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 03 00 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 03 00 B9 0F 00 90 00 3C [17:20:03]RAPDU: 90 00 [17:20:03]wFMCommunicate OK [17:20:03]wFMCommunicate request_size=4 [17:20:03]MH_SAM_APDU [17:20:03]CAPDU: 80 0D 03 02 [17:20:03]Write to MH i2c: E2 08 00 BA 0F 80 0D 03 02 00 00 00 00 44 [17:20:03]Write i2c OK [17:20:03]MH_I2C_Read... [17:20:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:20:03]Read from MH i2c: E2 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 0B 00 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 0B 00 BA 0F 00 69 5F 40 12 72 CF C8 E0 90 00 48 [17:20:03]RAPDU: 69 5F 40 12 72 CF C8 E0 90 00 [17:20:03]wFMCommunicate OK [17:20:03]SAM_PROTO_SignData done [17:20:03]FM_MakeSignedData done [17:20:03]CreateOFDProtocolMessage [17:20:03]wFMCommunicate request_size=4 [17:20:03]MH_SAM_APDU [17:20:03]CAPDU: 80 11 00 00 [17:20:03]Write to MH i2c: E2 08 00 BB 0F 80 11 00 00 00 00 00 00 44 [17:20:03]Write i2c OK [17:20:03]MH_I2C_Read... [17:20:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:03]Read from MH i2c: E2 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 17 00 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 17 00 BB 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9F [17:20:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:20:03]wFMCommunicate OK [17:20:03]CreateOFDProtocolMessage done [17:20:03]OFDSenderStorePacket 118241 [17:20:03]StoreOFDPacket docnum=118241 [17:20:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 64 DE 07 01 02 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 42 2C A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E1 CD 01 00 35 04 06 00 4C 8C 8D BD 05 E9 69 5F 40 12 72 CF C8 E0 [17:20:03]CheckFolder [17:20:03]dirname=/storage/ofd_packets [17:20:03]CheckFolder done [17:20:03]ProducePacketName [17:20:03]name=ofd_packets/00118241 [17:20:03]NVStorageSaveData ofd_packets/00118241 [17:20:03]File name is /storage/ofd_packets/00118241 [17:20:03]Write 301 bytes [17:20:03]NVStorageSaveData done [17:20:03]OFDSenderStorePacket done [17:20:03]KKMCreateOFDPacket done [17:20:03]NVStorageSaveData kkm_last_timestamp [17:20:03]File name is /storage/kkm_last_timestamp [17:20:03]Write 4 bytes [17:20:03]NVStorageSaveData done [17:20:03]ExternCall_PrintAddStr [17:20:03]wPrintStart [17:20:03]Write to MH i2c: 01 00 00 BC 0F CB [17:20:03]Write i2c OK [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: 01 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: 01 07 00 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: 01 07 00 BC 0F 00 00 00 00 00 FF 0F E0 [17:20:03]RasterBufferAndPrint [17:20:03]line Счет N : (1)949111 [17:20:03]line ИНН: 02508201610067 [17:20:03]line Контрольно-Кассовый Чек [17:20:03]line ПРОДАЖА [17:20:03]line ТРК (МРК, ГНК) : 41 [17:20:03]line Товар: 2710124130 [17:20:03]line Аи-92-К-4 [17:20:03]line 5.900 * 67.80 [17:20:03]line = 400.02 [17:20:03]line НДС 12% НСП 1% [17:20:03]line > о реализуемом товаре [17:20:03]line ОКРУГЛЕНИЕ: -0.02 [17:20:03]line ИТОГО: 400.00 [17:20:03]line Внесено: 400.00 [17:20:03]line СДАЧА: 0.00 [17:20:03]line НСП 1% : 3.54 [17:20:03]line НДС 12% : 42.48 [17:20:03]line Наличными: 400.00 [17:20:03]line Безнал.: 0.00 [17:20:03]line Место: АЗС № 134 "Партнер Нефть" [17:20:03]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:20:03]line СНО: Общий режим [17:20:03]line Чек 184 27.07.2024 17:20 [17:20:03]line Смена: 432 ФФД: 1.0 [17:20:03]line ЗНМ: 0300000044 [17:20:03]line РНМ: 0000000000092660 [17:20:03]line Версия ККМ: 001 [17:20:03]line ФМ: 0000000000874939 [17:20:03]line ФД: 118241 [17:20:03]line ФПД: 84166557107689 [17:20:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T172002&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118241&fm=84166557107689&tin=02508201610067®Number=0000000000092660&sum=40000 [17:20:03]OFD Sender: Processing packet 118241 [packets to send 86, broken 85] [17:20:03]ProducePacketName [17:20:03]name=ofd_packets/00118241 [17:20:03]OFD Sender: To server: pG, [17:20:03]CommunicateWithHost lk.salyk.kg:30040 [17:20:03]ConnectInit lk.salyk.kg [17:20:03]written 0, free lines is 4095 [17:20:03]Connected sock=10 [17:20:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 64 DE 07 01 02 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 42 2C A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E1 CD 01 00 35 04 06 00 4C 8C 8D BD 05 E9 69 5F 40 12 72 CF C8 E0 [17:20:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B4 2C 47 00 5B 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E1 CD 01 00 F4 03 04 00 D4 D9 A4 66 B6 04 01 00 00 E5 76 E0 00 80 2E 78 E9 [17:20:03]CommunicateWithHost err = 0 [17:20:03]CheckOFDResponse [17:20:03]1017 (14) - 77093643461234 [17:20:03]1041 (16) - 0000000000874939 [17:20:03]1040 (4) - 118241 [17:20:03]1012 (4) - 27.07.2024 11:28 [17:20:03]1206 (1) - 0 [17:20:03]OFD Sender: Remove packet 118241 [17:20:03]ProducePacketName [17:20:03]name=ofd_packets/00118241 [17:20:03]NVStorageDeleteData [17:20:03]Write to MH i2c: 01 00 00 E6 0F F5 [17:20:03]Write i2c OK [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: 01 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: 01 07 00 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: 01 07 00 E6 0F 00 00 00 00 00 CB 0C D3 [17:20:03]RasterBufferAndPrint [17:20:03]line [17:20:03]line [17:20:03]line [17:20:03]line [17:20:03]line [17:20:03]written 0, free lines is 3283 [17:20:03]MH_Cut [17:20:03]Write to MH i2c: D1 01 00 ED 0F 01 CE [17:20:03]Write i2c OK [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: D1 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: D1 01 00 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: D1 01 00 ED 0F 00 CD [17:20:03]Write to MH i2c: 01 00 00 EE 0F FD [17:20:03]Write i2c OK [17:20:03]MH_I2C_Read... [17:20:04]OFD Sender: No OFD packet to send [17:20:04]*** Cut start [17:20:04]*** Partial cut [17:20:04]*** CUTSNS_PIN = 1 [17:20:04]*** CUTSNS_PIN = 0 [17:20:04]*** Brake cut motor [17:20:05]Read from MH i2c: 01 [17:20:05]MH_I2C_Read... [17:20:05]*** Stop cut motor [17:20:05]*** Cut end [17:20:05]Read from MH i2c: 01 07 00 [17:20:05]MH_I2C_Read... [17:20:05]Read from MH i2c: 01 07 00 EE 0F 00 00 00 00 00 FF 0F 12 [17:20:05]process_action close_receipt done [17:20:05]requested_data is exist [17:20:05]produce_requested_data [17:20:05]requested_item fm.sn is exist - process it [17:20:05]wFMCommunicate request_size=4 [17:20:05]MH_SAM_APDU [17:20:05]CAPDU: 80 11 00 00 [17:20:05]Write to MH i2c: E2 08 00 EF 0F 80 11 00 00 00 00 00 00 78 [17:20:05]Write i2c OK [17:20:05]MH_I2C_Read... [17:20:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:05]Read from MH i2c: E2 [17:20:05]MH_I2C_Read... [17:20:05]Read from MH i2c: E2 17 00 [17:20:05]MH_I2C_Read... [17:20:05]Read from MH i2c: E2 17 00 EF 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D3 [17:20:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:20:05]wFMCommunicate OK [17:20:05]requested_item fd.num is exist - process it [17:20:05]SAM_PROTO_GetFieldsCounters [17:20:05]wFMCommunicate request_size=4 [17:20:05]MH_SAM_APDU [17:20:05]CAPDU: 80 13 00 00 [17:20:05]Write to MH i2c: E2 08 00 F0 0F 80 13 00 00 00 00 00 00 7B [17:20:05]Write i2c OK [17:20:05]MH_I2C_Read... [17:20:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:20:05]Read from MH i2c: E2 [17:20:05]MH_I2C_Read... [17:20:05]Read from MH i2c: E2 62 00 [17:20:05]MH_I2C_Read... [17:20:05]Read from MH i2c: E2 62 00 F0 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E1 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [17:20:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E1 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:20:05]wFMCommunicate OK [17:20:05]SAM_PROTO_GetFieldsCounters done [17:20:05]requested_item shift.num is exist - process it [17:20:05]requested_item shift.opened is exist - process it [17:20:05]req_shift_opened [17:20:05]FM_GetShiftState [17:20:05]SAM_PROTO_GetShiftState [17:20:05]wFMCommunicate request_size=4 [17:20:05]MH_SAM_APDU [17:20:05]CAPDU: 80 13 01 00 [17:20:05]Write to MH i2c: E2 08 00 F1 0F 80 13 01 00 00 00 00 00 7D [17:20:05]Write i2c OK [17:20:05]MH_I2C_Read... [17:20:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:05]Read from MH i2c: E2 [17:20:05]MH_I2C_Read... [17:20:05]Read from MH i2c: E2 0E 00 [17:20:05]MH_I2C_Read... [17:20:05]Read from MH i2c: E2 0E 00 F1 0F 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 0A [17:20:05]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [17:20:05]wFMCommunicate OK [17:20:05]SAM_PROTO_GetShiftState done [17:20:05]FM_GetShiftState done [17:20:05]req_shift_opened done [17:20:05]requested_item shift.open_date is exist - process it [17:20:05]req_shift_open_date [17:20:05]req_shift_open_date done [17:20:05]produce_requested_data done [17:20:05]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118241,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [17:20:05]process_action_free close_receipt [17:20:05]json_value_free [17:20:05]json_value_free done [17:20:05]process_json_proto returns [17:20:05]Send response to host [17:20:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118241,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [17:20:05]free response buf [17:20:05]execute_script done [17:20:05]execute_script returns [17:20:05]free content buf [17:20:05]Sock 9.Close socket [17:20:05]Sock 9.Thread stoped [17:20:09]OFD Sender: No OFD packet to send [17:20:14]OFD Sender: No OFD packet to send [17:20:19]OFD Sender: No OFD packet to send [17:20:24]OFD Sender: No OFD packet to send [17:20:29]OFD Sender: No OFD packet to send [17:20:34]OFD Sender: No OFD packet to send [17:20:39]OFD Sender: No OFD packet to send [17:20:44]OFD Sender: No OFD packet to send [17:20:49]OFD Sender: No OFD packet to send [17:20:54]OFD Sender: No OFD packet to send [17:20:59]OFD Sender: No OFD packet to send [17:21:04]OFD Sender: No OFD packet to send [17:21:09]OFD Sender: No OFD packet to send [17:21:14]OFD Sender: No OFD packet to send [17:21:19]OFD Sender: No OFD packet to send [17:21:24]OFD Sender: No OFD packet to send [17:21:29]OFD Sender: No OFD packet to send [17:21:34]OFD Sender: No OFD packet to send [17:21:37]accept exits with 7 [17:21:37]New connection [17:21:37]New thread 3066953060 created [17:21:37]Thread 3067096420 joined [17:21:37]Waiting for new connection... [17:21:37] Sock 7.Parse request [17:21:37]Sock 7.Check first char [17:21:37]Sock 7.First char is OK [17:21:37]request: POST /json_proto HTTP/1.0 [17:21:37]Method: POST [17:21:37]URL: /json_proto [17:21:37]Method is POST - this is cgi request [17:21:37]url: /json_proto [17:21:37]query_string will be loaded in cgi processing [17:21:37]execute_cgi json_proto POST (null) [17:21:37]execute_cgi path=json_proto method=POST [17:21:37]POST find Content-Length [17:21:37]Host: 172.17.45.7:8080 [17:21:37]Content-Length: 677 [17:21:37]Content-Type: application/json [17:21:37] [17:21:37]POST finish read [17:21:37]Found Content-Length = 677 [17:21:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:21:37]execute_script... [17:21: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)949112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:21:37]POST & json_proto [17:21:37]process_json_proto [17:21:37]json parsed OK: [17:21:37]protocol is kg_v1.0 [17:21:37]action value=close_receipt [17:21:37]process_action close_receipt [17:21:37]cmd_close_receipt [17:21:37]MH_GetDate [17:21:37]Write to MH i2c: F0 00 00 F2 0F F0 [17:21:37]Write i2c OK [17:21:37]MH_I2C_Read... [17:21:37]Read from MH i2c: F0 [17:21:37]MH_I2C_Read... [17:21:37]Read from MH i2c: F0 09 00 [17:21:37]MH_I2C_Read... [17:21:37]Read from MH i2c: F0 09 00 F2 0F 00 A1 2C A5 66 90 0F 3E 66 14 [17:21:37]GetLastDocTimeStamp 1722100802 [17:21:37]current date 1722100897 [17:21:37]FM_GetShiftState [17:21:37]SAM_PROTO_GetShiftState [17:21:37]wFMCommunicate request_size=4 [17:21:37]MH_SAM_APDU [17:21:37]CAPDU: 80 13 01 00 [17:21:37]Write to MH i2c: E2 08 00 F3 0F 80 13 01 00 00 00 00 00 7F [17:21:37]Write i2c OK [17:21:37]MH_I2C_Read... [17:21:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:37]Read from MH i2c: E2 [17:21:37]MH_I2C_Read... [17:21:37]Read from MH i2c: E2 0E 00 [17:21:37]MH_I2C_Read... [17:21:37]Read from MH i2c: E2 0E 00 F3 0F 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 0C [17:21:37]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [17:21:37]wFMCommunicate OK [17:21:37]SAM_PROTO_GetShiftState done [17:21:37]FM_GetShiftState done [17:21:37]opened in 1722038845 [17:21:37]opened+sec_in_day 1722125245 [17:21:37]quantity*price = 50036 [17:21:37]sum+1 = 50037 [17:21:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 185 27.07.2024 17:21 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118242 ФПД: 232977751033451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T172137&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118242&fm=232977751033451&tin=02508201610067®Number=0000000000092660&sum=50000 [17:21:38]StoreToDocumentArchive [17:21:38]shift 432 fd 118242 [17:21:38]save to /storage/0432/doc_00118242 [17:21:38]save last doc name /storage/0432/doc_00118242 to /storage/kkm_last_doc_name [17:21:38]save OK [17:21:38]Clear old archive folders... [17:21:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:21:38]tlvbuf is 01E40770 [17:21:38]SAM_PROTO_ClearQueue [17:21:38]wFMCommunicate request_size=4 [17:21:38]MH_SAM_APDU [17:21:38]CAPDU: 80 09 00 00 [17:21:38]Write to MH i2c: E2 08 00 00 10 80 09 00 00 00 00 00 00 82 [17:21:38]Write i2c OK [17:21:38]MH_I2C_Read... [17:21:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:21:38]Read from MH i2c: E2 [17:21:38]MH_I2C_Read... [17:21:38]Read from MH i2c: E2 03 00 [17:21:38]MH_I2C_Read... [17:21:38]Read from MH i2c: E2 03 00 00 10 00 90 00 84 [17:21:38]RAPDU: 90 00 [17:21:38]wFMCommunicate OK [17:21:38]SAM_PROTO_ClearQueue done [17:21:38]KKMCreateOFDPacket [17:21:38]OFDProtocolAddRootSTLVToBuf [17:21:38]FM_MakeSignedData [17:21:38]FM_MakeSignedData [17:21:38]SAM_PROTO_SignData [17:21:38]wFMCommunicate request_size=4 [17:21:38]MH_SAM_APDU [17:21:38]CAPDU: 80 0D 01 02 [17:21:38]Write to MH i2c: E2 08 00 01 10 80 0D 01 02 00 00 00 00 8A [17:21:38]Write i2c OK [17:21:38]MH_I2C_Read... [17:21:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:21:38]Read from MH i2c: E2 [17:21:38]MH_I2C_Read... [17:21:38]Read from MH i2c: E2 03 00 [17:21:38]MH_I2C_Read... [17:21:38]Read from MH i2c: E2 03 00 01 10 00 90 00 85 [17:21:38]RAPDU: 90 00 [17:21:38]wFMCommunicate OK [17:21:38]wFMCommunicate request_size=255 [17:21:38]MH_SAM_APDU [17:21: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B9 00 00 00 F4 03 04 00 A1 2C A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E2 CD 01 00 35 04 06 00 D3 [17:21:38]Write to MH i2c: E2 02 01 02 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B9 00 00 00 F4 03 04 00 A1 2C A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E2 CD 01 00 35 04 06 00 D3 00 00 D3 [17:21:38]Write i2c OK [17:21:38]MH_I2C_Read... [17:21:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:38]Read from MH i2c: E2 [17:21:38]MH_I2C_Read... [17:21:38]Read from MH i2c: E2 03 00 [17:21:38]MH_I2C_Read... [17:21:38]Read from MH i2c: E2 03 00 02 10 00 90 00 86 [17:21:38]RAPDU: 90 00 [17:21:38]wFMCommunicate OK [17:21:38]wFMCommunicate request_size=10 [17:21:38]MH_SAM_APDU [17:21:38]CAPDU: 80 0D 02 02 05 E4 5C 17 46 6B [17:21:38]Write to MH i2c: E2 0D 00 03 10 80 0D 02 02 05 00 E4 5C 17 46 6B 00 00 9F [17:21:38]Write i2c OK [17:21:38]MH_I2C_Read... [17:21:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:38]Read from MH i2c: E2 [17:21:38]MH_I2C_Read... [17:21:38]Read from MH i2c: E2 03 00 [17:21:38]MH_I2C_Read... [17:21:38]Read from MH i2c: E2 03 00 03 10 00 90 00 87 [17:21:38]RAPDU: 90 00 [17:21:38]wFMCommunicate OK [17:21:38]wFMCommunicate request_size=4 [17:21:38]MH_SAM_APDU [17:21:38]CAPDU: 80 0D 03 02 [17:21:38]Write to MH i2c: E2 08 00 04 10 80 0D 03 02 00 00 00 00 8F [17:21:38]Write i2c OK [17:21:38]MH_I2C_Read... [17:21:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:21:38]Read from MH i2c: E2 [17:21:38]MH_I2C_Read... [17:21:38]Read from MH i2c: E2 0B 00 [17:21:38]MH_I2C_Read... [17:21:38]Read from MH i2c: E2 0B 00 04 10 00 C5 1E 74 D3 7B 74 48 A3 90 00 94 [17:21:38]RAPDU: C5 1E 74 D3 7B 74 48 A3 90 00 [17:21:38]wFMCommunicate OK [17:21:38]SAM_PROTO_SignData done [17:21:38]FM_MakeSignedData done [17:21:38]CreateOFDProtocolMessage [17:21:38]wFMCommunicate request_size=4 [17:21:38]MH_SAM_APDU [17:21:38]CAPDU: 80 11 00 00 [17:21:38]Write to MH i2c: E2 08 00 05 10 80 11 00 00 00 00 00 00 8F [17:21:38]Write i2c OK [17:21:38]MH_I2C_Read... [17:21:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:38]Read from MH i2c: E2 [17:21:38]MH_I2C_Read... [17:21:38]Read from MH i2c: E2 17 00 [17:21:38]MH_I2C_Read... [17:21:38]Read from MH i2c: E2 17 00 05 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EA [17:21:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:21:38]wFMCommunicate OK [17:21:38]CreateOFDProtocolMessage done [17:21:38]OFDSenderStorePacket 118242 [17:21:38]StoreOFDPacket docnum=118242 [17:21:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B2 49 07 01 A9 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B9 00 00 00 F4 03 04 00 A1 2C A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E2 CD 01 00 35 04 06 00 D3 E4 5C 17 46 6B C5 1E 74 D3 7B 74 48 A3 [17:21:38]CheckFolder [17:21:38]dirname=/storage/ofd_packets [17:21:38]CheckFolder done [17:21:38]ProducePacketName [17:21:38]name=ofd_packets/00118242 [17:21:38]NVStorageSaveData ofd_packets/00118242 [17:21:38]File name is /storage/ofd_packets/00118242 [17:21:38]Write 301 bytes [17:21:38]NVStorageSaveData done [17:21:38]OFDSenderStorePacket done [17:21:38]KKMCreateOFDPacket done [17:21:38]NVStorageSaveData kkm_last_timestamp [17:21:38]File name is /storage/kkm_last_timestamp [17:21:38]Write 4 bytes [17:21:38]NVStorageSaveData done [17:21:38]ExternCall_PrintAddStr [17:21:38]wPrintStart [17:21:38]Write to MH i2c: 01 00 00 06 10 16 [17:21:38]Write i2c OK [17:21:38]MH_I2C_Read... [17:21:38]Read from MH i2c: 01 [17:21:38]MH_I2C_Read... [17:21:38]Read from MH i2c: 01 07 00 [17:21:38]MH_I2C_Read... [17:21:38]Read from MH i2c: 01 07 00 06 10 00 00 00 00 00 FF 0F 2B [17:21:38]RasterBufferAndPrint [17:21:38]line Счет N : (1)949112 [17:21:38]line ИНН: 02508201610067 [17:21:38]line Контрольно-Кассовый Чек [17:21:38]line ПРОДАЖА [17:21:38]line ТРК (МРК, ГНК) : 51 [17:21:38]line Товар: 2710124130 [17:21:38]line Аи-92-К-4 [17:21:38]line 7.380 * 67.80 [17:21:38]line = 500.36 [17:21:38]line НДС 12% НСП 1% [17:21:38]line > о реализуемом товаре [17:21:38]line ОКРУГЛЕНИЕ: -0.36 [17:21:38]line ИТОГО: 500.00 [17:21:38]line Внесено: 500.00 [17:21:38]line СДАЧА: 0.00 [17:21:38]line НСП 1% : 4.43 [17:21:38]line НДС 12% : 53.14 [17:21:38]line Наличными: 500.00 [17:21:38]line Безнал.: 0.00 [17:21:38]line Место: АЗС № 134 "Партнер Нефть" [17:21:38]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:21:38]line СНО: Общий режим [17:21:38]line Чек 185 27.07.2024 17:21 [17:21:38]line Смена: 432 ФФД: 1.0 [17:21:38]line ЗНМ: 0300000044 [17:21:38]line РНМ: 0000000000092660 [17:21:38]line Версия ККМ: 001 [17:21:38]line ФМ: 0000000000874939 [17:21:38]line ФД: 118242 [17:21:38]line ФПД: 232977751033451 [17:21:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T172137&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118242&fm=232977751033451&tin=02508201610067®Number=0000000000092660&sum=50000 [17:21:39]OFD Sender: Processing packet 118242 [packets to send 86, broken 85] [17:21:39]ProducePacketName [17:21:39]name=ofd_packets/00118242 [17:21:39]OFD Sender: To server: pG, [17:21:39]CommunicateWithHost lk.salyk.kg:30040 [17:21:39]ConnectInit lk.salyk.kg [17:21:39]written 0, free lines is 4095 [17:21:39]Connected sock=10 [17:21:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B2 49 07 01 A9 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B9 00 00 00 F4 03 04 00 A1 2C A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E2 CD 01 00 35 04 06 00 D3 E4 5C 17 46 6B C5 1E 74 D3 7B 74 48 A3 [17:21:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E0 AA 47 00 DC 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E2 CD 01 00 F4 03 04 00 34 DA A4 66 B6 04 01 00 00 5D CC 36 4D A0 01 56 14 [17:21:39]CommunicateWithHost err = 0 [17:21:39]CheckOFDResponse [17:21:39]1017 (14) - 77093643461234 [17:21:39]1041 (16) - 0000000000874939 [17:21:39]1040 (4) - 118242 [17:21:39]1012 (4) - 27.07.2024 11:29 [17:21:39]1206 (1) - 0 [17:21:39]OFD Sender: Remove packet 118242 [17:21:39]ProducePacketName [17:21:39]name=ofd_packets/00118242 [17:21:39]NVStorageDeleteData [17:21:39]Write to MH i2c: 01 00 00 30 10 40 [17:21:39]Write i2c OK [17:21:39]MH_I2C_Read... [17:21:39]Read from MH i2c: 01 [17:21:39]MH_I2C_Read... [17:21:39]Read from MH i2c: 01 07 00 [17:21:39]MH_I2C_Read... [17:21:39]Read from MH i2c: 01 07 00 30 10 00 00 00 00 00 D4 0C 27 [17:21:39]RasterBufferAndPrint [17:21:39]line [17:21:39]line [17:21:39]line [17:21:39]line [17:21:39]line [17:21:39]written 0, free lines is 3290 [17:21:39]MH_Cut [17:21:39]Write to MH i2c: D1 01 00 37 10 01 19 [17:21:39]Write i2c OK [17:21:39]MH_I2C_Read... [17:21:39]Read from MH i2c: D1 [17:21:39]MH_I2C_Read... [17:21:39]Read from MH i2c: D1 01 00 [17:21:39]MH_I2C_Read... [17:21:39]Read from MH i2c: D1 01 00 37 10 00 18 [17:21:39]Write to MH i2c: 01 00 00 38 10 48 [17:21:39]Write i2c OK [17:21:39]MH_I2C_Read... [17:21:40]OFD Sender: No OFD packet to send [17:21:40]*** Cut start [17:21:40]*** Partial cut [17:21:40]*** CUTSNS_PIN = 1 [17:21:40]*** CUTSNS_PIN = 0 [17:21:40]*** Brake cut motor [17:21:41]Read from MH i2c: 01 [17:21:41]MH_I2C_Read... [17:21:41]*** Stop cut motor [17:21:41]*** Cut end [17:21:41]Read from MH i2c: 01 07 00 [17:21:41]MH_I2C_Read... [17:21:41]Read from MH i2c: 01 07 00 38 10 00 00 00 00 00 FF 0F 5D [17:21:41]process_action close_receipt done [17:21:41]requested_data is exist [17:21:41]produce_requested_data [17:21:41]requested_item fm.sn is exist - process it [17:21:41]wFMCommunicate request_size=4 [17:21:41]MH_SAM_APDU [17:21:41]CAPDU: 80 11 00 00 [17:21:41]Write to MH i2c: E2 08 00 39 10 80 11 00 00 00 00 00 00 C3 [17:21:41]Write i2c OK [17:21:41]MH_I2C_Read... [17:21:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:41]Read from MH i2c: E2 [17:21:41]MH_I2C_Read... [17:21:41]Read from MH i2c: E2 17 00 [17:21:41]MH_I2C_Read... [17:21:41]Read from MH i2c: E2 17 00 39 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1E [17:21:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:21:41]wFMCommunicate OK [17:21:41]requested_item fd.num is exist - process it [17:21:41]SAM_PROTO_GetFieldsCounters [17:21:41]wFMCommunicate request_size=4 [17:21:41]MH_SAM_APDU [17:21:41]CAPDU: 80 13 00 00 [17:21:41]Write to MH i2c: E2 08 00 3A 10 80 13 00 00 00 00 00 00 C6 [17:21:41]Write i2c OK [17:21:41]MH_I2C_Read... [17:21:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:41]Read from MH i2c: E2 [17:21:41]MH_I2C_Read... [17:21:41]Read from MH i2c: E2 62 00 [17:21:41]MH_I2C_Read... [17:21:41]Read from MH i2c: E2 62 00 3A 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E2 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [17:21:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E2 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:21:41]wFMCommunicate OK [17:21:41]SAM_PROTO_GetFieldsCounters done [17:21:41]requested_item shift.num is exist - process it [17:21:41]requested_item shift.opened is exist - process it [17:21:41]req_shift_opened [17:21:41]FM_GetShiftState [17:21:41]SAM_PROTO_GetShiftState [17:21:41]wFMCommunicate request_size=4 [17:21:41]MH_SAM_APDU [17:21:41]CAPDU: 80 13 01 00 [17:21:41]Write to MH i2c: E2 08 00 3B 10 80 13 01 00 00 00 00 00 C8 [17:21:41]Write i2c OK [17:21:41]MH_I2C_Read... [17:21:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:41]Read from MH i2c: E2 [17:21:41]MH_I2C_Read... [17:21:41]Read from MH i2c: E2 0E 00 [17:21:41]MH_I2C_Read... [17:21:41]Read from MH i2c: E2 0E 00 3B 10 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 55 [17:21:41]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [17:21:41]wFMCommunicate OK [17:21:41]SAM_PROTO_GetShiftState done [17:21:41]FM_GetShiftState done [17:21:41]req_shift_opened done [17:21:41]requested_item shift.open_date is exist - process it [17:21:41]req_shift_open_date [17:21:41]req_shift_open_date done [17:21:41]produce_requested_data done [17:21:41]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118242,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [17:21:41]process_action_free close_receipt [17:21:41]json_value_free [17:21:41]json_value_free done [17:21:41]process_json_proto returns [17:21:41]Send response to host [17:21:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118242,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [17:21:41]free response buf [17:21:41]execute_script done [17:21:41]execute_script returns [17:21:41]free content buf [17:21:41]Sock 7.Close socket [17:21:41]Sock 7.Thread stoped [17:21:45]OFD Sender: No OFD packet to send [17:21:50]OFD Sender: No OFD packet to send [17:21:55]OFD Sender: No OFD packet to send [17:22:00]OFD Sender: No OFD packet to send [17:22:05]OFD Sender: No OFD packet to send [17:22:10]OFD Sender: No OFD packet to send [17:22:15]OFD Sender: No OFD packet to send [17:22:20]OFD Sender: No OFD packet to send [17:22:25]OFD Sender: No OFD packet to send [17:22:30]OFD Sender: No OFD packet to send [17:22:35]OFD Sender: No OFD packet to send [17:22:40]OFD Sender: No OFD packet to send [17:22:45]OFD Sender: No OFD packet to send [17:22:50]OFD Sender: No OFD packet to send [17:22:55]OFD Sender: No OFD packet to send [17:23:00]OFD Sender: No OFD packet to send [17:23:05]OFD Sender: No OFD packet to send [17:23:10]OFD Sender: No OFD packet to send [17:23:15]OFD Sender: No OFD packet to send [17:23:20]OFD Sender: No OFD packet to send [17:23:25]OFD Sender: No OFD packet to send [17:23:30]OFD Sender: No OFD packet to send [17:23:35]OFD Sender: No OFD packet to send [17:23:40]OFD Sender: No OFD packet to send [17:23:45]OFD Sender: No OFD packet to send [17:23:50]OFD Sender: No OFD packet to send [17:23:55]OFD Sender: No OFD packet to send [17:24:00]OFD Sender: No OFD packet to send [17:24:05]OFD Sender: No OFD packet to send [17:24:10]OFD Sender: No OFD packet to send [17:24:15]OFD Sender: No OFD packet to send [17:24:20]OFD Sender: No OFD packet to send [17:24:25]OFD Sender: No OFD packet to send [17:24:30]OFD Sender: No OFD packet to send [17:24:35]OFD Sender: No OFD packet to send [17:24:40]OFD Sender: No OFD packet to send [17:24:45]OFD Sender: No OFD packet to send [17:24:50]OFD Sender: No OFD packet to send [17:24:55]OFD Sender: No OFD packet to send [17:25:00]OFD Sender: No OFD packet to send [17:25:05]OFD Sender: No OFD packet to send [17:25:10]OFD Sender: No OFD packet to send [17:25:15]OFD Sender: No OFD packet to send [17:25:20]OFD Sender: No OFD packet to send [17:25:25]OFD Sender: No OFD packet to send [17:25:30]OFD Sender: No OFD packet to send [17:25:35]OFD Sender: No OFD packet to send [17:25:40]OFD Sender: No OFD packet to send [17:25:45]OFD Sender: No OFD packet to send [17:25:50]OFD Sender: No OFD packet to send [17:25:55]OFD Sender: No OFD packet to send [17:26:00]OFD Sender: No OFD packet to send [17:26:05]OFD Sender: No OFD packet to send [17:26:10]OFD Sender: No OFD packet to send [17:26:15]OFD Sender: No OFD packet to send [17:26:20]OFD Sender: No OFD packet to send [17:26:25]OFD Sender: No OFD packet to send [17:26:30]OFD Sender: No OFD packet to send [17:26:35]OFD Sender: No OFD packet to send [17:26:40]OFD Sender: No OFD packet to send [17:26:45]OFD Sender: No OFD packet to send [17:26:50]OFD Sender: No OFD packet to send [17:26:55]OFD Sender: No OFD packet to send [17:27:00]OFD Sender: No OFD packet to send [17:27:05]OFD Sender: No OFD packet to send [17:27:10]OFD Sender: No OFD packet to send [17:27:15]OFD Sender: No OFD packet to send [17:27:20]OFD Sender: No OFD packet to send [17:27:25]OFD Sender: No OFD packet to send [17:27:30]OFD Sender: No OFD packet to send [17:27:35]OFD Sender: No OFD packet to send [17:27:40]OFD Sender: No OFD packet to send [17:27:45]OFD Sender: No OFD packet to send [17:27:50]OFD Sender: No OFD packet to send [17:27:55]OFD Sender: No OFD packet to send [17:28:00]OFD Sender: No OFD packet to send [17:28:05]OFD Sender: No OFD packet to send [17:28:10]OFD Sender: No OFD packet to send [17:28:15]OFD Sender: No OFD packet to send [17:28:20]OFD Sender: No OFD packet to send [17:28:25]OFD Sender: No OFD packet to send [17:28:30]OFD Sender: No OFD packet to send [17:28:35]OFD Sender: No OFD packet to send [17:28:40]OFD Sender: No OFD packet to send [17:28:45]OFD Sender: No OFD packet to send [17:28:50]OFD Sender: No OFD packet to send [17:28:55]OFD Sender: No OFD packet to send [17:29:00]OFD Sender: No OFD packet to send [17:29:05]OFD Sender: No OFD packet to send [17:29:10]OFD Sender: No OFD packet to send [17:29:15]OFD Sender: No OFD packet to send [17:29:20]OFD Sender: No OFD packet to send [17:29:21]accept exits with 9 [17:29:21]New connection [17:29:21]New thread 3067096420 created [17:29:21]Thread 3066953060 joined [17:29:21]Waiting for new connection... [17:29:21] Sock 9.Parse request [17:29:21]Sock 9.Check first char [17:29:21]Sock 9.First char is OK [17:29:21]request: POST /json_proto HTTP/1.0 [17:29:21]Method: POST [17:29:21]URL: /json_proto [17:29:21]Method is POST - this is cgi request [17:29:21]url: /json_proto [17:29:21]query_string will be loaded in cgi processing [17:29:21]execute_cgi json_proto POST (null) [17:29:21]execute_cgi path=json_proto method=POST [17:29:21]POST find Content-Length [17:29:21]Host: 172.17.45.7:8080 [17:29:21]Content-Length: 682 [17:29:21]Content-Type: application/json [17:29:21] [17:29:21]POST finish read [17:29:21]Found Content-Length = 682 [17:29:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 20.650, "sum" : 1400.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:21]execute_script... [17:29: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)949113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 20.650, "sum" : 1400.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:21]POST & json_proto [17:29:21]process_json_proto [17:29:21]json parsed OK: [17:29:21]protocol is kg_v1.0 [17:29:21]action value=close_receipt [17:29:21]process_action close_receipt [17:29:21]cmd_close_receipt [17:29:21]MH_GetDate [17:29:21]Write to MH i2c: F0 00 00 3C 10 3B [17:29:21]Write i2c OK [17:29:21]MH_I2C_Read... [17:29:21]Read from MH i2c: F0 [17:29:21]MH_I2C_Read... [17:29:21]Read from MH i2c: F0 09 00 [17:29:21]MH_I2C_Read... [17:29:21]Read from MH i2c: F0 09 00 3C 10 00 72 2E A5 66 90 0F 3E 66 32 [17:29:21]GetLastDocTimeStamp 1722100897 [17:29:21]current date 1722101362 [17:29:21]FM_GetShiftState [17:29:21]SAM_PROTO_GetShiftState [17:29:21]wFMCommunicate request_size=4 [17:29:21]MH_SAM_APDU [17:29:21]CAPDU: 80 13 01 00 [17:29:21]Write to MH i2c: E2 08 00 3D 10 80 13 01 00 00 00 00 00 CA [17:29:21]Write i2c OK [17:29:21]MH_I2C_Read... [17:29:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:21]Read from MH i2c: E2 [17:29:21]MH_I2C_Read... [17:29:21]Read from MH i2c: E2 0E 00 [17:29:21]MH_I2C_Read... [17:29:21]Read from MH i2c: E2 0E 00 3D 10 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 57 [17:29:21]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [17:29:21]wFMCommunicate OK [17:29:21]SAM_PROTO_GetShiftState done [17:29:21]FM_GetShiftState done [17:29:21]opened in 1722038845 [17:29:21]opened+sec_in_day 1722125245 [17:29:21]quantity*price = 140007 [17:29:21]sum+1 = 140008 [17:29:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.68 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 186 27.07.2024 17:29 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118243 ФПД: 78922286020655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T172922&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118243&fm=78922286020655&tin=02508201610067®Number=0000000000092660&sum=140000 [17:29:22]StoreToDocumentArchive [17:29:22]shift 432 fd 118243 [17:29:22]save to /storage/0432/doc_00118243 [17:29:22]save last doc name /storage/0432/doc_00118243 to /storage/kkm_last_doc_name [17:29:22]save OK [17:29:22]Clear old archive folders... [17:29:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:29:22]tlvbuf is B6EE43D0 [17:29:22]SAM_PROTO_ClearQueue [17:29:22]wFMCommunicate request_size=4 [17:29:22]MH_SAM_APDU [17:29:22]CAPDU: 80 09 00 00 [17:29:22]Write to MH i2c: E2 08 00 4A 10 80 09 00 00 00 00 00 00 CC [17:29:22]Write i2c OK [17:29:22]MH_I2C_Read... [17:29:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:29:22]Read from MH i2c: E2 [17:29:22]MH_I2C_Read... [17:29:22]Read from MH i2c: E2 03 00 [17:29:22]MH_I2C_Read... [17:29:22]Read from MH i2c: E2 03 00 4A 10 00 90 00 CE [17:29:22]RAPDU: 90 00 [17:29:22]wFMCommunicate OK [17:29:22]SAM_PROTO_ClearQueue done [17:29:22]KKMCreateOFDPacket [17:29:22]OFDProtocolAddRootSTLVToBuf [17:29:22]FM_MakeSignedData [17:29:22]FM_MakeSignedData [17:29:22]SAM_PROTO_SignData [17:29:22]wFMCommunicate request_size=4 [17:29:22]MH_SAM_APDU [17:29:22]CAPDU: 80 0D 01 02 [17:29:22]Write to MH i2c: E2 08 00 4B 10 80 0D 01 02 00 00 00 00 D4 [17:29:22]Write i2c OK [17:29:22]MH_I2C_Read... [17:29:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:29:22]Read from MH i2c: E2 [17:29:22]MH_I2C_Read... [17:29:22]Read from MH i2c: E2 03 00 [17:29:22]MH_I2C_Read... [17:29:22]Read from MH i2c: E2 03 00 4B 10 00 90 00 CF [17:29:22]RAPDU: 90 00 [17:29:22]wFMCommunicate OK [17:29:22]wFMCommunicate request_size=255 [17:29:22]MH_SAM_APDU [17:29: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 34 FF 03 08 00 03 AA 50 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E7 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 72 2E A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E3 CD 01 00 35 04 06 00 47 [17:29:22]Write to MH i2c: E2 02 01 4C 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 34 FF 03 08 00 03 AA 50 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E7 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 72 2E A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E3 CD 01 00 35 04 06 00 47 00 00 BD [17:29:22]Write i2c OK [17:29:22]MH_I2C_Read... [17:29:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:23]Read from MH i2c: E2 [17:29:23]MH_I2C_Read... [17:29:23]Read from MH i2c: E2 03 00 [17:29:23]MH_I2C_Read... [17:29:23]Read from MH i2c: E2 03 00 4C 10 00 90 00 D0 [17:29:23]RAPDU: 90 00 [17:29:23]wFMCommunicate OK [17:29:23]wFMCommunicate request_size=10 [17:29:23]MH_SAM_APDU [17:29:23]CAPDU: 80 0D 02 02 05 C7 86 D2 B8 2F [17:29:23]Write to MH i2c: E2 0D 00 4D 10 80 0D 02 02 05 00 C7 86 D2 B8 2F 00 00 E7 [17:29:23]Write i2c OK [17:29:23]MH_I2C_Read... [17:29:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:23]Read from MH i2c: E2 [17:29:23]MH_I2C_Read... [17:29:23]Read from MH i2c: E2 03 00 [17:29:23]MH_I2C_Read... [17:29:23]Read from MH i2c: E2 03 00 4D 10 00 90 00 D1 [17:29:23]RAPDU: 90 00 [17:29:23]wFMCommunicate OK [17:29:23]wFMCommunicate request_size=4 [17:29:23]MH_SAM_APDU [17:29:23]CAPDU: 80 0D 03 02 [17:29:23]Write to MH i2c: E2 08 00 4E 10 80 0D 03 02 00 00 00 00 D9 [17:29:23]Write i2c OK [17:29:23]MH_I2C_Read... [17:29:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:29:23]Read from MH i2c: E2 [17:29:23]MH_I2C_Read... [17:29:23]Read from MH i2c: E2 0B 00 [17:29:23]MH_I2C_Read... [17:29:23]Read from MH i2c: E2 0B 00 4E 10 00 59 5A 92 32 EC B7 1E 90 90 00 A2 [17:29:23]RAPDU: 59 5A 92 32 EC B7 1E 90 90 00 [17:29:23]wFMCommunicate OK [17:29:23]SAM_PROTO_SignData done [17:29:23]FM_MakeSignedData done [17:29:23]CreateOFDProtocolMessage [17:29:23]wFMCommunicate request_size=4 [17:29:23]MH_SAM_APDU [17:29:23]CAPDU: 80 11 00 00 [17:29:23]Write to MH i2c: E2 08 00 4F 10 80 11 00 00 00 00 00 00 D9 [17:29:23]Write i2c OK [17:29:23]MH_I2C_Read... [17:29:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:23]Read from MH i2c: E2 [17:29:23]MH_I2C_Read... [17:29:23]Read from MH i2c: E2 17 00 [17:29:23]MH_I2C_Read... [17:29:23]Read from MH i2c: E2 17 00 4F 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 34 [17:29:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:29:23]wFMCommunicate OK [17:29:23]CreateOFDProtocolMessage done [17:29:23]OFDSenderStorePacket 118243 [17:29:23]StoreOFDPacket docnum=118243 [17:29:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 CE F3 07 01 00 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AA 50 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E7 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 72 2E A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E3 CD 01 00 35 04 06 00 47 C7 86 D2 B8 2F 59 5A 92 32 EC B7 1E 90 [17:29:23]CheckFolder [17:29:23]dirname=/storage/ofd_packets [17:29:23]CheckFolder done [17:29:23]ProducePacketName [17:29:23]name=ofd_packets/00118243 [17:29:23]NVStorageSaveData ofd_packets/00118243 [17:29:23]File name is /storage/ofd_packets/00118243 [17:29:23]Write 301 bytes [17:29:23]NVStorageSaveData done [17:29:23]OFDSenderStorePacket done [17:29:23]KKMCreateOFDPacket done [17:29:23]NVStorageSaveData kkm_last_timestamp [17:29:23]File name is /storage/kkm_last_timestamp [17:29:23]Write 4 bytes [17:29:23]NVStorageSaveData done [17:29:23]ExternCall_PrintAddStr [17:29:23]wPrintStart [17:29:23]Write to MH i2c: 01 00 00 50 10 60 [17:29:23]Write i2c OK [17:29:23]MH_I2C_Read... [17:29:23]Read from MH i2c: 01 [17:29:23]MH_I2C_Read... [17:29:23]Read from MH i2c: 01 07 00 [17:29:23]MH_I2C_Read... [17:29:23]Read from MH i2c: 01 07 00 50 10 00 00 00 00 00 FF 0F 75 [17:29:23]RasterBufferAndPrint [17:29:23]line Счет N : (1)949113 [17:29:23]line ИНН: 02508201610067 [17:29:23]line Контрольно-Кассовый Чек [17:29:23]line ПРОДАЖА [17:29:23]line ТРК (МРК, ГНК) : 51 [17:29:23]line Товар: 2710124130 [17:29:23]line Аи-92-К-4 [17:29:23]line 20.650 * 67.80 [17:29:23]line = 1400.07 [17:29:23]line НДС 12% НСП 1% [17:29:23]line > о реализуемом товаре [17:29:23]line ОКРУГЛЕНИЕ: -0.07 [17:29:23]line ИТОГО: 1400.00 [17:29:23]line Внесено: 1400.00 [17:29:23]line СДАЧА: 0.00 [17:29:23]line НСП 1% : 12.39 [17:29:23]line НДС 12% : 148.68 [17:29:23]line Наличными: 1400.00 [17:29:23]line Безнал.: 0.00 [17:29:23]line Место: АЗС № 134 "Партнер Нефть" [17:29:23]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:29:23]line СНО: Общий режим [17:29:23]line Чек 186 27.07.2024 17:29 [17:29:23]line Смена: 432 ФФД: 1.0 [17:29:23]line ЗНМ: 0300000044 [17:29:23]line РНМ: 0000000000092660 [17:29:23]line Версия ККМ: 001 [17:29:23]line ФМ: 0000000000874939 [17:29:23]line ФД: 118243 [17:29:23]line ФПД: 78922286020655 [17:29:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T172922&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118243&fm=78922286020655&tin=02508201610067®Number=0000000000092660&sum=140000 [17:29:23]OFD Sender: Processing packet 118243 [packets to send 86, broken 85] [17:29:23]ProducePacketName [17:29:23]name=ofd_packets/00118243 [17:29:23]OFD Sender: To server: pG, [17:29:23]CommunicateWithHost lk.salyk.kg:30040 [17:29:23]ConnectInit lk.salyk.kg [17:29:23]written 0, free lines is 4095 [17:29:23]Connected sock=10 [17:29:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 CE F3 07 01 00 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AA 50 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E7 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 72 2E A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E3 CD 01 00 35 04 06 00 47 C7 86 D2 B8 2F 59 5A 92 32 EC B7 1E 90 [17:29:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A4 8B 47 00 7F 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E3 CD 01 00 F4 03 04 00 04 DC A4 66 B6 04 01 00 00 EB 98 60 3F 39 8D FA C1 [17:29:23]CommunicateWithHost err = 0 [17:29:23]CheckOFDResponse [17:29:23]1017 (14) - 77093643461234 [17:29:23]1041 (16) - 0000000000874939 [17:29:23]1040 (4) - 118243 [17:29:23]1012 (4) - 27.07.2024 11:37 [17:29:23]1206 (1) - 0 [17:29:23]OFD Sender: Remove packet 118243 [17:29:23]ProducePacketName [17:29:23]name=ofd_packets/00118243 [17:29:23]NVStorageDeleteData [17:29:23]Write to MH i2c: 01 00 00 7A 10 8A [17:29:23]Write i2c OK [17:29:23]MH_I2C_Read... [17:29:23]Read from MH i2c: 01 [17:29:23]MH_I2C_Read... [17:29:23]Read from MH i2c: 01 07 00 [17:29:23]MH_I2C_Read... [17:29:23]Read from MH i2c: 01 07 00 7A 10 00 00 00 00 00 D9 0C 76 [17:29:23]RasterBufferAndPrint [17:29:23]line [17:29:23]line [17:29:23]line [17:29:23]line [17:29:23]line [17:29:23]written 0, free lines is 3296 [17:29:23]MH_Cut [17:29:23]Write to MH i2c: D1 01 00 81 10 01 63 [17:29:23]Write i2c OK [17:29:23]MH_I2C_Read... [17:29:23]Read from MH i2c: D1 [17:29:23]MH_I2C_Read... [17:29:24]Read from MH i2c: D1 01 00 [17:29:24]MH_I2C_Read... [17:29:24]Read from MH i2c: D1 01 00 81 10 00 62 [17:29:24]Write to MH i2c: 01 00 00 82 10 92 [17:29:24]Write i2c OK [17:29:24]MH_I2C_Read... [17:29:24]OFD Sender: No OFD packet to send [17:29:24]*** Cut start [17:29:24]*** Partial cut [17:29:24]*** CUTSNS_PIN = 1 [17:29:24]*** CUTSNS_PIN = 0 [17:29:24]*** Brake cut motor [17:29:25]Read from MH i2c: 01 [17:29:25]MH_I2C_Read... [17:29:25]*** Stop cut motor [17:29:25]*** Cut end [17:29:25]Read from MH i2c: 01 07 00 [17:29:25]MH_I2C_Read... [17:29:25]Read from MH i2c: 01 07 00 82 10 00 00 00 00 00 FF 0F A7 [17:29:25]process_action close_receipt done [17:29:25]requested_data is exist [17:29:25]produce_requested_data [17:29:25]requested_item fm.sn is exist - process it [17:29:25]wFMCommunicate request_size=4 [17:29:25]MH_SAM_APDU [17:29:25]CAPDU: 80 11 00 00 [17:29:25]Write to MH i2c: E2 08 00 83 10 80 11 00 00 00 00 00 00 0D [17:29:25]Write i2c OK [17:29:25]MH_I2C_Read... [17:29:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:25]Read from MH i2c: E2 [17:29:25]MH_I2C_Read... [17:29:25]Read from MH i2c: E2 17 00 [17:29:25]MH_I2C_Read... [17:29:25]Read from MH i2c: E2 17 00 83 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 68 [17:29:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:29:25]wFMCommunicate OK [17:29:25]requested_item fd.num is exist - process it [17:29:25]SAM_PROTO_GetFieldsCounters [17:29:25]wFMCommunicate request_size=4 [17:29:25]MH_SAM_APDU [17:29:25]CAPDU: 80 13 00 00 [17:29:25]Write to MH i2c: E2 08 00 84 10 80 13 00 00 00 00 00 00 10 [17:29:25]Write i2c OK [17:29:25]MH_I2C_Read... [17:29:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:29:25]Read from MH i2c: E2 [17:29:25]MH_I2C_Read... [17:29:25]Read from MH i2c: E2 62 00 [17:29:25]MH_I2C_Read... [17:29:25]Read from MH i2c: E2 62 00 84 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E3 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [17:29:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E3 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:29:25]wFMCommunicate OK [17:29:25]SAM_PROTO_GetFieldsCounters done [17:29:25]requested_item shift.num is exist - process it [17:29:25]requested_item shift.opened is exist - process it [17:29:25]req_shift_opened [17:29:25]FM_GetShiftState [17:29:25]SAM_PROTO_GetShiftState [17:29:25]wFMCommunicate request_size=4 [17:29:25]MH_SAM_APDU [17:29:25]CAPDU: 80 13 01 00 [17:29:25]Write to MH i2c: E2 08 00 85 10 80 13 01 00 00 00 00 00 12 [17:29:25]Write i2c OK [17:29:25]MH_I2C_Read... [17:29:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:25]Read from MH i2c: E2 [17:29:25]MH_I2C_Read... [17:29:25]Read from MH i2c: E2 0E 00 [17:29:25]MH_I2C_Read... [17:29:25]Read from MH i2c: E2 0E 00 85 10 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 9F [17:29:25]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [17:29:25]wFMCommunicate OK [17:29:25]SAM_PROTO_GetShiftState done [17:29:25]FM_GetShiftState done [17:29:25]req_shift_opened done [17:29:25]requested_item shift.open_date is exist - process it [17:29:25]req_shift_open_date [17:29:25]req_shift_open_date done [17:29:25]produce_requested_data done [17:29:25]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118243,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [17:29:25]process_action_free close_receipt [17:29:25]json_value_free [17:29:25]json_value_free done [17:29:25]process_json_proto returns [17:29:25]Send response to host [17:29:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118243,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [17:29:25]free response buf [17:29:25]execute_script done [17:29:25]execute_script returns [17:29:25]free content buf [17:29:25]Sock 9.Close socket [17:29:25]Sock 9.Thread stoped [17:29:29]OFD Sender: No OFD packet to send [17:29:34]OFD Sender: No OFD packet to send [17:29:39]OFD Sender: No OFD packet to send [17:29:44]OFD Sender: No OFD packet to send [17:29:49]OFD Sender: No OFD packet to send [17:29:54]OFD Sender: No OFD packet to send [17:29:59]OFD Sender: No OFD packet to send [17:30:04]OFD Sender: No OFD packet to send [17:30:09]OFD Sender: No OFD packet to send [17:30:14]OFD Sender: No OFD packet to send [17:30:19]OFD Sender: No OFD packet to send [17:30:24]OFD Sender: No OFD packet to send [17:30:29]OFD Sender: No OFD packet to send [17:30:34]OFD Sender: No OFD packet to send [17:30:39]OFD Sender: No OFD packet to send [17:30:44]OFD Sender: No OFD packet to send [17:30:49]OFD Sender: No OFD packet to send [17:30:54]OFD Sender: No OFD packet to send [17:30:59]OFD Sender: No OFD packet to send [17:31:04]OFD Sender: No OFD packet to send [17:31:09]OFD Sender: No OFD packet to send [17:31:14]OFD Sender: No OFD packet to send [17:31:19]OFD Sender: No OFD packet to send [17:31:24]OFD Sender: No OFD packet to send [17:31:29]OFD Sender: No OFD packet to send [17:31:34]OFD Sender: No OFD packet to send [17:31:39]OFD Sender: No OFD packet to send [17:31:44]OFD Sender: No OFD packet to send [17:31:49]OFD Sender: No OFD packet to send [17:31:54]OFD Sender: No OFD packet to send [17:31:59]OFD Sender: No OFD packet to send [17:32:04]OFD Sender: No OFD packet to send [17:32:09]OFD Sender: No OFD packet to send [17:32:14]OFD Sender: No OFD packet to send [17:32:19]OFD Sender: No OFD packet to send [17:32:24]OFD Sender: No OFD packet to send [17:32:29]OFD Sender: No OFD packet to send [17:32:34]OFD Sender: No OFD packet to send [17:32:39]OFD Sender: No OFD packet to send [17:32:44]OFD Sender: No OFD packet to send [17:32:49]OFD Sender: No OFD packet to send [17:32:54]OFD Sender: No OFD packet to send [17:32:59]OFD Sender: No OFD packet to send [17:33:04]OFD Sender: No OFD packet to send [17:33:09]OFD Sender: No OFD packet to send [17:33:14]OFD Sender: No OFD packet to send [17:33:19]OFD Sender: No OFD packet to send [17:33:24]OFD Sender: No OFD packet to send [17:33:29]OFD Sender: No OFD packet to send [17:33:34]OFD Sender: No OFD packet to send [17:33:39]OFD Sender: No OFD packet to send [17:33:44]OFD Sender: No OFD packet to send [17:33:49]OFD Sender: No OFD packet to send [17:33:54]OFD Sender: No OFD packet to send [17:33:59]OFD Sender: No OFD packet to send [17:34:04]OFD Sender: No OFD packet to send [17:34:09]OFD Sender: No OFD packet to send [17:34:14]OFD Sender: No OFD packet to send [17:34:19]OFD Sender: No OFD packet to send [17:34:24]OFD Sender: No OFD packet to send [17:34:29]OFD Sender: No OFD packet to send [17:34:34]OFD Sender: No OFD packet to send [17:34:39]OFD Sender: No OFD packet to send [17:34:44]OFD Sender: No OFD packet to send [17:34:49]OFD Sender: No OFD packet to send [17:34:54]OFD Sender: No OFD packet to send [17:34:59]OFD Sender: No OFD packet to send [17:35:04]OFD Sender: No OFD packet to send [17:35:09]OFD Sender: No OFD packet to send [17:35:14]OFD Sender: No OFD packet to send [17:35:19]OFD Sender: No OFD packet to send [17:35:24]OFD Sender: No OFD packet to send [17:35:29]OFD Sender: No OFD packet to send [17:35:34]OFD Sender: No OFD packet to send [17:35:39]OFD Sender: No OFD packet to send [17:35:44]OFD Sender: No OFD packet to send [17:35:49]OFD Sender: No OFD packet to send [17:35:54]OFD Sender: No OFD packet to send [17:35:59]OFD Sender: No OFD packet to send [17:36:04]OFD Sender: No OFD packet to send [17:36:09]OFD Sender: No OFD packet to send [17:36:14]OFD Sender: No OFD packet to send [17:36:19]OFD Sender: No OFD packet to send [17:36:24]OFD Sender: No OFD packet to send [17:36:29]OFD Sender: No OFD packet to send [17:36:34]OFD Sender: No OFD packet to send [17:36:39]OFD Sender: No OFD packet to send [17:36:44]OFD Sender: No OFD packet to send [17:36:49]OFD Sender: No OFD packet to send [17:36:54]OFD Sender: No OFD packet to send [17:36:59]OFD Sender: No OFD packet to send [17:37:04]OFD Sender: No OFD packet to send [17:37:09]OFD Sender: No OFD packet to send [17:37:14]OFD Sender: No OFD packet to send [17:37:19]OFD Sender: No OFD packet to send [17:37:24]OFD Sender: No OFD packet to send [17:37:29]OFD Sender: No OFD packet to send [17:37:34]OFD Sender: No OFD packet to send [17:37:39]OFD Sender: No OFD packet to send [17:37:44]OFD Sender: No OFD packet to send [17:37:49]OFD Sender: No OFD packet to send [17:37:54]OFD Sender: No OFD packet to send [17:37:59]OFD Sender: No OFD packet to send [17:38:04]OFD Sender: No OFD packet to send [17:38:09]OFD Sender: No OFD packet to send [17:38:14]OFD Sender: No OFD packet to send [17:38:19]OFD Sender: No OFD packet to send [17:38:24]OFD Sender: No OFD packet to send [17:38:29]OFD Sender: No OFD packet to send [17:38:34]OFD Sender: No OFD packet to send [17:38:39]OFD Sender: No OFD packet to send [17:38:44]OFD Sender: No OFD packet to send [17:38:49]OFD Sender: No OFD packet to send [17:38:54]OFD Sender: No OFD packet to send [17:38:59]OFD Sender: No OFD packet to send [17:39:04]OFD Sender: No OFD packet to send [17:39:09]OFD Sender: No OFD packet to send [17:39:14]OFD Sender: No OFD packet to send [17:39:19]OFD Sender: No OFD packet to send [17:39:24]OFD Sender: No OFD packet to send [17:39:29]OFD Sender: No OFD packet to send [17:39:35]OFD Sender: No OFD packet to send [17:39:40]OFD Sender: No OFD packet to send [17:39:45]OFD Sender: No OFD packet to send [17:39:50]OFD Sender: No OFD packet to send [17:39:55]OFD Sender: No OFD packet to send [17:40:00]OFD Sender: No OFD packet to send [17:40:05]OFD Sender: No OFD packet to send [17:40:10]OFD Sender: No OFD packet to send [17:40:10]accept exits with 7 [17:40:10]New connection [17:40:10]New thread 3066953060 created [17:40:10]Thread 3067096420 joined [17:40:10]Waiting for new connection... [17:40:10] Sock 7.Parse request [17:40:10]Sock 7.Check first char [17:40:10]Sock 7.First char is OK [17:40:10]request: POST /json_proto HTTP/1.0 [17:40:10]Method: POST [17:40:10]URL: /json_proto [17:40:10]Method is POST - this is cgi request [17:40:10]url: /json_proto [17:40:10]query_string will be loaded in cgi processing [17:40:10]execute_cgi json_proto POST (null) [17:40:10]execute_cgi path=json_proto method=POST [17:40:10]POST find Content-Length [17:40:10]Host: 172.17.45.7:8080 [17:40:10]Content-Length: 677 [17:40:10]Content-Type: application/json [17:40:10] [17:40:10]POST finish read [17:40:10]Found Content-Length = 677 [17:40:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:40:10]execute_script... [17:40: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)949114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:40:10]POST & json_proto [17:40:10]process_json_proto [17:40:10]json parsed OK: [17:40:10]protocol is kg_v1.0 [17:40:10]action value=close_receipt [17:40:10]process_action close_receipt [17:40:10]cmd_close_receipt [17:40:10]MH_GetDate [17:40:10]Write to MH i2c: F0 00 00 86 10 85 [17:40:10]Write i2c OK [17:40:10]MH_I2C_Read... [17:40:10]Read from MH i2c: F0 [17:40:10]MH_I2C_Read... [17:40:10]Read from MH i2c: F0 09 00 [17:40:10]MH_I2C_Read... [17:40:10]Read from MH i2c: F0 09 00 86 10 00 FA 30 A5 66 90 0F 3E 66 06 [17:40:10]GetLastDocTimeStamp 1722101362 [17:40:10]current date 1722102010 [17:40:10]FM_GetShiftState [17:40:10]SAM_PROTO_GetShiftState [17:40:10]wFMCommunicate request_size=4 [17:40:10]MH_SAM_APDU [17:40:10]CAPDU: 80 13 01 00 [17:40:10]Write to MH i2c: E2 08 00 87 10 80 13 01 00 00 00 00 00 14 [17:40:10]Write i2c OK [17:40:10]MH_I2C_Read... [17:40:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:10]Read from MH i2c: E2 [17:40:10]MH_I2C_Read... [17:40:10]Read from MH i2c: E2 0E 00 [17:40:10]MH_I2C_Read... [17:40:10]Read from MH i2c: E2 0E 00 87 10 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 A1 [17:40:10]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [17:40:10]wFMCommunicate OK [17:40:10]SAM_PROTO_GetShiftState done [17:40:10]FM_GetShiftState done [17:40:10]opened in 1722038845 [17:40:10]opened+sec_in_day 1722125245 [17:40:10]quantity*price = 50036 [17:40:10]sum+1 = 50037 [17:40:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 187 27.07.2024 17:40 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118244 ФПД: 266430136473689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T174010&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118244&fm=266430136473689&tin=02508201610067®Number=0000000000092660&sum=50000 [17:40:11]StoreToDocumentArchive [17:40:11]shift 432 fd 118244 [17:40:11]save to /storage/0432/doc_00118244 [17:40:11]save last doc name /storage/0432/doc_00118244 to /storage/kkm_last_doc_name [17:40:11]save OK [17:40:11]Clear old archive folders... [17:40:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:40:11]tlvbuf is 01DF5C80 [17:40:11]SAM_PROTO_ClearQueue [17:40:11]wFMCommunicate request_size=4 [17:40:11]MH_SAM_APDU [17:40:11]CAPDU: 80 09 00 00 [17:40:11]Write to MH i2c: E2 08 00 94 10 80 09 00 00 00 00 00 00 16 [17:40:11]Write i2c OK [17:40:11]MH_I2C_Read... [17:40:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:40:11]Read from MH i2c: E2 [17:40:11]MH_I2C_Read... [17:40:11]Read from MH i2c: E2 03 00 [17:40:11]MH_I2C_Read... [17:40:11]Read from MH i2c: E2 03 00 94 10 00 90 00 18 [17:40:11]RAPDU: 90 00 [17:40:11]wFMCommunicate OK [17:40:11]SAM_PROTO_ClearQueue done [17:40:11]KKMCreateOFDPacket [17:40:11]OFDProtocolAddRootSTLVToBuf [17:40:11]FM_MakeSignedData [17:40:11]FM_MakeSignedData [17:40:11]SAM_PROTO_SignData [17:40:11]wFMCommunicate request_size=4 [17:40:11]MH_SAM_APDU [17:40:11]CAPDU: 80 0D 01 02 [17:40:11]Write to MH i2c: E2 08 00 95 10 80 0D 01 02 00 00 00 00 1E [17:40:11]Write i2c OK [17:40:11]MH_I2C_Read... [17:40:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:40:11]Read from MH i2c: E2 [17:40:11]MH_I2C_Read... [17:40:11]Read from MH i2c: E2 03 00 [17:40:11]MH_I2C_Read... [17:40:11]Read from MH i2c: E2 03 00 95 10 00 90 00 19 [17:40:11]RAPDU: 90 00 [17:40:11]wFMCommunicate OK [17:40:11]wFMCommunicate request_size=255 [17:40:11]MH_SAM_APDU [17:40: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BB 00 00 00 F4 03 04 00 FA 30 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E4 CD 01 00 35 04 06 00 F2 [17:40:11]Write to MH i2c: E2 02 01 96 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BB 00 00 00 F4 03 04 00 FA 30 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E4 CD 01 00 35 04 06 00 F2 00 00 E7 [17:40:11]Write i2c OK [17:40:11]MH_I2C_Read... [17:40:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:11]Read from MH i2c: E2 [17:40:11]MH_I2C_Read... [17:40:11]Read from MH i2c: E2 03 00 [17:40:11]MH_I2C_Read... [17:40:11]Read from MH i2c: E2 03 00 96 10 00 90 00 1A [17:40:11]RAPDU: 90 00 [17:40:11]wFMCommunicate OK [17:40:11]wFMCommunicate request_size=10 [17:40:11]MH_SAM_APDU [17:40:11]CAPDU: 80 0D 02 02 05 51 19 A4 58 59 [17:40:11]Write to MH i2c: E2 0D 00 97 10 80 0D 02 02 05 00 51 19 A4 58 59 00 00 EA [17:40:11]Write i2c OK [17:40:11]MH_I2C_Read... [17:40:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:11]Read from MH i2c: E2 [17:40:11]MH_I2C_Read... [17:40:11]Read from MH i2c: E2 03 00 [17:40:11]MH_I2C_Read... [17:40:11]Read from MH i2c: E2 03 00 97 10 00 90 00 1B [17:40:11]RAPDU: 90 00 [17:40:11]wFMCommunicate OK [17:40:11]wFMCommunicate request_size=4 [17:40:11]MH_SAM_APDU [17:40:11]CAPDU: 80 0D 03 02 [17:40:11]Write to MH i2c: E2 08 00 98 10 80 0D 03 02 00 00 00 00 23 [17:40:11]Write i2c OK [17:40:11]MH_I2C_Read... [17:40:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:40:11]Read from MH i2c: E2 [17:40:11]MH_I2C_Read... [17:40:11]Read from MH i2c: E2 0B 00 [17:40:11]MH_I2C_Read... [17:40:11]Read from MH i2c: E2 0B 00 98 10 00 4E EC 29 E9 E8 57 00 3A 90 00 E9 [17:40:11]RAPDU: 4E EC 29 E9 E8 57 00 3A 90 00 [17:40:11]wFMCommunicate OK [17:40:11]SAM_PROTO_SignData done [17:40:11]FM_MakeSignedData done [17:40:11]CreateOFDProtocolMessage [17:40:11]wFMCommunicate request_size=4 [17:40:11]MH_SAM_APDU [17:40:11]CAPDU: 80 11 00 00 [17:40:11]Write to MH i2c: E2 08 00 99 10 80 11 00 00 00 00 00 00 23 [17:40:11]Write i2c OK [17:40:11]MH_I2C_Read... [17:40:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:11]Read from MH i2c: E2 [17:40:11]MH_I2C_Read... [17:40:11]Read from MH i2c: E2 17 00 [17:40:11]MH_I2C_Read... [17:40:11]Read from MH i2c: E2 17 00 99 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7E [17:40:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:40:11]wFMCommunicate OK [17:40:11]CreateOFDProtocolMessage done [17:40:11]OFDSenderStorePacket 118244 [17:40:11]StoreOFDPacket docnum=118244 [17:40:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 1D 2A 07 01 86 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BB 00 00 00 F4 03 04 00 FA 30 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E4 CD 01 00 35 04 06 00 F2 51 19 A4 58 59 4E EC 29 E9 E8 57 00 3A [17:40:11]CheckFolder [17:40:11]dirname=/storage/ofd_packets [17:40:11]CheckFolder done [17:40:11]ProducePacketName [17:40:11]name=ofd_packets/00118244 [17:40:11]NVStorageSaveData ofd_packets/00118244 [17:40:11]File name is /storage/ofd_packets/00118244 [17:40:11]Write 301 bytes [17:40:11]NVStorageSaveData done [17:40:11]OFDSenderStorePacket done [17:40:11]KKMCreateOFDPacket done [17:40:11]NVStorageSaveData kkm_last_timestamp [17:40:11]File name is /storage/kkm_last_timestamp [17:40:11]Write 4 bytes [17:40:11]NVStorageSaveData done [17:40:11]OFD Sender: Processing packet 118244 [packets to send 86, broken 85] [17:40:11]ProducePacketName [17:40:11]name=ofd_packets/00118244 [17:40:11]OFD Sender: To server: pG, [17:40:11]CommunicateWithHost lk.salyk.kg:30040 [17:40:11]ConnectInit lk.salyk.kg [17:40:11]ExternCall_PrintAddStr [17:40:11]wPrintStart [17:40:11]Write to MH i2c: 01 00 00 9A 10 AA [17:40:11]Write i2c OK [17:40:11]MH_I2C_Read... [17:40:11]Read from MH i2c: 01 [17:40:11]MH_I2C_Read... [17:40:11]Read from MH i2c: 01 07 00 [17:40:11]MH_I2C_Read... [17:40:11]Read from MH i2c: 01 07 00 9A 10 00 00 00 00 00 FF 0F BF [17:40:11]RasterBufferAndPrint [17:40:11]line Счет N : (1)949114 [17:40:11]line ИНН: 02508201610067 [17:40:11]line Контрольно-Кассовый Чек [17:40:11]line ПРОДАЖА [17:40:11]line ТРК (МРК, ГНК) : 41 [17:40:11]line Товар: 2710124130 [17:40:11]line Аи-92-К-4 [17:40:11]line 7.380 * 67.80 [17:40:11]line = 500.36 [17:40:11]line НДС 12% НСП 1% [17:40:11]line > о реализуемом товаре [17:40:11]line ОКРУГЛЕНИЕ: -0.36 [17:40:11]line ИТОГО: 500.00 [17:40:11]line Внесено: 500.00 [17:40:11]line СДАЧА: 0.00 [17:40:11]line НСП 1% : 4.43 [17:40:11]line НДС 12% : 53.14 [17:40:11]line Наличными: 500.00 [17:40:11]line Безнал.: 0.00 [17:40:11]line Место: АЗС № 134 "Партнер Нефть" [17:40:11]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:40:11]line СНО: Общий режим [17:40:11]line Чек 187 27.07.2024 17:40 [17:40:11]line Смена: 432 ФФД: 1.0 [17:40:11]line ЗНМ: 0300000044 [17:40:11]line РНМ: 0000000000092660 [17:40:11]line Версия ККМ: 001 [17:40:11]line ФМ: 0000000000874939 [17:40:11]line ФД: 118244 [17:40:11]line ФПД: 266430136473689 [17:40:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T174010&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118244&fm=266430136473689&tin=02508201610067®Number=0000000000092660&sum=50000 [17:40:12]Connected sock=11 [17:40:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 1D 2A 07 01 86 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BB 00 00 00 F4 03 04 00 FA 30 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E4 CD 01 00 35 04 06 00 F2 51 19 A4 58 59 4E EC 29 E9 E8 57 00 3A [17:40:12]written 0, free lines is 4095 [17:40:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 5E 99 47 00 23 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E4 CD 01 00 F4 03 04 00 8D DE A4 66 B6 04 01 00 00 0F 96 5E 16 E2 DE A9 93 [17:40:12]CommunicateWithHost err = 0 [17:40:12]CheckOFDResponse [17:40:12]1017 (14) - 77093643461234 [17:40:12]1041 (16) - 0000000000874939 [17:40:12]1040 (4) - 118244 [17:40:12]1012 (4) - 27.07.2024 11:48 [17:40:12]1206 (1) - 0 [17:40:12]OFD Sender: Remove packet 118244 [17:40:12]ProducePacketName [17:40:12]name=ofd_packets/00118244 [17:40:12]NVStorageDeleteData [17:40:12]Write to MH i2c: 01 00 00 C4 10 D4 [17:40:12]Write i2c OK [17:40:12]MH_I2C_Read... [17:40:12]Read from MH i2c: 01 [17:40:12]MH_I2C_Read... [17:40:12]Read from MH i2c: 01 07 00 [17:40:12]MH_I2C_Read... [17:40:12]Read from MH i2c: 01 07 00 C4 10 00 00 00 00 00 D5 0C BC [17:40:12]RasterBufferAndPrint [17:40:12]line [17:40:12]line [17:40:12]line [17:40:12]line [17:40:12]line [17:40:12]written 0, free lines is 3293 [17:40:12]MH_Cut [17:40:12]Write to MH i2c: D1 01 00 CB 10 01 AD [17:40:12]Write i2c OK [17:40:12]MH_I2C_Read... [17:40:12]Read from MH i2c: D1 [17:40:12]MH_I2C_Read... [17:40:12]Read from MH i2c: D1 01 00 [17:40:12]MH_I2C_Read... [17:40:12]Read from MH i2c: D1 01 00 CB 10 00 AC [17:40:12]Write to MH i2c: 01 00 00 CC 10 DC [17:40:12]Write i2c OK [17:40:12]MH_I2C_Read... [17:40:12]OFD Sender: No OFD packet to send [17:40:13]*** Cut start [17:40:13]*** Partial cut [17:40:13]*** CUTSNS_PIN = 1 [17:40:13]*** CUTSNS_PIN = 0 [17:40:13]*** Brake cut motor [17:40:13]Read from MH i2c: 01 [17:40:13]MH_I2C_Read... [17:40:13]*** Stop cut motor [17:40:13]*** Cut end [17:40:13]Read from MH i2c: 01 07 00 [17:40:13]MH_I2C_Read... [17:40:13]Read from MH i2c: 01 07 00 CC 10 00 00 00 00 00 FF 0F F1 [17:40:13]process_action close_receipt done [17:40:13]requested_data is exist [17:40:13]produce_requested_data [17:40:13]requested_item fm.sn is exist - process it [17:40:13]wFMCommunicate request_size=4 [17:40:13]MH_SAM_APDU [17:40:13]CAPDU: 80 11 00 00 [17:40:13]Write to MH i2c: E2 08 00 CD 10 80 11 00 00 00 00 00 00 57 [17:40:13]Write i2c OK [17:40:13]MH_I2C_Read... [17:40:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:14]Read from MH i2c: E2 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: E2 17 00 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: E2 17 00 CD 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B2 [17:40:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:40:14]wFMCommunicate OK [17:40:14]requested_item fd.num is exist - process it [17:40:14]SAM_PROTO_GetFieldsCounters [17:40:14]wFMCommunicate request_size=4 [17:40:14]MH_SAM_APDU [17:40:14]CAPDU: 80 13 00 00 [17:40:14]Write to MH i2c: E2 08 00 CE 10 80 13 00 00 00 00 00 00 5A [17:40:14]Write i2c OK [17:40:14]MH_I2C_Read... [17:40:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:40:14]Read from MH i2c: E2 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: E2 62 00 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: E2 62 00 CE 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E4 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [17:40:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E4 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:40:14]wFMCommunicate OK [17:40:14]SAM_PROTO_GetFieldsCounters done [17:40:14]requested_item shift.num is exist - process it [17:40:14]requested_item shift.opened is exist - process it [17:40:14]req_shift_opened [17:40:14]FM_GetShiftState [17:40:14]SAM_PROTO_GetShiftState [17:40:14]wFMCommunicate request_size=4 [17:40:14]MH_SAM_APDU [17:40:14]CAPDU: 80 13 01 00 [17:40:14]Write to MH i2c: E2 08 00 CF 10 80 13 01 00 00 00 00 00 5C [17:40:14]Write i2c OK [17:40:14]MH_I2C_Read... [17:40:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:14]Read from MH i2c: E2 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: E2 0E 00 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: E2 0E 00 CF 10 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 E9 [17:40:14]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [17:40:14]wFMCommunicate OK [17:40:14]SAM_PROTO_GetShiftState done [17:40:14]FM_GetShiftState done [17:40:14]req_shift_opened done [17:40:14]requested_item shift.open_date is exist - process it [17:40:14]req_shift_open_date [17:40:14]req_shift_open_date done [17:40:14]produce_requested_data done [17:40:14]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118244,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [17:40:14]process_action_free close_receipt [17:40:14]json_value_free [17:40:14]json_value_free done [17:40:14]process_json_proto returns [17:40:14]Send response to host [17:40:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118244,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [17:40:14]free response buf [17:40:14]execute_script done [17:40:14]execute_script returns [17:40:14]free content buf [17:40:14]Sock 7.Close socket [17:40:14]Sock 7.Thread stoped [17:40:17]OFD Sender: No OFD packet to send [17:40:22]OFD Sender: No OFD packet to send [17:40:27]OFD Sender: No OFD packet to send [17:40:32]OFD Sender: No OFD packet to send [17:40:37]OFD Sender: No OFD packet to send [17:40:42]OFD Sender: No OFD packet to send [17:40:47]OFD Sender: No OFD packet to send [17:40:52]OFD Sender: No OFD packet to send [17:40:57]OFD Sender: No OFD packet to send [17:41:02]OFD Sender: No OFD packet to send [17:41:07]OFD Sender: No OFD packet to send [17:41:12]OFD Sender: No OFD packet to send [17:41:17]OFD Sender: No OFD packet to send [17:41:22]OFD Sender: No OFD packet to send [17:41:27]OFD Sender: No OFD packet to send [17:41:32]OFD Sender: No OFD packet to send [17:41:37]OFD Sender: No OFD packet to send [17:41:42]OFD Sender: No OFD packet to send [17:41:47]OFD Sender: No OFD packet to send [17:41:52]OFD Sender: No OFD packet to send [17:41:58]OFD Sender: No OFD packet to send [17:42:03]OFD Sender: No OFD packet to send [17:42:08]OFD Sender: No OFD packet to send [17:42:13]OFD Sender: No OFD packet to send [17:42:18]OFD Sender: No OFD packet to send [17:42:23]OFD Sender: No OFD packet to send [17:42:28]OFD Sender: No OFD packet to send [17:42:33]OFD Sender: No OFD packet to send [17:42:38]OFD Sender: No OFD packet to send [17:42:43]OFD Sender: No OFD packet to send [17:42:48]OFD Sender: No OFD packet to send [17:42:53]OFD Sender: No OFD packet to send [17:42:58]OFD Sender: No OFD packet to send [17:43:03]OFD Sender: No OFD packet to send [17:43:08]OFD Sender: No OFD packet to send [17:43:13]OFD Sender: No OFD packet to send [17:43:18]OFD Sender: No OFD packet to send [17:43:23]OFD Sender: No OFD packet to send [17:43:28]OFD Sender: No OFD packet to send [17:43:33]OFD Sender: No OFD packet to send [17:43:38]OFD Sender: No OFD packet to send [17:43:43]OFD Sender: No OFD packet to send [17:43:48]OFD Sender: No OFD packet to send [17:43:53]OFD Sender: No OFD packet to send [17:43:58]OFD Sender: No OFD packet to send [17:44:03]OFD Sender: No OFD packet to send [17:44:08]OFD Sender: No OFD packet to send [17:44:13]OFD Sender: No OFD packet to send [17:44:18]OFD Sender: No OFD packet to send [17:44:23]OFD Sender: No OFD packet to send [17:44:28]OFD Sender: No OFD packet to send [17:44:33]OFD Sender: No OFD packet to send [17:44:38]OFD Sender: No OFD packet to send [17:44:43]OFD Sender: No OFD packet to send [17:44:48]OFD Sender: No OFD packet to send [17:44:52]accept exits with 9 [17:44:52]New connection [17:44:52]New thread 3067096420 created [17:44:52]Thread 3066953060 joined [17:44:52]Waiting for new connection... [17:44:52] Sock 9.Parse request [17:44:52]Sock 9.Check first char [17:44:52]Sock 9.First char is OK [17:44:52]request: POST /json_proto HTTP/1.0 [17:44:52]Method: POST [17:44:52]URL: /json_proto [17:44:52]Method is POST - this is cgi request [17:44:52]url: /json_proto [17:44:52]query_string will be loaded in cgi processing [17:44:52]execute_cgi json_proto POST (null) [17:44:52]execute_cgi path=json_proto method=POST [17:44:52]POST find Content-Length [17:44:52]Host: 172.17.45.7:8080 [17:44:52]Content-Length: 677 [17:44:52]Content-Type: application/json [17:44:52] [17:44:52]POST finish read [17:44:52]Found Content-Length = 677 [17:44:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:44:52]execute_script... [17:44: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)949115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:44:52]POST & json_proto [17:44:52]process_json_proto [17:44:52]json parsed OK: [17:44:52]protocol is kg_v1.0 [17:44:52]action value=close_receipt [17:44:52]process_action close_receipt [17:44:52]cmd_close_receipt [17:44:52]MH_GetDate [17:44:52]Write to MH i2c: F0 00 00 D0 10 CF [17:44:52]Write i2c OK [17:44:52]MH_I2C_Read... [17:44:52]Read from MH i2c: F0 [17:44:52]MH_I2C_Read... [17:44:52]Read from MH i2c: F0 09 00 [17:44:52]MH_I2C_Read... [17:44:52]Read from MH i2c: F0 09 00 D0 10 00 14 32 A5 66 90 0F 3E 66 6C [17:44:52]GetLastDocTimeStamp 1722102010 [17:44:52]current date 1722102292 [17:44:52]FM_GetShiftState [17:44:52]SAM_PROTO_GetShiftState [17:44:52]wFMCommunicate request_size=4 [17:44:52]MH_SAM_APDU [17:44:52]CAPDU: 80 13 01 00 [17:44:52]Write to MH i2c: E2 08 00 D1 10 80 13 01 00 00 00 00 00 5E [17:44:52]Write i2c OK [17:44:52]MH_I2C_Read... [17:44:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:52]Read from MH i2c: E2 [17:44:52]MH_I2C_Read... [17:44:52]Read from MH i2c: E2 0E 00 [17:44:52]MH_I2C_Read... [17:44:52]Read from MH i2c: E2 0E 00 D1 10 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 EB [17:44:52]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [17:44:52]wFMCommunicate OK [17:44:52]SAM_PROTO_GetShiftState done [17:44:52]FM_GetShiftState done [17:44:52]opened in 1722038845 [17:44:52]opened+sec_in_day 1722125245 [17:44:52]quantity*price = 50036 [17:44:52]sum+1 = 50037 [17:44:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 188 27.07.2024 17:44 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118245 ФПД: 28580790260163 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T174452&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118245&fm=28580790260163&tin=02508201610067®Number=0000000000092660&sum=50000 [17:44:53]StoreToDocumentArchive [17:44:53]shift 432 fd 118245 [17:44:53]save to /storage/0432/doc_00118245 [17:44:53]save last doc name /storage/0432/doc_00118245 to /storage/kkm_last_doc_name [17:44:53]save OK [17:44:53]Clear old archive folders... [17:44:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:44:53]tlvbuf is 01DCCFC0 [17:44:53]SAM_PROTO_ClearQueue [17:44:53]wFMCommunicate request_size=4 [17:44:53]MH_SAM_APDU [17:44:53]CAPDU: 80 09 00 00 [17:44:53]Write to MH i2c: E2 08 00 DE 10 80 09 00 00 00 00 00 00 60 [17:44:53]Write i2c OK [17:44:53]MH_I2C_Read... [17:44:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:44:53]Read from MH i2c: E2 [17:44:53]MH_I2C_Read... [17:44:53]Read from MH i2c: E2 03 00 [17:44:53]MH_I2C_Read... [17:44:53]Read from MH i2c: E2 03 00 DE 10 00 90 00 62 [17:44:53]RAPDU: 90 00 [17:44:53]wFMCommunicate OK [17:44:53]SAM_PROTO_ClearQueue done [17:44:53]KKMCreateOFDPacket [17:44:53]OFDProtocolAddRootSTLVToBuf [17:44:53]FM_MakeSignedData [17:44:53]FM_MakeSignedData [17:44:53]SAM_PROTO_SignData [17:44:53]wFMCommunicate request_size=4 [17:44:53]MH_SAM_APDU [17:44:53]CAPDU: 80 0D 01 02 [17:44:53]Write to MH i2c: E2 08 00 DF 10 80 0D 01 02 00 00 00 00 68 [17:44:53]Write i2c OK [17:44:53]MH_I2C_Read... [17:44:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:44:53]Read from MH i2c: E2 [17:44:53]MH_I2C_Read... [17:44:53]Read from MH i2c: E2 03 00 [17:44:53]MH_I2C_Read... [17:44:53]Read from MH i2c: E2 03 00 DF 10 00 90 00 63 [17:44:53]RAPDU: 90 00 [17:44:53]wFMCommunicate OK [17:44:53]wFMCommunicate request_size=255 [17:44:53]MH_SAM_APDU [17:44: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BC 00 00 00 F4 03 04 00 14 32 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E5 CD 01 00 35 04 06 00 19 [17:44:53]Write to MH i2c: E2 02 01 E0 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BC 00 00 00 F4 03 04 00 14 32 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E5 CD 01 00 35 04 06 00 19 00 00 76 [17:44:53]Write i2c OK [17:44:53]MH_I2C_Read... [17:44:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:53]Read from MH i2c: E2 [17:44:53]MH_I2C_Read... [17:44:53]Read from MH i2c: E2 03 00 [17:44:53]MH_I2C_Read... [17:44:53]Read from MH i2c: E2 03 00 E0 10 00 90 00 64 [17:44:53]RAPDU: 90 00 [17:44:53]wFMCommunicate OK [17:44:53]wFMCommunicate request_size=10 [17:44:53]MH_SAM_APDU [17:44:53]CAPDU: 80 0D 02 02 05 FE 7B D9 D1 C3 [17:44:53]Write to MH i2c: E2 0D 00 E1 10 80 0D 02 02 05 00 FE 7B D9 D1 C3 00 00 5B [17:44:53]Write i2c OK [17:44:53]MH_I2C_Read... [17:44:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:53]Read from MH i2c: E2 [17:44:53]MH_I2C_Read... [17:44:53]Read from MH i2c: E2 03 00 [17:44:53]MH_I2C_Read... [17:44:53]Read from MH i2c: E2 03 00 E1 10 00 90 00 65 [17:44:53]RAPDU: 90 00 [17:44:53]wFMCommunicate OK [17:44:53]wFMCommunicate request_size=4 [17:44:53]MH_SAM_APDU [17:44:53]CAPDU: 80 0D 03 02 [17:44:53]Write to MH i2c: E2 08 00 E2 10 80 0D 03 02 00 00 00 00 6D [17:44:53]Write i2c OK [17:44:53]MH_I2C_Read... [17:44:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:44:53]Read from MH i2c: E2 [17:44:53]MH_I2C_Read... [17:44:53]Read from MH i2c: E2 0B 00 [17:44:53]MH_I2C_Read... [17:44:53]Read from MH i2c: E2 0B 00 E2 10 00 CD 2F 0F 29 17 19 E0 DF 90 00 91 [17:44:53]RAPDU: CD 2F 0F 29 17 19 E0 DF 90 00 [17:44:53]wFMCommunicate OK [17:44:53]SAM_PROTO_SignData done [17:44:53]FM_MakeSignedData done [17:44:53]CreateOFDProtocolMessage [17:44:53]wFMCommunicate request_size=4 [17:44:53]MH_SAM_APDU [17:44:53]CAPDU: 80 11 00 00 [17:44:53]Write to MH i2c: E2 08 00 E3 10 80 11 00 00 00 00 00 00 6D [17:44:53]Write i2c OK [17:44:53]MH_I2C_Read... [17:44:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:53]Read from MH i2c: E2 [17:44:53]MH_I2C_Read... [17:44:53]Read from MH i2c: E2 17 00 [17:44:53]MH_I2C_Read... [17:44:53]Read from MH i2c: E2 17 00 E3 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C8 [17:44:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:44:53]wFMCommunicate OK [17:44:53]CreateOFDProtocolMessage done [17:44:53]OFDSenderStorePacket 118245 [17:44:53]StoreOFDPacket docnum=118245 [17:44:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 85 66 07 01 4B 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BC 00 00 00 F4 03 04 00 14 32 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E5 CD 01 00 35 04 06 00 19 FE 7B D9 D1 C3 CD 2F 0F 29 17 19 E0 DF [17:44:53]CheckFolder [17:44:53]dirname=/storage/ofd_packets [17:44:53]CheckFolder done [17:44:53]ProducePacketName [17:44:53]name=ofd_packets/00118245 [17:44:53]NVStorageSaveData ofd_packets/00118245 [17:44:53]File name is /storage/ofd_packets/00118245 [17:44:53]Write 301 bytes [17:44:53]NVStorageSaveData done [17:44:53]OFDSenderStorePacket done [17:44:53]KKMCreateOFDPacket done [17:44:53]NVStorageSaveData kkm_last_timestamp [17:44:53]File name is /storage/kkm_last_timestamp [17:44:53]Write 4 bytes [17:44:53]NVStorageSaveData done [17:44:53]ExternCall_PrintAddStr [17:44:53]wPrintStart [17:44:53]Write to MH i2c: 01 00 00 E4 10 F4 [17:44:53]Write i2c OK [17:44:53]MH_I2C_Read... [17:44:53]Read from MH i2c: 01 [17:44:53]MH_I2C_Read... [17:44:53]Read from MH i2c: 01 07 00 [17:44:53]MH_I2C_Read... [17:44:53]Read from MH i2c: 01 07 00 E4 10 00 00 00 00 00 FF 0F 09 [17:44:53]RasterBufferAndPrint [17:44:53]line Счет N : (1)949115 [17:44:53]line ИНН: 02508201610067 [17:44:53]line Контрольно-Кассовый Чек [17:44:53]line ПРОДАЖА [17:44:53]line ТРК (МРК, ГНК) : 41 [17:44:53]line Товар: 2710124130 [17:44:53]line Аи-92-К-4 [17:44:53]line 7.380 * 67.80 [17:44:53]line = 500.36 [17:44:53]line НДС 12% НСП 1% [17:44:53]line > о реализуемом товаре [17:44:53]line ОКРУГЛЕНИЕ: -0.36 [17:44:53]line ИТОГО: 500.00 [17:44:53]line Внесено: 500.00 [17:44:53]line СДАЧА: 0.00 [17:44:53]line НСП 1% : 4.43 [17:44:53]line НДС 12% : 53.14 [17:44:53]line Наличными: 500.00 [17:44:53]line Безнал.: 0.00 [17:44:53]line Место: АЗС № 134 "Партнер Нефть" [17:44:53]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:44:53]line СНО: Общий режим [17:44:53]line Чек 188 27.07.2024 17:44 [17:44:53]line Смена: 432 ФФД: 1.0 [17:44:53]line ЗНМ: 0300000044 [17:44:53]line РНМ: 0000000000092660 [17:44:53]line Версия ККМ: 001 [17:44:53]line ФМ: 0000000000874939 [17:44:53]line ФД: 118245 [17:44:53]line ФПД: 28580790260163 [17:44:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T174452&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118245&fm=28580790260163&tin=02508201610067®Number=0000000000092660&sum=50000 [17:44:54]OFD Sender: Processing packet 118245 [packets to send 86, broken 85] [17:44:54]ProducePacketName [17:44:54]name=ofd_packets/00118245 [17:44:54]OFD Sender: To server: pG, [17:44:54]CommunicateWithHost lk.salyk.kg:30040 [17:44:54]ConnectInit lk.salyk.kg [17:44:54]written 0, free lines is 4095 [17:44:54]Connected sock=10 [17:44:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 85 66 07 01 4B 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BC 00 00 00 F4 03 04 00 14 32 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E5 CD 01 00 35 04 06 00 19 FE 7B D9 D1 C3 CD 2F 0F 29 17 19 E0 DF [17:44:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 71 3D 47 00 BB 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E5 CD 01 00 F4 03 04 00 A7 DF A4 66 B6 04 01 00 00 2B 76 64 A7 5B 7A 26 B4 [17:44:54]CommunicateWithHost err = 0 [17:44:54]CheckOFDResponse [17:44:54]1017 (14) - 77093643461234 [17:44:54]1041 (16) - 0000000000874939 [17:44:54]1040 (4) - 118245 [17:44:54]1012 (4) - 27.07.2024 11:53 [17:44:54]1206 (1) - 0 [17:44:54]OFD Sender: Remove packet 118245 [17:44:54]ProducePacketName [17:44:54]name=ofd_packets/00118245 [17:44:54]NVStorageDeleteData [17:44:54]Write to MH i2c: 01 00 00 0E 11 1F [17:44:54]Write i2c OK [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: 01 [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: 01 07 00 [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: 01 07 00 0E 11 00 00 00 00 00 E1 0C 13 [17:44:54]RasterBufferAndPrint [17:44:54]line [17:44:54]line [17:44:54]line [17:44:54]line [17:44:54]line [17:44:54]written 0, free lines is 3303 [17:44:54]MH_Cut [17:44:54]Write to MH i2c: D1 01 00 15 11 01 F8 [17:44:54]Write i2c OK [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: D1 [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: D1 01 00 [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: D1 01 00 15 11 00 F7 [17:44:54]Write to MH i2c: 01 00 00 16 11 27 [17:44:54]Write i2c OK [17:44:54]MH_I2C_Read... [17:44:54]OFD Sender: No OFD packet to send [17:44:55]*** Cut start [17:44:55]*** Partial cut [17:44:55]*** CUTSNS_PIN = 1 [17:44:55]*** CUTSNS_PIN = 0 [17:44:55]*** Brake cut motor [17:44:55]Read from MH i2c: 01 [17:44:55]MH_I2C_Read... [17:44:55]*** Stop cut motor [17:44:55]*** Cut end [17:44:55]Read from MH i2c: 01 07 00 [17:44:55]MH_I2C_Read... [17:44:55]Read from MH i2c: 01 07 00 16 11 00 00 00 00 00 FF 0F 3C [17:44:55]process_action close_receipt done [17:44:55]requested_data is exist [17:44:55]produce_requested_data [17:44:55]requested_item fm.sn is exist - process it [17:44:55]wFMCommunicate request_size=4 [17:44:55]MH_SAM_APDU [17:44:55]CAPDU: 80 11 00 00 [17:44:55]Write to MH i2c: E2 08 00 17 11 80 11 00 00 00 00 00 00 A2 [17:44:55]Write i2c OK [17:44:55]MH_I2C_Read... [17:44:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:55]Read from MH i2c: E2 [17:44:55]MH_I2C_Read... [17:44:55]Read from MH i2c: E2 17 00 [17:44:55]MH_I2C_Read... [17:44:55]Read from MH i2c: E2 17 00 17 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FD [17:44:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:44:55]wFMCommunicate OK [17:44:55]requested_item fd.num is exist - process it [17:44:55]SAM_PROTO_GetFieldsCounters [17:44:55]wFMCommunicate request_size=4 [17:44:55]MH_SAM_APDU [17:44:55]CAPDU: 80 13 00 00 [17:44:55]Write to MH i2c: E2 08 00 18 11 80 13 00 00 00 00 00 00 A5 [17:44:55]Write i2c OK [17:44:55]MH_I2C_Read... [17:44:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:44:56]Read from MH i2c: E2 [17:44:56]MH_I2C_Read... [17:44:56]Read from MH i2c: E2 62 00 [17:44:56]MH_I2C_Read... [17:44:56]Read from MH i2c: E2 62 00 18 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E5 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [17:44:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E5 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:44:56]wFMCommunicate OK [17:44:56]SAM_PROTO_GetFieldsCounters done [17:44:56]requested_item shift.num is exist - process it [17:44:56]requested_item shift.opened is exist - process it [17:44:56]req_shift_opened [17:44:56]FM_GetShiftState [17:44:56]SAM_PROTO_GetShiftState [17:44:56]wFMCommunicate request_size=4 [17:44:56]MH_SAM_APDU [17:44:56]CAPDU: 80 13 01 00 [17:44:56]Write to MH i2c: E2 08 00 19 11 80 13 01 00 00 00 00 00 A7 [17:44:56]Write i2c OK [17:44:56]MH_I2C_Read... [17:44:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:56]Read from MH i2c: E2 [17:44:56]MH_I2C_Read... [17:44:56]Read from MH i2c: E2 0E 00 [17:44:56]MH_I2C_Read... [17:44:56]Read from MH i2c: E2 0E 00 19 11 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 34 [17:44:56]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [17:44:56]wFMCommunicate OK [17:44:56]SAM_PROTO_GetShiftState done [17:44:56]FM_GetShiftState done [17:44:56]req_shift_opened done [17:44:56]requested_item shift.open_date is exist - process it [17:44:56]req_shift_open_date [17:44:56]req_shift_open_date done [17:44:56]produce_requested_data done [17:44:56]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118245,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [17:44:56]process_action_free close_receipt [17:44:56]json_value_free [17:44:56]json_value_free done [17:44:56]process_json_proto returns [17:44:56]Send response to host [17:44:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118245,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [17:44:56]free response buf [17:44:56]execute_script done [17:44:56]execute_script returns [17:44:56]free content buf [17:44:56]Sock 9.Close socket [17:44:56]Sock 9.Thread stoped [17:44:59]OFD Sender: No OFD packet to send [17:45:04]OFD Sender: No OFD packet to send [17:45:09]OFD Sender: No OFD packet to send [17:45:14]OFD Sender: No OFD packet to send [17:45:19]OFD Sender: No OFD packet to send [17:45:24]OFD Sender: No OFD packet to send [17:45:29]OFD Sender: No OFD packet to send [17:45:34]OFD Sender: No OFD packet to send [17:45:39]OFD Sender: No OFD packet to send [17:45:44]OFD Sender: No OFD packet to send [17:45:49]OFD Sender: No OFD packet to send [17:45:52]accept exits with 7 [17:45:52]New connection [17:45:52]New thread 3066953060 created [17:45:52]Thread 3067096420 joined [17:45:52]Waiting for new connection... [17:45:52] Sock 7.Parse request [17:45:52]Sock 7.Check first char [17:45:52]Sock 7.First char is OK [17:45:52]request: POST /json_proto HTTP/1.0 [17:45:52]Method: POST [17:45:52]URL: /json_proto [17:45:52]Method is POST - this is cgi request [17:45:52]url: /json_proto [17:45:52]query_string will be loaded in cgi processing [17:45:52]execute_cgi json_proto POST (null) [17:45:52]execute_cgi path=json_proto method=POST [17:45:52]POST find Content-Length [17:45:52]Host: 172.17.45.7:8080 [17:45:52]Content-Length: 677 [17:45:52]Content-Type: application/json [17:45:52] [17:45:52]POST finish read [17:45:52]Found Content-Length = 677 [17:45:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:45:52]execute_script... [17:45: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)949116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:45:52]POST & json_proto [17:45:52]process_json_proto [17:45:52]json parsed OK: [17:45:52]protocol is kg_v1.0 [17:45:52]action value=close_receipt [17:45:52]process_action close_receipt [17:45:52]cmd_close_receipt [17:45:52]MH_GetDate [17:45:52]Write to MH i2c: F0 00 00 1A 11 1A [17:45:52]Write i2c OK [17:45:52]MH_I2C_Read... [17:45:52]Read from MH i2c: F0 [17:45:52]MH_I2C_Read... [17:45:52]Read from MH i2c: F0 09 00 [17:45:52]MH_I2C_Read... [17:45:52]Read from MH i2c: F0 09 00 1A 11 00 51 32 A5 66 90 0F 3E 66 F4 [17:45:52]GetLastDocTimeStamp 1722102292 [17:45:52]current date 1722102353 [17:45:52]FM_GetShiftState [17:45:52]SAM_PROTO_GetShiftState [17:45:52]wFMCommunicate request_size=4 [17:45:52]MH_SAM_APDU [17:45:52]CAPDU: 80 13 01 00 [17:45:52]Write to MH i2c: E2 08 00 1B 11 80 13 01 00 00 00 00 00 A9 [17:45:52]Write i2c OK [17:45:52]MH_I2C_Read... [17:45:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:53]Read from MH i2c: E2 [17:45:53]MH_I2C_Read... [17:45:53]Read from MH i2c: E2 0E 00 [17:45:53]MH_I2C_Read... [17:45:53]Read from MH i2c: E2 0E 00 1B 11 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 36 [17:45:53]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [17:45:53]wFMCommunicate OK [17:45:53]SAM_PROTO_GetShiftState done [17:45:53]FM_GetShiftState done [17:45:53]opened in 1722038845 [17:45:53]opened+sec_in_day 1722125245 [17:45:53]quantity*price = 50036 [17:45:53]sum+1 = 50037 [17:45:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 189 27.07.2024 17:45 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118246 ФПД: 21915429012832 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T174553&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118246&fm=21915429012832&tin=02508201610067®Number=0000000000092660&sum=50000 [17:45:54]StoreToDocumentArchive [17:45:54]shift 432 fd 118246 [17:45:54]save to /storage/0432/doc_00118246 [17:45:54]save last doc name /storage/0432/doc_00118246 to /storage/kkm_last_doc_name [17:45:54]save OK [17:45:54]Clear old archive folders... [17:45:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:45:54]tlvbuf is B6EE45C0 [17:45:54]SAM_PROTO_ClearQueue [17:45:54]wFMCommunicate request_size=4 [17:45:54]MH_SAM_APDU [17:45:54]CAPDU: 80 09 00 00 [17:45:54]Write to MH i2c: E2 08 00 28 11 80 09 00 00 00 00 00 00 AB [17:45:54]Write i2c OK [17:45:54]MH_I2C_Read... [17:45:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:54]Read from MH i2c: E2 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 03 00 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 03 00 28 11 00 90 00 AD [17:45:54]RAPDU: 90 00 [17:45:54]wFMCommunicate OK [17:45:54]SAM_PROTO_ClearQueue done [17:45:54]KKMCreateOFDPacket [17:45:54]OFDProtocolAddRootSTLVToBuf [17:45:54]FM_MakeSignedData [17:45:54]FM_MakeSignedData [17:45:54]SAM_PROTO_SignData [17:45:54]wFMCommunicate request_size=4 [17:45:54]MH_SAM_APDU [17:45:54]CAPDU: 80 0D 01 02 [17:45:54]Write to MH i2c: E2 08 00 29 11 80 0D 01 02 00 00 00 00 B3 [17:45:54]Write i2c OK [17:45:54]MH_I2C_Read... [17:45:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:54]Read from MH i2c: E2 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 03 00 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 03 00 29 11 00 90 00 AE [17:45:54]RAPDU: 90 00 [17:45:54]wFMCommunicate OK [17:45:54]wFMCommunicate request_size=255 [17:45:54]MH_SAM_APDU [17:45:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BD 00 00 00 F4 03 04 00 51 32 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E6 CD 01 00 35 04 06 00 13 [17:45:54]Write to MH i2c: E2 02 01 2A 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BD 00 00 00 F4 03 04 00 51 32 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E6 CD 01 00 35 04 06 00 13 00 00 FA [17:45:54]Write i2c OK [17:45:54]MH_I2C_Read... [17:45:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:54]Read from MH i2c: E2 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 03 00 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 03 00 2A 11 00 90 00 AF [17:45:54]RAPDU: 90 00 [17:45:54]wFMCommunicate OK [17:45:54]wFMCommunicate request_size=10 [17:45:54]MH_SAM_APDU [17:45:54]CAPDU: 80 0D 02 02 05 EE 95 5C 85 60 [17:45:54]Write to MH i2c: E2 0D 00 2B 11 80 0D 02 02 05 00 EE 95 5C 85 60 00 00 84 [17:45:54]Write i2c OK [17:45:54]MH_I2C_Read... [17:45:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:54]Read from MH i2c: E2 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 03 00 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 03 00 2B 11 00 90 00 B0 [17:45:54]RAPDU: 90 00 [17:45:54]wFMCommunicate OK [17:45:54]wFMCommunicate request_size=4 [17:45:54]MH_SAM_APDU [17:45:54]CAPDU: 80 0D 03 02 [17:45:54]Write to MH i2c: E2 08 00 2C 11 80 0D 03 02 00 00 00 00 B8 [17:45:54]Write i2c OK [17:45:54]MH_I2C_Read... [17:45:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:54]Read from MH i2c: E2 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 0B 00 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 0B 00 2C 11 00 FC 4A BF 0C 97 10 08 15 90 00 8E [17:45:54]RAPDU: FC 4A BF 0C 97 10 08 15 90 00 [17:45:54]wFMCommunicate OK [17:45:54]SAM_PROTO_SignData done [17:45:54]FM_MakeSignedData done [17:45:54]CreateOFDProtocolMessage [17:45:54]wFMCommunicate request_size=4 [17:45:54]MH_SAM_APDU [17:45:54]CAPDU: 80 11 00 00 [17:45:54]Write to MH i2c: E2 08 00 2D 11 80 11 00 00 00 00 00 00 B8 [17:45:54]Write i2c OK [17:45:54]MH_I2C_Read... [17:45:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:54]Read from MH i2c: E2 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 17 00 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 17 00 2D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 13 [17:45:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:45:54]wFMCommunicate OK [17:45:54]CreateOFDProtocolMessage done [17:45:54]OFDSenderStorePacket 118246 [17:45:54]StoreOFDPacket docnum=118246 [17:45:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 31 35 07 01 1F 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BD 00 00 00 F4 03 04 00 51 32 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E6 CD 01 00 35 04 06 00 13 EE 95 5C 85 60 FC 4A BF 0C 97 10 08 15 [17:45:54]CheckFolder [17:45:54]dirname=/storage/ofd_packets [17:45:54]CheckFolder done [17:45:54]ProducePacketName [17:45:54]name=ofd_packets/00118246 [17:45:54]NVStorageSaveData ofd_packets/00118246 [17:45:54]File name is /storage/ofd_packets/00118246 [17:45:54]Write 301 bytes [17:45:54]NVStorageSaveData done [17:45:54]OFDSenderStorePacket done [17:45:54]KKMCreateOFDPacket done [17:45:54]NVStorageSaveData kkm_last_timestamp [17:45:54]File name is /storage/kkm_last_timestamp [17:45:54]Write 4 bytes [17:45:54]NVStorageSaveData done [17:45:54]ExternCall_PrintAddStr [17:45:54]wPrintStart [17:45:54]Write to MH i2c: 01 00 00 2E 11 3F [17:45:54]Write i2c OK [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: 01 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: 01 07 00 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: 01 07 00 2E 11 00 00 00 00 00 FF 0F 54 [17:45:54]RasterBufferAndPrint [17:45:54]line Счет N : (1)949116 [17:45:54]line ИНН: 02508201610067 [17:45:54]line Контрольно-Кассовый Чек [17:45:54]line ПРОДАЖА [17:45:54]line ТРК (МРК, ГНК) : 61 [17:45:54]line Товар: 2710124130 [17:45:54]line Аи-92-К-4 [17:45:54]line 7.380 * 67.80 [17:45:54]line = 500.36 [17:45:54]line НДС 12% НСП 1% [17:45:54]line > о реализуемом товаре [17:45:54]line ОКРУГЛЕНИЕ: -0.36 [17:45:54]line ИТОГО: 500.00 [17:45:54]line Внесено: 500.00 [17:45:54]line СДАЧА: 0.00 [17:45:54]line НСП 1% : 4.43 [17:45:54]line НДС 12% : 53.14 [17:45:54]line Наличными: 500.00 [17:45:54]line Безнал.: 0.00 [17:45:54]line Место: АЗС № 134 "Партнер Нефть" [17:45:54]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:45:54]line СНО: Общий режим [17:45:54]line Чек 189 27.07.2024 17:45 [17:45:54]line Смена: 432 ФФД: 1.0 [17:45:54]line ЗНМ: 0300000044 [17:45:54]line РНМ: 0000000000092660 [17:45:54]line Версия ККМ: 001 [17:45:54]line ФМ: 0000000000874939 [17:45:54]line ФД: 118246 [17:45:54]line ФПД: 21915429012832 [17:45:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T174553&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118246&fm=21915429012832&tin=02508201610067®Number=0000000000092660&sum=50000 [17:45:54]written 0, free lines is 4095 [17:45:54]OFD Sender: Processing packet 118246 [packets to send 86, broken 85] [17:45:54]ProducePacketName [17:45:54]name=ofd_packets/00118246 [17:45:54]OFD Sender: To server: pG, [17:45:54]CommunicateWithHost lk.salyk.kg:30040 [17:45:54]ConnectInit lk.salyk.kg [17:45:54]Connected sock=10 [17:45:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 31 35 07 01 1F 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BD 00 00 00 F4 03 04 00 51 32 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E6 CD 01 00 35 04 06 00 13 EE 95 5C 85 60 FC 4A BF 0C 97 10 08 15 [17:45:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 66 0B 47 00 C0 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E6 CD 01 00 F4 03 04 00 E3 DF A4 66 B6 04 01 00 00 B5 BB 81 13 24 A4 5E BB [17:45:55]CommunicateWithHost err = 0 [17:45:55]CheckOFDResponse [17:45:55]1017 (14) - 77093643461234 [17:45:55]1041 (16) - 0000000000874939 [17:45:55]1040 (4) - 118246 [17:45:55]1012 (4) - 27.07.2024 11:54 [17:45:55]1206 (1) - 0 [17:45:55]OFD Sender: Remove packet 118246 [17:45:55]ProducePacketName [17:45:55]name=ofd_packets/00118246 [17:45:55]NVStorageDeleteData [17:45:55]Write to MH i2c: 01 00 00 58 11 69 [17:45:55]Write i2c OK [17:45:55]MH_I2C_Read... [17:45:55]Read from MH i2c: 01 [17:45:55]MH_I2C_Read... [17:45:55]Read from MH i2c: 01 07 00 [17:45:55]MH_I2C_Read... [17:45:55]Read from MH i2c: 01 07 00 58 11 00 00 00 00 00 E5 0C 61 [17:45:55]RasterBufferAndPrint [17:45:55]line [17:45:55]line [17:45:55]line [17:45:55]line [17:45:55]line [17:45:55]written 0, free lines is 3307 [17:45:55]MH_Cut [17:45:55]Write to MH i2c: D1 01 00 5F 11 01 42 [17:45:55]Write i2c OK [17:45:55]MH_I2C_Read... [17:45:55]Read from MH i2c: D1 [17:45:55]MH_I2C_Read... [17:45:55]Read from MH i2c: D1 01 00 [17:45:55]MH_I2C_Read... [17:45:55]Read from MH i2c: D1 01 00 5F 11 00 41 [17:45:55]Write to MH i2c: 01 00 00 60 11 71 [17:45:55]Write i2c OK [17:45:55]MH_I2C_Read... [17:45:55]OFD Sender: No OFD packet to send [17:45:55]*** Cut start [17:45:55]*** Partial cut [17:45:55]*** CUTSNS_PIN = 1 [17:45:55]*** CUTSNS_PIN = 0 [17:45:56]*** Brake cut motor [17:45:56]Read from MH i2c: 01 [17:45:56]MH_I2C_Read... [17:45:56]*** Stop cut motor [17:45:56]*** Cut end [17:45:56]Read from MH i2c: 01 07 00 [17:45:56]MH_I2C_Read... [17:45:56]Read from MH i2c: 01 07 00 60 11 00 00 00 00 00 FF 0F 86 [17:45:56]process_action close_receipt done [17:45:56]requested_data is exist [17:45:56]produce_requested_data [17:45:56]requested_item fm.sn is exist - process it [17:45:56]wFMCommunicate request_size=4 [17:45:56]MH_SAM_APDU [17:45:56]CAPDU: 80 11 00 00 [17:45:56]Write to MH i2c: E2 08 00 61 11 80 11 00 00 00 00 00 00 EC [17:45:56]Write i2c OK [17:45:56]MH_I2C_Read... [17:45:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:56]Read from MH i2c: E2 [17:45:56]MH_I2C_Read... [17:45:56]Read from MH i2c: E2 17 00 [17:45:56]MH_I2C_Read... [17:45:56]Read from MH i2c: E2 17 00 61 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 47 [17:45:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:45:56]wFMCommunicate OK [17:45:56]requested_item fd.num is exist - process it [17:45:56]SAM_PROTO_GetFieldsCounters [17:45:56]wFMCommunicate request_size=4 [17:45:56]MH_SAM_APDU [17:45:56]CAPDU: 80 13 00 00 [17:45:56]Write to MH i2c: E2 08 00 62 11 80 13 00 00 00 00 00 00 EF [17:45:56]Write i2c OK [17:45:56]MH_I2C_Read... [17:45:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:56]Read from MH i2c: E2 [17:45:56]MH_I2C_Read... [17:45:56]Read from MH i2c: E2 62 00 [17:45:56]MH_I2C_Read... [17:45:56]Read from MH i2c: E2 62 00 62 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E6 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [17:45:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E6 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:45:56]wFMCommunicate OK [17:45:56]SAM_PROTO_GetFieldsCounters done [17:45:56]requested_item shift.num is exist - process it [17:45:56]requested_item shift.opened is exist - process it [17:45:56]req_shift_opened [17:45:56]FM_GetShiftState [17:45:56]SAM_PROTO_GetShiftState [17:45:56]wFMCommunicate request_size=4 [17:45:56]MH_SAM_APDU [17:45:56]CAPDU: 80 13 01 00 [17:45:56]Write to MH i2c: E2 08 00 63 11 80 13 01 00 00 00 00 00 F1 [17:45:56]Write i2c OK [17:45:56]MH_I2C_Read... [17:45:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:56]Read from MH i2c: E2 [17:45:56]MH_I2C_Read... [17:45:56]Read from MH i2c: E2 0E 00 [17:45:56]MH_I2C_Read... [17:45:56]Read from MH i2c: E2 0E 00 63 11 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 7E [17:45:56]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [17:45:56]wFMCommunicate OK [17:45:56]SAM_PROTO_GetShiftState done [17:45:56]FM_GetShiftState done [17:45:56]req_shift_opened done [17:45:56]requested_item shift.open_date is exist - process it [17:45:56]req_shift_open_date [17:45:56]req_shift_open_date done [17:45:56]produce_requested_data done [17:45:56]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118246,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [17:45:56]process_action_free close_receipt [17:45:56]json_value_free [17:45:56]json_value_free done [17:45:56]process_json_proto returns [17:45:56]Send response to host [17:45:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118246,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [17:45:56]free response buf [17:45:56]execute_script done [17:45:56]execute_script returns [17:45:56]free content buf [17:45:56]Sock 7.Close socket [17:45:56]Sock 7.Thread stoped [17:46:00]OFD Sender: No OFD packet to send [17:46:05]OFD Sender: No OFD packet to send [17:46:10]OFD Sender: No OFD packet to send [17:46:15]OFD Sender: No OFD packet to send [17:46:20]OFD Sender: No OFD packet to send [17:46:20]accept exits with 9 [17:46:20]New connection [17:46:20]New thread 3067096420 created [17:46:20]Thread 3066953060 joined [17:46:20]Waiting for new connection... [17:46:20] Sock 9.Parse request [17:46:20]Sock 9.Check first char [17:46:20]Sock 9.First char is OK [17:46:20]request: POST /json_proto HTTP/1.0 [17:46:20]Method: POST [17:46:20]URL: /json_proto [17:46:20]Method is POST - this is cgi request [17:46:20]url: /json_proto [17:46:20]query_string will be loaded in cgi processing [17:46:20]execute_cgi json_proto POST (null) [17:46:20]execute_cgi path=json_proto method=POST [17:46:20]POST find Content-Length [17:46:20]Host: 172.17.45.7:8080 [17:46:20]Content-Length: 679 [17:46:20]Content-Type: application/json [17:46:20] [17:46:20]POST finish read [17:46:20]Found Content-Length = 679 [17:46:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:20]execute_script... [17:46: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)949117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:20]POST & json_proto [17:46:20]process_json_proto [17:46:20]json parsed OK: [17:46:20]protocol is kg_v1.0 [17:46:20]action value=close_receipt [17:46:20]process_action close_receipt [17:46:20]cmd_close_receipt [17:46:20]MH_GetDate [17:46:20]Write to MH i2c: F0 00 00 64 11 64 [17:46:20]Write i2c OK [17:46:20]MH_I2C_Read... [17:46:20]Read from MH i2c: F0 [17:46:20]MH_I2C_Read... [17:46:20]Read from MH i2c: F0 09 00 [17:46:20]MH_I2C_Read... [17:46:20]Read from MH i2c: F0 09 00 64 11 00 6D 32 A5 66 90 0F 3E 66 5A [17:46:20]GetLastDocTimeStamp 1722102353 [17:46:20]current date 1722102381 [17:46:20]FM_GetShiftState [17:46:20]SAM_PROTO_GetShiftState [17:46:20]wFMCommunicate request_size=4 [17:46:20]MH_SAM_APDU [17:46:20]CAPDU: 80 13 01 00 [17:46:20]Write to MH i2c: E2 08 00 65 11 80 13 01 00 00 00 00 00 F3 [17:46:20]Write i2c OK [17:46:20]MH_I2C_Read... [17:46:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:20]Read from MH i2c: E2 [17:46:20]MH_I2C_Read... [17:46:20]Read from MH i2c: E2 0E 00 [17:46:20]MH_I2C_Read... [17:46:20]Read from MH i2c: E2 0E 00 65 11 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 80 [17:46:20]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [17:46:20]wFMCommunicate OK [17:46:20]SAM_PROTO_GetShiftState done [17:46:20]FM_GetShiftState done [17:46:20]opened in 1722038845 [17:46:20]opened+sec_in_day 1722125245 [17:46:20]quantity*price = 100050 [17:46:20]sum+1 = 100052 [17:46:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 190 27.07.2024 17:46 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118247 ФПД: 234922024329486 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T174621&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118247&fm=234922024329486&tin=02508201610067®Number=0000000000092660&sum=100000 [17:46:21]StoreToDocumentArchive [17:46:21]shift 432 fd 118247 [17:46:21]save to /storage/0432/doc_00118247 [17:46:21]save last doc name /storage/0432/doc_00118247 to /storage/kkm_last_doc_name [17:46:21]save OK [17:46:21]Clear old archive folders... [17:46:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:46:21]tlvbuf is 01DCD5C0 [17:46:21]SAM_PROTO_ClearQueue [17:46:21]wFMCommunicate request_size=4 [17:46:21]MH_SAM_APDU [17:46:21]CAPDU: 80 09 00 00 [17:46:21]Write to MH i2c: E2 08 00 72 11 80 09 00 00 00 00 00 00 F5 [17:46:21]Write i2c OK [17:46:21]MH_I2C_Read... [17:46:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:46:21]Read from MH i2c: E2 [17:46:21]MH_I2C_Read... [17:46:21]Read from MH i2c: E2 03 00 [17:46:21]MH_I2C_Read... [17:46:21]Read from MH i2c: E2 03 00 72 11 00 90 00 F7 [17:46:21]RAPDU: 90 00 [17:46:21]wFMCommunicate OK [17:46:21]SAM_PROTO_ClearQueue done [17:46:21]KKMCreateOFDPacket [17:46:21]OFDProtocolAddRootSTLVToBuf [17:46:21]FM_MakeSignedData [17:46:21]FM_MakeSignedData [17:46:21]SAM_PROTO_SignData [17:46:21]wFMCommunicate request_size=4 [17:46:21]MH_SAM_APDU [17:46:21]CAPDU: 80 0D 01 02 [17:46:21]Write to MH i2c: E2 08 00 73 11 80 0D 01 02 00 00 00 00 FD [17:46:21]Write i2c OK [17:46:21]MH_I2C_Read... [17:46:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:46:21]Read from MH i2c: E2 [17:46:21]MH_I2C_Read... [17:46:21]Read from MH i2c: E2 03 00 [17:46:21]MH_I2C_Read... [17:46:21]Read from MH i2c: E2 03 00 73 11 00 90 00 F8 [17:46:21]RAPDU: 90 00 [17:46:21]wFMCommunicate OK [17:46:21]wFMCommunicate request_size=255 [17:46:21]MH_SAM_APDU [17:46:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 6D 32 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E7 CD 01 00 35 04 06 00 D5 A9 0B CF [17:46:21]Write to MH i2c: E2 02 01 74 11 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 6D 32 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E7 CD 01 00 35 04 06 00 D5 A9 0B CF 00 00 B3 [17:46:21]Write i2c OK [17:46:21]MH_I2C_Read... [17:46:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:22]Read from MH i2c: E2 [17:46:22]MH_I2C_Read... [17:46:22]Read from MH i2c: E2 03 00 [17:46:22]MH_I2C_Read... [17:46:22]Read from MH i2c: E2 03 00 74 11 00 90 00 F9 [17:46:22]RAPDU: 90 00 [17:46:22]wFMCommunicate OK [17:46:22]wFMCommunicate request_size=7 [17:46:22]MH_SAM_APDU [17:46:22]CAPDU: 80 0D 02 02 02 61 0E [17:46:22]Write to MH i2c: E2 0A 00 75 11 80 0D 02 02 02 00 61 0E 00 00 73 [17:46:22]Write i2c OK [17:46:22]MH_I2C_Read... [17:46:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:22]Read from MH i2c: E2 [17:46:22]MH_I2C_Read... [17:46:22]Read from MH i2c: E2 03 00 [17:46:22]MH_I2C_Read... [17:46:22]Read from MH i2c: E2 03 00 75 11 00 90 00 FA [17:46:22]RAPDU: 90 00 [17:46:22]wFMCommunicate OK [17:46:22]wFMCommunicate request_size=4 [17:46:22]MH_SAM_APDU [17:46:22]CAPDU: 80 0D 03 02 [17:46:22]Write to MH i2c: E2 08 00 76 11 80 0D 03 02 00 00 00 00 02 [17:46:22]Write i2c OK [17:46:22]MH_I2C_Read... [17:46:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:46:22]Read from MH i2c: E2 [17:46:22]MH_I2C_Read... [17:46:22]Read from MH i2c: E2 0B 00 [17:46:22]MH_I2C_Read... [17:46:22]Read from MH i2c: E2 0B 00 76 11 00 DD 8D 0D 93 EE DE A7 89 90 00 09 [17:46:22]RAPDU: DD 8D 0D 93 EE DE A7 89 90 00 [17:46:22]wFMCommunicate OK [17:46:22]SAM_PROTO_SignData done [17:46:22]FM_MakeSignedData done [17:46:22]CreateOFDProtocolMessage [17:46:22]wFMCommunicate request_size=4 [17:46:22]MH_SAM_APDU [17:46:22]CAPDU: 80 11 00 00 [17:46:22]Write to MH i2c: E2 08 00 77 11 80 11 00 00 00 00 00 00 02 [17:46:22]Write i2c OK [17:46:22]MH_I2C_Read... [17:46:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:22]Read from MH i2c: E2 [17:46:22]MH_I2C_Read... [17:46:22]Read from MH i2c: E2 17 00 [17:46:22]MH_I2C_Read... [17:46:22]Read from MH i2c: E2 17 00 77 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5D [17:46:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:46:22]wFMCommunicate OK [17:46:22]CreateOFDProtocolMessage done [17:46:22]OFDSenderStorePacket 118247 [17:46:22]StoreOFDPacket docnum=118247 [17:46:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 23 71 04 01 38 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 6D 32 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E7 CD 01 00 35 04 06 00 D5 A9 0B CF 61 0E DD 8D 0D 93 EE DE A7 89 [17:46:22]CheckFolder [17:46:22]dirname=/storage/ofd_packets [17:46:22]CheckFolder done [17:46:22]ProducePacketName [17:46:22]name=ofd_packets/00118247 [17:46:22]NVStorageSaveData ofd_packets/00118247 [17:46:22]File name is /storage/ofd_packets/00118247 [17:46:22]Write 298 bytes [17:46:22]NVStorageSaveData done [17:46:22]OFDSenderStorePacket done [17:46:22]KKMCreateOFDPacket done [17:46:22]NVStorageSaveData kkm_last_timestamp [17:46:22]File name is /storage/kkm_last_timestamp [17:46:22]Write 4 bytes [17:46:22]NVStorageSaveData done [17:46:22]ExternCall_PrintAddStr [17:46:22]wPrintStart [17:46:22]Write to MH i2c: 01 00 00 78 11 89 [17:46:22]Write i2c OK [17:46:22]MH_I2C_Read... [17:46:22]Read from MH i2c: 01 [17:46:22]MH_I2C_Read... [17:46:22]Read from MH i2c: 01 07 00 [17:46:22]MH_I2C_Read... [17:46:22]Read from MH i2c: 01 07 00 78 11 00 00 00 00 00 FF 0F 9E [17:46:22]RasterBufferAndPrint [17:46:22]line Счет N : (1)949117 [17:46:22]line ИНН: 02508201610067 [17:46:22]line Контрольно-Кассовый Чек [17:46:22]line ПРОДАЖА [17:46:22]line ТРК (МРК, ГНК) : 11 [17:46:22]line Товар: 2710194800 [17:46:22]line ДТ-К-5 [17:46:22]line 13.130 * 76.20 [17:46:22]line = 1000.51 [17:46:22]line НДС 12% НСП 1% [17:46:22]line > о реализуемом товаре [17:46:22]line ОКРУГЛЕНИЕ: -0.51 [17:46:22]line ИТОГО: 1000.00 [17:46:22]line Внесено: 1000.00 [17:46:22]line СДАЧА: 0.00 [17:46:22]line НСП 1% : 8.85 [17:46:22]line НДС 12% : 106.25 [17:46:22]line Наличными: 1000.00 [17:46:22]line Безнал.: 0.00 [17:46:22]line Место: АЗС № 134 "Партнер Нефть" [17:46:22]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:46:22]line СНО: Общий режим [17:46:22]line Чек 190 27.07.2024 17:46 [17:46:22]line Смена: 432 ФФД: 1.0 [17:46:22]line ЗНМ: 0300000044 [17:46:22]line РНМ: 0000000000092660 [17:46:22]line Версия ККМ: 001 [17:46:22]line ФМ: 0000000000874939 [17:46:22]line ФД: 118247 [17:46:22]line ФПД: 234922024329486 [17:46:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T174621&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118247&fm=234922024329486&tin=02508201610067®Number=0000000000092660&sum=100000 [17:46:22]OFD Sender: Processing packet 118247 [packets to send 86, broken 85] [17:46:22]ProducePacketName [17:46:22]name=ofd_packets/00118247 [17:46:22]OFD Sender: To server: pG, [17:46:22]CommunicateWithHost lk.salyk.kg:30040 [17:46:22]ConnectInit lk.salyk.kg [17:46:22]written 0, free lines is 4095 [17:46:22]Connected sock=10 [17:46:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 23 71 04 01 38 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 6D 32 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E7 CD 01 00 35 04 06 00 D5 A9 0B CF 61 0E DD 8D 0D 93 EE DE A7 89 [17:46:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 AB C6 47 00 B1 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E7 CD 01 00 F4 03 04 00 FF DF A4 66 B6 04 01 00 00 67 85 AF A4 15 EF CB 73 [17:46:23]CommunicateWithHost err = 0 [17:46:23]CheckOFDResponse [17:46:23]1017 (14) - 77093643461234 [17:46:23]1041 (16) - 0000000000874939 [17:46:23]1040 (4) - 118247 [17:46:23]1012 (4) - 27.07.2024 11:54 [17:46:23]1206 (1) - 0 [17:46:23]OFD Sender: Remove packet 118247 [17:46:23]ProducePacketName [17:46:23]name=ofd_packets/00118247 [17:46:23]NVStorageDeleteData [17:46:23]Write to MH i2c: 01 00 00 A2 11 B3 [17:46:23]Write i2c OK [17:46:23]MH_I2C_Read... [17:46:23]Read from MH i2c: 01 [17:46:23]MH_I2C_Read... [17:46:23]Read from MH i2c: 01 07 00 [17:46:23]MH_I2C_Read... [17:46:23]Read from MH i2c: 01 07 00 A2 11 00 00 00 00 00 DE 0C A4 [17:46:23]RasterBufferAndPrint [17:46:23]line [17:46:23]line [17:46:23]line [17:46:23]line [17:46:23]line [17:46:23]written 0, free lines is 3300 [17:46:23]MH_Cut [17:46:23]Write to MH i2c: D1 01 00 A9 11 01 8C [17:46:23]Write i2c OK [17:46:23]MH_I2C_Read... [17:46:23]Read from MH i2c: D1 [17:46:23]MH_I2C_Read... [17:46:23]Read from MH i2c: D1 01 00 [17:46:23]MH_I2C_Read... [17:46:23]Read from MH i2c: D1 01 00 A9 11 00 8B [17:46:23]Write to MH i2c: 01 00 00 AA 11 BB [17:46:23]Write i2c OK [17:46:23]MH_I2C_Read... [17:46:23]OFD Sender: No OFD packet to send [17:46:23]*** Cut start [17:46:23]*** Partial cut [17:46:23]*** CUTSNS_PIN = 1 [17:46:23]*** CUTSNS_PIN = 0 [17:46:24]*** Brake cut motor [17:46:24]Read from MH i2c: 01 [17:46:24]MH_I2C_Read... [17:46:24]*** Stop cut motor [17:46:24]*** Cut end [17:46:24]Read from MH i2c: 01 07 00 [17:46:24]MH_I2C_Read... [17:46:24]Read from MH i2c: 01 07 00 AA 11 00 00 00 00 00 FF 0F D0 [17:46:24]process_action close_receipt done [17:46:24]requested_data is exist [17:46:24]produce_requested_data [17:46:24]requested_item fm.sn is exist - process it [17:46:24]wFMCommunicate request_size=4 [17:46:24]MH_SAM_APDU [17:46:24]CAPDU: 80 11 00 00 [17:46:24]Write to MH i2c: E2 08 00 AB 11 80 11 00 00 00 00 00 00 36 [17:46:24]Write i2c OK [17:46:24]MH_I2C_Read... [17:46:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:24]Read from MH i2c: E2 [17:46:24]MH_I2C_Read... [17:46:24]Read from MH i2c: E2 17 00 [17:46:24]MH_I2C_Read... [17:46:24]Read from MH i2c: E2 17 00 AB 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 91 [17:46:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:46:24]wFMCommunicate OK [17:46:24]requested_item fd.num is exist - process it [17:46:24]SAM_PROTO_GetFieldsCounters [17:46:24]wFMCommunicate request_size=4 [17:46:24]MH_SAM_APDU [17:46:24]CAPDU: 80 13 00 00 [17:46:24]Write to MH i2c: E2 08 00 AC 11 80 13 00 00 00 00 00 00 39 [17:46:24]Write i2c OK [17:46:24]MH_I2C_Read... [17:46:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:24]Read from MH i2c: E2 [17:46:24]MH_I2C_Read... [17:46:24]Read from MH i2c: E2 62 00 [17:46:24]MH_I2C_Read... [17:46:24]Read from MH i2c: E2 62 00 AC 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E7 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [17:46:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E7 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:46:24]wFMCommunicate OK [17:46:24]SAM_PROTO_GetFieldsCounters done [17:46:24]requested_item shift.num is exist - process it [17:46:24]requested_item shift.opened is exist - process it [17:46:24]req_shift_opened [17:46:24]FM_GetShiftState [17:46:24]SAM_PROTO_GetShiftState [17:46:24]wFMCommunicate request_size=4 [17:46:24]MH_SAM_APDU [17:46:24]CAPDU: 80 13 01 00 [17:46:24]Write to MH i2c: E2 08 00 AD 11 80 13 01 00 00 00 00 00 3B [17:46:24]Write i2c OK [17:46:24]MH_I2C_Read... [17:46:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:24]Read from MH i2c: E2 [17:46:24]MH_I2C_Read... [17:46:24]Read from MH i2c: E2 0E 00 [17:46:24]MH_I2C_Read... [17:46:24]Read from MH i2c: E2 0E 00 AD 11 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 C8 [17:46:24]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [17:46:24]wFMCommunicate OK [17:46:24]SAM_PROTO_GetShiftState done [17:46:24]FM_GetShiftState done [17:46:24]req_shift_opened done [17:46:24]requested_item shift.open_date is exist - process it [17:46:24]req_shift_open_date [17:46:24]req_shift_open_date done [17:46:24]produce_requested_data done [17:46:24]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118247,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [17:46:24]process_action_free close_receipt [17:46:24]json_value_free [17:46:24]json_value_free done [17:46:24]process_json_proto returns [17:46:24]Send response to host [17:46:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118247,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [17:46:24]free response buf [17:46:24]execute_script done [17:46:24]execute_script returns [17:46:24]free content buf [17:46:24]Sock 9.Close socket [17:46:24]Sock 9.Thread stoped [17:46:28]OFD Sender: No OFD packet to send [17:46:33]OFD Sender: No OFD packet to send [17:46:38]OFD Sender: No OFD packet to send [17:46:43]OFD Sender: No OFD packet to send [17:46:48]OFD Sender: No OFD packet to send [17:46:53]OFD Sender: No OFD packet to send [17:46:58]OFD Sender: No OFD packet to send [17:47:03]OFD Sender: No OFD packet to send [17:47:08]OFD Sender: No OFD packet to send [17:47:13]OFD Sender: No OFD packet to send [17:47:18]OFD Sender: No OFD packet to send [17:47:23]OFD Sender: No OFD packet to send [17:47:28]OFD Sender: No OFD packet to send [17:47:33]OFD Sender: No OFD packet to send [17:47:38]OFD Sender: No OFD packet to send [17:47:43]OFD Sender: No OFD packet to send [17:47:48]OFD Sender: No OFD packet to send [17:47:53]OFD Sender: No OFD packet to send [17:47:58]OFD Sender: No OFD packet to send [17:48:03]OFD Sender: No OFD packet to send [17:48:08]OFD Sender: No OFD packet to send [17:48:13]OFD Sender: No OFD packet to send [17:48:18]OFD Sender: No OFD packet to send [17:48:23]OFD Sender: No OFD packet to send [17:48:28]OFD Sender: No OFD packet to send [17:48:33]OFD Sender: No OFD packet to send [17:48:38]OFD Sender: No OFD packet to send [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:10]accept exits with 7 [17:49:10]New connection [17:49:10]New thread 3066953060 created [17:49:10]Thread 3067096420 joined [17:49:10]Waiting for new connection... [17:49:10] Sock 7.Parse request [17:49:10]Sock 7.Check first char [17:49:10]Sock 7.First char is OK [17:49:10]request: POST /json_proto HTTP/1.0 [17:49:10]Method: POST [17:49:10]URL: /json_proto [17:49:10]Method is POST - this is cgi request [17:49:10]url: /json_proto [17:49:10]query_string will be loaded in cgi processing [17:49:10]execute_cgi json_proto POST (null) [17:49:10]execute_cgi path=json_proto method=POST [17:49:10]POST find Content-Length [17:49:10]Host: 172.17.45.7:8080 [17:49:10]Content-Length: 679 [17:49:10]Content-Type: application/json [17:49:10] [17:49:10]POST finish read [17:49:10]Found Content-Length = 679 [17:49:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:10]execute_script... [17:49: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)949118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:10]POST & json_proto [17:49:10]process_json_proto [17:49:10]json parsed OK: [17:49:10]protocol is kg_v1.0 [17:49:10]action value=close_receipt [17:49:10]process_action close_receipt [17:49:10]cmd_close_receipt [17:49:10]MH_GetDate [17:49:10]Write to MH i2c: F0 00 00 AE 11 AE [17:49:10]Write i2c OK [17:49:10]MH_I2C_Read... [17:49:10]Read from MH i2c: F0 [17:49:10]MH_I2C_Read... [17:49:10]Read from MH i2c: F0 09 00 [17:49:10]MH_I2C_Read... [17:49:10]Read from MH i2c: F0 09 00 AE 11 00 17 33 A5 66 90 0F 3E 66 4F [17:49:10]GetLastDocTimeStamp 1722102381 [17:49:10]current date 1722102551 [17:49:10]FM_GetShiftState [17:49:10]SAM_PROTO_GetShiftState [17:49:10]wFMCommunicate request_size=4 [17:49:10]MH_SAM_APDU [17:49:10]CAPDU: 80 13 01 00 [17:49:10]Write to MH i2c: E2 08 00 AF 11 80 13 01 00 00 00 00 00 3D [17:49:10]Write i2c OK [17:49:10]MH_I2C_Read... [17:49:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:11]Read from MH i2c: E2 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: E2 0E 00 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: E2 0E 00 AF 11 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 CA [17:49:11]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [17:49:11]wFMCommunicate OK [17:49:11]SAM_PROTO_GetShiftState done [17:49:11]FM_GetShiftState done [17:49:11]opened in 1722038845 [17:49:11]opened+sec_in_day 1722125245 [17:49:11]quantity*price = 100050 [17:49:11]sum+1 = 100052 [17:49:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 191 27.07.2024 17:49 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118248 ФПД: 131864153647905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T174911&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118248&fm=131864153647905&tin=02508201610067®Number=0000000000092660&sum=100000 [17:49:12]StoreToDocumentArchive [17:49:12]shift 432 fd 118248 [17:49:12]save to /storage/0432/doc_00118248 [17:49:12]save last doc name /storage/0432/doc_00118248 to /storage/kkm_last_doc_name [17:49:12]save OK [17:49:12]Clear old archive folders... [17:49:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:49:12]tlvbuf is B6EE4360 [17:49:12]SAM_PROTO_ClearQueue [17:49:12]wFMCommunicate request_size=4 [17:49:12]MH_SAM_APDU [17:49:12]CAPDU: 80 09 00 00 [17:49:12]Write to MH i2c: E2 08 00 BC 11 80 09 00 00 00 00 00 00 3F [17:49:12]Write i2c OK [17:49:12]MH_I2C_Read... [17:49:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:49:12]Read from MH i2c: E2 [17:49:12]MH_I2C_Read... [17:49:12]Read from MH i2c: E2 03 00 [17:49:12]MH_I2C_Read... [17:49:12]Read from MH i2c: E2 03 00 BC 11 00 90 00 41 [17:49:12]RAPDU: 90 00 [17:49:12]wFMCommunicate OK [17:49:12]SAM_PROTO_ClearQueue done [17:49:12]KKMCreateOFDPacket [17:49:12]OFDProtocolAddRootSTLVToBuf [17:49:12]FM_MakeSignedData [17:49:12]FM_MakeSignedData [17:49:12]SAM_PROTO_SignData [17:49:12]wFMCommunicate request_size=4 [17:49:12]MH_SAM_APDU [17:49:12]CAPDU: 80 0D 01 02 [17:49:12]Write to MH i2c: E2 08 00 BD 11 80 0D 01 02 00 00 00 00 47 [17:49:12]Write i2c OK [17:49:12]MH_I2C_Read... [17:49:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:49:12]Read from MH i2c: E2 [17:49:12]MH_I2C_Read... [17:49:12]Read from MH i2c: E2 03 00 [17:49:12]MH_I2C_Read... [17:49:12]Read from MH i2c: E2 03 00 BD 11 00 90 00 42 [17:49:12]RAPDU: 90 00 [17:49:12]wFMCommunicate OK [17:49:12]wFMCommunicate request_size=255 [17:49:12]MH_SAM_APDU [17:49: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 17 33 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E8 CD 01 00 35 04 06 00 77 EE 04 09 [17:49:12]Write to MH i2c: E2 02 01 BE 11 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 17 33 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E8 CD 01 00 35 04 06 00 77 EE 04 09 00 00 C4 [17:49:12]Write i2c OK [17:49:12]MH_I2C_Read... [17:49:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:12]Read from MH i2c: E2 [17:49:12]MH_I2C_Read... [17:49:12]Read from MH i2c: E2 03 00 [17:49:12]MH_I2C_Read... [17:49:12]Read from MH i2c: E2 03 00 BE 11 00 90 00 43 [17:49:12]RAPDU: 90 00 [17:49:12]wFMCommunicate OK [17:49:12]wFMCommunicate request_size=7 [17:49:12]MH_SAM_APDU [17:49:12]CAPDU: 80 0D 02 02 02 6B 21 [17:49:12]Write to MH i2c: E2 0A 00 BF 11 80 0D 02 02 02 00 6B 21 00 00 DA [17:49:12]Write i2c OK [17:49:12]MH_I2C_Read... [17:49:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:12]Read from MH i2c: E2 [17:49:12]MH_I2C_Read... [17:49:12]Read from MH i2c: E2 03 00 [17:49:12]MH_I2C_Read... [17:49:12]Read from MH i2c: E2 03 00 BF 11 00 90 00 44 [17:49:12]RAPDU: 90 00 [17:49:12]wFMCommunicate OK [17:49:12]wFMCommunicate request_size=4 [17:49:12]MH_SAM_APDU [17:49:12]CAPDU: 80 0D 03 02 [17:49:12]Write to MH i2c: E2 08 00 C0 11 80 0D 03 02 00 00 00 00 4C [17:49:12]Write i2c OK [17:49:12]MH_I2C_Read... [17:49:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:49:12]Read from MH i2c: E2 [17:49:12]MH_I2C_Read... [17:49:12]Read from MH i2c: E2 0B 00 [17:49:12]MH_I2C_Read... [17:49:12]Read from MH i2c: E2 0B 00 C0 11 00 23 DA 0D 61 21 F2 64 D6 90 00 05 [17:49:12]RAPDU: 23 DA 0D 61 21 F2 64 D6 90 00 [17:49:12]wFMCommunicate OK [17:49:12]SAM_PROTO_SignData done [17:49:12]FM_MakeSignedData done [17:49:12]CreateOFDProtocolMessage [17:49:12]wFMCommunicate request_size=4 [17:49:12]MH_SAM_APDU [17:49:12]CAPDU: 80 11 00 00 [17:49:12]Write to MH i2c: E2 08 00 C1 11 80 11 00 00 00 00 00 00 4C [17:49:12]Write i2c OK [17:49:12]MH_I2C_Read... [17:49:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:12]Read from MH i2c: E2 [17:49:12]MH_I2C_Read... [17:49:12]Read from MH i2c: E2 17 00 [17:49:12]MH_I2C_Read... [17:49:12]Read from MH i2c: E2 17 00 C1 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A7 [17:49:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:49:12]wFMCommunicate OK [17:49:12]CreateOFDProtocolMessage done [17:49:12]OFDSenderStorePacket 118248 [17:49:12]StoreOFDPacket docnum=118248 [17:49:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 98 EB 04 01 73 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 17 33 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E8 CD 01 00 35 04 06 00 77 EE 04 09 6B 21 23 DA 0D 61 21 F2 64 D6 [17:49:12]CheckFolder [17:49:12]dirname=/storage/ofd_packets [17:49:12]CheckFolder done [17:49:12]ProducePacketName [17:49:12]name=ofd_packets/00118248 [17:49:12]NVStorageSaveData ofd_packets/00118248 [17:49:12]File name is /storage/ofd_packets/00118248 [17:49:12]Write 298 bytes [17:49:12]NVStorageSaveData done [17:49:12]OFDSenderStorePacket done [17:49:12]KKMCreateOFDPacket done [17:49:12]NVStorageSaveData kkm_last_timestamp [17:49:12]File name is /storage/kkm_last_timestamp [17:49:12]Write 4 bytes [17:49:12]NVStorageSaveData done [17:49:12]ExternCall_PrintAddStr [17:49:12]wPrintStart [17:49:12]Write to MH i2c: 01 00 00 C2 11 D3 [17:49:12]Write i2c OK [17:49:12]MH_I2C_Read... [17:49:12]Read from MH i2c: 01 [17:49:12]MH_I2C_Read... [17:49:12]Read from MH i2c: 01 07 00 [17:49:12]MH_I2C_Read... [17:49:12]Read from MH i2c: 01 07 00 C2 11 00 00 00 00 00 FF 0F E8 [17:49:12]RasterBufferAndPrint [17:49:12]line Счет N : (1)949118 [17:49:12]line ИНН: 02508201610067 [17:49:12]line Контрольно-Кассовый Чек [17:49:12]line ПРОДАЖА [17:49:12]line ТРК (МРК, ГНК) : 64 [17:49:12]line Товар: 2710194800 [17:49:12]line ДТ-К-5 [17:49:12]line 13.130 * 76.20 [17:49:12]line = 1000.51 [17:49:12]line НДС 12% НСП 1% [17:49:12]line > о реализуемом товаре [17:49:12]line ОКРУГЛЕНИЕ: -0.51 [17:49:12]line ИТОГО: 1000.00 [17:49:12]line Внесено: 1000.00 [17:49:12]line СДАЧА: 0.00 [17:49:12]line НСП 1% : 8.85 [17:49:12]line НДС 12% : 106.25 [17:49:12]line Наличными: 1000.00 [17:49:12]line Безнал.: 0.00 [17:49:12]line Место: АЗС № 134 "Партнер Нефть" [17:49:12]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:49:12]line СНО: Общий режим [17:49:12]line Чек 191 27.07.2024 17:49 [17:49:12]line Смена: 432 ФФД: 1.0 [17:49:12]line ЗНМ: 0300000044 [17:49:12]line РНМ: 0000000000092660 [17:49:12]line Версия ККМ: 001 [17:49:12]line ФМ: 0000000000874939 [17:49:12]line ФД: 118248 [17:49:12]line ФПД: 131864153647905 [17:49:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T174911&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118248&fm=131864153647905&tin=02508201610067®Number=0000000000092660&sum=100000 [17:49:12]OFD Sender: Processing packet 118248 [packets to send 86, broken 85] [17:49:12]ProducePacketName [17:49:12]name=ofd_packets/00118248 [17:49:12]OFD Sender: To server: pG, [17:49:12]CommunicateWithHost lk.salyk.kg:30040 [17:49:12]ConnectInit lk.salyk.kg [17:49:12]written 0, free lines is 4095 [17:49:13]Connected sock=10 [17:49:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 98 EB 04 01 73 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 17 33 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E8 CD 01 00 35 04 06 00 77 EE 04 09 6B 21 23 DA 0D 61 21 F2 64 D6 [17:49:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E8 7A 47 00 10 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E8 CD 01 00 F4 03 04 00 AA E0 A4 66 B6 04 01 00 00 06 0B 4B AF 9F EB 79 98 [17:49:13]CommunicateWithHost err = 0 [17:49:13]CheckOFDResponse [17:49:13]1017 (14) - 77093643461234 [17:49:13]1041 (16) - 0000000000874939 [17:49:13]1040 (4) - 118248 [17:49:13]1012 (4) - 27.07.2024 11:57 [17:49:13]1206 (1) - 0 [17:49:13]OFD Sender: Remove packet 118248 [17:49:13]ProducePacketName [17:49:13]name=ofd_packets/00118248 [17:49:13]NVStorageDeleteData [17:49:13]Write to MH i2c: 01 00 00 EC 11 FD [17:49:13]Write i2c OK [17:49:13]MH_I2C_Read... [17:49:13]Read from MH i2c: 01 [17:49:13]MH_I2C_Read... [17:49:13]Read from MH i2c: 01 07 00 [17:49:13]MH_I2C_Read... [17:49:13]Read from MH i2c: 01 07 00 EC 11 00 00 00 00 00 D8 0C E8 [17:49:13]RasterBufferAndPrint [17:49:13]line [17:49:13]line [17:49:13]line [17:49:13]line [17:49:13]line [17:49:13]written 0, free lines is 3295 [17:49:13]MH_Cut [17:49:13]Write to MH i2c: D1 01 00 F3 11 01 D6 [17:49:13]Write i2c OK [17:49:13]MH_I2C_Read... [17:49:13]Read from MH i2c: D1 [17:49:13]MH_I2C_Read... [17:49:13]Read from MH i2c: D1 01 00 [17:49:13]MH_I2C_Read... [17:49:13]Read from MH i2c: D1 01 00 F3 11 00 D5 [17:49:13]Write to MH i2c: 01 00 00 F4 11 05 [17:49:13]Write i2c OK [17:49:13]MH_I2C_Read... [17:49:13]OFD Sender: No OFD packet to send [17:49:14]*** Cut start [17:49:14]*** Partial cut [17:49:14]*** CUTSNS_PIN = 1 [17:49:14]*** CUTSNS_PIN = 0 [17:49:14]*** Brake cut motor [17:49:14]Read from MH i2c: 01 [17:49:14]MH_I2C_Read... [17:49:14]*** Stop cut motor [17:49:14]*** Cut end [17:49:14]Read from MH i2c: 01 07 00 [17:49:14]MH_I2C_Read... [17:49:14]Read from MH i2c: 01 07 00 F4 11 00 00 00 00 00 FF 0F 1A [17:49:14]process_action close_receipt done [17:49:14]requested_data is exist [17:49:14]produce_requested_data [17:49:14]requested_item fm.sn is exist - process it [17:49:14]wFMCommunicate request_size=4 [17:49:14]MH_SAM_APDU [17:49:14]CAPDU: 80 11 00 00 [17:49:14]Write to MH i2c: E2 08 00 F5 11 80 11 00 00 00 00 00 00 80 [17:49:14]Write i2c OK [17:49:14]MH_I2C_Read... [17:49:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:14]Read from MH i2c: E2 [17:49:14]MH_I2C_Read... [17:49:14]Read from MH i2c: E2 17 00 [17:49:14]MH_I2C_Read... [17:49:14]Read from MH i2c: E2 17 00 F5 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DB [17:49:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:49:14]wFMCommunicate OK [17:49:14]requested_item fd.num is exist - process it [17:49:14]SAM_PROTO_GetFieldsCounters [17:49:14]wFMCommunicate request_size=4 [17:49:14]MH_SAM_APDU [17:49:14]CAPDU: 80 13 00 00 [17:49:14]Write to MH i2c: E2 08 00 F6 11 80 13 00 00 00 00 00 00 83 [17:49:14]Write i2c OK [17:49:14]MH_I2C_Read... [17:49:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:49:14]Read from MH i2c: E2 [17:49:14]MH_I2C_Read... [17:49:14]Read from MH i2c: E2 62 00 [17:49:14]MH_I2C_Read... [17:49:14]Read from MH i2c: E2 62 00 F6 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E8 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [17:49:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E8 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:49:15]wFMCommunicate OK [17:49:15]SAM_PROTO_GetFieldsCounters done [17:49:15]requested_item shift.num is exist - process it [17:49:15]requested_item shift.opened is exist - process it [17:49:15]req_shift_opened [17:49:15]FM_GetShiftState [17:49:15]SAM_PROTO_GetShiftState [17:49:15]wFMCommunicate request_size=4 [17:49:15]MH_SAM_APDU [17:49:15]CAPDU: 80 13 01 00 [17:49:15]Write to MH i2c: E2 08 00 F7 11 80 13 01 00 00 00 00 00 85 [17:49:15]Write i2c OK [17:49:15]MH_I2C_Read... [17:49:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:15]Read from MH i2c: E2 [17:49:15]MH_I2C_Read... [17:49:15]Read from MH i2c: E2 0E 00 [17:49:15]MH_I2C_Read... [17:49:15]Read from MH i2c: E2 0E 00 F7 11 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 12 [17:49:15]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [17:49:15]wFMCommunicate OK [17:49:15]SAM_PROTO_GetShiftState done [17:49:15]FM_GetShiftState done [17:49:15]req_shift_opened done [17:49:15]requested_item shift.open_date is exist - process it [17:49:15]req_shift_open_date [17:49:15]req_shift_open_date done [17:49:15]produce_requested_data done [17:49:15]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118248,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [17:49:15]process_action_free close_receipt [17:49:15]json_value_free [17:49:15]json_value_free done [17:49:15]process_json_proto returns [17:49:15]Send response to host [17:49:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118248,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [17:49:15]free response buf [17:49:15]execute_script done [17:49:15]execute_script returns [17:49:15]free content buf [17:49:15]Sock 7.Close socket [17:49:15]Sock 7.Thread stoped [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:38]OFD Sender: No OFD packet to send [17:50:43]OFD Sender: No OFD packet to send [17:50:48]OFD Sender: No OFD packet to send [17:50:53]OFD Sender: No OFD packet to send [17:50:58]OFD Sender: No OFD packet to send [17:51:03]OFD Sender: No OFD packet to send [17:51:08]OFD Sender: No OFD packet to send [17:51:13]OFD Sender: No OFD packet to send [17:51:18]OFD Sender: No OFD packet to send [17:51:23]OFD Sender: No OFD packet to send [17:51:28]OFD Sender: No OFD packet to send [17:51:33]OFD Sender: No OFD packet to send [17:51:38]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:19]OFD Sender: No OFD packet to send [17:53:24]OFD Sender: No OFD packet to send [17:53:29]OFD Sender: No OFD packet to send [17:53:34]OFD Sender: No OFD packet to send [17:53:39]OFD Sender: No OFD packet to send [17:53:44]OFD Sender: No OFD packet to send [17:53:49]OFD Sender: No OFD packet to send [17:53:54]OFD Sender: No OFD packet to send [17:53:59]OFD Sender: No OFD packet to send [17:54:04]OFD Sender: No OFD packet to send [17:54:09]OFD Sender: No OFD packet to send [17:54:14]OFD Sender: No OFD packet to send [17:54:19]OFD Sender: No OFD packet to send [17:54:24]OFD Sender: No OFD packet to send [17:54:29]OFD Sender: No OFD packet to send [17:54:34]OFD Sender: No OFD packet to send [17:54:39]OFD Sender: No OFD packet to send [17:54:44]OFD Sender: No OFD packet to send [17:54:49]OFD Sender: No OFD packet to send [17:54:49]accept exits with 9 [17:54:49]New connection [17:54:49]New thread 3067096420 created [17:54:49]Thread 3066953060 joined [17:54:49]Waiting for new connection... [17:54:49] Sock 9.Parse request [17:54:49]Sock 9.Check first char [17:54:49]Sock 9.First char is OK [17:54:49]request: POST /json_proto HTTP/1.0 [17:54:49]Method: POST [17:54:49]URL: /json_proto [17:54:49]Method is POST - this is cgi request [17:54:49]url: /json_proto [17:54:49]query_string will be loaded in cgi processing [17:54:49]execute_cgi json_proto POST (null) [17:54:49]execute_cgi path=json_proto method=POST [17:54:49]POST find Content-Length [17:54:49]Host: 172.17.45.7:8080 [17:54:49]Content-Length: 682 [17:54:49]Content-Type: application/json [17:54:49] [17:54:49]POST finish read [17:54:49]Found Content-Length = 682 [17:54:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "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:54:49]execute_script... [17:54:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "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:54:49]POST & json_proto [17:54:49]process_json_proto [17:54:49]json parsed OK: [17:54:49]protocol is kg_v1.0 [17:54:49]action value=close_receipt [17:54:49]process_action close_receipt [17:54:49]cmd_close_receipt [17:54:49]MH_GetDate [17:54:49]Write to MH i2c: F0 00 00 F8 11 F8 [17:54:49]Write i2c OK [17:54:49]MH_I2C_Read... [17:54:49]Read from MH i2c: F0 [17:54:49]MH_I2C_Read... [17:54:49]Read from MH i2c: F0 09 00 [17:54:49]MH_I2C_Read... [17:54:49]Read from MH i2c: F0 09 00 F8 11 00 6A 34 A5 66 90 0F 3E 66 ED [17:54:49]GetLastDocTimeStamp 1722102551 [17:54:49]current date 1722102890 [17:54:49]FM_GetShiftState [17:54:49]SAM_PROTO_GetShiftState [17:54:49]wFMCommunicate request_size=4 [17:54:49]MH_SAM_APDU [17:54:49]CAPDU: 80 13 01 00 [17:54:49]Write to MH i2c: E2 08 00 F9 11 80 13 01 00 00 00 00 00 87 [17:54:49]Write i2c OK [17:54:49]MH_I2C_Read... [17:54:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:49]Read from MH i2c: E2 [17:54:49]MH_I2C_Read... [17:54:49]Read from MH i2c: E2 0E 00 [17:54:49]MH_I2C_Read... [17:54:49]Read from MH i2c: E2 0E 00 F9 11 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 14 [17:54:49]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [17:54:49]wFMCommunicate OK [17:54:49]SAM_PROTO_GetShiftState done [17:54:49]FM_GetShiftState done [17:54:49]opened in 1722038845 [17:54:49]opened+sec_in_day 1722125245 [17:54:49]quantity*price = 200010 [17:54:49]sum+1 = 200011 [17:54:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 192 27.07.2024 17:54 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118249 ФПД: 143735302710806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T175450&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118249&fm=143735302710806&tin=02508201610067®Number=0000000000092660&sum=200000 [17:54:50]StoreToDocumentArchive [17:54:50]shift 432 fd 118249 [17:54:50]save to /storage/0432/doc_00118249 [17:54:50]save last doc name /storage/0432/doc_00118249 to /storage/kkm_last_doc_name [17:54:50]save OK [17:54:50]Clear old archive folders... [17:54:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:54:50]tlvbuf is B6ECBBB0 [17:54:50]SAM_PROTO_ClearQueue [17:54:50]wFMCommunicate request_size=4 [17:54:50]MH_SAM_APDU [17:54:50]CAPDU: 80 09 00 00 [17:54:50]Write to MH i2c: E2 08 00 06 12 80 09 00 00 00 00 00 00 8A [17:54:50]Write i2c OK [17:54:50]MH_I2C_Read... [17:54:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:54:50]Read from MH i2c: E2 [17:54:50]MH_I2C_Read... [17:54:50]Read from MH i2c: E2 03 00 [17:54:50]MH_I2C_Read... [17:54:50]Read from MH i2c: E2 03 00 06 12 00 90 00 8C [17:54:50]RAPDU: 90 00 [17:54:50]wFMCommunicate OK [17:54:50]SAM_PROTO_ClearQueue done [17:54:50]KKMCreateOFDPacket [17:54:50]OFDProtocolAddRootSTLVToBuf [17:54:50]FM_MakeSignedData [17:54:50]FM_MakeSignedData [17:54:50]SAM_PROTO_SignData [17:54:50]wFMCommunicate request_size=4 [17:54:50]MH_SAM_APDU [17:54:50]CAPDU: 80 0D 01 02 [17:54:50]Write to MH i2c: E2 08 00 07 12 80 0D 01 02 00 00 00 00 92 [17:54:50]Write i2c OK [17:54:50]MH_I2C_Read... [17:54:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:50]Read from MH i2c: E2 [17:54:50]MH_I2C_Read... [17:54:50]Read from MH i2c: E2 03 00 [17:54:50]MH_I2C_Read... [17:54:50]Read from MH i2c: E2 03 00 07 12 00 90 00 8D [17:54:50]RAPDU: 90 00 [17:54:50]wFMCommunicate OK [17:54:50]wFMCommunicate request_size=255 [17:54:50]MH_SAM_APDU [17:54: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 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 C0 00 00 00 F4 03 04 00 6A 34 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E9 CD 01 00 35 04 06 00 82 [17:54:50]Write to MH i2c: E2 02 01 08 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 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 C0 00 00 00 F4 03 04 00 6A 34 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E9 CD 01 00 35 04 06 00 82 00 00 6D [17:54:50]Write i2c OK [17:54:50]MH_I2C_Read... [17:54:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:51]Read from MH i2c: E2 [17:54:51]MH_I2C_Read... [17:54:51]Read from MH i2c: E2 03 00 [17:54:51]MH_I2C_Read... [17:54:51]Read from MH i2c: E2 03 00 08 12 00 90 00 8E [17:54:51]RAPDU: 90 00 [17:54:51]wFMCommunicate OK [17:54:51]wFMCommunicate request_size=10 [17:54:51]MH_SAM_APDU [17:54:51]CAPDU: 80 0D 02 02 05 B9 FB A8 E6 16 [17:54:51]Write to MH i2c: E2 0D 00 09 12 80 0D 02 02 05 00 B9 FB A8 E6 16 00 00 F7 [17:54:51]Write i2c OK [17:54:51]MH_I2C_Read... [17:54:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:51]Read from MH i2c: E2 [17:54:51]MH_I2C_Read... [17:54:51]Read from MH i2c: E2 03 00 [17:54:51]MH_I2C_Read... [17:54:51]Read from MH i2c: E2 03 00 09 12 00 90 00 8F [17:54:51]RAPDU: 90 00 [17:54:51]wFMCommunicate OK [17:54:51]wFMCommunicate request_size=4 [17:54:51]MH_SAM_APDU [17:54:51]CAPDU: 80 0D 03 02 [17:54:51]Write to MH i2c: E2 08 00 0A 12 80 0D 03 02 00 00 00 00 97 [17:54:51]Write i2c OK [17:54:51]MH_I2C_Read... [17:54:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:51]Read from MH i2c: E2 [17:54:51]MH_I2C_Read... [17:54:51]Read from MH i2c: E2 0B 00 [17:54:51]MH_I2C_Read... [17:54:51]Read from MH i2c: E2 0B 00 0A 12 00 C2 B4 A0 5D 93 70 C6 7C 90 00 50 [17:54:51]RAPDU: C2 B4 A0 5D 93 70 C6 7C 90 00 [17:54:51]wFMCommunicate OK [17:54:51]SAM_PROTO_SignData done [17:54:51]FM_MakeSignedData done [17:54:51]CreateOFDProtocolMessage [17:54:51]wFMCommunicate request_size=4 [17:54:51]MH_SAM_APDU [17:54:51]CAPDU: 80 11 00 00 [17:54:51]Write to MH i2c: E2 08 00 0B 12 80 11 00 00 00 00 00 00 97 [17:54:51]Write i2c OK [17:54:51]MH_I2C_Read... [17:54:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:51]Read from MH i2c: E2 [17:54:51]MH_I2C_Read... [17:54:51]Read from MH i2c: E2 17 00 [17:54:51]MH_I2C_Read... [17:54:51]Read from MH i2c: E2 17 00 0B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F2 [17:54:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:54:51]wFMCommunicate OK [17:54:51]CreateOFDProtocolMessage done [17:54:51]OFDSenderStorePacket 118249 [17:54:51]StoreOFDPacket docnum=118249 [17:54:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 07 BB 07 01 3A 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 C0 00 00 00 F4 03 04 00 6A 34 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E9 CD 01 00 35 04 06 00 82 B9 FB A8 E6 16 C2 B4 A0 5D 93 70 C6 7C [17:54:51]CheckFolder [17:54:51]dirname=/storage/ofd_packets [17:54:51]CheckFolder done [17:54:51]ProducePacketName [17:54:51]name=ofd_packets/00118249 [17:54:51]NVStorageSaveData ofd_packets/00118249 [17:54:51]File name is /storage/ofd_packets/00118249 [17:54:51]Write 301 bytes [17:54:51]NVStorageSaveData done [17:54:51]OFDSenderStorePacket done [17:54:51]KKMCreateOFDPacket done [17:54:51]NVStorageSaveData kkm_last_timestamp [17:54:51]File name is /storage/kkm_last_timestamp [17:54:51]Write 4 bytes [17:54:51]NVStorageSaveData done [17:54:51]ExternCall_PrintAddStr [17:54:51]wPrintStart [17:54:51]Write to MH i2c: 01 00 00 0C 12 1E [17:54:51]Write i2c OK [17:54:51]MH_I2C_Read... [17:54:51]Read from MH i2c: 01 [17:54:51]MH_I2C_Read... [17:54:51]Read from MH i2c: 01 07 00 [17:54:51]MH_I2C_Read... [17:54:51]Read from MH i2c: 01 07 00 0C 12 00 00 00 00 00 FF 0F 33 [17:54:51]RasterBufferAndPrint [17:54:51]line Счет N : (1)949119 [17:54:51]line ИНН: 02508201610067 [17:54:51]line Контрольно-Кассовый Чек [17:54:51]line ПРОДАЖА [17:54:51]line ТРК (МРК, ГНК) : 31 [17:54:51]line Товар: 2710124130 [17:54:51]line Аи-92-К-4 [17:54:51]line 29.500 * 67.80 [17:54:51]line = 2000.10 [17:54:51]line НДС 12% НСП 1% [17:54:51]line > о реализуемом товаре [17:54:51]line ОКРУГЛЕНИЕ: -0.10 [17:54:51]line ИТОГО: 2000.00 [17:54:51]line Внесено: 2000.00 [17:54:51]line СДАЧА: 0.00 [17:54:51]line НСП 1% : 17.70 [17:54:51]line НДС 12% : 212.40 [17:54:51]line Наличными: 2000.00 [17:54:51]line Безнал.: 0.00 [17:54:51]line Место: АЗС № 134 "Партнер Нефть" [17:54:51]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:54:51]line СНО: Общий режим [17:54:51]line Чек 192 27.07.2024 17:54 [17:54:51]line Смена: 432 ФФД: 1.0 [17:54:51]line ЗНМ: 0300000044 [17:54:51]line РНМ: 0000000000092660 [17:54:51]line Версия ККМ: 001 [17:54:51]line ФМ: 0000000000874939 [17:54:51]line ФД: 118249 [17:54:51]line ФПД: 143735302710806 [17:54:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T175450&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118249&fm=143735302710806&tin=02508201610067®Number=0000000000092660&sum=200000 [17:54:51]written 0, free lines is 4095 [17:54:51]OFD Sender: Processing packet 118249 [packets to send 86, broken 85] [17:54:51]ProducePacketName [17:54:51]name=ofd_packets/00118249 [17:54:51]OFD Sender: To server: pG, [17:54:51]CommunicateWithHost lk.salyk.kg:30040 [17:54:51]ConnectInit lk.salyk.kg [17:54:51]Connected sock=10 [17:54:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 07 BB 07 01 3A 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 C0 00 00 00 F4 03 04 00 6A 34 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E9 CD 01 00 35 04 06 00 82 B9 FB A8 E6 16 C2 B4 A0 5D 93 70 C6 7C [17:54:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 1B DA 47 00 BF EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E9 CD 01 00 F4 03 04 00 FC E1 A4 66 B6 04 01 00 00 D4 BB F2 90 62 7A FC CA [17:54:51]CommunicateWithHost err = 0 [17:54:51]CheckOFDResponse [17:54:51]1017 (14) - 77093643461234 [17:54:51]1041 (16) - 0000000000874939 [17:54:51]1040 (4) - 118249 [17:54:51]1012 (4) - 27.07.2024 12:03 [17:54:51]1206 (1) - 0 [17:54:51]OFD Sender: Remove packet 118249 [17:54:51]ProducePacketName [17:54:51]name=ofd_packets/00118249 [17:54:51]NVStorageDeleteData [17:54:51]Write to MH i2c: 01 00 00 36 12 48 [17:54:51]Write i2c OK [17:54:51]MH_I2C_Read... [17:54:51]Read from MH i2c: 01 [17:54:51]MH_I2C_Read... [17:54:51]Read from MH i2c: 01 07 00 [17:54:51]MH_I2C_Read... [17:54:51]Read from MH i2c: 01 07 00 36 12 00 00 00 00 00 E9 0C 44 [17:54:51]RasterBufferAndPrint [17:54:51]line [17:54:51]line [17:54:51]line [17:54:51]line [17:54:51]line [17:54:51]written 0, free lines is 3310 [17:54:51]MH_Cut [17:54:51]Write to MH i2c: D1 01 00 3D 12 01 21 [17:54:51]Write i2c OK [17:54:51]MH_I2C_Read... [17:54:51]Read from MH i2c: D1 [17:54:51]MH_I2C_Read... [17:54:51]Read from MH i2c: D1 01 00 [17:54:51]MH_I2C_Read... [17:54:51]Read from MH i2c: D1 01 00 3D 12 00 20 [17:54:51]Write to MH i2c: 01 00 00 3E 12 50 [17:54:51]Write i2c OK [17:54:51]MH_I2C_Read... [17:54:52]OFD Sender: No OFD packet to send [17:54:52]*** Cut start [17:54:52]*** Partial cut [17:54:52]*** CUTSNS_PIN = 1 [17:54:52]*** CUTSNS_PIN = 0 [17:54:52]*** Brake cut motor [17:54:53]Read from MH i2c: 01 [17:54:53]MH_I2C_Read... [17:54:53]*** Stop cut motor [17:54:53]*** Cut end [17:54:53]Read from MH i2c: 01 07 00 [17:54:53]MH_I2C_Read... [17:54:53]Read from MH i2c: 01 07 00 3E 12 00 00 00 00 00 FF 0F 65 [17:54:53]process_action close_receipt done [17:54:53]requested_data is exist [17:54:53]produce_requested_data [17:54:53]requested_item fm.sn is exist - process it [17:54:53]wFMCommunicate request_size=4 [17:54:53]MH_SAM_APDU [17:54:53]CAPDU: 80 11 00 00 [17:54:53]Write to MH i2c: E2 08 00 3F 12 80 11 00 00 00 00 00 00 CB [17:54:53]Write i2c OK [17:54:53]MH_I2C_Read... [17:54:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:53]Read from MH i2c: E2 [17:54:53]MH_I2C_Read... [17:54:53]Read from MH i2c: E2 17 00 [17:54:53]MH_I2C_Read... [17:54:53]Read from MH i2c: E2 17 00 3F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 26 [17:54:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:54:53]wFMCommunicate OK [17:54:53]requested_item fd.num is exist - process it [17:54:53]SAM_PROTO_GetFieldsCounters [17:54:53]wFMCommunicate request_size=4 [17:54:53]MH_SAM_APDU [17:54:53]CAPDU: 80 13 00 00 [17:54:53]Write to MH i2c: E2 08 00 40 12 80 13 00 00 00 00 00 00 CE [17:54:53]Write i2c OK [17:54:53]MH_I2C_Read... [17:54:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:53]Read from MH i2c: E2 [17:54:53]MH_I2C_Read... [17:54:53]Read from MH i2c: E2 62 00 [17:54:53]MH_I2C_Read... [17:54:53]Read from MH i2c: E2 62 00 40 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E9 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [17:54:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E9 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:54:53]wFMCommunicate OK [17:54:53]SAM_PROTO_GetFieldsCounters done [17:54:53]requested_item shift.num is exist - process it [17:54:53]requested_item shift.opened is exist - process it [17:54:53]req_shift_opened [17:54:53]FM_GetShiftState [17:54:53]SAM_PROTO_GetShiftState [17:54:53]wFMCommunicate request_size=4 [17:54:53]MH_SAM_APDU [17:54:53]CAPDU: 80 13 01 00 [17:54:53]Write to MH i2c: E2 08 00 41 12 80 13 01 00 00 00 00 00 D0 [17:54:53]Write i2c OK [17:54:53]MH_I2C_Read... [17:54:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:53]Read from MH i2c: E2 [17:54:53]MH_I2C_Read... [17:54:53]Read from MH i2c: E2 0E 00 [17:54:53]MH_I2C_Read... [17:54:53]Read from MH i2c: E2 0E 00 41 12 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 5D [17:54:53]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [17:54:53]wFMCommunicate OK [17:54:53]SAM_PROTO_GetShiftState done [17:54:53]FM_GetShiftState done [17:54:53]req_shift_opened done [17:54:53]requested_item shift.open_date is exist - process it [17:54:53]req_shift_open_date [17:54:53]req_shift_open_date done [17:54:53]produce_requested_data done [17:54:53]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118249,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [17:54:53]process_action_free close_receipt [17:54:53]json_value_free [17:54:53]json_value_free done [17:54:53]process_json_proto returns [17:54:53]Send response to host [17:54:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118249,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [17:54:53]free response buf [17:54:53]execute_script done [17:54:53]execute_script returns [17:54:53]free content buf [17:54:53]Sock 9.Close socket [17:54:53]Sock 9.Thread stoped [17:54:57]OFD Sender: No OFD packet to send [17:55:02]OFD Sender: No OFD packet to send [17:55:07]OFD Sender: No OFD packet to send [17:55:12]OFD Sender: No OFD packet to send [17:55:17]OFD Sender: No OFD packet to send [17:55:22]OFD Sender: No OFD packet to send [17:55:27]OFD Sender: No OFD packet to send [17:55:32]OFD Sender: No OFD packet to send [17:55:37]OFD Sender: No OFD packet to send [17:55:42]OFD Sender: No OFD packet to send [17:55:47]OFD Sender: No OFD packet to send [17:55:52]OFD Sender: No OFD packet to send [17:55:57]OFD Sender: No OFD packet to send [17:56:02]OFD Sender: No OFD packet to send [17:56:07]OFD Sender: No OFD packet to send [17:56:12]OFD Sender: No OFD packet to send [17:56:17]OFD Sender: No OFD packet to send [17:56:22]OFD Sender: No OFD packet to send [17:56:27]OFD Sender: No OFD packet to send [17:56:32]OFD Sender: No OFD packet to send [17:56:37]OFD Sender: No OFD packet to send [17:56:42]OFD Sender: No OFD packet to send [17:56:47]OFD Sender: No OFD packet to send [17:56:52]OFD Sender: No OFD packet to send [17:56:57]OFD Sender: No OFD packet to send [17:57:02]OFD Sender: No OFD packet to send [17:57:07]OFD Sender: No OFD packet to send [17:57:12]OFD Sender: No OFD packet to send [17:57:17]OFD Sender: No OFD packet to send [17:57:22]OFD Sender: No OFD packet to send [17:57:27]OFD Sender: No OFD packet to send [17:57:32]OFD Sender: No OFD packet to send [17:57:37]OFD Sender: No OFD packet to send [17:57:42]OFD Sender: No OFD packet to send [17:57:47]OFD Sender: No OFD packet to send [17:57:52]OFD Sender: No OFD packet to send [17:57:57]OFD Sender: No OFD packet to send [17:58:00]accept exits with 7 [17:58:00]New connection [17:58:00]New thread 3066953060 created [17:58:00]Thread 3067096420 joined [17:58:00]Waiting for new connection... [17:58:00] Sock 7.Parse request [17:58:00]Sock 7.Check first char [17:58:00]Sock 7.First char is OK [17:58:00]request: POST /json_proto HTTP/1.0 [17:58:00]Method: POST [17:58:00]URL: /json_proto [17:58:00]Method is POST - this is cgi request [17:58:00]url: /json_proto [17:58:00]query_string will be loaded in cgi processing [17:58:00]execute_cgi json_proto POST (null) [17:58:00]execute_cgi path=json_proto method=POST [17:58:00]POST find Content-Length [17:58:00]Host: 172.17.45.7:8080 [17:58:00]Content-Length: 819 [17:58:00]Content-Type: application/json [17:58:00] [17:58:00]POST finish read [17:58:00]Found Content-Length = 819 [17:58:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.53, "quantity" : 66.340, "sum" : 5010.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 5010.00, "payments": [ { "type": 1, "sum" : 5010.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:00]execute_script... [17:58: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)949120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.53, "quantity" : 66.340, "sum" : 5010.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 5010.00, "payments": [ { "type": 1, "sum" : 5010.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:00]POST & json_proto [17:58:00]process_json_proto [17:58:00]json parsed OK: [17:58:00]protocol is kg_v1.0 [17:58:00]action value=close_receipt [17:58:00]process_action close_receipt [17:58:00]cmd_close_receipt [17:58:00]MH_GetDate [17:58:00]Write to MH i2c: F0 00 00 42 12 43 [17:58:00]Write i2c OK [17:58:00]MH_I2C_Read... [17:58:00]Read from MH i2c: F0 [17:58:00]MH_I2C_Read... [17:58:00]Read from MH i2c: F0 09 00 [17:58:00]MH_I2C_Read... [17:58:00]Read from MH i2c: F0 09 00 42 12 00 29 35 A5 66 90 0F 3E 66 F8 [17:58:00]GetLastDocTimeStamp 1722102890 [17:58:00]current date 1722103081 [17:58:00]FM_GetShiftState [17:58:00]SAM_PROTO_GetShiftState [17:58:00]wFMCommunicate request_size=4 [17:58:00]MH_SAM_APDU [17:58:00]CAPDU: 80 13 01 00 [17:58:00]Write to MH i2c: E2 08 00 43 12 80 13 01 00 00 00 00 00 D2 [17:58:00]Write i2c OK [17:58:00]MH_I2C_Read... [17:58:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:00]Read from MH i2c: E2 [17:58:00]MH_I2C_Read... [17:58:00]Read from MH i2c: E2 0E 00 [17:58:00]MH_I2C_Read... [17:58:00]Read from MH i2c: E2 0E 00 43 12 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 5F [17:58:00]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [17:58:00]wFMCommunicate OK [17:58:00]SAM_PROTO_GetShiftState done [17:58:00]FM_GetShiftState done [17:58:00]opened in 1722038845 [17:58:00]opened+sec_in_day 1722125245 [17:58:00]quantity*price = 501066 [17:58:00]sum+1 = 501067 [17:58:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 5010.00 НСП 1% : 44.34 НДС 12% : 532.10 Наличными: 0.00 Безнал.: 5010.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 193 27.07.2024 17:58 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118250 ФПД: 80178187857117 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T175801&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118250&fm=80178187857117&tin=02508201610067®Number=0000000000092660&sum=501000 [17:58:01]StoreToDocumentArchive [17:58:01]shift 432 fd 118250 [17:58:01]save to /storage/0432/doc_00118250 [17:58:01]save last doc name /storage/0432/doc_00118250 to /storage/kkm_last_doc_name [17:58:01]save OK [17:58:01]Clear old archive folders... [17:58:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:58:01]tlvbuf is B6EE43D0 [17:58:01]SAM_PROTO_ClearQueue [17:58:01]wFMCommunicate request_size=4 [17:58:01]MH_SAM_APDU [17:58:01]CAPDU: 80 09 00 00 [17:58:01]Write to MH i2c: E2 08 00 50 12 80 09 00 00 00 00 00 00 D4 [17:58:01]Write i2c OK [17:58:01]MH_I2C_Read... [17:58:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:01]Read from MH i2c: E2 [17:58:01]MH_I2C_Read... [17:58:01]Read from MH i2c: E2 03 00 [17:58:01]MH_I2C_Read... [17:58:01]Read from MH i2c: E2 03 00 50 12 00 90 00 D6 [17:58:01]RAPDU: 90 00 [17:58:01]wFMCommunicate OK [17:58:01]SAM_PROTO_ClearQueue done [17:58:01]KKMCreateOFDPacket [17:58:01]OFDProtocolAddRootSTLVToBuf [17:58:01]FM_MakeSignedData [17:58:01]FM_MakeSignedData [17:58:01]SAM_PROTO_SignData [17:58:01]wFMCommunicate request_size=4 [17:58:01]MH_SAM_APDU [17:58:01]CAPDU: 80 0D 01 02 [17:58:01]Write to MH i2c: E2 08 00 51 12 80 0D 01 02 00 00 00 00 DC [17:58:01]Write i2c OK [17:58:01]MH_I2C_Read... [17:58:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:01]Read from MH i2c: E2 [17:58:01]MH_I2C_Read... [17:58:01]Read from MH i2c: E2 03 00 [17:58:01]MH_I2C_Read... [17:58:01]Read from MH i2c: E2 03 00 51 12 00 90 00 D7 [17:58:01]RAPDU: 90 00 [17:58:01]wFMCommunicate OK [17:58:01]wFMCommunicate request_size=255 [17:58:01]MH_SAM_APDU [17:58: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 03 01 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 4A A5 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 A5 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 A5 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 29 35 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EA CD 01 00 35 04 06 00 48 EB F0 67 [17:58:01]Write to MH i2c: E2 02 01 52 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 03 01 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 4A A5 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 A5 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 A5 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 29 35 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EA CD 01 00 35 04 06 00 48 EB F0 67 00 00 91 [17:58:01]Write i2c OK [17:58:01]MH_I2C_Read... [17:58:02]Read from MH i2c: E2 [17:58:02]MH_I2C_Read... [17:58:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:02]Read from MH i2c: E2 03 00 [17:58:02]MH_I2C_Read... [17:58:02]Read from MH i2c: E2 03 00 52 12 00 90 00 D8 [17:58:02]RAPDU: 90 00 [17:58:02]wFMCommunicate OK [17:58:02]wFMCommunicate request_size=7 [17:58:02]MH_SAM_APDU [17:58:02]CAPDU: 80 0D 02 02 02 EC DD [17:58:02]Write to MH i2c: E2 0A 00 53 12 80 0D 02 02 02 00 EC DD 00 00 AC [17:58:02]Write i2c OK [17:58:02]MH_I2C_Read... [17:58:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:02]Read from MH i2c: E2 [17:58:02]MH_I2C_Read... [17:58:02]Read from MH i2c: E2 03 00 [17:58:02]MH_I2C_Read... [17:58:02]Read from MH i2c: E2 03 00 53 12 00 90 00 D9 [17:58:02]RAPDU: 90 00 [17:58:02]wFMCommunicate OK [17:58:02]wFMCommunicate request_size=4 [17:58:02]MH_SAM_APDU [17:58:02]CAPDU: 80 0D 03 02 [17:58:02]Write to MH i2c: E2 08 00 54 12 80 0D 03 02 00 00 00 00 E1 [17:58:02]Write i2c OK [17:58:02]MH_I2C_Read... [17:58:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:02]Read from MH i2c: E2 [17:58:02]MH_I2C_Read... [17:58:02]Read from MH i2c: E2 0B 00 [17:58:02]MH_I2C_Read... [17:58:02]Read from MH i2c: E2 0B 00 54 12 00 92 B1 16 45 9A 2C 13 F9 90 00 52 [17:58:02]RAPDU: 92 B1 16 45 9A 2C 13 F9 90 00 [17:58:02]wFMCommunicate OK [17:58:02]SAM_PROTO_SignData done [17:58:02]FM_MakeSignedData done [17:58:02]CreateOFDProtocolMessage [17:58:02]wFMCommunicate request_size=4 [17:58:02]MH_SAM_APDU [17:58:02]CAPDU: 80 11 00 00 [17:58:02]Write to MH i2c: E2 08 00 55 12 80 11 00 00 00 00 00 00 E1 [17:58:02]Write i2c OK [17:58:02]MH_I2C_Read... [17:58:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:02]Read from MH i2c: E2 [17:58:02]MH_I2C_Read... [17:58:02]Read from MH i2c: E2 17 00 [17:58:02]MH_I2C_Read... [17:58:02]Read from MH i2c: E2 17 00 55 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3C [17:58:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:58:02]wFMCommunicate OK [17:58:02]CreateOFDProtocolMessage done [17:58:02]OFDSenderStorePacket 118250 [17:58:02]StoreOFDPacket docnum=118250 [17:58:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 14 80 04 01 66 87 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 03 01 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 4A A5 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 A5 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 A5 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 29 35 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EA CD 01 00 35 04 06 00 48 EB F0 67 EC DD 92 B1 16 45 9A 2C 13 F9 [17:58:02]CheckFolder [17:58:02]dirname=/storage/ofd_packets [17:58:02]CheckFolder done [17:58:02]ProducePacketName [17:58:02]name=ofd_packets/00118250 [17:58:02]NVStorageSaveData ofd_packets/00118250 [17:58:02]File name is /storage/ofd_packets/00118250 [17:58:02]Write 298 bytes [17:58:02]NVStorageSaveData done [17:58:02]OFDSenderStorePacket done [17:58:02]KKMCreateOFDPacket done [17:58:02]NVStorageSaveData kkm_last_timestamp [17:58:02]File name is /storage/kkm_last_timestamp [17:58:02]Write 4 bytes [17:58:02]NVStorageSaveData done [17:58:02]ExternCall_PrintAddStr [17:58:02]wPrintStart [17:58:02]Write to MH i2c: 01 00 00 56 12 68 [17:58:02]Write i2c OK [17:58:02]MH_I2C_Read... [17:58:02]Read from MH i2c: 01 [17:58:02]MH_I2C_Read... [17:58:02]Read from MH i2c: 01 07 00 [17:58:02]MH_I2C_Read... [17:58:02]Read from MH i2c: 01 07 00 56 12 00 00 00 00 00 FF 0F 7D [17:58:02]RasterBufferAndPrint [17:58:02]line Счет N : (1)949120 [17:58:02]line ИНН: 02508201610067 [17:58:02]line Контрольно-Кассовый Чек [17:58:02]line ПРОДАЖА [17:58:02]line ТРК (МРК, ГНК) : 44 [17:58:02]line Товар: 2710194800 [17:58:02]line ДТ-К-5 [17:58:02]line 66.340 * 75.53 [17:58:02]line = 5010.66 [17:58:02]line НДС 12% НСП 1% [17:58:02]line > о реализуемом товаре [17:58:02]line ОКРУГЛЕНИЕ: -0.66 [17:58:02]line ИТОГО: 5010.00 [17:58:02]line НСП 1% : 44.34 [17:58:02]line НДС 12% : 532.10 [17:58:02]line Наличными: 0.00 [17:58:02]line Безнал.: 5010.00 [17:58:02]line Место: АЗС № 134 "Партнер Нефть" [17:58:02]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:58:02]line СНО: Общий режим [17:58:02]line Чек 193 27.07.2024 17:58 [17:58:02]line Смена: 432 ФФД: 1.0 [17:58:02]line ЗНМ: 0300000044 [17:58:02]line РНМ: 0000000000092660 [17:58:02]line Версия ККМ: 001 [17:58:02]line Платежная система: O! деньги [17:58:02]line ФМ: 0000000000874939 [17:58:02]line ФД: 118250 [17:58:02]line ФПД: 80178187857117 [17:58:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T175801&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118250&fm=80178187857117&tin=02508201610067®Number=0000000000092660&sum=501000 [17:58:02]OFD Sender: Processing packet 118250 [packets to send 86, broken 85] [17:58:02]ProducePacketName [17:58:02]name=ofd_packets/00118250 [17:58:02]OFD Sender: To server: pG, [17:58:02]CommunicateWithHost lk.salyk.kg:30040 [17:58:02]ConnectInit lk.salyk.kg [17:58:02]written 0, free lines is 4095 [17:58:02]Connected sock=10 [17:58:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 14 80 04 01 66 87 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 03 01 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 4A A5 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 A5 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 A5 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 29 35 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EA CD 01 00 35 04 06 00 48 EB F0 67 EC DD 92 B1 16 45 9A 2C 13 F9 [17:58:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 11 04 47 00 4E 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EA CD 01 00 F4 03 04 00 BB E2 A4 66 B6 04 01 00 00 7D F9 1C 6F 26 8B B2 B0 [17:58:02]CommunicateWithHost err = 0 [17:58:02]CheckOFDResponse [17:58:02]1017 (14) - 77093643461234 [17:58:02]1041 (16) - 0000000000874939 [17:58:02]1040 (4) - 118250 [17:58:02]1012 (4) - 27.07.2024 12:06 [17:58:02]1206 (1) - 0 [17:58:02]OFD Sender: Remove packet 118250 [17:58:02]ProducePacketName [17:58:02]name=ofd_packets/00118250 [17:58:02]NVStorageDeleteData [17:58:03]Write to MH i2c: 01 00 00 80 12 92 [17:58:03]Write i2c OK [17:58:03]MH_I2C_Read... [17:58:03]Read from MH i2c: 01 [17:58:03]MH_I2C_Read... [17:58:03]Read from MH i2c: 01 07 00 [17:58:03]MH_I2C_Read... [17:58:03]Read from MH i2c: 01 07 00 80 12 00 00 00 00 00 DD 0C 82 [17:58:03]RasterBufferAndPrint [17:58:03]line [17:58:03]line [17:58:03]line [17:58:03]line [17:58:03]line [17:58:03]written 0, free lines is 3300 [17:58:03]MH_Cut [17:58:03]Write to MH i2c: D1 01 00 87 12 01 6B [17:58:03]Write i2c OK [17:58:03]MH_I2C_Read... [17:58:03]Read from MH i2c: D1 [17:58:03]MH_I2C_Read... [17:58:03]Read from MH i2c: D1 01 00 [17:58:03]MH_I2C_Read... [17:58:03]Read from MH i2c: D1 01 00 87 12 00 6A [17:58:03]Write to MH i2c: 01 00 00 88 12 9A [17:58:03]Write i2c OK [17:58:03]MH_I2C_Read... [17:58:03]OFD Sender: No OFD packet to send [17:58:03]*** Cut start [17:58:03]*** Partial cut [17:58:03]*** CUTSNS_PIN = 1 [17:58:03]*** CUTSNS_PIN = 0 [17:58:04]*** Brake cut motor [17:58:04]Read from MH i2c: 01 [17:58:04]MH_I2C_Read... [17:58:04]*** Stop cut motor [17:58:04]*** Cut end [17:58:04]Read from MH i2c: 01 07 00 [17:58:04]MH_I2C_Read... [17:58:04]Read from MH i2c: 01 07 00 88 12 00 00 00 00 00 FF 0F AF [17:58:04]process_action close_receipt done [17:58:04]requested_data is exist [17:58:04]produce_requested_data [17:58:04]requested_item fm.sn is exist - process it [17:58:04]wFMCommunicate request_size=4 [17:58:04]MH_SAM_APDU [17:58:04]CAPDU: 80 11 00 00 [17:58:04]Write to MH i2c: E2 08 00 89 12 80 11 00 00 00 00 00 00 15 [17:58:04]Write i2c OK [17:58:04]MH_I2C_Read... [17:58:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:04]Read from MH i2c: E2 [17:58:04]MH_I2C_Read... [17:58:04]Read from MH i2c: E2 17 00 [17:58:04]MH_I2C_Read... [17:58:04]Read from MH i2c: E2 17 00 89 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 70 [17:58:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:58:04]wFMCommunicate OK [17:58:04]requested_item fd.num is exist - process it [17:58:04]SAM_PROTO_GetFieldsCounters [17:58:04]wFMCommunicate request_size=4 [17:58:04]MH_SAM_APDU [17:58:04]CAPDU: 80 13 00 00 [17:58:04]Write to MH i2c: E2 08 00 8A 12 80 13 00 00 00 00 00 00 18 [17:58:04]Write i2c OK [17:58:04]MH_I2C_Read... [17:58:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:04]Read from MH i2c: E2 [17:58:04]MH_I2C_Read... [17:58:04]Read from MH i2c: E2 62 00 [17:58:04]MH_I2C_Read... [17:58:04]Read from MH i2c: E2 62 00 8A 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EA CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [17:58:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EA CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:58:04]wFMCommunicate OK [17:58:04]SAM_PROTO_GetFieldsCounters done [17:58:04]requested_item shift.num is exist - process it [17:58:04]requested_item shift.opened is exist - process it [17:58:04]req_shift_opened [17:58:04]FM_GetShiftState [17:58:04]SAM_PROTO_GetShiftState [17:58:04]wFMCommunicate request_size=4 [17:58:04]MH_SAM_APDU [17:58:04]CAPDU: 80 13 01 00 [17:58:04]Write to MH i2c: E2 08 00 8B 12 80 13 01 00 00 00 00 00 1A [17:58:04]Write i2c OK [17:58:04]MH_I2C_Read... [17:58:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:04]Read from MH i2c: E2 [17:58:04]MH_I2C_Read... [17:58:04]Read from MH i2c: E2 0E 00 [17:58:04]MH_I2C_Read... [17:58:04]Read from MH i2c: E2 0E 00 8B 12 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 A7 [17:58:04]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [17:58:04]wFMCommunicate OK [17:58:04]SAM_PROTO_GetShiftState done [17:58:04]FM_GetShiftState done [17:58:04]req_shift_opened done [17:58:04]requested_item shift.open_date is exist - process it [17:58:04]req_shift_open_date [17:58:04]req_shift_open_date done [17:58:04]produce_requested_data done [17:58:04]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118250,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [17:58:04]process_action_free close_receipt [17:58:04]json_value_free [17:58:04]json_value_free done [17:58:04]process_json_proto returns [17:58:04]Send response to host [17:58:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118250,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [17:58:04]free response buf [17:58:04]execute_script done [17:58:04]execute_script returns [17:58:04]free content buf [17:58:04]Sock 7.Close socket [17:58:04]Sock 7.Thread stoped [17:58:08]OFD Sender: No OFD packet to send [17:58:13]OFD Sender: No OFD packet to send [17:58:18]OFD Sender: No OFD packet to send [17:58:23]OFD Sender: No OFD packet to send [17:58:28]OFD Sender: No OFD packet to send [17:58:33]OFD Sender: No OFD packet to send [17:58:38]OFD Sender: No OFD packet to send [17:58:43]OFD Sender: No OFD packet to send [17:58:48]OFD Sender: No OFD packet to send [17:58:53]OFD Sender: No OFD packet to send [17:58:58]OFD Sender: No OFD packet to send [17:59:03]OFD Sender: No OFD packet to send [17:59:08]OFD Sender: No OFD packet to send [17:59:13]OFD Sender: No OFD packet to send [17:59:18]OFD Sender: No OFD packet to send [17:59:23]OFD Sender: No OFD packet to send [17:59:28]OFD Sender: No OFD packet to send [17:59:33]OFD Sender: No OFD packet to send [17:59:38]OFD Sender: No OFD packet to send [17:59:43]OFD Sender: No OFD packet to send [17:59:48]OFD Sender: No OFD packet to send [17:59:53]OFD Sender: No OFD packet to send [17:59:58]OFD Sender: No OFD packet to send [18:00:03]OFD Sender: No OFD packet to send [18:00:08]OFD Sender: No OFD packet to send [18:00:13]OFD Sender: No OFD packet to send [18:00:18]OFD Sender: No OFD packet to send [18:00:23]OFD Sender: No OFD packet to send [18:00:28]OFD Sender: No OFD packet to send [18:00:33]OFD Sender: No OFD packet to send [18:00:38]OFD Sender: No OFD packet to send [18:00:43]OFD Sender: No OFD packet to send [18:00:48]OFD Sender: No OFD packet to send [18:00:53]OFD Sender: No OFD packet to send [18:00:58]OFD Sender: No OFD packet to send [18:01:03]OFD Sender: No OFD packet to send [18:01:08]OFD Sender: No OFD packet to send [18:01:13]OFD Sender: No OFD packet to send [18:01:18]OFD Sender: No OFD packet to send [18:01:23]OFD Sender: No OFD packet to send [18:01:28]OFD Sender: No OFD packet to send [18:01:33]OFD Sender: No OFD packet to send [18:01:38]OFD Sender: No OFD packet to send [18:01:43]OFD Sender: No OFD packet to send [18:01:48]OFD Sender: No OFD packet to send [18:01:53]OFD Sender: No OFD packet to send [18:01:58]OFD Sender: No OFD packet to send [18:02:03]OFD Sender: No OFD packet to send [18:02:08]OFD Sender: No OFD packet to send [18:02:13]OFD Sender: No OFD packet to send [18:02:18]OFD Sender: No OFD packet to send [18:02:23]OFD Sender: No OFD packet to send [18:02:28]OFD Sender: No OFD packet to send [18:02:33]OFD Sender: No OFD packet to send [18:02:38]OFD Sender: No OFD packet to send [18:02:43]OFD Sender: No OFD packet to send [18:02:48]OFD Sender: No OFD packet to send [18:02:53]OFD Sender: No OFD packet to send [18:02:58]OFD Sender: No OFD packet to send [18:03:03]OFD Sender: No OFD packet to send [18:03:08]OFD Sender: No OFD packet to send [18:03:13]OFD Sender: No OFD packet to send [18:03:18]OFD Sender: No OFD packet to send [18:03:23]OFD Sender: No OFD packet to send [18:03:28]OFD Sender: No OFD packet to send [18:03:33]OFD Sender: No OFD packet to send [18:03:38]OFD Sender: No OFD packet to send [18:03:43]OFD Sender: No OFD packet to send [18:03:48]OFD Sender: No OFD packet to send [18:03:53]OFD Sender: No OFD packet to send [18:03:58]OFD Sender: No OFD packet to send [18:04:03]OFD Sender: No OFD packet to send [18:04:08]OFD Sender: No OFD packet to send [18:04:13]OFD Sender: No OFD packet to send [18:04:18]OFD Sender: No OFD packet to send [18:04:23]OFD Sender: No OFD packet to send [18:04:28]OFD Sender: No OFD packet to send [18:04:33]OFD Sender: No OFD packet to send [18:04:38]OFD Sender: No OFD packet to send [18:04:43]OFD Sender: No OFD packet to send [18:04:48]OFD Sender: No OFD packet to send [18:04:53]OFD Sender: No OFD packet to send [18:04:58]OFD Sender: No OFD packet to send [18:05:03]OFD Sender: No OFD packet to send [18:05:08]OFD Sender: No OFD packet to send [18:05:13]OFD Sender: No OFD packet to send [18:05:18]OFD Sender: No OFD packet to send [18:05:23]OFD Sender: No OFD packet to send [18:05:28]OFD Sender: No OFD packet to send [18:05:33]OFD Sender: No OFD packet to send [18:05:38]OFD Sender: No OFD packet to send [18:05:43]OFD Sender: No OFD packet to send [18:05:48]OFD Sender: No OFD packet to send [18:05:53]OFD Sender: No OFD packet to send [18:05:58]OFD Sender: No OFD packet to send [18:06:03]OFD Sender: No OFD packet to send [18:06:05]accept exits with 9 [18:06:05]New connection [18:06:05]New thread 3067096420 created [18:06:05]Thread 3066953060 joined [18:06:05]Waiting for new connection... [18:06:05] Sock 9.Parse request [18:06:05]Sock 9.Check first char [18:06:05]Sock 9.First char is OK [18:06:05]request: POST /json_proto HTTP/1.0 [18:06:05]Method: POST [18:06:05]URL: /json_proto [18:06:05]Method is POST - this is cgi request [18:06:05]url: /json_proto [18:06:05]query_string will be loaded in cgi processing [18:06:05]execute_cgi json_proto POST (null) [18:06:05]execute_cgi path=json_proto method=POST [18:06:05]POST find Content-Length [18:06:05]Host: 172.17.45.7:8080 [18:06:05]Content-Length: 682 [18:06:05]Content-Type: application/json [18:06:05] [18:06:05]POST finish read [18:06:05]Found Content-Length = 682 [18:06:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:05]execute_script... [18:06: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)949121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:05]POST & json_proto [18:06:05]process_json_proto [18:06:05]json parsed OK: [18:06:05]protocol is kg_v1.0 [18:06:05]action value=close_receipt [18:06:05]process_action close_receipt [18:06:05]cmd_close_receipt [18:06:05]MH_GetDate [18:06:05]Write to MH i2c: F0 00 00 8C 12 8D [18:06:05]Write i2c OK [18:06:05]MH_I2C_Read... [18:06:06]Read from MH i2c: F0 [18:06:06]MH_I2C_Read... [18:06:06]Read from MH i2c: F0 09 00 [18:06:06]MH_I2C_Read... [18:06:06]Read from MH i2c: F0 09 00 8C 12 00 0E 37 A5 66 90 0F 3E 66 29 [18:06:06]GetLastDocTimeStamp 1722103081 [18:06:06]current date 1722103566 [18:06:06]FM_GetShiftState [18:06:06]SAM_PROTO_GetShiftState [18:06:06]wFMCommunicate request_size=4 [18:06:06]MH_SAM_APDU [18:06:06]CAPDU: 80 13 01 00 [18:06:06]Write to MH i2c: E2 08 00 8D 12 80 13 01 00 00 00 00 00 1C [18:06:06]Write i2c OK [18:06:06]MH_I2C_Read... [18:06:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:06]Read from MH i2c: E2 [18:06:06]MH_I2C_Read... [18:06:06]Read from MH i2c: E2 0E 00 [18:06:06]MH_I2C_Read... [18:06:06]Read from MH i2c: E2 0E 00 8D 12 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 A9 [18:06:06]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [18:06:06]wFMCommunicate OK [18:06:06]SAM_PROTO_GetShiftState done [18:06:06]FM_GetShiftState done [18:06:06]opened in 1722038845 [18:06:06]opened+sec_in_day 1722125245 [18:06:06]quantity*price = 100021 [18:06:06]sum+1 = 100023 [18:06:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 194 27.07.2024 18:06 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118251 ФПД: 208060496371767 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T180606&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118251&fm=208060496371767&tin=02508201610067®Number=0000000000092660&sum=100000 [18:06:07]StoreToDocumentArchive [18:06:07]shift 432 fd 118251 [18:06:07]save to /storage/0432/doc_00118251 [18:06:07]save last doc name /storage/0432/doc_00118251 to /storage/kkm_last_doc_name [18:06:07]save OK [18:06:07]Clear old archive folders... [18:06:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:06:07]tlvbuf is 01E40B20 [18:06:07]SAM_PROTO_ClearQueue [18:06:07]wFMCommunicate request_size=4 [18:06:07]MH_SAM_APDU [18:06:07]CAPDU: 80 09 00 00 [18:06:07]Write to MH i2c: E2 08 00 9A 12 80 09 00 00 00 00 00 00 1E [18:06:07]Write i2c OK [18:06:07]MH_I2C_Read... [18:06:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:06:07]Read from MH i2c: E2 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 03 00 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 03 00 9A 12 00 90 00 20 [18:06:07]RAPDU: 90 00 [18:06:07]wFMCommunicate OK [18:06:07]SAM_PROTO_ClearQueue done [18:06:07]KKMCreateOFDPacket [18:06:07]OFDProtocolAddRootSTLVToBuf [18:06:07]FM_MakeSignedData [18:06:07]FM_MakeSignedData [18:06:07]SAM_PROTO_SignData [18:06:07]wFMCommunicate request_size=4 [18:06:07]MH_SAM_APDU [18:06:07]CAPDU: 80 0D 01 02 [18:06:07]Write to MH i2c: E2 08 00 9B 12 80 0D 01 02 00 00 00 00 26 [18:06:07]Write i2c OK [18:06:07]MH_I2C_Read... [18:06:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:06:07]Read from MH i2c: E2 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 03 00 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 03 00 9B 12 00 90 00 21 [18:06:07]RAPDU: 90 00 [18:06:07]wFMCommunicate OK [18:06:07]wFMCommunicate request_size=255 [18:06:07]MH_SAM_APDU [18:06:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 0E 37 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EB CD 01 00 35 04 06 00 BD [18:06:07]Write to MH i2c: E2 02 01 9C 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 C2 00 00 00 F4 03 04 00 0E 37 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EB CD 01 00 35 04 06 00 BD 00 00 0F [18:06:07]Write i2c OK [18:06:07]MH_I2C_Read... [18:06:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:07]Read from MH i2c: E2 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 03 00 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 03 00 9C 12 00 90 00 22 [18:06:07]RAPDU: 90 00 [18:06:07]wFMCommunicate OK [18:06:07]wFMCommunicate request_size=10 [18:06:07]MH_SAM_APDU [18:06:07]CAPDU: 80 0D 02 02 05 3A DB FA 60 37 [18:06:07]Write to MH i2c: E2 0D 00 9D 12 80 0D 02 02 05 00 3A DB FA 60 37 00 00 D9 [18:06:07]Write i2c OK [18:06:07]MH_I2C_Read... [18:06:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:07]Read from MH i2c: E2 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 03 00 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 03 00 9D 12 00 90 00 23 [18:06:07]RAPDU: 90 00 [18:06:07]wFMCommunicate OK [18:06:07]wFMCommunicate request_size=4 [18:06:07]MH_SAM_APDU [18:06:07]CAPDU: 80 0D 03 02 [18:06:07]Write to MH i2c: E2 08 00 9E 12 80 0D 03 02 00 00 00 00 2B [18:06:07]Write i2c OK [18:06:07]MH_I2C_Read... [18:06:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:06:07]Read from MH i2c: E2 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 0B 00 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 0B 00 9E 12 00 D0 A1 9C 42 34 09 5E BF 90 00 D5 [18:06:07]RAPDU: D0 A1 9C 42 34 09 5E BF 90 00 [18:06:07]wFMCommunicate OK [18:06:07]SAM_PROTO_SignData done [18:06:07]FM_MakeSignedData done [18:06:07]CreateOFDProtocolMessage [18:06:07]wFMCommunicate request_size=4 [18:06:07]MH_SAM_APDU [18:06:07]CAPDU: 80 11 00 00 [18:06:07]Write to MH i2c: E2 08 00 9F 12 80 11 00 00 00 00 00 00 2B [18:06:07]Write i2c OK [18:06:07]MH_I2C_Read... [18:06:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:07]Read from MH i2c: E2 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 17 00 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 17 00 9F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 86 [18:06:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:06:07]wFMCommunicate OK [18:06:07]CreateOFDProtocolMessage done [18:06:07]OFDSenderStorePacket 118251 [18:06:07]StoreOFDPacket docnum=118251 [18:06:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B2 C1 07 01 09 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 0E 37 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EB CD 01 00 35 04 06 00 BD 3A DB FA 60 37 D0 A1 9C 42 34 09 5E BF [18:06:07]CheckFolder [18:06:07]dirname=/storage/ofd_packets [18:06:07]CheckFolder done [18:06:07]ProducePacketName [18:06:07]name=ofd_packets/00118251 [18:06:07]NVStorageSaveData ofd_packets/00118251 [18:06:07]File name is /storage/ofd_packets/00118251 [18:06:07]Write 301 bytes [18:06:07]NVStorageSaveData done [18:06:07]OFDSenderStorePacket done [18:06:07]KKMCreateOFDPacket done [18:06:07]NVStorageSaveData kkm_last_timestamp [18:06:07]File name is /storage/kkm_last_timestamp [18:06:07]Write 4 bytes [18:06:07]NVStorageSaveData done [18:06:07]ExternCall_PrintAddStr [18:06:07]wPrintStart [18:06:07]Write to MH i2c: 01 00 00 A0 12 B2 [18:06:07]Write i2c OK [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: 01 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: 01 07 00 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: 01 07 00 A0 12 00 00 00 00 00 FF 0F C7 [18:06:07]RasterBufferAndPrint [18:06:07]line Счет N : (1)949121 [18:06:07]line ИНН: 02508201610067 [18:06:07]line Контрольно-Кассовый Чек [18:06:07]line ПРОДАЖА [18:06:07]line ТРК (МРК, ГНК) : 33 [18:06:07]line Товар: 2710124500 [18:06:07]line Аи-95-К-3 [18:06:07]line 13.480 * 74.20 [18:06:07]line = 1000.22 [18:06:07]line НДС 12% НСП 1% [18:06:07]line > о реализуемом товаре [18:06:07]line ОКРУГЛЕНИЕ: -0.22 [18:06:07]line ИТОГО: 1000.00 [18:06:07]line Внесено: 1000.00 [18:06:07]line СДАЧА: 0.00 [18:06:07]line НСП 1% : 8.85 [18:06:07]line НДС 12% : 106.22 [18:06:07]line Наличными: 1000.00 [18:06:07]line Безнал.: 0.00 [18:06:07]line Место: АЗС № 134 "Партнер Нефть" [18:06:07]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:06:07]line СНО: Общий режим [18:06:07]line Чек 194 27.07.2024 18:06 [18:06:07]line Смена: 432 ФФД: 1.0 [18:06:07]line ЗНМ: 0300000044 [18:06:07]line РНМ: 0000000000092660 [18:06:07]line Версия ККМ: 001 [18:06:07]line ФМ: 0000000000874939 [18:06:07]line ФД: 118251 [18:06:07]line ФПД: 208060496371767 [18:06:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T180606&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118251&fm=208060496371767&tin=02508201610067®Number=0000000000092660&sum=100000 [18:06:08]written 0, free lines is 4095 [18:06:08]OFD Sender: Processing packet 118251 [packets to send 86, broken 85] [18:06:08]ProducePacketName [18:06:08]name=ofd_packets/00118251 [18:06:08]OFD Sender: To server: pG, [18:06:08]CommunicateWithHost lk.salyk.kg:30040 [18:06:08]ConnectInit lk.salyk.kg [18:06:08]Connected sock=10 [18:06:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B2 C1 07 01 09 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 0E 37 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EB CD 01 00 35 04 06 00 BD 3A DB FA 60 37 D0 A1 9C 42 34 09 5E BF [18:06:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B0 0C 47 00 F9 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EB CD 01 00 F4 03 04 00 A1 E4 A4 66 B6 04 01 00 00 93 BE 69 92 C7 5E C5 12 [18:06:08]CommunicateWithHost err = 0 [18:06:08]CheckOFDResponse [18:06:08]1017 (14) - 77093643461234 [18:06:08]1041 (16) - 0000000000874939 [18:06:08]1040 (4) - 118251 [18:06:08]1012 (4) - 27.07.2024 12:14 [18:06:08]1206 (1) - 0 [18:06:08]OFD Sender: Remove packet 118251 [18:06:08]ProducePacketName [18:06:08]name=ofd_packets/00118251 [18:06:08]NVStorageDeleteData [18:06:08]Write to MH i2c: 01 00 00 CA 12 DC [18:06:08]Write i2c OK [18:06:08]MH_I2C_Read... [18:06:08]Read from MH i2c: 01 [18:06:08]MH_I2C_Read... [18:06:08]Read from MH i2c: 01 07 00 [18:06:08]MH_I2C_Read... [18:06:08]Read from MH i2c: 01 07 00 CA 12 00 00 00 00 00 E2 0C D1 [18:06:08]RasterBufferAndPrint [18:06:08]line [18:06:08]line [18:06:08]line [18:06:08]line [18:06:08]line [18:06:08]written 0, free lines is 3305 [18:06:08]MH_Cut [18:06:08]Write to MH i2c: D1 01 00 D1 12 01 B5 [18:06:08]Write i2c OK [18:06:08]MH_I2C_Read... [18:06:08]Read from MH i2c: D1 [18:06:08]MH_I2C_Read... [18:06:08]Read from MH i2c: D1 01 00 [18:06:08]MH_I2C_Read... [18:06:08]Read from MH i2c: D1 01 00 D1 12 00 B4 [18:06:08]Write to MH i2c: 01 00 00 D2 12 E4 [18:06:08]Write i2c OK [18:06:08]MH_I2C_Read... [18:06:08]OFD Sender: No OFD packet to send [18:06:09]*** Cut start [18:06:09]*** Partial cut [18:06:09]*** CUTSNS_PIN = 1 [18:06:09]*** CUTSNS_PIN = 0 [18:06:09]*** Brake cut motor [18:06:09]Read from MH i2c: 01 [18:06:09]MH_I2C_Read... [18:06:09]*** Stop cut motor [18:06:09]*** Cut end [18:06:09]Read from MH i2c: 01 07 00 [18:06:09]MH_I2C_Read... [18:06:09]Read from MH i2c: 01 07 00 D2 12 00 00 00 00 00 FF 0F F9 [18:06:09]process_action close_receipt done [18:06:09]requested_data is exist [18:06:09]produce_requested_data [18:06:09]requested_item fm.sn is exist - process it [18:06:09]wFMCommunicate request_size=4 [18:06:09]MH_SAM_APDU [18:06:09]CAPDU: 80 11 00 00 [18:06:09]Write to MH i2c: E2 08 00 D3 12 80 11 00 00 00 00 00 00 5F [18:06:09]Write i2c OK [18:06:09]MH_I2C_Read... [18:06:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:09]Read from MH i2c: E2 [18:06:09]MH_I2C_Read... [18:06:09]Read from MH i2c: E2 17 00 [18:06:09]MH_I2C_Read... [18:06:09]Read from MH i2c: E2 17 00 D3 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BA [18:06:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:06:09]wFMCommunicate OK [18:06:09]requested_item fd.num is exist - process it [18:06:09]SAM_PROTO_GetFieldsCounters [18:06:09]wFMCommunicate request_size=4 [18:06:09]MH_SAM_APDU [18:06:09]CAPDU: 80 13 00 00 [18:06:09]Write to MH i2c: E2 08 00 D4 12 80 13 00 00 00 00 00 00 62 [18:06:09]Write i2c OK [18:06:09]MH_I2C_Read... [18:06:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:06:09]Read from MH i2c: E2 [18:06:09]MH_I2C_Read... [18:06:09]Read from MH i2c: E2 62 00 [18:06:09]MH_I2C_Read... [18:06:09]Read from MH i2c: E2 62 00 D4 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EB CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [18:06:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EB CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:06:10]wFMCommunicate OK [18:06:10]SAM_PROTO_GetFieldsCounters done [18:06:10]requested_item shift.num is exist - process it [18:06:10]requested_item shift.opened is exist - process it [18:06:10]req_shift_opened [18:06:10]FM_GetShiftState [18:06:10]SAM_PROTO_GetShiftState [18:06:10]wFMCommunicate request_size=4 [18:06:10]MH_SAM_APDU [18:06:10]CAPDU: 80 13 01 00 [18:06:10]Write to MH i2c: E2 08 00 D5 12 80 13 01 00 00 00 00 00 64 [18:06:10]Write i2c OK [18:06:10]MH_I2C_Read... [18:06:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:10]Read from MH i2c: E2 [18:06:10]MH_I2C_Read... [18:06:10]Read from MH i2c: E2 0E 00 [18:06:10]MH_I2C_Read... [18:06:10]Read from MH i2c: E2 0E 00 D5 12 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 F1 [18:06:10]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [18:06:10]wFMCommunicate OK [18:06:10]SAM_PROTO_GetShiftState done [18:06:10]FM_GetShiftState done [18:06:10]req_shift_opened done [18:06:10]requested_item shift.open_date is exist - process it [18:06:10]req_shift_open_date [18:06:10]req_shift_open_date done [18:06:10]produce_requested_data done [18:06:10]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118251,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [18:06:10]process_action_free close_receipt [18:06:10]json_value_free [18:06:10]json_value_free done [18:06:10]process_json_proto returns [18:06:10]Send response to host [18:06:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118251,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [18:06:10]free response buf [18:06:10]execute_script done [18:06:10]execute_script returns [18:06:10]free content buf [18:06:10]Sock 9.Close socket [18:06:10]Sock 9.Thread stoped [18:06:13]OFD Sender: No OFD packet to send [18:06:18]OFD Sender: No OFD packet to send [18:06:23]OFD Sender: No OFD packet to send [18:06:28]OFD Sender: No OFD packet to send [18:06:33]OFD Sender: No OFD packet to send [18:06:38]OFD Sender: No OFD packet to send [18:06:43]OFD Sender: No OFD packet to send [18:06:48]OFD Sender: No OFD packet to send [18:06:53]OFD Sender: No OFD packet to send [18:06:58]OFD Sender: No OFD packet to send [18:07:03]OFD Sender: No OFD packet to send [18:07:08]OFD Sender: No OFD packet to send [18:07:13]OFD Sender: No OFD packet to send [18:07:18]OFD Sender: No OFD packet to send [18:07:23]OFD Sender: No OFD packet to send [18:07:28]OFD Sender: No OFD packet to send [18:07:33]OFD Sender: No OFD packet to send [18:07:38]OFD Sender: No OFD packet to send [18:07:43]OFD Sender: No OFD packet to send [18:07:48]OFD Sender: No OFD packet to send [18:07:53]OFD Sender: No OFD packet to send [18:07:58]OFD Sender: No OFD packet to send [18:08:03]OFD Sender: No OFD packet to send [18:08:08]OFD Sender: No OFD packet to send [18:08:13]OFD Sender: No OFD packet to send [18:08:18]OFD Sender: No OFD packet to send [18:08:23]OFD Sender: No OFD packet to send [18:08:29]OFD Sender: No OFD packet to send [18:08:32]accept exits with 7 [18:08:32]New connection [18:08:32]New thread 3066953060 created [18:08:32]Thread 3067096420 joined [18:08:32]Waiting for new connection... [18:08:32] Sock 7.Parse request [18:08:32]Sock 7.Check first char [18:08:32]Sock 7.First char is OK [18:08:32]request: POST /json_proto HTTP/1.0 [18:08:32]Method: POST [18:08:32]URL: /json_proto [18:08:32]Method is POST - this is cgi request [18:08:32]url: /json_proto [18:08:32]query_string will be loaded in cgi processing [18:08:32]execute_cgi json_proto POST (null) [18:08:32]execute_cgi path=json_proto method=POST [18:08:32]POST find Content-Length [18:08:32]Host: 172.17.45.7:8080 [18:08:32]Content-Length: 819 [18:08:32]Content-Type: application/json [18:08:32] [18:08:32]POST finish read [18:08:32]Found Content-Length = 819 [18:08:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:32]execute_script... [18:08: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)949122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:32]POST & json_proto [18:08:32]process_json_proto [18:08:32]json parsed OK: [18:08:32]protocol is kg_v1.0 [18:08:32]action value=close_receipt [18:08:32]process_action close_receipt [18:08:32]cmd_close_receipt [18:08:32]MH_GetDate [18:08:32]Write to MH i2c: F0 00 00 D6 12 D7 [18:08:32]Write i2c OK [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: F0 [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: F0 09 00 [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: F0 09 00 D6 12 00 A1 37 A5 66 90 0F 3E 66 06 [18:08:32]GetLastDocTimeStamp 1722103566 [18:08:32]current date 1722103713 [18:08:32]FM_GetShiftState [18:08:32]SAM_PROTO_GetShiftState [18:08:32]wFMCommunicate request_size=4 [18:08:32]MH_SAM_APDU [18:08:32]CAPDU: 80 13 01 00 [18:08:32]Write to MH i2c: E2 08 00 D7 12 80 13 01 00 00 00 00 00 66 [18:08:32]Write i2c OK [18:08:32]MH_I2C_Read... [18:08:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:32]Read from MH i2c: E2 [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: E2 0E 00 [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: E2 0E 00 D7 12 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 F3 [18:08:32]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [18:08:32]wFMCommunicate OK [18:08:32]SAM_PROTO_GetShiftState done [18:08:32]FM_GetShiftState done [18:08:32]opened in 1722038845 [18:08:32]opened+sec_in_day 1722125245 [18:08:32]quantity*price = 200025 [18:08:32]sum+1 = 200026 [18:08:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 195 27.07.2024 18:08 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118252 ФПД: 128987308466617 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T180833&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118252&fm=128987308466617&tin=02508201610067®Number=0000000000092660&sum=200000 [18:08:33]StoreToDocumentArchive [18:08:33]shift 432 fd 118252 [18:08:33]save to /storage/0432/doc_00118252 [18:08:33]save last doc name /storage/0432/doc_00118252 to /storage/kkm_last_doc_name [18:08:33]save OK [18:08:33]Clear old archive folders... [18:08:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:08:33]tlvbuf is 01E40490 [18:08:33]SAM_PROTO_ClearQueue [18:08:33]wFMCommunicate request_size=4 [18:08:33]MH_SAM_APDU [18:08:33]CAPDU: 80 09 00 00 [18:08:33]Write to MH i2c: E2 08 00 E4 12 80 09 00 00 00 00 00 00 68 [18:08:33]Write i2c OK [18:08:33]MH_I2C_Read... [18:08:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:08:33]Read from MH i2c: E2 [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: E2 03 00 [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: E2 03 00 E4 12 00 90 00 6A [18:08:33]RAPDU: 90 00 [18:08:33]wFMCommunicate OK [18:08:33]SAM_PROTO_ClearQueue done [18:08:33]KKMCreateOFDPacket [18:08:33]OFDProtocolAddRootSTLVToBuf [18:08:33]FM_MakeSignedData [18:08:33]FM_MakeSignedData [18:08:33]SAM_PROTO_SignData [18:08:33]wFMCommunicate request_size=4 [18:08:33]MH_SAM_APDU [18:08:33]CAPDU: 80 0D 01 02 [18:08:33]Write to MH i2c: E2 08 00 E5 12 80 0D 01 02 00 00 00 00 70 [18:08:33]Write i2c OK [18:08:33]MH_I2C_Read... [18:08:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:08:33]Read from MH i2c: E2 [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: E2 03 00 [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: E2 03 00 E5 12 00 90 00 6B [18:08:33]RAPDU: 90 00 [18:08:33]wFMCommunicate OK [18:08:33]wFMCommunicate request_size=255 [18:08:33]MH_SAM_APDU [18:08: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 A1 37 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EC CD 01 00 35 04 06 00 75 50 32 B3 [18:08:33]Write to MH i2c: E2 02 01 E6 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 A1 37 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EC CD 01 00 35 04 06 00 75 50 32 B3 00 00 A9 [18:08:33]Write i2c OK [18:08:33]MH_I2C_Read... [18:08:34]OFD Sender: No OFD packet to send [18:08:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:34]Read from MH i2c: E2 [18:08:34]MH_I2C_Read... [18:08:34]Read from MH i2c: E2 03 00 [18:08:34]MH_I2C_Read... [18:08:34]Read from MH i2c: E2 03 00 E6 12 00 90 00 6C [18:08:34]RAPDU: 90 00 [18:08:34]wFMCommunicate OK [18:08:34]wFMCommunicate request_size=7 [18:08:34]MH_SAM_APDU [18:08:34]CAPDU: 80 0D 02 02 02 A1 B9 [18:08:34]Write to MH i2c: E2 0A 00 E7 12 80 0D 02 02 02 00 A1 B9 00 00 D1 [18:08:34]Write i2c OK [18:08:34]MH_I2C_Read... [18:08:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:34]Read from MH i2c: E2 [18:08:34]MH_I2C_Read... [18:08:34]Read from MH i2c: E2 03 00 [18:08:34]MH_I2C_Read... [18:08:34]Read from MH i2c: E2 03 00 E7 12 00 90 00 6D [18:08:34]RAPDU: 90 00 [18:08:34]wFMCommunicate OK [18:08:34]wFMCommunicate request_size=4 [18:08:34]MH_SAM_APDU [18:08:34]CAPDU: 80 0D 03 02 [18:08:34]Write to MH i2c: E2 08 00 E8 12 80 0D 03 02 00 00 00 00 75 [18:08:34]Write i2c OK [18:08:34]MH_I2C_Read... [18:08:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:08:34]Read from MH i2c: E2 [18:08:34]MH_I2C_Read... [18:08:34]Read from MH i2c: E2 0B 00 [18:08:34]MH_I2C_Read... [18:08:34]Read from MH i2c: E2 0B 00 E8 12 00 07 52 E6 2A 9E C7 D4 32 90 00 4A [18:08:34]RAPDU: 07 52 E6 2A 9E C7 D4 32 90 00 [18:08:34]wFMCommunicate OK [18:08:34]SAM_PROTO_SignData done [18:08:34]FM_MakeSignedData done [18:08:34]CreateOFDProtocolMessage [18:08:34]wFMCommunicate request_size=4 [18:08:34]MH_SAM_APDU [18:08:34]CAPDU: 80 11 00 00 [18:08:34]Write to MH i2c: E2 08 00 E9 12 80 11 00 00 00 00 00 00 75 [18:08:34]Write i2c OK [18:08:34]MH_I2C_Read... [18:08:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:34]Read from MH i2c: E2 [18:08:34]MH_I2C_Read... [18:08:34]Read from MH i2c: E2 17 00 [18:08:34]MH_I2C_Read... [18:08:34]Read from MH i2c: E2 17 00 E9 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D0 [18:08:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:08:34]wFMCommunicate OK [18:08:34]CreateOFDProtocolMessage done [18:08:34]OFDSenderStorePacket 118252 [18:08:34]StoreOFDPacket docnum=118252 [18:08:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C3 68 04 01 71 67 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 A1 37 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EC CD 01 00 35 04 06 00 75 50 32 B3 A1 B9 07 52 E6 2A 9E C7 D4 32 [18:08:34]CheckFolder [18:08:34]dirname=/storage/ofd_packets [18:08:34]CheckFolder done [18:08:34]ProducePacketName [18:08:34]name=ofd_packets/00118252 [18:08:34]NVStorageSaveData ofd_packets/00118252 [18:08:34]File name is /storage/ofd_packets/00118252 [18:08:34]Write 298 bytes [18:08:34]NVStorageSaveData done [18:08:34]OFDSenderStorePacket done [18:08:34]KKMCreateOFDPacket done [18:08:34]NVStorageSaveData kkm_last_timestamp [18:08:34]File name is /storage/kkm_last_timestamp [18:08:34]Write 4 bytes [18:08:34]NVStorageSaveData done [18:08:34]ExternCall_PrintAddStr [18:08:34]wPrintStart [18:08:34]Write to MH i2c: 01 00 00 EA 12 FC [18:08:34]Write i2c OK [18:08:34]MH_I2C_Read... [18:08:34]Read from MH i2c: 01 [18:08:34]MH_I2C_Read... [18:08:34]Read from MH i2c: 01 07 00 [18:08:34]MH_I2C_Read... [18:08:34]Read from MH i2c: 01 07 00 EA 12 00 00 00 00 00 FF 0F 11 [18:08:34]RasterBufferAndPrint [18:08:34]line Счет N : (1)949122 [18:08:34]line ИНН: 02508201610067 [18:08:34]line Контрольно-Кассовый Чек [18:08:34]line ПРОДАЖА [18:08:34]line ТРК (МРК, ГНК) : 64 [18:08:34]line Товар: 2710194800 [18:08:34]line ДТ-К-5 [18:08:34]line 26.250 * 76.20 [18:08:34]line = 2000.25 [18:08:34]line НДС 12% НСП 1% [18:08:34]line > о реализуемом товаре [18:08:34]line ОКРУГЛЕНИЕ: -0.25 [18:08:34]line ИТОГО: 2000.00 [18:08:34]line НСП 1% : 17.70 [18:08:34]line НДС 12% : 212.42 [18:08:34]line Наличными: 0.00 [18:08:34]line Безнал.: 2000.00 [18:08:34]line Место: АЗС № 134 "Партнер Нефть" [18:08:34]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:08:34]line СНО: Общий режим [18:08:34]line Чек 195 27.07.2024 18:08 [18:08:34]line Смена: 432 ФФД: 1.0 [18:08:34]line ЗНМ: 0300000044 [18:08:34]line РНМ: 0000000000092660 [18:08:34]line Версия ККМ: 001 [18:08:34]line Платежная система: O! деньги [18:08:34]line ФМ: 0000000000874939 [18:08:34]line ФД: 118252 [18:08:34]line ФПД: 128987308466617 [18:08:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T180833&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118252&fm=128987308466617&tin=02508201610067®Number=0000000000092660&sum=200000 [18:08:34]OFD Sender: Processing packet 118252 [packets to send 86, broken 85] [18:08:34]ProducePacketName [18:08:34]name=ofd_packets/00118252 [18:08:34]OFD Sender: To server: pG, [18:08:34]CommunicateWithHost lk.salyk.kg:30040 [18:08:34]ConnectInit lk.salyk.kg [18:08:34]written 0, free lines is 4095 [18:08:34]Connected sock=10 [18:08:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C3 68 04 01 71 67 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 A1 37 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EC CD 01 00 35 04 06 00 75 50 32 B3 A1 B9 07 52 E6 2A 9E C7 D4 32 [18:08:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 84 32 47 00 BE D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EC CD 01 00 F4 03 04 00 33 E5 A4 66 B6 04 01 00 00 69 CE 51 90 3E 35 0A 07 [18:08:34]CommunicateWithHost err = 0 [18:08:34]CheckOFDResponse [18:08:34]1017 (14) - 77093643461234 [18:08:34]1041 (16) - 0000000000874939 [18:08:34]1040 (4) - 118252 [18:08:34]1012 (4) - 27.07.2024 12:16 [18:08:34]1206 (1) - 0 [18:08:34]OFD Sender: Remove packet 118252 [18:08:34]ProducePacketName [18:08:34]name=ofd_packets/00118252 [18:08:34]NVStorageDeleteData [18:08:35]Write to MH i2c: 01 00 00 14 13 27 [18:08:35]Write i2c OK [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: 01 [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: 01 07 00 [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: 01 07 00 14 13 00 00 00 00 00 FB 0C 35 [18:08:35]RasterBufferAndPrint [18:08:35]line [18:08:35]line [18:08:35]line [18:08:35]line [18:08:35]line [18:08:35]written 0, free lines is 3328 [18:08:35]MH_Cut [18:08:35]Write to MH i2c: D1 01 00 1B 13 01 00 [18:08:35]Write i2c OK [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: D1 [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: D1 01 00 [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: D1 01 00 1B 13 00 FF [18:08:35]Write to MH i2c: 01 00 00 1C 13 2F [18:08:35]Write i2c OK [18:08:35]MH_I2C_Read... [18:08:35]OFD Sender: No OFD packet to send [18:08:35]*** Cut start [18:08:35]*** Partial cut [18:08:35]*** CUTSNS_PIN = 1 [18:08:35]*** CUTSNS_PIN = 0 [18:08:36]*** Brake cut motor [18:08:36]Read from MH i2c: 01 [18:08:36]MH_I2C_Read... [18:08:36]*** Stop cut motor [18:08:36]*** Cut end [18:08:36]Read from MH i2c: 01 07 00 [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: 01 07 00 1C 13 00 00 00 00 00 FF 0F 44 [18:08:36]process_action close_receipt done [18:08:36]requested_data is exist [18:08:36]produce_requested_data [18:08:36]requested_item fm.sn is exist - process it [18:08:36]wFMCommunicate request_size=4 [18:08:36]MH_SAM_APDU [18:08:36]CAPDU: 80 11 00 00 [18:08:36]Write to MH i2c: E2 08 00 1D 13 80 11 00 00 00 00 00 00 AA [18:08:36]Write i2c OK [18:08:36]MH_I2C_Read... [18:08:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:36]Read from MH i2c: E2 [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: E2 17 00 [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: E2 17 00 1D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 05 [18:08:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:08:36]wFMCommunicate OK [18:08:36]requested_item fd.num is exist - process it [18:08:36]SAM_PROTO_GetFieldsCounters [18:08:36]wFMCommunicate request_size=4 [18:08:36]MH_SAM_APDU [18:08:36]CAPDU: 80 13 00 00 [18:08:36]Write to MH i2c: E2 08 00 1E 13 80 13 00 00 00 00 00 00 AD [18:08:36]Write i2c OK [18:08:36]MH_I2C_Read... [18:08:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:36]Read from MH i2c: E2 [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: E2 62 00 [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: E2 62 00 1E 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EC CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [18:08:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EC CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:08:36]wFMCommunicate OK [18:08:36]SAM_PROTO_GetFieldsCounters done [18:08:36]requested_item shift.num is exist - process it [18:08:36]requested_item shift.opened is exist - process it [18:08:36]req_shift_opened [18:08:36]FM_GetShiftState [18:08:36]SAM_PROTO_GetShiftState [18:08:36]wFMCommunicate request_size=4 [18:08:36]MH_SAM_APDU [18:08:36]CAPDU: 80 13 01 00 [18:08:36]Write to MH i2c: E2 08 00 1F 13 80 13 01 00 00 00 00 00 AF [18:08:36]Write i2c OK [18:08:36]MH_I2C_Read... [18:08:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:36]Read from MH i2c: E2 [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: E2 0E 00 [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: E2 0E 00 1F 13 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 3C [18:08:36]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [18:08:36]wFMCommunicate OK [18:08:36]SAM_PROTO_GetShiftState done [18:08:36]FM_GetShiftState done [18:08:36]req_shift_opened done [18:08:36]requested_item shift.open_date is exist - process it [18:08:36]req_shift_open_date [18:08:36]req_shift_open_date done [18:08:36]produce_requested_data done [18:08:36]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118252,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [18:08:36]process_action_free close_receipt [18:08:36]json_value_free [18:08:36]json_value_free done [18:08:36]process_json_proto returns [18:08:36]Send response to host [18:08:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118252,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [18:08:36]free response buf [18:08:36]execute_script done [18:08:36]execute_script returns [18:08:36]free content buf [18:08:36]Sock 7.Close socket [18:08:36]Sock 7.Thread stoped [18:08:40]OFD Sender: No OFD packet to send [18:08:45]OFD Sender: No OFD packet to send [18:08:50]OFD Sender: No OFD packet to send [18:08:55]OFD Sender: No OFD packet to send [18:09:00]OFD Sender: No OFD packet to send [18:09:05]OFD Sender: No OFD packet to send [18:09:10]OFD Sender: No OFD packet to send [18:09:15]OFD Sender: No OFD packet to send [18:09:20]OFD Sender: No OFD packet to send [18:09:25]OFD Sender: No OFD packet to send [18:09:30]OFD Sender: No OFD packet to send [18:09:35]OFD Sender: No OFD packet to send [18:09:40]OFD Sender: No OFD packet to send [18:09:45]OFD Sender: No OFD packet to send [18:09:50]OFD Sender: No OFD packet to send [18:09:55]OFD Sender: No OFD packet to send [18:10:00]OFD Sender: No OFD packet to send [18:10:05]OFD Sender: No OFD packet to send [18:10:10]OFD Sender: No OFD packet to send [18:10:15]OFD Sender: No OFD packet to send [18:10:20]OFD Sender: No OFD packet to send [18:10:25]OFD Sender: No OFD packet to send [18:10:30]OFD Sender: No OFD packet to send [18:10:35]OFD Sender: No OFD packet to send [18:10:40]OFD Sender: No OFD packet to send [18:10:45]OFD Sender: No OFD packet to send [18:10:50]OFD Sender: No OFD packet to send [18:10:55]OFD Sender: No OFD packet to send [18:11:00]OFD Sender: No OFD packet to send [18:11:05]OFD Sender: No OFD packet to send [18:11:10]OFD Sender: No OFD packet to send [18:11:15]OFD Sender: No OFD packet to send [18:11:20]OFD Sender: No OFD packet to send [18:11:25]OFD Sender: No OFD packet to send [18:11:30]OFD Sender: No OFD packet to send [18:11:35]OFD Sender: No OFD packet to send [18:11:40]OFD Sender: No OFD packet to send [18:11:45]OFD Sender: No OFD packet to send [18:11:50]OFD Sender: No OFD packet to send [18:11:55]OFD Sender: No OFD packet to send [18:12:00]OFD Sender: No OFD packet to send [18:12:05]OFD Sender: No OFD packet to send [18:12:10]OFD Sender: No OFD packet to send [18:12:15]OFD Sender: No OFD packet to send [18:12:20]OFD Sender: No OFD packet to send [18:12:25]OFD Sender: No OFD packet to send [18:12:30]OFD Sender: No OFD packet to send [18:12:35]OFD Sender: No OFD packet to send [18:12:40]OFD Sender: No OFD packet to send [18:12:45]OFD Sender: No OFD packet to send [18:12:47]accept exits with 9 [18:12:47]New connection [18:12:47]New thread 3067096420 created [18:12:47]Thread 3066953060 joined [18:12:47]Waiting for new connection... [18:12:47] Sock 9.Parse request [18:12:47]Sock 9.Check first char [18:12:47]Sock 9.First char is OK [18:12:47]request: POST /json_proto HTTP/1.0 [18:12:47]Method: POST [18:12:47]URL: /json_proto [18:12:47]Method is POST - this is cgi request [18:12:47]url: /json_proto [18:12:47]query_string will be loaded in cgi processing [18:12:47]execute_cgi json_proto POST (null) [18:12:47]execute_cgi path=json_proto method=POST [18:12:47]POST find Content-Length [18:12:47]Host: 172.17.45.7:8080 [18:12:47]Content-Length: 677 [18:12:47]Content-Type: application/json [18:12:47] [18:12:47]POST finish read [18:12:47]Found Content-Length = 677 [18:12:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:12:47]execute_script... [18:12:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:12:47]POST & json_proto [18:12:47]process_json_proto [18:12:47]json parsed OK: [18:12:47]protocol is kg_v1.0 [18:12:47]action value=close_receipt [18:12:47]process_action close_receipt [18:12:47]cmd_close_receipt [18:12:47]MH_GetDate [18:12:47]Write to MH i2c: F0 00 00 20 13 22 [18:12:47]Write i2c OK [18:12:47]MH_I2C_Read... [18:12:47]Read from MH i2c: F0 [18:12:47]MH_I2C_Read... [18:12:47]Read from MH i2c: F0 09 00 [18:12:47]MH_I2C_Read... [18:12:47]Read from MH i2c: F0 09 00 20 13 00 A0 38 A5 66 90 0F 3E 66 51 [18:12:47]GetLastDocTimeStamp 1722103713 [18:12:47]current date 1722103968 [18:12:47]FM_GetShiftState [18:12:47]SAM_PROTO_GetShiftState [18:12:47]wFMCommunicate request_size=4 [18:12:47]MH_SAM_APDU [18:12:47]CAPDU: 80 13 01 00 [18:12:47]Write to MH i2c: E2 08 00 21 13 80 13 01 00 00 00 00 00 B1 [18:12:47]Write i2c OK [18:12:47]MH_I2C_Read... [18:12:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:47]Read from MH i2c: E2 [18:12:47]MH_I2C_Read... [18:12:47]Read from MH i2c: E2 0E 00 [18:12:47]MH_I2C_Read... [18:12:47]Read from MH i2c: E2 0E 00 21 13 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 3E [18:12:47]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [18:12:47]wFMCommunicate OK [18:12:47]SAM_PROTO_GetShiftState done [18:12:47]FM_GetShiftState done [18:12:47]opened in 1722038845 [18:12:47]opened+sec_in_day 1722125245 [18:12:47]quantity*price = 50036 [18:12:47]sum+1 = 50037 [18:12:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 196 27.07.2024 18:12 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118253 ФПД: 251331631455856 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T181248&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118253&fm=251331631455856&tin=02508201610067®Number=0000000000092660&sum=50000 [18:12:48]StoreToDocumentArchive [18:12:48]shift 432 fd 118253 [18:12:48]save to /storage/0432/doc_00118253 [18:12:48]save last doc name /storage/0432/doc_00118253 to /storage/kkm_last_doc_name [18:12:48]save OK [18:12:48]Clear old archive folders... [18:12:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:12:48]tlvbuf is 01DDCCD0 [18:12:48]SAM_PROTO_ClearQueue [18:12:48]wFMCommunicate request_size=4 [18:12:48]MH_SAM_APDU [18:12:48]CAPDU: 80 09 00 00 [18:12:48]Write to MH i2c: E2 08 00 2E 13 80 09 00 00 00 00 00 00 B3 [18:12:48]Write i2c OK [18:12:48]MH_I2C_Read... [18:12:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:12:48]Read from MH i2c: E2 [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: E2 03 00 [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: E2 03 00 2E 13 00 90 00 B5 [18:12:48]RAPDU: 90 00 [18:12:48]wFMCommunicate OK [18:12:48]SAM_PROTO_ClearQueue done [18:12:48]KKMCreateOFDPacket [18:12:48]OFDProtocolAddRootSTLVToBuf [18:12:48]FM_MakeSignedData [18:12:48]FM_MakeSignedData [18:12:48]SAM_PROTO_SignData [18:12:48]wFMCommunicate request_size=4 [18:12:48]MH_SAM_APDU [18:12:48]CAPDU: 80 0D 01 02 [18:12:48]Write to MH i2c: E2 08 00 2F 13 80 0D 01 02 00 00 00 00 BB [18:12:48]Write i2c OK [18:12:48]MH_I2C_Read... [18:12:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:12:48]Read from MH i2c: E2 [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: E2 03 00 [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: E2 03 00 2F 13 00 90 00 B6 [18:12:48]RAPDU: 90 00 [18:12:48]wFMCommunicate OK [18:12:48]wFMCommunicate request_size=255 [18:12:48]MH_SAM_APDU [18:12:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 C4 00 00 00 F4 03 04 00 A0 38 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 ED CD 01 00 35 04 06 00 E4 [18:12:48]Write to MH i2c: E2 02 01 30 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 C4 00 00 00 F4 03 04 00 A0 38 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 ED CD 01 00 35 04 06 00 E4 00 00 36 [18:12:48]Write i2c OK [18:12:48]MH_I2C_Read... [18:12:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:48]Read from MH i2c: E2 [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: E2 03 00 [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: E2 03 00 30 13 00 90 00 B7 [18:12:48]RAPDU: 90 00 [18:12:48]wFMCommunicate OK [18:12:48]wFMCommunicate request_size=10 [18:12:48]MH_SAM_APDU [18:12:48]CAPDU: 80 0D 02 02 05 95 B4 9D 1E 70 [18:12:48]Write to MH i2c: E2 0D 00 31 13 80 0D 02 02 05 00 95 B4 9D 1E 70 00 00 3C [18:12:48]Write i2c OK [18:12:48]MH_I2C_Read... [18:12:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:48]Read from MH i2c: E2 [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: E2 03 00 [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: E2 03 00 31 13 00 90 00 B8 [18:12:48]RAPDU: 90 00 [18:12:48]wFMCommunicate OK [18:12:48]wFMCommunicate request_size=4 [18:12:48]MH_SAM_APDU [18:12:48]CAPDU: 80 0D 03 02 [18:12:48]Write to MH i2c: E2 08 00 32 13 80 0D 03 02 00 00 00 00 C0 [18:12:48]Write i2c OK [18:12:48]MH_I2C_Read... [18:12:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:12:48]Read from MH i2c: E2 [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: E2 0B 00 [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: E2 0B 00 32 13 00 18 07 01 5C 76 C9 DD F8 90 00 51 [18:12:48]RAPDU: 18 07 01 5C 76 C9 DD F8 90 00 [18:12:48]wFMCommunicate OK [18:12:48]SAM_PROTO_SignData done [18:12:48]FM_MakeSignedData done [18:12:48]CreateOFDProtocolMessage [18:12:48]wFMCommunicate request_size=4 [18:12:48]MH_SAM_APDU [18:12:48]CAPDU: 80 11 00 00 [18:12:48]Write to MH i2c: E2 08 00 33 13 80 11 00 00 00 00 00 00 C0 [18:12:48]Write i2c OK [18:12:48]MH_I2C_Read... [18:12:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:48]Read from MH i2c: E2 [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: E2 17 00 [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: E2 17 00 33 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1B [18:12:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:12:48]wFMCommunicate OK [18:12:48]CreateOFDProtocolMessage done [18:12:48]OFDSenderStorePacket 118253 [18:12:48]StoreOFDPacket docnum=118253 [18:12:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7F 3A 07 01 37 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 C4 00 00 00 F4 03 04 00 A0 38 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 ED CD 01 00 35 04 06 00 E4 95 B4 9D 1E 70 18 07 01 5C 76 C9 DD F8 [18:12:48]CheckFolder [18:12:48]dirname=/storage/ofd_packets [18:12:48]CheckFolder done [18:12:48]ProducePacketName [18:12:48]name=ofd_packets/00118253 [18:12:48]NVStorageSaveData ofd_packets/00118253 [18:12:48]File name is /storage/ofd_packets/00118253 [18:12:48]Write 301 bytes [18:12:48]NVStorageSaveData done [18:12:48]OFDSenderStorePacket done [18:12:48]KKMCreateOFDPacket done [18:12:48]NVStorageSaveData kkm_last_timestamp [18:12:48]File name is /storage/kkm_last_timestamp [18:12:48]Write 4 bytes [18:12:48]NVStorageSaveData done [18:12:48]ExternCall_PrintAddStr [18:12:48]wPrintStart [18:12:48]Write to MH i2c: 01 00 00 34 13 47 [18:12:48]Write i2c OK [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: 01 [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: 01 07 00 [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: 01 07 00 34 13 00 00 00 00 00 FF 0F 5C [18:12:48]RasterBufferAndPrint [18:12:48]line Счет N : (1)949123 [18:12:48]line ИНН: 02508201610067 [18:12:48]line Контрольно-Кассовый Чек [18:12:48]line ПРОДАЖА [18:12:48]line ТРК (МРК, ГНК) : 31 [18:12:48]line Товар: 2710124130 [18:12:48]line Аи-92-К-4 [18:12:48]line 7.380 * 67.80 [18:12:48]line = 500.36 [18:12:48]line НДС 12% НСП 1% [18:12:48]line > о реализуемом товаре [18:12:48]line ОКРУГЛЕНИЕ: -0.36 [18:12:48]line ИТОГО: 500.00 [18:12:48]line Внесено: 500.00 [18:12:48]line СДАЧА: 0.00 [18:12:48]line НСП 1% : 4.43 [18:12:48]line НДС 12% : 53.14 [18:12:48]line Наличными: 500.00 [18:12:48]line Безнал.: 0.00 [18:12:48]line Место: АЗС № 134 "Партнер Нефть" [18:12:48]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:12:48]line СНО: Общий режим [18:12:48]line Чек 196 27.07.2024 18:12 [18:12:48]line Смена: 432 ФФД: 1.0 [18:12:48]line ЗНМ: 0300000044 [18:12:48]line РНМ: 0000000000092660 [18:12:48]line Версия ККМ: 001 [18:12:48]line ФМ: 0000000000874939 [18:12:48]line ФД: 118253 [18:12:48]line ФПД: 251331631455856 [18:12:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T181248&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118253&fm=251331631455856&tin=02508201610067®Number=0000000000092660&sum=50000 [18:12:49]written 0, free lines is 4095 [18:12:49]OFD Sender: Processing packet 118253 [packets to send 86, broken 85] [18:12:49]ProducePacketName [18:12:49]name=ofd_packets/00118253 [18:12:49]OFD Sender: To server: pG, [18:12:49]CommunicateWithHost lk.salyk.kg:30040 [18:12:49]ConnectInit lk.salyk.kg [18:12:49]Connected sock=10 [18:12:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7F 3A 07 01 37 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 C4 00 00 00 F4 03 04 00 A0 38 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 ED CD 01 00 35 04 06 00 E4 95 B4 9D 1E 70 18 07 01 5C 76 C9 DD F8 [18:12:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 7B 49 47 00 D1 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 ED CD 01 00 F4 03 04 00 32 E6 A4 66 B6 04 01 00 00 82 44 1C 77 0E 9A 16 03 [18:12:49]CommunicateWithHost err = 0 [18:12:49]CheckOFDResponse [18:12:49]1017 (14) - 77093643461234 [18:12:49]1041 (16) - 0000000000874939 [18:12:49]1040 (4) - 118253 [18:12:49]1012 (4) - 27.07.2024 12:21 [18:12:49]1206 (1) - 0 [18:12:49]OFD Sender: Remove packet 118253 [18:12:49]ProducePacketName [18:12:49]name=ofd_packets/00118253 [18:12:49]NVStorageDeleteData [18:12:49]Write to MH i2c: 01 00 00 5E 13 71 [18:12:49]Write i2c OK [18:12:49]MH_I2C_Read... [18:12:49]Read from MH i2c: 01 [18:12:49]MH_I2C_Read... [18:12:49]Read from MH i2c: 01 07 00 [18:12:49]MH_I2C_Read... [18:12:49]Read from MH i2c: 01 07 00 5E 13 00 00 00 00 00 D4 0C 58 [18:12:49]RasterBufferAndPrint [18:12:49]line [18:12:49]line [18:12:49]line [18:12:49]line [18:12:49]line [18:12:49]written 0, free lines is 3290 [18:12:49]MH_Cut [18:12:49]Write to MH i2c: D1 01 00 65 13 01 4A [18:12:49]Write i2c OK [18:12:49]MH_I2C_Read... [18:12:49]Read from MH i2c: D1 [18:12:49]MH_I2C_Read... [18:12:49]Read from MH i2c: D1 01 00 [18:12:49]MH_I2C_Read... [18:12:49]Read from MH i2c: D1 01 00 65 13 00 49 [18:12:49]Write to MH i2c: 01 00 00 66 13 79 [18:12:49]Write i2c OK [18:12:49]MH_I2C_Read... [18:12:50]OFD Sender: No OFD packet to send [18:12:50]*** Cut start [18:12:50]*** Partial cut [18:12:50]*** CUTSNS_PIN = 1 [18:12:50]*** CUTSNS_PIN = 0 [18:12:50]*** Brake cut motor [18:12:51]Read from MH i2c: 01 [18:12:51]MH_I2C_Read... [18:12:51]*** Stop cut motor [18:12:51]*** Cut end [18:12:51]Read from MH i2c: 01 07 00 [18:12:51]MH_I2C_Read... [18:12:51]Read from MH i2c: 01 07 00 66 13 00 00 00 00 00 FF 0F 8E [18:12:51]process_action close_receipt done [18:12:51]requested_data is exist [18:12:51]produce_requested_data [18:12:51]requested_item fm.sn is exist - process it [18:12:51]wFMCommunicate request_size=4 [18:12:51]MH_SAM_APDU [18:12:51]CAPDU: 80 11 00 00 [18:12:51]Write to MH i2c: E2 08 00 67 13 80 11 00 00 00 00 00 00 F4 [18:12:51]Write i2c OK [18:12:51]MH_I2C_Read... [18:12:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:51]Read from MH i2c: E2 [18:12:51]MH_I2C_Read... [18:12:51]Read from MH i2c: E2 17 00 [18:12:51]MH_I2C_Read... [18:12:51]Read from MH i2c: E2 17 00 67 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4F [18:12:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:12:51]wFMCommunicate OK [18:12:51]requested_item fd.num is exist - process it [18:12:51]SAM_PROTO_GetFieldsCounters [18:12:51]wFMCommunicate request_size=4 [18:12:51]MH_SAM_APDU [18:12:51]CAPDU: 80 13 00 00 [18:12:51]Write to MH i2c: E2 08 00 68 13 80 13 00 00 00 00 00 00 F7 [18:12:51]Write i2c OK [18:12:51]MH_I2C_Read... [18:12:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:51]Read from MH i2c: E2 [18:12:51]MH_I2C_Read... [18:12:51]Read from MH i2c: E2 62 00 [18:12:51]MH_I2C_Read... [18:12:51]Read from MH i2c: E2 62 00 68 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 ED CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [18:12:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 ED CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:12:51]wFMCommunicate OK [18:12:51]SAM_PROTO_GetFieldsCounters done [18:12:51]requested_item shift.num is exist - process it [18:12:51]requested_item shift.opened is exist - process it [18:12:51]req_shift_opened [18:12:51]FM_GetShiftState [18:12:51]SAM_PROTO_GetShiftState [18:12:51]wFMCommunicate request_size=4 [18:12:51]MH_SAM_APDU [18:12:51]CAPDU: 80 13 01 00 [18:12:51]Write to MH i2c: E2 08 00 69 13 80 13 01 00 00 00 00 00 F9 [18:12:51]Write i2c OK [18:12:51]MH_I2C_Read... [18:12:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:51]Read from MH i2c: E2 [18:12:51]MH_I2C_Read... [18:12:51]Read from MH i2c: E2 0E 00 [18:12:51]MH_I2C_Read... [18:12:51]Read from MH i2c: E2 0E 00 69 13 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 86 [18:12:51]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [18:12:51]wFMCommunicate OK [18:12:51]SAM_PROTO_GetShiftState done [18:12:51]FM_GetShiftState done [18:12:51]req_shift_opened done [18:12:51]requested_item shift.open_date is exist - process it [18:12:51]req_shift_open_date [18:12:51]req_shift_open_date done [18:12:51]produce_requested_data done [18:12:51]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118253,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [18:12:51]process_action_free close_receipt [18:12:51]json_value_free [18:12:51]json_value_free done [18:12:51]process_json_proto returns [18:12:51]Send response to host [18:12:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118253,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [18:12:51]free response buf [18:12:51]execute_script done [18:12:51]execute_script returns [18:12:51]free content buf [18:12:51]Sock 9.Close socket [18:12:51]Sock 9.Thread stoped [18:12:55]OFD Sender: No OFD packet to send [18:13:00]OFD Sender: No OFD packet to send [18:13:05]OFD Sender: No OFD packet to send [18:13:10]OFD Sender: No OFD packet to send [18:13:15]OFD Sender: No OFD packet to send [18:13:20]OFD Sender: No OFD packet to send [18:13:25]OFD Sender: No OFD packet to send [18:13:30]OFD Sender: No OFD packet to send [18:13:35]OFD Sender: No OFD packet to send [18:13:36]accept exits with 7 [18:13:36]New connection [18:13:36]New thread 3066953060 created [18:13:36]Thread 3067096420 joined [18:13:36]Waiting for new connection... [18:13:36] Sock 7.Parse request [18:13:36]Sock 7.Check first char [18:13:36]Sock 7.First char is OK [18:13:36]request: POST /json_proto HTTP/1.0 [18:13:36]Method: POST [18:13:36]URL: /json_proto [18:13:36]Method is POST - this is cgi request [18:13:36]url: /json_proto [18:13:36]query_string will be loaded in cgi processing [18:13:36]execute_cgi json_proto POST (null) [18:13:36]execute_cgi path=json_proto method=POST [18:13:36]POST find Content-Length [18:13:36]Host: 172.17.45.7:8080 [18:13:36]Content-Length: 677 [18:13:36]Content-Type: application/json [18:13:36] [18:13:36]POST finish read [18:13:36]Found Content-Length = 677 [18:13:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.760, "sum" : 390.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 390.00, "total" : 390.00, "payments": [ { "type": 0, "sum" : 390.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:36]execute_script... [18:13: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)949124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.760, "sum" : 390.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 390.00, "total" : 390.00, "payments": [ { "type": 0, "sum" : 390.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:36]POST & json_proto [18:13:36]process_json_proto [18:13:36]json parsed OK: [18:13:36]protocol is kg_v1.0 [18:13:36]action value=close_receipt [18:13:36]process_action close_receipt [18:13:36]cmd_close_receipt [18:13:36]MH_GetDate [18:13:36]Write to MH i2c: F0 00 00 6A 13 6C [18:13:36]Write i2c OK [18:13:36]MH_I2C_Read... [18:13:36]Read from MH i2c: F0 [18:13:36]MH_I2C_Read... [18:13:36]Read from MH i2c: F0 09 00 [18:13:36]MH_I2C_Read... [18:13:36]Read from MH i2c: F0 09 00 6A 13 00 D1 38 A5 66 90 0F 3E 66 CC [18:13:36]GetLastDocTimeStamp 1722103968 [18:13:36]current date 1722104017 [18:13:36]FM_GetShiftState [18:13:36]SAM_PROTO_GetShiftState [18:13:36]wFMCommunicate request_size=4 [18:13:36]MH_SAM_APDU [18:13:36]CAPDU: 80 13 01 00 [18:13:36]Write to MH i2c: E2 08 00 6B 13 80 13 01 00 00 00 00 00 FB [18:13:36]Write i2c OK [18:13:36]MH_I2C_Read... [18:13:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:36]Read from MH i2c: E2 [18:13:36]MH_I2C_Read... [18:13:36]Read from MH i2c: E2 0E 00 [18:13:36]MH_I2C_Read... [18:13:36]Read from MH i2c: E2 0E 00 6B 13 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 88 [18:13:36]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [18:13:36]wFMCommunicate OK [18:13:36]SAM_PROTO_GetShiftState done [18:13:36]FM_GetShiftState done [18:13:36]opened in 1722038845 [18:13:36]opened+sec_in_day 1722125245 [18:13:36]quantity*price = 39052 [18:13:36]sum+1 = 39054 [18:13:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 390.00 Внесено: 390.00 СДАЧА: 0.00 НСП 1% : 3.46 НДС 12% : 41.47 Наличными: 390.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 197 27.07.2024 18:13 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118254 ФПД: 209670604767857 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T181337&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118254&fm=209670604767857&tin=02508201610067®Number=0000000000092660&sum=39000 [18:13:37]StoreToDocumentArchive [18:13:37]shift 432 fd 118254 [18:13:37]save to /storage/0432/doc_00118254 [18:13:37]save last doc name /storage/0432/doc_00118254 to /storage/kkm_last_doc_name [18:13:37]save OK [18:13:37]Clear old archive folders... [18:13:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:13:37]tlvbuf is B6EE4AF0 [18:13:37]SAM_PROTO_ClearQueue [18:13:37]wFMCommunicate request_size=4 [18:13:37]MH_SAM_APDU [18:13:37]CAPDU: 80 09 00 00 [18:13:37]Write to MH i2c: E2 08 00 78 13 80 09 00 00 00 00 00 00 FD [18:13:37]Write i2c OK [18:13:37]MH_I2C_Read... [18:13:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:37]Read from MH i2c: E2 [18:13:37]MH_I2C_Read... [18:13:37]Read from MH i2c: E2 03 00 [18:13:37]MH_I2C_Read... [18:13:37]Read from MH i2c: E2 03 00 78 13 00 90 00 FF [18:13:37]RAPDU: 90 00 [18:13:37]wFMCommunicate OK [18:13:37]SAM_PROTO_ClearQueue done [18:13:37]KKMCreateOFDPacket [18:13:37]OFDProtocolAddRootSTLVToBuf [18:13:37]FM_MakeSignedData [18:13:37]FM_MakeSignedData [18:13:37]SAM_PROTO_SignData [18:13:37]wFMCommunicate request_size=4 [18:13:37]MH_SAM_APDU [18:13:37]CAPDU: 80 0D 01 02 [18:13:37]Write to MH i2c: E2 08 00 79 13 80 0D 01 02 00 00 00 00 05 [18:13:37]Write i2c OK [18:13:37]MH_I2C_Read... [18:13:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:37]Read from MH i2c: E2 [18:13:37]MH_I2C_Read... [18:13:37]Read from MH i2c: E2 03 00 [18:13:37]MH_I2C_Read... [18:13:37]Read from MH i2c: E2 03 00 79 13 00 90 00 00 [18:13:37]RAPDU: 90 00 [18:13:37]wFMCommunicate OK [18:13:37]wFMCommunicate request_size=255 [18:13:37]MH_SAM_APDU [18:13: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 34 FF 03 08 00 03 80 16 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 8D 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 10 00 00 00 00 07 04 06 00 58 98 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 D1 38 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EE CD 01 00 35 04 06 00 BE [18:13:37]Write to MH i2c: E2 02 01 7A 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 34 FF 03 08 00 03 80 16 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 8D 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 10 00 00 00 00 07 04 06 00 58 98 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 D1 38 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EE CD 01 00 35 04 06 00 BE 00 00 E7 [18:13:37]Write i2c OK [18:13:37]MH_I2C_Read... [18:13:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:37]Read from MH i2c: E2 [18:13:37]MH_I2C_Read... [18:13:37]Read from MH i2c: E2 03 00 [18:13:37]MH_I2C_Read... [18:13:37]Read from MH i2c: E2 03 00 7A 13 00 90 00 01 [18:13:37]RAPDU: 90 00 [18:13:37]wFMCommunicate OK [18:13:37]wFMCommunicate request_size=10 [18:13:37]MH_SAM_APDU [18:13:37]CAPDU: 80 0D 02 02 05 B1 BD EA C2 71 [18:13:37]Write to MH i2c: E2 0D 00 7B 13 80 0D 02 02 05 00 B1 BD EA C2 71 00 00 9D [18:13:37]Write i2c OK [18:13:37]MH_I2C_Read... [18:13:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:37]Read from MH i2c: E2 [18:13:37]MH_I2C_Read... [18:13:37]Read from MH i2c: E2 03 00 [18:13:37]MH_I2C_Read... [18:13:37]Read from MH i2c: E2 03 00 7B 13 00 90 00 02 [18:13:37]RAPDU: 90 00 [18:13:37]wFMCommunicate OK [18:13:37]wFMCommunicate request_size=4 [18:13:37]MH_SAM_APDU [18:13:37]CAPDU: 80 0D 03 02 [18:13:37]Write to MH i2c: E2 08 00 7C 13 80 0D 03 02 00 00 00 00 0A [18:13:37]Write i2c OK [18:13:37]MH_I2C_Read... [18:13:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:38]Read from MH i2c: E2 [18:13:38]MH_I2C_Read... [18:13:38]Read from MH i2c: E2 0B 00 [18:13:38]MH_I2C_Read... [18:13:38]Read from MH i2c: E2 0B 00 7C 13 00 4E 66 6C AD 7D C6 62 C6 90 00 43 [18:13:38]RAPDU: 4E 66 6C AD 7D C6 62 C6 90 00 [18:13:38]wFMCommunicate OK [18:13:38]SAM_PROTO_SignData done [18:13:38]FM_MakeSignedData done [18:13:38]CreateOFDProtocolMessage [18:13:38]wFMCommunicate request_size=4 [18:13:38]MH_SAM_APDU [18:13:38]CAPDU: 80 11 00 00 [18:13:38]Write to MH i2c: E2 08 00 7D 13 80 11 00 00 00 00 00 00 0A [18:13:38]Write i2c OK [18:13:38]MH_I2C_Read... [18:13:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:38]Read from MH i2c: E2 [18:13:38]MH_I2C_Read... [18:13:38]Read from MH i2c: E2 17 00 [18:13:38]MH_I2C_Read... [18:13:38]Read from MH i2c: E2 17 00 7D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 65 [18:13:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:13:38]wFMCommunicate OK [18:13:38]CreateOFDProtocolMessage done [18:13:38]OFDSenderStorePacket 118254 [18:13:38]StoreOFDPacket docnum=118254 [18:13:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 1A 99 07 01 79 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 34 FF 03 08 00 03 80 16 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 8D 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 10 00 00 00 00 07 04 06 00 58 98 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 D1 38 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EE CD 01 00 35 04 06 00 BE B1 BD EA C2 71 4E 66 6C AD 7D C6 62 C6 [18:13:38]CheckFolder [18:13:38]dirname=/storage/ofd_packets [18:13:38]CheckFolder done [18:13:38]ProducePacketName [18:13:38]name=ofd_packets/00118254 [18:13:38]NVStorageSaveData ofd_packets/00118254 [18:13:38]File name is /storage/ofd_packets/00118254 [18:13:38]Write 301 bytes [18:13:38]NVStorageSaveData done [18:13:38]OFDSenderStorePacket done [18:13:38]KKMCreateOFDPacket done [18:13:38]NVStorageSaveData kkm_last_timestamp [18:13:38]File name is /storage/kkm_last_timestamp [18:13:38]Write 4 bytes [18:13:38]NVStorageSaveData done [18:13:38]OFD Sender: Processing packet 118254 [packets to send 86, broken 85] [18:13:38]ProducePacketName [18:13:38]name=ofd_packets/00118254 [18:13:38]OFD Sender: To server: pG, [18:13:38]CommunicateWithHost lk.salyk.kg:30040 [18:13:38]ConnectInit lk.salyk.kg [18:13:38]ExternCall_PrintAddStr [18:13:38]wPrintStart [18:13:38]Write to MH i2c: 01 00 00 7E 13 91 [18:13:38]Write i2c OK [18:13:38]MH_I2C_Read... [18:13:38]Read from MH i2c: 01 [18:13:38]MH_I2C_Read... [18:13:38]Read from MH i2c: 01 07 00 [18:13:38]MH_I2C_Read... [18:13:38]Read from MH i2c: 01 07 00 7E 13 00 00 00 00 00 FF 0F A6 [18:13:38]RasterBufferAndPrint [18:13:38]line Счет N : (1)949124 [18:13:38]line ИНН: 02508201610067 [18:13:38]line Контрольно-Кассовый Чек [18:13:38]line ПРОДАЖА [18:13:38]line ТРК (МРК, ГНК) : 51 [18:13:38]line Товар: 2710124130 [18:13:38]line Аи-92-К-4 [18:13:38]line 5.760 * 67.80 [18:13:38]line = 390.53 [18:13:38]line НДС 12% НСП 1% [18:13:38]line > о реализуемом товаре [18:13:38]line ОКРУГЛЕНИЕ: -0.53 [18:13:38]line ИТОГО: 390.00 [18:13:38]line Внесено: 390.00 [18:13:38]line СДАЧА: 0.00 [18:13:38]line НСП 1% : 3.46 [18:13:38]line НДС 12% : 41.47 [18:13:38]line Наличными: 390.00 [18:13:38]line Безнал.: 0.00 [18:13:38]line Место: АЗС № 134 "Партнер Нефть" [18:13:38]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:13:38]line СНО: Общий режим [18:13:38]line Чек 197 27.07.2024 18:13 [18:13:38]line Смена: 432 ФФД: 1.0 [18:13:38]line ЗНМ: 0300000044 [18:13:38]line РНМ: 0000000000092660 [18:13:38]line Версия ККМ: 001 [18:13:38]line ФМ: 0000000000874939 [18:13:38]line ФД: 118254 [18:13:38]line ФПД: 209670604767857 [18:13:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T181337&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118254&fm=209670604767857&tin=02508201610067®Number=0000000000092660&sum=39000 [18:13:38]Connected sock=11 [18:13:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 1A 99 07 01 79 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 34 FF 03 08 00 03 80 16 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 8D 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 10 00 00 00 00 07 04 06 00 58 98 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 D1 38 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EE CD 01 00 35 04 06 00 BE B1 BD EA C2 71 4E 66 6C AD 7D C6 62 C6 [18:13:38]written 0, free lines is 4095 [18:13:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 2C F3 47 00 E0 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EE CD 01 00 F4 03 04 00 63 E6 A4 66 B6 04 01 00 00 F4 FB A6 B9 EE D2 B9 4F [18:13:38]CommunicateWithHost err = 0 [18:13:38]CheckOFDResponse [18:13:38]1017 (14) - 77093643461234 [18:13:38]1041 (16) - 0000000000874939 [18:13:38]1040 (4) - 118254 [18:13:38]1012 (4) - 27.07.2024 12:21 [18:13:38]1206 (1) - 0 [18:13:38]OFD Sender: Remove packet 118254 [18:13:38]ProducePacketName [18:13:38]name=ofd_packets/00118254 [18:13:38]NVStorageDeleteData [18:13:38]Write to MH i2c: 01 00 00 A8 13 BB [18:13:38]Write i2c OK [18:13:38]MH_I2C_Read... [18:13:38]Read from MH i2c: 01 [18:13:38]MH_I2C_Read... [18:13:38]Read from MH i2c: 01 07 00 [18:13:38]MH_I2C_Read... [18:13:38]Read from MH i2c: 01 07 00 A8 13 00 00 00 00 00 E3 0C B1 [18:13:38]RasterBufferAndPrint [18:13:38]line [18:13:38]line [18:13:38]line [18:13:38]line [18:13:38]line [18:13:38]written 0, free lines is 3305 [18:13:38]MH_Cut [18:13:38]Write to MH i2c: D1 01 00 AF 13 01 94 [18:13:38]Write i2c OK [18:13:38]MH_I2C_Read... [18:13:38]Read from MH i2c: D1 [18:13:38]MH_I2C_Read... [18:13:38]Read from MH i2c: D1 01 00 [18:13:38]MH_I2C_Read... [18:13:38]Read from MH i2c: D1 01 00 AF 13 00 93 [18:13:38]Write to MH i2c: 01 00 00 B0 13 C3 [18:13:38]Write i2c OK [18:13:38]MH_I2C_Read... [18:13:39]OFD Sender: No OFD packet to send [18:13:39]*** Cut start [18:13:39]*** Partial cut [18:13:39]*** CUTSNS_PIN = 1 [18:13:39]*** CUTSNS_PIN = 0 [18:13:39]*** Brake cut motor [18:13:40]Read from MH i2c: 01 [18:13:40]MH_I2C_Read... [18:13:40]*** Stop cut motor [18:13:40]*** Cut end [18:13:40]Read from MH i2c: 01 07 00 [18:13:40]MH_I2C_Read... [18:13:40]Read from MH i2c: 01 07 00 B0 13 00 00 00 00 00 FF 0F D8 [18:13:40]process_action close_receipt done [18:13:40]requested_data is exist [18:13:40]produce_requested_data [18:13:40]requested_item fm.sn is exist - process it [18:13:40]wFMCommunicate request_size=4 [18:13:40]MH_SAM_APDU [18:13:40]CAPDU: 80 11 00 00 [18:13:40]Write to MH i2c: E2 08 00 B1 13 80 11 00 00 00 00 00 00 3E [18:13:40]Write i2c OK [18:13:40]MH_I2C_Read... [18:13:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:40]Read from MH i2c: E2 [18:13:40]MH_I2C_Read... [18:13:40]Read from MH i2c: E2 17 00 [18:13:40]MH_I2C_Read... [18:13:40]Read from MH i2c: E2 17 00 B1 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 99 [18:13:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:13:40]wFMCommunicate OK [18:13:40]requested_item fd.num is exist - process it [18:13:40]SAM_PROTO_GetFieldsCounters [18:13:40]wFMCommunicate request_size=4 [18:13:40]MH_SAM_APDU [18:13:40]CAPDU: 80 13 00 00 [18:13:40]Write to MH i2c: E2 08 00 B2 13 80 13 00 00 00 00 00 00 41 [18:13:40]Write i2c OK [18:13:40]MH_I2C_Read... [18:13:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:40]Read from MH i2c: E2 [18:13:40]MH_I2C_Read... [18:13:40]Read from MH i2c: E2 62 00 [18:13:40]MH_I2C_Read... [18:13:40]Read from MH i2c: E2 62 00 B2 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EE CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [18:13:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EE CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:13:40]wFMCommunicate OK [18:13:40]SAM_PROTO_GetFieldsCounters done [18:13:40]requested_item shift.num is exist - process it [18:13:40]requested_item shift.opened is exist - process it [18:13:40]req_shift_opened [18:13:40]FM_GetShiftState [18:13:40]SAM_PROTO_GetShiftState [18:13:40]wFMCommunicate request_size=4 [18:13:40]MH_SAM_APDU [18:13:40]CAPDU: 80 13 01 00 [18:13:40]Write to MH i2c: E2 08 00 B3 13 80 13 01 00 00 00 00 00 43 [18:13:40]Write i2c OK [18:13:40]MH_I2C_Read... [18:13:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:40]Read from MH i2c: E2 [18:13:40]MH_I2C_Read... [18:13:40]Read from MH i2c: E2 0E 00 [18:13:40]MH_I2C_Read... [18:13:40]Read from MH i2c: E2 0E 00 B3 13 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 D0 [18:13:40]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [18:13:40]wFMCommunicate OK [18:13:40]SAM_PROTO_GetShiftState done [18:13:40]FM_GetShiftState done [18:13:40]req_shift_opened done [18:13:40]requested_item shift.open_date is exist - process it [18:13:40]req_shift_open_date [18:13:40]req_shift_open_date done [18:13:40]produce_requested_data done [18:13:40]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118254,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [18:13:40]process_action_free close_receipt [18:13:40]json_value_free [18:13:40]json_value_free done [18:13:40]process_json_proto returns [18:13:40]Send response to host [18:13:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118254,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [18:13:40]free response buf [18:13:40]execute_script done [18:13:40]execute_script returns [18:13:40]free content buf [18:13:40]Sock 7.Close socket [18:13:40]Sock 7.Thread stoped [18:13:44]OFD Sender: No OFD packet to send [18:13:49]OFD Sender: No OFD packet to send [18:13:54]OFD Sender: No OFD packet to send [18:13:59]OFD Sender: No OFD packet to send [18:14:04]OFD Sender: No OFD packet to send [18:14:09]OFD Sender: No OFD packet to send [18:14:14]OFD Sender: No OFD packet to send [18:14:19]OFD Sender: No OFD packet to send [18:14:24]OFD Sender: No OFD packet to send [18:14:29]OFD Sender: No OFD packet to send [18:14:34]OFD Sender: No OFD packet to send [18:14:39]OFD Sender: No OFD packet to send [18:14:44]OFD Sender: No OFD packet to send [18:14:49]OFD Sender: No OFD packet to send [18:14:54]OFD Sender: No OFD packet to send [18:14:59]OFD Sender: No OFD packet to send [18:15:04]OFD Sender: No OFD packet to send [18:15:09]OFD Sender: No OFD packet to send [18:15:14]OFD Sender: No OFD packet to send [18:15:19]OFD Sender: No OFD packet to send [18:15:24]OFD Sender: No OFD packet to send [18:15:29]OFD Sender: No OFD packet to send [18:15:34]OFD Sender: No OFD packet to send [18:15:39]OFD Sender: No OFD packet to send [18:15:44]OFD Sender: No OFD packet to send [18:15:49]OFD Sender: No OFD packet to send [18:15:54]OFD Sender: No OFD packet to send [18:15:59]OFD Sender: No OFD packet to send [18:16:04]OFD Sender: No OFD packet to send [18:16:09]OFD Sender: No OFD packet to send [18:16:14]OFD Sender: No OFD packet to send [18:16:19]OFD Sender: No OFD packet to send [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:17:59]OFD Sender: No OFD packet to send [18:18:04]OFD Sender: No OFD packet to send [18:18:09]OFD Sender: No OFD packet to send [18:18:14]OFD Sender: No OFD packet to send [18:18:19]OFD Sender: No OFD packet to send [18:18:24]OFD Sender: No OFD packet to send [18:18:29]OFD Sender: No OFD packet to send [18:18:34]OFD Sender: No OFD packet to send [18:18:39]OFD Sender: No OFD packet to send [18:18:44]OFD Sender: No OFD packet to send [18:18:49]OFD Sender: No OFD packet to send [18:18:54]OFD Sender: No OFD packet to send [18:18:59]OFD Sender: No OFD packet to send [18:19:04]OFD Sender: No OFD packet to send [18:19:09]OFD Sender: No OFD packet to send [18:19:14]OFD Sender: No OFD packet to send [18:19:19]OFD Sender: No OFD packet to send [18:19:24]OFD Sender: No OFD packet to send [18:19:29]OFD Sender: No OFD packet to send [18:19:34]accept exits with 10 [18:19:34]New connection [18:19:34]New thread 3067096420 created [18:19:34]Thread 3066953060 joined [18:19:34]Waiting for new connection... [18:19:34] Sock 10.Parse request [18:19:34]Sock 10.Check first char [18:19:34]Sock 10.First char is OK [18:19:34]request: POST /json_proto HTTP/1.0 [18:19:34]Method: POST [18:19:34]URL: /json_proto [18:19:34]Method is POST - this is cgi request [18:19:34]url: /json_proto [18:19:34]query_string will be loaded in cgi processing [18:19:34]execute_cgi json_proto POST (null) [18:19:34]execute_cgi path=json_proto method=POST [18:19:34]POST find Content-Length [18:19:34]Host: 172.17.45.7:8080 [18:19:34]Content-Length: 677 [18:19:34]Content-Type: application/json [18:19:34] [18:19:34]POST finish read [18:19:34]Found Content-Length = 677 [18:19:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "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" ] } } [18:19:34]execute_script... [18:19: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)949125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "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" ] } } [18:19:34]POST & json_proto [18:19:34]process_json_proto [18:19:34]json parsed OK: [18:19:34]protocol is kg_v1.0 [18:19:34]action value=close_receipt [18:19:34]process_action close_receipt [18:19:34]cmd_close_receipt [18:19:34]MH_GetDate [18:19:34]Write to MH i2c: F0 00 00 B4 13 B6 [18:19:34]Write i2c OK [18:19:34]MH_I2C_Read... [18:19:34]Read from MH i2c: F0 [18:19:34]MH_I2C_Read... [18:19:34]Read from MH i2c: F0 09 00 [18:19:34]MH_I2C_Read... [18:19:34]Read from MH i2c: F0 09 00 B4 13 00 37 3A A5 66 90 0F 3E 66 7E [18:19:34]GetLastDocTimeStamp 1722104017 [18:19:34]current date 1722104375 [18:19:34]FM_GetShiftState [18:19:34]SAM_PROTO_GetShiftState [18:19:34]wFMCommunicate request_size=4 [18:19:34]MH_SAM_APDU [18:19:34]CAPDU: 80 13 01 00 [18:19:34]Write to MH i2c: E2 08 00 B5 13 80 13 01 00 00 00 00 00 45 [18:19:34]Write i2c OK [18:19:34]MH_I2C_Read... [18:19:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:34]Read from MH i2c: E2 [18:19:34]MH_I2C_Read... [18:19:34]Read from MH i2c: E2 0E 00 [18:19:34]MH_I2C_Read... [18:19:34]Read from MH i2c: E2 0E 00 B5 13 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 D2 [18:19:34]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [18:19:34]wFMCommunicate OK [18:19:34]SAM_PROTO_GetShiftState done [18:19:34]FM_GetShiftState done [18:19:34]opened in 1722038845 [18:19:34]opened+sec_in_day 1722125245 [18:19:34]quantity*price = 35052 [18:19:34]sum+1 = 35054 [18:19:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 198 27.07.2024 18:19 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118255 ФПД: 173408649623109 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T181935&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118255&fm=173408649623109&tin=02508201610067®Number=0000000000092660&sum=35000 [18:19:35]StoreToDocumentArchive [18:19:35]shift 432 fd 118255 [18:19:35]save to /storage/0432/doc_00118255 [18:19:35]save last doc name /storage/0432/doc_00118255 to /storage/kkm_last_doc_name [18:19:35]save OK [18:19:35]Clear old archive folders... [18:19:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:19:35]tlvbuf is B6ECBEC0 [18:19:35]SAM_PROTO_ClearQueue [18:19:35]wFMCommunicate request_size=4 [18:19:35]MH_SAM_APDU [18:19:35]CAPDU: 80 09 00 00 [18:19:35]Write to MH i2c: E2 08 00 C2 13 80 09 00 00 00 00 00 00 47 [18:19:35]Write i2c OK [18:19:35]MH_I2C_Read... [18:19:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:19:35]Read from MH i2c: E2 [18:19:35]MH_I2C_Read... [18:19:35]Read from MH i2c: E2 03 00 [18:19:35]MH_I2C_Read... [18:19:35]Read from MH i2c: E2 03 00 C2 13 00 90 00 49 [18:19:35]RAPDU: 90 00 [18:19:35]wFMCommunicate OK [18:19:35]SAM_PROTO_ClearQueue done [18:19:35]KKMCreateOFDPacket [18:19:35]OFDProtocolAddRootSTLVToBuf [18:19:35]FM_MakeSignedData [18:19:35]FM_MakeSignedData [18:19:35]SAM_PROTO_SignData [18:19:35]wFMCommunicate request_size=4 [18:19:35]MH_SAM_APDU [18:19:35]CAPDU: 80 0D 01 02 [18:19:35]Write to MH i2c: E2 08 00 C3 13 80 0D 01 02 00 00 00 00 4F [18:19:35]Write i2c OK [18:19:35]MH_I2C_Read... [18:19:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:19:35]Read from MH i2c: E2 [18:19:35]MH_I2C_Read... [18:19:35]Read from MH i2c: E2 03 00 [18:19:35]MH_I2C_Read... [18:19:35]Read from MH i2c: E2 03 00 C3 13 00 90 00 4A [18:19:35]RAPDU: 90 00 [18:19:35]wFMCommunicate OK [18:19:35]wFMCommunicate request_size=255 [18:19:35]MH_SAM_APDU [18:19: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 34 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 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 8A 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 C6 00 00 00 F4 03 04 00 37 3A A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EF CD 01 00 35 04 06 00 9D [18:19:35]Write to MH i2c: E2 02 01 C4 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 34 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 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 8A 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 C6 00 00 00 F4 03 04 00 37 3A A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EF CD 01 00 35 04 06 00 9D 00 00 4B [18:19:35]Write i2c OK [18:19:35]MH_I2C_Read... [18:19:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:35]Read from MH i2c: E2 [18:19:35]MH_I2C_Read... [18:19:35]Read from MH i2c: E2 03 00 [18:19:35]MH_I2C_Read... [18:19:35]Read from MH i2c: E2 03 00 C4 13 00 90 00 4B [18:19:35]RAPDU: 90 00 [18:19:35]wFMCommunicate OK [18:19:35]wFMCommunicate request_size=10 [18:19:35]MH_SAM_APDU [18:19:35]CAPDU: 80 0D 02 02 05 B6 D8 F6 36 45 [18:19:35]Write to MH i2c: E2 0D 00 C5 13 80 0D 02 02 05 00 B6 D8 F6 36 45 00 00 5B [18:19:35]Write i2c OK [18:19:35]MH_I2C_Read... [18:19:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:35]Read from MH i2c: E2 [18:19:35]MH_I2C_Read... [18:19:35]Read from MH i2c: E2 03 00 [18:19:35]MH_I2C_Read... [18:19:35]Read from MH i2c: E2 03 00 C5 13 00 90 00 4C [18:19:35]RAPDU: 90 00 [18:19:35]wFMCommunicate OK [18:19:35]wFMCommunicate request_size=4 [18:19:35]MH_SAM_APDU [18:19:35]CAPDU: 80 0D 03 02 [18:19:35]Write to MH i2c: E2 08 00 C6 13 80 0D 03 02 00 00 00 00 54 [18:19:35]Write i2c OK [18:19:35]MH_I2C_Read... [18:19:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:19:36]Read from MH i2c: E2 [18:19:36]MH_I2C_Read... [18:19:36]Read from MH i2c: E2 0B 00 [18:19:36]MH_I2C_Read... [18:19:36]Read from MH i2c: E2 0B 00 C6 13 00 85 5C 2C 72 92 6D 65 DD 90 00 15 [18:19:36]RAPDU: 85 5C 2C 72 92 6D 65 DD 90 00 [18:19:36]wFMCommunicate OK [18:19:36]SAM_PROTO_SignData done [18:19:36]FM_MakeSignedData done [18:19:36]CreateOFDProtocolMessage [18:19:36]wFMCommunicate request_size=4 [18:19:36]MH_SAM_APDU [18:19:36]CAPDU: 80 11 00 00 [18:19:36]Write to MH i2c: E2 08 00 C7 13 80 11 00 00 00 00 00 00 54 [18:19:36]Write i2c OK [18:19:36]MH_I2C_Read... [18:19:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:36]Read from MH i2c: E2 [18:19:36]MH_I2C_Read... [18:19:36]Read from MH i2c: E2 17 00 [18:19:36]MH_I2C_Read... [18:19:36]Read from MH i2c: E2 17 00 C7 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AF [18:19:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:19:36]wFMCommunicate OK [18:19:36]CreateOFDProtocolMessage done [18:19:36]OFDSenderStorePacket 118255 [18:19:36]StoreOFDPacket docnum=118255 [18:19:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 26 36 07 01 71 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 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 8A 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 C6 00 00 00 F4 03 04 00 37 3A A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EF CD 01 00 35 04 06 00 9D B6 D8 F6 36 45 85 5C 2C 72 92 6D 65 DD [18:19:36]CheckFolder [18:19:36]dirname=/storage/ofd_packets [18:19:36]CheckFolder done [18:19:36]ProducePacketName [18:19:36]name=ofd_packets/00118255 [18:19:36]NVStorageSaveData ofd_packets/00118255 [18:19:36]File name is /storage/ofd_packets/00118255 [18:19:36]Write 301 bytes [18:19:36]NVStorageSaveData done [18:19:36]OFDSenderStorePacket done [18:19:36]KKMCreateOFDPacket done [18:19:36]NVStorageSaveData kkm_last_timestamp [18:19:36]File name is /storage/kkm_last_timestamp [18:19:36]Write 4 bytes [18:19:36]NVStorageSaveData done [18:19:36]ExternCall_PrintAddStr [18:19:36]wPrintStart [18:19:36]Write to MH i2c: 01 00 00 C8 13 DB [18:19:36]Write i2c OK [18:19:36]MH_I2C_Read... [18:19:36]Read from MH i2c: 01 [18:19:36]MH_I2C_Read... [18:19:36]Read from MH i2c: 01 07 00 [18:19:36]MH_I2C_Read... [18:19:36]Read from MH i2c: 01 07 00 C8 13 00 00 00 00 00 FF 0F F0 [18:19:36]RasterBufferAndPrint [18:19:36]line Счет N : (1)949125 [18:19:36]line ИНН: 02508201610067 [18:19:36]line Контрольно-Кассовый Чек [18:19:36]line ПРОДАЖА [18:19:36]line ТРК (МРК, ГНК) : 31 [18:19:36]line Товар: 2710124130 [18:19:36]line Аи-92-К-4 [18:19:36]line 5.170 * 67.80 [18:19:36]line = 350.53 [18:19:36]line НДС 12% НСП 1% [18:19:36]line > о реализуемом товаре [18:19:36]line ОКРУГЛЕНИЕ: -0.53 [18:19:36]line ИТОГО: 350.00 [18:19:36]line Внесено: 350.00 [18:19:36]line СДАЧА: 0.00 [18:19:36]line НСП 1% : 3.10 [18:19:36]line НДС 12% : 37.22 [18:19:36]line Наличными: 350.00 [18:19:36]line Безнал.: 0.00 [18:19:36]line Место: АЗС № 134 "Партнер Нефть" [18:19:36]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:19:36]line СНО: Общий режим [18:19:36]line Чек 198 27.07.2024 18:19 [18:19:36]line Смена: 432 ФФД: 1.0 [18:19:36]line ЗНМ: 0300000044 [18:19:36]line РНМ: 0000000000092660 [18:19:36]line Версия ККМ: 001 [18:19:36]line ФМ: 0000000000874939 [18:19:36]line ФД: 118255 [18:19:36]line ФПД: 173408649623109 [18:19:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T181935&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118255&fm=173408649623109&tin=02508201610067®Number=0000000000092660&sum=35000 [18:19:36]written 0, free lines is 4095 [18:19:36]OFD Sender: Processing packet 118255 [packets to send 86, broken 85] [18:19:36]ProducePacketName [18:19:36]name=ofd_packets/00118255 [18:19:36]OFD Sender: To server: pG, [18:19:36]CommunicateWithHost lk.salyk.kg:30040 [18:19:36]ConnectInit lk.salyk.kg [18:19:36]Connected sock=9 [18:19:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 26 36 07 01 71 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 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 8A 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 C6 00 00 00 F4 03 04 00 37 3A A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EF CD 01 00 35 04 06 00 9D B6 D8 F6 36 45 85 5C 2C 72 92 6D 65 DD [18:19:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 FD 9C 47 00 5D 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EF CD 01 00 F4 03 04 00 C9 E7 A4 66 B6 04 01 00 00 10 D4 6F D9 F0 D5 BF 9F [18:19:36]CommunicateWithHost err = 0 [18:19:36]CheckOFDResponse [18:19:36]1017 (14) - 77093643461234 [18:19:36]1041 (16) - 0000000000874939 [18:19:36]1040 (4) - 118255 [18:19:36]1012 (4) - 27.07.2024 12:27 [18:19:36]1206 (1) - 0 [18:19:36]OFD Sender: Remove packet 118255 [18:19:36]ProducePacketName [18:19:36]name=ofd_packets/00118255 [18:19:36]NVStorageDeleteData [18:19:36]Write to MH i2c: 01 00 00 F2 13 05 [18:19:36]Write i2c OK [18:19:36]MH_I2C_Read... [18:19:36]Read from MH i2c: 01 [18:19:36]MH_I2C_Read... [18:19:36]Read from MH i2c: 01 07 00 [18:19:36]MH_I2C_Read... [18:19:36]Read from MH i2c: 01 07 00 F2 13 00 00 00 00 00 E0 0C F8 [18:19:36]RasterBufferAndPrint [18:19:36]line [18:19:36]line [18:19:36]line [18:19:36]line [18:19:36]line [18:19:36]written 0, free lines is 3302 [18:19:36]MH_Cut [18:19:36]Write to MH i2c: D1 01 00 F9 13 01 DE [18:19:36]Write i2c OK [18:19:36]MH_I2C_Read... [18:19:36]Read from MH i2c: D1 [18:19:36]MH_I2C_Read... [18:19:36]Read from MH i2c: D1 01 00 [18:19:36]MH_I2C_Read... [18:19:36]Read from MH i2c: D1 01 00 F9 13 00 DD [18:19:36]Write to MH i2c: 01 00 00 FA 13 0D [18:19:36]Write i2c OK [18:19:36]MH_I2C_Read... [18:19:37]OFD Sender: No OFD packet to send [18:19:37]*** Cut start [18:19:37]*** Partial cut [18:19:37]*** CUTSNS_PIN = 1 [18:19:37]*** CUTSNS_PIN = 0 [18:19:37]*** Brake cut motor [18:19:38]Read from MH i2c: 01 [18:19:38]MH_I2C_Read... [18:19:38]*** Stop cut motor [18:19:38]*** Cut end [18:19:38]Read from MH i2c: 01 07 00 [18:19:38]MH_I2C_Read... [18:19:38]Read from MH i2c: 01 07 00 FA 13 00 00 00 00 00 FF 0F 22 [18:19:38]process_action close_receipt done [18:19:38]requested_data is exist [18:19:38]produce_requested_data [18:19:38]requested_item fm.sn is exist - process it [18:19:38]wFMCommunicate request_size=4 [18:19:38]MH_SAM_APDU [18:19:38]CAPDU: 80 11 00 00 [18:19:38]Write to MH i2c: E2 08 00 FB 13 80 11 00 00 00 00 00 00 88 [18:19:38]Write i2c OK [18:19:38]MH_I2C_Read... [18:19:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:38]Read from MH i2c: E2 [18:19:38]MH_I2C_Read... [18:19:38]Read from MH i2c: E2 17 00 [18:19:38]MH_I2C_Read... [18:19:38]Read from MH i2c: E2 17 00 FB 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E3 [18:19:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:19:38]wFMCommunicate OK [18:19:38]requested_item fd.num is exist - process it [18:19:38]SAM_PROTO_GetFieldsCounters [18:19:38]wFMCommunicate request_size=4 [18:19:38]MH_SAM_APDU [18:19:38]CAPDU: 80 13 00 00 [18:19:38]Write to MH i2c: E2 08 00 FC 13 80 13 00 00 00 00 00 00 8B [18:19:38]Write i2c OK [18:19:38]MH_I2C_Read... [18:19:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:19:38]Read from MH i2c: E2 [18:19:38]MH_I2C_Read... [18:19:38]Read from MH i2c: E2 62 00 [18:19:38]MH_I2C_Read... [18:19:38]Read from MH i2c: E2 62 00 FC 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EF CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [18:19:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EF CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:19:38]wFMCommunicate OK [18:19:38]SAM_PROTO_GetFieldsCounters done [18:19:38]requested_item shift.num is exist - process it [18:19:38]requested_item shift.opened is exist - process it [18:19:38]req_shift_opened [18:19:38]FM_GetShiftState [18:19:38]SAM_PROTO_GetShiftState [18:19:38]wFMCommunicate request_size=4 [18:19:38]MH_SAM_APDU [18:19:38]CAPDU: 80 13 01 00 [18:19:38]Write to MH i2c: E2 08 00 FD 13 80 13 01 00 00 00 00 00 8D [18:19:38]Write i2c OK [18:19:38]MH_I2C_Read... [18:19:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:38]Read from MH i2c: E2 [18:19:38]MH_I2C_Read... [18:19:38]Read from MH i2c: E2 0E 00 [18:19:38]MH_I2C_Read... [18:19:38]Read from MH i2c: E2 0E 00 FD 13 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 1A [18:19:38]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [18:19:38]wFMCommunicate OK [18:19:38]SAM_PROTO_GetShiftState done [18:19:38]FM_GetShiftState done [18:19:38]req_shift_opened done [18:19:38]requested_item shift.open_date is exist - process it [18:19:38]req_shift_open_date [18:19:38]req_shift_open_date done [18:19:38]produce_requested_data done [18:19:38]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118255,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [18:19:38]process_action_free close_receipt [18:19:38]json_value_free [18:19:38]json_value_free done [18:19:38]process_json_proto returns [18:19:38]Send response to host [18:19:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118255,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [18:19:38]free response buf [18:19:38]execute_script done [18:19:38]execute_script returns [18:19:38]free content buf [18:19:38]Sock 10.Close socket [18:19:38]Sock 10.Thread stoped [18:19:42]OFD Sender: No OFD packet to send [18:19:47]OFD Sender: No OFD packet to send [18:19:52]OFD Sender: No OFD packet to send [18:19:57]OFD Sender: No OFD packet to send [18:20:02]OFD Sender: No OFD packet to send [18:20:07]OFD Sender: No OFD packet to send [18:20:12]OFD Sender: No OFD packet to send [18:20:17]OFD Sender: No OFD packet to send [18:20:22]OFD Sender: No OFD packet to send [18:20:27]OFD Sender: No OFD packet to send [18:20:28]accept exits with 7 [18:20:28]New connection [18:20:28]New thread 3066953060 created [18:20:28]Thread 3067096420 joined [18:20:28]Waiting for new connection... [18:20:28] Sock 7.Parse request [18:20:28]Sock 7.Check first char [18:20:28]Sock 7.First char is OK [18:20:28]request: POST /json_proto HTTP/1.0 [18:20:28]Method: POST [18:20:28]URL: /json_proto [18:20:28]Method is POST - this is cgi request [18:20:28]url: /json_proto [18:20:28]query_string will be loaded in cgi processing [18:20:28]execute_cgi json_proto POST (null) [18:20:28]execute_cgi path=json_proto method=POST [18:20:28]POST find Content-Length [18:20:28]Host: 172.17.45.7:8080 [18:20:28]Content-Length: 674 [18:20:28]Content-Type: application/json [18:20:28] [18:20:28]POST finish read [18:20:28]Found Content-Length = 674 [18:20:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:20:28]execute_script... [18:20: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)949126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:20:28]POST & json_proto [18:20:28]process_json_proto [18:20:28]json parsed OK: [18:20:28]protocol is kg_v1.0 [18:20:28]action value=close_receipt [18:20:28]process_action close_receipt [18:20:28]cmd_close_receipt [18:20:28]MH_GetDate [18:20:28]Write to MH i2c: F0 00 00 FE 13 00 [18:20:28]Write i2c OK [18:20:28]MH_I2C_Read... [18:20:28]Read from MH i2c: F0 [18:20:28]MH_I2C_Read... [18:20:28]Read from MH i2c: F0 09 00 [18:20:28]MH_I2C_Read... [18:20:28]Read from MH i2c: F0 09 00 FE 13 00 6D 3A A5 66 90 0F 3E 66 FE [18:20:28]GetLastDocTimeStamp 1722104375 [18:20:28]current date 1722104429 [18:20:28]FM_GetShiftState [18:20:28]SAM_PROTO_GetShiftState [18:20:28]wFMCommunicate request_size=4 [18:20:28]MH_SAM_APDU [18:20:28]CAPDU: 80 13 01 00 [18:20:28]Write to MH i2c: E2 08 00 FF 13 80 13 01 00 00 00 00 00 8F [18:20:28]Write i2c OK [18:20:28]MH_I2C_Read... [18:20:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:28]Read from MH i2c: E2 [18:20:28]MH_I2C_Read... [18:20:28]Read from MH i2c: E2 0E 00 [18:20:28]MH_I2C_Read... [18:20:28]Read from MH i2c: E2 0E 00 FF 13 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 1C [18:20:28]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [18:20:28]wFMCommunicate OK [18:20:28]SAM_PROTO_GetShiftState done [18:20:28]FM_GetShiftState done [18:20:28]opened in 1722038845 [18:20:28]opened+sec_in_day 1722125245 [18:20:28]quantity*price = 50063 [18:20:28]sum+1 = 50064 [18:20:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 199 27.07.2024 18:20 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118256 ФПД: 67828377495080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T182029&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118256&fm=67828377495080&tin=02508201610067®Number=0000000000092660&sum=50000 [18:20:29]StoreToDocumentArchive [18:20:29]shift 432 fd 118256 [18:20:29]save to /storage/0432/doc_00118256 [18:20:29]save last doc name /storage/0432/doc_00118256 to /storage/kkm_last_doc_name [18:20:29]save OK [18:20:29]Clear old archive folders... [18:20:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:20:29]tlvbuf is 01E5B2F0 [18:20:29]SAM_PROTO_ClearQueue [18:20:29]wFMCommunicate request_size=4 [18:20:29]MH_SAM_APDU [18:20:29]CAPDU: 80 09 00 00 [18:20:29]Write to MH i2c: E2 08 00 0C 14 80 09 00 00 00 00 00 00 92 [18:20:29]Write i2c OK [18:20:29]MH_I2C_Read... [18:20:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:20:29]Read from MH i2c: E2 [18:20:29]MH_I2C_Read... [18:20:29]Read from MH i2c: E2 03 00 [18:20:29]MH_I2C_Read... [18:20:29]Read from MH i2c: E2 03 00 0C 14 00 90 00 94 [18:20:29]RAPDU: 90 00 [18:20:29]wFMCommunicate OK [18:20:29]SAM_PROTO_ClearQueue done [18:20:29]KKMCreateOFDPacket [18:20:29]OFDProtocolAddRootSTLVToBuf [18:20:29]FM_MakeSignedData [18:20:29]FM_MakeSignedData [18:20:29]SAM_PROTO_SignData [18:20:29]wFMCommunicate request_size=4 [18:20:29]MH_SAM_APDU [18:20:29]CAPDU: 80 0D 01 02 [18:20:29]Write to MH i2c: E2 08 00 0D 14 80 0D 01 02 00 00 00 00 9A [18:20:29]Write i2c OK [18:20:29]MH_I2C_Read... [18:20:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:20:29]Read from MH i2c: E2 [18:20:29]MH_I2C_Read... [18:20:29]Read from MH i2c: E2 03 00 [18:20:29]MH_I2C_Read... [18:20:29]Read from MH i2c: E2 03 00 0D 14 00 90 00 95 [18:20:29]RAPDU: 90 00 [18:20:29]wFMCommunicate OK [18:20:29]wFMCommunicate request_size=255 [18:20:29]MH_SAM_APDU [18:20: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 6D 3A A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F0 CD 01 00 35 04 06 00 3D B0 86 58 [18:20:29]Write to MH i2c: E2 02 01 0E 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 6D 3A A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F0 CD 01 00 35 04 06 00 3D B0 86 58 00 00 65 [18:20:29]Write i2c OK [18:20:29]MH_I2C_Read... [18:20:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:30]Read from MH i2c: E2 [18:20:30]MH_I2C_Read... [18:20:30]Read from MH i2c: E2 03 00 [18:20:30]MH_I2C_Read... [18:20:30]Read from MH i2c: E2 03 00 0E 14 00 90 00 96 [18:20:30]RAPDU: 90 00 [18:20:30]wFMCommunicate OK [18:20:30]wFMCommunicate request_size=7 [18:20:30]MH_SAM_APDU [18:20:30]CAPDU: 80 0D 02 02 02 A6 28 [18:20:30]Write to MH i2c: E2 0A 00 0F 14 80 0D 02 02 02 00 A6 28 00 00 6F [18:20:30]Write i2c OK [18:20:30]MH_I2C_Read... [18:20:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:30]Read from MH i2c: E2 [18:20:30]MH_I2C_Read... [18:20:30]Read from MH i2c: E2 03 00 [18:20:30]MH_I2C_Read... [18:20:30]Read from MH i2c: E2 03 00 0F 14 00 90 00 97 [18:20:30]RAPDU: 90 00 [18:20:30]wFMCommunicate OK [18:20:30]wFMCommunicate request_size=4 [18:20:30]MH_SAM_APDU [18:20:30]CAPDU: 80 0D 03 02 [18:20:30]Write to MH i2c: E2 08 00 10 14 80 0D 03 02 00 00 00 00 9F [18:20:30]Write i2c OK [18:20:30]MH_I2C_Read... [18:20:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:20:30]Read from MH i2c: E2 [18:20:30]MH_I2C_Read... [18:20:30]Read from MH i2c: E2 0B 00 [18:20:30]MH_I2C_Read... [18:20:30]Read from MH i2c: E2 0B 00 10 14 00 95 2E F4 EF 41 37 72 6B 90 00 9B [18:20:30]RAPDU: 95 2E F4 EF 41 37 72 6B 90 00 [18:20:30]wFMCommunicate OK [18:20:30]SAM_PROTO_SignData done [18:20:30]FM_MakeSignedData done [18:20:30]CreateOFDProtocolMessage [18:20:30]wFMCommunicate request_size=4 [18:20:30]MH_SAM_APDU [18:20:30]CAPDU: 80 11 00 00 [18:20:30]Write to MH i2c: E2 08 00 11 14 80 11 00 00 00 00 00 00 9F [18:20:30]Write i2c OK [18:20:30]MH_I2C_Read... [18:20:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:30]Read from MH i2c: E2 [18:20:30]MH_I2C_Read... [18:20:30]Read from MH i2c: E2 17 00 [18:20:30]MH_I2C_Read... [18:20:30]Read from MH i2c: E2 17 00 11 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FA [18:20:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:20:30]wFMCommunicate OK [18:20:30]CreateOFDProtocolMessage done [18:20:30]OFDSenderStorePacket 118256 [18:20:30]StoreOFDPacket docnum=118256 [18:20:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 32 0A 04 01 97 EF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 6D 3A A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F0 CD 01 00 35 04 06 00 3D B0 86 58 A6 28 95 2E F4 EF 41 37 72 6B [18:20:30]CheckFolder [18:20:30]dirname=/storage/ofd_packets [18:20:30]CheckFolder done [18:20:30]ProducePacketName [18:20:30]name=ofd_packets/00118256 [18:20:30]NVStorageSaveData ofd_packets/00118256 [18:20:30]File name is /storage/ofd_packets/00118256 [18:20:30]Write 298 bytes [18:20:30]NVStorageSaveData done [18:20:30]OFDSenderStorePacket done [18:20:30]KKMCreateOFDPacket done [18:20:30]NVStorageSaveData kkm_last_timestamp [18:20:30]File name is /storage/kkm_last_timestamp [18:20:30]Write 4 bytes [18:20:30]NVStorageSaveData done [18:20:30]ExternCall_PrintAddStr [18:20:30]wPrintStart [18:20:30]Write to MH i2c: 01 00 00 12 14 26 [18:20:30]Write i2c OK [18:20:30]MH_I2C_Read... [18:20:30]Read from MH i2c: 01 [18:20:30]MH_I2C_Read... [18:20:30]Read from MH i2c: 01 07 00 [18:20:30]MH_I2C_Read... [18:20:30]Read from MH i2c: 01 07 00 12 14 00 00 00 00 00 FF 0F 3B [18:20:30]RasterBufferAndPrint [18:20:30]line Счет N : (1)949126 [18:20:30]line ИНН: 02508201610067 [18:20:30]line Контрольно-Кассовый Чек [18:20:30]line ПРОДАЖА [18:20:30]line ТРК (МРК, ГНК) : 44 [18:20:30]line Товар: 2710194800 [18:20:30]line ДТ-К-5 [18:20:30]line 6.570 * 76.20 [18:20:30]line = 500.63 [18:20:30]line НДС 12% НСП 1% [18:20:30]line > о реализуемом товаре [18:20:30]line ОКРУГЛЕНИЕ: -0.63 [18:20:30]line ИТОГО: 500.00 [18:20:30]line Внесено: 500.00 [18:20:30]line СДАЧА: 0.00 [18:20:30]line НСП 1% : 4.43 [18:20:30]line НДС 12% : 53.16 [18:20:30]line Наличными: 500.00 [18:20:30]line Безнал.: 0.00 [18:20:30]line Место: АЗС № 134 "Партнер Нефть" [18:20:30]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:20:30]line СНО: Общий режим [18:20:30]line Чек 199 27.07.2024 18:20 [18:20:30]line Смена: 432 ФФД: 1.0 [18:20:30]line ЗНМ: 0300000044 [18:20:30]line РНМ: 0000000000092660 [18:20:30]line Версия ККМ: 001 [18:20:30]line ФМ: 0000000000874939 [18:20:30]line ФД: 118256 [18:20:30]line ФПД: 67828377495080 [18:20:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T182029&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118256&fm=67828377495080&tin=02508201610067®Number=0000000000092660&sum=50000 [18:20:30]OFD Sender: Processing packet 118256 [packets to send 86, broken 85] [18:20:30]ProducePacketName [18:20:30]name=ofd_packets/00118256 [18:20:30]OFD Sender: To server: pG, [18:20:30]CommunicateWithHost lk.salyk.kg:30040 [18:20:30]ConnectInit lk.salyk.kg [18:20:30]written 0, free lines is 4095 [18:20:30]Connected sock=10 [18: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 34 39 33 39 0C 01 00 00 32 0A 04 01 97 EF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 6D 3A A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F0 CD 01 00 35 04 06 00 3D B0 86 58 A6 28 95 2E F4 EF 41 37 72 6B [18:20:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 15 7B 47 00 94 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F0 CD 01 00 F4 03 04 00 FF E7 A4 66 B6 04 01 00 00 8F CE 53 BC B0 57 58 B5 [18:20:30]CommunicateWithHost err = 0 [18:20:30]CheckOFDResponse [18:20:30]1017 (14) - 77093643461234 [18:20:30]1041 (16) - 0000000000874939 [18:20:30]1040 (4) - 118256 [18:20:30]1012 (4) - 27.07.2024 12:28 [18:20:30]1206 (1) - 0 [18:20:30]OFD Sender: Remove packet 118256 [18:20:30]ProducePacketName [18:20:30]name=ofd_packets/00118256 [18:20:30]NVStorageDeleteData [18:20:31]Write to MH i2c: 01 00 00 3C 14 50 [18:20:31]Write i2c OK [18:20:31]MH_I2C_Read... [18:20:31]Read from MH i2c: 01 [18:20:31]MH_I2C_Read... [18:20:31]Read from MH i2c: 01 07 00 [18:20:31]MH_I2C_Read... [18:20:31]Read from MH i2c: 01 07 00 3C 14 00 00 00 00 00 DC 0C 3F [18:20:31]RasterBufferAndPrint [18:20:31]line [18:20:31]line [18:20:31]line [18:20:31]line [18:20:31]line [18:20:31]written 0, free lines is 3299 [18:20:31]MH_Cut [18:20:31]Write to MH i2c: D1 01 00 43 14 01 29 [18:20:31]Write i2c OK [18:20:31]MH_I2C_Read... [18:20:31]Read from MH i2c: D1 [18:20:31]MH_I2C_Read... [18:20:31]Read from MH i2c: D1 01 00 [18:20:31]MH_I2C_Read... [18:20:31]Read from MH i2c: D1 01 00 43 14 00 28 [18:20:31]Write to MH i2c: 01 00 00 44 14 58 [18:20:31]Write i2c OK [18:20:31]MH_I2C_Read... [18:20:31]OFD Sender: No OFD packet to send [18:20:31]*** Cut start [18:20:31]*** Partial cut [18:20:31]*** CUTSNS_PIN = 1 [18:20:31]*** CUTSNS_PIN = 0 [18:20:32]*** Brake cut motor [18:20:32]Read from MH i2c: 01 [18:20:32]MH_I2C_Read... [18:20:32]*** Stop cut motor [18:20:32]*** Cut end [18:20:32]Read from MH i2c: 01 07 00 [18:20:32]MH_I2C_Read... [18:20:32]Read from MH i2c: 01 07 00 44 14 00 00 00 00 00 FF 0F 6D [18:20:32]process_action close_receipt done [18:20:32]requested_data is exist [18:20:32]produce_requested_data [18:20:32]requested_item fm.sn is exist - process it [18:20:32]wFMCommunicate request_size=4 [18:20:32]MH_SAM_APDU [18:20:32]CAPDU: 80 11 00 00 [18:20:32]Write to MH i2c: E2 08 00 45 14 80 11 00 00 00 00 00 00 D3 [18:20:32]Write i2c OK [18:20:32]MH_I2C_Read... [18:20:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:32]Read from MH i2c: E2 [18:20:32]MH_I2C_Read... [18:20:32]Read from MH i2c: E2 17 00 [18:20:32]MH_I2C_Read... [18:20:32]Read from MH i2c: E2 17 00 45 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2E [18:20:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:20:32]wFMCommunicate OK [18:20:32]requested_item fd.num is exist - process it [18:20:32]SAM_PROTO_GetFieldsCounters [18:20:32]wFMCommunicate request_size=4 [18:20:32]MH_SAM_APDU [18:20:32]CAPDU: 80 13 00 00 [18:20:32]Write to MH i2c: E2 08 00 46 14 80 13 00 00 00 00 00 00 D6 [18:20:32]Write i2c OK [18:20:32]MH_I2C_Read... [18:20:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:20:32]Read from MH i2c: E2 [18:20:32]MH_I2C_Read... [18:20:32]Read from MH i2c: E2 62 00 [18:20:32]MH_I2C_Read... [18:20:32]Read from MH i2c: E2 62 00 46 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F0 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [18:20:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F0 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:20:32]wFMCommunicate OK [18:20:32]SAM_PROTO_GetFieldsCounters done [18:20:32]requested_item shift.num is exist - process it [18:20:32]requested_item shift.opened is exist - process it [18:20:32]req_shift_opened [18:20:32]FM_GetShiftState [18:20:32]SAM_PROTO_GetShiftState [18:20:32]wFMCommunicate request_size=4 [18:20:32]MH_SAM_APDU [18:20:32]CAPDU: 80 13 01 00 [18:20:32]Write to MH i2c: E2 08 00 47 14 80 13 01 00 00 00 00 00 D8 [18:20:32]Write i2c OK [18:20:32]MH_I2C_Read... [18:20:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:32]Read from MH i2c: E2 [18:20:32]MH_I2C_Read... [18:20:32]Read from MH i2c: E2 0E 00 [18:20:32]MH_I2C_Read... [18:20:32]Read from MH i2c: E2 0E 00 47 14 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 65 [18:20:32]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [18:20:32]wFMCommunicate OK [18:20:32]SAM_PROTO_GetShiftState done [18:20:32]FM_GetShiftState done [18:20:32]req_shift_opened done [18:20:32]requested_item shift.open_date is exist - process it [18:20:32]req_shift_open_date [18:20:32]req_shift_open_date done [18:20:32]produce_requested_data done [18:20:32]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118256,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [18:20:32]process_action_free close_receipt [18:20:32]json_value_free [18:20:32]json_value_free done [18:20:32]process_json_proto returns [18:20:32]Send response to host [18:20:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118256,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [18:20:32]free response buf [18:20:32]execute_script done [18:20:32]execute_script returns [18:20:32]free content buf [18:20:32]Sock 7.Close socket [18:20:32]Sock 7.Thread stoped [18:20:36]OFD Sender: No OFD packet to send [18:20:41]OFD Sender: No OFD packet to send [18:20:46]OFD Sender: No OFD packet to send [18:20:51]OFD Sender: No OFD packet to send [18:20:56]OFD Sender: No OFD packet to send [18:21:01]OFD Sender: No OFD packet to send [18:21:06]OFD Sender: No OFD packet to send [18:21:11]OFD Sender: No OFD packet to send [18:21:16]OFD Sender: No OFD packet to send [18:21:21]OFD Sender: No OFD packet to send [18:21:26]OFD Sender: No OFD packet to send [18:21:31]OFD Sender: No OFD packet to send [18:21:36]OFD Sender: No OFD packet to send [18:21:41]OFD Sender: No OFD packet to send [18:21:46]OFD Sender: No OFD packet to send [18:21:51]OFD Sender: No OFD packet to send [18:21:56]OFD Sender: No OFD packet to send [18:22:01]OFD Sender: No OFD packet to send [18:22:06]OFD Sender: No OFD packet to send [18:22:11]OFD Sender: No OFD packet to send [18:22:16]OFD Sender: No OFD packet to send [18:22:21]OFD Sender: No OFD packet to send [18:22:26]OFD Sender: No OFD packet to send [18:22:31]OFD Sender: No OFD packet to send [18:22:36]OFD Sender: No OFD packet to send [18:22:41]OFD Sender: No OFD packet to send [18:22:46]OFD Sender: No OFD packet to send [18:22:51]OFD Sender: No OFD packet to send [18:22:56]OFD Sender: No OFD packet to send [18:23:01]OFD Sender: No OFD packet to send [18:23:06]OFD Sender: No OFD packet to send [18:23:11]OFD Sender: No OFD packet to send [18:23:16]OFD Sender: No OFD packet to send [18:23:21]OFD Sender: No OFD packet to send [18:23:26]OFD Sender: No OFD packet to send [18:23:31]OFD Sender: No OFD packet to send [18:23:36]OFD Sender: No OFD packet to send [18:23:41]OFD Sender: No OFD packet to send [18:23:44]accept exits with 9 [18:23:44]New connection [18:23:44]New thread 3067096420 created [18:23:44]Thread 3066953060 joined [18:23:44]Waiting for new connection... [18:23:44] Sock 9.Parse request [18:23:44]Sock 9.Check first char [18:23:44]Sock 9.First char is OK [18:23:44]request: POST /json_proto HTTP/1.0 [18:23:44]Method: POST [18:23:44]URL: /json_proto [18:23:44]Method is POST - this is cgi request [18:23:44]url: /json_proto [18:23:44]query_string will be loaded in cgi processing [18:23:44]execute_cgi json_proto POST (null) [18:23:44]execute_cgi path=json_proto method=POST [18:23:44]POST find Content-Length [18:23:44]Host: 172.17.45.7:8080 [18:23:44]Content-Length: 682 [18:23:44]Content-Type: application/json [18:23:44] [18:23:44]POST finish read [18:23:44]Found Content-Length = 682 [18:23:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:23:44]execute_script... [18:23: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)949127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:23:44]POST & json_proto [18:23:44]process_json_proto [18:23:44]json parsed OK: [18:23:44]protocol is kg_v1.0 [18:23:44]action value=close_receipt [18:23:44]process_action close_receipt [18:23:44]cmd_close_receipt [18:23:44]MH_GetDate [18:23:44]Write to MH i2c: F0 00 00 48 14 4B [18:23:44]Write i2c OK [18:23:44]MH_I2C_Read... [18:23:44]Read from MH i2c: F0 [18:23:44]MH_I2C_Read... [18:23:44]Read from MH i2c: F0 09 00 [18:23:44]MH_I2C_Read... [18:23:44]Read from MH i2c: F0 09 00 48 14 00 31 3B A5 66 90 0F 3E 66 0E [18:23:44]GetLastDocTimeStamp 1722104429 [18:23:44]current date 1722104625 [18:23:44]FM_GetShiftState [18:23:44]SAM_PROTO_GetShiftState [18:23:44]wFMCommunicate request_size=4 [18:23:44]MH_SAM_APDU [18:23:44]CAPDU: 80 13 01 00 [18:23:44]Write to MH i2c: E2 08 00 49 14 80 13 01 00 00 00 00 00 DA [18:23:44]Write i2c OK [18:23:44]MH_I2C_Read... [18:23:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:44]Read from MH i2c: E2 [18:23:44]MH_I2C_Read... [18:23:44]Read from MH i2c: E2 0E 00 [18:23:44]MH_I2C_Read... [18:23:44]Read from MH i2c: E2 0E 00 49 14 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 67 [18:23:44]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [18:23:44]wFMCommunicate OK [18:23:44]SAM_PROTO_GetShiftState done [18:23:44]FM_GetShiftState done [18:23:44]opened in 1722038845 [18:23:44]opened+sec_in_day 1722125245 [18:23:44]quantity*price = 100005 [18:23:44]sum+1 = 100006 [18:23:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 200 27.07.2024 18:23 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118257 ФПД: 87733042320542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T182345&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118257&fm=87733042320542&tin=02508201610067®Number=0000000000092660&sum=100000 [18:23:45]StoreToDocumentArchive [18:23:45]shift 432 fd 118257 [18:23:45]save to /storage/0432/doc_00118257 [18:23:45]save last doc name /storage/0432/doc_00118257 to /storage/kkm_last_doc_name [18:23:45]save OK [18:23:45]Clear old archive folders... [18:23:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:23:45]tlvbuf is 01DF5F70 [18:23:45]SAM_PROTO_ClearQueue [18:23:45]wFMCommunicate request_size=4 [18:23:45]MH_SAM_APDU [18:23:45]CAPDU: 80 09 00 00 [18:23:45]Write to MH i2c: E2 08 00 56 14 80 09 00 00 00 00 00 00 DC [18:23:45]Write i2c OK [18:23:45]MH_I2C_Read... [18:23:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:23:45]Read from MH i2c: E2 [18:23:45]MH_I2C_Read... [18:23:45]Read from MH i2c: E2 03 00 [18:23:45]MH_I2C_Read... [18:23:45]Read from MH i2c: E2 03 00 56 14 00 90 00 DE [18:23:45]RAPDU: 90 00 [18:23:45]wFMCommunicate OK [18:23:45]SAM_PROTO_ClearQueue done [18:23:45]KKMCreateOFDPacket [18:23:45]OFDProtocolAddRootSTLVToBuf [18:23:45]FM_MakeSignedData [18:23:45]FM_MakeSignedData [18:23:45]SAM_PROTO_SignData [18:23:45]wFMCommunicate request_size=4 [18:23:45]MH_SAM_APDU [18:23:45]CAPDU: 80 0D 01 02 [18:23:45]Write to MH i2c: E2 08 00 57 14 80 0D 01 02 00 00 00 00 E4 [18:23:45]Write i2c OK [18:23:45]MH_I2C_Read... [18:23:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:23:45]Read from MH i2c: E2 [18:23:45]MH_I2C_Read... [18:23:45]Read from MH i2c: E2 03 00 [18:23:45]MH_I2C_Read... [18:23:45]Read from MH i2c: E2 03 00 57 14 00 90 00 DF [18:23:45]RAPDU: 90 00 [18:23:45]wFMCommunicate OK [18:23:45]wFMCommunicate request_size=255 [18:23:45]MH_SAM_APDU [18:23: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 31 3B A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F1 CD 01 00 35 04 06 00 4F [18:23:45]Write to MH i2c: E2 02 01 58 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 31 3B A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F1 CD 01 00 35 04 06 00 4F 00 00 F5 [18:23:45]Write i2c OK [18:23:45]MH_I2C_Read... [18:23:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:46]Read from MH i2c: E2 [18:23:46]MH_I2C_Read... [18:23:46]Read from MH i2c: E2 03 00 [18:23:46]MH_I2C_Read... [18:23:46]Read from MH i2c: E2 03 00 58 14 00 90 00 E0 [18:23:46]RAPDU: 90 00 [18:23:46]wFMCommunicate OK [18:23:46]wFMCommunicate request_size=10 [18:23:46]MH_SAM_APDU [18:23:46]CAPDU: 80 0D 02 02 05 CA F0 D2 94 9E [18:23:46]Write to MH i2c: E2 0D 00 59 14 80 0D 02 02 05 00 CA F0 D2 94 9E 00 00 AF [18:23:46]Write i2c OK [18:23:46]MH_I2C_Read... [18:23:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:46]Read from MH i2c: E2 [18:23:46]MH_I2C_Read... [18:23:46]Read from MH i2c: E2 03 00 [18:23:46]MH_I2C_Read... [18:23:46]Read from MH i2c: E2 03 00 59 14 00 90 00 E1 [18:23:46]RAPDU: 90 00 [18:23:46]wFMCommunicate OK [18:23:46]wFMCommunicate request_size=4 [18:23:46]MH_SAM_APDU [18:23:46]CAPDU: 80 0D 03 02 [18:23:46]Write to MH i2c: E2 08 00 5A 14 80 0D 03 02 00 00 00 00 E9 [18:23:46]Write i2c OK [18:23:46]MH_I2C_Read... [18:23:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:23:46]Read from MH i2c: E2 [18:23:46]MH_I2C_Read... [18:23:46]Read from MH i2c: E2 0B 00 [18:23:46]MH_I2C_Read... [18:23:46]Read from MH i2c: E2 0B 00 5A 14 00 40 2F 3F B9 84 62 2F 6E 90 00 D4 [18:23:46]RAPDU: 40 2F 3F B9 84 62 2F 6E 90 00 [18:23:46]wFMCommunicate OK [18:23:46]SAM_PROTO_SignData done [18:23:46]FM_MakeSignedData done [18:23:46]CreateOFDProtocolMessage [18:23:46]wFMCommunicate request_size=4 [18:23:46]MH_SAM_APDU [18:23:46]CAPDU: 80 11 00 00 [18:23:46]Write to MH i2c: E2 08 00 5B 14 80 11 00 00 00 00 00 00 E9 [18:23:46]Write i2c OK [18:23:46]MH_I2C_Read... [18:23:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:46]Read from MH i2c: E2 [18:23:46]MH_I2C_Read... [18:23:46]Read from MH i2c: E2 17 00 [18:23:46]MH_I2C_Read... [18:23:46]Read from MH i2c: E2 17 00 5B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 44 [18:23:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:23:46]wFMCommunicate OK [18:23:46]CreateOFDProtocolMessage done [18:23:46]OFDSenderStorePacket 118257 [18:23:46]StoreOFDPacket docnum=118257 [18:23:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 9D 69 07 01 74 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 31 3B A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F1 CD 01 00 35 04 06 00 4F CA F0 D2 94 9E 40 2F 3F B9 84 62 2F 6E [18:23:46]CheckFolder [18:23:46]dirname=/storage/ofd_packets [18:23:46]CheckFolder done [18:23:46]ProducePacketName [18:23:46]name=ofd_packets/00118257 [18:23:46]NVStorageSaveData ofd_packets/00118257 [18:23:46]File name is /storage/ofd_packets/00118257 [18:23:46]Write 301 bytes [18:23:46]NVStorageSaveData done [18:23:46]OFDSenderStorePacket done [18:23:46]KKMCreateOFDPacket done [18:23:46]NVStorageSaveData kkm_last_timestamp [18:23:46]File name is /storage/kkm_last_timestamp [18:23:46]Write 4 bytes [18:23:46]NVStorageSaveData done [18:23:46]OFD Sender: Processing packet 118257 [packets to send 86, broken 85] [18:23:46]ProducePacketName [18:23:46]name=ofd_packets/00118257 [18:23:46]OFD Sender: To server: pG, [18:23:46]CommunicateWithHost lk.salyk.kg:30040 [18:23:46]ConnectInit lk.salyk.kg [18:23:46]ExternCall_PrintAddStr [18:23:46]wPrintStart [18:23:46]Write to MH i2c: 01 00 00 5C 14 70 [18:23:46]Write i2c OK [18:23:46]MH_I2C_Read... [18:23:46]Read from MH i2c: 01 [18:23:46]MH_I2C_Read... [18:23:46]Read from MH i2c: 01 07 00 [18:23:46]MH_I2C_Read... [18:23:46]Read from MH i2c: 01 07 00 5C 14 00 00 00 00 00 FF 0F 85 [18:23:46]RasterBufferAndPrint [18:23:46]line Счет N : (1)949127 [18:23:46]line ИНН: 02508201610067 [18:23:46]line Контрольно-Кассовый Чек [18:23:46]line ПРОДАЖА [18:23:46]line ТРК (МРК, ГНК) : 41 [18:23:46]line Товар: 2710124130 [18:23:46]line Аи-92-К-4 [18:23:46]line 14.750 * 67.80 [18:23:46]line = 1000.05 [18:23:46]line НДС 12% НСП 1% [18:23:46]line > о реализуемом товаре [18:23:46]line ОКРУГЛЕНИЕ: -0.05 [18:23:46]line ИТОГО: 1000.00 [18:23:46]line Внесено: 1000.00 [18:23:46]line СДАЧА: 0.00 [18:23:46]line НСП 1% : 8.85 [18:23:46]line НДС 12% : 106.20 [18:23:46]line Наличными: 1000.00 [18:23:46]line Безнал.: 0.00 [18:23:46]line Место: АЗС № 134 "Партнер Нефть" [18:23:46]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:23:46]line СНО: Общий режим [18:23:46]line Чек 200 27.07.2024 18:23 [18:23:46]line Смена: 432 ФФД: 1.0 [18:23:46]line ЗНМ: 0300000044 [18:23:46]line РНМ: 0000000000092660 [18:23:46]line Версия ККМ: 001 [18:23:46]line ФМ: 0000000000874939 [18:23:46]line ФД: 118257 [18:23:46]line ФПД: 87733042320542 [18:23:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T182345&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118257&fm=87733042320542&tin=02508201610067®Number=0000000000092660&sum=100000 [18:23:46]Connected sock=11 [18:23:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 9D 69 07 01 74 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 31 3B A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F1 CD 01 00 35 04 06 00 4F CA F0 D2 94 9E 40 2F 3F B9 84 62 2F 6E [18:23:46]written 0, free lines is 4095 [18:23:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 EE 89 47 00 53 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F1 CD 01 00 F4 03 04 00 C3 E8 A4 66 B6 04 01 00 00 B6 A9 83 B6 A9 87 A1 00 [18:23:46]CommunicateWithHost err = 0 [18:23:46]CheckOFDResponse [18:23:46]1017 (14) - 77093643461234 [18:23:46]1041 (16) - 0000000000874939 [18:23:46]1040 (4) - 118257 [18:23:46]1012 (4) - 27.07.2024 12:32 [18:23:46]1206 (1) - 0 [18:23:46]OFD Sender: Remove packet 118257 [18:23:46]ProducePacketName [18:23:46]name=ofd_packets/00118257 [18:23:46]NVStorageDeleteData [18:23:46]Write to MH i2c: 01 00 00 86 14 9A [18:23:46]Write i2c OK [18:23:46]MH_I2C_Read... [18:23:46]Read from MH i2c: 01 [18:23:46]MH_I2C_Read... [18:23:46]Read from MH i2c: 01 07 00 [18:23:46]MH_I2C_Read... [18:23:46]Read from MH i2c: 01 07 00 86 14 00 00 00 00 00 E6 0C 93 [18:23:46]RasterBufferAndPrint [18:23:46]line [18:23:46]line [18:23:46]line [18:23:46]line [18:23:46]line [18:23:46]written 0, free lines is 3307 [18:23:47]MH_Cut [18:23:47]Write to MH i2c: D1 01 00 8D 14 01 73 [18:23:47]Write i2c OK [18:23:47]MH_I2C_Read... [18:23:47]Read from MH i2c: D1 [18:23:47]MH_I2C_Read... [18:23:47]Read from MH i2c: D1 01 00 [18:23:47]MH_I2C_Read... [18:23:47]Read from MH i2c: D1 01 00 8D 14 00 72 [18:23:47]Write to MH i2c: 01 00 00 8E 14 A2 [18:23:47]Write i2c OK [18:23:47]MH_I2C_Read... [18:23:47]OFD Sender: No OFD packet to send [18:23:47]*** Cut start [18:23:47]*** Partial cut [18:23:47]*** CUTSNS_PIN = 1 [18:23:47]*** CUTSNS_PIN = 0 [18:23:47]*** Brake cut motor [18:23:48]Read from MH i2c: 01 [18:23:48]MH_I2C_Read... [18:23:48]*** Stop cut motor [18:23:48]*** Cut end [18:23:48]Read from MH i2c: 01 07 00 [18:23:48]MH_I2C_Read... [18:23:48]Read from MH i2c: 01 07 00 8E 14 00 00 00 00 00 FF 0F B7 [18:23:48]process_action close_receipt done [18:23:48]requested_data is exist [18:23:48]produce_requested_data [18:23:48]requested_item fm.sn is exist - process it [18:23:48]wFMCommunicate request_size=4 [18:23:48]MH_SAM_APDU [18:23:48]CAPDU: 80 11 00 00 [18:23:48]Write to MH i2c: E2 08 00 8F 14 80 11 00 00 00 00 00 00 1D [18:23:48]Write i2c OK [18:23:48]MH_I2C_Read... [18:23:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:48]Read from MH i2c: E2 [18:23:48]MH_I2C_Read... [18:23:48]Read from MH i2c: E2 17 00 [18:23:48]MH_I2C_Read... [18:23:48]Read from MH i2c: E2 17 00 8F 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 78 [18:23:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:23:48]wFMCommunicate OK [18:23:48]requested_item fd.num is exist - process it [18:23:48]SAM_PROTO_GetFieldsCounters [18:23:48]wFMCommunicate request_size=4 [18:23:48]MH_SAM_APDU [18:23:48]CAPDU: 80 13 00 00 [18:23:48]Write to MH i2c: E2 08 00 90 14 80 13 00 00 00 00 00 00 20 [18:23:48]Write i2c OK [18:23:48]MH_I2C_Read... [18:23:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:23:48]Read from MH i2c: E2 [18:23:48]MH_I2C_Read... [18:23:48]Read from MH i2c: E2 62 00 [18:23:48]MH_I2C_Read... [18:23:48]Read from MH i2c: E2 62 00 90 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F1 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [18:23:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F1 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:23:48]wFMCommunicate OK [18:23:48]SAM_PROTO_GetFieldsCounters done [18:23:48]requested_item shift.num is exist - process it [18:23:48]requested_item shift.opened is exist - process it [18:23:48]req_shift_opened [18:23:48]FM_GetShiftState [18:23:48]SAM_PROTO_GetShiftState [18:23:48]wFMCommunicate request_size=4 [18:23:48]MH_SAM_APDU [18:23:48]CAPDU: 80 13 01 00 [18:23:48]Write to MH i2c: E2 08 00 91 14 80 13 01 00 00 00 00 00 22 [18:23:48]Write i2c OK [18:23:48]MH_I2C_Read... [18:23:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:48]Read from MH i2c: E2 [18:23:48]MH_I2C_Read... [18:23:48]Read from MH i2c: E2 0E 00 [18:23:48]MH_I2C_Read... [18:23:48]Read from MH i2c: E2 0E 00 91 14 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 AF [18:23:48]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [18:23:48]wFMCommunicate OK [18:23:48]SAM_PROTO_GetShiftState done [18:23:48]FM_GetShiftState done [18:23:48]req_shift_opened done [18:23:48]requested_item shift.open_date is exist - process it [18:23:48]req_shift_open_date [18:23:48]req_shift_open_date done [18:23:48]produce_requested_data done [18:23:48]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118257,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [18:23:48]process_action_free close_receipt [18:23:48]json_value_free [18:23:48]json_value_free done [18:23:48]process_json_proto returns [18:23:48]Send response to host [18:23:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118257,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [18:23:48]free response buf [18:23:48]execute_script done [18:23:48]execute_script returns [18:23:48]free content buf [18:23:48]Sock 9.Close socket [18:23:48]Sock 9.Thread stoped [18:23:52]OFD Sender: No OFD packet to send [18:23:57]OFD Sender: No OFD packet to send [18:24:02]OFD Sender: No OFD packet to send [18:24:07]OFD Sender: No OFD packet to send [18:24:12]OFD Sender: No OFD packet to send [18:24:17]OFD Sender: No OFD packet to send [18:24:22]OFD Sender: No OFD packet to send [18:24:27]OFD Sender: No OFD packet to send [18:24:32]OFD Sender: No OFD packet to send [18:24:37]OFD Sender: No OFD packet to send [18:24:42]OFD Sender: No OFD packet to send [18:24:47]OFD Sender: No OFD packet to send [18:24:52]OFD Sender: No OFD packet to send [18:24:57]OFD Sender: No OFD packet to send [18:25:02]OFD Sender: No OFD packet to send [18:25:07]OFD Sender: No OFD packet to send [18:25:12]OFD Sender: No OFD packet to send [18:25:17]OFD Sender: No OFD packet to send [18:25:22]OFD Sender: No OFD packet to send [18:25:27]OFD Sender: No OFD packet to send [18:25:32]OFD Sender: No OFD packet to send [18:25:37]OFD Sender: No OFD packet to send [18:25:42]OFD Sender: No OFD packet to send [18:25:47]OFD Sender: No OFD packet to send [18:25:52]OFD Sender: No OFD packet to send [18:25:57]OFD Sender: No OFD packet to send [18:26:02]OFD Sender: No OFD packet to send [18:26:07]OFD Sender: No OFD packet to send [18:26:12]OFD Sender: No OFD packet to send [18:26:17]OFD Sender: No OFD packet to send [18:26:22]OFD Sender: No OFD packet to send [18:26:27]OFD Sender: No OFD packet to send [18:26:32]OFD Sender: No OFD packet to send [18:26:37]OFD Sender: No OFD packet to send [18:26:42]OFD Sender: No OFD packet to send [18:26:47]OFD Sender: No OFD packet to send [18:26:52]OFD Sender: No OFD packet to send [18:26:57]OFD Sender: No OFD packet to send [18:27:02]OFD Sender: No OFD packet to send [18:27:07]OFD Sender: No OFD packet to send [18:27:09]accept exits with 7 [18:27:09]New connection [18:27:09]New thread 3066953060 created [18:27:09]Thread 3067096420 joined [18:27:09]Waiting for new connection... [18:27:09] Sock 7.Parse request [18:27:09]Sock 7.Check first char [18:27:09]Sock 7.First char is OK [18:27:09]request: POST /json_proto HTTP/1.0 [18:27:09]Method: POST [18:27:09]URL: /json_proto [18:27:09]Method is POST - this is cgi request [18:27:09]url: /json_proto [18:27:09]query_string will be loaded in cgi processing [18:27:09]execute_cgi json_proto POST (null) [18:27:09]execute_cgi path=json_proto method=POST [18:27:09]POST find Content-Length [18:27:09]Host: 172.17.45.7:8080 [18:27:09]Content-Length: 674 [18:27:09]Content-Type: application/json [18:27:09] [18:27:09]POST finish read [18:27:09]Found Content-Length = 674 [18:27:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 4.340, "sum" : 330.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:09]execute_script... [18:27: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)949129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 4.340, "sum" : 330.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:09]POST & json_proto [18:27:09]process_json_proto [18:27:09]json parsed OK: [18:27:09]protocol is kg_v1.0 [18:27:09]action value=close_receipt [18:27:09]process_action close_receipt [18:27:09]cmd_close_receipt [18:27:09]MH_GetDate [18:27:09]Write to MH i2c: F0 00 00 92 14 95 [18:27:09]Write i2c OK [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: F0 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: F0 09 00 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: F0 09 00 92 14 00 FE 3B A5 66 90 0F 3E 66 25 [18:27:09]GetLastDocTimeStamp 1722104625 [18:27:09]current date 1722104830 [18:27:09]FM_GetShiftState [18:27:09]SAM_PROTO_GetShiftState [18:27:09]wFMCommunicate request_size=4 [18:27:09]MH_SAM_APDU [18:27:09]CAPDU: 80 13 01 00 [18:27:09]Write to MH i2c: E2 08 00 93 14 80 13 01 00 00 00 00 00 24 [18:27:09]Write i2c OK [18:27:09]MH_I2C_Read... [18:27:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:09]Read from MH i2c: E2 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: E2 0E 00 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: E2 0E 00 93 14 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 B1 [18:27:09]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [18:27:09]wFMCommunicate OK [18:27:09]SAM_PROTO_GetShiftState done [18:27:09]FM_GetShiftState done [18:27:09]opened in 1722038845 [18:27:09]opened+sec_in_day 1722125245 [18:27:09]quantity*price = 33070 [18:27:09]sum+1 = 33072 [18:27:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 330.00 Внесено: 330.00 СДАЧА: 0.00 НСП 1% : 2.93 НДС 12% : 35.12 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 201 27.07.2024 18:27 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118258 ФПД: 19961669773572 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T182710&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118258&fm=19961669773572&tin=02508201610067®Number=0000000000092660&sum=33000 [18:27:10]StoreToDocumentArchive [18:27:10]shift 432 fd 118258 [18:27:10]save to /storage/0432/doc_00118258 [18:27:10]save last doc name /storage/0432/doc_00118258 to /storage/kkm_last_doc_name [18:27:10]save OK [18:27:10]Clear old archive folders... [18:27:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:27:10]tlvbuf is 01E51FD0 [18:27:10]SAM_PROTO_ClearQueue [18:27:10]wFMCommunicate request_size=4 [18:27:10]MH_SAM_APDU [18:27:10]CAPDU: 80 09 00 00 [18:27:10]Write to MH i2c: E2 08 00 A0 14 80 09 00 00 00 00 00 00 26 [18:27:10]Write i2c OK [18:27:10]MH_I2C_Read... [18:27:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:10]Read from MH i2c: E2 [18:27:10]MH_I2C_Read... [18:27:10]Read from MH i2c: E2 03 00 [18:27:10]MH_I2C_Read... [18:27:10]Read from MH i2c: E2 03 00 A0 14 00 90 00 28 [18:27:10]RAPDU: 90 00 [18:27:10]wFMCommunicate OK [18:27:10]SAM_PROTO_ClearQueue done [18:27:10]KKMCreateOFDPacket [18:27:10]OFDProtocolAddRootSTLVToBuf [18:27:10]FM_MakeSignedData [18:27:10]FM_MakeSignedData [18:27:10]SAM_PROTO_SignData [18:27:10]wFMCommunicate request_size=4 [18:27:10]MH_SAM_APDU [18:27:10]CAPDU: 80 0D 01 02 [18:27:10]Write to MH i2c: E2 08 00 A1 14 80 0D 01 02 00 00 00 00 2E [18:27:10]Write i2c OK [18:27:10]MH_I2C_Read... [18:27:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:10]Read from MH i2c: E2 [18:27:10]MH_I2C_Read... [18:27:10]Read from MH i2c: E2 03 00 [18:27:10]MH_I2C_Read... [18:27:10]Read from MH i2c: E2 03 00 A1 14 00 90 00 29 [18:27:10]RAPDU: 90 00 [18:27:10]wFMCommunicate OK [18:27:10]wFMCommunicate request_size=255 [18:27:10]MH_SAM_APDU [18:27: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2F 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 FE 3B A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F2 CD 01 00 35 04 06 00 12 27 B0 3C [18:27:10]Write to MH i2c: E2 02 01 A2 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2F 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 FE 3B A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F2 CD 01 00 35 04 06 00 12 27 B0 3C 00 00 89 [18:27:10]Write i2c OK [18:27:10]MH_I2C_Read... [18:27:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:10]Read from MH i2c: E2 [18:27:10]MH_I2C_Read... [18:27:10]Read from MH i2c: E2 03 00 [18:27:10]MH_I2C_Read... [18:27:10]Read from MH i2c: E2 03 00 A2 14 00 90 00 2A [18:27:10]RAPDU: 90 00 [18:27:10]wFMCommunicate OK [18:27:10]wFMCommunicate request_size=7 [18:27:10]MH_SAM_APDU [18:27:10]CAPDU: 80 0D 02 02 02 69 04 [18:27:10]Write to MH i2c: E2 0A 00 A3 14 80 0D 02 02 02 00 69 04 00 00 A2 [18:27:10]Write i2c OK [18:27:10]MH_I2C_Read... [18:27:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:11]Read from MH i2c: E2 [18:27:11]MH_I2C_Read... [18:27:11]Read from MH i2c: E2 03 00 [18:27:11]MH_I2C_Read... [18:27:11]Read from MH i2c: E2 03 00 A3 14 00 90 00 2B [18:27:11]RAPDU: 90 00 [18:27:11]wFMCommunicate OK [18:27:11]wFMCommunicate request_size=4 [18:27:11]MH_SAM_APDU [18:27:11]CAPDU: 80 0D 03 02 [18:27:11]Write to MH i2c: E2 08 00 A4 14 80 0D 03 02 00 00 00 00 33 [18:27:11]Write i2c OK [18:27:11]MH_I2C_Read... [18:27:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:11]Read from MH i2c: E2 [18:27:11]MH_I2C_Read... [18:27:11]Read from MH i2c: E2 0B 00 [18:27:11]MH_I2C_Read... [18:27:11]Read from MH i2c: E2 0B 00 A4 14 00 86 10 3C 8B D4 4F 9F E2 90 00 35 [18:27:11]RAPDU: 86 10 3C 8B D4 4F 9F E2 90 00 [18:27:11]wFMCommunicate OK [18:27:11]SAM_PROTO_SignData done [18:27:11]FM_MakeSignedData done [18:27:11]CreateOFDProtocolMessage [18:27:11]wFMCommunicate request_size=4 [18:27:11]MH_SAM_APDU [18:27:11]CAPDU: 80 11 00 00 [18:27:11]Write to MH i2c: E2 08 00 A5 14 80 11 00 00 00 00 00 00 33 [18:27:11]Write i2c OK [18:27:11]MH_I2C_Read... [18:27:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:11]Read from MH i2c: E2 [18:27:11]MH_I2C_Read... [18:27:11]Read from MH i2c: E2 17 00 [18:27:11]MH_I2C_Read... [18:27:11]Read from MH i2c: E2 17 00 A5 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8E [18:27:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:27:11]wFMCommunicate OK [18:27:11]CreateOFDProtocolMessage done [18:27:11]OFDSenderStorePacket 118258 [18:27:11]StoreOFDPacket docnum=118258 [18:27:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 06 19 04 01 6C 9F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2F 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 FE 3B A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F2 CD 01 00 35 04 06 00 12 27 B0 3C 69 04 86 10 3C 8B D4 4F 9F E2 [18:27:11]CheckFolder [18:27:11]dirname=/storage/ofd_packets [18:27:11]CheckFolder done [18:27:11]ProducePacketName [18:27:11]name=ofd_packets/00118258 [18:27:11]NVStorageSaveData ofd_packets/00118258 [18:27:11]File name is /storage/ofd_packets/00118258 [18:27:11]Write 298 bytes [18:27:11]NVStorageSaveData done [18:27:11]OFDSenderStorePacket done [18:27:11]KKMCreateOFDPacket done [18:27:11]NVStorageSaveData kkm_last_timestamp [18:27:11]File name is /storage/kkm_last_timestamp [18:27:11]Write 4 bytes [18:27:11]NVStorageSaveData done [18:27:11]ExternCall_PrintAddStr [18:27:11]wPrintStart [18:27:11]Write to MH i2c: 01 00 00 A6 14 BA [18:27:11]Write i2c OK [18:27:11]MH_I2C_Read... [18:27:11]Read from MH i2c: 01 [18:27:11]MH_I2C_Read... [18:27:11]Read from MH i2c: 01 07 00 [18:27:11]MH_I2C_Read... [18:27:11]Read from MH i2c: 01 07 00 A6 14 00 00 00 00 00 FF 0F CF [18:27:11]RasterBufferAndPrint [18:27:11]line Счет N : (1)949129 [18:27:11]line ИНН: 02508201610067 [18:27:11]line Контрольно-Кассовый Чек [18:27:11]line ПРОДАЖА [18:27:11]line ТРК (МРК, ГНК) : 21 [18:27:11]line Товар: 2710194800 [18:27:11]line ДТ-К-5 [18:27:11]line 4.340 * 76.20 [18:27:11]line = 330.71 [18:27:11]line НДС 12% НСП 1% [18:27:11]line > о реализуемом товаре [18:27:11]line ОКРУГЛЕНИЕ: -0.71 [18:27:11]line ИТОГО: 330.00 [18:27:11]line Внесено: 330.00 [18:27:11]line СДАЧА: 0.00 [18:27:11]line НСП 1% : 2.93 [18:27:11]line НДС 12% : 35.12 [18:27:11]line Наличными: 330.00 [18:27:11]line Безнал.: 0.00 [18:27:11]line Место: АЗС № 134 "Партнер Нефть" [18:27:11]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:27:11]line СНО: Общий режим [18:27:11]line Чек 201 27.07.2024 18:27 [18:27:11]line Смена: 432 ФФД: 1.0 [18:27:11]line ЗНМ: 0300000044 [18:27:11]line РНМ: 0000000000092660 [18:27:11]line Версия ККМ: 001 [18:27:11]line ФМ: 0000000000874939 [18:27:11]line ФД: 118258 [18:27:11]line ФПД: 19961669773572 [18:27:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T182710&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118258&fm=19961669773572&tin=02508201610067®Number=0000000000092660&sum=33000 [18:27:11]OFD Sender: Processing packet 118258 [packets to send 86, broken 85] [18:27:11]ProducePacketName [18:27:11]name=ofd_packets/00118258 [18:27:11]OFD Sender: To server: pG, [18:27:11]CommunicateWithHost lk.salyk.kg:30040 [18:27:11]ConnectInit lk.salyk.kg [18:27:11]written 0, free lines is 4095 [18:27:11]Connected sock=9 [18:27:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 06 19 04 01 6C 9F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2F 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 FE 3B A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F2 CD 01 00 35 04 06 00 12 27 B0 3C 69 04 86 10 3C 8B D4 4F 9F E2 [18:27:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B8 32 47 00 52 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F2 CD 01 00 F4 03 04 00 90 E9 A4 66 B6 04 01 00 00 C0 52 69 3B D5 12 37 D4 [18:27:11]CommunicateWithHost err = 0 [18:27:11]CheckOFDResponse [18:27:11]1017 (14) - 77093643461234 [18:27:11]1041 (16) - 0000000000874939 [18:27:11]1040 (4) - 118258 [18:27:11]1012 (4) - 27.07.2024 12:35 [18:27:11]1206 (1) - 0 [18:27:11]OFD Sender: Remove packet 118258 [18:27:11]ProducePacketName [18:27:11]name=ofd_packets/00118258 [18:27:11]NVStorageDeleteData [18:27:11]Write to MH i2c: 01 00 00 D0 14 E4 [18:27:11]Write i2c OK [18:27:11]MH_I2C_Read... [18:27:11]Read from MH i2c: 01 [18:27:11]MH_I2C_Read... [18:27:11]Read from MH i2c: 01 07 00 [18:27:11]MH_I2C_Read... [18:27:11]Read from MH i2c: 01 07 00 D0 14 00 00 00 00 00 DC 0C D3 [18:27:11]RasterBufferAndPrint [18:27:11]line [18:27:11]line [18:27:11]line [18:27:11]line [18:27:11]line [18:27:11]written 0, free lines is 3299 [18:27:11]MH_Cut [18:27:11]Write to MH i2c: D1 01 00 D7 14 01 BD [18:27:11]Write i2c OK [18:27:11]MH_I2C_Read... [18:27:11]Read from MH i2c: D1 [18:27:11]MH_I2C_Read... [18:27:11]Read from MH i2c: D1 01 00 [18:27:11]MH_I2C_Read... [18:27:11]Read from MH i2c: D1 01 00 D7 14 00 BC [18:27:11]Write to MH i2c: 01 00 00 D8 14 EC [18:27:11]Write i2c OK [18:27:11]MH_I2C_Read... [18:27:12]OFD Sender: No OFD packet to send [18:27:12]*** Cut start [18:27:12]*** Partial cut [18:27:12]*** CUTSNS_PIN = 1 [18:27:12]*** CUTSNS_PIN = 0 [18:27:12]*** Brake cut motor [18:27:13]Read from MH i2c: 01 [18:27:13]MH_I2C_Read... [18:27:13]*** Stop cut motor [18:27:13]*** Cut end [18:27:13]Read from MH i2c: 01 07 00 [18:27:13]MH_I2C_Read... [18:27:13]Read from MH i2c: 01 07 00 D8 14 00 00 00 00 00 FF 0F 01 [18:27:13]process_action close_receipt done [18:27:13]requested_data is exist [18:27:13]produce_requested_data [18:27:13]requested_item fm.sn is exist - process it [18:27:13]wFMCommunicate request_size=4 [18:27:13]MH_SAM_APDU [18:27:13]CAPDU: 80 11 00 00 [18:27:13]Write to MH i2c: E2 08 00 D9 14 80 11 00 00 00 00 00 00 67 [18:27:13]Write i2c OK [18:27:13]MH_I2C_Read... [18:27:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:13]Read from MH i2c: E2 [18:27:13]MH_I2C_Read... [18:27:13]Read from MH i2c: E2 17 00 [18:27:13]MH_I2C_Read... [18:27:13]Read from MH i2c: E2 17 00 D9 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C2 [18:27:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:27:13]wFMCommunicate OK [18:27:13]requested_item fd.num is exist - process it [18:27:13]SAM_PROTO_GetFieldsCounters [18:27:13]wFMCommunicate request_size=4 [18:27:13]MH_SAM_APDU [18:27:13]CAPDU: 80 13 00 00 [18:27:13]Write to MH i2c: E2 08 00 DA 14 80 13 00 00 00 00 00 00 6A [18:27:13]Write i2c OK [18:27:13]MH_I2C_Read... [18:27:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:13]Read from MH i2c: E2 [18:27:13]MH_I2C_Read... [18:27:13]Read from MH i2c: E2 62 00 [18:27:13]MH_I2C_Read... [18:27:13]Read from MH i2c: E2 62 00 DA 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F2 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [18:27:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F2 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:27:13]wFMCommunicate OK [18:27:13]SAM_PROTO_GetFieldsCounters done [18:27:13]requested_item shift.num is exist - process it [18:27:13]requested_item shift.opened is exist - process it [18:27:13]req_shift_opened [18:27:13]FM_GetShiftState [18:27:13]SAM_PROTO_GetShiftState [18:27:13]wFMCommunicate request_size=4 [18:27:13]MH_SAM_APDU [18:27:13]CAPDU: 80 13 01 00 [18:27:13]Write to MH i2c: E2 08 00 DB 14 80 13 01 00 00 00 00 00 6C [18:27:13]Write i2c OK [18:27:13]MH_I2C_Read... [18:27:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:13]Read from MH i2c: E2 [18:27:13]MH_I2C_Read... [18:27:13]Read from MH i2c: E2 0E 00 [18:27:13]MH_I2C_Read... [18:27:13]Read from MH i2c: E2 0E 00 DB 14 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 F9 [18:27:13]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [18:27:13]wFMCommunicate OK [18:27:13]SAM_PROTO_GetShiftState done [18:27:13]FM_GetShiftState done [18:27:13]req_shift_opened done [18:27:13]requested_item shift.open_date is exist - process it [18:27:13]req_shift_open_date [18:27:13]req_shift_open_date done [18:27:13]produce_requested_data done [18:27:13]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118258,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [18:27:13]process_action_free close_receipt [18:27:13]json_value_free [18:27:13]json_value_free done [18:27:13]process_json_proto returns [18:27:13]Send response to host [18:27:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118258,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [18:27:13]free response buf [18:27:13]execute_script done [18:27:13]execute_script returns [18:27:13]free content buf [18:27:13]Sock 7.Close socket [18:27:13]Sock 7.Thread stoped [18:27:17]OFD Sender: No OFD packet to send [18:27:22]OFD Sender: No OFD packet to send [18:27:27]OFD Sender: No OFD packet to send [18:27:32]OFD Sender: No OFD packet to send [18:27:37]OFD Sender: No OFD packet to send [18:27:42]OFD Sender: No OFD packet to send [18:27:47]OFD Sender: No OFD packet to send [18:27:52]OFD Sender: No OFD packet to send [18:27:57]OFD Sender: No OFD packet to send [18:28:02]OFD Sender: No OFD packet to send [18:28:07]accept exits with 10 [18:28:07]New connection [18:28:07]New thread 3067096420 created [18:28:07]Thread 3066953060 joined [18:28:07]Waiting for new connection... [18:28:07] Sock 10.Parse request [18:28:07]Sock 10.Check first char [18:28:07]Sock 10.First char is OK [18:28:07]request: POST /json_proto HTTP/1.0 [18:28:07]Method: POST [18:28:07]URL: /json_proto [18:28:07]Method is POST - this is cgi request [18:28:07]url: /json_proto [18:28:07]query_string will be loaded in cgi processing [18:28:07]execute_cgi json_proto POST (null) [18:28:07]execute_cgi path=json_proto method=POST [18:28:07]POST find Content-Length [18:28:07]Host: 172.17.45.7:8080 [18:28:07]Content-Length: 1202 [18:28:07]Content-Type: application/json [18:28:07] [18:28:07]POST finish read [18:28:07]Found Content-Length = 1202 [18:28:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)949128\u000A27.07.2024 18:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 20.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 1356.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99834\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:28:07]execute_script... [18:28:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)949128\u000A27.07.2024 18:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 20.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 1356.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99834\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:28:07]POST & json_proto [18:28:07]process_json_proto [18:28:07]json parsed OK: [18:28:07]protocol is kg_v1.0 [18:28:07]action value=print_text [18:28:07]process_action print_text [18:28:07]cmd_print_text [18:28:07]ExternCall_PrintAddStr [18:28:07]wPrintStart [18:28:07]Write to MH i2c: 01 00 00 DC 14 F0 [18:28:07]Write i2c OK [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: 01 [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: 01 07 00 [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: 01 07 00 DC 14 00 00 00 00 00 FF 0F 05 [18:28:07]RasterBufferAndPrint [18:28:07]line *****ТОВАРНЫЙ ЧЕК***** [18:28:07]line АЗС-134 [18:28:07]line Партнер нефть [18:28:07]line 02508201610067 [18:28:07]line Кассир : Айдарали у Б. [18:28:07]line Счет N : (1)949128 [18:28:07]line 27.07.2024 18:26 [18:28:07]line ПРОДАЖА [18:28:07]line ТРК (МРК, ГНК): 61 [18:28:07]line Вид ГСМ : 2710124130 [18:28:07]line Аи-92-К-4 [18:28:07]line 20.000 x 67.80 [18:28:07]line ИТОГ: 1356.00 [18:28:07]line Тип оплаты: Талоны: Топливная Карта [18:28:07]line 99834 [18:28:07]line ______________________ [18:28:07]line (подпись) [18:28:07]written 0, free lines is 4095 [18:28:07]OFD Sender: No OFD packet to send [18:28:07]Write to MH i2c: 01 00 00 F0 14 04 [18:28:07]Write i2c OK [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: 01 [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: 01 07 00 [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: 01 07 00 F0 14 00 00 00 00 00 13 0E 2C [18:28:07]RasterBufferAndPrint [18:28:07]line [18:28:07]line [18:28:07]line [18:28:07]line [18:28:07]line [18:28:07]written 0, free lines is 3604 [18:28:07]MH_Cut [18:28:07]Write to MH i2c: D1 01 00 F7 14 01 DD [18:28:07]Write i2c OK [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: D1 [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: D1 01 00 [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: D1 01 00 F7 14 00 DC [18:28:07]Write to MH i2c: 01 00 00 F8 14 0C [18:28:07]Write i2c OK [18:28:07]MH_I2C_Read... [18:28:07]*** Cut start [18:28:07]*** Partial cut [18:28:07]*** CUTSNS_PIN = 1 [18:28:07]*** CUTSNS_PIN = 0 [18:28:08]*** Brake cut motor [18:28:08]Read from MH i2c: 01 [18:28:08]MH_I2C_Read... [18:28:08]*** Stop cut motor [18:28:08]*** Cut end [18:28:08]Read from MH i2c: 01 07 00 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: 01 07 00 F8 14 00 00 00 00 00 FF 0F 21 [18:28:08]process_action print_text done [18:28:08]requested_data is exist [18:28:08]produce_requested_data [18:28:08]requested_item fm.sn is exist - process it [18:28:08]wFMCommunicate request_size=4 [18:28:08]MH_SAM_APDU [18:28:08]CAPDU: 80 11 00 00 [18:28:08]Write to MH i2c: E2 08 00 F9 14 80 11 00 00 00 00 00 00 87 [18:28:08]Write i2c OK [18:28:08]MH_I2C_Read... [18:28:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:08]Read from MH i2c: E2 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 17 00 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 17 00 F9 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E2 [18:28:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:28:08]wFMCommunicate OK [18:28:08]requested_item fd.num is exist - process it [18:28:08]SAM_PROTO_GetFieldsCounters [18:28:08]wFMCommunicate request_size=4 [18:28:08]MH_SAM_APDU [18:28:08]CAPDU: 80 13 00 00 [18:28:08]Write to MH i2c: E2 08 00 FA 14 80 13 00 00 00 00 00 00 8A [18:28:08]Write i2c OK [18:28:08]MH_I2C_Read... [18:28:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:28:08]Read from MH i2c: E2 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 62 00 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 62 00 FA 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F2 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [18:28:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F2 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:28:08]wFMCommunicate OK [18:28:08]SAM_PROTO_GetFieldsCounters done [18:28:08]requested_item shift.num is exist - process it [18:28:08]requested_item shift.opened is exist - process it [18:28:08]req_shift_opened [18:28:08]FM_GetShiftState [18:28:08]SAM_PROTO_GetShiftState [18:28:08]wFMCommunicate request_size=4 [18:28:08]MH_SAM_APDU [18:28:08]CAPDU: 80 13 01 00 [18:28:08]Write to MH i2c: E2 08 00 FB 14 80 13 01 00 00 00 00 00 8C [18:28:08]Write i2c OK [18:28:08]MH_I2C_Read... [18:28:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:08]Read from MH i2c: E2 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 0E 00 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 0E 00 FB 14 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 19 [18:28:08]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [18:28:08]wFMCommunicate OK [18:28:08]SAM_PROTO_GetShiftState done [18:28:08]FM_GetShiftState done [18:28:08]req_shift_opened done [18:28:08]requested_item shift.open_date is exist - process it [18:28:08]req_shift_open_date [18:28:08]req_shift_open_date done [18:28:08]produce_requested_data done [18:28:08]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118258,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [18:28:08]process_action_free print_text [18:28:08]json_value_free [18:28:08]json_value_free done [18:28:08]process_json_proto returns [18:28:08]Send response to host [18:28:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118258,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [18:28:08]free response buf [18:28:08]execute_script done [18:28:08]execute_script returns [18:28:08]free content buf [18:28:08]Sock 10.Close socket [18:28:08]Sock 10.Thread stoped [18:28:12]OFD Sender: No OFD packet to send [18:28:17]OFD Sender: No OFD packet to send [18:28:22]OFD Sender: No OFD packet to send [18:28:27]OFD Sender: No OFD packet to send [18:28:32]OFD Sender: No OFD packet to send [18:28:37]OFD Sender: No OFD packet to send [18:28:42]OFD Sender: No OFD packet to send [18:28:47]OFD Sender: No OFD packet to send [18:28:52]OFD Sender: No OFD packet to send [18:28:57]OFD Sender: No OFD packet to send [18:29:02]OFD Sender: No OFD packet to send [18:29:07]OFD Sender: No OFD packet to send [18:29:12]OFD Sender: No OFD packet to send [18:29:17]OFD Sender: No OFD packet to send [18:29:22]OFD Sender: No OFD packet to send [18:29:27]OFD Sender: No OFD packet to send [18:29:32]OFD Sender: No OFD packet to send [18:29:37]OFD Sender: No OFD packet to send [18:29:42]OFD Sender: No OFD packet to send [18:29:47]OFD Sender: No OFD packet to send [18:29:52]OFD Sender: No OFD packet to send [18:29:57]OFD Sender: No OFD packet to send [18:30:02]OFD Sender: No OFD packet to send [18:30:07]OFD Sender: No OFD packet to send [18:30:12]OFD Sender: No OFD packet to send [18:30:17]OFD Sender: No OFD packet to send [18:30:22]OFD Sender: No OFD packet to send [18:30:27]OFD Sender: No OFD packet to send [18:30:32]OFD Sender: No OFD packet to send [18:30:37]OFD Sender: No OFD packet to send [18:30:42]OFD Sender: No OFD packet to send [18:30:47]OFD Sender: No OFD packet to send [18:30:52]OFD Sender: No OFD packet to send [18:30:57]OFD Sender: No OFD packet to send [18:31:02]OFD Sender: No OFD packet to send [18:31:07]OFD Sender: No OFD packet to send [18:31:12]OFD Sender: No OFD packet to send [18:31:17]OFD Sender: No OFD packet to send [18:31:22]OFD Sender: No OFD packet to send [18:31:27]OFD Sender: No OFD packet to send [18:31:32]OFD Sender: No OFD packet to send [18:31:37]OFD Sender: No OFD packet to send [18:31:42]OFD Sender: No OFD packet to send [18:31:47]OFD Sender: No OFD packet to send [18:31:52]OFD Sender: No OFD packet to send [18:31:57]OFD Sender: No OFD packet to send [18:32:02]OFD Sender: No OFD packet to send [18:32:07]OFD Sender: No OFD packet to send [18:32:12]OFD Sender: No OFD packet to send [18:32:17]OFD Sender: No OFD packet to send [18:32:22]OFD Sender: No OFD packet to send [18:32:27]OFD Sender: No OFD packet to send [18:32:32]OFD Sender: No OFD packet to send [18:32:37]OFD Sender: No OFD packet to send [18:32:42]OFD Sender: No OFD packet to send [18:32:47]OFD Sender: No OFD packet to send [18:32:52]OFD Sender: No OFD packet to send [18:32:57]OFD Sender: No OFD packet to send [18:33:02]OFD Sender: No OFD packet to send [18:33:07]OFD Sender: No OFD packet to send [18:33:12]OFD Sender: No OFD packet to send [18:33:17]OFD Sender: No OFD packet to send [18:33:22]OFD Sender: No OFD packet to send [18:33:27]OFD Sender: No OFD packet to send [18:33:32]OFD Sender: No OFD packet to send [18:33:37]OFD Sender: No OFD packet to send [18:33:42]OFD Sender: No OFD packet to send [18:33:47]OFD Sender: No OFD packet to send [18:33:52]OFD Sender: No OFD packet to send [18:33:57]OFD Sender: No OFD packet to send [18:34:02]OFD Sender: No OFD packet to send [18:34:07]OFD Sender: No OFD packet to send [18:34:12]OFD Sender: No OFD packet to send [18:34:17]OFD Sender: No OFD packet to send [18:34:22]OFD Sender: No OFD packet to send [18:34:27]OFD Sender: No OFD packet to send [18:34:32]OFD Sender: No OFD packet to send [18:34:37]OFD Sender: No OFD packet to send [18:34:42]OFD Sender: No OFD packet to send [18:34:47]OFD Sender: No OFD packet to send [18:34:52]OFD Sender: No OFD packet to send [18:34:57]OFD Sender: No OFD packet to send [18:35:02]OFD Sender: No OFD packet to send [18:35:07]OFD Sender: No OFD packet to send [18:35:12]OFD Sender: No OFD packet to send [18:35:17]OFD Sender: No OFD packet to send [18:35:22]OFD Sender: No OFD packet to send [18:35:27]OFD Sender: No OFD packet to send [18:35:32]OFD Sender: No OFD packet to send [18:35:37]OFD Sender: No OFD packet to send [18:35:42]OFD Sender: No OFD packet to send [18:35:47]OFD Sender: No OFD packet to send [18:35:52]OFD Sender: No OFD packet to send [18:35:57]OFD Sender: No OFD packet to send [18:36:02]OFD Sender: No OFD packet to send [18:36:07]OFD Sender: No OFD packet to send [18:36:12]OFD Sender: No OFD packet to send [18:36:17]OFD Sender: No OFD packet to send [18:36:22]OFD Sender: No OFD packet to send [18:36:27]OFD Sender: No OFD packet to send [18:36:32]OFD Sender: No OFD packet to send [18:36:37]OFD Sender: No OFD packet to send [18:36:42]OFD Sender: No OFD packet to send [18:36:47]OFD Sender: No OFD packet to send [18:36:52]OFD Sender: No OFD packet to send [18:36:57]OFD Sender: No OFD packet to send [18:37:02]OFD Sender: No OFD packet to send [18:37:07]OFD Sender: No OFD packet to send [18:37:12]OFD Sender: No OFD packet to send [18:37:17]OFD Sender: No OFD packet to send [18:37:22]OFD Sender: No OFD packet to send [18:37:27]OFD Sender: No OFD packet to send [18:37:32]OFD Sender: No OFD packet to send [18:37:37]OFD Sender: No OFD packet to send [18:37:42]OFD Sender: No OFD packet to send [18:37:47]OFD Sender: No OFD packet to send [18:37:52]OFD Sender: No OFD packet to send [18:37:57]OFD Sender: No OFD packet to send [18:38:02]OFD Sender: No OFD packet to send [18:38:07]OFD Sender: No OFD packet to send [18:38:12]OFD Sender: No OFD packet to send [18:38:17]OFD Sender: No OFD packet to send [18:38:22]OFD Sender: No OFD packet to send [18:38:27]OFD Sender: No OFD packet to send [18:38:32]OFD Sender: No OFD packet to send [18:38:37]OFD Sender: No OFD packet to send [18:38:42]accept exits with 7 [18:38:42]New connection [18:38:42]New thread 3066953060 created [18:38:42]Thread 3067096420 joined [18:38:42]Waiting for new connection... [18:38:42] Sock 7.Parse request [18:38:42]Sock 7.Check first char [18:38:42]Sock 7.First char is OK [18:38:42]request: POST /json_proto HTTP/1.0 [18:38:42]Method: POST [18:38:42]URL: /json_proto [18:38:42]Method is POST - this is cgi request [18:38:42]url: /json_proto [18:38:42]query_string will be loaded in cgi processing [18:38:42]execute_cgi json_proto POST (null) [18:38:42]execute_cgi path=json_proto method=POST [18:38:42]POST find Content-Length [18:38:42]Host: 172.17.45.7:8080 [18:38:42]Content-Length: 677 [18:38:42]Content-Type: application/json [18:38:42] [18:38:42]POST finish read [18:38:42]Found Content-Length = 677 [18:38:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:38:42]execute_script... [18:38: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)949131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:38:42]POST & json_proto [18:38:42]process_json_proto [18:38:42]json parsed OK: [18:38:42]protocol is kg_v1.0 [18:38:42]action value=close_receipt [18:38:42]process_action close_receipt [18:38:42]cmd_close_receipt [18:38:42]MH_GetDate [18:38:42]Write to MH i2c: F0 00 00 FC 14 FF [18:38:42]Write i2c OK [18:38:42]MH_I2C_Read... [18:38:42]Read from MH i2c: F0 [18:38:42]MH_I2C_Read... [18:38:42]Read from MH i2c: F0 09 00 [18:38:42]MH_I2C_Read... [18:38:42]Read from MH i2c: F0 09 00 FC 14 00 B3 3E A5 66 90 0F 3E 66 47 [18:38:42]GetLastDocTimeStamp 1722104830 [18:38:42]current date 1722105523 [18:38:42]FM_GetShiftState [18:38:42]SAM_PROTO_GetShiftState [18:38:42]wFMCommunicate request_size=4 [18:38:42]MH_SAM_APDU [18:38:42]CAPDU: 80 13 01 00 [18:38:42]Write to MH i2c: E2 08 00 FD 14 80 13 01 00 00 00 00 00 8E [18:38:42]Write i2c OK [18:38:42]MH_I2C_Read... [18:38:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:42]Read from MH i2c: E2 [18:38:42]MH_I2C_Read... [18:38:42]Read from MH i2c: E2 0E 00 [18:38:42]MH_I2C_Read... [18:38:42]Read from MH i2c: E2 0E 00 FD 14 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 1B [18:38:42]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [18:38:42]wFMCommunicate OK [18:38:42]SAM_PROTO_GetShiftState done [18:38:42]FM_GetShiftState done [18:38:42]opened in 1722038845 [18:38:42]opened+sec_in_day 1722125245 [18:38:42]quantity*price = 40002 [18:38:42]sum+1 = 40003 [18:38:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 202 27.07.2024 18:38 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118259 ФПД: 50171032203814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T183843&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118259&fm=50171032203814&tin=02508201610067®Number=0000000000092660&sum=40000 [18:38:43]StoreToDocumentArchive [18:38:43]shift 432 fd 118259 [18:38:43]save to /storage/0432/doc_00118259 [18:38:43]save last doc name /storage/0432/doc_00118259 to /storage/kkm_last_doc_name [18:38:43]save OK [18:38:43]Clear old archive folders... [18:38:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:38:43]tlvbuf is 01E33C20 [18:38:43]SAM_PROTO_ClearQueue [18:38:43]wFMCommunicate request_size=4 [18:38:43]MH_SAM_APDU [18:38:43]CAPDU: 80 09 00 00 [18:38:43]Write to MH i2c: E2 08 00 0A 15 80 09 00 00 00 00 00 00 91 [18:38:43]Write i2c OK [18:38:43]MH_I2C_Read... [18:38:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:38:43]Read from MH i2c: E2 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: E2 03 00 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: E2 03 00 0A 15 00 90 00 93 [18:38:43]RAPDU: 90 00 [18:38:43]wFMCommunicate OK [18:38:43]SAM_PROTO_ClearQueue done [18:38:43]KKMCreateOFDPacket [18:38:43]OFDProtocolAddRootSTLVToBuf [18:38:43]FM_MakeSignedData [18:38:43]FM_MakeSignedData [18:38:43]SAM_PROTO_SignData [18:38:43]wFMCommunicate request_size=4 [18:38:43]MH_SAM_APDU [18:38:43]CAPDU: 80 0D 01 02 [18:38:43]Write to MH i2c: E2 08 00 0B 15 80 0D 01 02 00 00 00 00 99 [18:38:43]Write i2c OK [18:38:43]MH_I2C_Read... [18:38:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:38:43]Read from MH i2c: E2 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: E2 03 00 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: E2 03 00 0B 15 00 90 00 94 [18:38:43]RAPDU: 90 00 [18:38:43]wFMCommunicate OK [18:38:43]wFMCommunicate request_size=255 [18:38:43]MH_SAM_APDU [18:38: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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 B3 3E A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F3 CD 01 00 35 04 06 00 2D [18:38:43]Write to MH i2c: E2 02 01 0C 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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 B3 3E A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F3 CD 01 00 35 04 06 00 2D 00 00 67 [18:38:43]Write i2c OK [18:38:43]MH_I2C_Read... [18:38:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:43]Read from MH i2c: E2 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: E2 03 00 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: E2 03 00 0C 15 00 90 00 95 [18:38:43]RAPDU: 90 00 [18:38:43]wFMCommunicate OK [18:38:43]wFMCommunicate request_size=10 [18:38:43]MH_SAM_APDU [18:38:43]CAPDU: 80 0D 02 02 05 A1 5A 8D 72 26 [18:38:43]Write to MH i2c: E2 0D 00 0D 15 80 0D 02 02 05 00 A1 5A 8D 72 26 00 00 C6 [18:38:43]Write i2c OK [18:38:43]MH_I2C_Read... [18:38:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:43]Read from MH i2c: E2 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: E2 03 00 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: E2 03 00 0D 15 00 90 00 96 [18:38:43]RAPDU: 90 00 [18:38:43]wFMCommunicate OK [18:38:43]wFMCommunicate request_size=4 [18:38:43]MH_SAM_APDU [18:38:43]CAPDU: 80 0D 03 02 [18:38:43]Write to MH i2c: E2 08 00 0E 15 80 0D 03 02 00 00 00 00 9E [18:38:43]Write i2c OK [18:38:43]MH_I2C_Read... [18:38:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:38:43]Read from MH i2c: E2 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: E2 0B 00 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: E2 0B 00 0E 15 00 CC 92 B3 CA 22 74 18 00 90 00 28 [18:38:43]RAPDU: CC 92 B3 CA 22 74 18 00 90 00 [18:38:43]wFMCommunicate OK [18:38:43]SAM_PROTO_SignData done [18:38:43]FM_MakeSignedData done [18:38:43]CreateOFDProtocolMessage [18:38:43]wFMCommunicate request_size=4 [18:38:43]MH_SAM_APDU [18:38:43]CAPDU: 80 11 00 00 [18:38:43]Write to MH i2c: E2 08 00 0F 15 80 11 00 00 00 00 00 00 9E [18:38:43]Write i2c OK [18:38:43]MH_I2C_Read... [18:38:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:43]Read from MH i2c: E2 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: E2 17 00 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: E2 17 00 0F 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F9 [18:38:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:38:43]wFMCommunicate OK [18:38:43]CreateOFDProtocolMessage done [18:38:43]OFDSenderStorePacket 118259 [18:38:43]StoreOFDPacket docnum=118259 [18:38:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 75 28 07 01 76 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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 B3 3E A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F3 CD 01 00 35 04 06 00 2D A1 5A 8D 72 26 CC 92 B3 CA 22 74 18 00 [18:38:43]CheckFolder [18:38:43]dirname=/storage/ofd_packets [18:38:43]CheckFolder done [18:38:43]ProducePacketName [18:38:43]name=ofd_packets/00118259 [18:38:43]NVStorageSaveData ofd_packets/00118259 [18:38:43]File name is /storage/ofd_packets/00118259 [18:38:43]Write 301 bytes [18:38:43]NVStorageSaveData done [18:38:43]OFDSenderStorePacket done [18:38:43]KKMCreateOFDPacket done [18:38:43]NVStorageSaveData kkm_last_timestamp [18:38:43]File name is /storage/kkm_last_timestamp [18:38:43]Write 4 bytes [18:38:43]NVStorageSaveData done [18:38:43]OFD Sender: Processing packet 118259 [packets to send 86, broken 85] [18:38:43]ProducePacketName [18:38:43]name=ofd_packets/00118259 [18:38:43]OFD Sender: To server: pG, [18:38:43]CommunicateWithHost lk.salyk.kg:30040 [18:38:43]ConnectInit lk.salyk.kg [18:38:43]ExternCall_PrintAddStr [18:38:43]wPrintStart [18:38:43]Write to MH i2c: 01 00 00 10 15 25 [18:38:43]Write i2c OK [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: 01 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: 01 07 00 [18:38:43]MH_I2C_Read... [18:38:43]Read from MH i2c: 01 07 00 10 15 00 00 00 00 00 FF 0F 3A [18:38:43]RasterBufferAndPrint [18:38:43]line Счет N : (1)949131 [18:38:43]line ИНН: 02508201610067 [18:38:43]line Контрольно-Кассовый Чек [18:38:43]line ПРОДАЖА [18:38:43]line ТРК (МРК, ГНК) : 51 [18:38:43]line Товар: 2710124130 [18:38:43]line Аи-92-К-4 [18:38:43]line 5.900 * 67.80 [18:38:43]line = 400.02 [18:38:43]line НДС 12% НСП 1% [18:38:43]line > о реализуемом товаре [18:38:43]line ОКРУГЛЕНИЕ: -0.02 [18:38:43]line ИТОГО: 400.00 [18:38:43]line Внесено: 400.00 [18:38:43]line СДАЧА: 0.00 [18:38:43]line НСП 1% : 3.54 [18:38:43]line НДС 12% : 42.48 [18:38:43]line Наличными: 400.00 [18:38:43]line Безнал.: 0.00 [18:38:43]line Место: АЗС № 134 "Партнер Нефть" [18:38:43]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:38:43]line СНО: Общий режим [18:38:43]line Чек 202 27.07.2024 18:38 [18:38:43]line Смена: 432 ФФД: 1.0 [18:38:43]line ЗНМ: 0300000044 [18:38:43]line РНМ: 0000000000092660 [18:38:43]line Версия ККМ: 001 [18:38:43]line ФМ: 0000000000874939 [18:38:43]line ФД: 118259 [18:38:43]line ФПД: 50171032203814 [18:38:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T183843&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118259&fm=50171032203814&tin=02508201610067®Number=0000000000092660&sum=40000 [18:38:44]Connected sock=11 [18:38:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 75 28 07 01 76 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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 B3 3E A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F3 CD 01 00 35 04 06 00 2D A1 5A 8D 72 26 CC 92 B3 CA 22 74 18 00 [18:38:44]written 0, free lines is 4095 [18:38:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B4 38 47 00 55 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F3 CD 01 00 F4 03 04 00 45 EC A4 66 B6 04 01 00 00 D6 BC 45 B1 13 06 3F C1 [18:38:44]CommunicateWithHost err = 0 [18:38:44]CheckOFDResponse [18:38:44]1017 (14) - 77093643461234 [18:38:44]1041 (16) - 0000000000874939 [18:38:44]1040 (4) - 118259 [18:38:44]1012 (4) - 27.07.2024 12:47 [18:38:44]1206 (1) - 0 [18:38:44]OFD Sender: Remove packet 118259 [18:38:44]ProducePacketName [18:38:44]name=ofd_packets/00118259 [18:38:44]NVStorageDeleteData [18:38:44]Write to MH i2c: 01 00 00 3A 15 4F [18:38:44]Write i2c OK [18:38:44]MH_I2C_Read... [18:38:44]Read from MH i2c: 01 [18:38:44]MH_I2C_Read... [18:38:44]Read from MH i2c: 01 07 00 [18:38:44]MH_I2C_Read... [18:38:44]Read from MH i2c: 01 07 00 3A 15 00 00 00 00 00 DC 0C 3E [18:38:44]RasterBufferAndPrint [18:38:44]line [18:38:44]line [18:38:44]line [18:38:44]line [18:38:44]line [18:38:44]written 0, free lines is 3298 [18:38:44]MH_Cut [18:38:44]Write to MH i2c: D1 01 00 41 15 01 28 [18:38:44]Write i2c OK [18:38:44]MH_I2C_Read... [18:38:44]Read from MH i2c: D1 [18:38:44]MH_I2C_Read... [18:38:44]Read from MH i2c: D1 01 00 [18:38:44]MH_I2C_Read... [18:38:44]Read from MH i2c: D1 01 00 41 15 00 27 [18:38:44]Write to MH i2c: 01 00 00 42 15 57 [18:38:44]Write i2c OK [18:38:44]MH_I2C_Read... [18:38:44]OFD Sender: No OFD packet to send [18:38:45]*** Cut start [18:38:45]*** Partial cut [18:38:45]*** CUTSNS_PIN = 1 [18:38:45]*** CUTSNS_PIN = 0 [18:38:45]*** Brake cut motor [18:38:45]Read from MH i2c: 01 [18:38:45]MH_I2C_Read... [18:38:45]*** Stop cut motor [18:38:45]*** Cut end [18:38:45]Read from MH i2c: 01 07 00 [18:38:45]MH_I2C_Read... [18:38:45]Read from MH i2c: 01 07 00 42 15 00 00 00 00 00 FF 0F 6C [18:38:45]process_action close_receipt done [18:38:45]requested_data is exist [18:38:45]produce_requested_data [18:38:45]requested_item fm.sn is exist - process it [18:38:45]wFMCommunicate request_size=4 [18:38:45]MH_SAM_APDU [18:38:45]CAPDU: 80 11 00 00 [18:38:45]Write to MH i2c: E2 08 00 43 15 80 11 00 00 00 00 00 00 D2 [18:38:45]Write i2c OK [18:38:45]MH_I2C_Read... [18:38:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:46]Read from MH i2c: E2 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: E2 17 00 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: E2 17 00 43 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2D [18:38:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:38:46]wFMCommunicate OK [18:38:46]requested_item fd.num is exist - process it [18:38:46]SAM_PROTO_GetFieldsCounters [18:38:46]wFMCommunicate request_size=4 [18:38:46]MH_SAM_APDU [18:38:46]CAPDU: 80 13 00 00 [18:38:46]Write to MH i2c: E2 08 00 44 15 80 13 00 00 00 00 00 00 D5 [18:38:46]Write i2c OK [18:38:46]MH_I2C_Read... [18:38:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:38:46]Read from MH i2c: E2 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: E2 62 00 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: E2 62 00 44 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F3 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [18:38:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F3 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:38:46]wFMCommunicate OK [18:38:46]SAM_PROTO_GetFieldsCounters done [18:38:46]requested_item shift.num is exist - process it [18:38:46]requested_item shift.opened is exist - process it [18:38:46]req_shift_opened [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 45 15 80 13 01 00 00 00 00 00 D7 [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 45 15 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 64 [18:38:46]RAPDU: 09 00 01 3D 3A A4 66 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]req_shift_opened done [18:38:46]requested_item shift.open_date is exist - process it [18:38:46]req_shift_open_date [18:38:46]req_shift_open_date done [18:38:46]produce_requested_data done [18:38:46]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118259,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [18:38:46]process_action_free close_receipt [18:38:46]json_value_free [18:38:46]json_value_free done [18:38:46]process_json_proto returns [18:38:46]Send response to host [18:38:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118259,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [18:38:46]free response buf [18:38:46]execute_script done [18:38:46]execute_script returns [18:38:46]free content buf [18:38:46]Sock 7.Close socket [18:38:46]Sock 7.Thread stoped [18:38:49]accept exits with 9 [18:38:49]New connection [18:38:49]New thread 3067096420 created [18:38:49]Thread 3066953060 joined [18:38:49]Waiting for new connection... [18:38:49] Sock 9.Parse request [18:38:49]Sock 9.Check first char [18:38:49]Sock 9.First char is OK [18:38:49]request: POST /json_proto HTTP/1.0 [18:38:49]Method: POST [18:38:49]URL: /json_proto [18:38:49]Method is POST - this is cgi request [18:38:49]url: /json_proto [18:38:49]query_string will be loaded in cgi processing [18:38:49]execute_cgi json_proto POST (null) [18:38:49]execute_cgi path=json_proto method=POST [18:38:49]POST find Content-Length [18:38:49]Host: 172.17.45.7:8080 [18:38:49]Content-Length: 1208 [18:38:49]Content-Type: application/json [18:38:49] [18:38:49]POST finish read [18:38:49]Found Content-Length = 1208 [18:38:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)949130\u000A27.07.2024 18:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3988658\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:49]execute_script... [18:38:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)949130\u000A27.07.2024 18:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3988658\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:49]POST & json_proto [18:38:49]process_json_proto [18:38:49]json parsed OK: [18:38:49]protocol is kg_v1.0 [18:38:49]action value=print_text [18:38:49]process_action print_text [18:38:49]cmd_print_text [18:38:49]ExternCall_PrintAddStr [18:38:49]wPrintStart [18:38:49]Write to MH i2c: 01 00 00 46 15 5B [18:38:49]Write i2c OK [18:38:49]MH_I2C_Read... [18:38:49]Read from MH i2c: 01 [18:38:49]MH_I2C_Read... [18:38:49]Read from MH i2c: 01 07 00 [18:38:49]MH_I2C_Read... [18:38:49]Read from MH i2c: 01 07 00 46 15 00 00 00 00 00 FF 0F 70 [18:38:49]RasterBufferAndPrint [18:38:49]line *****ТОВАРНЫЙ ЧЕК***** [18:38:49]line АЗС-134 [18:38:49]line Партнер нефть [18:38:49]line 02508201610067 [18:38:49]line Кассир : Айдарали у Б. [18:38:49]line Счет N : (1)949130 [18:38:49]line 27.07.2024 18:37 [18:38:49]line ПРОДАЖА [18:38:49]line ТРК (МРК, ГНК): 11 [18:38:49]line Вид ГСМ : 2710194800 [18:38:49]line ДТ-К-5 [18:38:49]line 100.000 x 76.20 [18:38:49]line ИТОГ: 7620.00 [18:38:49]line Тип оплаты: Талоны: Топливные Талоны [18:38:49]line 3988658 [18:38:49]line ______________________ [18:38:49]line (подпись) [18:38:49]written 0, free lines is 4095 [18:38:49]Write to MH i2c: 01 00 00 5A 15 6F [18:38:49]Write i2c OK [18:38:49]MH_I2C_Read... [18:38:49]Read from MH i2c: 01 [18:38:49]MH_I2C_Read... [18:38:49]Read from MH i2c: 01 07 00 [18:38:49]MH_I2C_Read... [18:38:49]Read from MH i2c: 01 07 00 5A 15 00 00 00 00 00 11 0E 95 [18:38:49]RasterBufferAndPrint [18:38:49]line [18:38:49]line [18:38:49]line [18:38:49]line [18:38:49]line [18:38:49]written 0, free lines is 3604 [18:38:49]MH_Cut [18:38:49]Write to MH i2c: D1 01 00 61 15 01 48 [18:38:49]Write i2c OK [18:38:49]MH_I2C_Read... [18:38:49]Read from MH i2c: D1 [18:38:49]MH_I2C_Read... [18:38:49]Read from MH i2c: D1 01 00 [18:38:49]MH_I2C_Read... [18:38:49]Read from MH i2c: D1 01 00 61 15 00 47 [18:38:49]Write to MH i2c: 01 00 00 62 15 77 [18:38:49]Write i2c OK [18:38:49]MH_I2C_Read... [18:38:49]OFD Sender: No OFD packet to send [18:38:50]*** Cut start [18:38:50]*** Partial cut [18:38:50]*** CUTSNS_PIN = 1 [18:38:50]*** CUTSNS_PIN = 0 [18:38:50]*** 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 62 15 00 00 00 00 00 FF 0F 8C [18:38:50]process_action print_text 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 63 15 80 11 00 00 00 00 00 00 F2 [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 63 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4D [18:38:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 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 64 15 80 13 00 00 00 00 00 00 F5 [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 64 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F3 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F3 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 65 15 80 13 01 00 00 00 00 00 F7 [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 65 15 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 84 [18:38:50]RAPDU: 09 00 01 3D 3A A4 66 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":"0000000000874939","fd.num":118259,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [18:38:50]process_action_free print_text [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":"0000000000874939","fd.num":118259,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [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:29]OFD Sender: No OFD packet to send [18:39:34]OFD Sender: No OFD packet to send [18:39:39]OFD Sender: No OFD packet to send [18:39:44]OFD Sender: No OFD packet to send [18:39:49]OFD Sender: No OFD packet to send [18:39:54]OFD Sender: No OFD packet to send [18:39:59]OFD Sender: No OFD packet to send [18:40:04]OFD Sender: No OFD packet to send [18:40:09]OFD Sender: No OFD packet to send [18:40:15]OFD Sender: No OFD packet to send [18:40:20]OFD Sender: No OFD packet to send [18:40:25]OFD Sender: No OFD packet to send [18:40:30]OFD Sender: No OFD packet to send [18:40:35]OFD Sender: No OFD packet to send [18:40:36]accept exits with 7 [18:40:36]New connection [18:40:36]New thread 3066953060 created [18:40:36]Thread 3067096420 joined [18:40:36]Waiting for new connection... [18:40:36] Sock 7.Parse request [18:40:36]Sock 7.Check first char [18:40:36]Sock 7.First char is OK [18:40:36]request: POST /json_proto HTTP/1.0 [18:40:36]Method: POST [18:40:36]URL: /json_proto [18:40:36]Method is POST - this is cgi request [18:40:36]url: /json_proto [18:40:36]query_string will be loaded in cgi processing [18:40:36]execute_cgi json_proto POST (null) [18:40:36]execute_cgi path=json_proto method=POST [18:40:36]POST find Content-Length [18:40:36]Host: 172.17.45.7:8080 [18:40:36]Content-Length: 1207 [18:40:36]Content-Type: application/json [18:40:36] [18:40:36]POST finish read [18:40:36]Found Content-Length = 1207 [18:40:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)949132\u000A27.07.2024 18:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 3810.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3983111\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:36]execute_script... [18:40:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)949132\u000A27.07.2024 18:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 3810.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3983111\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:36]POST & json_proto [18:40:36]process_json_proto [18:40:36]json parsed OK: [18:40:36]protocol is kg_v1.0 [18:40:36]action value=print_text [18:40:36]process_action print_text [18:40:36]cmd_print_text [18:40:36]ExternCall_PrintAddStr [18:40:36]wPrintStart [18:40:36]Write to MH i2c: 01 00 00 66 15 7B [18:40:36]Write i2c OK [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: 01 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: 01 07 00 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: 01 07 00 66 15 00 00 00 00 00 FF 0F 90 [18:40:36]RasterBufferAndPrint [18:40:36]line *****ТОВАРНЫЙ ЧЕК***** [18:40:36]line АЗС-134 [18:40:36]line Партнер нефть [18:40:36]line 02508201610067 [18:40:36]line Кассир : Айдарали у Б. [18:40:36]line Счет N : (1)949132 [18:40:36]line 27.07.2024 18:38 [18:40:36]line ПРОДАЖА [18:40:36]line ТРК (МРК, ГНК): 11 [18:40:36]line Вид ГСМ : 2710194800 [18:40:36]line ДТ-К-5 [18:40:36]line 50.000 x 76.20 [18:40:36]line ИТОГ: 3810.00 [18:40:36]line Тип оплаты: Талоны: Топливные Талоны [18:40:36]line 3983111 [18:40:36]line ______________________ [18:40:36]line (подпись) [18:40:36]written 0, free lines is 4095 [18:40:37]Write to MH i2c: 01 00 00 7A 15 8F [18:40:37]Write i2c OK [18:40:37]MH_I2C_Read... [18:40:37]Read from MH i2c: 01 [18:40:37]MH_I2C_Read... [18:40:37]Read from MH i2c: 01 07 00 [18:40:37]MH_I2C_Read... [18:40:37]Read from MH i2c: 01 07 00 7A 15 00 00 00 00 00 11 0E B5 [18:40:37]RasterBufferAndPrint [18:40:37]line [18:40:37]line [18:40:37]line [18:40:37]line [18:40:37]line [18:40:37]written 0, free lines is 3603 [18:40:37]MH_Cut [18:40:37]Write to MH i2c: D1 01 00 81 15 01 68 [18:40:37]Write i2c OK [18:40:37]MH_I2C_Read... [18:40:37]Read from MH i2c: D1 [18:40:37]MH_I2C_Read... [18:40:37]Read from MH i2c: D1 01 00 [18:40:37]MH_I2C_Read... [18:40:37]Read from MH i2c: D1 01 00 81 15 00 67 [18:40:37]Write to MH i2c: 01 00 00 82 15 97 [18:40:37]Write i2c OK [18:40:37]MH_I2C_Read... [18:40:37]*** Cut start [18:40:37]*** Partial cut [18:40:37]*** CUTSNS_PIN = 1 [18:40:37]*** CUTSNS_PIN = 0 [18:40:37]*** Brake cut motor [18:40:38]Read from MH i2c: 01 [18:40:38]MH_I2C_Read... [18:40:38]*** Stop cut motor [18:40:38]*** Cut end [18:40:38]Read from MH i2c: 01 07 00 [18:40:38]MH_I2C_Read... [18:40:38]Read from MH i2c: 01 07 00 82 15 00 00 00 00 00 FF 0F AC [18:40:38]process_action print_text done [18:40:38]requested_data is exist [18:40:38]produce_requested_data [18:40:38]requested_item fm.sn is exist - process it [18:40:38]wFMCommunicate request_size=4 [18:40:38]MH_SAM_APDU [18:40:38]CAPDU: 80 11 00 00 [18:40:38]Write to MH i2c: E2 08 00 83 15 80 11 00 00 00 00 00 00 12 [18:40:38]Write i2c OK [18:40:38]MH_I2C_Read... [18:40:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:38]Read from MH i2c: E2 [18:40:38]MH_I2C_Read... [18:40:38]Read from MH i2c: E2 17 00 [18:40:38]MH_I2C_Read... [18:40:38]Read from MH i2c: E2 17 00 83 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6D [18:40:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:40:38]wFMCommunicate OK [18:40:38]requested_item fd.num is exist - process it [18:40:38]SAM_PROTO_GetFieldsCounters [18:40:38]wFMCommunicate request_size=4 [18:40:38]MH_SAM_APDU [18:40:38]CAPDU: 80 13 00 00 [18:40:38]Write to MH i2c: E2 08 00 84 15 80 13 00 00 00 00 00 00 15 [18:40:38]Write i2c OK [18:40:38]MH_I2C_Read... [18:40:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:40:38]Read from MH i2c: E2 [18:40:38]MH_I2C_Read... [18:40:38]Read from MH i2c: E2 62 00 [18:40:38]MH_I2C_Read... [18:40:38]Read from MH i2c: E2 62 00 84 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F3 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [18: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F3 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:40:38]wFMCommunicate OK [18:40:38]SAM_PROTO_GetFieldsCounters done [18:40:38]requested_item shift.num is exist - process it [18:40:38]requested_item shift.opened is exist - process it [18:40:38]req_shift_opened [18:40:38]FM_GetShiftState [18:40:38]SAM_PROTO_GetShiftState [18:40:38]wFMCommunicate request_size=4 [18:40:38]MH_SAM_APDU [18:40:38]CAPDU: 80 13 01 00 [18:40:38]Write to MH i2c: E2 08 00 85 15 80 13 01 00 00 00 00 00 17 [18:40:38]Write i2c OK [18:40:38]MH_I2C_Read... [18:40:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:38]Read from MH i2c: E2 [18:40:38]MH_I2C_Read... [18:40:38]Read from MH i2c: E2 0E 00 [18:40:38]MH_I2C_Read... [18:40:38]Read from MH i2c: E2 0E 00 85 15 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 A4 [18:40:38]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [18:40:38]wFMCommunicate OK [18:40:38]SAM_PROTO_GetShiftState done [18:40:38]FM_GetShiftState done [18:40:38]req_shift_opened done [18:40:38]requested_item shift.open_date is exist - process it [18:40:38]req_shift_open_date [18:40:38]req_shift_open_date done [18:40:38]produce_requested_data done [18:40:38]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118259,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [18:40:38]process_action_free print_text [18:40:38]json_value_free [18:40:38]json_value_free done [18:40:38]process_json_proto returns [18:40:38]Send response to host [18:40:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118259,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [18:40:38]free response buf [18:40:38]execute_script done [18:40:38]execute_script returns [18:40:38]free content buf [18:40:38]Sock 7.Close socket [18:40:38]Sock 7.Thread stoped [18:40:40]OFD Sender: No OFD packet to send [18:40:45]OFD Sender: No OFD packet to send [18:40:50]OFD Sender: No OFD packet to send [18:40:55]OFD Sender: No OFD packet to send [18:41:00]OFD Sender: No OFD packet to send [18:41:05]OFD Sender: No OFD packet to send [18:41:10]OFD Sender: No OFD packet to send [18:41:15]OFD Sender: No OFD packet to send [18:41:20]OFD Sender: No OFD packet to send [18:41:25]OFD Sender: No OFD packet to send [18:41:30]OFD Sender: No OFD packet to send [18:41:35]OFD Sender: No OFD packet to send [18:41:40]OFD Sender: No OFD packet to send [18:41:45]OFD Sender: No OFD packet to send [18:41:50]OFD Sender: No OFD packet to send [18:41:55]OFD Sender: No OFD packet to send [18:42:00]OFD Sender: No OFD packet to send [18:42:05]OFD Sender: No OFD packet to send [18:42:10]OFD Sender: No OFD packet to send [18:42:11]accept exits with 10 [18:42:11]New connection [18:42:11]New thread 3067096420 created [18:42:11]Thread 3066953060 joined [18:42:11]Waiting for new connection... [18:42:11] Sock 10.Parse request [18:42:11]Sock 10.Check first char [18:42:11]Sock 10.First char is OK [18:42:11]request: POST /json_proto HTTP/1.0 [18:42:11]Method: POST [18:42:11]URL: /json_proto [18:42:11]Method is POST - this is cgi request [18:42:11]url: /json_proto [18:42:11]query_string will be loaded in cgi processing [18:42:11]execute_cgi json_proto POST (null) [18:42:11]execute_cgi path=json_proto method=POST [18:42:11]POST find Content-Length [18:42:11]Host: 172.17.45.7:8080 [18:42:11]Content-Length: 834 [18:42:11]Content-Type: application/json [18:42:11] [18:42:11]POST finish read [18:42:11]Found Content-Length = 834 [18:42:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.20, "quantity" : 4.470, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 300.00, "payments": [ { "type": 1, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:11]execute_script... [18:42: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)949133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.20, "quantity" : 4.470, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 300.00, "payments": [ { "type": 1, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:11]POST & json_proto [18:42:11]process_json_proto [18:42:11]json parsed OK: [18:42:11]protocol is kg_v1.0 [18:42:11]action value=close_receipt [18:42:11]process_action close_receipt [18:42:11]cmd_close_receipt [18:42:11]MH_GetDate [18:42:11]Write to MH i2c: F0 00 00 86 15 8A [18:42:11]Write i2c OK [18:42:11]MH_I2C_Read... [18:42:11]Read from MH i2c: F0 [18:42:11]MH_I2C_Read... [18:42:11]Read from MH i2c: F0 09 00 [18:42:11]MH_I2C_Read... [18:42:11]Read from MH i2c: F0 09 00 86 15 00 84 3F A5 66 90 0F 3E 66 A4 [18:42:11]GetLastDocTimeStamp 1722105523 [18:42:11]current date 1722105732 [18:42:11]FM_GetShiftState [18:42:11]SAM_PROTO_GetShiftState [18:42:11]wFMCommunicate request_size=4 [18:42:11]MH_SAM_APDU [18:42:11]CAPDU: 80 13 01 00 [18:42:11]Write to MH i2c: E2 08 00 87 15 80 13 01 00 00 00 00 00 19 [18:42:11]Write i2c OK [18:42:11]MH_I2C_Read... [18:42:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:11]Read from MH i2c: E2 [18:42:11]MH_I2C_Read... [18:42:11]Read from MH i2c: E2 0E 00 [18:42:11]MH_I2C_Read... [18:42:11]Read from MH i2c: E2 0E 00 87 15 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 A6 [18:42:11]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [18:42:11]wFMCommunicate OK [18:42:11]SAM_PROTO_GetShiftState done [18:42:11]FM_GetShiftState done [18:42:11]opened in 1722038845 [18:42:11]opened+sec_in_day 1722125245 [18:42:11]quantity*price = 30038 [18:42:11]sum+1 = 30039 [18:42:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 203 27.07.2024 18:42 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874939 ФД: 118260 ФПД: 78533504665890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T184212&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118260&fm=78533504665890&tin=02508201610067®Number=0000000000092660&sum=30000 [18:42:13]StoreToDocumentArchive [18:42:13]shift 432 fd 118260 [18:42:13]save to /storage/0432/doc_00118260 [18:42:13]save last doc name /storage/0432/doc_00118260 to /storage/kkm_last_doc_name [18:42:13]save OK [18:42:13]Clear old archive folders... [18:42:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:42:13]tlvbuf is 01E283C0 [18:42:13]SAM_PROTO_ClearQueue [18:42:13]wFMCommunicate request_size=4 [18:42:13]MH_SAM_APDU [18:42:13]CAPDU: 80 09 00 00 [18:42:13]Write to MH i2c: E2 08 00 94 15 80 09 00 00 00 00 00 00 1B [18:42:13]Write i2c OK [18:42:13]MH_I2C_Read... [18:42:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:42:13]Read from MH i2c: E2 [18:42:13]MH_I2C_Read... [18:42:13]Read from MH i2c: E2 03 00 [18:42:13]MH_I2C_Read... [18:42:13]Read from MH i2c: E2 03 00 94 15 00 90 00 1D [18:42:13]RAPDU: 90 00 [18:42:13]wFMCommunicate OK [18:42:13]SAM_PROTO_ClearQueue done [18:42:13]KKMCreateOFDPacket [18:42:13]OFDProtocolAddRootSTLVToBuf [18:42:13]FM_MakeSignedData [18:42:13]FM_MakeSignedData [18:42:13]SAM_PROTO_SignData [18:42:13]wFMCommunicate request_size=4 [18:42:13]MH_SAM_APDU [18:42:13]CAPDU: 80 0D 01 02 [18:42:13]Write to MH i2c: E2 08 00 95 15 80 0D 01 02 00 00 00 00 23 [18:42:13]Write i2c OK [18:42:13]MH_I2C_Read... [18:42:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:42:13]Read from MH i2c: E2 [18:42:13]MH_I2C_Read... [18:42:13]Read from MH i2c: E2 03 00 [18:42:13]MH_I2C_Read... [18:42:13]Read from MH i2c: E2 03 00 95 15 00 90 00 1E [18:42:13]RAPDU: 90 00 [18:42:13]wFMCommunicate OK [18:42:13]wFMCommunicate request_size=255 [18:42:13]MH_SAM_APDU [18:42: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 34 FF 03 08 00 03 76 11 00 00 00 00 00 37 04 06 00 40 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 84 3F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F4 CD 01 00 35 04 06 00 47 [18:42:13]Write to MH i2c: E2 02 01 96 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 34 FF 03 08 00 03 76 11 00 00 00 00 00 37 04 06 00 40 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 84 3F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F4 CD 01 00 35 04 06 00 47 00 00 08 [18:42:13]Write i2c OK [18:42:13]MH_I2C_Read... [18:42:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:13]Read from MH i2c: E2 [18:42:13]MH_I2C_Read... [18:42:13]Read from MH i2c: E2 03 00 [18:42:13]MH_I2C_Read... [18:42:13]Read from MH i2c: E2 03 00 96 15 00 90 00 1F [18:42:13]RAPDU: 90 00 [18:42:13]wFMCommunicate OK [18:42:13]wFMCommunicate request_size=10 [18:42:13]MH_SAM_APDU [18:42:13]CAPDU: 80 0D 02 02 05 6D 01 A6 09 22 [18:42:13]Write to MH i2c: E2 0D 00 97 15 80 0D 02 02 05 00 6D 01 A6 09 22 00 00 6F [18:42:13]Write i2c OK [18:42:13]MH_I2C_Read... [18:42:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:13]Read from MH i2c: E2 [18:42:13]MH_I2C_Read... [18:42:13]Read from MH i2c: E2 03 00 [18:42:13]MH_I2C_Read... [18:42:13]Read from MH i2c: E2 03 00 97 15 00 90 00 20 [18:42:13]RAPDU: 90 00 [18:42:13]wFMCommunicate OK [18:42:13]wFMCommunicate request_size=4 [18:42:13]MH_SAM_APDU [18:42:13]CAPDU: 80 0D 03 02 [18:42:13]Write to MH i2c: E2 08 00 98 15 80 0D 03 02 00 00 00 00 28 [18:42:13]Write i2c OK [18:42:13]MH_I2C_Read... [18:42:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:42:13]Read from MH i2c: E2 [18:42:13]MH_I2C_Read... [18:42:13]Read from MH i2c: E2 0B 00 [18:42:13]MH_I2C_Read... [18:42:13]Read from MH i2c: E2 0B 00 98 15 00 4C A7 E7 08 94 F7 7C B7 90 00 C9 [18:42:13]RAPDU: 4C A7 E7 08 94 F7 7C B7 90 00 [18:42:13]wFMCommunicate OK [18:42:13]SAM_PROTO_SignData done [18:42:13]FM_MakeSignedData done [18:42:13]CreateOFDProtocolMessage [18:42:13]wFMCommunicate request_size=4 [18:42:13]MH_SAM_APDU [18:42:13]CAPDU: 80 11 00 00 [18:42:13]Write to MH i2c: E2 08 00 99 15 80 11 00 00 00 00 00 00 28 [18:42:13]Write i2c OK [18:42:13]MH_I2C_Read... [18:42:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:13]Read from MH i2c: E2 [18:42:13]MH_I2C_Read... [18:42:13]Read from MH i2c: E2 17 00 [18:42:13]MH_I2C_Read... [18:42:13]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 34 39 33 39 90 00 83 [18:42:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:42:13]wFMCommunicate OK [18:42:13]CreateOFDProtocolMessage done [18:42:13]OFDSenderStorePacket 118260 [18:42:13]StoreOFDPacket docnum=118260 [18:42:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 3A 1C 07 01 F9 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 34 FF 03 08 00 03 76 11 00 00 00 00 00 37 04 06 00 40 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 84 3F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F4 CD 01 00 35 04 06 00 47 6D 01 A6 09 22 4C A7 E7 08 94 F7 7C B7 [18:42:13]CheckFolder [18:42:13]dirname=/storage/ofd_packets [18:42:13]CheckFolder done [18:42:13]ProducePacketName [18:42:13]name=ofd_packets/00118260 [18:42:13]NVStorageSaveData ofd_packets/00118260 [18:42:13]File name is /storage/ofd_packets/00118260 [18:42:13]Write 301 bytes [18:42:13]NVStorageSaveData done [18:42:13]OFDSenderStorePacket done [18:42:13]KKMCreateOFDPacket done [18:42:13]NVStorageSaveData kkm_last_timestamp [18:42:13]File name is /storage/kkm_last_timestamp [18:42:13]Write 4 bytes [18:42:13]NVStorageSaveData done [18:42:13]ExternCall_PrintAddStr [18:42:13]wPrintStart [18:42:13]Write to MH i2c: 01 00 00 9A 15 AF [18:42:13]Write i2c OK [18:42:13]MH_I2C_Read... [18:42:13]Read from MH i2c: 01 [18:42:13]MH_I2C_Read... [18:42:13]Read from MH i2c: 01 07 00 [18:42:13]MH_I2C_Read... [18:42:13]Read from MH i2c: 01 07 00 9A 15 00 00 00 00 00 FF 0F C4 [18:42:13]RasterBufferAndPrint [18:42:13]line Счет N : (1)949133 [18:42:13]line ИНН: 02508201610067 [18:42:13]line Контрольно-Кассовый Чек [18:42:13]line ПРОДАЖА [18:42:13]line ТРК (МРК, ГНК) : 41 [18:42:13]line Товар: 2710124130 [18:42:13]line Аи-92-К-4 [18:42:13]line 4.470 * 67.20 [18:42:13]line = 300.38 [18:42:13]line НДС 12% НСП 1% [18:42:13]line > о реализуемом товаре [18:42:13]line ОКРУГЛЕНИЕ: -0.38 [18:42:13]line ИТОГО: 300.00 [18:42:13]line НСП 1% : 2.66 [18:42:13]line НДС 12% : 31.90 [18:42:13]line Наличными: 0.00 [18:42:13]line Безнал.: 300.00 [18:42:13]line Место: АЗС № 134 "Партнер Нефть" [18:42:13]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:42:13]line СНО: Общий режим [18:42:13]line Чек 203 27.07.2024 18:42 [18:42:13]line Смена: 432 ФФД: 1.0 [18:42:13]line ЗНМ: 0300000044 [18:42:13]line РНМ: 0000000000092660 [18:42:13]line Версия ККМ: 001 [18:42:13]line Платежная система: Бакай Банк [18:42:13]line ФМ: 0000000000874939 [18:42:13]line ФД: 118260 [18:42:13]line ФПД: 78533504665890 [18:42:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T184212&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118260&fm=78533504665890&tin=02508201610067®Number=0000000000092660&sum=30000 [18:42:13]OFD Sender: Processing packet 118260 [packets to send 86, broken 85] [18:42:13]ProducePacketName [18:42:13]name=ofd_packets/00118260 [18:42:13]OFD Sender: To server: pG, [18:42:13]CommunicateWithHost lk.salyk.kg:30040 [18:42:13]ConnectInit lk.salyk.kg [18:42:13]written 0, free lines is 4095 [18:42:14]Connected sock=9 [18:42:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 3A 1C 07 01 F9 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 34 FF 03 08 00 03 76 11 00 00 00 00 00 37 04 06 00 40 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 84 3F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F4 CD 01 00 35 04 06 00 47 6D 01 A6 09 22 4C A7 E7 08 94 F7 7C B7 [18:42:14]Write to MH i2c: 01 00 00 C4 15 D9 [18:42:14]Write i2c OK [18:42:14]MH_I2C_Read... [18:42:14]Read from MH i2c: 01 [18:42:14]MH_I2C_Read... [18:42:14]Read from MH i2c: 01 07 00 [18:42:14]MH_I2C_Read... [18:42:14]Read from MH i2c: 01 07 00 C4 15 00 00 00 00 00 DC 0C C8 [18:42:14]RasterBufferAndPrint [18:42:14]line [18:42:14]line [18:42:14]line [18:42:14]line [18:42:14]line [18:42:14]written 0, free lines is 3298 [18:42:14]MH_Cut [18:42:14]Write to MH i2c: D1 01 00 CB 15 01 B2 [18:42:14]Write i2c OK [18:42:14]MH_I2C_Read... [18:42:14]Read from MH i2c: D1 [18:42:14]MH_I2C_Read... [18:42:14]Read from MH i2c: D1 01 00 [18:42:14]MH_I2C_Read... [18:42:14]Read from MH i2c: D1 01 00 CB 15 00 B1 [18:42:14]Write to MH i2c: 01 00 00 CC 15 E1 [18:42:14]Write i2c OK [18:42:14]MH_I2C_Read... [18:42:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 9C 98 47 00 8A 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F4 CD 01 00 F4 03 04 00 17 ED A4 66 B6 04 01 00 00 F8 C9 EA AF 99 AC BB 4A [18:42:14]CommunicateWithHost err = 0 [18:42:14]CheckOFDResponse [18:42:14]1017 (14) - 77093643461234 [18:42:14]1041 (16) - 0000000000874939 [18:42:14]1040 (4) - 118260 [18:42:14]1012 (4) - 27.07.2024 12:50 [18:42:14]1206 (1) - 0 [18:42:14]OFD Sender: Remove packet 118260 [18:42:14]ProducePacketName [18:42:14]name=ofd_packets/00118260 [18:42:14]NVStorageDeleteData [18:42:15]OFD Sender: No OFD packet to send [18:42:15]*** Cut start [18:42:15]*** Partial cut [18:42:15]*** CUTSNS_PIN = 1 [18:42:15]*** CUTSNS_PIN = 0 [18:42:15]*** Brake cut motor [18:42:15]Read from MH i2c: 01 [18:42:15]MH_I2C_Read... [18:42:15]*** Stop cut motor [18:42:15]*** Cut end [18:42:15]Read from MH i2c: 01 07 00 [18:42:15]MH_I2C_Read... [18:42:15]Read from MH i2c: 01 07 00 CC 15 00 00 00 00 00 FF 0F F6 [18:42:15]process_action close_receipt done [18:42:15]requested_data is exist [18:42:15]produce_requested_data [18:42:15]requested_item fm.sn is exist - process it [18:42:15]wFMCommunicate request_size=4 [18:42:15]MH_SAM_APDU [18:42:15]CAPDU: 80 11 00 00 [18:42:15]Write to MH i2c: E2 08 00 CD 15 80 11 00 00 00 00 00 00 5C [18:42:15]Write i2c OK [18:42:15]MH_I2C_Read... [18:42:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:15]Read from MH i2c: E2 [18:42:15]MH_I2C_Read... [18:42:15]Read from MH i2c: E2 17 00 [18:42:15]MH_I2C_Read... [18:42:15]Read from MH i2c: E2 17 00 CD 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B7 [18:42:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:42:15]wFMCommunicate OK [18:42:15]requested_item fd.num is exist - process it [18:42:15]SAM_PROTO_GetFieldsCounters [18:42:15]wFMCommunicate request_size=4 [18:42:15]MH_SAM_APDU [18:42:15]CAPDU: 80 13 00 00 [18:42:15]Write to MH i2c: E2 08 00 CE 15 80 13 00 00 00 00 00 00 5F [18:42:15]Write i2c OK [18:42:15]MH_I2C_Read... [18:42:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:42:15]Read from MH i2c: E2 [18:42:15]MH_I2C_Read... [18:42:15]Read from MH i2c: E2 62 00 [18:42:15]MH_I2C_Read... [18:42:15]Read from MH i2c: E2 62 00 CE 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F4 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [18:42:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F4 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:42:15]wFMCommunicate OK [18:42:15]SAM_PROTO_GetFieldsCounters done [18:42:15]requested_item shift.num is exist - process it [18:42:15]requested_item shift.opened is exist - process it [18:42:15]req_shift_opened [18:42:15]FM_GetShiftState [18:42:15]SAM_PROTO_GetShiftState [18:42:15]wFMCommunicate request_size=4 [18:42:15]MH_SAM_APDU [18:42:15]CAPDU: 80 13 01 00 [18:42:15]Write to MH i2c: E2 08 00 CF 15 80 13 01 00 00 00 00 00 61 [18:42:15]Write i2c OK [18:42:15]MH_I2C_Read... [18:42:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:15]Read from MH i2c: E2 [18:42:15]MH_I2C_Read... [18:42:15]Read from MH i2c: E2 0E 00 [18:42:15]MH_I2C_Read... [18:42:16]Read from MH i2c: E2 0E 00 CF 15 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 EE [18:42:16]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [18:42:16]wFMCommunicate OK [18:42:16]SAM_PROTO_GetShiftState done [18:42:16]FM_GetShiftState done [18:42:16]req_shift_opened done [18:42:16]requested_item shift.open_date is exist - process it [18:42:16]req_shift_open_date [18:42:16]req_shift_open_date done [18:42:16]produce_requested_data done [18:42:16]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118260,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [18:42:16]process_action_free close_receipt [18:42:16]json_value_free [18:42:16]json_value_free done [18:42:16]process_json_proto returns [18:42:16]Send response to host [18:42:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118260,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [18:42:16]free response buf [18:42:16]execute_script done [18:42:16]execute_script returns [18:42:16]free content buf [18:42:16]Sock 10.Close socket [18:42:16]Sock 10.Thread stoped [18:42:20]OFD Sender: No OFD packet to send [18:42:25]OFD Sender: No OFD packet to send [18:42:30]OFD Sender: No OFD packet to send [18:42:35]OFD Sender: No OFD packet to send [18:42:40]OFD Sender: No OFD packet to send [18:42:45]OFD Sender: No OFD packet to send [18:42:50]OFD Sender: No OFD packet to send [18:42:55]OFD Sender: No OFD packet to send [18:43:00]OFD Sender: No OFD packet to send [18:43:05]OFD Sender: No OFD packet to send [18:43:10]OFD Sender: No OFD packet to send [18:43:15]OFD Sender: No OFD packet to send [18:43:20]OFD Sender: No OFD packet to send [18:43:25]OFD Sender: No OFD packet to send [18:43:30]OFD Sender: No OFD packet to send [18:43:35]OFD Sender: No OFD packet to send [18:43:40]OFD Sender: No OFD packet to send [18:43:45]OFD Sender: No OFD packet to send [18:43:50]OFD Sender: No OFD packet to send [18:43:55]OFD Sender: No OFD packet to send [18:44:00]OFD Sender: No OFD packet to send [18:44:05]OFD Sender: No OFD packet to send [18:44:10]OFD Sender: No OFD packet to send [18:44:15]OFD Sender: No OFD packet to send [18:44:20]OFD Sender: No OFD packet to send [18:44:25]OFD Sender: No OFD packet to send [18:44:27]accept exits with 7 [18:44:27]New connection [18:44:27]New thread 3066953060 created [18:44:27]Thread 3067096420 joined [18:44:27]Waiting for new connection... [18:44:27] Sock 7.Parse request [18:44:27]Sock 7.Check first char [18:44:27]Sock 7.First char is OK [18:44:27]request: POST /json_proto HTTP/1.0 [18:44:27]Method: POST [18:44:27]URL: /json_proto [18:44:27]Method is POST - this is cgi request [18:44:27]url: /json_proto [18:44:27]query_string will be loaded in cgi processing [18:44:27]execute_cgi json_proto POST (null) [18:44:27]execute_cgi path=json_proto method=POST [18:44:27]POST find Content-Length [18:44:27]Host: 172.17.45.7:8080 [18:44:27]Content-Length: 677 [18:44:27]Content-Type: application/json [18:44:27] [18:44:27]POST finish read [18:44:27]Found Content-Length = 677 [18:44:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:44:27]execute_script... [18:44:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:44:27]POST & json_proto [18:44:27]process_json_proto [18:44:27]json parsed OK: [18:44:27]protocol is kg_v1.0 [18:44:27]action value=close_receipt [18:44:27]process_action close_receipt [18:44:27]cmd_close_receipt [18:44:27]MH_GetDate [18:44:27]Write to MH i2c: F0 00 00 D0 15 D4 [18:44:27]Write i2c OK [18:44:27]MH_I2C_Read... [18:44:27]Read from MH i2c: F0 [18:44:27]MH_I2C_Read... [18:44:27]Read from MH i2c: F0 09 00 [18:44:27]MH_I2C_Read... [18:44:27]Read from MH i2c: F0 09 00 D0 15 00 0C 40 A5 66 90 0F 3E 66 77 [18:44:27]GetLastDocTimeStamp 1722105732 [18:44:27]current date 1722105868 [18:44:27]FM_GetShiftState [18:44:27]SAM_PROTO_GetShiftState [18:44:27]wFMCommunicate request_size=4 [18:44:27]MH_SAM_APDU [18:44:27]CAPDU: 80 13 01 00 [18:44:27]Write to MH i2c: E2 08 00 D1 15 80 13 01 00 00 00 00 00 63 [18:44:27]Write i2c OK [18:44:27]MH_I2C_Read... [18:44:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:27]Read from MH i2c: E2 [18:44:27]MH_I2C_Read... [18:44:27]Read from MH i2c: E2 0E 00 [18:44:27]MH_I2C_Read... [18:44:27]Read from MH i2c: E2 0E 00 D1 15 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 F0 [18:44:27]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [18:44:27]wFMCommunicate OK [18:44:27]SAM_PROTO_GetShiftState done [18:44:27]FM_GetShiftState done [18:44:27]opened in 1722038845 [18:44:27]opened+sec_in_day 1722125245 [18:44:27]quantity*price = 50036 [18:44:27]sum+1 = 50037 [18:44:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 204 27.07.2024 18:44 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118261 ФПД: 140759565994441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T184428&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118261&fm=140759565994441&tin=02508201610067®Number=0000000000092660&sum=50000 [18:44:28]StoreToDocumentArchive [18:44:28]shift 432 fd 118261 [18:44:28]save to /storage/0432/doc_00118261 [18:44:28]save last doc name /storage/0432/doc_00118261 to /storage/kkm_last_doc_name [18:44:28]save OK [18:44:28]Clear old archive folders... [18:44:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:44:28]tlvbuf is 01E240D0 [18:44:28]SAM_PROTO_ClearQueue [18:44:28]wFMCommunicate request_size=4 [18:44:28]MH_SAM_APDU [18:44:28]CAPDU: 80 09 00 00 [18:44:28]Write to MH i2c: E2 08 00 DE 15 80 09 00 00 00 00 00 00 65 [18:44:28]Write i2c OK [18:44:28]MH_I2C_Read... [18:44:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:28]Read from MH i2c: E2 [18:44:28]MH_I2C_Read... [18:44:28]Read from MH i2c: E2 03 00 [18:44:28]MH_I2C_Read... [18:44:28]Read from MH i2c: E2 03 00 DE 15 00 90 00 67 [18:44:28]RAPDU: 90 00 [18:44:28]wFMCommunicate OK [18:44:28]SAM_PROTO_ClearQueue done [18:44:28]KKMCreateOFDPacket [18:44:28]OFDProtocolAddRootSTLVToBuf [18:44:28]FM_MakeSignedData [18:44:28]FM_MakeSignedData [18:44:28]SAM_PROTO_SignData [18:44:28]wFMCommunicate request_size=4 [18:44:28]MH_SAM_APDU [18:44:28]CAPDU: 80 0D 01 02 [18:44:28]Write to MH i2c: E2 08 00 DF 15 80 0D 01 02 00 00 00 00 6D [18:44:28]Write i2c OK [18:44:28]MH_I2C_Read... [18:44:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:28]Read from MH i2c: E2 [18:44:28]MH_I2C_Read... [18:44:28]Read from MH i2c: E2 03 00 [18:44:28]MH_I2C_Read... [18:44:28]Read from MH i2c: E2 03 00 DF 15 00 90 00 68 [18:44:28]RAPDU: 90 00 [18:44:28]wFMCommunicate OK [18:44:28]wFMCommunicate request_size=255 [18:44:28]MH_SAM_APDU [18:44: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CC 00 00 00 F4 03 04 00 0C 40 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F5 CD 01 00 35 04 06 00 80 [18:44:28]Write to MH i2c: E2 02 01 E0 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CC 00 00 00 F4 03 04 00 0C 40 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F5 CD 01 00 35 04 06 00 80 00 00 08 [18:44:28]Write i2c OK [18:44:28]MH_I2C_Read... [18:44:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:28]Read from MH i2c: E2 [18:44:28]MH_I2C_Read... [18:44:28]Read from MH i2c: E2 03 00 [18:44:28]MH_I2C_Read... [18:44:28]Read from MH i2c: E2 03 00 E0 15 00 90 00 69 [18:44:28]RAPDU: 90 00 [18:44:28]wFMCommunicate OK [18:44:28]wFMCommunicate request_size=10 [18:44:28]MH_SAM_APDU [18:44:28]CAPDU: 80 0D 02 02 05 05 23 EE 09 C9 [18:44:28]Write to MH i2c: E2 0D 00 E1 15 80 0D 02 02 05 00 05 23 EE 09 C9 00 00 62 [18:44:28]Write i2c OK [18:44:28]MH_I2C_Read... [18:44:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:28]Read from MH i2c: E2 [18:44:28]MH_I2C_Read... [18:44:28]Read from MH i2c: E2 03 00 [18:44:28]MH_I2C_Read... [18:44:28]Read from MH i2c: E2 03 00 E1 15 00 90 00 6A [18:44:28]RAPDU: 90 00 [18:44:28]wFMCommunicate OK [18:44:28]wFMCommunicate request_size=4 [18:44:28]MH_SAM_APDU [18:44:28]CAPDU: 80 0D 03 02 [18:44:28]Write to MH i2c: E2 08 00 E2 15 80 0D 03 02 00 00 00 00 72 [18:44:28]Write i2c OK [18:44:28]MH_I2C_Read... [18:44:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:28]Read from MH i2c: E2 [18:44:28]MH_I2C_Read... [18:44:28]Read from MH i2c: E2 0B 00 [18:44:28]MH_I2C_Read... [18:44:28]Read from MH i2c: E2 0B 00 E2 15 00 1D 02 FF 3F EB 4B A1 8A 90 00 31 [18:44:28]RAPDU: 1D 02 FF 3F EB 4B A1 8A 90 00 [18:44:28]wFMCommunicate OK [18:44:28]SAM_PROTO_SignData done [18:44:28]FM_MakeSignedData done [18:44:28]CreateOFDProtocolMessage [18:44:28]wFMCommunicate request_size=4 [18:44:28]MH_SAM_APDU [18:44:28]CAPDU: 80 11 00 00 [18:44:28]Write to MH i2c: E2 08 00 E3 15 80 11 00 00 00 00 00 00 72 [18:44:28]Write i2c OK [18:44:28]MH_I2C_Read... [18:44:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:29]Read from MH i2c: E2 [18:44:29]MH_I2C_Read... [18:44:29]Read from MH i2c: E2 17 00 [18:44:29]MH_I2C_Read... [18:44:29]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 34 39 33 39 90 00 CD [18:44:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:44:29]wFMCommunicate OK [18:44:29]CreateOFDProtocolMessage done [18:44:29]OFDSenderStorePacket 118261 [18:44:29]StoreOFDPacket docnum=118261 [18:44:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 28 0E 07 01 CD 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CC 00 00 00 F4 03 04 00 0C 40 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F5 CD 01 00 35 04 06 00 80 05 23 EE 09 C9 1D 02 FF 3F EB 4B A1 8A [18:44:29]CheckFolder [18:44:29]dirname=/storage/ofd_packets [18:44:29]CheckFolder done [18:44:29]ProducePacketName [18:44:29]name=ofd_packets/00118261 [18:44:29]NVStorageSaveData ofd_packets/00118261 [18:44:29]File name is /storage/ofd_packets/00118261 [18:44:29]Write 301 bytes [18:44:29]NVStorageSaveData done [18:44:29]OFDSenderStorePacket done [18:44:29]KKMCreateOFDPacket done [18:44:29]NVStorageSaveData kkm_last_timestamp [18:44:29]File name is /storage/kkm_last_timestamp [18:44:29]Write 4 bytes [18:44:29]NVStorageSaveData done [18:44:29]ExternCall_PrintAddStr [18:44:29]wPrintStart [18:44:29]Write to MH i2c: 01 00 00 E4 15 F9 [18:44:29]Write i2c OK [18:44:29]MH_I2C_Read... [18:44:29]Read from MH i2c: 01 [18:44:29]MH_I2C_Read... [18:44:29]Read from MH i2c: 01 07 00 [18:44:29]MH_I2C_Read... [18:44:29]Read from MH i2c: 01 07 00 E4 15 00 00 00 00 00 FF 0F 0E [18:44:29]RasterBufferAndPrint [18:44:29]line Счет N : (1)949134 [18:44:29]line ИНН: 02508201610067 [18:44:29]line Контрольно-Кассовый Чек [18:44:29]line ПРОДАЖА [18:44:29]line ТРК (МРК, ГНК) : 51 [18:44:29]line Товар: 2710124130 [18:44:29]line Аи-92-К-4 [18:44:29]line 7.380 * 67.80 [18:44:29]line = 500.36 [18:44:29]line НДС 12% НСП 1% [18:44:29]line > о реализуемом товаре [18:44:29]line ОКРУГЛЕНИЕ: -0.36 [18:44:29]line ИТОГО: 500.00 [18:44:29]line Внесено: 500.00 [18:44:29]line СДАЧА: 0.00 [18:44:29]line НСП 1% : 4.43 [18:44:29]line НДС 12% : 53.14 [18:44:29]line Наличными: 500.00 [18:44:29]line Безнал.: 0.00 [18:44:29]line Место: АЗС № 134 "Партнер Нефть" [18:44:29]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:44:29]line СНО: Общий режим [18:44:29]line Чек 204 27.07.2024 18:44 [18:44:29]line Смена: 432 ФФД: 1.0 [18:44:29]line ЗНМ: 0300000044 [18:44:29]line РНМ: 0000000000092660 [18:44:29]line Версия ККМ: 001 [18:44:29]line ФМ: 0000000000874939 [18:44:29]line ФД: 118261 [18:44:29]line ФПД: 140759565994441 [18:44:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T184428&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118261&fm=140759565994441&tin=02508201610067®Number=0000000000092660&sum=50000 [18:44:29]written 0, free lines is 4095 [18:44:29]OFD Sender: Processing packet 118261 [packets to send 86, broken 85] [18:44:29]ProducePacketName [18:44:29]name=ofd_packets/00118261 [18:44:29]OFD Sender: To server: pG, [18:44:29]CommunicateWithHost lk.salyk.kg:30040 [18:44:29]ConnectInit lk.salyk.kg [18:44:29]Connected sock=10 [18:44:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 28 0E 07 01 CD 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CC 00 00 00 F4 03 04 00 0C 40 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F5 CD 01 00 35 04 06 00 80 05 23 EE 09 C9 1D 02 FF 3F EB 4B A1 8A [18:44:29]Write to MH i2c: 01 00 00 0E 16 24 [18:44:29]Write i2c OK [18:44:29]MH_I2C_Read... [18:44:29]Read from MH i2c: 01 [18:44:29]MH_I2C_Read... [18:44:29]Read from MH i2c: 01 07 00 [18:44:29]MH_I2C_Read... [18:44:29]Read from MH i2c: 01 07 00 0E 16 00 00 00 00 00 DC 0C 13 [18:44:29]RasterBufferAndPrint [18:44:29]line [18:44:29]line [18:44:29]line [18:44:29]line [18:44:29]line [18:44:29]written 0, free lines is 3302 [18:44:29]MH_Cut [18:44:29]Write to MH i2c: D1 01 00 15 16 01 FD [18:44:29]Write i2c OK [18:44:29]MH_I2C_Read... [18:44:29]Read from MH i2c: D1 [18:44:29]MH_I2C_Read... [18:44:29]Read from MH i2c: D1 01 00 [18:44:29]MH_I2C_Read... [18:44:29]Read from MH i2c: D1 01 00 15 16 00 FC [18:44:29]Write to MH i2c: 01 00 00 16 16 2C [18:44:29]Write i2c OK [18:44:29]MH_I2C_Read... [18:44:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C0 4C 47 00 00 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F5 CD 01 00 F4 03 04 00 9E ED A4 66 B6 04 01 00 00 6B 66 9D 1A BB 79 B7 9E [18:44:29]CommunicateWithHost err = 0 [18:44:29]CheckOFDResponse [18:44:29]1017 (14) - 77093643461234 [18:44:29]1041 (16) - 0000000000874939 [18:44:29]1040 (4) - 118261 [18:44:29]1012 (4) - 27.07.2024 12:52 [18:44:29]1206 (1) - 0 [18:44:29]OFD Sender: Remove packet 118261 [18:44:29]ProducePacketName [18:44:29]name=ofd_packets/00118261 [18:44:29]NVStorageDeleteData [18:44:30]OFD Sender: No OFD packet to send [18:44:30]*** Cut start [18:44:30]*** Partial cut [18:44:30]*** CUTSNS_PIN = 1 [18:44:30]*** CUTSNS_PIN = 0 [18:44:30]*** Brake cut motor [18:44:31]Read from MH i2c: 01 [18:44:31]MH_I2C_Read... [18:44:31]*** Stop cut motor [18:44:31]*** Cut end [18:44:31]Read from MH i2c: 01 07 00 [18:44:31]MH_I2C_Read... [18:44:31]Read from MH i2c: 01 07 00 16 16 00 00 00 00 00 FF 0F 41 [18:44:31]process_action close_receipt done [18:44:31]requested_data is exist [18:44:31]produce_requested_data [18:44:31]requested_item fm.sn is exist - process it [18:44:31]wFMCommunicate request_size=4 [18:44:31]MH_SAM_APDU [18:44:31]CAPDU: 80 11 00 00 [18:44:31]Write to MH i2c: E2 08 00 17 16 80 11 00 00 00 00 00 00 A7 [18:44:31]Write i2c OK [18:44:31]MH_I2C_Read... [18:44:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:31]Read from MH i2c: E2 [18:44:31]MH_I2C_Read... [18:44:31]Read from MH i2c: E2 17 00 [18:44:31]MH_I2C_Read... [18:44:31]Read from MH i2c: E2 17 00 17 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 02 [18:44:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:44:31]wFMCommunicate OK [18:44:31]requested_item fd.num is exist - process it [18:44:31]SAM_PROTO_GetFieldsCounters [18:44:31]wFMCommunicate request_size=4 [18:44:31]MH_SAM_APDU [18:44:31]CAPDU: 80 13 00 00 [18:44:31]Write to MH i2c: E2 08 00 18 16 80 13 00 00 00 00 00 00 AA [18:44:31]Write i2c OK [18:44:31]MH_I2C_Read... [18:44:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:31]Read from MH i2c: E2 [18:44:31]MH_I2C_Read... [18:44:31]Read from MH i2c: E2 62 00 [18:44:31]MH_I2C_Read... [18:44:31]Read from MH i2c: E2 62 00 18 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F5 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [18:44:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F5 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:44:31]wFMCommunicate OK [18:44:31]SAM_PROTO_GetFieldsCounters done [18:44:31]requested_item shift.num is exist - process it [18:44:31]requested_item shift.opened is exist - process it [18:44:31]req_shift_opened [18:44:31]FM_GetShiftState [18:44:31]SAM_PROTO_GetShiftState [18:44:31]wFMCommunicate request_size=4 [18:44:31]MH_SAM_APDU [18:44:31]CAPDU: 80 13 01 00 [18:44:31]Write to MH i2c: E2 08 00 19 16 80 13 01 00 00 00 00 00 AC [18:44:31]Write i2c OK [18:44:31]MH_I2C_Read... [18:44:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:31]Read from MH i2c: E2 [18:44:31]MH_I2C_Read... [18:44:31]Read from MH i2c: E2 0E 00 [18:44:31]MH_I2C_Read... [18:44:31]Read from MH i2c: E2 0E 00 19 16 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 39 [18:44:31]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [18:44:31]wFMCommunicate OK [18:44:31]SAM_PROTO_GetShiftState done [18:44:31]FM_GetShiftState done [18:44:31]req_shift_opened done [18:44:31]requested_item shift.open_date is exist - process it [18:44:31]req_shift_open_date [18:44:31]req_shift_open_date done [18:44:31]produce_requested_data done [18:44:31]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118261,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [18:44:31]process_action_free close_receipt [18:44:31]json_value_free [18:44:31]json_value_free done [18:44:31]process_json_proto returns [18:44:31]Send response to host [18:44:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118261,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [18:44:31]free response buf [18:44:31]execute_script done [18:44:31]execute_script returns [18:44:31]free content buf [18:44:31]Sock 7.Close socket [18:44:31]Sock 7.Thread stoped [18:44:35]OFD Sender: No OFD packet to send [18:44:40]OFD Sender: No OFD packet to send [18:44:45]OFD Sender: No OFD packet to send [18:44:50]OFD Sender: No OFD packet to send [18:44:55]OFD Sender: No OFD packet to send [18:45:00]OFD Sender: No OFD packet to send [18:45:05]OFD Sender: No OFD packet to send [18:45:10]OFD Sender: No OFD packet to send [18:45:15]OFD Sender: No OFD packet to send [18:45:20]OFD Sender: No OFD packet to send [18:45:25]OFD Sender: No OFD packet to send [18:45:30]OFD Sender: No OFD packet to send [18:45:35]OFD Sender: No OFD packet to send [18:45:40]OFD Sender: No OFD packet to send [18:45:45]OFD Sender: No OFD packet to send [18:45:50]OFD Sender: No OFD packet to send [18:45:55]OFD Sender: No OFD packet to send [18:45:59]accept exits with 9 [18:45:59]New connection [18:45:59]New thread 3067096420 created [18:45:59]Thread 3066953060 joined [18:45:59]Waiting for new connection... [18:45:59] Sock 9.Parse request [18:45:59]Sock 9.Check first char [18:45:59]Sock 9.First char is OK [18:45:59]request: POST /json_proto HTTP/1.0 [18:45:59]Method: POST [18:45:59]URL: /json_proto [18:45:59]Method is POST - this is cgi request [18:45:59]url: /json_proto [18:45:59]query_string will be loaded in cgi processing [18:45:59]execute_cgi json_proto POST (null) [18:45:59]execute_cgi path=json_proto method=POST [18:45:59]POST find Content-Length [18:45:59]Host: 172.17.45.7:8080 [18:45:59]Content-Length: 677 [18:45:59]Content-Type: application/json [18:45:59] [18:45:59]POST finish read [18:45:59]Found Content-Length = 677 [18:45:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:45:59]execute_script... [18:45:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:45:59]POST & json_proto [18:45:59]process_json_proto [18:45:59]json parsed OK: [18:45:59]protocol is kg_v1.0 [18:45:59]action value=close_receipt [18:45:59]process_action close_receipt [18:45:59]cmd_close_receipt [18:45:59]MH_GetDate [18:45:59]Write to MH i2c: F0 00 00 1A 16 1F [18:45:59]Write i2c OK [18:45:59]MH_I2C_Read... [18:45:59]Read from MH i2c: F0 [18:45:59]MH_I2C_Read... [18:45:59]Read from MH i2c: F0 09 00 [18:45:59]MH_I2C_Read... [18:45:59]Read from MH i2c: F0 09 00 1A 16 00 68 40 A5 66 90 0F 3E 66 1E [18:45:59]GetLastDocTimeStamp 1722105868 [18:45:59]current date 1722105960 [18:45:59]FM_GetShiftState [18:45:59]SAM_PROTO_GetShiftState [18:45:59]wFMCommunicate request_size=4 [18:45:59]MH_SAM_APDU [18:45:59]CAPDU: 80 13 01 00 [18:45:59]Write to MH i2c: E2 08 00 1B 16 80 13 01 00 00 00 00 00 AE [18:45:59]Write i2c OK [18:45:59]MH_I2C_Read... [18:45:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:59]Read from MH i2c: E2 [18:45:59]MH_I2C_Read... [18:45:59]Read from MH i2c: E2 0E 00 [18:45:59]MH_I2C_Read... [18:45:59]Read from MH i2c: E2 0E 00 1B 16 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 3B [18:45:59]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [18:45:59]wFMCommunicate OK [18:45:59]SAM_PROTO_GetShiftState done [18:45:59]FM_GetShiftState done [18:45:59]opened in 1722038845 [18:45:59]opened+sec_in_day 1722125245 [18:45:59]quantity*price = 50036 [18:45:59]sum+1 = 50037 [18:45:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 205 27.07.2024 18:46 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118262 ФПД: 257364044656267 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T184600&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118262&fm=257364044656267&tin=02508201610067®Number=0000000000092660&sum=50000 [18:46:01]StoreToDocumentArchive [18:46:01]shift 432 fd 118262 [18:46:01]save to /storage/0432/doc_00118262 [18:46:01]save last doc name /storage/0432/doc_00118262 to /storage/kkm_last_doc_name [18:46:01]save OK [18:46:01]Clear old archive folders... [18:46:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:46:01]tlvbuf is 01E217E0 [18:46:01]SAM_PROTO_ClearQueue [18:46:01]wFMCommunicate request_size=4 [18:46:01]MH_SAM_APDU [18:46:01]CAPDU: 80 09 00 00 [18:46:01]Write to MH i2c: E2 08 00 28 16 80 09 00 00 00 00 00 00 B0 [18:46:01]Write i2c OK [18:46:01]MH_I2C_Read... [18:46:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:01]Read from MH i2c: E2 [18:46:01]MH_I2C_Read... [18:46:01]Read from MH i2c: E2 03 00 [18:46:01]MH_I2C_Read... [18:46:01]Read from MH i2c: E2 03 00 28 16 00 90 00 B2 [18:46:01]RAPDU: 90 00 [18:46:01]wFMCommunicate OK [18:46:01]SAM_PROTO_ClearQueue done [18:46:01]KKMCreateOFDPacket [18:46:01]OFDProtocolAddRootSTLVToBuf [18:46:01]FM_MakeSignedData [18:46:01]FM_MakeSignedData [18:46:01]SAM_PROTO_SignData [18:46:01]wFMCommunicate request_size=4 [18:46:01]MH_SAM_APDU [18:46:01]CAPDU: 80 0D 01 02 [18:46:01]Write to MH i2c: E2 08 00 29 16 80 0D 01 02 00 00 00 00 B8 [18:46:01]Write i2c OK [18:46:01]MH_I2C_Read... [18:46:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:01]Read from MH i2c: E2 [18:46:01]MH_I2C_Read... [18:46:01]Read from MH i2c: E2 03 00 [18:46:01]MH_I2C_Read... [18:46:01]Read from MH i2c: E2 03 00 29 16 00 90 00 B3 [18:46:01]RAPDU: 90 00 [18:46:01]wFMCommunicate OK [18:46:01]wFMCommunicate request_size=255 [18:46:01]MH_SAM_APDU [18:46: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CD 00 00 00 F4 03 04 00 68 40 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F6 CD 01 00 35 04 06 00 EA [18:46:01]Write to MH i2c: E2 02 01 2A 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CD 00 00 00 F4 03 04 00 68 40 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F6 CD 01 00 35 04 06 00 EA 00 00 1B [18:46:01]Write i2c OK [18:46:01]MH_I2C_Read... [18:46:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:01]Read from MH i2c: E2 [18:46:01]MH_I2C_Read... [18:46:01]Read from MH i2c: E2 03 00 [18:46:01]MH_I2C_Read... [18:46:01]Read from MH i2c: E2 03 00 2A 16 00 90 00 B4 [18:46:01]RAPDU: 90 00 [18:46:01]wFMCommunicate OK [18:46:01]wFMCommunicate request_size=10 [18:46:01]MH_SAM_APDU [18:46:01]CAPDU: 80 0D 02 02 05 12 3C 75 AE 8B [18:46:01]Write to MH i2c: E2 0D 00 2B 16 80 0D 02 02 05 00 12 3C 75 AE 8B 00 00 C1 [18:46:01]Write i2c OK [18:46:01]MH_I2C_Read... [18:46:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:01]Read from MH i2c: E2 [18:46:01]MH_I2C_Read... [18:46:01]Read from MH i2c: E2 03 00 [18:46:01]MH_I2C_Read... [18:46:01]Read from MH i2c: E2 03 00 2B 16 00 90 00 B5 [18:46:01]RAPDU: 90 00 [18:46:01]wFMCommunicate OK [18:46:01]wFMCommunicate request_size=4 [18:46:01]MH_SAM_APDU [18:46:01]CAPDU: 80 0D 03 02 [18:46:01]Write to MH i2c: E2 08 00 2C 16 80 0D 03 02 00 00 00 00 BD [18:46:01]Write i2c OK [18:46:01]MH_I2C_Read... [18:46:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:01]Read from MH i2c: E2 [18:46:01]MH_I2C_Read... [18:46:01]Read from MH i2c: E2 0B 00 [18:46:01]MH_I2C_Read... [18:46:01]Read from MH i2c: E2 0B 00 2C 16 00 10 D8 6B 62 B1 FC F0 DA 90 00 EA [18:46:01]RAPDU: 10 D8 6B 62 B1 FC F0 DA 90 00 [18:46:01]wFMCommunicate OK [18:46:01]SAM_PROTO_SignData done [18:46:01]FM_MakeSignedData done [18:46:01]CreateOFDProtocolMessage [18:46:01]wFMCommunicate request_size=4 [18:46:01]MH_SAM_APDU [18:46:01]CAPDU: 80 11 00 00 [18:46:01]Write to MH i2c: E2 08 00 2D 16 80 11 00 00 00 00 00 00 BD [18:46:01]Write i2c OK [18:46:01]MH_I2C_Read... [18:46:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:01]Read from MH i2c: E2 [18:46:01]MH_I2C_Read... [18:46:01]Read from MH i2c: E2 17 00 [18:46:01]MH_I2C_Read... [18:46:01]Read from MH i2c: E2 17 00 2D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 18 [18:46:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:46:01]wFMCommunicate OK [18:46:01]CreateOFDProtocolMessage done [18:46:01]OFDSenderStorePacket 118262 [18:46:01]StoreOFDPacket docnum=118262 [18:46:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F9 EF 07 01 09 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CD 00 00 00 F4 03 04 00 68 40 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F6 CD 01 00 35 04 06 00 EA 12 3C 75 AE 8B 10 D8 6B 62 B1 FC F0 DA [18:46:01]CheckFolder [18:46:01]dirname=/storage/ofd_packets [18:46:01]CheckFolder done [18:46:01]ProducePacketName [18:46:01]name=ofd_packets/00118262 [18:46:01]NVStorageSaveData ofd_packets/00118262 [18:46:01]File name is /storage/ofd_packets/00118262 [18:46:01]Write 301 bytes [18:46:01]NVStorageSaveData done [18:46:01]OFDSenderStorePacket done [18:46:01]KKMCreateOFDPacket done [18:46:01]NVStorageSaveData kkm_last_timestamp [18:46:01]File name is /storage/kkm_last_timestamp [18:46:01]Write 4 bytes [18:46:01]NVStorageSaveData done [18:46:01]ExternCall_PrintAddStr [18:46:01]wPrintStart [18:46:01]Write to MH i2c: 01 00 00 2E 16 44 [18:46:01]Write i2c OK [18:46:01]MH_I2C_Read... [18:46:01]Read from MH i2c: 01 [18:46:01]MH_I2C_Read... [18:46:01]Read from MH i2c: 01 07 00 [18:46:01]MH_I2C_Read... [18:46:01]Read from MH i2c: 01 07 00 2E 16 00 00 00 00 00 FF 0F 59 [18:46:01]RasterBufferAndPrint [18:46:01]line Счет N : (1)949135 [18:46:01]line ИНН: 02508201610067 [18:46:01]line Контрольно-Кассовый Чек [18:46:01]line ПРОДАЖА [18:46:01]line ТРК (МРК, ГНК) : 51 [18:46:01]line Товар: 2710124130 [18:46:01]line Аи-92-К-4 [18:46:01]line 7.380 * 67.80 [18:46:01]line = 500.36 [18:46:01]line НДС 12% НСП 1% [18:46:01]line > о реализуемом товаре [18:46:01]line ОКРУГЛЕНИЕ: -0.36 [18:46:01]line ИТОГО: 500.00 [18:46:01]line Внесено: 500.00 [18:46:01]line СДАЧА: 0.00 [18:46:01]line НСП 1% : 4.43 [18:46:01]line НДС 12% : 53.14 [18:46:01]line Наличными: 500.00 [18:46:01]line Безнал.: 0.00 [18:46:01]line Место: АЗС № 134 "Партнер Нефть" [18:46:01]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:46:01]line СНО: Общий режим [18:46:01]line Чек 205 27.07.2024 18:46 [18:46:01]line Смена: 432 ФФД: 1.0 [18:46:01]line ЗНМ: 0300000044 [18:46:01]line РНМ: 0000000000092660 [18:46:01]line Версия ККМ: 001 [18:46:01]line ФМ: 0000000000874939 [18:46:01]line ФД: 118262 [18:46:01]line ФПД: 257364044656267 [18:46:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T184600&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118262&fm=257364044656267&tin=02508201610067®Number=0000000000092660&sum=50000 [18:46:01]written 0, free lines is 4095 [18:46:01]OFD Sender: Processing packet 118262 [packets to send 86, broken 85] [18:46:01]ProducePacketName [18:46:01]name=ofd_packets/00118262 [18:46:01]OFD Sender: To server: pG, [18:46:01]CommunicateWithHost lk.salyk.kg:30040 [18:46:01]ConnectInit lk.salyk.kg [18:46:02]Connected sock=10 [18:46:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F9 EF 07 01 09 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CD 00 00 00 F4 03 04 00 68 40 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F6 CD 01 00 35 04 06 00 EA 12 3C 75 AE 8B 10 D8 6B 62 B1 FC F0 DA [18:46:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 86 BE 47 00 42 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F6 CD 01 00 F4 03 04 00 FB ED A4 66 B6 04 01 00 00 3C A3 D0 D3 42 A9 D0 2D [18:46:02]CommunicateWithHost err = 0 [18:46:02]CheckOFDResponse [18:46:02]1017 (14) - 77093643461234 [18:46:02]1041 (16) - 0000000000874939 [18:46:02]1040 (4) - 118262 [18:46:02]1012 (4) - 27.07.2024 12:54 [18:46:02]1206 (1) - 0 [18:46:02]OFD Sender: Remove packet 118262 [18:46:02]ProducePacketName [18:46:02]name=ofd_packets/00118262 [18:46:02]NVStorageDeleteData [18:46:02]Write to MH i2c: 01 00 00 58 16 6E [18:46:02]Write i2c OK [18:46:02]MH_I2C_Read... [18:46:02]Read from MH i2c: 01 [18:46:02]MH_I2C_Read... [18:46:02]Read from MH i2c: 01 07 00 [18:46:02]MH_I2C_Read... [18:46:02]Read from MH i2c: 01 07 00 58 16 00 00 00 00 00 DC 0C 5D [18:46:02]RasterBufferAndPrint [18:46:02]line [18:46:02]line [18:46:02]line [18:46:02]line [18:46:02]line [18:46:02]written 0, free lines is 3298 [18:46:02]MH_Cut [18:46:02]Write to MH i2c: D1 01 00 5F 16 01 47 [18:46:02]Write i2c OK [18:46:02]MH_I2C_Read... [18:46:02]Read from MH i2c: D1 [18:46:02]MH_I2C_Read... [18:46:02]Read from MH i2c: D1 01 00 [18:46:02]MH_I2C_Read... [18:46:02]Read from MH i2c: D1 01 00 5F 16 00 46 [18:46:02]Write to MH i2c: 01 00 00 60 16 76 [18:46:02]Write i2c OK [18:46:02]MH_I2C_Read... [18:46:02]OFD Sender: No OFD packet to send [18:46:03]*** Cut start [18:46:03]*** Partial cut [18:46:03]*** CUTSNS_PIN = 1 [18:46:03]*** CUTSNS_PIN = 0 [18:46:03]*** Brake cut motor [18:46:03]Read from MH i2c: 01 [18:46:03]MH_I2C_Read... [18:46:03]*** Stop cut motor [18:46:03]*** Cut end [18:46:03]Read from MH i2c: 01 07 00 [18:46:03]MH_I2C_Read... [18:46:03]Read from MH i2c: 01 07 00 60 16 00 00 00 00 00 FF 0F 8B [18:46:03]process_action close_receipt done [18:46:03]requested_data is exist [18:46:03]produce_requested_data [18:46:03]requested_item fm.sn is exist - process it [18:46:03]wFMCommunicate request_size=4 [18:46:03]MH_SAM_APDU [18:46:03]CAPDU: 80 11 00 00 [18:46:03]Write to MH i2c: E2 08 00 61 16 80 11 00 00 00 00 00 00 F1 [18:46:03]Write i2c OK [18:46:03]MH_I2C_Read... [18:46:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:03]Read from MH i2c: E2 [18:46:03]MH_I2C_Read... [18:46:03]Read from MH i2c: E2 17 00 [18:46:03]MH_I2C_Read... [18:46:03]Read from MH i2c: E2 17 00 61 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4C [18:46:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:46:03]wFMCommunicate OK [18:46:03]requested_item fd.num is exist - process it [18:46:03]SAM_PROTO_GetFieldsCounters [18:46:03]wFMCommunicate request_size=4 [18:46:03]MH_SAM_APDU [18:46:03]CAPDU: 80 13 00 00 [18:46:03]Write to MH i2c: E2 08 00 62 16 80 13 00 00 00 00 00 00 F4 [18:46:03]Write i2c OK [18:46:03]MH_I2C_Read... [18:46:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:03]Read from MH i2c: E2 [18:46:03]MH_I2C_Read... [18:46:03]Read from MH i2c: E2 62 00 [18:46:03]MH_I2C_Read... [18:46:03]Read from MH i2c: E2 62 00 62 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F6 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [18:46:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F6 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:46:03]wFMCommunicate OK [18:46:03]SAM_PROTO_GetFieldsCounters done [18:46:03]requested_item shift.num is exist - process it [18:46:03]requested_item shift.opened is exist - process it [18:46:03]req_shift_opened [18:46:03]FM_GetShiftState [18:46:03]SAM_PROTO_GetShiftState [18:46:03]wFMCommunicate request_size=4 [18:46:03]MH_SAM_APDU [18:46:03]CAPDU: 80 13 01 00 [18:46:03]Write to MH i2c: E2 08 00 63 16 80 13 01 00 00 00 00 00 F6 [18:46:03]Write i2c OK [18:46:03]MH_I2C_Read... [18:46:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:04]Read from MH i2c: E2 [18:46:04]MH_I2C_Read... [18:46:04]Read from MH i2c: E2 0E 00 [18:46:04]MH_I2C_Read... [18:46:04]Read from MH i2c: E2 0E 00 63 16 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 83 [18:46:04]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [18:46:04]wFMCommunicate OK [18:46:04]SAM_PROTO_GetShiftState done [18:46:04]FM_GetShiftState done [18:46:04]req_shift_opened done [18:46:04]requested_item shift.open_date is exist - process it [18:46:04]req_shift_open_date [18:46:04]req_shift_open_date done [18:46:04]produce_requested_data done [18:46:04]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118262,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [18:46:04]process_action_free close_receipt [18:46:04]json_value_free [18:46:04]json_value_free done [18:46:04]process_json_proto returns [18:46:04]Send response to host [18:46:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118262,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [18:46:04]free response buf [18:46:04]execute_script done [18:46:04]execute_script returns [18:46:04]free content buf [18:46:04]Sock 9.Close socket [18:46:04]Sock 9.Thread stoped [18:46:07]OFD Sender: No OFD packet to send [18:46:12]OFD Sender: No OFD packet to send [18:46:17]OFD Sender: No OFD packet to send [18:46:22]OFD Sender: No OFD packet to send [18:46:27]OFD Sender: No OFD packet to send [18:46:32]OFD Sender: No OFD packet to send [18:46:37]OFD Sender: No OFD packet to send [18:46:42]OFD Sender: No OFD packet to send [18:46:42]accept exits with 7 [18:46:42]New connection [18:46:42]New thread 3066953060 created [18:46:42]Thread 3067096420 joined [18:46:42]Waiting for new connection... [18:46:42] Sock 7.Parse request [18:46:42]Sock 7.Check first char [18:46:42]Sock 7.First char is OK [18:46:42]request: POST /json_proto HTTP/1.0 [18:46:42]Method: POST [18:46:42]URL: /json_proto [18:46:42]Method is POST - this is cgi request [18:46:42]url: /json_proto [18:46:42]query_string will be loaded in cgi processing [18:46:42]execute_cgi json_proto POST (null) [18:46:42]execute_cgi path=json_proto method=POST [18:46:42]POST find Content-Length [18:46:42]Host: 172.17.45.7:8080 [18:46:42]Content-Length: 674 [18:46:42]Content-Type: application/json [18:46:42] [18:46:42]POST finish read [18:46:42]Found Content-Length = 674 [18:46:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 8.540, "sum" : 650.75, "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" ] } } [18:46:42]execute_script... [18:46:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 8.540, "sum" : 650.75, "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" ] } } [18:46:42]POST & json_proto [18:46:42]process_json_proto [18:46:42]json parsed OK: [18:46:42]protocol is kg_v1.0 [18:46:42]action value=close_receipt [18:46:42]process_action close_receipt [18:46:42]cmd_close_receipt [18:46:42]MH_GetDate [18:46:42]Write to MH i2c: F0 00 00 64 16 69 [18:46:42]Write i2c OK [18:46:42]MH_I2C_Read... [18:46:42]Read from MH i2c: F0 [18:46:42]MH_I2C_Read... [18:46:42]Read from MH i2c: F0 09 00 [18:46:42]MH_I2C_Read... [18:46:42]Read from MH i2c: F0 09 00 64 16 00 93 40 A5 66 90 0F 3E 66 93 [18:46:42]GetLastDocTimeStamp 1722105960 [18:46:42]current date 1722106003 [18:46:42]FM_GetShiftState [18:46:42]SAM_PROTO_GetShiftState [18:46:42]wFMCommunicate request_size=4 [18:46:42]MH_SAM_APDU [18:46:42]CAPDU: 80 13 01 00 [18:46:42]Write to MH i2c: E2 08 00 65 16 80 13 01 00 00 00 00 00 F8 [18:46:42]Write i2c OK [18:46:42]MH_I2C_Read... [18:46:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:43]Read from MH i2c: E2 [18:46:43]MH_I2C_Read... [18:46:43]Read from MH i2c: E2 0E 00 [18:46:43]MH_I2C_Read... [18:46:43]Read from MH i2c: E2 0E 00 65 16 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 85 [18:46:43]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [18:46:43]wFMCommunicate OK [18:46:43]SAM_PROTO_GetShiftState done [18:46:43]FM_GetShiftState done [18:46:43]opened in 1722038845 [18:46:43]opened+sec_in_day 1722125245 [18:46:43]quantity*price = 65074 [18:46:43]sum+1 = 65076 [18:46:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.75 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.11 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 206 27.07.2024 18:46 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118263 ФПД: 217975825815104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T184643&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118263&fm=217975825815104&tin=02508201610067®Number=0000000000092660&sum=65000 [18:46:44]StoreToDocumentArchive [18:46:44]shift 432 fd 118263 [18:46:44]save to /storage/0432/doc_00118263 [18:46:44]save last doc name /storage/0432/doc_00118263 to /storage/kkm_last_doc_name [18:46:44]save OK [18:46:44]Clear old archive folders... [18:46:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:46:44]tlvbuf is 01E27F30 [18:46:44]SAM_PROTO_ClearQueue [18:46:44]wFMCommunicate request_size=4 [18:46:44]MH_SAM_APDU [18:46:44]CAPDU: 80 09 00 00 [18:46:44]Write to MH i2c: E2 08 00 72 16 80 09 00 00 00 00 00 00 FA [18:46:44]Write i2c OK [18:46:44]MH_I2C_Read... [18:46:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:44]Read from MH i2c: E2 [18:46:44]MH_I2C_Read... [18:46:44]Read from MH i2c: E2 03 00 [18:46:44]MH_I2C_Read... [18:46:44]Read from MH i2c: E2 03 00 72 16 00 90 00 FC [18:46:44]RAPDU: 90 00 [18:46:44]wFMCommunicate OK [18:46:44]SAM_PROTO_ClearQueue done [18:46:44]KKMCreateOFDPacket [18:46:44]OFDProtocolAddRootSTLVToBuf [18:46:44]FM_MakeSignedData [18:46:44]FM_MakeSignedData [18:46:44]SAM_PROTO_SignData [18:46:44]wFMCommunicate request_size=4 [18:46:44]MH_SAM_APDU [18:46:44]CAPDU: 80 0D 01 02 [18:46:44]Write to MH i2c: E2 08 00 73 16 80 0D 01 02 00 00 00 00 02 [18:46:44]Write i2c OK [18:46:44]MH_I2C_Read... [18:46:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:44]Read from MH i2c: E2 [18:46:44]MH_I2C_Read... [18:46:44]Read from MH i2c: E2 03 00 [18:46:44]MH_I2C_Read... [18:46:44]Read from MH i2c: E2 03 00 73 16 00 90 00 FD [18:46:44]RAPDU: 90 00 [18:46:44]wFMCommunicate OK [18:46:44]wFMCommunicate request_size=255 [18:46:44]MH_SAM_APDU [18:46: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5C 21 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 33 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 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 CE 00 00 00 F4 03 04 00 93 40 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F7 CD 01 00 35 04 06 00 C6 3F 73 AA [18:46:44]Write to MH i2c: E2 02 01 74 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5C 21 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 33 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 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 CE 00 00 00 F4 03 04 00 93 40 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F7 CD 01 00 35 04 06 00 C6 3F 73 AA 00 00 62 [18:46:44]Write i2c OK [18:46:44]MH_I2C_Read... [18:46:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:44]Read from MH i2c: E2 [18:46:44]MH_I2C_Read... [18:46:44]Read from MH i2c: E2 03 00 [18:46:44]MH_I2C_Read... [18:46:44]Read from MH i2c: E2 03 00 74 16 00 90 00 FE [18:46:44]RAPDU: 90 00 [18:46:44]wFMCommunicate OK [18:46:44]wFMCommunicate request_size=7 [18:46:44]MH_SAM_APDU [18:46:44]CAPDU: 80 0D 02 02 02 D6 40 [18:46:44]Write to MH i2c: E2 0A 00 75 16 80 0D 02 02 02 00 D6 40 00 00 1F [18:46:44]Write i2c OK [18:46:44]MH_I2C_Read... [18:46:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:44]Read from MH i2c: E2 [18:46:44]MH_I2C_Read... [18:46:44]Read from MH i2c: E2 03 00 [18:46:44]MH_I2C_Read... [18:46:44]Read from MH i2c: E2 03 00 75 16 00 90 00 FF [18:46:44]RAPDU: 90 00 [18:46:44]wFMCommunicate OK [18:46:44]wFMCommunicate request_size=4 [18:46:44]MH_SAM_APDU [18:46:44]CAPDU: 80 0D 03 02 [18:46:44]Write to MH i2c: E2 08 00 76 16 80 0D 03 02 00 00 00 00 07 [18:46:44]Write i2c OK [18:46:44]MH_I2C_Read... [18:46:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:44]Read from MH i2c: E2 [18:46:44]MH_I2C_Read... [18:46:44]Read from MH i2c: E2 0B 00 [18:46:44]MH_I2C_Read... [18:46:44]Read from MH i2c: E2 0B 00 76 16 00 36 0E 7F 0E F7 33 17 30 90 00 4A [18:46:44]RAPDU: 36 0E 7F 0E F7 33 17 30 90 00 [18:46:44]wFMCommunicate OK [18:46:44]SAM_PROTO_SignData done [18:46:44]FM_MakeSignedData done [18:46:44]CreateOFDProtocolMessage [18:46:44]wFMCommunicate request_size=4 [18:46:44]MH_SAM_APDU [18:46:44]CAPDU: 80 11 00 00 [18:46:44]Write to MH i2c: E2 08 00 77 16 80 11 00 00 00 00 00 00 07 [18:46:44]Write i2c OK [18:46:44]MH_I2C_Read... [18:46:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:44]Read from MH i2c: E2 [18:46:44]MH_I2C_Read... [18:46:44]Read from MH i2c: E2 17 00 [18:46:44]MH_I2C_Read... [18:46:44]Read from MH i2c: E2 17 00 77 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 62 [18:46:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:46:44]wFMCommunicate OK [18:46:44]CreateOFDProtocolMessage done [18:46:44]OFDSenderStorePacket 118263 [18:46:44]StoreOFDPacket docnum=118263 [18:46:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 84 AD 04 01 F2 4C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5C 21 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 33 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 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 CE 00 00 00 F4 03 04 00 93 40 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F7 CD 01 00 35 04 06 00 C6 3F 73 AA D6 40 36 0E 7F 0E F7 33 17 30 [18:46:44]CheckFolder [18:46:44]dirname=/storage/ofd_packets [18:46:44]CheckFolder done [18:46:44]ProducePacketName [18:46:44]name=ofd_packets/00118263 [18:46:44]NVStorageSaveData ofd_packets/00118263 [18:46:44]File name is /storage/ofd_packets/00118263 [18:46:44]Write 298 bytes [18:46:44]NVStorageSaveData done [18:46:44]OFDSenderStorePacket done [18:46:44]KKMCreateOFDPacket done [18:46:44]NVStorageSaveData kkm_last_timestamp [18:46:44]File name is /storage/kkm_last_timestamp [18:46:44]Write 4 bytes [18:46:44]NVStorageSaveData done [18:46:44]ExternCall_PrintAddStr [18:46:44]wPrintStart [18:46:44]Write to MH i2c: 01 00 00 78 16 8E [18:46:44]Write i2c OK [18:46:44]MH_I2C_Read... [18:46:44]Read from MH i2c: 01 [18:46:44]MH_I2C_Read... [18:46:44]Read from MH i2c: 01 07 00 [18:46:44]MH_I2C_Read... [18:46:44]Read from MH i2c: 01 07 00 78 16 00 00 00 00 00 FF 0F A3 [18:46:44]RasterBufferAndPrint [18:46:44]line Счет N : (1)949136 [18:46:44]line ИНН: 02508201610067 [18:46:44]line Контрольно-Кассовый Чек [18:46:44]line ПРОДАЖА [18:46:44]line ТРК (МРК, ГНК) : 34 [18:46:44]line Товар: 2710194800 [18:46:44]line ДТ-К-5 [18:46:44]line 8.540 * 76.20 [18:46:44]line = 650.75 [18:46:44]line НДС 12% НСП 1% [18:46:44]line > о реализуемом товаре [18:46:44]line ОКРУГЛЕНИЕ: -0.75 [18:46:44]line ИТОГО: 650.00 [18:46:44]line Внесено: 650.00 [18:46:44]line СДАЧА: 0.00 [18:46:44]line НСП 1% : 5.76 [18:46:44]line НДС 12% : 69.11 [18:46:44]line Наличными: 650.00 [18:46:44]line Безнал.: 0.00 [18:46:44]line Место: АЗС № 134 "Партнер Нефть" [18:46:44]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:46:44]line СНО: Общий режим [18:46:44]line Чек 206 27.07.2024 18:46 [18:46:44]line Смена: 432 ФФД: 1.0 [18:46:44]line ЗНМ: 0300000044 [18:46:44]line РНМ: 0000000000092660 [18:46:44]line Версия ККМ: 001 [18:46:44]line ФМ: 0000000000874939 [18:46:44]line ФД: 118263 [18:46:44]line ФПД: 217975825815104 [18:46:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T184643&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118263&fm=217975825815104&tin=02508201610067®Number=0000000000092660&sum=65000 [18:46:44]OFD Sender: Processing packet 118263 [packets to send 86, broken 85] [18:46:44]ProducePacketName [18:46:44]name=ofd_packets/00118263 [18:46:44]OFD Sender: To server: pG, [18:46:44]CommunicateWithHost lk.salyk.kg:30040 [18:46:44]ConnectInit lk.salyk.kg [18:46:44]written 0, free lines is 4095 [18:46:45]Connected sock=10 [18:46:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 84 AD 04 01 F2 4C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5C 21 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 33 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 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 CE 00 00 00 F4 03 04 00 93 40 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F7 CD 01 00 35 04 06 00 C6 3F 73 AA D6 40 36 0E 7F 0E F7 33 17 30 [18:46:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 6E D7 47 00 51 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F7 CD 01 00 F4 03 04 00 26 EE A4 66 B6 04 01 00 00 7A A6 40 A9 77 10 B8 47 [18:46:45]CommunicateWithHost err = 0 [18:46:45]CheckOFDResponse [18:46:45]1017 (14) - 77093643461234 [18:46:45]1041 (16) - 0000000000874939 [18:46:45]1040 (4) - 118263 [18:46:45]1012 (4) - 27.07.2024 12:55 [18:46:45]1206 (1) - 0 [18:46:45]OFD Sender: Remove packet 118263 [18:46:45]ProducePacketName [18:46:45]name=ofd_packets/00118263 [18:46:45]NVStorageDeleteData [18:46:45]Write to MH i2c: 01 00 00 A2 16 B8 [18:46:45]Write i2c OK [18:46:45]MH_I2C_Read... [18:46:45]Read from MH i2c: 01 [18:46:45]MH_I2C_Read... [18:46:45]Read from MH i2c: 01 07 00 [18:46:45]MH_I2C_Read... [18:46:45]Read from MH i2c: 01 07 00 A2 16 00 00 00 00 00 E6 0C B1 [18:46:45]RasterBufferAndPrint [18:46:45]line [18:46:45]line [18:46:45]line [18:46:45]line [18:46:45]line [18:46:45]written 0, free lines is 3309 [18:46:45]MH_Cut [18:46:45]Write to MH i2c: D1 01 00 A9 16 01 91 [18:46:45]Write i2c OK [18:46:45]MH_I2C_Read... [18:46:45]Read from MH i2c: D1 [18:46:45]MH_I2C_Read... [18:46:45]Read from MH i2c: D1 01 00 [18:46:45]MH_I2C_Read... [18:46:45]Read from MH i2c: D1 01 00 A9 16 00 90 [18:46:45]Write to MH i2c: 01 00 00 AA 16 C0 [18:46:45]Write i2c OK [18:46:45]MH_I2C_Read... [18:46:45]OFD Sender: No OFD packet to send [18:46:46]*** Cut start [18:46:46]*** Partial cut [18:46:46]*** CUTSNS_PIN = 1 [18:46:46]*** CUTSNS_PIN = 0 [18:46:46]*** Brake cut motor [18:46:46]Read from MH i2c: 01 [18:46:46]*** Stop cut motor [18:46:46]*** Cut end [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: 01 07 00 [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: 01 07 00 AA 16 00 00 00 00 00 FF 0F D5 [18:46:46]process_action close_receipt done [18:46:46]requested_data is exist [18:46:46]produce_requested_data [18:46:46]requested_item fm.sn is exist - process it [18:46:46]wFMCommunicate request_size=4 [18:46:46]MH_SAM_APDU [18:46:46]CAPDU: 80 11 00 00 [18:46:46]Write to MH i2c: E2 08 00 AB 16 80 11 00 00 00 00 00 00 3B [18:46:46]Write i2c OK [18:46:46]MH_I2C_Read... [18:46:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:46]Read from MH i2c: E2 [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: E2 17 00 [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: E2 17 00 AB 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 96 [18:46:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:46:46]wFMCommunicate OK [18:46:46]requested_item fd.num is exist - process it [18:46:46]SAM_PROTO_GetFieldsCounters [18:46:46]wFMCommunicate request_size=4 [18:46:46]MH_SAM_APDU [18:46:46]CAPDU: 80 13 00 00 [18:46:46]Write to MH i2c: E2 08 00 AC 16 80 13 00 00 00 00 00 00 3E [18:46:46]Write i2c OK [18:46:46]MH_I2C_Read... [18:46:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:46]Read from MH i2c: E2 [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: E2 62 00 [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: E2 62 00 AC 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F7 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [18:46:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F7 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:46:46]wFMCommunicate OK [18:46:46]SAM_PROTO_GetFieldsCounters done [18:46:46]requested_item shift.num is exist - process it [18:46:46]requested_item shift.opened is exist - process it [18:46:46]req_shift_opened [18:46:46]FM_GetShiftState [18:46:46]SAM_PROTO_GetShiftState [18:46:46]wFMCommunicate request_size=4 [18:46:46]MH_SAM_APDU [18:46:46]CAPDU: 80 13 01 00 [18:46:46]Write to MH i2c: E2 08 00 AD 16 80 13 01 00 00 00 00 00 40 [18:46:46]Write i2c OK [18:46:46]MH_I2C_Read... [18:46:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:46]Read from MH i2c: E2 [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: E2 0E 00 [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: E2 0E 00 AD 16 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 CD [18:46:46]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [18:46:46]wFMCommunicate OK [18:46:46]SAM_PROTO_GetShiftState done [18:46:46]FM_GetShiftState done [18:46:46]req_shift_opened done [18:46:46]requested_item shift.open_date is exist - process it [18:46:46]req_shift_open_date [18:46:46]req_shift_open_date done [18:46:46]produce_requested_data done [18:46:46]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118263,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [18:46:46]process_action_free close_receipt [18:46:46]json_value_free [18:46:46]json_value_free done [18:46:46]process_json_proto returns [18:46:46]Send response to host [18:46:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118263,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [18:46:46]free response buf [18:46:46]execute_script done [18:46:46]execute_script returns [18:46:46]free content buf [18:46:46]Sock 7.Close socket [18:46:47]Sock 7.Thread stoped [18:46:50]OFD Sender: No OFD packet to send [18:46:55]OFD Sender: No OFD packet to send [18:47:00]OFD Sender: No OFD packet to send [18:47:05]OFD Sender: No OFD packet to send [18:47:10]OFD Sender: No OFD packet to send [18:47:15]OFD Sender: No OFD packet to send [18:47:20]OFD Sender: No OFD packet to send [18:47:25]OFD Sender: No OFD packet to send [18:47:30]OFD Sender: No OFD packet to send [18:47:35]OFD Sender: No OFD packet to send [18:47:40]OFD Sender: No OFD packet to send [18:47:45]OFD Sender: No OFD packet to send [18:47:50]OFD Sender: No OFD packet to send [18:47:55]OFD Sender: No OFD packet to send [18:48:00]OFD Sender: No OFD packet to send [18:48:05]OFD Sender: No OFD packet to send [18:48:10]OFD Sender: No OFD packet to send [18:48:15]OFD Sender: No OFD packet to send [18:48:20]OFD Sender: No OFD packet to send [18:48:26]OFD Sender: No OFD packet to send [18:48:31]OFD Sender: No OFD packet to send [18:48:36]OFD Sender: No OFD packet to send [18:48:41]OFD Sender: No OFD packet to send [18:48:46]OFD Sender: No OFD packet to send [18:48:51]OFD Sender: No OFD packet to send [18:48:56]OFD Sender: No OFD packet to send [18:49:01]OFD Sender: No OFD packet to send [18:49:06]OFD Sender: No OFD packet to send [18:49:11]OFD Sender: No OFD packet to send [18:49:16]OFD Sender: No OFD packet to send [18:49:21]OFD Sender: No OFD packet to send [18:49:26]OFD Sender: No OFD packet to send [18:49:31]OFD Sender: No OFD packet to send [18:49:36]OFD Sender: No OFD packet to send [18:49:41]OFD Sender: No OFD packet to send [18:49:46]OFD Sender: No OFD packet to send [18:49:51]OFD Sender: No OFD packet to send [18:49:56]OFD Sender: No OFD packet to send [18:50:01]OFD Sender: No OFD packet to send [18:50:06]OFD Sender: No OFD packet to send [18:50:11]OFD Sender: No OFD packet to send [18:50:16]OFD Sender: No OFD packet to send [18:50:21]OFD Sender: No OFD packet to send [18:50:26]OFD Sender: No OFD packet to send [18:50:31]OFD Sender: No OFD packet to send [18:50:36]OFD Sender: No OFD packet to send [18:50:41]OFD Sender: No OFD packet to send [18:50:46]OFD Sender: No OFD packet to send [18:50:51]OFD Sender: No OFD packet to send [18:50:56]OFD Sender: No OFD packet to send [18:51:01]OFD Sender: No OFD packet to send [18:51:06]OFD Sender: No OFD packet to send [18:51:11]OFD Sender: No OFD packet to send [18:51:16]OFD Sender: No OFD packet to send [18:51:21]OFD Sender: No OFD packet to send [18:51:26]OFD Sender: No OFD packet to send [18:51:31]OFD Sender: No OFD packet to send [18:51:36]OFD Sender: No OFD packet to send [18:51:41]OFD Sender: No OFD packet to send [18:51:46]OFD Sender: No OFD packet to send [18:51:51]OFD Sender: No OFD packet to send [18:51:56]OFD Sender: No OFD packet to send [18:52:01]OFD Sender: No OFD packet to send [18:52:06]OFD Sender: No OFD packet to send [18:52:11]OFD Sender: No OFD packet to send [18:52:16]OFD Sender: No OFD packet to send [18:52:21]OFD Sender: No OFD packet to send [18:52:26]OFD Sender: No OFD packet to send [18:52:31]OFD Sender: No OFD packet to send [18:52:36]OFD Sender: No OFD packet to send [18:52:41]OFD Sender: No OFD packet to send [18:52:46]OFD Sender: No OFD packet to send [18:52:51]OFD Sender: No OFD packet to send [18:52:56]OFD Sender: No OFD packet to send [18:53:01]OFD Sender: No OFD packet to send [18:53:06]OFD Sender: No OFD packet to send [18:53:10]accept exits with 9 [18:53:10]New connection [18:53:10]New thread 3067096420 created [18:53:10]Thread 3066953060 joined [18:53:10]Waiting for new connection... [18:53:10] Sock 9.Parse request [18:53:10]Sock 9.Check first char [18:53:10]Sock 9.First char is OK [18:53:10]request: POST /json_proto HTTP/1.0 [18:53:10]Method: POST [18:53:10]URL: /json_proto [18:53:10]Method is POST - this is cgi request [18:53:10]url: /json_proto [18:53:10]query_string will be loaded in cgi processing [18:53:10]execute_cgi json_proto POST (null) [18:53:10]execute_cgi path=json_proto method=POST [18:53:10]POST find Content-Length [18:53:10]Host: 172.17.45.7:8080 [18:53:10]Content-Length: 682 [18:53:10]Content-Type: application/json [18:53:10] [18:53:10]POST finish read [18:53:10]Found Content-Length = 682 [18:53:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:53:10]execute_script... [18:53: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)949137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:53:10]POST & json_proto [18:53:10]process_json_proto [18:53:10]json parsed OK: [18:53:10]protocol is kg_v1.0 [18:53:10]action value=close_receipt [18:53:10]process_action close_receipt [18:53:10]cmd_close_receipt [18:53:10]MH_GetDate [18:53:10]Write to MH i2c: F0 00 00 AE 16 B3 [18:53:10]Write i2c OK [18:53:10]MH_I2C_Read... [18:53:10]Read from MH i2c: F0 [18:53:10]MH_I2C_Read... [18:53:10]Read from MH i2c: F0 09 00 [18:53:10]MH_I2C_Read... [18:53:11]Read from MH i2c: F0 09 00 AE 16 00 17 42 A5 66 90 0F 3E 66 63 [18:53:11]GetLastDocTimeStamp 1722106003 [18:53:11]current date 1722106391 [18:53:11]FM_GetShiftState [18:53:11]SAM_PROTO_GetShiftState [18:53:11]wFMCommunicate request_size=4 [18:53:11]MH_SAM_APDU [18:53:11]CAPDU: 80 13 01 00 [18:53:11]Write to MH i2c: E2 08 00 AF 16 80 13 01 00 00 00 00 00 42 [18:53:11]Write i2c OK [18:53:11]MH_I2C_Read... [18:53:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:11]Read from MH i2c: E2 [18:53:11]MH_I2C_Read... [18:53:11]Read from MH i2c: E2 0E 00 [18:53:11]MH_I2C_Read... [18:53:11]Read from MH i2c: E2 0E 00 AF 16 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 CF [18:53:11]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [18:53:11]wFMCommunicate OK [18:53:11]SAM_PROTO_GetShiftState done [18:53:11]FM_GetShiftState done [18:53:11]opened in 1722038845 [18:53:11]opened+sec_in_day 1722125245 [18:53:11]quantity*price = 100005 [18:53:11]sum+1 = 100006 [18:53:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 207 27.07.2024 18:53 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118264 ФПД: 69573487344802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T185312&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118264&fm=69573487344802&tin=02508201610067®Number=0000000000092660&sum=100000 [18:53:12]StoreToDocumentArchive [18:53:12]shift 432 fd 118264 [18:53:12]save to /storage/0432/doc_00118264 [18:53:12]save last doc name /storage/0432/doc_00118264 to /storage/kkm_last_doc_name [18:53:12]save OK [18:53:12]Clear old archive folders... [18:53:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:53:12]tlvbuf is 01DC97B0 [18:53:12]SAM_PROTO_ClearQueue [18:53:12]wFMCommunicate request_size=4 [18:53:12]MH_SAM_APDU [18:53:12]CAPDU: 80 09 00 00 [18:53:12]Write to MH i2c: E2 08 00 BC 16 80 09 00 00 00 00 00 00 44 [18:53:12]Write i2c OK [18:53:12]MH_I2C_Read... [18:53:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:53:12]Read from MH i2c: E2 [18:53:12]MH_I2C_Read... [18:53:12]Read from MH i2c: E2 03 00 [18:53:12]MH_I2C_Read... [18:53:12]Read from MH i2c: E2 03 00 BC 16 00 90 00 46 [18:53:12]RAPDU: 90 00 [18:53:12]wFMCommunicate OK [18:53:12]SAM_PROTO_ClearQueue done [18:53:12]KKMCreateOFDPacket [18:53:12]OFDProtocolAddRootSTLVToBuf [18:53:12]FM_MakeSignedData [18:53:12]FM_MakeSignedData [18:53:12]SAM_PROTO_SignData [18:53:12]wFMCommunicate request_size=4 [18:53:12]MH_SAM_APDU [18:53:12]CAPDU: 80 0D 01 02 [18:53:12]Write to MH i2c: E2 08 00 BD 16 80 0D 01 02 00 00 00 00 4C [18:53:12]Write i2c OK [18:53:12]MH_I2C_Read... [18:53:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:53:12]Read from MH i2c: E2 [18:53:12]MH_I2C_Read... [18:53:12]Read from MH i2c: E2 03 00 [18:53:12]MH_I2C_Read... [18:53:12]Read from MH i2c: E2 03 00 BD 16 00 90 00 47 [18:53:12]RAPDU: 90 00 [18:53:12]wFMCommunicate OK [18:53:12]wFMCommunicate request_size=255 [18:53:12]MH_SAM_APDU [18:53: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 18 42 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F8 CD 01 00 35 04 06 00 3F [18:53:12]Write to MH i2c: E2 02 01 BE 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 18 42 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F8 CD 01 00 35 04 06 00 3F 00 00 49 [18:53:12]Write i2c OK [18:53:12]MH_I2C_Read... [18:53:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:12]Read from MH i2c: E2 [18:53:12]MH_I2C_Read... [18:53:12]Read from MH i2c: E2 03 00 [18:53:12]MH_I2C_Read... [18:53:12]Read from MH i2c: E2 03 00 BE 16 00 90 00 48 [18:53:12]RAPDU: 90 00 [18:53:12]wFMCommunicate OK [18:53:12]wFMCommunicate request_size=10 [18:53:12]MH_SAM_APDU [18:53:12]CAPDU: 80 0D 02 02 05 46 D6 FF BC A2 [18:53:12]Write to MH i2c: E2 0D 00 BF 16 80 0D 02 02 05 00 46 D6 FF BC A2 00 00 D2 [18:53:12]Write i2c OK [18:53:12]MH_I2C_Read... [18:53:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:12]Read from MH i2c: E2 [18:53:12]MH_I2C_Read... [18:53:12]Read from MH i2c: E2 03 00 [18:53:12]MH_I2C_Read... [18:53:12]Read from MH i2c: E2 03 00 BF 16 00 90 00 49 [18:53:12]RAPDU: 90 00 [18:53:12]wFMCommunicate OK [18:53:12]wFMCommunicate request_size=4 [18:53:12]MH_SAM_APDU [18:53:12]CAPDU: 80 0D 03 02 [18:53:12]Write to MH i2c: E2 08 00 C0 16 80 0D 03 02 00 00 00 00 51 [18:53:12]Write i2c OK [18:53:12]MH_I2C_Read... [18:53:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:53:12]Read from MH i2c: E2 [18:53:12]MH_I2C_Read... [18:53:12]Read from MH i2c: E2 0B 00 [18:53:12]MH_I2C_Read... [18:53:12]Read from MH i2c: E2 0B 00 C0 16 00 06 CF B0 1C 58 69 02 3F 90 00 F5 [18:53:12]RAPDU: 06 CF B0 1C 58 69 02 3F 90 00 [18:53:12]wFMCommunicate OK [18:53:12]SAM_PROTO_SignData done [18:53:12]FM_MakeSignedData done [18:53:12]CreateOFDProtocolMessage [18:53:12]wFMCommunicate request_size=4 [18:53:12]MH_SAM_APDU [18:53:12]CAPDU: 80 11 00 00 [18:53:12]Write to MH i2c: E2 08 00 C1 16 80 11 00 00 00 00 00 00 51 [18:53:12]Write i2c OK [18:53:12]MH_I2C_Read... [18:53:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:12]Read from MH i2c: E2 [18:53:12]MH_I2C_Read... [18:53:12]Read from MH i2c: E2 17 00 [18:53:12]MH_I2C_Read... [18:53:12]Read from MH i2c: E2 17 00 C1 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AC [18:53:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:53:12]wFMCommunicate OK [18:53:12]CreateOFDProtocolMessage done [18:53:12]OFDSenderStorePacket 118264 [18:53:12]StoreOFDPacket docnum=118264 [18:53:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 65 25 07 01 17 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 18 42 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F8 CD 01 00 35 04 06 00 3F 46 D6 FF BC A2 06 CF B0 1C 58 69 02 3F [18:53:12]CheckFolder [18:53:12]dirname=/storage/ofd_packets [18:53:12]CheckFolder done [18:53:12]ProducePacketName [18:53:12]name=ofd_packets/00118264 [18:53:12]NVStorageSaveData ofd_packets/00118264 [18:53:12]File name is /storage/ofd_packets/00118264 [18:53:12]Write 301 bytes [18:53:12]NVStorageSaveData done [18:53:12]OFDSenderStorePacket done [18:53:12]KKMCreateOFDPacket done [18:53:12]NVStorageSaveData kkm_last_timestamp [18:53:12]File name is /storage/kkm_last_timestamp [18:53:12]Write 4 bytes [18:53:12]NVStorageSaveData done [18:53:12]ExternCall_PrintAddStr [18:53:12]wPrintStart [18:53:12]Write to MH i2c: 01 00 00 C2 16 D8 [18:53:12]Write i2c OK [18:53:12]MH_I2C_Read... [18:53:12]Read from MH i2c: 01 [18:53:12]MH_I2C_Read... [18:53:12]Read from MH i2c: 01 07 00 [18:53:12]MH_I2C_Read... [18:53:12]Read from MH i2c: 01 07 00 C2 16 00 00 00 00 00 FF 0F ED [18:53:12]RasterBufferAndPrint [18:53:12]line Счет N : (1)949137 [18:53:12]line ИНН: 02508201610067 [18:53:12]line Контрольно-Кассовый Чек [18:53:12]line ПРОДАЖА [18:53:12]line ТРК (МРК, ГНК) : 41 [18:53:12]line Товар: 2710124130 [18:53:12]line Аи-92-К-4 [18:53:12]line 14.750 * 67.80 [18:53:12]line = 1000.05 [18:53:12]line НДС 12% НСП 1% [18:53:12]line > о реализуемом товаре [18:53:12]line ОКРУГЛЕНИЕ: -0.05 [18:53:12]line ИТОГО: 1000.00 [18:53:12]line Внесено: 1000.00 [18:53:12]line СДАЧА: 0.00 [18:53:12]line НСП 1% : 8.85 [18:53:12]line НДС 12% : 106.20 [18:53:12]line Наличными: 1000.00 [18:53:12]line Безнал.: 0.00 [18:53:12]line Место: АЗС № 134 "Партнер Нефть" [18:53:12]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:53:12]line СНО: Общий режим [18:53:12]line Чек 207 27.07.2024 18:53 [18:53:12]line Смена: 432 ФФД: 1.0 [18:53:12]line ЗНМ: 0300000044 [18:53:12]line РНМ: 0000000000092660 [18:53:12]line Версия ККМ: 001 [18:53:12]line ФМ: 0000000000874939 [18:53:12]line ФД: 118264 [18:53:13]line ФПД: 69573487344802 [18:53:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T185312&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118264&fm=69573487344802&tin=02508201610067®Number=0000000000092660&sum=100000 [18:53:13]OFD Sender: Processing packet 118264 [packets to send 86, broken 85] [18:53:13]ProducePacketName [18:53:13]name=ofd_packets/00118264 [18:53:13]OFD Sender: To server: pG, [18:53:13]CommunicateWithHost lk.salyk.kg:30040 [18:53:13]ConnectInit lk.salyk.kg [18:53:13]written 0, free lines is 4095 [18:53:13]Connected sock=10 [18:53:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 65 25 07 01 17 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 18 42 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F8 CD 01 00 35 04 06 00 3F 46 D6 FF BC A2 06 CF B0 1C 58 69 02 3F [18:53:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 AC 08 47 00 B5 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F8 CD 01 00 F4 03 04 00 AA EF A4 66 B6 04 01 00 00 DE C1 E8 24 78 80 A5 97 [18:53:13]CommunicateWithHost err = 0 [18:53:13]CheckOFDResponse [18:53:13]1017 (14) - 77093643461234 [18:53:13]1041 (16) - 0000000000874939 [18:53:13]1040 (4) - 118264 [18:53:13]1012 (4) - 27.07.2024 13:01 [18:53:13]1206 (1) - 0 [18:53:13]OFD Sender: Remove packet 118264 [18:53:13]ProducePacketName [18:53:13]name=ofd_packets/00118264 [18:53:13]NVStorageDeleteData [18:53:13]Write to MH i2c: 01 00 00 EC 16 02 [18:53:13]Write i2c OK [18:53:13]MH_I2C_Read... [18:53:13]Read from MH i2c: 01 [18:53:13]MH_I2C_Read... [18:53:13]Read from MH i2c: 01 07 00 [18:53:13]MH_I2C_Read... [18:53:13]Read from MH i2c: 01 07 00 EC 16 00 00 00 00 00 DE 0C F3 [18:53:13]RasterBufferAndPrint [18:53:13]line [18:53:13]line [18:53:13]line [18:53:13]line [18:53:13]line [18:53:13]written 0, free lines is 3298 [18:53:13]MH_Cut [18:53:13]Write to MH i2c: D1 01 00 F3 16 01 DB [18:53:13]Write i2c OK [18:53:13]MH_I2C_Read... [18:53:13]Read from MH i2c: D1 [18:53:13]MH_I2C_Read... [18:53:13]Read from MH i2c: D1 01 00 [18:53:13]MH_I2C_Read... [18:53:13]Read from MH i2c: D1 01 00 F3 16 00 DA [18:53:13]Write to MH i2c: 01 00 00 F4 16 0A [18:53:13]Write i2c OK [18:53:13]MH_I2C_Read... [18:53:13]OFD Sender: No OFD packet to send [18:53:14]*** Cut start [18:53:14]*** Partial cut [18:53:14]*** CUTSNS_PIN = 1 [18:53:14]*** CUTSNS_PIN = 0 [18:53:14]*** Brake cut motor [18:53:14]Read from MH i2c: 01 [18:53:14]MH_I2C_Read... [18:53:14]*** Stop cut motor [18:53:14]*** Cut end [18:53:14]Read from MH i2c: 01 07 00 [18:53:14]MH_I2C_Read... [18:53:14]Read from MH i2c: 01 07 00 F4 16 00 00 00 00 00 FF 0F 1F [18:53:14]process_action close_receipt done [18:53:14]requested_data is exist [18:53:14]produce_requested_data [18:53:14]requested_item fm.sn is exist - process it [18:53:14]wFMCommunicate request_size=4 [18:53:14]MH_SAM_APDU [18:53:14]CAPDU: 80 11 00 00 [18:53:14]Write to MH i2c: E2 08 00 F5 16 80 11 00 00 00 00 00 00 85 [18:53:14]Write i2c OK [18:53:14]MH_I2C_Read... [18:53:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:14]Read from MH i2c: E2 [18:53:14]MH_I2C_Read... [18:53:14]Read from MH i2c: E2 17 00 [18:53:14]MH_I2C_Read... [18:53:14]Read from MH i2c: E2 17 00 F5 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E0 [18:53:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:53:14]wFMCommunicate OK [18:53:14]requested_item fd.num is exist - process it [18:53:14]SAM_PROTO_GetFieldsCounters [18:53:14]wFMCommunicate request_size=4 [18:53:14]MH_SAM_APDU [18:53:14]CAPDU: 80 13 00 00 [18:53:14]Write to MH i2c: E2 08 00 F6 16 80 13 00 00 00 00 00 00 88 [18:53:14]Write i2c OK [18:53:14]MH_I2C_Read... [18:53:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:15]Read from MH i2c: E2 [18:53:15]MH_I2C_Read... [18:53:15]Read from MH i2c: E2 62 00 [18:53:15]MH_I2C_Read... [18:53:15]Read from MH i2c: E2 62 00 F6 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F8 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [18:53:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F8 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:53:15]wFMCommunicate OK [18:53:15]SAM_PROTO_GetFieldsCounters done [18:53:15]requested_item shift.num is exist - process it [18:53:15]requested_item shift.opened is exist - process it [18:53:15]req_shift_opened [18:53:15]FM_GetShiftState [18:53:15]SAM_PROTO_GetShiftState [18:53:15]wFMCommunicate request_size=4 [18:53:15]MH_SAM_APDU [18:53:15]CAPDU: 80 13 01 00 [18:53:15]Write to MH i2c: E2 08 00 F7 16 80 13 01 00 00 00 00 00 8A [18:53:15]Write i2c OK [18:53:15]MH_I2C_Read... [18:53:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:15]Read from MH i2c: E2 [18:53:15]MH_I2C_Read... [18:53:15]Read from MH i2c: E2 0E 00 [18:53:15]MH_I2C_Read... [18:53:15]Read from MH i2c: E2 0E 00 F7 16 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 17 [18:53:15]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [18:53:15]wFMCommunicate OK [18:53:15]SAM_PROTO_GetShiftState done [18:53:15]FM_GetShiftState done [18:53:15]req_shift_opened done [18:53:15]requested_item shift.open_date is exist - process it [18:53:15]req_shift_open_date [18:53:15]req_shift_open_date done [18:53:15]produce_requested_data done [18:53:15]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118264,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [18:53:15]process_action_free close_receipt [18:53:15]json_value_free [18:53:15]json_value_free done [18:53:15]process_json_proto returns [18:53:15]Send response to host [18:53:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118264,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [18:53:15]free response buf [18:53:15]execute_script done [18:53:15]execute_script returns [18:53:15]free content buf [18:53:15]Sock 9.Close socket [18:53:15]Sock 9.Thread stoped [18:53:18]OFD Sender: No OFD packet to send [18:53:23]OFD Sender: No OFD packet to send [18:53:28]OFD Sender: No OFD packet to send [18:53:33]OFD Sender: No OFD packet to send [18:53:38]OFD Sender: No OFD packet to send [18:53:43]OFD Sender: No OFD packet to send [18:53:48]OFD Sender: No OFD packet to send [18:53:53]OFD Sender: No OFD packet to send [18:53:58]OFD Sender: No OFD packet to send [18:54:03]OFD Sender: No OFD packet to send [18:54:08]OFD Sender: No OFD packet to send [18:54:13]OFD Sender: No OFD packet to send [18:54:18]OFD Sender: No OFD packet to send [18:54:23]OFD Sender: No OFD packet to send [18:54:28]OFD Sender: No OFD packet to send [18:54:33]OFD Sender: No OFD packet to send [18:54:38]OFD Sender: No OFD packet to send [18:54:43]OFD Sender: No OFD packet to send [18:54:48]OFD Sender: No OFD packet to send [18:54:53]OFD Sender: No OFD packet to send [18:54:58]OFD Sender: No OFD packet to send [18:55:03]OFD Sender: No OFD packet to send [18:55:08]OFD Sender: No OFD packet to send [18:55:13]OFD Sender: No OFD packet to send [18:55:18]OFD Sender: No OFD packet to send [18:55:23]OFD Sender: No OFD packet to send [18:55:28]OFD Sender: No OFD packet to send [18:55:33]OFD Sender: No OFD packet to send [18:55:38]OFD Sender: No OFD packet to send [18:55:43]OFD Sender: No OFD packet to send [18:55:48]OFD Sender: No OFD packet to send [18:55:53]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:39]OFD Sender: No OFD packet to send [18:56:44]OFD Sender: No OFD packet to send [18:56:49]OFD Sender: No OFD packet to send [18:56:54]OFD Sender: No OFD packet to send [18:56:59]OFD Sender: No OFD packet to send [18:57:04]OFD Sender: No OFD packet to send [18:57:09]OFD Sender: No OFD packet to send [18:57:14]OFD Sender: No OFD packet to send [18:57:19]OFD Sender: No OFD packet to send [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 [18:57:54]OFD Sender: No OFD packet to send [18:57:59]OFD Sender: No OFD packet to send [18:58:04]OFD Sender: No OFD packet to send [18:58:09]OFD Sender: No OFD packet to send [18:58:14]OFD Sender: No OFD packet to send [18:58:19]OFD Sender: No OFD packet to send [18:58:24]OFD Sender: No OFD packet to send [18:58:29]OFD Sender: No OFD packet to send [18:58:34]OFD Sender: No OFD packet to send [18:58:39]OFD Sender: No OFD packet to send [18:58:44]OFD Sender: No OFD packet to send [18:58:49]OFD Sender: No OFD packet to send [18:58:54]OFD Sender: No OFD packet to send [18:58:56]accept exits with 7 [18:58:56]New connection [18:58:56]New thread 3066953060 created [18:58:56]Thread 3067096420 joined [18:58:56]Waiting for new connection... [18:58:56] Sock 7.Parse request [18:58:56]Sock 7.Check first char [18:58:56]Sock 7.First char is OK [18:58:56]request: POST /json_proto HTTP/1.0 [18:58:56]Method: POST [18:58:56]URL: /json_proto [18:58:56]Method is POST - this is cgi request [18:58:56]url: /json_proto [18:58:56]query_string will be loaded in cgi processing [18:58:56]execute_cgi json_proto POST (null) [18:58:56]execute_cgi path=json_proto method=POST [18:58:56]POST find Content-Length [18:58:56]Host: 172.17.45.7:8080 [18:58:56]Content-Length: 677 [18:58:56]Content-Type: application/json [18:58:56] [18:58:56]POST finish read [18:58:56]Found Content-Length = 677 [18:58:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:56]execute_script... [18:58:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:56]POST & json_proto [18:58:56]process_json_proto [18:58:56]json parsed OK: [18:58:56]protocol is kg_v1.0 [18:58:56]action value=close_receipt [18:58:56]process_action close_receipt [18:58:56]cmd_close_receipt [18:58:56]MH_GetDate [18:58:56]Write to MH i2c: F0 00 00 F8 16 FD [18:58:56]Write i2c OK [18:58:56]MH_I2C_Read... [18:58:56]Read from MH i2c: F0 [18:58:56]MH_I2C_Read... [18:58:56]Read from MH i2c: F0 09 00 [18:58:56]MH_I2C_Read... [18:58:56]Read from MH i2c: F0 09 00 F8 16 00 71 43 A5 66 90 0F 3E 66 08 [18:58:56]GetLastDocTimeStamp 1722106392 [18:58:56]current date 1722106737 [18:58:56]FM_GetShiftState [18:58:56]SAM_PROTO_GetShiftState [18:58:56]wFMCommunicate request_size=4 [18:58:56]MH_SAM_APDU [18:58:56]CAPDU: 80 13 01 00 [18:58:56]Write to MH i2c: E2 08 00 F9 16 80 13 01 00 00 00 00 00 8C [18:58:56]Write i2c OK [18:58:56]MH_I2C_Read... [18:58:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:56]Read from MH i2c: E2 [18:58:56]MH_I2C_Read... [18:58:56]Read from MH i2c: E2 0E 00 [18:58:56]MH_I2C_Read... [18:58:56]Read from MH i2c: E2 0E 00 F9 16 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 19 [18:58:56]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [18:58:56]wFMCommunicate OK [18:58:56]SAM_PROTO_GetShiftState done [18:58:56]FM_GetShiftState done [18:58:56]opened in 1722038845 [18:58:56]opened+sec_in_day 1722125245 [18:58:56]quantity*price = 20001 [18:58:56]sum+1 = 20002 [18:58:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 208 27.07.2024 18:58 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118265 ФПД: 55552884853666 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T185857&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118265&fm=55552884853666&tin=02508201610067®Number=0000000000092660&sum=20000 [18:58:57]StoreToDocumentArchive [18:58:57]shift 432 fd 118265 [18:58:57]save to /storage/0432/doc_00118265 [18:58:57]save last doc name /storage/0432/doc_00118265 to /storage/kkm_last_doc_name [18:58:57]save OK [18:58:57]Clear old archive folders... [18:58:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:58:57]tlvbuf is 01DBE150 [18:58:57]SAM_PROTO_ClearQueue [18:58:57]wFMCommunicate request_size=4 [18:58:57]MH_SAM_APDU [18:58:57]CAPDU: 80 09 00 00 [18:58:57]Write to MH i2c: E2 08 00 06 17 80 09 00 00 00 00 00 00 8F [18:58:57]Write i2c OK [18:58:57]MH_I2C_Read... [18:58:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:58:57]Read from MH i2c: E2 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: E2 03 00 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: E2 03 00 06 17 00 90 00 91 [18:58:57]RAPDU: 90 00 [18:58:57]wFMCommunicate OK [18:58:57]SAM_PROTO_ClearQueue done [18:58:57]KKMCreateOFDPacket [18:58:57]OFDProtocolAddRootSTLVToBuf [18:58:57]FM_MakeSignedData [18:58:57]FM_MakeSignedData [18:58:57]SAM_PROTO_SignData [18:58:57]wFMCommunicate request_size=4 [18:58:57]MH_SAM_APDU [18:58:57]CAPDU: 80 0D 01 02 [18:58:57]Write to MH i2c: E2 08 00 07 17 80 0D 01 02 00 00 00 00 97 [18:58:57]Write i2c OK [18:58:57]MH_I2C_Read... [18:58:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:58:57]Read from MH i2c: E2 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: E2 03 00 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: E2 03 00 07 17 00 90 00 92 [18:58:57]RAPDU: 90 00 [18:58:57]wFMCommunicate OK [18:58:57]wFMCommunicate request_size=255 [18:58:57]MH_SAM_APDU [18:58: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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 71 43 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F9 CD 01 00 35 04 06 00 32 [18:58:57]Write to MH i2c: E2 02 01 08 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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 71 43 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F9 CD 01 00 35 04 06 00 32 00 00 56 [18:58:57]Write i2c OK [18:58:57]MH_I2C_Read... [18:58:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:58]Read from MH i2c: E2 [18:58:58]MH_I2C_Read... [18:58:58]Read from MH i2c: E2 03 00 [18:58:58]MH_I2C_Read... [18:58:58]Read from MH i2c: E2 03 00 08 17 00 90 00 93 [18:58:58]RAPDU: 90 00 [18:58:58]wFMCommunicate OK [18:58:58]wFMCommunicate request_size=10 [18:58:58]MH_SAM_APDU [18:58:58]CAPDU: 80 0D 02 02 05 86 69 F7 CB A2 [18:58:58]Write to MH i2c: E2 0D 00 09 17 80 0D 02 02 05 00 86 69 F7 CB A2 00 00 F7 [18:58:58]Write i2c OK [18:58:58]MH_I2C_Read... [18:58:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:58]Read from MH i2c: E2 [18:58:58]MH_I2C_Read... [18:58:58]Read from MH i2c: E2 03 00 [18:58:58]MH_I2C_Read... [18:58:58]Read from MH i2c: E2 03 00 09 17 00 90 00 94 [18:58:58]RAPDU: 90 00 [18:58:58]wFMCommunicate OK [18:58:58]wFMCommunicate request_size=4 [18:58:58]MH_SAM_APDU [18:58:58]CAPDU: 80 0D 03 02 [18:58:58]Write to MH i2c: E2 08 00 0A 17 80 0D 03 02 00 00 00 00 9C [18:58:58]Write i2c OK [18:58:58]MH_I2C_Read... [18:58:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:58:58]Read from MH i2c: E2 [18:58:58]MH_I2C_Read... [18:58:58]Read from MH i2c: E2 0B 00 [18:58:58]MH_I2C_Read... [18:58:58]Read from MH i2c: E2 0B 00 0A 17 00 2C A8 92 9A 09 56 C8 8C 90 00 50 [18:58:58]RAPDU: 2C A8 92 9A 09 56 C8 8C 90 00 [18:58:58]wFMCommunicate OK [18:58:58]SAM_PROTO_SignData done [18:58:58]FM_MakeSignedData done [18:58:58]CreateOFDProtocolMessage [18:58:58]wFMCommunicate request_size=4 [18:58:58]MH_SAM_APDU [18:58:58]CAPDU: 80 11 00 00 [18:58:58]Write to MH i2c: E2 08 00 0B 17 80 11 00 00 00 00 00 00 9C [18:58:58]Write i2c OK [18:58:58]MH_I2C_Read... [18:58:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:58]Read from MH i2c: E2 [18:58:58]MH_I2C_Read... [18:58:58]Read from MH i2c: E2 17 00 [18:58:58]MH_I2C_Read... [18:58:58]Read from MH i2c: E2 17 00 0B 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F7 [18:58:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:58:58]wFMCommunicate OK [18:58:58]CreateOFDProtocolMessage done [18:58:58]OFDSenderStorePacket 118265 [18:58:58]StoreOFDPacket docnum=118265 [18:58:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C4 39 07 01 DC 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 71 43 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F9 CD 01 00 35 04 06 00 32 86 69 F7 CB A2 2C A8 92 9A 09 56 C8 8C [18:58:58]CheckFolder [18:58:58]dirname=/storage/ofd_packets [18:58:58]CheckFolder done [18:58:58]ProducePacketName [18:58:58]name=ofd_packets/00118265 [18:58:58]NVStorageSaveData ofd_packets/00118265 [18:58:58]File name is /storage/ofd_packets/00118265 [18:58:58]Write 301 bytes [18:58:58]NVStorageSaveData done [18:58:58]OFDSenderStorePacket done [18:58:58]KKMCreateOFDPacket done [18:58:58]NVStorageSaveData kkm_last_timestamp [18:58:58]File name is /storage/kkm_last_timestamp [18:58:58]Write 4 bytes [18:58:58]NVStorageSaveData done [18:58:58]OFD Sender: Processing packet 118265 [packets to send 86, broken 85] [18:58:58]ProducePacketName [18:58:58]name=ofd_packets/00118265 [18:58:58]OFD Sender: To server: pG, [18:58:58]CommunicateWithHost lk.salyk.kg:30040 [18:58:58]ConnectInit lk.salyk.kg [18:58:58]ExternCall_PrintAddStr [18:58:58]wPrintStart [18:58:58]Write to MH i2c: 01 00 00 0C 17 23 [18:58:58]Write i2c OK [18:58:58]MH_I2C_Read... [18:58:58]Read from MH i2c: 01 [18:58:58]MH_I2C_Read... [18:58:58]Read from MH i2c: 01 07 00 [18:58:58]MH_I2C_Read... [18:58:58]Read from MH i2c: 01 07 00 0C 17 00 00 00 00 00 FF 0F 38 [18:58:58]RasterBufferAndPrint [18:58:58]line Счет N : (1)949138 [18:58:58]line ИНН: 02508201610067 [18:58:58]line Контрольно-Кассовый Чек [18:58:58]line ПРОДАЖА [18:58:58]line ТРК (МРК, ГНК) : 41 [18:58:58]line Товар: 2710124130 [18:58:58]line Аи-92-К-4 [18:58:58]line 2.950 * 67.80 [18:58:58]line = 200.01 [18:58:58]line НДС 12% НСП 1% [18:58:58]line > о реализуемом товаре [18:58:58]line ОКРУГЛЕНИЕ: -0.01 [18:58:58]line ИТОГО: 200.00 [18:58:58]line Внесено: 200.00 [18:58:58]line СДАЧА: 0.00 [18:58:58]line НСП 1% : 1.77 [18:58:58]line НДС 12% : 21.24 [18:58:58]line Наличными: 200.00 [18:58:58]line Безнал.: 0.00 [18:58:58]line Место: АЗС № 134 "Партнер Нефть" [18:58:58]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:58:58]line СНО: Общий режим [18:58:58]line Чек 208 27.07.2024 18:58 [18:58:58]line Смена: 432 ФФД: 1.0 [18:58:58]line ЗНМ: 0300000044 [18:58:58]line РНМ: 0000000000092660 [18:58:58]line Версия ККМ: 001 [18:58:58]line ФМ: 0000000000874939 [18:58:58]line ФД: 118265 [18:58:58]line ФПД: 55552884853666 [18:58:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T185857&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118265&fm=55552884853666&tin=02508201610067®Number=0000000000092660&sum=20000 [18:58:58]Connected sock=11 [18:58:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C4 39 07 01 DC 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 71 43 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F9 CD 01 00 35 04 06 00 32 86 69 F7 CB A2 2C A8 92 9A 09 56 C8 8C [18:58:58]written 0, free lines is 4095 [18:58:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 BE D5 47 00 59 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F9 CD 01 00 F4 03 04 00 03 F1 A4 66 B6 04 01 00 00 BB 03 1E 12 CC CC 38 BC [18:58:58]CommunicateWithHost err = 0 [18:58:58]CheckOFDResponse [18:58:58]1017 (14) - 77093643461234 [18:58:58]1041 (16) - 0000000000874939 [18:58:58]1040 (4) - 118265 [18:58:58]1012 (4) - 27.07.2024 13:07 [18:58:58]1206 (1) - 0 [18:58:58]OFD Sender: Remove packet 118265 [18:58:58]ProducePacketName [18:58:58]name=ofd_packets/00118265 [18:58:58]NVStorageDeleteData [18:58:59]Write to MH i2c: 01 00 00 36 17 4D [18:58:59]Write i2c OK [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: 01 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: 01 07 00 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: 01 07 00 36 17 00 00 00 00 00 DC 0C 3C [18:58:59]RasterBufferAndPrint [18:58:59]line [18:58:59]line [18:58:59]line [18:58:59]line [18:58:59]line [18:58:59]written 0, free lines is 3298 [18:58:59]MH_Cut [18:58:59]Write to MH i2c: D1 01 00 3D 17 01 26 [18:58:59]Write i2c OK [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: D1 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: D1 01 00 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: D1 01 00 3D 17 00 25 [18:58:59]Write to MH i2c: 01 00 00 3E 17 55 [18:58:59]Write i2c OK [18:58:59]MH_I2C_Read... [18:58:59]OFD Sender: No OFD packet to send [18:58:59]*** Cut start [18:58:59]*** Partial cut [18:58:59]*** CUTSNS_PIN = 1 [18:58:59]*** CUTSNS_PIN = 0 [18:59:00]*** Brake cut motor [18:59:00]Read from MH i2c: 01 [18:59:00]MH_I2C_Read... [18:59:00]*** Stop cut motor [18:59:00]*** Cut end [18:59:00]Read from MH i2c: 01 07 00 [18:59:00]MH_I2C_Read... [18:59:00]Read from MH i2c: 01 07 00 3E 17 00 00 00 00 00 FF 0F 6A [18:59:00]process_action close_receipt done [18:59:00]requested_data is exist [18:59:00]produce_requested_data [18:59:00]requested_item fm.sn is exist - process it [18:59:00]wFMCommunicate request_size=4 [18:59:00]MH_SAM_APDU [18:59:00]CAPDU: 80 11 00 00 [18:59:00]Write to MH i2c: E2 08 00 3F 17 80 11 00 00 00 00 00 00 D0 [18:59:00]Write i2c OK [18:59:00]MH_I2C_Read... [18:59:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:00]Read from MH i2c: E2 [18:59:00]MH_I2C_Read... [18:59:00]Read from MH i2c: E2 17 00 [18:59:00]MH_I2C_Read... [18:59:00]Read from MH i2c: E2 17 00 3F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2B [18:59:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:59:00]wFMCommunicate OK [18:59:00]requested_item fd.num is exist - process it [18:59:00]SAM_PROTO_GetFieldsCounters [18:59:00]wFMCommunicate request_size=4 [18:59:00]MH_SAM_APDU [18:59:00]CAPDU: 80 13 00 00 [18:59:00]Write to MH i2c: E2 08 00 40 17 80 13 00 00 00 00 00 00 D3 [18:59:00]Write i2c OK [18:59:00]MH_I2C_Read... [18:59:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:00]Read from MH i2c: E2 [18:59:00]MH_I2C_Read... [18:59:00]Read from MH i2c: E2 62 00 [18:59:00]MH_I2C_Read... [18:59:00]Read from MH i2c: E2 62 00 40 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F9 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [18:59:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F9 CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:59:00]wFMCommunicate OK [18:59:00]SAM_PROTO_GetFieldsCounters done [18:59:00]requested_item shift.num is exist - process it [18:59:00]requested_item shift.opened is exist - process it [18:59:00]req_shift_opened [18:59:00]FM_GetShiftState [18:59:00]SAM_PROTO_GetShiftState [18:59:00]wFMCommunicate request_size=4 [18:59:00]MH_SAM_APDU [18:59:00]CAPDU: 80 13 01 00 [18:59:00]Write to MH i2c: E2 08 00 41 17 80 13 01 00 00 00 00 00 D5 [18:59:00]Write i2c OK [18:59:00]MH_I2C_Read... [18:59:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:00]Read from MH i2c: E2 [18:59:00]MH_I2C_Read... [18:59:00]Read from MH i2c: E2 0E 00 [18:59:00]MH_I2C_Read... [18:59:00]Read from MH i2c: E2 0E 00 41 17 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 62 [18:59:00]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [18:59:00]wFMCommunicate OK [18:59:00]SAM_PROTO_GetShiftState done [18:59:00]FM_GetShiftState done [18:59:00]req_shift_opened done [18:59:00]requested_item shift.open_date is exist - process it [18:59:00]req_shift_open_date [18:59:00]req_shift_open_date done [18:59:00]produce_requested_data done [18:59:00]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118265,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [18:59:00]process_action_free close_receipt [18:59:00]json_value_free [18:59:00]json_value_free done [18:59:00]process_json_proto returns [18:59:00]Send response to host [18:59:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118265,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [18:59:00]free response buf [18:59:00]execute_script done [18:59:00]execute_script returns [18:59:00]free content buf [18:59:00]Sock 7.Close socket [18:59:00]Sock 7.Thread stoped [18:59:04]OFD Sender: No OFD packet to send [18:59:09]OFD Sender: No OFD packet to send [18:59:14]OFD Sender: No OFD packet to send [18:59:19]OFD Sender: No OFD packet to send [18:59:24]OFD Sender: No OFD packet to send [18:59:29]OFD Sender: No OFD packet to send [18:59:34]OFD Sender: No OFD packet to send [18:59:39]OFD Sender: No OFD packet to send [18:59:44]OFD Sender: No OFD packet to send [18:59:49]OFD Sender: No OFD packet to send [18:59:54]OFD Sender: No OFD packet to send [18:59:59]OFD Sender: No OFD packet to send [19:00:04]OFD Sender: No OFD packet to send [19:00:09]OFD Sender: No OFD packet to send [19:00:14]OFD Sender: No OFD packet to send [19:00:19]OFD Sender: No OFD packet to send [19:00:24]OFD Sender: No OFD packet to send [19:00:29]OFD Sender: No OFD packet to send [19:00:34]OFD Sender: No OFD packet to send [19:00:39]OFD Sender: No OFD packet to send [19:00:44]OFD Sender: No OFD packet to send [19:00:49]OFD Sender: No OFD packet to send [19:00:54]OFD Sender: No OFD packet to send [19:00:59]OFD Sender: No OFD packet to send [19:01:04]OFD Sender: No OFD packet to send [19:01:09]OFD Sender: No OFD packet to send [19:01:14]OFD Sender: No OFD packet to send [19:01:19]OFD Sender: No OFD packet to send [19:01:24]OFD Sender: No OFD packet to send [19:01:29]OFD Sender: No OFD packet to send [19:01:33]accept exits with 9 [19:01:33]New connection [19:01:33]New thread 3067096420 created [19:01:33]Thread 3066953060 joined [19:01:33]Waiting for new connection... [19:01:33] Sock 9.Parse request [19:01:33]Sock 9.Check first char [19:01:33]Sock 9.First char is OK [19:01:33]request: POST /json_proto HTTP/1.0 [19:01:33]Method: POST [19:01:33]URL: /json_proto [19:01:33]Method is POST - this is cgi request [19:01:33]url: /json_proto [19:01:33]query_string will be loaded in cgi processing [19:01:33]execute_cgi json_proto POST (null) [19:01:33]execute_cgi path=json_proto method=POST [19:01:33]POST find Content-Length [19:01:33]Host: 172.17.45.7:8080 [19:01:33]Content-Length: 682 [19:01:33]Content-Type: application/json [19:01:33] [19:01:33]POST finish read [19:01:33]Found Content-Length = 682 [19:01:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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:01:33]execute_script... [19:01: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)949139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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:01:33]POST & json_proto [19:01:33]process_json_proto [19:01:33]json parsed OK: [19:01:33]protocol is kg_v1.0 [19:01:33]action value=close_receipt [19:01:33]process_action close_receipt [19:01:33]cmd_close_receipt [19:01:33]MH_GetDate [19:01:33]Write to MH i2c: F0 00 00 42 17 48 [19:01:33]Write i2c OK [19:01:33]MH_I2C_Read... [19:01:33]Read from MH i2c: F0 [19:01:33]MH_I2C_Read... [19:01:33]Read from MH i2c: F0 09 00 [19:01:33]MH_I2C_Read... [19:01:33]Read from MH i2c: F0 09 00 42 17 00 0E 44 A5 66 90 0F 3E 66 F1 [19:01:33]GetLastDocTimeStamp 1722106737 [19:01:33]current date 1722106894 [19:01:33]FM_GetShiftState [19:01:33]SAM_PROTO_GetShiftState [19:01:33]wFMCommunicate request_size=4 [19:01:33]MH_SAM_APDU [19:01:33]CAPDU: 80 13 01 00 [19:01:33]Write to MH i2c: E2 08 00 43 17 80 13 01 00 00 00 00 00 D7 [19:01:33]Write i2c OK [19:01:33]MH_I2C_Read... [19:01:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:33]Read from MH i2c: E2 [19:01:33]MH_I2C_Read... [19:01:33]Read from MH i2c: E2 0E 00 [19:01:33]MH_I2C_Read... [19:01:33]Read from MH i2c: E2 0E 00 43 17 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 64 [19:01:33]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [19:01:33]wFMCommunicate OK [19:01:33]SAM_PROTO_GetShiftState done [19:01:33]FM_GetShiftState done [19:01:33]opened in 1722038845 [19:01:33]opened+sec_in_day 1722125245 [19:01:33]quantity*price = 150041 [19:01:33]sum+1 = 150042 [19:01:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 209 27.07.2024 19:01 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118266 ФПД: 182148083805172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T190134&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118266&fm=182148083805172&tin=02508201610067®Number=0000000000092660&sum=150000 [19:01:34]StoreToDocumentArchive [19:01:34]shift 432 fd 118266 [19:01:34]save to /storage/0432/doc_00118266 [19:01:34]save last doc name /storage/0432/doc_00118266 to /storage/kkm_last_doc_name [19:01:34]save OK [19:01:34]Clear old archive folders... [19:01:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:01:34]tlvbuf is 01E01A00 [19:01:34]SAM_PROTO_ClearQueue [19:01:34]wFMCommunicate request_size=4 [19:01:34]MH_SAM_APDU [19:01:34]CAPDU: 80 09 00 00 [19:01:34]Write to MH i2c: E2 08 00 50 17 80 09 00 00 00 00 00 00 D9 [19:01:34]Write i2c OK [19:01:34]MH_I2C_Read... [19:01:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:01:34]Read from MH i2c: E2 [19:01:34]MH_I2C_Read... [19:01:34]Read from MH i2c: E2 03 00 [19:01:34]MH_I2C_Read... [19:01:34]Read from MH i2c: E2 03 00 50 17 00 90 00 DB [19:01:34]RAPDU: 90 00 [19:01:34]wFMCommunicate OK [19:01:34]SAM_PROTO_ClearQueue done [19:01:34]KKMCreateOFDPacket [19:01:34]OFDProtocolAddRootSTLVToBuf [19:01:34]FM_MakeSignedData [19:01:34]FM_MakeSignedData [19:01:34]SAM_PROTO_SignData [19:01:34]wFMCommunicate request_size=4 [19:01:34]MH_SAM_APDU [19:01:34]CAPDU: 80 0D 01 02 [19:01:34]Write to MH i2c: E2 08 00 51 17 80 0D 01 02 00 00 00 00 E1 [19:01:34]Write i2c OK [19:01:34]MH_I2C_Read... [19:01:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:01:34]Read from MH i2c: E2 [19:01:34]MH_I2C_Read... [19:01:34]Read from MH i2c: E2 03 00 [19:01:34]MH_I2C_Read... [19:01:34]Read from MH i2c: E2 03 00 51 17 00 90 00 DC [19:01:34]RAPDU: 90 00 [19:01:34]wFMCommunicate OK [19:01:34]wFMCommunicate request_size=255 [19:01:34]MH_SAM_APDU [19:01:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 0E 44 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FA CD 01 00 35 04 06 00 A5 [19:01:34]Write to MH i2c: E2 02 01 52 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 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 0E 44 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FA CD 01 00 35 04 06 00 A5 00 00 26 [19:01:34]Write i2c OK [19:01:34]MH_I2C_Read... [19:01:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:35]Read from MH i2c: E2 [19:01:35]MH_I2C_Read... [19:01:35]Read from MH i2c: E2 03 00 [19:01:35]MH_I2C_Read... [19:01:35]Read from MH i2c: E2 03 00 52 17 00 90 00 DD [19:01:35]RAPDU: 90 00 [19:01:35]wFMCommunicate OK [19:01:35]wFMCommunicate request_size=10 [19:01:35]MH_SAM_APDU [19:01:35]CAPDU: 80 0D 02 02 05 A9 A7 D4 EB F4 [19:01:35]Write to MH i2c: E2 0D 00 53 17 80 0D 02 02 05 00 A9 A7 D4 EB F4 00 00 F1 [19:01:35]Write i2c OK [19:01:35]MH_I2C_Read... [19:01:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:35]Read from MH i2c: E2 [19:01:35]MH_I2C_Read... [19:01:35]Read from MH i2c: E2 03 00 [19:01:35]MH_I2C_Read... [19:01:35]Read from MH i2c: E2 03 00 53 17 00 90 00 DE [19:01:35]RAPDU: 90 00 [19:01:35]wFMCommunicate OK [19:01:35]wFMCommunicate request_size=4 [19:01:35]MH_SAM_APDU [19:01:35]CAPDU: 80 0D 03 02 [19:01:35]Write to MH i2c: E2 08 00 54 17 80 0D 03 02 00 00 00 00 E6 [19:01:35]Write i2c OK [19:01:35]MH_I2C_Read... [19:01:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:01:35]Read from MH i2c: E2 [19:01:35]MH_I2C_Read... [19:01:35]Read from MH i2c: E2 0B 00 [19:01:35]MH_I2C_Read... [19:01:35]Read from MH i2c: E2 0B 00 54 17 00 93 94 0B C5 FE 48 F8 09 90 00 25 [19:01:35]RAPDU: 93 94 0B C5 FE 48 F8 09 90 00 [19:01:35]wFMCommunicate OK [19:01:35]SAM_PROTO_SignData done [19:01:35]FM_MakeSignedData done [19:01:35]CreateOFDProtocolMessage [19:01:35]wFMCommunicate request_size=4 [19:01:35]MH_SAM_APDU [19:01:35]CAPDU: 80 11 00 00 [19:01:35]Write to MH i2c: E2 08 00 55 17 80 11 00 00 00 00 00 00 E6 [19:01:35]Write i2c OK [19:01:35]MH_I2C_Read... [19:01:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:35]Read from MH i2c: E2 [19:01:35]MH_I2C_Read... [19:01:35]Read from MH i2c: E2 17 00 [19:01:35]MH_I2C_Read... [19:01:35]Read from MH i2c: E2 17 00 55 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 41 [19:01:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:01:35]wFMCommunicate OK [19:01:35]CreateOFDProtocolMessage done [19:01:35]OFDSenderStorePacket 118266 [19:01:35]StoreOFDPacket docnum=118266 [19:01:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 74 8F 07 01 0A 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 0E 44 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FA CD 01 00 35 04 06 00 A5 A9 A7 D4 EB F4 93 94 0B C5 FE 48 F8 09 [19:01:35]CheckFolder [19:01:35]dirname=/storage/ofd_packets [19:01:35]CheckFolder done [19:01:35]ProducePacketName [19:01:35]name=ofd_packets/00118266 [19:01:35]NVStorageSaveData ofd_packets/00118266 [19:01:35]File name is /storage/ofd_packets/00118266 [19:01:35]Write 301 bytes [19:01:35]NVStorageSaveData done [19:01:35]OFDSenderStorePacket done [19:01:35]KKMCreateOFDPacket done [19:01:35]NVStorageSaveData kkm_last_timestamp [19:01:35]File name is /storage/kkm_last_timestamp [19:01:35]Write 4 bytes [19:01:35]NVStorageSaveData done [19:01:35]OFD Sender: Processing packet 118266 [packets to send 86, broken 85] [19:01:35]ProducePacketName [19:01:35]name=ofd_packets/00118266 [19:01:35]OFD Sender: To server: pG, [19:01:35]CommunicateWithHost lk.salyk.kg:30040 [19:01:35]ConnectInit lk.salyk.kg [19:01:35]ExternCall_PrintAddStr [19:01:35]wPrintStart [19:01:35]Write to MH i2c: 01 00 00 56 17 6D [19:01:35]Write i2c OK [19:01:35]MH_I2C_Read... [19:01:35]Read from MH i2c: 01 [19:01:35]MH_I2C_Read... [19:01:35]Read from MH i2c: 01 07 00 [19:01:35]MH_I2C_Read... [19:01:35]Read from MH i2c: 01 07 00 56 17 00 00 00 00 00 FF 0F 82 [19:01:35]RasterBufferAndPrint [19:01:35]line Счет N : (1)949139 [19:01:35]line ИНН: 02508201610067 [19:01:35]line Контрольно-Кассовый Чек [19:01:35]line ПРОДАЖА [19:01:35]line ТРК (МРК, ГНК) : 31 [19:01:35]line Товар: 2710124130 [19:01:35]line Аи-92-К-4 [19:01:35]line 22.130 * 67.80 [19:01:35]line = 1500.41 [19:01:35]line НДС 12% НСП 1% [19:01:35]line > о реализуемом товаре [19:01:35]line ОКРУГЛЕНИЕ: -0.41 [19:01:35]line ИТОГО: 1500.00 [19:01:35]line Внесено: 1500.00 [19:01:35]line СДАЧА: 0.00 [19:01:35]line НСП 1% : 13.28 [19:01:35]line НДС 12% : 159.34 [19:01:35]line Наличными: 1500.00 [19:01:35]line Безнал.: 0.00 [19:01:35]line Место: АЗС № 134 "Партнер Нефть" [19:01:35]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:01:35]line СНО: Общий режим [19:01:35]line Чек 209 27.07.2024 19:01 [19:01:35]line Смена: 432 ФФД: 1.0 [19:01:35]line ЗНМ: 0300000044 [19:01:35]line РНМ: 0000000000092660 [19:01:35]line Версия ККМ: 001 [19:01:35]line ФМ: 0000000000874939 [19:01:35]line ФД: 118266 [19:01:35]line ФПД: 182148083805172 [19:01:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T190134&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118266&fm=182148083805172&tin=02508201610067®Number=0000000000092660&sum=150000 [19:01:35]Connected sock=10 [19:01:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 74 8F 07 01 0A 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 0E 44 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FA CD 01 00 35 04 06 00 A5 A9 A7 D4 EB F4 93 94 0B C5 FE 48 F8 09 [19:01:35]written 0, free lines is 4095 [19:01:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 18 E6 47 00 4F 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 34 39 33 39 10 04 04 00 FA CD 01 00 F4 03 04 00 A0 F1 A4 66 B6 04 01 00 00 D5 A9 5D 12 A6 84 47 D6 [19:01:35]CommunicateWithHost err = 0 [19:01:35]CheckOFDResponse [19:01:35]1017 (14) - 77093643461234 [19:01:35]1041 (16) - 0000000000874939 [19:01:35]1040 (4) - 118266 [19:01:35]1012 (4) - 27.07.2024 13:09 [19:01:35]1206 (1) - 0 [19:01:35]OFD Sender: Remove packet 118266 [19:01:35]ProducePacketName [19:01:35]name=ofd_packets/00118266 [19:01:35]NVStorageDeleteData [19:01:36]Write to MH i2c: 01 00 00 80 17 97 [19:01:36]Write i2c OK [19:01:36]MH_I2C_Read... [19:01:36]Read from MH i2c: 01 [19:01:36]MH_I2C_Read... [19:01:36]Read from MH i2c: 01 07 00 [19:01:36]MH_I2C_Read... [19:01:36]Read from MH i2c: 01 07 00 80 17 00 00 00 00 00 E9 0C 93 [19:01:36]RasterBufferAndPrint [19:01:36]line [19:01:36]line [19:01:36]line [19:01:36]line [19:01:36]line [19:01:36]written 0, free lines is 3311 [19:01:36]MH_Cut [19:01:36]Write to MH i2c: D1 01 00 87 17 01 70 [19:01:36]Write i2c OK [19:01:36]MH_I2C_Read... [19:01:36]Read from MH i2c: D1 [19:01:36]MH_I2C_Read... [19:01:36]Read from MH i2c: D1 01 00 [19:01:36]MH_I2C_Read... [19:01:36]Read from MH i2c: D1 01 00 87 17 00 6F [19:01:36]Write to MH i2c: 01 00 00 88 17 9F [19:01:36]Write i2c OK [19:01:36]MH_I2C_Read... [19:01:36]OFD Sender: No OFD packet to send [19:01:36]*** Cut start [19:01:36]*** Partial cut [19:01:36]*** CUTSNS_PIN = 1 [19:01:36]*** CUTSNS_PIN = 0 [19:01:37]*** Brake cut motor [19:01:37]Read from MH i2c: 01 [19:01:37]MH_I2C_Read... [19:01:37]*** Stop cut motor [19:01:37]*** Cut end [19:01:37]Read from MH i2c: 01 07 00 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: 01 07 00 88 17 00 00 00 00 00 FF 0F B4 [19:01:37]process_action close_receipt done [19:01:37]requested_data is exist [19:01:37]produce_requested_data [19:01:37]requested_item fm.sn is exist - process it [19:01:37]wFMCommunicate request_size=4 [19:01:37]MH_SAM_APDU [19:01:37]CAPDU: 80 11 00 00 [19:01:37]Write to MH i2c: E2 08 00 89 17 80 11 00 00 00 00 00 00 1A [19:01:37]Write i2c OK [19:01:37]MH_I2C_Read... [19:01:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:37]Read from MH i2c: E2 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: E2 17 00 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: E2 17 00 89 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 75 [19:01:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:01:37]wFMCommunicate OK [19:01:37]requested_item fd.num is exist - process it [19:01:37]SAM_PROTO_GetFieldsCounters [19:01:37]wFMCommunicate request_size=4 [19:01:37]MH_SAM_APDU [19:01:37]CAPDU: 80 13 00 00 [19:01:37]Write to MH i2c: E2 08 00 8A 17 80 13 00 00 00 00 00 00 1D [19:01:37]Write i2c OK [19:01:37]MH_I2C_Read... [19:01:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:01:37]Read from MH i2c: E2 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: E2 62 00 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: E2 62 00 8A 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FA CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [19:01:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FA CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:01:37]wFMCommunicate OK [19:01:37]SAM_PROTO_GetFieldsCounters done [19:01:37]requested_item shift.num is exist - process it [19:01:37]requested_item shift.opened is exist - process it [19:01:37]req_shift_opened [19:01:37]FM_GetShiftState [19:01:37]SAM_PROTO_GetShiftState [19:01:37]wFMCommunicate request_size=4 [19:01:37]MH_SAM_APDU [19:01:37]CAPDU: 80 13 01 00 [19:01:37]Write to MH i2c: E2 08 00 8B 17 80 13 01 00 00 00 00 00 1F [19:01:37]Write i2c OK [19:01:37]MH_I2C_Read... [19:01:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:37]Read from MH i2c: E2 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: E2 0E 00 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: E2 0E 00 8B 17 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 AC [19:01:37]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [19:01:37]wFMCommunicate OK [19:01:37]SAM_PROTO_GetShiftState done [19:01:37]FM_GetShiftState done [19:01:37]req_shift_opened done [19:01:37]requested_item shift.open_date is exist - process it [19:01:37]req_shift_open_date [19:01:37]req_shift_open_date done [19:01:37]produce_requested_data done [19:01:37]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118266,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [19:01:37]process_action_free close_receipt [19:01:37]json_value_free [19:01:37]json_value_free done [19:01:37]process_json_proto returns [19:01:37]Send response to host [19:01:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118266,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [19:01:37]free response buf [19:01:37]execute_script done [19:01:37]execute_script returns [19:01:37]free content buf [19:01:37]Sock 9.Close socket [19:01:37]Sock 9.Thread stoped [19:01:41]OFD Sender: No OFD packet to send [19:01:46]OFD Sender: No OFD packet to send [19:01:51]OFD Sender: No OFD packet to send [19:01:56]OFD Sender: No OFD packet to send [19:02:01]OFD Sender: No OFD packet to send [19:02:06]OFD Sender: No OFD packet to send [19:02:09]accept exits with 7 [19:02:09]New connection [19:02:09]New thread 3066953060 created [19:02:09]Thread 3067096420 joined [19:02:09]Waiting for new connection... [19:02:09] Sock 7.Parse request [19:02:09]Sock 7.Check first char [19:02:09]Sock 7.First char is OK [19:02:09]request: POST /json_proto HTTP/1.0 [19:02:09]Method: POST [19:02:09]URL: /json_proto [19:02:09]Method is POST - this is cgi request [19:02:09]url: /json_proto [19:02:09]query_string will be loaded in cgi processing [19:02:09]execute_cgi json_proto POST (null) [19:02:09]execute_cgi path=json_proto method=POST [19:02:09]POST find Content-Length [19:02:09]Host: 172.17.45.7:8080 [19:02:09]Content-Length: 682 [19:02:09]Content-Type: application/json [19:02:09] [19:02:09]POST finish read [19:02:09]Found Content-Length = 682 [19:02:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:02:09]execute_script... [19:02: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)949140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:02:09]POST & json_proto [19:02:09]process_json_proto [19:02:09]json parsed OK: [19:02:09]protocol is kg_v1.0 [19:02:09]action value=close_receipt [19:02:09]process_action close_receipt [19:02:09]cmd_close_receipt [19:02:09]MH_GetDate [19:02:09]Write to MH i2c: F0 00 00 8C 17 92 [19:02:09]Write i2c OK [19:02:09]MH_I2C_Read... [19:02:09]Read from MH i2c: F0 [19:02:09]MH_I2C_Read... [19:02:09]Read from MH i2c: F0 09 00 [19:02:09]MH_I2C_Read... [19:02:09]Read from MH i2c: F0 09 00 8C 17 00 32 44 A5 66 90 0F 3E 66 5F [19:02:09]GetLastDocTimeStamp 1722106894 [19:02:09]current date 1722106930 [19:02:09]FM_GetShiftState [19:02:09]SAM_PROTO_GetShiftState [19:02:09]wFMCommunicate request_size=4 [19:02:09]MH_SAM_APDU [19:02:09]CAPDU: 80 13 01 00 [19:02:09]Write to MH i2c: E2 08 00 8D 17 80 13 01 00 00 00 00 00 21 [19:02:09]Write i2c OK [19:02:09]MH_I2C_Read... [19:02:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:09]Read from MH i2c: E2 [19:02:09]MH_I2C_Read... [19:02:09]Read from MH i2c: E2 0E 00 [19:02:09]MH_I2C_Read... [19:02:09]Read from MH i2c: E2 0E 00 8D 17 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 AE [19:02:09]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [19:02:09]wFMCommunicate OK [19:02:09]SAM_PROTO_GetShiftState done [19:02:09]FM_GetShiftState done [19:02:09]opened in 1722038845 [19:02:09]opened+sec_in_day 1722125245 [19:02:09]quantity*price = 100005 [19:02:09]sum+1 = 100006 [19:02:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 210 27.07.2024 19:02 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118267 ФПД: 121985096159809 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T190210&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118267&fm=121985096159809&tin=02508201610067®Number=0000000000092660&sum=100000 [19:02:10]StoreToDocumentArchive [19:02:10]shift 432 fd 118267 [19:02:10]save to /storage/0432/doc_00118267 [19:02:10]save last doc name /storage/0432/doc_00118267 to /storage/kkm_last_doc_name [19:02:10]save OK [19:02:10]Clear old archive folders... [19:02:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:02:10]tlvbuf is 01E063F0 [19:02:10]SAM_PROTO_ClearQueue [19:02:10]wFMCommunicate request_size=4 [19:02:10]MH_SAM_APDU [19:02:10]CAPDU: 80 09 00 00 [19:02:10]Write to MH i2c: E2 08 00 9A 17 80 09 00 00 00 00 00 00 23 [19:02:10]Write i2c OK [19:02:10]MH_I2C_Read... [19:02:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:02:11]Read from MH i2c: E2 [19:02:11]MH_I2C_Read... [19:02:11]Read from MH i2c: E2 03 00 [19:02:11]MH_I2C_Read... [19:02:11]Read from MH i2c: E2 03 00 9A 17 00 90 00 25 [19:02:11]RAPDU: 90 00 [19:02:11]wFMCommunicate OK [19:02:11]SAM_PROTO_ClearQueue done [19:02:11]KKMCreateOFDPacket [19:02:11]OFDProtocolAddRootSTLVToBuf [19:02:11]FM_MakeSignedData [19:02:11]FM_MakeSignedData [19:02:11]SAM_PROTO_SignData [19:02:11]wFMCommunicate request_size=4 [19:02:11]MH_SAM_APDU [19:02:11]CAPDU: 80 0D 01 02 [19:02:11]Write to MH i2c: E2 08 00 9B 17 80 0D 01 02 00 00 00 00 2B [19:02:11]Write i2c OK [19:02:11]MH_I2C_Read... [19:02:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:02:11]Read from MH i2c: E2 [19:02:11]MH_I2C_Read... [19:02:11]Read from MH i2c: E2 03 00 [19:02:11]MH_I2C_Read... [19:02:11]Read from MH i2c: E2 03 00 9B 17 00 90 00 26 [19:02:11]RAPDU: 90 00 [19:02:11]wFMCommunicate OK [19:02:11]wFMCommunicate request_size=255 [19:02:11]MH_SAM_APDU [19:02: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 32 44 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FB CD 01 00 35 04 06 00 6E [19:02:11]Write to MH i2c: E2 02 01 9C 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 32 44 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FB CD 01 00 35 04 06 00 6E 00 00 79 [19:02:11]Write i2c OK [19:02:11]MH_I2C_Read... [19:02:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:11]Read from MH i2c: E2 [19:02:11]MH_I2C_Read... [19:02:11]Read from MH i2c: E2 03 00 [19:02:11]MH_I2C_Read... [19:02:11]Read from MH i2c: E2 03 00 9C 17 00 90 00 27 [19:02:11]RAPDU: 90 00 [19:02:11]wFMCommunicate OK [19:02:11]wFMCommunicate request_size=10 [19:02:11]MH_SAM_APDU [19:02:11]CAPDU: 80 0D 02 02 05 F1 DE 53 12 41 [19:02:11]Write to MH i2c: E2 0D 00 9D 17 80 0D 02 02 05 00 F1 DE 53 12 41 00 00 AD [19:02:11]Write i2c OK [19:02:11]MH_I2C_Read... [19:02:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:11]Read from MH i2c: E2 [19:02:11]MH_I2C_Read... [19:02:11]Read from MH i2c: E2 03 00 [19:02:11]MH_I2C_Read... [19:02:11]Read from MH i2c: E2 03 00 9D 17 00 90 00 28 [19:02:11]RAPDU: 90 00 [19:02:11]wFMCommunicate OK [19:02:11]wFMCommunicate request_size=4 [19:02:11]MH_SAM_APDU [19:02:11]CAPDU: 80 0D 03 02 [19:02:11]Write to MH i2c: E2 08 00 9E 17 80 0D 03 02 00 00 00 00 30 [19:02:11]Write i2c OK [19:02:11]MH_I2C_Read... [19:02:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:02:11]Read from MH i2c: E2 [19:02:11]MH_I2C_Read... [19:02:11]Read from MH i2c: E2 0B 00 [19:02:11]MH_I2C_Read... [19:02:11]Read from MH i2c: E2 0B 00 9E 17 00 47 7B 6B 15 AC 28 07 CD 90 00 1B [19:02:11]RAPDU: 47 7B 6B 15 AC 28 07 CD 90 00 [19:02:11]wFMCommunicate OK [19:02:11]SAM_PROTO_SignData done [19:02:11]FM_MakeSignedData done [19:02:11]CreateOFDProtocolMessage [19:02:11]wFMCommunicate request_size=4 [19:02:11]MH_SAM_APDU [19:02:11]CAPDU: 80 11 00 00 [19:02:11]Write to MH i2c: E2 08 00 9F 17 80 11 00 00 00 00 00 00 30 [19:02:11]Write i2c OK [19:02:11]MH_I2C_Read... [19:02:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:11]Read from MH i2c: E2 [19:02:11]MH_I2C_Read... [19:02:11]Read from MH i2c: E2 17 00 [19:02:11]MH_I2C_Read... [19:02:11]Read from MH i2c: E2 17 00 9F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8B [19:02:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:02:11]wFMCommunicate OK [19:02:11]CreateOFDProtocolMessage done [19:02:11]OFDSenderStorePacket 118267 [19:02:11]StoreOFDPacket docnum=118267 [19:02:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 86 95 07 01 E9 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 32 44 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FB CD 01 00 35 04 06 00 6E F1 DE 53 12 41 47 7B 6B 15 AC 28 07 CD [19:02:11]CheckFolder [19:02:11]dirname=/storage/ofd_packets [19:02:11]CheckFolder done [19:02:11]ProducePacketName [19:02:11]name=ofd_packets/00118267 [19:02:11]NVStorageSaveData ofd_packets/00118267 [19:02:11]File name is /storage/ofd_packets/00118267 [19:02:11]Write 301 bytes [19:02:11]NVStorageSaveData done [19:02:11]OFDSenderStorePacket done [19:02:11]KKMCreateOFDPacket done [19:02:11]NVStorageSaveData kkm_last_timestamp [19:02:11]File name is /storage/kkm_last_timestamp [19:02:11]Write 4 bytes [19:02:11]NVStorageSaveData done [19:02:11]OFD Sender: Processing packet 118267 [packets to send 86, broken 85] [19:02:11]ProducePacketName [19:02:11]name=ofd_packets/00118267 [19:02:11]OFD Sender: To server: pG, [19:02:11]CommunicateWithHost lk.salyk.kg:30040 [19:02:11]ConnectInit lk.salyk.kg [19:02:11]ExternCall_PrintAddStr [19:02:11]wPrintStart [19:02:11]Write to MH i2c: 01 00 00 A0 17 B7 [19:02:11]Write i2c OK [19:02:11]MH_I2C_Read... [19:02:11]Read from MH i2c: 01 [19:02:11]MH_I2C_Read... [19:02:11]Read from MH i2c: 01 07 00 [19:02:11]MH_I2C_Read... [19:02:11]Read from MH i2c: 01 07 00 A0 17 00 00 00 00 00 FF 0F CC [19:02:11]RasterBufferAndPrint [19:02:11]line Счет N : (1)949140 [19:02:11]line ИНН: 02508201610067 [19:02:11]line Контрольно-Кассовый Чек [19:02:11]line ПРОДАЖА [19:02:11]line ТРК (МРК, ГНК) : 51 [19:02:11]line Товар: 2710124130 [19:02:11]line Аи-92-К-4 [19:02:11]line 14.750 * 67.80 [19:02:11]line = 1000.05 [19:02:11]line НДС 12% НСП 1% [19:02:11]line > о реализуемом товаре [19:02:11]line ОКРУГЛЕНИЕ: -0.05 [19:02:11]line ИТОГО: 1000.00 [19:02:11]line Внесено: 1000.00 [19:02:11]line СДАЧА: 0.00 [19:02:11]line НСП 1% : 8.85 [19:02:11]line НДС 12% : 106.20 [19:02:11]line Наличными: 1000.00 [19:02:11]line Безнал.: 0.00 [19:02:11]line Место: АЗС № 134 "Партнер Нефть" [19:02:11]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:02:11]line СНО: Общий режим [19:02:11]line Чек 210 27.07.2024 19:02 [19:02:11]line Смена: 432 ФФД: 1.0 [19:02:11]line ЗНМ: 0300000044 [19:02:11]line РНМ: 0000000000092660 [19:02:11]line Версия ККМ: 001 [19:02:11]line ФМ: 0000000000874939 [19:02:11]line ФД: 118267 [19:02:11]line ФПД: 121985096159809 [19:02:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T190210&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118267&fm=121985096159809&tin=02508201610067®Number=0000000000092660&sum=100000 [19:02:11]Connected sock=11 [19:02:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 86 95 07 01 E9 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 32 44 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FB CD 01 00 35 04 06 00 6E F1 DE 53 12 41 47 7B 6B 15 AC 28 07 CD [19:02:11]written 0, free lines is 4095 [19:02:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 92 35 47 00 99 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FB CD 01 00 F4 03 04 00 C4 F1 A4 66 B6 04 01 00 00 F2 F2 16 63 5E 3A C7 57 [19:02:12]CommunicateWithHost err = 0 [19:02:12]CheckOFDResponse [19:02:12]1017 (14) - 77093643461234 [19:02:12]1041 (16) - 0000000000874939 [19:02:12]1040 (4) - 118267 [19:02:12]1012 (4) - 27.07.2024 13:10 [19:02:12]1206 (1) - 0 [19:02:12]OFD Sender: Remove packet 118267 [19:02:12]ProducePacketName [19:02:12]name=ofd_packets/00118267 [19:02:12]NVStorageDeleteData [19:02:12]Write to MH i2c: 01 00 00 CA 17 E1 [19:02:12]Write i2c OK [19:02:12]MH_I2C_Read... [19:02:12]Read from MH i2c: 01 [19:02:12]MH_I2C_Read... [19:02:12]Read from MH i2c: 01 07 00 [19:02:12]MH_I2C_Read... [19:02:12]Read from MH i2c: 01 07 00 CA 17 00 00 00 00 00 E4 0C D8 [19:02:12]RasterBufferAndPrint [19:02:12]line [19:02:12]line [19:02:12]line [19:02:12]line [19:02:12]line [19:02:12]written 0, free lines is 3306 [19:02:12]MH_Cut [19:02:12]Write to MH i2c: D1 01 00 D1 17 01 BA [19:02:12]Write i2c OK [19:02:12]MH_I2C_Read... [19:02:12]Read from MH i2c: D1 [19:02:12]MH_I2C_Read... [19:02:12]Read from MH i2c: D1 01 00 [19:02:12]MH_I2C_Read... [19:02:12]Read from MH i2c: D1 01 00 D1 17 00 B9 [19:02:12]Write to MH i2c: 01 00 00 D2 17 E9 [19:02:12]Write i2c OK [19:02:12]MH_I2C_Read... [19:02:12]OFD Sender: No OFD packet to send [19:02:13]*** Cut start [19:02:13]*** Partial cut [19:02:13]*** CUTSNS_PIN = 1 [19:02:13]*** CUTSNS_PIN = 0 [19:02:13]*** Brake cut motor [19:02:13]Read from MH i2c: 01 [19:02:13]MH_I2C_Read... [19:02:13]*** Stop cut motor [19:02:13]*** Cut end [19:02:13]Read from MH i2c: 01 07 00 [19:02:13]MH_I2C_Read... [19:02:13]Read from MH i2c: 01 07 00 D2 17 00 00 00 00 00 FF 0F FE [19:02:13]process_action close_receipt done [19:02:13]requested_data is exist [19:02:13]produce_requested_data [19:02:13]requested_item fm.sn is exist - process it [19:02:13]wFMCommunicate request_size=4 [19:02:13]MH_SAM_APDU [19:02:13]CAPDU: 80 11 00 00 [19:02:13]Write to MH i2c: E2 08 00 D3 17 80 11 00 00 00 00 00 00 64 [19:02:13]Write i2c OK [19:02:13]MH_I2C_Read... [19:02:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:13]Read from MH i2c: E2 [19:02:13]MH_I2C_Read... [19:02:13]Read from MH i2c: E2 17 00 [19:02:13]MH_I2C_Read... [19:02:13]Read from MH i2c: E2 17 00 D3 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BF [19:02:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:02:13]wFMCommunicate OK [19:02:13]requested_item fd.num is exist - process it [19:02:13]SAM_PROTO_GetFieldsCounters [19:02:13]wFMCommunicate request_size=4 [19:02:13]MH_SAM_APDU [19:02:13]CAPDU: 80 13 00 00 [19:02:13]Write to MH i2c: E2 08 00 D4 17 80 13 00 00 00 00 00 00 67 [19:02:13]Write i2c OK [19:02:13]MH_I2C_Read... [19:02:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:02:13]Read from MH i2c: E2 [19:02:13]MH_I2C_Read... [19:02:13]Read from MH i2c: E2 62 00 [19:02:13]MH_I2C_Read... [19:02:13]Read from MH i2c: E2 62 00 D4 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FB CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [19:02:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FB CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:02:13]wFMCommunicate OK [19:02:13]SAM_PROTO_GetFieldsCounters done [19:02:13]requested_item shift.num is exist - process it [19:02:13]requested_item shift.opened is exist - process it [19:02:13]req_shift_opened [19:02:13]FM_GetShiftState [19:02:13]SAM_PROTO_GetShiftState [19:02:13]wFMCommunicate request_size=4 [19:02:13]MH_SAM_APDU [19:02:13]CAPDU: 80 13 01 00 [19:02:13]Write to MH i2c: E2 08 00 D5 17 80 13 01 00 00 00 00 00 69 [19:02:13]Write i2c OK [19:02:13]MH_I2C_Read... [19:02:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:13]Read from MH i2c: E2 [19:02:13]MH_I2C_Read... [19:02:13]Read from MH i2c: E2 0E 00 [19:02:13]MH_I2C_Read... [19:02:13]Read from MH i2c: E2 0E 00 D5 17 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 F6 [19:02:13]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [19:02:13]wFMCommunicate OK [19:02:13]SAM_PROTO_GetShiftState done [19:02:13]FM_GetShiftState done [19:02:13]req_shift_opened done [19:02:13]requested_item shift.open_date is exist - process it [19:02:13]req_shift_open_date [19:02:13]req_shift_open_date done [19:02:13]produce_requested_data done [19:02:13]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118267,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [19:02:13]process_action_free close_receipt [19:02:13]json_value_free [19:02:13]json_value_free done [19:02:13]process_json_proto returns [19:02:13]Send response to host [19:02:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118267,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [19:02:13]free response buf [19:02:13]execute_script done [19:02:13]execute_script returns [19:02:13]free content buf [19:02:13]Sock 7.Close socket [19:02:13]Sock 7.Thread stoped [19:02:17]OFD Sender: No OFD packet to send [19:02:22]OFD Sender: No OFD packet to send [19:02:27]OFD Sender: No OFD packet to send [19:02:32]OFD Sender: No OFD packet to send [19:02:37]OFD Sender: No OFD packet to send [19:02:41]accept exits with 9 [19:02:41]New connection [19:02:41]New thread 3067096420 created [19:02:41]Thread 3066953060 joined [19:02:41]Waiting for new connection... [19:02:41] Sock 9.Parse request [19:02:41]Sock 9.Check first char [19:02:41]Sock 9.First char is OK [19:02:41]request: POST /json_proto HTTP/1.0 [19:02:41]Method: POST [19:02:41]URL: /json_proto [19:02:41]Method is POST - this is cgi request [19:02:41]url: /json_proto [19:02:41]query_string will be loaded in cgi processing [19:02:41]execute_cgi json_proto POST (null) [19:02:41]execute_cgi path=json_proto method=POST [19:02:41]POST find Content-Length [19:02:41]Host: 172.17.45.7:8080 [19:02:41]Content-Length: 682 [19:02:41]Content-Type: application/json [19:02:41] [19:02:41]POST finish read [19:02:41]Found Content-Length = 682 [19:02:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:02:41]execute_script... [19:02: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)949141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:02:41]POST & json_proto [19:02:41]process_json_proto [19:02:41]json parsed OK: [19:02:41]protocol is kg_v1.0 [19:02:41]action value=close_receipt [19:02:41]process_action close_receipt [19:02:41]cmd_close_receipt [19:02:41]MH_GetDate [19:02:41]Write to MH i2c: F0 00 00 D6 17 DC [19:02:41]Write i2c OK [19:02:41]MH_I2C_Read... [19:02:41]Read from MH i2c: F0 [19:02:41]MH_I2C_Read... [19:02:41]Read from MH i2c: F0 09 00 [19:02:41]MH_I2C_Read... [19:02:41]Read from MH i2c: F0 09 00 D6 17 00 52 44 A5 66 90 0F 3E 66 C9 [19:02:41]GetLastDocTimeStamp 1722106930 [19:02:41]current date 1722106962 [19:02:41]FM_GetShiftState [19:02:41]SAM_PROTO_GetShiftState [19:02:41]wFMCommunicate request_size=4 [19:02:41]MH_SAM_APDU [19:02:41]CAPDU: 80 13 01 00 [19:02:41]Write to MH i2c: E2 08 00 D7 17 80 13 01 00 00 00 00 00 6B [19:02:41]Write i2c OK [19:02:41]MH_I2C_Read... [19:02:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:41]Read from MH i2c: E2 [19:02:41]MH_I2C_Read... [19:02:41]Read from MH i2c: E2 0E 00 [19:02:41]MH_I2C_Read... [19:02:41]Read from MH i2c: E2 0E 00 D7 17 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 F8 [19:02:41]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [19:02:41]wFMCommunicate OK [19:02:41]SAM_PROTO_GetShiftState done [19:02:41]FM_GetShiftState done [19:02:41]opened in 1722038845 [19:02:41]opened+sec_in_day 1722125245 [19:02:41]quantity*price = 100005 [19:02:41]sum+1 = 100006 [19:02:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 211 27.07.2024 19:02 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118268 ФПД: 90900485266013 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T190242&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118268&fm=90900485266013&tin=02508201610067®Number=0000000000092660&sum=100000 [19:02:43]StoreToDocumentArchive [19:02:43]shift 432 fd 118268 [19:02:43]save to /storage/0432/doc_00118268 [19:02:43]save last doc name /storage/0432/doc_00118268 to /storage/kkm_last_doc_name [19:02:43]save OK [19:02:43]Clear old archive folders... [19:02:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:02:43]tlvbuf is 01E27C30 [19:02:43]SAM_PROTO_ClearQueue [19:02:43]wFMCommunicate request_size=4 [19:02:43]MH_SAM_APDU [19:02:43]CAPDU: 80 09 00 00 [19:02:43]Write to MH i2c: E2 08 00 E4 17 80 09 00 00 00 00 00 00 6D [19:02:43]Write i2c OK [19:02:43]MH_I2C_Read... [19:02:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:02:43]Read from MH i2c: E2 [19:02:43]MH_I2C_Read... [19:02:43]Read from MH i2c: E2 03 00 [19:02:43]MH_I2C_Read... [19:02:43]Read from MH i2c: E2 03 00 E4 17 00 90 00 6F [19:02:43]RAPDU: 90 00 [19:02:43]wFMCommunicate OK [19:02:43]SAM_PROTO_ClearQueue done [19:02:43]KKMCreateOFDPacket [19:02:43]OFDProtocolAddRootSTLVToBuf [19:02:43]FM_MakeSignedData [19:02:43]FM_MakeSignedData [19:02:43]SAM_PROTO_SignData [19:02:43]wFMCommunicate request_size=4 [19:02:43]MH_SAM_APDU [19:02:43]CAPDU: 80 0D 01 02 [19:02:43]Write to MH i2c: E2 08 00 E5 17 80 0D 01 02 00 00 00 00 75 [19:02:43]Write i2c OK [19:02:43]MH_I2C_Read... [19:02:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:02:43]Read from MH i2c: E2 [19:02:43]MH_I2C_Read... [19:02:43]Read from MH i2c: E2 03 00 [19:02:43]MH_I2C_Read... [19:02:43]Read from MH i2c: E2 03 00 E5 17 00 90 00 70 [19:02:43]RAPDU: 90 00 [19:02:43]wFMCommunicate OK [19:02:43]wFMCommunicate request_size=255 [19:02:43]MH_SAM_APDU [19:02: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 52 44 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FC CD 01 00 35 04 06 00 52 [19:02:43]Write to MH i2c: E2 02 01 E6 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 52 44 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FC CD 01 00 35 04 06 00 52 00 00 C9 [19:02:43]Write i2c OK [19:02:43]MH_I2C_Read... [19:02:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:43]Read from MH i2c: E2 [19:02:43]MH_I2C_Read... [19:02:43]Read from MH i2c: E2 03 00 [19:02:43]MH_I2C_Read... [19:02:43]Read from MH i2c: E2 03 00 E6 17 00 90 00 71 [19:02:43]RAPDU: 90 00 [19:02:43]wFMCommunicate OK [19:02:43]wFMCommunicate request_size=10 [19:02:43]MH_SAM_APDU [19:02:43]CAPDU: 80 0D 02 02 05 AC 6B 22 5A 5D [19:02:43]Write to MH i2c: E2 0D 00 E7 17 80 0D 02 02 05 00 AC 6B 22 5A 5D 00 00 72 [19:02:43]Write i2c OK [19:02:43]MH_I2C_Read... [19:02:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:43]Read from MH i2c: E2 [19:02:43]MH_I2C_Read... [19:02:43]Read from MH i2c: E2 03 00 [19:02:43]MH_I2C_Read... [19:02:43]Read from MH i2c: E2 03 00 E7 17 00 90 00 72 [19:02:43]RAPDU: 90 00 [19:02:43]wFMCommunicate OK [19:02:43]wFMCommunicate request_size=4 [19:02:43]MH_SAM_APDU [19:02:43]CAPDU: 80 0D 03 02 [19:02:43]Write to MH i2c: E2 08 00 E8 17 80 0D 03 02 00 00 00 00 7A [19:02:43]Write i2c OK [19:02:43]MH_I2C_Read... [19:02:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:02:43]Read from MH i2c: E2 [19:02:43]MH_I2C_Read... [19:02:43]Read from MH i2c: E2 0B 00 [19:02:43]MH_I2C_Read... [19:02:43]Read from MH i2c: E2 0B 00 E8 17 00 57 0F AF DA A3 36 77 FB 90 00 B5 [19:02:43]RAPDU: 57 0F AF DA A3 36 77 FB 90 00 [19:02:43]wFMCommunicate OK [19:02:43]SAM_PROTO_SignData done [19:02:43]FM_MakeSignedData done [19:02:43]CreateOFDProtocolMessage [19:02:43]wFMCommunicate request_size=4 [19:02:43]MH_SAM_APDU [19:02:43]CAPDU: 80 11 00 00 [19:02:43]Write to MH i2c: E2 08 00 E9 17 80 11 00 00 00 00 00 00 7A [19:02:43]Write i2c OK [19:02:43]MH_I2C_Read... [19:02:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:43]Read from MH i2c: E2 [19:02:43]MH_I2C_Read... [19:02:43]Read from MH i2c: E2 17 00 [19:02:43]MH_I2C_Read... [19:02:43]Read from MH i2c: E2 17 00 E9 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D5 [19:02:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:02:43]wFMCommunicate OK [19:02:43]CreateOFDProtocolMessage done [19:02:43]OFDSenderStorePacket 118268 [19:02:43]StoreOFDPacket docnum=118268 [19:02:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D5 CF 07 01 2F 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 52 44 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FC CD 01 00 35 04 06 00 52 AC 6B 22 5A 5D 57 0F AF DA A3 36 77 FB [19:02:43]CheckFolder [19:02:43]dirname=/storage/ofd_packets [19:02:43]CheckFolder done [19:02:43]ProducePacketName [19:02:43]name=ofd_packets/00118268 [19:02:43]NVStorageSaveData ofd_packets/00118268 [19:02:43]File name is /storage/ofd_packets/00118268 [19:02:43]Write 301 bytes [19:02:43]NVStorageSaveData done [19:02:43]OFDSenderStorePacket done [19:02:43]KKMCreateOFDPacket done [19:02:43]NVStorageSaveData kkm_last_timestamp [19:02:43]File name is /storage/kkm_last_timestamp [19:02:43]Write 4 bytes [19:02:43]NVStorageSaveData done [19:02:43]ExternCall_PrintAddStr [19:02:43]wPrintStart [19:02:43]Write to MH i2c: 01 00 00 EA 17 01 [19:02:43]Write i2c OK [19:02:43]MH_I2C_Read... [19:02:43]Read from MH i2c: 01 [19:02:43]MH_I2C_Read... [19:02:43]Read from MH i2c: 01 07 00 [19:02:43]MH_I2C_Read... [19:02:43]Read from MH i2c: 01 07 00 EA 17 00 00 00 00 00 FF 0F 16 [19:02:43]RasterBufferAndPrint [19:02:43]line Счет N : (1)949141 [19:02:43]line ИНН: 02508201610067 [19:02:43]line Контрольно-Кассовый Чек [19:02:43]line ПРОДАЖА [19:02:43]line ТРК (МРК, ГНК) : 41 [19:02:43]line Товар: 2710124130 [19:02:43]line Аи-92-К-4 [19:02:43]line 14.750 * 67.80 [19:02:43]line = 1000.05 [19:02:43]line НДС 12% НСП 1% [19:02:43]line > о реализуемом товаре [19:02:43]line ОКРУГЛЕНИЕ: -0.05 [19:02:43]line ИТОГО: 1000.00 [19:02:43]line Внесено: 1000.00 [19:02:43]line СДАЧА: 0.00 [19:02:43]line НСП 1% : 8.85 [19:02:43]line НДС 12% : 106.20 [19:02:43]line Наличными: 1000.00 [19:02:43]line Безнал.: 0.00 [19:02:43]line Место: АЗС № 134 "Партнер Нефть" [19:02:43]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:02:43]line СНО: Общий режим [19:02:43]line Чек 211 27.07.2024 19:02 [19:02:43]line Смена: 432 ФФД: 1.0 [19:02:43]line ЗНМ: 0300000044 [19:02:43]line РНМ: 0000000000092660 [19:02:43]line Версия ККМ: 001 [19:02:43]line ФМ: 0000000000874939 [19:02:43]line ФД: 118268 [19:02:43]line ФПД: 90900485266013 [19:02:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T190242&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118268&fm=90900485266013&tin=02508201610067®Number=0000000000092660&sum=100000 [19:02:43]OFD Sender: Processing packet 118268 [packets to send 86, broken 85] [19:02:43]ProducePacketName [19:02:43]name=ofd_packets/00118268 [19:02:43]OFD Sender: To server: pG, [19:02:43]CommunicateWithHost lk.salyk.kg:30040 [19:02:43]ConnectInit lk.salyk.kg [19:02:43]written 0, free lines is 4095 [19:02:44]Connected sock=7 [19:02:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D5 CF 07 01 2F 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 52 44 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FC CD 01 00 35 04 06 00 52 AC 6B 22 5A 5D 57 0F AF DA A3 36 77 FB [19:02:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E7 8A 47 00 BF 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 34 39 33 39 10 04 04 00 FC CD 01 00 F4 03 04 00 E5 F1 A4 66 B6 04 01 00 00 B9 44 27 E9 71 D3 B4 69 [19:02:44]CommunicateWithHost err = 0 [19:02:44]CheckOFDResponse [19:02:44]1017 (14) - 77093643461234 [19:02:44]1041 (16) - 0000000000874939 [19:02:44]1040 (4) - 118268 [19:02:44]1012 (4) - 27.07.2024 13:11 [19:02:44]1206 (1) - 0 [19:02:44]OFD Sender: Remove packet 118268 [19:02:44]ProducePacketName [19:02:44]name=ofd_packets/00118268 [19:02:44]NVStorageDeleteData [19:02:44]Write to MH i2c: 01 00 00 14 18 2C [19:02:44]Write i2c OK [19:02:44]MH_I2C_Read... [19:02:44]Read from MH i2c: 01 [19:02:44]MH_I2C_Read... [19:02:44]Read from MH i2c: 01 07 00 [19:02:44]MH_I2C_Read... [19:02:44]Read from MH i2c: 01 07 00 14 18 00 00 00 00 00 EF 0C 2E [19:02:44]RasterBufferAndPrint [19:02:44]line [19:02:44]line [19:02:44]line [19:02:44]line [19:02:44]line [19:02:44]written 0, free lines is 3318 [19:02:44]MH_Cut [19:02:44]Write to MH i2c: D1 01 00 1B 18 01 05 [19:02:44]Write i2c OK [19:02:44]MH_I2C_Read... [19:02:44]Read from MH i2c: D1 [19:02:44]MH_I2C_Read... [19:02:44]Read from MH i2c: D1 01 00 [19:02:44]MH_I2C_Read... [19:02:44]Read from MH i2c: D1 01 00 1B 18 00 04 [19:02:44]Write to MH i2c: 01 00 00 1C 18 34 [19:02:44]Write i2c OK [19:02:44]MH_I2C_Read... [19:02:44]OFD Sender: No OFD packet to send [19:02:45]*** Cut start [19:02:45]*** Partial cut [19:02:45]*** CUTSNS_PIN = 1 [19:02:45]*** CUTSNS_PIN = 0 [19:02:45]*** Brake cut motor [19:02:45]Read from MH i2c: 01 [19:02:45]MH_I2C_Read... [19:02:45]*** Stop cut motor [19:02:45]*** Cut end [19:02:45]Read from MH i2c: 01 07 00 [19:02:45]MH_I2C_Read... [19:02:45]Read from MH i2c: 01 07 00 1C 18 00 00 00 00 00 FF 0F 49 [19:02:45]process_action close_receipt done [19:02:45]requested_data is exist [19:02:45]produce_requested_data [19:02:45]requested_item fm.sn is exist - process it [19:02:45]wFMCommunicate request_size=4 [19:02:45]MH_SAM_APDU [19:02:45]CAPDU: 80 11 00 00 [19:02:45]Write to MH i2c: E2 08 00 1D 18 80 11 00 00 00 00 00 00 AF [19:02:45]Write i2c OK [19:02:45]MH_I2C_Read... [19:02:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:45]Read from MH i2c: E2 [19:02:45]MH_I2C_Read... [19:02:45]Read from MH i2c: E2 17 00 [19:02:45]MH_I2C_Read... [19:02:45]Read from MH i2c: E2 17 00 1D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0A [19:02:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:02:45]wFMCommunicate OK [19:02:45]requested_item fd.num is exist - process it [19:02:45]SAM_PROTO_GetFieldsCounters [19:02:45]wFMCommunicate request_size=4 [19:02:45]MH_SAM_APDU [19:02:45]CAPDU: 80 13 00 00 [19:02:45]Write to MH i2c: E2 08 00 1E 18 80 13 00 00 00 00 00 00 B2 [19:02:45]Write i2c OK [19:02:45]MH_I2C_Read... [19:02:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:02:45]Read from MH i2c: E2 [19:02:45]MH_I2C_Read... [19:02:45]Read from MH i2c: E2 62 00 [19:02:45]MH_I2C_Read... [19:02:45]Read from MH i2c: E2 62 00 1E 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FC CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [19:02:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FC CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:02:45]wFMCommunicate OK [19:02:45]SAM_PROTO_GetFieldsCounters done [19:02:45]requested_item shift.num is exist - process it [19:02:45]requested_item shift.opened is exist - process it [19:02:45]req_shift_opened [19:02:45]FM_GetShiftState [19:02:45]SAM_PROTO_GetShiftState [19:02:45]wFMCommunicate request_size=4 [19:02:45]MH_SAM_APDU [19:02:45]CAPDU: 80 13 01 00 [19:02:45]Write to MH i2c: E2 08 00 1F 18 80 13 01 00 00 00 00 00 B4 [19:02:45]Write i2c OK [19:02:45]MH_I2C_Read... [19:02:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:46]Read from MH i2c: E2 [19:02:46]MH_I2C_Read... [19:02:46]Read from MH i2c: E2 0E 00 [19:02:46]MH_I2C_Read... [19:02:46]Read from MH i2c: E2 0E 00 1F 18 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 41 [19:02:46]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [19:02:46]wFMCommunicate OK [19:02:46]SAM_PROTO_GetShiftState done [19:02:46]FM_GetShiftState done [19:02:46]req_shift_opened done [19:02:46]requested_item shift.open_date is exist - process it [19:02:46]req_shift_open_date [19:02:46]req_shift_open_date done [19:02:46]produce_requested_data done [19:02:46]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118268,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [19:02:46]process_action_free close_receipt [19:02:46]json_value_free [19:02:46]json_value_free done [19:02:46]process_json_proto returns [19:02:46]Send response to host [19:02:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118268,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [19:02:46]free response buf [19:02:46]execute_script done [19:02:46]execute_script returns [19:02:46]free content buf [19:02:46]Sock 9.Close socket [19:02:46]Sock 9.Thread stoped [19:02:49]OFD Sender: No OFD packet to send [19:02:54]OFD Sender: No OFD packet to send [19:02:59]OFD Sender: No OFD packet to send [19:03:04]OFD Sender: No OFD packet to send [19:03:09]OFD Sender: No OFD packet to send [19:03:14]OFD Sender: No OFD packet to send [19:03:19]OFD Sender: No OFD packet to send [19:03:24]OFD Sender: No OFD packet to send [19:03:29]OFD Sender: No OFD packet to send [19:03:34]OFD Sender: No OFD packet to send [19:03:39]OFD Sender: No OFD packet to send [19:03:44]OFD Sender: No OFD packet to send [19:03:49]OFD Sender: No OFD packet to send [19:03:54]OFD Sender: No OFD packet to send [19:03:59]OFD Sender: No OFD packet to send [19:04:04]OFD Sender: No OFD packet to send [19:04:09]OFD Sender: No OFD packet to send [19:04:14]OFD Sender: No OFD packet to send [19:04:19]OFD Sender: No OFD packet to send [19:04:24]OFD Sender: No OFD packet to send [19:04:29]OFD Sender: No OFD packet to send [19:04:34]OFD Sender: No OFD packet to send [19:04:39]OFD Sender: No OFD packet to send [19:04:44]OFD Sender: No OFD packet to send [19:04:49]OFD Sender: No OFD packet to send [19:04:54]OFD Sender: No OFD packet to send [19:04:59]OFD Sender: No OFD packet to send [19:05:04]OFD Sender: No OFD packet to send [19:05:09]OFD Sender: No OFD packet to send [19:05:14]OFD Sender: No OFD packet to send [19:05:19]OFD Sender: No OFD packet to send [19:05:24]OFD Sender: No OFD packet to send [19:05:29]OFD Sender: No OFD packet to send [19:05:34]OFD Sender: No OFD packet to send [19:05:39]OFD Sender: No OFD packet to send [19:05:44]OFD Sender: No OFD packet to send [19:05:49]OFD Sender: No OFD packet to send [19:05:54]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:54]accept exits with 10 [19:07:54]New connection [19:07:54]New thread 3066953060 created [19:07:54]Thread 3067096420 joined [19:07:54]Waiting for new connection... [19:07:54] Sock 10.Parse request [19:07:54]Sock 10.Check first char [19:07:54]Sock 10.First char is OK [19:07:54]request: POST /json_proto HTTP/1.0 [19:07:54]Method: POST [19:07:54]URL: /json_proto [19:07:54]Method is POST - this is cgi request [19:07:54]url: /json_proto [19:07:54]query_string will be loaded in cgi processing [19:07:54]execute_cgi json_proto POST (null) [19:07:54]execute_cgi path=json_proto method=POST [19:07:54]POST find Content-Length [19:07:54]Host: 172.17.45.7:8080 [19:07:54]Content-Length: 677 [19:07:54]Content-Type: application/json [19:07:54] [19:07:54]POST finish read [19:07:54]Found Content-Length = 677 [19:07:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:07:54]execute_script... [19:07:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:07:54]POST & json_proto [19:07:54]process_json_proto [19:07:54]json parsed OK: [19:07:54]protocol is kg_v1.0 [19:07:54]action value=close_receipt [19:07:54]process_action close_receipt [19:07:54]cmd_close_receipt [19:07:54]MH_GetDate [19:07:54]Write to MH i2c: F0 00 00 20 18 27 [19:07:54]Write i2c OK [19:07:54]MH_I2C_Read... [19:07:54]Read from MH i2c: F0 [19:07:54]MH_I2C_Read... [19:07:54]Read from MH i2c: F0 09 00 [19:07:54]MH_I2C_Read... [19:07:54]Read from MH i2c: F0 09 00 20 18 00 8B 45 A5 66 90 0F 3E 66 4E [19:07:54]GetLastDocTimeStamp 1722106962 [19:07:54]current date 1722107275 [19:07:54]FM_GetShiftState [19:07:54]SAM_PROTO_GetShiftState [19:07:54]wFMCommunicate request_size=4 [19:07:54]MH_SAM_APDU [19:07:54]CAPDU: 80 13 01 00 [19:07:54]Write to MH i2c: E2 08 00 21 18 80 13 01 00 00 00 00 00 B6 [19:07:54]Write i2c OK [19:07:54]MH_I2C_Read... [19:07:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:54]Read from MH i2c: E2 [19:07:54]MH_I2C_Read... [19:07:54]Read from MH i2c: E2 0E 00 [19:07:54]MH_I2C_Read... [19:07:54]Read from MH i2c: E2 0E 00 21 18 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 43 [19:07:54]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [19:07:54]wFMCommunicate OK [19:07:54]SAM_PROTO_GetShiftState done [19:07:54]FM_GetShiftState done [19:07:54]opened in 1722038845 [19:07:54]opened+sec_in_day 1722125245 [19:07:54]quantity*price = 40002 [19:07:54]sum+1 = 40003 [19:07:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 212 27.07.2024 19:07 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118269 ФПД: 96133162732773 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T190755&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118269&fm=96133162732773&tin=02508201610067®Number=0000000000092660&sum=40000 [19:07:55]StoreToDocumentArchive [19:07:55]shift 432 fd 118269 [19:07:55]save to /storage/0432/doc_00118269 [19:07:55]save last doc name /storage/0432/doc_00118269 to /storage/kkm_last_doc_name [19:07:55]save OK [19:07:55]Clear old archive folders... [19:07:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:07:55]tlvbuf is 01E01A00 [19:07:55]SAM_PROTO_ClearQueue [19:07:55]wFMCommunicate request_size=4 [19:07:55]MH_SAM_APDU [19:07:55]CAPDU: 80 09 00 00 [19:07:55]Write to MH i2c: E2 08 00 2E 18 80 09 00 00 00 00 00 00 B8 [19:07:55]Write i2c OK [19:07:55]MH_I2C_Read... [19:07:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:07:55]Read from MH i2c: E2 [19:07:55]MH_I2C_Read... [19:07:55]Read from MH i2c: E2 03 00 [19:07:55]MH_I2C_Read... [19:07:55]Read from MH i2c: E2 03 00 2E 18 00 90 00 BA [19:07:55]RAPDU: 90 00 [19:07:55]wFMCommunicate OK [19:07:55]SAM_PROTO_ClearQueue done [19:07:55]KKMCreateOFDPacket [19:07:55]OFDProtocolAddRootSTLVToBuf [19:07:55]FM_MakeSignedData [19:07:55]FM_MakeSignedData [19:07:55]SAM_PROTO_SignData [19:07:55]wFMCommunicate request_size=4 [19:07:55]MH_SAM_APDU [19:07:55]CAPDU: 80 0D 01 02 [19:07:55]Write to MH i2c: E2 08 00 2F 18 80 0D 01 02 00 00 00 00 C0 [19:07:55]Write i2c OK [19:07:55]MH_I2C_Read... [19:07:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:07:55]Read from MH i2c: E2 [19:07:55]MH_I2C_Read... [19:07:55]Read from MH i2c: E2 03 00 [19:07:55]MH_I2C_Read... [19:07:55]Read from MH i2c: E2 03 00 2F 18 00 90 00 BB [19:07:55]RAPDU: 90 00 [19:07:55]wFMCommunicate OK [19:07:55]wFMCommunicate request_size=255 [19:07:55]MH_SAM_APDU [19:07:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 8B 45 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FD CD 01 00 35 04 06 00 57 [19:07:55]Write to MH i2c: E2 02 01 30 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 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 8B 45 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FD CD 01 00 35 04 06 00 57 00 00 AB [19:07:55]Write i2c OK [19:07:55]MH_I2C_Read... [19:07:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:55]Read from MH i2c: E2 [19:07:55]MH_I2C_Read... [19:07:55]Read from MH i2c: E2 03 00 [19:07:55]MH_I2C_Read... [19:07:55]Read from MH i2c: E2 03 00 30 18 00 90 00 BC [19:07:55]RAPDU: 90 00 [19:07:55]wFMCommunicate OK [19:07:55]wFMCommunicate request_size=10 [19:07:55]MH_SAM_APDU [19:07:55]CAPDU: 80 0D 02 02 05 6E BF 04 0C E5 [19:07:55]Write to MH i2c: E2 0D 00 31 18 80 0D 02 02 05 00 6E BF 04 0C E5 00 00 EF [19:07:55]Write i2c OK [19:07:55]MH_I2C_Read... [19:07:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:55]Read from MH i2c: E2 [19:07:55]MH_I2C_Read... [19:07:55]Read from MH i2c: E2 03 00 [19:07:55]MH_I2C_Read... [19:07:55]Read from MH i2c: E2 03 00 31 18 00 90 00 BD [19:07:55]RAPDU: 90 00 [19:07:55]wFMCommunicate OK [19:07:55]wFMCommunicate request_size=4 [19:07:55]MH_SAM_APDU [19:07:55]CAPDU: 80 0D 03 02 [19:07:55]Write to MH i2c: E2 08 00 32 18 80 0D 03 02 00 00 00 00 C5 [19:07:55]Write i2c OK [19:07:55]MH_I2C_Read... [19:07:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:07:55]Read from MH i2c: E2 [19:07:55]MH_I2C_Read... [19:07:55]Read from MH i2c: E2 0B 00 [19:07:55]MH_I2C_Read... [19:07:55]Read from MH i2c: E2 0B 00 32 18 00 E0 8F AC CD 49 94 43 14 90 00 E2 [19:07:55]RAPDU: E0 8F AC CD 49 94 43 14 90 00 [19:07:55]wFMCommunicate OK [19:07:55]SAM_PROTO_SignData done [19:07:55]FM_MakeSignedData done [19:07:55]CreateOFDProtocolMessage [19:07:55]wFMCommunicate request_size=4 [19:07:55]MH_SAM_APDU [19:07:55]CAPDU: 80 11 00 00 [19:07:55]Write to MH i2c: E2 08 00 33 18 80 11 00 00 00 00 00 00 C5 [19:07:55]Write i2c OK [19:07:55]MH_I2C_Read... [19:07:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:55]Read from MH i2c: E2 [19:07:55]MH_I2C_Read... [19:07:55]Read from MH i2c: E2 17 00 [19:07:55]MH_I2C_Read... [19:07:55]Read from MH i2c: E2 17 00 33 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 20 [19:07:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:07:55]wFMCommunicate OK [19:07:55]CreateOFDProtocolMessage done [19:07:55]OFDSenderStorePacket 118269 [19:07:55]StoreOFDPacket docnum=118269 [19:07:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 04 D8 07 01 90 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 8B 45 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FD CD 01 00 35 04 06 00 57 6E BF 04 0C E5 E0 8F AC CD 49 94 43 14 [19:07:55]CheckFolder [19:07:55]dirname=/storage/ofd_packets [19:07:55]CheckFolder done [19:07:55]ProducePacketName [19:07:55]name=ofd_packets/00118269 [19:07:55]NVStorageSaveData ofd_packets/00118269 [19:07:55]File name is /storage/ofd_packets/00118269 [19:07:55]Write 301 bytes [19:07:55]NVStorageSaveData done [19:07:55]OFDSenderStorePacket done [19:07:55]KKMCreateOFDPacket done [19:07:55]NVStorageSaveData kkm_last_timestamp [19:07:55]File name is /storage/kkm_last_timestamp [19:07:55]Write 4 bytes [19:07:55]NVStorageSaveData done [19:07:55]ExternCall_PrintAddStr [19:07:55]wPrintStart [19:07:55]Write to MH i2c: 01 00 00 34 18 4C [19:07:55]Write i2c OK [19:07:55]MH_I2C_Read... [19:07:55]Read from MH i2c: 01 [19:07:55]MH_I2C_Read... [19:07:55]Read from MH i2c: 01 07 00 [19:07:55]MH_I2C_Read... [19:07:55]Read from MH i2c: 01 07 00 34 18 00 00 00 00 00 FF 0F 61 [19:07:55]RasterBufferAndPrint [19:07:55]line Счет N : (1)949142 [19:07:55]line ИНН: 02508201610067 [19:07:55]line Контрольно-Кассовый Чек [19:07:55]line ПРОДАЖА [19:07:55]line ТРК (МРК, ГНК) : 41 [19:07:55]line Товар: 2710124130 [19:07:55]line Аи-92-К-4 [19:07:55]line 5.900 * 67.80 [19:07:55]line = 400.02 [19:07:55]line НДС 12% НСП 1% [19:07:55]line > о реализуемом товаре [19:07:55]line ОКРУГЛЕНИЕ: -0.02 [19:07:55]line ИТОГО: 400.00 [19:07:55]line Внесено: 400.00 [19:07:55]line СДАЧА: 0.00 [19:07:55]line НСП 1% : 3.54 [19:07:55]line НДС 12% : 42.48 [19:07:55]line Наличными: 400.00 [19:07:55]line Безнал.: 0.00 [19:07:55]line Место: АЗС № 134 "Партнер Нефть" [19:07:55]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:07:55]line СНО: Общий режим [19:07:55]line Чек 212 27.07.2024 19:07 [19:07:55]line Смена: 432 ФФД: 1.0 [19:07:55]line ЗНМ: 0300000044 [19:07:55]line РНМ: 0000000000092660 [19:07:55]line Версия ККМ: 001 [19:07:55]line ФМ: 0000000000874939 [19:07:55]line ФД: 118269 [19:07:55]line ФПД: 96133162732773 [19:07:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T190755&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118269&fm=96133162732773&tin=02508201610067®Number=0000000000092660&sum=40000 [19:07:55]written 0, free lines is 4095 [19:07:55]OFD Sender: Processing packet 118269 [packets to send 86, broken 85] [19:07:55]ProducePacketName [19:07:55]name=ofd_packets/00118269 [19:07:55]OFD Sender: To server: pG, [19:07:55]CommunicateWithHost lk.salyk.kg:30040 [19:07:55]ConnectInit lk.salyk.kg [19:07:56]Connected sock=9 [19:07:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 04 D8 07 01 90 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 8B 45 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FD CD 01 00 35 04 06 00 57 6E BF 04 0C E5 E0 8F AC CD 49 94 43 14 [19:07:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 76 7E 47 00 B2 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 34 39 33 39 10 04 04 00 FD CD 01 00 F4 03 04 00 1D F3 A4 66 B6 04 01 00 00 76 31 3F B1 EC 1E 0A 54 [19:07:56]CommunicateWithHost err = 0 [19:07:56]CheckOFDResponse [19:07:56]1017 (14) - 77093643461234 [19:07:56]1041 (16) - 0000000000874939 [19:07:56]1040 (4) - 118269 [19:07:56]1012 (4) - 27.07.2024 13:16 [19:07:56]1206 (1) - 0 [19:07:56]OFD Sender: Remove packet 118269 [19:07:56]ProducePacketName [19:07:56]name=ofd_packets/00118269 [19:07:56]NVStorageDeleteData [19:07:56]Write to MH i2c: 01 00 00 5E 18 76 [19:07:56]Write i2c OK [19:07:56]MH_I2C_Read... [19:07:56]Read from MH i2c: 01 [19:07:56]MH_I2C_Read... [19:07:56]Read from MH i2c: 01 07 00 [19:07:56]MH_I2C_Read... [19:07:56]Read from MH i2c: 01 07 00 5E 18 00 00 00 00 00 EE 0C 77 [19:07:56]RasterBufferAndPrint [19:07:56]line [19:07:56]line [19:07:56]line [19:07:56]line [19:07:56]line [19:07:56]written 0, free lines is 3317 [19:07:56]MH_Cut [19:07:56]Write to MH i2c: D1 01 00 65 18 01 4F [19:07:56]Write i2c OK [19:07:56]MH_I2C_Read... [19:07:56]Read from MH i2c: D1 [19:07:56]MH_I2C_Read... [19:07:56]Read from MH i2c: D1 01 00 [19:07:56]MH_I2C_Read... [19:07:56]Read from MH i2c: D1 01 00 65 18 00 4E [19:07:56]Write to MH i2c: 01 00 00 66 18 7E [19:07:56]Write i2c OK [19:07:56]MH_I2C_Read... [19:07:56]OFD Sender: No OFD packet to send [19:07:57]*** Cut start [19:07:57]*** Partial cut [19:07:57]*** CUTSNS_PIN = 1 [19:07:57]*** CUTSNS_PIN = 0 [19:07:57]*** Brake cut motor [19:07:57]Read from MH i2c: 01 [19:07:57]MH_I2C_Read... [19:07:57]*** Stop cut motor [19:07:57]*** Cut end [19:07:57]Read from MH i2c: 01 07 00 [19:07:57]MH_I2C_Read... [19:07:57]Read from MH i2c: 01 07 00 66 18 00 00 00 00 00 FF 0F 93 [19:07:57]process_action close_receipt done [19:07:57]requested_data is exist [19:07:57]produce_requested_data [19:07:57]requested_item fm.sn is exist - process it [19:07:57]wFMCommunicate request_size=4 [19:07:57]MH_SAM_APDU [19:07:57]CAPDU: 80 11 00 00 [19:07:57]Write to MH i2c: E2 08 00 67 18 80 11 00 00 00 00 00 00 F9 [19:07:57]Write i2c OK [19:07:57]MH_I2C_Read... [19:07:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:57]Read from MH i2c: E2 [19:07:57]MH_I2C_Read... [19:07:57]Read from MH i2c: E2 17 00 [19:07:57]MH_I2C_Read... [19:07:57]Read from MH i2c: E2 17 00 67 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 54 [19:07:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:07:57]wFMCommunicate OK [19:07:57]requested_item fd.num is exist - process it [19:07:57]SAM_PROTO_GetFieldsCounters [19:07:57]wFMCommunicate request_size=4 [19:07:57]MH_SAM_APDU [19:07:57]CAPDU: 80 13 00 00 [19:07:57]Write to MH i2c: E2 08 00 68 18 80 13 00 00 00 00 00 00 FC [19:07:57]Write i2c OK [19:07:57]MH_I2C_Read... [19:07:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:07:57]Read from MH i2c: E2 [19:07:57]MH_I2C_Read... [19:07:57]Read from MH i2c: E2 62 00 [19:07:57]MH_I2C_Read... [19:07:57]Read from MH i2c: E2 62 00 68 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FD CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [19:07:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FD CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:07:57]wFMCommunicate OK [19:07:57]SAM_PROTO_GetFieldsCounters done [19:07:57]requested_item shift.num is exist - process it [19:07:57]requested_item shift.opened is exist - process it [19:07:57]req_shift_opened [19:07:57]FM_GetShiftState [19:07:57]SAM_PROTO_GetShiftState [19:07:57]wFMCommunicate request_size=4 [19:07:57]MH_SAM_APDU [19:07:57]CAPDU: 80 13 01 00 [19:07:57]Write to MH i2c: E2 08 00 69 18 80 13 01 00 00 00 00 00 FE [19:07:57]Write i2c OK [19:07:57]MH_I2C_Read... [19:07:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:57]Read from MH i2c: E2 [19:07:57]MH_I2C_Read... [19:07:57]Read from MH i2c: E2 0E 00 [19:07:57]MH_I2C_Read... [19:07:57]Read from MH i2c: E2 0E 00 69 18 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 8B [19:07:57]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [19:07:57]wFMCommunicate OK [19:07:57]SAM_PROTO_GetShiftState done [19:07:57]FM_GetShiftState done [19:07:57]req_shift_opened done [19:07:57]requested_item shift.open_date is exist - process it [19:07:57]req_shift_open_date [19:07:57]req_shift_open_date done [19:07:57]produce_requested_data done [19:07:57]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118269,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [19:07:57]process_action_free close_receipt [19:07:57]json_value_free [19:07:57]json_value_free done [19:07:57]process_json_proto returns [19:07:57]Send response to host [19:07:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118269,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [19:07:57]free response buf [19:07:57]execute_script done [19:07:57]execute_script returns [19:07:57]free content buf [19:07:57]Sock 10.Close socket [19:07:57]Sock 10.Thread stoped [19:08:01]OFD Sender: No OFD packet to send [19:08:06]OFD Sender: No OFD packet to send [19:08:11]OFD Sender: No OFD packet to send [19:08:16]OFD Sender: No OFD packet to send [19:08:21]OFD Sender: No OFD packet to send [19:08:26]OFD Sender: No OFD packet to send [19:08:31]OFD Sender: No OFD packet to send [19:08:36]OFD Sender: No OFD packet to send [19:08:41]OFD Sender: No OFD packet to send [19:08:46]OFD Sender: No OFD packet to send [19:08:51]OFD Sender: No OFD packet to send [19:08:56]OFD Sender: No OFD packet to send [19:09:01]OFD Sender: No OFD packet to send [19:09:06]OFD Sender: No OFD packet to send [19:09:11]OFD Sender: No OFD packet to send [19:09:16]OFD Sender: No OFD packet to send [19:09:21]OFD Sender: No OFD packet to send [19:09:26]OFD Sender: No OFD packet to send [19:09:31]OFD Sender: No OFD packet to send [19:09:36]OFD Sender: No OFD packet to send [19:09:41]OFD Sender: No OFD packet to send [19:09:46]OFD Sender: No OFD packet to send [19:09:51]OFD Sender: No OFD packet to send [19:09:56]OFD Sender: No OFD packet to send [19:10:01]OFD Sender: No OFD packet to send [19:10:06]OFD Sender: No OFD packet to send [19:10:11]OFD Sender: No OFD packet to send [19:10:16]OFD Sender: No OFD packet to send [19:10:21]OFD Sender: No OFD packet to send [19:10:26]OFD Sender: No OFD packet to send [19:10:31]OFD Sender: No OFD packet to send [19:10:36]OFD Sender: No OFD packet to send [19:10:41]OFD Sender: No OFD packet to send [19:10:46]OFD Sender: No OFD packet to send [19:10:51]OFD Sender: No OFD packet to send [19:10:56]OFD Sender: No OFD packet to send [19:11:01]OFD Sender: No OFD packet to send [19:11:06]OFD Sender: No OFD packet to send [19:11:11]OFD Sender: No OFD packet to send [19:11:16]OFD Sender: No OFD packet to send [19:11:18]accept exits with 7 [19:11:18]New connection [19:11:18]New thread 3067096420 created [19:11:18]Thread 3066953060 joined [19:11:18]Waiting for new connection... [19:11:18] Sock 7.Parse request [19:11:18]Sock 7.Check first char [19:11:18]Sock 7.First char is OK [19:11:18]request: POST /json_proto HTTP/1.0 [19:11:18]Method: POST [19:11:18]URL: /json_proto [19:11:18]Method is POST - this is cgi request [19:11:18]url: /json_proto [19:11:18]query_string will be loaded in cgi processing [19:11:18]execute_cgi json_proto POST (null) [19:11:18]execute_cgi path=json_proto method=POST [19:11:18]POST find Content-Length [19:11:18]Host: 172.17.45.7:8080 [19:11:18]Content-Length: 674 [19:11:18]Content-Type: application/json [19:11:18] [19:11:18]POST finish read [19:11:18]Found Content-Length = 674 [19:11:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "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:11:18]execute_script... [19:11: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)949143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "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:11:18]POST & json_proto [19:11:18]process_json_proto [19:11:18]json parsed OK: [19:11:18]protocol is kg_v1.0 [19:11:18]action value=close_receipt [19:11:18]process_action close_receipt [19:11:18]cmd_close_receipt [19:11:18]MH_GetDate [19:11:18]Write to MH i2c: F0 00 00 6A 18 71 [19:11:18]Write i2c OK [19:11:18]MH_I2C_Read... [19:11:18]Read from MH i2c: F0 [19:11:18]MH_I2C_Read... [19:11:18]Read from MH i2c: F0 09 00 [19:11:18]MH_I2C_Read... [19:11:18]Read from MH i2c: F0 09 00 6A 18 00 57 46 A5 66 90 0F 3E 66 65 [19:11:18]GetLastDocTimeStamp 1722107275 [19:11:18]current date 1722107479 [19:11:18]FM_GetShiftState [19:11:18]SAM_PROTO_GetShiftState [19:11:18]wFMCommunicate request_size=4 [19:11:18]MH_SAM_APDU [19:11:18]CAPDU: 80 13 01 00 [19:11:18]Write to MH i2c: E2 08 00 6B 18 80 13 01 00 00 00 00 00 00 [19:11:18]Write i2c OK [19:11:18]MH_I2C_Read... [19:11:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:18]Read from MH i2c: E2 [19:11:18]MH_I2C_Read... [19:11:18]Read from MH i2c: E2 0E 00 [19:11:18]MH_I2C_Read... [19:11:18]Read from MH i2c: E2 0E 00 6B 18 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 8D [19:11:18]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [19:11:18]wFMCommunicate OK [19:11:18]SAM_PROTO_GetShiftState done [19:11:18]FM_GetShiftState done [19:11:18]opened in 1722038845 [19:11:18]opened+sec_in_day 1722125245 [19:11:18]quantity*price = 30022 [19:11:18]sum+1 = 30024 [19:11:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 213 27.07.2024 19:11 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118270 ФПД: 53056988952480 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T191119&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118270&fm=53056988952480&tin=02508201610067®Number=0000000000092660&sum=30000 [19:11:19]StoreToDocumentArchive [19:11:19]shift 432 fd 118270 [19:11:19]save to /storage/0432/doc_00118270 [19:11:19]save last doc name /storage/0432/doc_00118270 to /storage/kkm_last_doc_name [19:11:19]save OK [19:11:19]Clear old archive folders... [19:11:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:11:19]tlvbuf is 01E27F90 [19:11:19]SAM_PROTO_ClearQueue [19:11:19]wFMCommunicate request_size=4 [19:11:19]MH_SAM_APDU [19:11:19]CAPDU: 80 09 00 00 [19:11:19]Write to MH i2c: E2 08 00 78 18 80 09 00 00 00 00 00 00 02 [19:11:19]Write i2c OK [19:11:19]MH_I2C_Read... [19:11:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:11:19]Read from MH i2c: E2 [19:11:19]MH_I2C_Read... [19:11:19]Read from MH i2c: E2 03 00 [19:11:19]MH_I2C_Read... [19:11:19]Read from MH i2c: E2 03 00 78 18 00 90 00 04 [19:11:19]RAPDU: 90 00 [19:11:19]wFMCommunicate OK [19:11:19]SAM_PROTO_ClearQueue done [19:11:19]KKMCreateOFDPacket [19:11:19]OFDProtocolAddRootSTLVToBuf [19:11:19]FM_MakeSignedData [19:11:19]FM_MakeSignedData [19:11:19]SAM_PROTO_SignData [19:11:19]wFMCommunicate request_size=4 [19:11:19]MH_SAM_APDU [19:11:19]CAPDU: 80 0D 01 02 [19:11:19]Write to MH i2c: E2 08 00 79 18 80 0D 01 02 00 00 00 00 0A [19:11:19]Write i2c OK [19:11:19]MH_I2C_Read... [19:11:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:11:19]Read from MH i2c: E2 [19:11:19]MH_I2C_Read... [19:11:19]Read from MH i2c: E2 03 00 [19:11:19]MH_I2C_Read... [19:11:19]Read from MH i2c: E2 03 00 79 18 00 90 00 05 [19:11:19]RAPDU: 90 00 [19:11:19]wFMCommunicate OK [19:11:19]wFMCommunicate request_size=255 [19:11:19]MH_SAM_APDU [19:11:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 D5 00 00 00 F4 03 04 00 57 46 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FE CD 01 00 35 04 06 00 30 41 4A FA [19:11:19]Write to MH i2c: E2 02 01 7A 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 D5 00 00 00 F4 03 04 00 57 46 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FE CD 01 00 35 04 06 00 30 41 4A FA 00 00 06 [19:11:19]Write i2c OK [19:11:19]MH_I2C_Read... [19:11:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:20]Read from MH i2c: E2 [19:11:20]MH_I2C_Read... [19:11:20]Read from MH i2c: E2 03 00 [19:11:20]MH_I2C_Read... [19:11:20]Read from MH i2c: E2 03 00 7A 18 00 90 00 06 [19:11:20]RAPDU: 90 00 [19:11:20]wFMCommunicate OK [19:11:20]wFMCommunicate request_size=7 [19:11:20]MH_SAM_APDU [19:11:20]CAPDU: 80 0D 02 02 02 B7 A0 [19:11:20]Write to MH i2c: E2 0A 00 7B 18 80 0D 02 02 02 00 B7 A0 00 00 68 [19:11:20]Write i2c OK [19:11:20]MH_I2C_Read... [19:11:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:20]Read from MH i2c: E2 [19:11:20]MH_I2C_Read... [19:11:20]Read from MH i2c: E2 03 00 [19:11:20]MH_I2C_Read... [19:11:20]Read from MH i2c: E2 03 00 7B 18 00 90 00 07 [19:11:20]RAPDU: 90 00 [19:11:20]wFMCommunicate OK [19:11:20]wFMCommunicate request_size=4 [19:11:20]MH_SAM_APDU [19:11:20]CAPDU: 80 0D 03 02 [19:11:20]Write to MH i2c: E2 08 00 7C 18 80 0D 03 02 00 00 00 00 0F [19:11:20]Write i2c OK [19:11:20]MH_I2C_Read... [19:11:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:11:20]Read from MH i2c: E2 [19:11:20]MH_I2C_Read... [19:11:20]Read from MH i2c: E2 0B 00 [19:11:20]MH_I2C_Read... [19:11:20]Read from MH i2c: E2 0B 00 7C 18 00 18 1D 89 A0 40 94 78 39 90 00 F3 [19:11:20]RAPDU: 18 1D 89 A0 40 94 78 39 90 00 [19:11:20]wFMCommunicate OK [19:11:20]SAM_PROTO_SignData done [19:11:20]FM_MakeSignedData done [19:11:20]CreateOFDProtocolMessage [19:11:20]wFMCommunicate request_size=4 [19:11:20]MH_SAM_APDU [19:11:20]CAPDU: 80 11 00 00 [19:11:20]Write to MH i2c: E2 08 00 7D 18 80 11 00 00 00 00 00 00 0F [19:11:20]Write i2c OK [19:11:20]MH_I2C_Read... [19:11:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:20]Read from MH i2c: E2 [19:11:20]MH_I2C_Read... [19:11:20]Read from MH i2c: E2 17 00 [19:11:20]MH_I2C_Read... [19:11:20]Read from MH i2c: E2 17 00 7D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6A [19:11:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:11:20]wFMCommunicate OK [19:11:20]CreateOFDProtocolMessage done [19:11:20]OFDSenderStorePacket 118270 [19:11:20]StoreOFDPacket docnum=118270 [19:11:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 95 52 04 01 7D 01 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 D5 00 00 00 F4 03 04 00 57 46 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FE CD 01 00 35 04 06 00 30 41 4A FA B7 A0 18 1D 89 A0 40 94 78 39 [19:11:20]CheckFolder [19:11:20]dirname=/storage/ofd_packets [19:11:20]CheckFolder done [19:11:20]ProducePacketName [19:11:20]name=ofd_packets/00118270 [19:11:20]NVStorageSaveData ofd_packets/00118270 [19:11:20]File name is /storage/ofd_packets/00118270 [19:11:20]Write 298 bytes [19:11:20]NVStorageSaveData done [19:11:20]OFDSenderStorePacket done [19:11:20]KKMCreateOFDPacket done [19:11:20]NVStorageSaveData kkm_last_timestamp [19:11:20]File name is /storage/kkm_last_timestamp [19:11:20]Write 4 bytes [19:11:20]NVStorageSaveData done [19:11:20]ExternCall_PrintAddStr [19:11:20]wPrintStart [19:11:20]Write to MH i2c: 01 00 00 7E 18 96 [19:11:20]Write i2c OK [19:11:20]MH_I2C_Read... [19:11:20]Read from MH i2c: 01 [19:11:20]MH_I2C_Read... [19:11:20]Read from MH i2c: 01 07 00 [19:11:20]MH_I2C_Read... [19:11:20]Read from MH i2c: 01 07 00 7E 18 00 00 00 00 00 FF 0F AB [19:11:20]RasterBufferAndPrint [19:11:20]line Счет N : (1)949143 [19:11:20]line ИНН: 02508201610067 [19:11:20]line Контрольно-Кассовый Чек [19:11:20]line ПРОДАЖА [19:11:20]line ТРК (МРК, ГНК) : 11 [19:11:20]line Товар: 2710194800 [19:11:20]line ДТ-К-5 [19:11:20]line 3.940 * 76.20 [19:11:20]line = 300.23 [19:11:20]line НДС 12% НСП 1% [19:11:20]line > о реализуемом товаре [19:11:20]line ОКРУГЛЕНИЕ: -0.23 [19:11:20]line ИТОГО: 300.00 [19:11:20]line Внесено: 300.00 [19:11:20]line СДАЧА: 0.00 [19:11:20]line НСП 1% : 2.66 [19:11:20]line НДС 12% : 31.88 [19:11:20]line Наличными: 300.00 [19:11:20]line Безнал.: 0.00 [19:11:20]line Место: АЗС № 134 "Партнер Нефть" [19:11:20]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:11:20]line СНО: Общий режим [19:11:20]line Чек 213 27.07.2024 19:11 [19:11:20]line Смена: 432 ФФД: 1.0 [19:11:20]line ЗНМ: 0300000044 [19:11:20]line РНМ: 0000000000092660 [19:11:20]line Версия ККМ: 001 [19:11:20]line ФМ: 0000000000874939 [19:11:20]line ФД: 118270 [19:11:20]line ФПД: 53056988952480 [19:11:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T191119&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118270&fm=53056988952480&tin=02508201610067®Number=0000000000092660&sum=30000 [19:11:20]OFD Sender: Processing packet 118270 [packets to send 86, broken 85] [19:11:20]ProducePacketName [19:11:20]name=ofd_packets/00118270 [19:11:20]OFD Sender: To server: pG, [19:11:20]CommunicateWithHost lk.salyk.kg:30040 [19:11:20]ConnectInit lk.salyk.kg [19:11:20]written 0, free lines is 4095 [19:11:20]Connected sock=10 [19:11:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 95 52 04 01 7D 01 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 D5 00 00 00 F4 03 04 00 57 46 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FE CD 01 00 35 04 06 00 30 41 4A FA B7 A0 18 1D 89 A0 40 94 78 39 [19:11:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 11 38 47 00 7F D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FE CD 01 00 F4 03 04 00 E9 F3 A4 66 B6 04 01 00 00 BF 10 15 BF BE 24 C4 24 [19:11:21]CommunicateWithHost err = 0 [19:11:21]CheckOFDResponse [19:11:21]1017 (14) - 77093643461234 [19:11:21]1041 (16) - 0000000000874939 [19:11:21]1040 (4) - 118270 [19:11:21]1012 (4) - 27.07.2024 13:19 [19:11:21]1206 (1) - 0 [19:11:21]OFD Sender: Remove packet 118270 [19:11:21]ProducePacketName [19:11:21]name=ofd_packets/00118270 [19:11:21]NVStorageDeleteData [19:11:21]Write to MH i2c: 01 00 00 A8 18 C0 [19:11:21]Write i2c OK [19:11:21]MH_I2C_Read... [19:11:21]Read from MH i2c: 01 [19:11:21]MH_I2C_Read... [19:11:21]Read from MH i2c: 01 07 00 [19:11:21]MH_I2C_Read... [19:11:21]Read from MH i2c: 01 07 00 A8 18 00 00 00 00 00 E3 0C B6 [19:11:21]RasterBufferAndPrint [19:11:21]line [19:11:21]line [19:11:21]line [19:11:21]line [19:11:21]line [19:11:21]written 0, free lines is 3305 [19:11:21]MH_Cut [19:11:21]Write to MH i2c: D1 01 00 AF 18 01 99 [19:11:21]Write i2c OK [19:11:21]MH_I2C_Read... [19:11:21]Read from MH i2c: D1 [19:11:21]MH_I2C_Read... [19:11:21]Read from MH i2c: D1 01 00 [19:11:21]MH_I2C_Read... [19:11:21]Read from MH i2c: D1 01 00 AF 18 00 98 [19:11:21]Write to MH i2c: 01 00 00 B0 18 C8 [19:11:21]Write i2c OK [19:11:21]MH_I2C_Read... [19:11:21]OFD Sender: No OFD packet to send [19:11:21]*** Cut start [19:11:21]*** Partial cut [19:11:21]*** CUTSNS_PIN = 1 [19:11:21]*** CUTSNS_PIN = 0 [19:11:22]*** Brake cut motor [19:11:22]Read from MH i2c: 01 [19:11:22]MH_I2C_Read... [19:11:22]*** Stop cut motor [19:11:22]*** Cut end [19:11:22]Read from MH i2c: 01 07 00 [19:11:22]MH_I2C_Read... [19:11:22]Read from MH i2c: 01 07 00 B0 18 00 00 00 00 00 FF 0F DD [19:11:22]process_action close_receipt done [19:11:22]requested_data is exist [19:11:22]produce_requested_data [19:11:22]requested_item fm.sn is exist - process it [19:11:22]wFMCommunicate request_size=4 [19:11:22]MH_SAM_APDU [19:11:22]CAPDU: 80 11 00 00 [19:11:22]Write to MH i2c: E2 08 00 B1 18 80 11 00 00 00 00 00 00 43 [19:11:22]Write i2c OK [19:11:22]MH_I2C_Read... [19:11:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:22]Read from MH i2c: E2 [19:11:22]MH_I2C_Read... [19:11:22]Read from MH i2c: E2 17 00 [19:11:22]MH_I2C_Read... [19:11:22]Read from MH i2c: E2 17 00 B1 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9E [19:11:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:11:22]wFMCommunicate OK [19:11:22]requested_item fd.num is exist - process it [19:11:22]SAM_PROTO_GetFieldsCounters [19:11:22]wFMCommunicate request_size=4 [19:11:22]MH_SAM_APDU [19:11:22]CAPDU: 80 13 00 00 [19:11:22]Write to MH i2c: E2 08 00 B2 18 80 13 00 00 00 00 00 00 46 [19:11:22]Write i2c OK [19:11:22]MH_I2C_Read... [19:11:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:11:22]Read from MH i2c: E2 [19:11:22]MH_I2C_Read... [19:11:22]Read from MH i2c: E2 62 00 [19:11:22]MH_I2C_Read... [19:11:22]Read from MH i2c: E2 62 00 B2 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FE CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [19:11:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FE CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:11:22]wFMCommunicate OK [19:11:22]SAM_PROTO_GetFieldsCounters done [19:11:22]requested_item shift.num is exist - process it [19:11:22]requested_item shift.opened is exist - process it [19:11:22]req_shift_opened [19:11:22]FM_GetShiftState [19:11:22]SAM_PROTO_GetShiftState [19:11:22]wFMCommunicate request_size=4 [19:11:22]MH_SAM_APDU [19:11:22]CAPDU: 80 13 01 00 [19:11:22]Write to MH i2c: E2 08 00 B3 18 80 13 01 00 00 00 00 00 48 [19:11:22]Write i2c OK [19:11:22]MH_I2C_Read... [19:11:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:22]Read from MH i2c: E2 [19:11:22]MH_I2C_Read... [19:11:22]Read from MH i2c: E2 0E 00 [19:11:22]MH_I2C_Read... [19:11:22]Read from MH i2c: E2 0E 00 B3 18 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 D5 [19:11:22]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [19:11:22]wFMCommunicate OK [19:11:22]SAM_PROTO_GetShiftState done [19:11:22]FM_GetShiftState done [19:11:22]req_shift_opened done [19:11:22]requested_item shift.open_date is exist - process it [19:11:22]req_shift_open_date [19:11:22]req_shift_open_date done [19:11:22]produce_requested_data done [19:11:22]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118270,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [19:11:22]process_action_free close_receipt [19:11:22]json_value_free [19:11:22]json_value_free done [19:11:22]process_json_proto returns [19:11:22]Send response to host [19:11:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118270,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [19:11:22]free response buf [19:11:22]execute_script done [19:11:22]execute_script returns [19:11:22]free content buf [19:11:22]Sock 7.Close socket [19:11:22]Sock 7.Thread stoped [19:11:26]OFD Sender: No OFD packet to send [19:11:31]OFD Sender: No OFD packet to send [19:11:36]OFD Sender: No OFD packet to send [19:11:41]OFD Sender: No OFD packet to send [19:11:46]OFD Sender: No OFD packet to send [19:11:51]OFD Sender: No OFD packet to send [19:11:56]OFD Sender: No OFD packet to send [19:12:01]OFD Sender: No OFD packet to send [19:12:06]OFD Sender: No OFD packet to send [19:12:11]OFD Sender: No OFD packet to send [19:12:16]OFD Sender: No OFD packet to send [19:12:21]OFD Sender: No OFD packet to send [19:12:26]OFD Sender: No OFD packet to send [19:12:31]OFD Sender: No OFD packet to send [19:12:36]OFD Sender: No OFD packet to send [19:12:41]OFD Sender: No OFD packet to send [19:12:46]OFD Sender: No OFD packet to send [19:12:51]OFD Sender: No OFD packet to send [19:12:56]OFD Sender: No OFD packet to send [19:13:01]OFD Sender: No OFD packet to send [19:13:06]OFD Sender: No OFD packet to send [19:13:11]OFD Sender: No OFD packet to send [19:13:16]OFD Sender: No OFD packet to send [19:13:21]OFD Sender: No OFD packet to send [19:13:26]OFD Sender: No OFD packet to send [19:13:31]OFD Sender: No OFD packet to send [19:13:36]OFD Sender: No OFD packet to send [19:13:41]OFD Sender: No OFD packet to send [19:13:46]OFD Sender: No OFD packet to send [19:13:51]OFD Sender: No OFD packet to send [19:13:56]OFD Sender: No OFD packet to send [19:14:01]OFD Sender: No OFD packet to send [19:14:06]OFD Sender: No OFD packet to send [19:14:11]OFD Sender: No OFD packet to send [19:14:16]OFD Sender: No OFD packet to send [19:14:21]OFD Sender: No OFD packet to send [19:14:26]OFD Sender: No OFD packet to send [19:14:31]OFD Sender: No OFD packet to send [19:14:36]OFD Sender: No OFD packet to send [19:14:41]OFD Sender: No OFD packet to send [19:14:46]OFD Sender: No OFD packet to send [19:14:51]OFD Sender: No OFD packet to send [19:14:56]OFD Sender: No OFD packet to send [19:15:01]OFD Sender: No OFD packet to send [19:15:06]OFD Sender: No OFD packet to send [19:15:11]OFD Sender: No OFD packet to send [19:15:16]OFD Sender: No OFD packet to send [19:15:21]OFD Sender: No OFD packet to send [19:15:26]OFD Sender: No OFD packet to send [19:15:31]OFD Sender: No OFD packet to send [19:15:36]OFD Sender: No OFD packet to send [19:15:41]OFD Sender: No OFD packet to send [19:15:43]accept exits with 9 [19:15:43]New connection [19:15:43]New thread 3066953060 created [19:15:43]Thread 3067096420 joined [19:15:43]Waiting for new connection... [19:15:43] Sock 9.Parse request [19:15:43]Sock 9.Check first char [19:15:43]Sock 9.First char is OK [19:15:43]request: POST /json_proto HTTP/1.0 [19:15:43]Method: POST [19:15:43]URL: /json_proto [19:15:43]Method is POST - this is cgi request [19:15:43]url: /json_proto [19:15:43]query_string will be loaded in cgi processing [19:15:43]execute_cgi json_proto POST (null) [19:15:43]execute_cgi path=json_proto method=POST [19:15:43]POST find Content-Length [19:15:43]Host: 172.17.45.7:8080 [19:15:43]Content-Length: 682 [19:15:43]Content-Type: application/json [19:15:43] [19:15:43]POST finish read [19:15:43]Found Content-Length = 682 [19:15:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:15:43]execute_script... [19:15: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)949145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:15:43]POST & json_proto [19:15:43]process_json_proto [19:15:43]json parsed OK: [19:15:43]protocol is kg_v1.0 [19:15:43]action value=close_receipt [19:15:43]process_action close_receipt [19:15:43]cmd_close_receipt [19:15:43]MH_GetDate [19:15:43]Write to MH i2c: F0 00 00 B4 18 BB [19:15:43]Write i2c OK [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: F0 [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: F0 09 00 [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: F0 09 00 B4 18 00 60 47 A5 66 90 0F 3E 66 B9 [19:15:43]GetLastDocTimeStamp 1722107479 [19:15:43]current date 1722107744 [19:15:43]FM_GetShiftState [19:15:43]SAM_PROTO_GetShiftState [19:15:43]wFMCommunicate request_size=4 [19:15:43]MH_SAM_APDU [19:15:43]CAPDU: 80 13 01 00 [19:15:43]Write to MH i2c: E2 08 00 B5 18 80 13 01 00 00 00 00 00 4A [19:15:43]Write i2c OK [19:15:43]MH_I2C_Read... [19:15:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:43]Read from MH i2c: E2 [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: E2 0E 00 [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: E2 0E 00 B5 18 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 D7 [19:15:43]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [19:15:43]wFMCommunicate OK [19:15:43]SAM_PROTO_GetShiftState done [19:15:43]FM_GetShiftState done [19:15:43]opened in 1722038845 [19:15:43]opened+sec_in_day 1722125245 [19:15:43]quantity*price = 100005 [19:15:43]sum+1 = 100006 [19:15:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 214 27.07.2024 19:15 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118271 ФПД: 275224149809783 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T191544&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118271&fm=275224149809783&tin=02508201610067®Number=0000000000092660&sum=100000 [19:15:44]StoreToDocumentArchive [19:15:44]shift 432 fd 118271 [19:15:44]save to /storage/0432/doc_00118271 [19:15:44]save last doc name /storage/0432/doc_00118271 to /storage/kkm_last_doc_name [19:15:44]save OK [19:15:44]Clear old archive folders... [19:15:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:15:44]tlvbuf is 01DBE1F0 [19:15:44]SAM_PROTO_ClearQueue [19:15:44]wFMCommunicate request_size=4 [19:15:44]MH_SAM_APDU [19:15:44]CAPDU: 80 09 00 00 [19:15:44]Write to MH i2c: E2 08 00 C2 18 80 09 00 00 00 00 00 00 4C [19:15:44]Write i2c OK [19:15:44]MH_I2C_Read... [19:15:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:44]Read from MH i2c: E2 [19:15:44]MH_I2C_Read... [19:15:44]Read from MH i2c: E2 03 00 [19:15:44]MH_I2C_Read... [19:15:44]Read from MH i2c: E2 03 00 C2 18 00 90 00 4E [19:15:44]RAPDU: 90 00 [19:15:44]wFMCommunicate OK [19:15:44]SAM_PROTO_ClearQueue done [19:15:44]KKMCreateOFDPacket [19:15:44]OFDProtocolAddRootSTLVToBuf [19:15:44]FM_MakeSignedData [19:15:44]FM_MakeSignedData [19:15:44]SAM_PROTO_SignData [19:15:44]wFMCommunicate request_size=4 [19:15:44]MH_SAM_APDU [19:15:44]CAPDU: 80 0D 01 02 [19:15:44]Write to MH i2c: E2 08 00 C3 18 80 0D 01 02 00 00 00 00 54 [19:15:44]Write i2c OK [19:15:44]MH_I2C_Read... [19:15:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:44]Read from MH i2c: E2 [19:15:44]MH_I2C_Read... [19:15:44]Read from MH i2c: E2 03 00 [19:15:44]MH_I2C_Read... [19:15:44]Read from MH i2c: E2 03 00 C3 18 00 90 00 4F [19:15:44]RAPDU: 90 00 [19:15:44]wFMCommunicate OK [19:15:44]wFMCommunicate request_size=255 [19:15:44]MH_SAM_APDU [19:15: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 60 47 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FF CD 01 00 35 04 06 00 FA [19:15:44]Write to MH i2c: E2 02 01 C4 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 60 47 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FF CD 01 00 35 04 06 00 FA 00 00 67 [19:15:44]Write i2c OK [19:15:44]MH_I2C_Read... [19:15:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:45]Read from MH i2c: E2 [19:15:45]MH_I2C_Read... [19:15:45]Read from MH i2c: E2 03 00 [19:15:45]MH_I2C_Read... [19:15:45]Read from MH i2c: E2 03 00 C4 18 00 90 00 50 [19:15:45]RAPDU: 90 00 [19:15:45]wFMCommunicate OK [19:15:45]wFMCommunicate request_size=10 [19:15:45]MH_SAM_APDU [19:15:45]CAPDU: 80 0D 02 02 05 50 9D AE DA 77 [19:15:45]Write to MH i2c: E2 0D 00 C5 18 80 0D 02 02 05 00 50 9D AE DA 77 00 00 4D [19:15:45]Write i2c OK [19:15:45]MH_I2C_Read... [19:15:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:45]Read from MH i2c: E2 [19:15:45]MH_I2C_Read... [19:15:45]Read from MH i2c: E2 03 00 [19:15:45]MH_I2C_Read... [19:15:45]Read from MH i2c: E2 03 00 C5 18 00 90 00 51 [19:15:45]RAPDU: 90 00 [19:15:45]wFMCommunicate OK [19:15:45]wFMCommunicate request_size=4 [19:15:45]MH_SAM_APDU [19:15:45]CAPDU: 80 0D 03 02 [19:15:45]Write to MH i2c: E2 08 00 C6 18 80 0D 03 02 00 00 00 00 59 [19:15:45]Write i2c OK [19:15:45]MH_I2C_Read... [19:15:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:45]Read from MH i2c: E2 [19:15:45]MH_I2C_Read... [19:15:45]Read from MH i2c: E2 0B 00 [19:15:45]MH_I2C_Read... [19:15:45]Read from MH i2c: E2 0B 00 C6 18 00 74 4D CA 17 20 68 87 FF 90 00 0A [19:15:45]RAPDU: 74 4D CA 17 20 68 87 FF 90 00 [19:15:45]wFMCommunicate OK [19:15:45]SAM_PROTO_SignData done [19:15:45]FM_MakeSignedData done [19:15:45]CreateOFDProtocolMessage [19:15:45]wFMCommunicate request_size=4 [19:15:45]MH_SAM_APDU [19:15:45]CAPDU: 80 11 00 00 [19:15:45]Write to MH i2c: E2 08 00 C7 18 80 11 00 00 00 00 00 00 59 [19:15:45]Write i2c OK [19:15:45]MH_I2C_Read... [19:15:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:45]Read from MH i2c: E2 [19:15:45]MH_I2C_Read... [19:15:45]Read from MH i2c: E2 17 00 [19:15:45]MH_I2C_Read... [19:15:45]Read from MH i2c: E2 17 00 C7 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B4 [19:15:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:15:45]wFMCommunicate OK [19:15:45]CreateOFDProtocolMessage done [19:15:45]OFDSenderStorePacket 118271 [19:15:45]StoreOFDPacket docnum=118271 [19:15:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A5 9E 07 01 89 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 60 47 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FF CD 01 00 35 04 06 00 FA 50 9D AE DA 77 74 4D CA 17 20 68 87 FF [19:15:45]CheckFolder [19:15:45]dirname=/storage/ofd_packets [19:15:45]CheckFolder done [19:15:45]ProducePacketName [19:15:45]name=ofd_packets/00118271 [19:15:45]NVStorageSaveData ofd_packets/00118271 [19:15:45]File name is /storage/ofd_packets/00118271 [19:15:45]Write 301 bytes [19:15:45]NVStorageSaveData done [19:15:45]OFDSenderStorePacket done [19:15:45]KKMCreateOFDPacket done [19:15:45]NVStorageSaveData kkm_last_timestamp [19:15:45]File name is /storage/kkm_last_timestamp [19:15:45]Write 4 bytes [19:15:45]NVStorageSaveData done [19:15:45]ExternCall_PrintAddStr [19:15:45]wPrintStart [19:15:45]Write to MH i2c: 01 00 00 C8 18 E0 [19:15:45]Write i2c OK [19:15:45]MH_I2C_Read... [19:15:45]Read from MH i2c: 01 [19:15:45]MH_I2C_Read... [19:15:45]Read from MH i2c: 01 07 00 [19:15:45]MH_I2C_Read... [19:15:45]Read from MH i2c: 01 07 00 C8 18 00 00 00 00 00 FF 0F F5 [19:15:45]RasterBufferAndPrint [19:15:45]line Счет N : (1)949145 [19:15:45]line ИНН: 02508201610067 [19:15:45]line Контрольно-Кассовый Чек [19:15:45]line ПРОДАЖА [19:15:45]line ТРК (МРК, ГНК) : 31 [19:15:45]line Товар: 2710124130 [19:15:45]line Аи-92-К-4 [19:15:45]line 14.750 * 67.80 [19:15:45]line = 1000.05 [19:15:45]line НДС 12% НСП 1% [19:15:45]line > о реализуемом товаре [19:15:45]line ОКРУГЛЕНИЕ: -0.05 [19:15:45]line ИТОГО: 1000.00 [19:15:45]line Внесено: 1000.00 [19:15:45]line СДАЧА: 0.00 [19:15:45]line НСП 1% : 8.85 [19:15:45]line НДС 12% : 106.20 [19:15:45]line Наличными: 1000.00 [19:15:45]line Безнал.: 0.00 [19:15:45]line Место: АЗС № 134 "Партнер Нефть" [19:15:45]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:15:45]line СНО: Общий режим [19:15:45]line Чек 214 27.07.2024 19:15 [19:15:45]line Смена: 432 ФФД: 1.0 [19:15:45]line ЗНМ: 0300000044 [19:15:45]line РНМ: 0000000000092660 [19:15:45]line Версия ККМ: 001 [19:15:45]line ФМ: 0000000000874939 [19:15:45]line ФД: 118271 [19:15:45]line ФПД: 275224149809783 [19:15:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T191544&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118271&fm=275224149809783&tin=02508201610067®Number=0000000000092660&sum=100000 [19:15:45]written 0, free lines is 4095 [19:15:45]OFD Sender: Processing packet 118271 [packets to send 86, broken 85] [19:15:45]ProducePacketName [19:15:45]name=ofd_packets/00118271 [19:15:45]OFD Sender: To server: pG, [19:15:45]CommunicateWithHost lk.salyk.kg:30040 [19:15:45]ConnectInit lk.salyk.kg [19:15:45]Connected sock=10 [19:15:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A5 9E 07 01 89 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 60 47 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FF CD 01 00 35 04 06 00 FA 50 9D AE DA 77 74 4D CA 17 20 68 87 FF [19:15:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C3 6B 47 00 57 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FF CD 01 00 F4 03 04 00 F2 F4 A4 66 B6 04 01 00 00 4A 22 19 F8 F0 CB 49 9B [19:15:46]CommunicateWithHost err = 0 [19:15:46]CheckOFDResponse [19:15:46]1017 (14) - 77093643461234 [19:15:46]1041 (16) - 0000000000874939 [19:15:46]1040 (4) - 118271 [19:15:46]1012 (4) - 27.07.2024 13:24 [19:15:46]1206 (1) - 0 [19:15:46]OFD Sender: Remove packet 118271 [19:15:46]ProducePacketName [19:15:46]name=ofd_packets/00118271 [19:15:46]NVStorageDeleteData [19:15:46]Write to MH i2c: 01 00 00 F2 18 0A [19:15:46]Write i2c OK [19:15:46]MH_I2C_Read... [19:15:46]Read from MH i2c: 01 [19:15:46]MH_I2C_Read... [19:15:46]Read from MH i2c: 01 07 00 [19:15:46]MH_I2C_Read... [19:15:46]Read from MH i2c: 01 07 00 F2 18 00 00 00 00 00 E9 0C 06 [19:15:46]RasterBufferAndPrint [19:15:46]line [19:15:46]line [19:15:46]line [19:15:46]line [19:15:46]line [19:15:46]written 0, free lines is 3311 [19:15:46]MH_Cut [19:15:46]Write to MH i2c: D1 01 00 F9 18 01 E3 [19:15:46]Write i2c OK [19:15:46]MH_I2C_Read... [19:15:46]Read from MH i2c: D1 [19:15:46]MH_I2C_Read... [19:15:46]Read from MH i2c: D1 01 00 [19:15:46]MH_I2C_Read... [19:15:46]Read from MH i2c: D1 01 00 F9 18 00 E2 [19:15:46]Write to MH i2c: 01 00 00 FA 18 12 [19:15:46]Write i2c OK [19:15:46]MH_I2C_Read... [19:15:46]OFD Sender: No OFD packet to send [19:15:46]*** Cut start [19:15:46]*** Partial cut [19:15:46]*** CUTSNS_PIN = 1 [19:15:46]*** CUTSNS_PIN = 0 [19:15:47]*** Brake cut motor [19:15:47]Read from MH i2c: 01 [19:15:47]MH_I2C_Read... [19:15:47]*** Stop cut motor [19:15:47]*** Cut end [19:15:47]Read from MH i2c: 01 07 00 [19:15:47]MH_I2C_Read... [19:15:47]Read from MH i2c: 01 07 00 FA 18 00 00 00 00 00 FF 0F 27 [19:15:47]process_action close_receipt done [19:15:47]requested_data is exist [19:15:47]produce_requested_data [19:15:47]requested_item fm.sn is exist - process it [19:15:47]wFMCommunicate request_size=4 [19:15:47]MH_SAM_APDU [19:15:47]CAPDU: 80 11 00 00 [19:15:47]Write to MH i2c: E2 08 00 FB 18 80 11 00 00 00 00 00 00 8D [19:15:47]Write i2c OK [19:15:47]MH_I2C_Read... [19:15:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:47]Read from MH i2c: E2 [19:15:47]MH_I2C_Read... [19:15:47]Read from MH i2c: E2 17 00 [19:15:47]MH_I2C_Read... [19:15:47]Read from MH i2c: E2 17 00 FB 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E8 [19:15:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:15:47]wFMCommunicate OK [19:15:47]requested_item fd.num is exist - process it [19:15:47]SAM_PROTO_GetFieldsCounters [19:15:47]wFMCommunicate request_size=4 [19:15:47]MH_SAM_APDU [19:15:47]CAPDU: 80 13 00 00 [19:15:47]Write to MH i2c: E2 08 00 FC 18 80 13 00 00 00 00 00 00 90 [19:15:47]Write i2c OK [19:15:47]MH_I2C_Read... [19:15:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:47]Read from MH i2c: E2 [19:15:47]MH_I2C_Read... [19:15:47]Read from MH i2c: E2 62 00 [19:15:47]MH_I2C_Read... [19:15:47]Read from MH i2c: E2 62 00 FC 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FF CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [19:15:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FF CD 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:15:47]wFMCommunicate OK [19:15:47]SAM_PROTO_GetFieldsCounters done [19:15:47]requested_item shift.num is exist - process it [19:15:47]requested_item shift.opened is exist - process it [19:15:47]req_shift_opened [19:15:47]FM_GetShiftState [19:15:47]SAM_PROTO_GetShiftState [19:15:47]wFMCommunicate request_size=4 [19:15:47]MH_SAM_APDU [19:15:47]CAPDU: 80 13 01 00 [19:15:47]Write to MH i2c: E2 08 00 FD 18 80 13 01 00 00 00 00 00 92 [19:15:47]Write i2c OK [19:15:47]MH_I2C_Read... [19:15:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:47]Read from MH i2c: E2 [19:15:47]MH_I2C_Read... [19:15:47]Read from MH i2c: E2 0E 00 [19:15:47]MH_I2C_Read... [19:15:47]Read from MH i2c: E2 0E 00 FD 18 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 1F [19:15:47]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [19:15:47]wFMCommunicate OK [19:15:47]SAM_PROTO_GetShiftState done [19:15:47]FM_GetShiftState done [19:15:47]req_shift_opened done [19:15:47]requested_item shift.open_date is exist - process it [19:15:47]req_shift_open_date [19:15:47]req_shift_open_date done [19:15:47]produce_requested_data done [19:15:47]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118271,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [19:15:47]process_action_free close_receipt [19:15:47]json_value_free [19:15:47]json_value_free done [19:15:47]process_json_proto returns [19:15:47]Send response to host [19:15:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118271,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [19:15:47]free response buf [19:15:47]execute_script done [19:15:47]execute_script returns [19:15:47]free content buf [19:15:47]Sock 9.Close socket [19:15:47]Sock 9.Thread stoped [19:15:51]OFD Sender: No OFD packet to send [19:15:56]OFD Sender: No OFD packet to send [19:16:01]OFD Sender: No OFD packet to send [19:16:06]OFD Sender: No OFD packet to send [19:16:11]OFD Sender: No OFD packet to send [19:16:16]OFD Sender: No OFD packet to send [19:16:21]OFD Sender: No OFD packet to send [19:16:26]OFD Sender: No OFD packet to send [19:16:30]accept exits with 7 [19:16:30]New connection [19:16:30]New thread 3067096420 created [19:16:30]Thread 3066953060 joined [19:16:30]Waiting for new connection... [19:16:30] Sock 7.Parse request [19:16:30]Sock 7.Check first char [19:16:30]Sock 7.First char is OK [19:16:30]request: POST /json_proto HTTP/1.0 [19:16:30]Method: POST [19:16:30]URL: /json_proto [19:16:30]Method is POST - this is cgi request [19:16:30]url: /json_proto [19:16:30]query_string will be loaded in cgi processing [19:16:30]execute_cgi json_proto POST (null) [19:16:30]execute_cgi path=json_proto method=POST [19:16:30]POST find Content-Length [19:16:30]Host: 172.17.45.7:8080 [19:16:30]Content-Length: 819 [19:16:30]Content-Type: application/json [19:16:30] [19:16:30]POST finish read [19:16:30]Found Content-Length = 819 [19:16:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 4000.00, "payments": [ { "type": 1, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:30]execute_script... [19:16: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)949144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 4000.00, "payments": [ { "type": 1, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:30]POST & json_proto [19:16:30]process_json_proto [19:16:30]json parsed OK: [19:16:30]protocol is kg_v1.0 [19:16:30]action value=close_receipt [19:16:30]process_action close_receipt [19:16:30]cmd_close_receipt [19:16:30]MH_GetDate [19:16:30]Write to MH i2c: F0 00 00 FE 18 05 [19:16:30]Write i2c OK [19:16:30]MH_I2C_Read... [19:16:30]Read from MH i2c: F0 [19:16:30]MH_I2C_Read... [19:16:30]Read from MH i2c: F0 09 00 [19:16:30]MH_I2C_Read... [19:16:30]Read from MH i2c: F0 09 00 FE 18 00 8F 47 A5 66 90 0F 3E 66 32 [19:16:30]GetLastDocTimeStamp 1722107744 [19:16:30]current date 1722107791 [19:16:30]FM_GetShiftState [19:16:30]SAM_PROTO_GetShiftState [19:16:30]wFMCommunicate request_size=4 [19:16:30]MH_SAM_APDU [19:16:30]CAPDU: 80 13 01 00 [19:16:30]Write to MH i2c: E2 08 00 FF 18 80 13 01 00 00 00 00 00 94 [19:16:30]Write i2c OK [19:16:30]MH_I2C_Read... [19:16:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:30]Read from MH i2c: E2 [19:16:30]MH_I2C_Read... [19:16:30]Read from MH i2c: E2 0E 00 [19:16:30]MH_I2C_Read... [19:16:30]Read from MH i2c: E2 0E 00 FF 18 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 21 [19:16:30]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [19:16:30]wFMCommunicate OK [19:16:30]SAM_PROTO_GetShiftState done [19:16:30]FM_GetShiftState done [19:16:30]opened in 1722038845 [19:16:30]opened+sec_in_day 1722125245 [19:16:30]quantity*price = 400050 [19:16:30]sum+1 = 400051 [19:16:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 0.00 Безнал.: 4000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 215 27.07.2024 19:16 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118272 ФПД: 134289575726786 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T191631&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118272&fm=134289575726786&tin=02508201610067®Number=0000000000092660&sum=400000 [19:16:31]StoreToDocumentArchive [19:16:31]shift 432 fd 118272 [19:16:31]save to /storage/0432/doc_00118272 [19:16:31]save last doc name /storage/0432/doc_00118272 to /storage/kkm_last_doc_name [19:16:31]save OK [19:16:31]Clear old archive folders... [19:16:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:16:31]tlvbuf is 01E283A0 [19:16:31]SAM_PROTO_ClearQueue [19:16:31]wFMCommunicate request_size=4 [19:16:31]MH_SAM_APDU [19:16:31]CAPDU: 80 09 00 00 [19:16:31]Write to MH i2c: E2 08 00 0C 19 80 09 00 00 00 00 00 00 97 [19:16:31]Write i2c OK [19:16:31]MH_I2C_Read... [19:16:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:31]Read from MH i2c: E2 [19:16:31]MH_I2C_Read... [19:16:31]Read from MH i2c: E2 03 00 [19:16:31]MH_I2C_Read... [19:16:31]Read from MH i2c: E2 03 00 0C 19 00 90 00 99 [19:16:31]RAPDU: 90 00 [19:16:31]wFMCommunicate OK [19:16:31]SAM_PROTO_ClearQueue done [19:16:31]KKMCreateOFDPacket [19:16:31]OFDProtocolAddRootSTLVToBuf [19:16:31]FM_MakeSignedData [19:16:31]FM_MakeSignedData [19:16:31]SAM_PROTO_SignData [19:16:31]wFMCommunicate request_size=4 [19:16:31]MH_SAM_APDU [19:16:31]CAPDU: 80 0D 01 02 [19:16:31]Write to MH i2c: E2 08 00 0D 19 80 0D 01 02 00 00 00 00 9F [19:16:31]Write i2c OK [19:16:31]MH_I2C_Read... [19:16:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:31]Read from MH i2c: E2 [19:16:31]MH_I2C_Read... [19:16:31]Read from MH i2c: E2 03 00 [19:16:31]MH_I2C_Read... [19:16:31]Read from MH i2c: E2 03 00 0D 19 00 90 00 9A [19:16:31]RAPDU: 90 00 [19:16:31]wFMCommunicate OK [19:16:31]wFMCommunicate request_size=255 [19:16:31]MH_SAM_APDU [19:16: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 8F 47 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 00 CE 01 00 35 04 06 00 7A 22 BA 75 [19:16:31]Write to MH i2c: E2 02 01 0E 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 8F 47 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 00 CE 01 00 35 04 06 00 7A 22 BA 75 00 00 57 [19:16:31]Write i2c OK [19:16:31]MH_I2C_Read... [19:16:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:32]Read from MH i2c: E2 [19:16:32]MH_I2C_Read... [19:16:32]Read from MH i2c: E2 03 00 [19:16:32]MH_I2C_Read... [19:16:32]Read from MH i2c: E2 03 00 0E 19 00 90 00 9B [19:16:32]RAPDU: 90 00 [19:16:32]wFMCommunicate OK [19:16:32]wFMCommunicate request_size=7 [19:16:32]MH_SAM_APDU [19:16:32]CAPDU: 80 0D 02 02 02 4E C2 [19:16:32]Write to MH i2c: E2 0A 00 0F 19 80 0D 02 02 02 00 4E C2 00 00 B6 [19:16:32]Write i2c OK [19:16:32]MH_I2C_Read... [19:16:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:32]Read from MH i2c: E2 [19:16:32]MH_I2C_Read... [19:16:32]Read from MH i2c: E2 03 00 [19:16:32]MH_I2C_Read... [19:16:32]Read from MH i2c: E2 03 00 0F 19 00 90 00 9C [19:16:32]RAPDU: 90 00 [19:16:32]wFMCommunicate OK [19:16:32]wFMCommunicate request_size=4 [19:16:32]MH_SAM_APDU [19:16:32]CAPDU: 80 0D 03 02 [19:16:32]Write to MH i2c: E2 08 00 10 19 80 0D 03 02 00 00 00 00 A4 [19:16:32]Write i2c OK [19:16:32]MH_I2C_Read... [19:16:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:32]Read from MH i2c: E2 [19:16:32]MH_I2C_Read... [19:16:32]Read from MH i2c: E2 0B 00 [19:16:32]MH_I2C_Read... [19:16:32]Read from MH i2c: E2 0B 00 10 19 00 45 4A B1 D4 57 03 4D FF 90 00 5F [19:16:32]RAPDU: 45 4A B1 D4 57 03 4D FF 90 00 [19:16:32]wFMCommunicate OK [19:16:32]SAM_PROTO_SignData done [19:16:32]FM_MakeSignedData done [19:16:32]CreateOFDProtocolMessage [19:16:32]wFMCommunicate request_size=4 [19:16:32]MH_SAM_APDU [19:16:32]CAPDU: 80 11 00 00 [19:16:32]Write to MH i2c: E2 08 00 11 19 80 11 00 00 00 00 00 00 A4 [19:16:32]Write i2c OK [19:16:32]MH_I2C_Read... [19:16:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:32]Read from MH i2c: E2 [19:16:32]MH_I2C_Read... [19:16:32]Read from MH i2c: E2 17 00 [19:16:32]MH_I2C_Read... [19:16:32]Read from MH i2c: E2 17 00 11 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FF [19:16:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:16:32]wFMCommunicate OK [19:16:32]CreateOFDProtocolMessage done [19:16:32]OFDSenderStorePacket 118272 [19:16:32]StoreOFDPacket docnum=118272 [19:16:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 24 E5 04 01 75 C0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 8F 47 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 00 CE 01 00 35 04 06 00 7A 22 BA 75 4E C2 45 4A B1 D4 57 03 4D FF [19:16:32]CheckFolder [19:16:32]dirname=/storage/ofd_packets [19:16:32]CheckFolder done [19:16:32]ProducePacketName [19:16:32]name=ofd_packets/00118272 [19:16:32]NVStorageSaveData ofd_packets/00118272 [19:16:32]File name is /storage/ofd_packets/00118272 [19:16:32]Write 298 bytes [19:16:32]NVStorageSaveData done [19:16:32]OFDSenderStorePacket done [19:16:32]KKMCreateOFDPacket done [19:16:32]NVStorageSaveData kkm_last_timestamp [19:16:32]File name is /storage/kkm_last_timestamp [19:16:32]Write 4 bytes [19:16:32]NVStorageSaveData done [19:16:32]ExternCall_PrintAddStr [19:16:32]wPrintStart [19:16:32]Write to MH i2c: 01 00 00 12 19 2B [19:16:32]Write i2c OK [19:16:32]MH_I2C_Read... [19:16:32]Read from MH i2c: 01 [19:16:32]MH_I2C_Read... [19:16:32]Read from MH i2c: 01 07 00 [19:16:32]MH_I2C_Read... [19:16:32]Read from MH i2c: 01 07 00 12 19 00 00 00 00 00 FF 0F 40 [19:16:32]RasterBufferAndPrint [19:16:32]line Счет N : (1)949144 [19:16:32]line ИНН: 02508201610067 [19:16:32]line Контрольно-Кассовый Чек [19:16:32]line ПРОДАЖА [19:16:32]line ТРК (МРК, ГНК) : 11 [19:16:32]line Товар: 2710194800 [19:16:32]line ДТ-К-5 [19:16:32]line 52.500 * 76.20 [19:16:32]line = 4000.50 [19:16:32]line НДС 12% НСП 1% [19:16:32]line > о реализуемом товаре [19:16:32]line ОКРУГЛЕНИЕ: -0.50 [19:16:32]line ИТОГО: 4000.00 [19:16:32]line НСП 1% : 35.40 [19:16:32]line НДС 12% : 424.83 [19:16:32]line Наличными: 0.00 [19:16:32]line Безнал.: 4000.00 [19:16:32]line Место: АЗС № 134 "Партнер Нефть" [19:16:32]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:16:32]line СНО: Общий режим [19:16:32]line Чек 215 27.07.2024 19:16 [19:16:32]line Смена: 432 ФФД: 1.0 [19:16:32]line ЗНМ: 0300000044 [19:16:32]line РНМ: 0000000000092660 [19:16:32]line Версия ККМ: 001 [19:16:32]line Платежная система: O! деньги [19:16:32]line ФМ: 0000000000874939 [19:16:32]line ФД: 118272 [19:16:32]line ФПД: 134289575726786 [19:16:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T191631&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118272&fm=134289575726786&tin=02508201610067®Number=0000000000092660&sum=400000 [19:16:32]OFD Sender: Processing packet 118272 [packets to send 86, broken 85] [19:16:32]ProducePacketName [19:16:32]name=ofd_packets/00118272 [19:16:32]OFD Sender: To server: pG, [19:16:32]CommunicateWithHost lk.salyk.kg:30040 [19:16:32]ConnectInit lk.salyk.kg [19:16:32]written 0, free lines is 4095 [19:16:32]Connected sock=10 [19:16:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 24 E5 04 01 75 C0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 8F 47 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 00 CE 01 00 35 04 06 00 7A 22 BA 75 4E C2 45 4A B1 D4 57 03 4D FF [19:16:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 8E 1A 47 00 58 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 00 CE 01 00 F4 03 04 00 22 F5 A4 66 B6 04 01 00 00 AD 90 09 9C A8 05 36 A9 [19:16:33]CommunicateWithHost err = 0 [19:16:33]CheckOFDResponse [19:16:33]1017 (14) - 77093643461234 [19:16:33]1041 (16) - 0000000000874939 [19:16:33]1040 (4) - 118272 [19:16:33]1012 (4) - 27.07.2024 13:24 [19:16:33]1206 (1) - 0 [19:16:33]OFD Sender: Remove packet 118272 [19:16:33]ProducePacketName [19:16:33]name=ofd_packets/00118272 [19:16:33]NVStorageDeleteData [19:16:33]Write to MH i2c: 01 00 00 3C 19 55 [19:16:33]Write i2c OK [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: 01 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: 01 07 00 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: 01 07 00 3C 19 00 00 00 00 00 DD 0C 45 [19:16:33]RasterBufferAndPrint [19:16:33]line [19:16:33]line [19:16:33]line [19:16:33]line [19:16:33]line [19:16:33]written 0, free lines is 3302 [19:16:33]MH_Cut [19:16:33]Write to MH i2c: D1 01 00 43 19 01 2E [19:16:33]Write i2c OK [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: D1 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: D1 01 00 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: D1 01 00 43 19 00 2D [19:16:33]Write to MH i2c: 01 00 00 44 19 5D [19:16:33]Write i2c OK [19:16:33]MH_I2C_Read... [19:16:33]OFD Sender: No OFD packet to send [19:16:33]*** Cut start [19:16:33]*** Partial cut [19:16:33]*** CUTSNS_PIN = 1 [19:16:33]*** CUTSNS_PIN = 0 [19:16:34]*** Brake cut motor [19:16:34]Read from MH i2c: 01 [19:16:34]MH_I2C_Read... [19:16:34]*** Stop cut motor [19:16:34]*** Cut end [19:16:34]Read from MH i2c: 01 07 00 [19:16:34]MH_I2C_Read... [19:16:34]Read from MH i2c: 01 07 00 44 19 00 00 00 00 00 FF 0F 72 [19:16:34]process_action close_receipt done [19:16:34]requested_data is exist [19:16:34]produce_requested_data [19:16:34]requested_item fm.sn is exist - process it [19:16:34]wFMCommunicate request_size=4 [19:16:34]MH_SAM_APDU [19:16:34]CAPDU: 80 11 00 00 [19:16:34]Write to MH i2c: E2 08 00 45 19 80 11 00 00 00 00 00 00 D8 [19:16:34]Write i2c OK [19:16:34]MH_I2C_Read... [19:16:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:34]Read from MH i2c: E2 [19:16:34]MH_I2C_Read... [19:16:34]Read from MH i2c: E2 17 00 [19:16:34]MH_I2C_Read... [19:16:34]Read from MH i2c: E2 17 00 45 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 33 [19:16:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:16:34]wFMCommunicate OK [19:16:34]requested_item fd.num is exist - process it [19:16:34]SAM_PROTO_GetFieldsCounters [19:16:34]wFMCommunicate request_size=4 [19:16:34]MH_SAM_APDU [19:16:34]CAPDU: 80 13 00 00 [19:16:34]Write to MH i2c: E2 08 00 46 19 80 13 00 00 00 00 00 00 DB [19:16:34]Write i2c OK [19:16:34]MH_I2C_Read... [19:16:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:34]Read from MH i2c: E2 [19:16:34]MH_I2C_Read... [19:16:34]Read from MH i2c: E2 62 00 [19:16:34]MH_I2C_Read... [19:16:34]Read from MH i2c: E2 62 00 46 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 00 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [19:16:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 00 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:16:34]wFMCommunicate OK [19:16:34]SAM_PROTO_GetFieldsCounters done [19:16:34]requested_item shift.num is exist - process it [19:16:34]requested_item shift.opened is exist - process it [19:16:34]req_shift_opened [19:16:34]FM_GetShiftState [19:16:34]SAM_PROTO_GetShiftState [19:16:34]wFMCommunicate request_size=4 [19:16:34]MH_SAM_APDU [19:16:34]CAPDU: 80 13 01 00 [19:16:34]Write to MH i2c: E2 08 00 47 19 80 13 01 00 00 00 00 00 DD [19:16:34]Write i2c OK [19:16:34]MH_I2C_Read... [19:16:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:34]Read from MH i2c: E2 [19:16:34]MH_I2C_Read... [19:16:34]Read from MH i2c: E2 0E 00 [19:16:34]MH_I2C_Read... [19:16:34]Read from MH i2c: E2 0E 00 47 19 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 6A [19:16:34]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [19:16:34]wFMCommunicate OK [19:16:34]SAM_PROTO_GetShiftState done [19:16:34]FM_GetShiftState done [19:16:34]req_shift_opened done [19:16:34]requested_item shift.open_date is exist - process it [19:16:34]req_shift_open_date [19:16:34]req_shift_open_date done [19:16:34]produce_requested_data done [19:16:34]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118272,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [19:16:34]process_action_free close_receipt [19:16:34]json_value_free [19:16:34]json_value_free done [19:16:34]process_json_proto returns [19:16:34]Send response to host [19:16:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118272,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [19:16:34]free response buf [19:16:34]execute_script done [19:16:34]execute_script returns [19:16:34]free content buf [19:16:34]Sock 7.Close socket [19:16:34]Sock 7.Thread stoped [19:16:38]OFD Sender: No OFD packet to send [19:16:43]OFD Sender: No OFD packet to send [19:16:48]OFD Sender: No OFD packet to send [19:16:53]OFD Sender: No OFD packet to send [19:16:58]OFD Sender: No OFD packet to send [19:17:03]OFD Sender: No OFD packet to send [19:17:08]OFD Sender: No OFD packet to send [19:17:13]OFD Sender: No OFD packet to send [19:17:18]OFD Sender: No OFD packet to send [19:17:23]OFD Sender: No OFD packet to send [19:17:28]OFD Sender: No OFD packet to send [19:17:33]OFD Sender: No OFD packet to send [19:17:38]OFD Sender: No OFD packet to send [19:17:43]OFD Sender: No OFD packet to send [19:17:48]OFD Sender: No OFD packet to send [19:17:53]OFD Sender: No OFD packet to send [19:17:58]OFD Sender: No OFD packet to send [19:18:03]OFD Sender: No OFD packet to send [19:18:08]OFD Sender: No OFD packet to send [19:18:13]OFD Sender: No OFD packet to send [19:18:18]OFD Sender: No OFD packet to send [19:18:23]OFD Sender: No OFD packet to send [19:18:28]OFD Sender: No OFD packet to send [19:18:31]accept exits with 9 [19:18:31]New connection [19:18:31]New thread 3066953060 created [19:18:31]Thread 3067096420 joined [19:18:31]Waiting for new connection... [19:18:31] Sock 9.Parse request [19:18:31]Sock 9.Check first char [19:18:31]Sock 9.First char is OK [19:18:31]request: POST /json_proto HTTP/1.0 [19:18:31]Method: POST [19:18:31]URL: /json_proto [19:18:31]Method is POST - this is cgi request [19:18:31]url: /json_proto [19:18:31]query_string will be loaded in cgi processing [19:18:31]execute_cgi json_proto POST (null) [19:18:31]execute_cgi path=json_proto method=POST [19:18:31]POST find Content-Length [19:18:31]Host: 172.17.45.7:8080 [19:18:31]Content-Length: 674 [19:18:31]Content-Type: application/json [19:18:31] [19:18:31]POST finish read [19:18:31]Found Content-Length = 674 [19:18:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:31]execute_script... [19:18: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)949146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:31]POST & json_proto [19:18:31]process_json_proto [19:18:31]json parsed OK: [19:18:31]protocol is kg_v1.0 [19:18:31]action value=close_receipt [19:18:31]process_action close_receipt [19:18:31]cmd_close_receipt [19:18:31]MH_GetDate [19:18:31]Write to MH i2c: F0 00 00 48 19 50 [19:18:31]Write i2c OK [19:18:31]MH_I2C_Read... [19:18:31]Read from MH i2c: F0 [19:18:31]MH_I2C_Read... [19:18:31]Read from MH i2c: F0 09 00 [19:18:31]MH_I2C_Read... [19:18:31]Read from MH i2c: F0 09 00 48 19 00 08 48 A5 66 90 0F 3E 66 F7 [19:18:31]GetLastDocTimeStamp 1722107791 [19:18:31]current date 1722107912 [19:18:31]FM_GetShiftState [19:18:31]SAM_PROTO_GetShiftState [19:18:31]wFMCommunicate request_size=4 [19:18:31]MH_SAM_APDU [19:18:31]CAPDU: 80 13 01 00 [19:18:31]Write to MH i2c: E2 08 00 49 19 80 13 01 00 00 00 00 00 DF [19:18:31]Write i2c OK [19:18:31]MH_I2C_Read... [19:18:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:31]Read from MH i2c: E2 [19:18:31]MH_I2C_Read... [19:18:31]Read from MH i2c: E2 0E 00 [19:18:31]MH_I2C_Read... [19:18:31]Read from MH i2c: E2 0E 00 49 19 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 6C [19:18:31]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [19:18:31]wFMCommunicate OK [19:18:31]SAM_PROTO_GetShiftState done [19:18:31]FM_GetShiftState done [19:18:31]opened in 1722038845 [19:18:31]opened+sec_in_day 1722125245 [19:18:31]quantity*price = 50063 [19:18:31]sum+1 = 50064 [19:18:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 216 27.07.2024 19:18 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118273 ФПД: 26073691182310 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T191832&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118273&fm=26073691182310&tin=02508201610067®Number=0000000000092660&sum=50000 [19:18:32]StoreToDocumentArchive [19:18:32]shift 432 fd 118273 [19:18:32]save to /storage/0432/doc_00118273 [19:18:32]save last doc name /storage/0432/doc_00118273 to /storage/kkm_last_doc_name [19:18:32]save OK [19:18:32]Clear old archive folders... [19:18:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:18:32]tlvbuf is 01E27E30 [19:18:32]SAM_PROTO_ClearQueue [19:18:32]wFMCommunicate request_size=4 [19:18:32]MH_SAM_APDU [19:18:32]CAPDU: 80 09 00 00 [19:18:32]Write to MH i2c: E2 08 00 56 19 80 09 00 00 00 00 00 00 E1 [19:18:32]Write i2c OK [19:18:32]MH_I2C_Read... [19:18:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:32]Read from MH i2c: E2 [19:18:32]MH_I2C_Read... [19:18:32]Read from MH i2c: E2 03 00 [19:18:32]MH_I2C_Read... [19:18:32]Read from MH i2c: E2 03 00 56 19 00 90 00 E3 [19:18:32]RAPDU: 90 00 [19:18:32]wFMCommunicate OK [19:18:32]SAM_PROTO_ClearQueue done [19:18:32]KKMCreateOFDPacket [19:18:32]OFDProtocolAddRootSTLVToBuf [19:18:32]FM_MakeSignedData [19:18:32]FM_MakeSignedData [19:18:32]SAM_PROTO_SignData [19:18:32]wFMCommunicate request_size=4 [19:18:32]MH_SAM_APDU [19:18:32]CAPDU: 80 0D 01 02 [19:18:32]Write to MH i2c: E2 08 00 57 19 80 0D 01 02 00 00 00 00 E9 [19:18:32]Write i2c OK [19:18:32]MH_I2C_Read... [19:18:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:32]Read from MH i2c: E2 [19:18:32]MH_I2C_Read... [19:18:32]Read from MH i2c: E2 03 00 [19:18:32]MH_I2C_Read... [19:18:32]Read from MH i2c: E2 03 00 57 19 00 90 00 E4 [19:18:32]RAPDU: 90 00 [19:18:32]wFMCommunicate OK [19:18:32]wFMCommunicate request_size=255 [19:18:32]MH_SAM_APDU [19:18:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 08 48 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 01 CE 01 00 35 04 06 00 17 B6 C1 19 [19:18:32]Write to MH i2c: E2 02 01 58 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 08 48 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 01 CE 01 00 35 04 06 00 17 B6 C1 19 00 00 5C [19:18:32]Write i2c OK [19:18:32]MH_I2C_Read... [19:18:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:32]Read from MH i2c: E2 [19:18:32]MH_I2C_Read... [19:18:32]Read from MH i2c: E2 03 00 [19:18:32]MH_I2C_Read... [19:18:32]Read from MH i2c: E2 03 00 58 19 00 90 00 E5 [19:18:32]RAPDU: 90 00 [19:18:32]wFMCommunicate OK [19:18:32]wFMCommunicate request_size=7 [19:18:32]MH_SAM_APDU [19:18:32]CAPDU: 80 0D 02 02 02 D4 E6 [19:18:32]Write to MH i2c: E2 0A 00 59 19 80 0D 02 02 02 00 D4 E6 00 00 AA [19:18:32]Write i2c OK [19:18:32]MH_I2C_Read... [19:18:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:32]Read from MH i2c: E2 [19:18:32]MH_I2C_Read... [19:18:32]Read from MH i2c: E2 03 00 [19:18:32]MH_I2C_Read... [19:18:32]Read from MH i2c: E2 03 00 59 19 00 90 00 E6 [19:18:32]RAPDU: 90 00 [19:18:32]wFMCommunicate OK [19:18:32]wFMCommunicate request_size=4 [19:18:32]MH_SAM_APDU [19:18:32]CAPDU: 80 0D 03 02 [19:18:32]Write to MH i2c: E2 08 00 5A 19 80 0D 03 02 00 00 00 00 EE [19:18:32]Write i2c OK [19:18:32]MH_I2C_Read... [19:18:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:32]Read from MH i2c: E2 [19:18:32]MH_I2C_Read... [19:18:32]Read from MH i2c: E2 0B 00 [19:18:32]MH_I2C_Read... [19:18:32]Read from MH i2c: E2 0B 00 5A 19 00 CE 39 45 1F B1 43 33 33 90 00 B4 [19:18:32]RAPDU: CE 39 45 1F B1 43 33 33 90 00 [19:18:32]wFMCommunicate OK [19:18:32]SAM_PROTO_SignData done [19:18:32]FM_MakeSignedData done [19:18:32]CreateOFDProtocolMessage [19:18:32]wFMCommunicate request_size=4 [19:18:32]MH_SAM_APDU [19:18:32]CAPDU: 80 11 00 00 [19:18:32]Write to MH i2c: E2 08 00 5B 19 80 11 00 00 00 00 00 00 EE [19:18:32]Write i2c OK [19:18:32]MH_I2C_Read... [19:18:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:32]Read from MH i2c: E2 [19:18:32]MH_I2C_Read... [19:18:32]Read from MH i2c: E2 17 00 [19:18:32]MH_I2C_Read... [19:18:32]Read from MH i2c: E2 17 00 5B 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 49 [19:18:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:18:32]wFMCommunicate OK [19:18:32]CreateOFDProtocolMessage done [19:18:32]OFDSenderStorePacket 118273 [19:18:32]StoreOFDPacket docnum=118273 [19:18:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 60 D5 04 01 0E A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 08 48 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 01 CE 01 00 35 04 06 00 17 B6 C1 19 D4 E6 CE 39 45 1F B1 43 33 33 [19:18:32]CheckFolder [19:18:32]dirname=/storage/ofd_packets [19:18:32]CheckFolder done [19:18:32]ProducePacketName [19:18:32]name=ofd_packets/00118273 [19:18:32]NVStorageSaveData ofd_packets/00118273 [19:18:32]File name is /storage/ofd_packets/00118273 [19:18:32]Write 298 bytes [19:18:32]NVStorageSaveData done [19:18:32]OFDSenderStorePacket done [19:18:32]KKMCreateOFDPacket done [19:18:32]NVStorageSaveData kkm_last_timestamp [19:18:32]File name is /storage/kkm_last_timestamp [19:18:32]Write 4 bytes [19:18:32]NVStorageSaveData done [19:18:32]ExternCall_PrintAddStr [19:18:32]wPrintStart [19:18:32]Write to MH i2c: 01 00 00 5C 19 75 [19:18:32]Write i2c OK [19:18:32]MH_I2C_Read... [19:18:32]Read from MH i2c: 01 [19:18:32]MH_I2C_Read... [19:18:32]Read from MH i2c: 01 07 00 [19:18:32]MH_I2C_Read... [19:18:32]Read from MH i2c: 01 07 00 5C 19 00 00 00 00 00 FF 0F 8A [19:18:32]RasterBufferAndPrint [19:18:32]line Счет N : (1)949146 [19:18:32]line ИНН: 02508201610067 [19:18:32]line Контрольно-Кассовый Чек [19:18:32]line ПРОДАЖА [19:18:32]line ТРК (МРК, ГНК) : 54 [19:18:32]line Товар: 2710194800 [19:18:32]line ДТ-К-5 [19:18:32]line 6.570 * 76.20 [19:18:32]line = 500.63 [19:18:32]line НДС 12% НСП 1% [19:18:32]line > о реализуемом товаре [19:18:32]line ОКРУГЛЕНИЕ: -0.63 [19:18:32]line ИТОГО: 500.00 [19:18:32]line Внесено: 500.00 [19:18:32]line СДАЧА: 0.00 [19:18:32]line НСП 1% : 4.43 [19:18:32]line НДС 12% : 53.16 [19:18:32]line Наличными: 500.00 [19:18:32]line Безнал.: 0.00 [19:18:32]line Место: АЗС № 134 "Партнер Нефть" [19:18:32]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:18:32]line СНО: Общий режим [19:18:32]line Чек 216 27.07.2024 19:18 [19:18:32]line Смена: 432 ФФД: 1.0 [19:18:32]line ЗНМ: 0300000044 [19:18:32]line РНМ: 0000000000092660 [19:18:32]line Версия ККМ: 001 [19:18:32]line ФМ: 0000000000874939 [19:18:32]line ФД: 118273 [19:18:32]line ФПД: 26073691182310 [19:18:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T191832&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118273&fm=26073691182310&tin=02508201610067®Number=0000000000092660&sum=50000 [19:18:33]OFD Sender: Processing packet 118273 [packets to send 86, broken 85] [19:18:33]ProducePacketName [19:18:33]name=ofd_packets/00118273 [19:18:33]OFD Sender: To server: pG, [19:18:33]CommunicateWithHost lk.salyk.kg:30040 [19:18:33]ConnectInit lk.salyk.kg [19:18:33]written 0, free lines is 4095 [19:18:33]Connected sock=10 [19:18:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 60 D5 04 01 0E A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 08 48 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 01 CE 01 00 35 04 06 00 17 B6 C1 19 D4 E6 CE 39 45 1F B1 43 33 33 [19:18:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 69 51 47 00 B2 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 01 CE 01 00 F4 03 04 00 9A F5 A4 66 B6 04 01 00 00 A7 15 31 5D EC E4 C3 B0 [19:18:33]CommunicateWithHost err = 0 [19:18:33]CheckOFDResponse [19:18:33]1017 (14) - 77093643461234 [19:18:33]1041 (16) - 0000000000874939 [19:18:33]1040 (4) - 118273 [19:18:33]1012 (4) - 27.07.2024 13:26 [19:18:33]1206 (1) - 0 [19:18:33]OFD Sender: Remove packet 118273 [19:18:33]ProducePacketName [19:18:33]name=ofd_packets/00118273 [19:18:33]NVStorageDeleteData [19:18:33]Write to MH i2c: 01 00 00 86 19 9F [19:18:33]Write i2c OK [19:18:33]MH_I2C_Read... [19:18:33]Read from MH i2c: 01 [19:18:33]MH_I2C_Read... [19:18:33]Read from MH i2c: 01 07 00 [19:18:33]MH_I2C_Read... [19:18:33]Read from MH i2c: 01 07 00 86 19 00 00 00 00 00 E4 0C 96 [19:18:33]RasterBufferAndPrint [19:18:33]line [19:18:33]line [19:18:33]line [19:18:33]line [19:18:33]line [19:18:33]written 0, free lines is 3306 [19:18:33]MH_Cut [19:18:33]Write to MH i2c: D1 01 00 8D 19 01 78 [19:18:33]Write i2c OK [19:18:33]MH_I2C_Read... [19:18:33]Read from MH i2c: D1 [19:18:33]MH_I2C_Read... [19:18:33]Read from MH i2c: D1 01 00 [19:18:33]MH_I2C_Read... [19:18:33]Read from MH i2c: D1 01 00 8D 19 00 77 [19:18:33]Write to MH i2c: 01 00 00 8E 19 A7 [19:18:33]Write i2c OK [19:18:33]MH_I2C_Read... [19:18:34]OFD Sender: No OFD packet to send [19:18:34]*** Cut start [19:18:34]*** Partial cut [19:18:34]*** CUTSNS_PIN = 1 [19:18:34]*** CUTSNS_PIN = 0 [19:18:34]*** Brake cut motor [19:18:35]Read from MH i2c: 01 [19:18:35]MH_I2C_Read... [19:18:35]*** Stop cut motor [19:18:35]*** Cut end [19:18:35]Read from MH i2c: 01 07 00 [19:18:35]MH_I2C_Read... [19:18:35]Read from MH i2c: 01 07 00 8E 19 00 00 00 00 00 FF 0F BC [19:18:35]process_action close_receipt done [19:18:35]requested_data is exist [19:18:35]produce_requested_data [19:18:35]requested_item fm.sn is exist - process it [19:18:35]wFMCommunicate request_size=4 [19:18:35]MH_SAM_APDU [19:18:35]CAPDU: 80 11 00 00 [19:18:35]Write to MH i2c: E2 08 00 8F 19 80 11 00 00 00 00 00 00 22 [19:18:35]Write i2c OK [19:18:35]MH_I2C_Read... [19:18:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:35]Read from MH i2c: E2 [19:18:35]MH_I2C_Read... [19:18:35]Read from MH i2c: E2 17 00 [19:18:35]MH_I2C_Read... [19:18:35]Read from MH i2c: E2 17 00 8F 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7D [19:18:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:18:35]wFMCommunicate OK [19:18:35]requested_item fd.num is exist - process it [19:18:35]SAM_PROTO_GetFieldsCounters [19:18:35]wFMCommunicate request_size=4 [19:18:35]MH_SAM_APDU [19:18:35]CAPDU: 80 13 00 00 [19:18:35]Write to MH i2c: E2 08 00 90 19 80 13 00 00 00 00 00 00 25 [19:18:35]Write i2c OK [19:18:35]MH_I2C_Read... [19:18:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:35]Read from MH i2c: E2 [19:18:35]MH_I2C_Read... [19:18:35]Read from MH i2c: E2 62 00 [19:18:35]MH_I2C_Read... [19:18:35]Read from MH i2c: E2 62 00 90 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 01 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [19:18:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 01 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:18:35]wFMCommunicate OK [19:18:35]SAM_PROTO_GetFieldsCounters done [19:18:35]requested_item shift.num is exist - process it [19:18:35]requested_item shift.opened is exist - process it [19:18:35]req_shift_opened [19:18:35]FM_GetShiftState [19:18:35]SAM_PROTO_GetShiftState [19:18:35]wFMCommunicate request_size=4 [19:18:35]MH_SAM_APDU [19:18:35]CAPDU: 80 13 01 00 [19:18:35]Write to MH i2c: E2 08 00 91 19 80 13 01 00 00 00 00 00 27 [19:18:35]Write i2c OK [19:18:35]MH_I2C_Read... [19:18:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:35]Read from MH i2c: E2 [19:18:35]MH_I2C_Read... [19:18:35]Read from MH i2c: E2 0E 00 [19:18:35]MH_I2C_Read... [19:18:35]Read from MH i2c: E2 0E 00 91 19 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 B4 [19:18:35]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [19:18:35]wFMCommunicate OK [19:18:35]SAM_PROTO_GetShiftState done [19:18:35]FM_GetShiftState done [19:18:35]req_shift_opened done [19:18:35]requested_item shift.open_date is exist - process it [19:18:35]req_shift_open_date [19:18:35]req_shift_open_date done [19:18:35]produce_requested_data done [19:18:35]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118273,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [19:18:35]process_action_free close_receipt [19:18:35]json_value_free [19:18:35]json_value_free done [19:18:35]process_json_proto returns [19:18:35]Send response to host [19:18:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118273,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [19:18:35]free response buf [19:18:35]execute_script done [19:18:35]execute_script returns [19:18:35]free content buf [19:18:35]Sock 9.Close socket [19:18:35]Sock 9.Thread stoped [19:18:39]OFD Sender: No OFD packet to send [19:18:44]OFD Sender: No OFD packet to send [19:18:49]OFD Sender: No OFD packet to send [19:18:54]OFD Sender: No OFD packet to send [19:18:59]OFD Sender: No OFD packet to send [19:19:04]OFD Sender: No OFD packet to send [19:19:09]OFD Sender: No OFD packet to send [19:19:14]OFD Sender: No OFD packet to send [19:19:19]OFD Sender: No OFD packet to send [19:19:24]OFD Sender: No OFD packet to send [19:19:29]OFD Sender: No OFD packet to send [19:19:34]OFD Sender: No OFD packet to send [19:19:39]OFD Sender: No OFD packet to send [19:19:44]OFD Sender: No OFD packet to send [19:19:49]OFD Sender: No OFD packet to send [19:19:54]OFD Sender: No OFD packet to send [19:19:59]OFD Sender: No OFD packet to send [19:20:04]OFD Sender: No OFD packet to send [19:20:09]OFD Sender: No OFD packet to send [19:20:14]OFD Sender: No OFD packet to send [19:20:19]OFD Sender: No OFD packet to send [19:20:24]OFD Sender: No OFD packet to send [19:20:29]OFD Sender: No OFD packet to send [19:20:34]OFD Sender: No OFD packet to send [19:20:39]OFD Sender: No OFD packet to send [19:20:44]OFD Sender: No OFD packet to send [19:20:49]OFD Sender: No OFD packet to send [19:20:54]OFD Sender: No OFD packet to send [19:20:59]OFD Sender: No OFD packet to send [19:21:04]OFD Sender: No OFD packet to send [19:21:09]OFD Sender: No OFD packet to send [19:21:14]OFD Sender: No OFD packet to send [19:21:19]OFD Sender: No OFD packet to send [19:21:24]OFD Sender: No OFD packet to send [19:21:29]OFD Sender: No OFD packet to send [19:21:34]OFD Sender: No OFD packet to send [19:21:39]OFD Sender: No OFD packet to send [19:21:44]OFD Sender: No OFD packet to send [19:21:49]OFD Sender: No OFD packet to send [19:21:54]OFD Sender: No OFD packet to send [19:21:59]OFD Sender: No OFD packet to send [19:22:04]OFD Sender: No OFD packet to send [19:22:09]OFD Sender: No OFD packet to send [19:22:14]OFD Sender: No OFD packet to send [19:22:19]OFD Sender: No OFD packet to send [19:22:24]OFD Sender: No OFD packet to send [19:22:29]OFD Sender: No OFD packet to send [19:22:34]OFD Sender: No OFD packet to send [19:22:39]OFD Sender: No OFD packet to send [19:22:44]OFD Sender: No OFD packet to send [19:22:49]OFD Sender: No OFD packet to send [19:22:54]OFD Sender: No OFD packet to send [19:22:59]OFD Sender: No OFD packet to send [19:23:04]OFD Sender: No OFD packet to send [19:23:09]OFD Sender: No OFD packet to send [19:23:14]OFD Sender: No OFD packet to send [19:23:19]OFD Sender: No OFD packet to send [19:23:24]OFD Sender: No OFD packet to send [19:23:29]OFD Sender: No OFD packet to send [19:23:34]OFD Sender: No OFD packet to send [19:23:39]OFD Sender: No OFD packet to send [19:23:44]OFD Sender: No OFD packet to send [19:23:45]accept exits with 7 [19:23:45]New connection [19:23:45]New thread 3067096420 created [19:23:45]Thread 3066953060 joined [19:23:45]Waiting for new connection... [19:23:45] Sock 7.Parse request [19:23:45]Sock 7.Check first char [19:23:45]Sock 7.First char is OK [19:23:45]request: POST /json_proto HTTP/1.0 [19:23:45]Method: POST [19:23:45]URL: /json_proto [19:23:45]Method is POST - this is cgi request [19:23:45]url: /json_proto [19:23:45]query_string will be loaded in cgi processing [19:23:45]execute_cgi json_proto POST (null) [19:23:45]execute_cgi path=json_proto method=POST [19:23:45]POST find Content-Length [19:23:45]Host: 172.17.45.7:8080 [19:23:45]Content-Length: 682 [19:23:45]Content-Type: application/json [19:23:45] [19:23:45]POST finish read [19:23:45]Found Content-Length = 682 [19:23:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:23:45]execute_script... [19:23:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:23:45]POST & json_proto [19:23:45]process_json_proto [19:23:45]json parsed OK: [19:23:45]protocol is kg_v1.0 [19:23:45]action value=close_receipt [19:23:45]process_action close_receipt [19:23:45]cmd_close_receipt [19:23:45]MH_GetDate [19:23:45]Write to MH i2c: F0 00 00 92 19 9A [19:23:45]Write i2c OK [19:23:45]MH_I2C_Read... [19:23:45]Read from MH i2c: F0 [19:23:45]MH_I2C_Read... [19:23:45]Read from MH i2c: F0 09 00 [19:23:45]MH_I2C_Read... [19:23:45]Read from MH i2c: F0 09 00 92 19 00 43 49 A5 66 90 0F 3E 66 7D [19:23:45]GetLastDocTimeStamp 1722107912 [19:23:45]current date 1722108227 [19:23:45]FM_GetShiftState [19:23:45]SAM_PROTO_GetShiftState [19:23:45]wFMCommunicate request_size=4 [19:23:45]MH_SAM_APDU [19:23:45]CAPDU: 80 13 01 00 [19:23:45]Write to MH i2c: E2 08 00 93 19 80 13 01 00 00 00 00 00 29 [19:23:45]Write i2c OK [19:23:45]MH_I2C_Read... [19:23:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:46]Read from MH i2c: E2 [19:23:46]MH_I2C_Read... [19:23:46]Read from MH i2c: E2 0E 00 [19:23:46]MH_I2C_Read... [19:23:46]Read from MH i2c: E2 0E 00 93 19 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 B6 [19:23:46]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [19:23:46]wFMCommunicate OK [19:23:46]SAM_PROTO_GetShiftState done [19:23:46]FM_GetShiftState done [19:23:46]opened in 1722038845 [19:23:46]opened+sec_in_day 1722125245 [19:23:46]quantity*price = 100005 [19:23:46]sum+1 = 100006 [19:23:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 217 27.07.2024 19:23 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118274 ФПД: 136065995771436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T192347&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118274&fm=136065995771436&tin=02508201610067®Number=0000000000092660&sum=100000 [19:23:47]StoreToDocumentArchive [19:23:47]shift 432 fd 118274 [19:23:47]save to /storage/0432/doc_00118274 [19:23:47]save last doc name /storage/0432/doc_00118274 to /storage/kkm_last_doc_name [19:23:47]save OK [19:23:47]Clear old archive folders... [19:23:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:23:47]tlvbuf is 01DC9900 [19:23:47]SAM_PROTO_ClearQueue [19:23:47]wFMCommunicate request_size=4 [19:23:47]MH_SAM_APDU [19:23:47]CAPDU: 80 09 00 00 [19:23:47]Write to MH i2c: E2 08 00 A0 19 80 09 00 00 00 00 00 00 2B [19:23:47]Write i2c OK [19:23:47]MH_I2C_Read... [19:23:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:23:47]Read from MH i2c: E2 [19:23:47]MH_I2C_Read... [19:23:47]Read from MH i2c: E2 03 00 [19:23:47]MH_I2C_Read... [19:23:47]Read from MH i2c: E2 03 00 A0 19 00 90 00 2D [19:23:47]RAPDU: 90 00 [19:23:47]wFMCommunicate OK [19:23:47]SAM_PROTO_ClearQueue done [19:23:47]KKMCreateOFDPacket [19:23:47]OFDProtocolAddRootSTLVToBuf [19:23:47]FM_MakeSignedData [19:23:47]FM_MakeSignedData [19:23:47]SAM_PROTO_SignData [19:23:47]wFMCommunicate request_size=4 [19:23:47]MH_SAM_APDU [19:23:47]CAPDU: 80 0D 01 02 [19:23:47]Write to MH i2c: E2 08 00 A1 19 80 0D 01 02 00 00 00 00 33 [19:23:47]Write i2c OK [19:23:47]MH_I2C_Read... [19:23:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:23:47]Read from MH i2c: E2 [19:23:47]MH_I2C_Read... [19:23:47]Read from MH i2c: E2 03 00 [19:23:47]MH_I2C_Read... [19:23:47]Read from MH i2c: E2 03 00 A1 19 00 90 00 2E [19:23:47]RAPDU: 90 00 [19:23:47]wFMCommunicate OK [19:23:47]wFMCommunicate request_size=255 [19:23:47]MH_SAM_APDU [19:23:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 43 49 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 02 CE 01 00 35 04 06 00 7B [19:23:47]Write to MH i2c: E2 02 01 A2 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 43 49 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 02 CE 01 00 35 04 06 00 7B 00 00 B3 [19:23:47]Write i2c OK [19:23:47]MH_I2C_Read... [19:23:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:47]Read from MH i2c: E2 [19:23:47]MH_I2C_Read... [19:23:47]Read from MH i2c: E2 03 00 [19:23:47]MH_I2C_Read... [19:23:47]Read from MH i2c: E2 03 00 A2 19 00 90 00 2F [19:23:47]RAPDU: 90 00 [19:23:47]wFMCommunicate OK [19:23:47]wFMCommunicate request_size=10 [19:23:47]MH_SAM_APDU [19:23:47]CAPDU: 80 0D 02 02 05 C0 55 58 0E 2C [19:23:47]Write to MH i2c: E2 0D 00 A3 19 80 0D 02 02 05 00 C0 55 58 0E 2C 00 00 E7 [19:23:47]Write i2c OK [19:23:47]MH_I2C_Read... [19:23:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:47]Read from MH i2c: E2 [19:23:47]MH_I2C_Read... [19:23:47]Read from MH i2c: E2 03 00 [19:23:47]MH_I2C_Read... [19:23:47]Read from MH i2c: E2 03 00 A3 19 00 90 00 30 [19:23:47]RAPDU: 90 00 [19:23:47]wFMCommunicate OK [19:23:47]wFMCommunicate request_size=4 [19:23:47]MH_SAM_APDU [19:23:47]CAPDU: 80 0D 03 02 [19:23:47]Write to MH i2c: E2 08 00 A4 19 80 0D 03 02 00 00 00 00 38 [19:23:47]Write i2c OK [19:23:47]MH_I2C_Read... [19:23:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:23:47]Read from MH i2c: E2 [19:23:47]MH_I2C_Read... [19:23:47]Read from MH i2c: E2 0B 00 [19:23:47]MH_I2C_Read... [19:23:47]Read from MH i2c: E2 0B 00 A4 19 00 F3 83 56 80 B6 54 B2 E7 90 00 28 [19:23:47]RAPDU: F3 83 56 80 B6 54 B2 E7 90 00 [19:23:47]wFMCommunicate OK [19:23:47]SAM_PROTO_SignData done [19:23:47]FM_MakeSignedData done [19:23:47]CreateOFDProtocolMessage [19:23:47]wFMCommunicate request_size=4 [19:23:47]MH_SAM_APDU [19:23:47]CAPDU: 80 11 00 00 [19:23:47]Write to MH i2c: E2 08 00 A5 19 80 11 00 00 00 00 00 00 38 [19:23:47]Write i2c OK [19:23:47]MH_I2C_Read... [19:23:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:47]Read from MH i2c: E2 [19:23:47]MH_I2C_Read... [19:23:47]Read from MH i2c: E2 17 00 [19:23:47]MH_I2C_Read... [19:23:47]Read from MH i2c: E2 17 00 A5 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 93 [19:23:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:23:47]wFMCommunicate OK [19:23:47]CreateOFDProtocolMessage done [19:23:47]OFDSenderStorePacket 118274 [19:23:47]StoreOFDPacket docnum=118274 [19:23:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 42 04 07 01 0D EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 43 49 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 02 CE 01 00 35 04 06 00 7B C0 55 58 0E 2C F3 83 56 80 B6 54 B2 E7 [19:23:47]CheckFolder [19:23:47]dirname=/storage/ofd_packets [19:23:47]CheckFolder done [19:23:47]ProducePacketName [19:23:47]name=ofd_packets/00118274 [19:23:47]NVStorageSaveData ofd_packets/00118274 [19:23:47]File name is /storage/ofd_packets/00118274 [19:23:47]Write 301 bytes [19:23:47]NVStorageSaveData done [19:23:47]OFDSenderStorePacket done [19:23:47]KKMCreateOFDPacket done [19:23:47]NVStorageSaveData kkm_last_timestamp [19:23:47]File name is /storage/kkm_last_timestamp [19:23:47]Write 4 bytes [19:23:47]NVStorageSaveData done [19:23:47]ExternCall_PrintAddStr [19:23:47]wPrintStart [19:23:47]Write to MH i2c: 01 00 00 A6 19 BF [19:23:47]Write i2c OK [19:23:47]MH_I2C_Read... [19:23:47]Read from MH i2c: 01 [19:23:47]MH_I2C_Read... [19:23:47]Read from MH i2c: 01 07 00 [19:23:47]MH_I2C_Read... [19:23:47]Read from MH i2c: 01 07 00 A6 19 00 00 00 00 00 FF 0F D4 [19:23:47]RasterBufferAndPrint [19:23:47]line Счет N : (1)949147 [19:23:47]line ИНН: 02508201610067 [19:23:47]line Контрольно-Кассовый Чек [19:23:47]line ПРОДАЖА [19:23:47]line ТРК (МРК, ГНК) : 51 [19:23:47]line Товар: 2710124130 [19:23:47]line Аи-92-К-4 [19:23:47]line 14.750 * 67.80 [19:23:47]line = 1000.05 [19:23:47]line НДС 12% НСП 1% [19:23:47]line > о реализуемом товаре [19:23:47]line ОКРУГЛЕНИЕ: -0.05 [19:23:47]line ИТОГО: 1000.00 [19:23:47]line Внесено: 1000.00 [19:23:47]line СДАЧА: 0.00 [19:23:47]line НСП 1% : 8.85 [19:23:47]line НДС 12% : 106.20 [19:23:47]line Наличными: 1000.00 [19:23:47]line Безнал.: 0.00 [19:23:47]line Место: АЗС № 134 "Партнер Нефть" [19:23:47]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:23:47]line СНО: Общий режим [19:23:47]line Чек 217 27.07.2024 19:23 [19:23:47]line Смена: 432 ФФД: 1.0 [19:23:47]line ЗНМ: 0300000044 [19:23:47]line РНМ: 0000000000092660 [19:23:47]line Версия ККМ: 001 [19:23:47]line ФМ: 0000000000874939 [19:23:47]line ФД: 118274 [19:23:47]line ФПД: 136065995771436 [19:23:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T192347&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118274&fm=136065995771436&tin=02508201610067®Number=0000000000092660&sum=100000 [19:23:48]OFD Sender: Processing packet 118274 [packets to send 86, broken 85] [19:23:48]ProducePacketName [19:23:48]name=ofd_packets/00118274 [19:23:48]OFD Sender: To server: pG, [19:23:48]CommunicateWithHost lk.salyk.kg:30040 [19:23:48]ConnectInit lk.salyk.kg [19:23:48]written 0, free lines is 4095 [19:23:48]Connected sock=10 [19:23:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 42 04 07 01 0D EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 43 49 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 02 CE 01 00 35 04 06 00 7B C0 55 58 0E 2C F3 83 56 80 B6 54 B2 E7 [19:23:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 BA 4B 47 00 6E 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 02 CE 01 00 F4 03 04 00 D5 F6 A4 66 B6 04 01 00 00 BC 7A 28 F5 A8 CB 56 87 [19:23:48]CommunicateWithHost err = 0 [19:23:48]CheckOFDResponse [19:23:48]1017 (14) - 77093643461234 [19:23:48]1041 (16) - 0000000000874939 [19:23:48]1040 (4) - 118274 [19:23:48]1012 (4) - 27.07.2024 13:32 [19:23:48]1206 (1) - 0 [19:23:48]OFD Sender: Remove packet 118274 [19:23:48]ProducePacketName [19:23:48]name=ofd_packets/00118274 [19:23:48]NVStorageDeleteData [19:23:48]Write to MH i2c: 01 00 00 D0 19 E9 [19:23:48]Write i2c OK [19:23:48]MH_I2C_Read... [19:23:48]Read from MH i2c: 01 [19:23:48]MH_I2C_Read... [19:23:48]Read from MH i2c: 01 07 00 [19:23:48]MH_I2C_Read... [19:23:48]Read from MH i2c: 01 07 00 D0 19 00 00 00 00 00 E4 0C E0 [19:23:48]RasterBufferAndPrint [19:23:48]line [19:23:48]line [19:23:48]line [19:23:48]line [19:23:48]line [19:23:48]written 0, free lines is 3307 [19:23:48]MH_Cut [19:23:48]Write to MH i2c: D1 01 00 D7 19 01 C2 [19:23:48]Write i2c OK [19:23:48]MH_I2C_Read... [19:23:48]Read from MH i2c: D1 [19:23:48]MH_I2C_Read... [19:23:48]Read from MH i2c: D1 01 00 [19:23:48]MH_I2C_Read... [19:23:48]Read from MH i2c: D1 01 00 D7 19 00 C1 [19:23:48]Write to MH i2c: 01 00 00 D8 19 F1 [19:23:48]Write i2c OK [19:23:48]MH_I2C_Read... [19:23:48]OFD Sender: No OFD packet to send [19:23:49]*** Cut start [19:23:49]*** Partial cut [19:23:49]*** CUTSNS_PIN = 1 [19:23:49]*** CUTSNS_PIN = 0 [19:23:49]*** Brake cut motor [19:23:49]Read from MH i2c: 01 [19:23:49]MH_I2C_Read... [19:23:49]*** Stop cut motor [19:23:49]*** Cut end [19:23:49]Read from MH i2c: 01 07 00 [19:23:49]MH_I2C_Read... [19:23:49]Read from MH i2c: 01 07 00 D8 19 00 00 00 00 00 FF 0F 06 [19:23:49]process_action close_receipt done [19:23:49]requested_data is exist [19:23:49]produce_requested_data [19:23:49]requested_item fm.sn is exist - process it [19:23:49]wFMCommunicate request_size=4 [19:23:49]MH_SAM_APDU [19:23:49]CAPDU: 80 11 00 00 [19:23:49]Write to MH i2c: E2 08 00 D9 19 80 11 00 00 00 00 00 00 6C [19:23:49]Write i2c OK [19:23:49]MH_I2C_Read... [19:23:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:49]Read from MH i2c: E2 [19:23:49]MH_I2C_Read... [19:23:49]Read from MH i2c: E2 17 00 [19:23:49]MH_I2C_Read... [19:23:49]Read from MH i2c: E2 17 00 D9 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C7 [19:23:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:23:49]wFMCommunicate OK [19:23:49]requested_item fd.num is exist - process it [19:23:49]SAM_PROTO_GetFieldsCounters [19:23:49]wFMCommunicate request_size=4 [19:23:49]MH_SAM_APDU [19:23:49]CAPDU: 80 13 00 00 [19:23:49]Write to MH i2c: E2 08 00 DA 19 80 13 00 00 00 00 00 00 6F [19:23:49]Write i2c OK [19:23:49]MH_I2C_Read... [19:23:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:50]Read from MH i2c: E2 [19:23:50]MH_I2C_Read... [19:23:50]Read from MH i2c: E2 62 00 [19:23:50]MH_I2C_Read... [19:23:50]Read from MH i2c: E2 62 00 DA 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 02 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [19:23:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 02 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:23:50]wFMCommunicate OK [19:23:50]SAM_PROTO_GetFieldsCounters done [19:23:50]requested_item shift.num is exist - process it [19:23:50]requested_item shift.opened is exist - process it [19:23:50]req_shift_opened [19:23:50]FM_GetShiftState [19:23:50]SAM_PROTO_GetShiftState [19:23:50]wFMCommunicate request_size=4 [19:23:50]MH_SAM_APDU [19:23:50]CAPDU: 80 13 01 00 [19:23:50]Write to MH i2c: E2 08 00 DB 19 80 13 01 00 00 00 00 00 71 [19:23:50]Write i2c OK [19:23:50]MH_I2C_Read... [19:23:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:50]Read from MH i2c: E2 [19:23:50]MH_I2C_Read... [19:23:50]Read from MH i2c: E2 0E 00 [19:23:50]MH_I2C_Read... [19:23:50]Read from MH i2c: E2 0E 00 DB 19 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 FE [19:23:50]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [19:23:50]wFMCommunicate OK [19:23:50]SAM_PROTO_GetShiftState done [19:23:50]FM_GetShiftState done [19:23:50]req_shift_opened done [19:23:50]requested_item shift.open_date is exist - process it [19:23:50]req_shift_open_date [19:23:50]req_shift_open_date done [19:23:50]produce_requested_data done [19:23:50]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118274,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [19:23:50]process_action_free close_receipt [19:23:50]json_value_free [19:23:50]json_value_free done [19:23:50]process_json_proto returns [19:23:50]Send response to host [19:23:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118274,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [19:23:50]free response buf [19:23:50]execute_script done [19:23:50]execute_script returns [19:23:50]free content buf [19:23:50]Sock 7.Close socket [19:23:50]Sock 7.Thread stoped [19:23:53]OFD Sender: No OFD packet to send [19:23:58]OFD Sender: No OFD packet to send [19:24:03]OFD Sender: No OFD packet to send [19:24:08]OFD Sender: No OFD packet to send [19:24:13]OFD Sender: No OFD packet to send [19:24:18]OFD Sender: No OFD packet to send [19:24:23]OFD Sender: No OFD packet to send [19:24:28]OFD Sender: No OFD packet to send [19:24:33]OFD Sender: No OFD packet to send [19:24:38]OFD Sender: No OFD packet to send [19:24:43]OFD Sender: No OFD packet to send [19:24:48]OFD Sender: No OFD packet to send [19:24:53]OFD Sender: No OFD packet to send [19:24:58]OFD Sender: No OFD packet to send [19:25:03]OFD Sender: No OFD packet to send [19:25:08]OFD Sender: No OFD packet to send [19:25:13]OFD Sender: No OFD packet to send [19:25:18]OFD Sender: No OFD packet to send [19:25:23]OFD Sender: No OFD packet to send [19:25:28]OFD Sender: No OFD packet to send [19:25:33]OFD Sender: No OFD packet to send [19:25:38]OFD Sender: No OFD packet to send [19:25:43]OFD Sender: No OFD packet to send [19:25:48]OFD Sender: No OFD packet to send [19:25:53]OFD Sender: No OFD packet to send [19:25:58]OFD Sender: No OFD packet to send [19:26:04]OFD Sender: No OFD packet to send [19:26:09]OFD Sender: No OFD packet to send [19:26:14]OFD Sender: No OFD packet to send [19:26:19]OFD Sender: No OFD packet to send [19:26:24]OFD Sender: No OFD packet to send [19:26:29]OFD Sender: No OFD packet to send [19:26:34]OFD Sender: No OFD packet to send [19:26:39]OFD Sender: No OFD packet to send [19:26:44]OFD Sender: No OFD packet to send [19:26:49]OFD Sender: No OFD packet to send [19:26:54]OFD Sender: No OFD packet to send [19:26:59]OFD Sender: No OFD packet to send [19:27:04]OFD Sender: No OFD packet to send [19:27:09]OFD Sender: No OFD packet to send [19:27:14]OFD Sender: No OFD packet to send [19:27:19]OFD Sender: No OFD packet to send [19:27:24]OFD Sender: No OFD packet to send [19:27:29]OFD Sender: No OFD packet to send [19:27:34]OFD Sender: No OFD packet to send [19:27:39]OFD Sender: No OFD packet to send [19:27:44]OFD Sender: No OFD packet to send [19:27:49]OFD Sender: No OFD packet to send [19:27:54]OFD Sender: No OFD packet to send [19:27:59]OFD Sender: No OFD packet to send [19:28:04]OFD Sender: No OFD packet to send [19:28:09]OFD Sender: No OFD packet to send [19:28:14]OFD Sender: No OFD packet to send [19:28:19]OFD Sender: No OFD packet to send [19:28:24]OFD Sender: No OFD packet to send [19:28:29]OFD Sender: No OFD packet to send [19:28:34]OFD Sender: No OFD packet to send [19:28:39]OFD Sender: No OFD packet to send [19:28:44]OFD Sender: No OFD packet to send [19:28:49]OFD Sender: No OFD packet to send [19:28:54]OFD Sender: No OFD packet to send [19:28:59]OFD Sender: No OFD packet to send [19:29:04]OFD Sender: No OFD packet to send [19:29:09]OFD Sender: No OFD packet to send [19:29:14]OFD Sender: No OFD packet to send [19:29:19]OFD Sender: No OFD packet to send [19:29:24]OFD Sender: No OFD packet to send [19:29:29]OFD Sender: No OFD packet to send [19:29:34]OFD Sender: No OFD packet to send [19:29:39]OFD Sender: No OFD packet to send [19:29:44]OFD Sender: No OFD packet to send [19:29:49]OFD Sender: No OFD packet to send [19:29:54]OFD Sender: No OFD packet to send [19:29:59]OFD Sender: No OFD packet to send [19:30:04]OFD Sender: No OFD packet to send [19:30:09]OFD Sender: No OFD packet to send [19:30:14]OFD Sender: No OFD packet to send [19:30:19]OFD Sender: No OFD packet to send [19:30:24]OFD Sender: No OFD packet to send [19:30:29]OFD Sender: No OFD packet to send [19:30:34]OFD Sender: No OFD packet to send [19:30:39]OFD Sender: No OFD packet to send [19:30:44]OFD Sender: No OFD packet to send [19:30:49]OFD Sender: No OFD packet to send [19:30:54]OFD Sender: No OFD packet to send [19:30:59]OFD Sender: No OFD packet to send [19:31:04]OFD Sender: No OFD packet to send [19:31:09]OFD Sender: No OFD packet to send [19:31:14]OFD Sender: No OFD packet to send [19:31:19]OFD Sender: No OFD packet to send [19:31:24]OFD Sender: No OFD packet to send [19:31:29]OFD Sender: No OFD packet to send [19:31:34]OFD Sender: No OFD packet to send [19:31:39]OFD Sender: No OFD packet to send [19:31:44]OFD Sender: No OFD packet to send [19:31:49]OFD Sender: No OFD packet to send [19:31:54]OFD Sender: No OFD packet to send [19:31:59]OFD Sender: No OFD packet to send [19:32:04]OFD Sender: No OFD packet to send [19:32:09]OFD Sender: No OFD packet to send [19:32:14]OFD Sender: No OFD packet to send [19:32:19]OFD Sender: No OFD packet to send [19:32:24]OFD Sender: No OFD packet to send [19:32:29]OFD Sender: No OFD packet to send [19:32:34]OFD Sender: No OFD packet to send [19:32:39]OFD Sender: No OFD packet to send [19:32:44]OFD Sender: No OFD packet to send [19:32:49]OFD Sender: No OFD packet to send [19:32:54]OFD Sender: No OFD packet to send [19:32:59]OFD Sender: No OFD packet to send [19:33:04]OFD Sender: No OFD packet to send [19:33:09]OFD Sender: No OFD packet to send [19:33:14]OFD Sender: No OFD packet to send [19:33:19]OFD Sender: No OFD packet to send [19:33:24]OFD Sender: No OFD packet to send [19:33:29]OFD Sender: No OFD packet to send [19:33:34]OFD Sender: No OFD packet to send [19:33:39]OFD Sender: No OFD packet to send [19:33:44]OFD Sender: No OFD packet to send [19:33:49]OFD Sender: No OFD packet to send [19:33:54]OFD Sender: No OFD packet to send [19:33:59]OFD Sender: No OFD packet to send [19:34:04]OFD Sender: No OFD packet to send [19:34:09]OFD Sender: No OFD packet to send [19:34: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:35]accept exits with 9 [19:35:35]New connection [19:35:35]New thread 3066953060 created [19:35:35]Thread 3067096420 joined [19:35:35]Waiting for new connection... [19:35:35] Sock 9.Parse request [19:35:35]Sock 9.Check first char [19:35:35]Sock 9.First char is OK [19:35:35]request: POST /json_proto HTTP/1.0 [19:35:35]Method: POST [19:35:35]URL: /json_proto [19:35:35]Method is POST - this is cgi request [19:35:35]url: /json_proto [19:35:35]query_string will be loaded in cgi processing [19:35:35]execute_cgi json_proto POST (null) [19:35:35]execute_cgi path=json_proto method=POST [19:35:35]POST find Content-Length [19:35:35]Host: 172.17.45.7:8080 [19:35:35]Content-Length: 819 [19:35:35]Content-Type: application/json [19:35:35] [19:35:35]POST finish read [19:35:35]Found Content-Length = 819 [19:35:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:35]execute_script... [19:35: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)949148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:35]POST & json_proto [19:35:35]process_json_proto [19:35:35]json parsed OK: [19:35:35]protocol is kg_v1.0 [19:35:35]action value=close_receipt [19:35:35]process_action close_receipt [19:35:35]cmd_close_receipt [19:35:35]MH_GetDate [19:35:35]Write to MH i2c: F0 00 00 DC 19 E4 [19:35:35]Write i2c OK [19:35:35]MH_I2C_Read... [19:35:35]Read from MH i2c: F0 [19:35:35]MH_I2C_Read... [19:35:35]Read from MH i2c: F0 09 00 [19:35:35]MH_I2C_Read... [19:35:35]Read from MH i2c: F0 09 00 DC 19 00 08 4C A5 66 90 0F 3E 66 8F [19:35:35]GetLastDocTimeStamp 1722108227 [19:35:35]current date 1722108936 [19:35:35]FM_GetShiftState [19:35:35]SAM_PROTO_GetShiftState [19:35:35]wFMCommunicate request_size=4 [19:35:35]MH_SAM_APDU [19:35:35]CAPDU: 80 13 01 00 [19:35:35]Write to MH i2c: E2 08 00 DD 19 80 13 01 00 00 00 00 00 73 [19:35:35]Write i2c OK [19:35:35]MH_I2C_Read... [19:35:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:35]Read from MH i2c: E2 [19:35:35]MH_I2C_Read... [19:35:35]Read from MH i2c: E2 0E 00 [19:35:35]MH_I2C_Read... [19:35:35]Read from MH i2c: E2 0E 00 DD 19 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 00 [19:35:35]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [19:35:35]wFMCommunicate OK [19:35:35]SAM_PROTO_GetShiftState done [19:35:35]FM_GetShiftState done [19:35:35]opened in 1722038845 [19:35:35]opened+sec_in_day 1722125245 [19:35:35]quantity*price = 200025 [19:35:35]sum+1 = 200026 [19:35:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 218 27.07.2024 19:35 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118275 ФПД: 136048267659159 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T193536&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118275&fm=136048267659159&tin=02508201610067®Number=0000000000092660&sum=200000 [19:35:36]StoreToDocumentArchive [19:35:36]shift 432 fd 118275 [19:35:36]save to /storage/0432/doc_00118275 [19:35:36]save last doc name /storage/0432/doc_00118275 to /storage/kkm_last_doc_name [19:35:36]save OK [19:35:36]Clear old archive folders... [19:35:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:35:36]tlvbuf is 01E3C910 [19:35:36]SAM_PROTO_ClearQueue [19:35:36]wFMCommunicate request_size=4 [19:35:36]MH_SAM_APDU [19:35:36]CAPDU: 80 09 00 00 [19:35:36]Write to MH i2c: E2 08 00 EA 19 80 09 00 00 00 00 00 00 75 [19:35:36]Write i2c OK [19:35:36]MH_I2C_Read... [19:35:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:35:36]Read from MH i2c: E2 [19:35:36]MH_I2C_Read... [19:35:36]Read from MH i2c: E2 03 00 [19:35:36]MH_I2C_Read... [19:35:36]Read from MH i2c: E2 03 00 EA 19 00 90 00 77 [19:35:36]RAPDU: 90 00 [19:35:36]wFMCommunicate OK [19:35:36]SAM_PROTO_ClearQueue done [19:35:36]KKMCreateOFDPacket [19:35:36]OFDProtocolAddRootSTLVToBuf [19:35:36]FM_MakeSignedData [19:35:36]FM_MakeSignedData [19:35:36]SAM_PROTO_SignData [19:35:36]wFMCommunicate request_size=4 [19:35:36]MH_SAM_APDU [19:35:36]CAPDU: 80 0D 01 02 [19:35:36]Write to MH i2c: E2 08 00 EB 19 80 0D 01 02 00 00 00 00 7D [19:35:36]Write i2c OK [19:35:36]MH_I2C_Read... [19:35:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:35:36]Read from MH i2c: E2 [19:35:36]MH_I2C_Read... [19:35:36]Read from MH i2c: E2 03 00 [19:35:36]MH_I2C_Read... [19:35:36]Read from MH i2c: E2 03 00 EB 19 00 90 00 78 [19:35:36]RAPDU: 90 00 [19:35:36]wFMCommunicate OK [19:35:36]wFMCommunicate request_size=255 [19:35:36]MH_SAM_APDU [19:35: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 08 4C A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 03 CE 01 00 35 04 06 00 7B BC 34 AA [19:35:36]Write to MH i2c: E2 02 01 EC 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 08 4C A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 03 CE 01 00 35 04 06 00 7B BC 34 AA 00 00 CC [19:35:36]Write i2c OK [19:35:36]MH_I2C_Read... [19:35:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:36]Read from MH i2c: E2 [19:35:36]MH_I2C_Read... [19:35:36]Read from MH i2c: E2 03 00 [19:35:36]MH_I2C_Read... [19:35:36]Read from MH i2c: E2 03 00 EC 19 00 90 00 79 [19:35:36]RAPDU: 90 00 [19:35:36]wFMCommunicate OK [19:35:36]wFMCommunicate request_size=7 [19:35:36]MH_SAM_APDU [19:35:36]CAPDU: 80 0D 02 02 02 87 97 [19:35:36]Write to MH i2c: E2 0A 00 ED 19 80 0D 02 02 02 00 87 97 00 00 A2 [19:35:36]Write i2c OK [19:35:36]MH_I2C_Read... [19:35:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:36]Read from MH i2c: E2 [19:35:36]MH_I2C_Read... [19:35:36]Read from MH i2c: E2 03 00 [19:35:36]MH_I2C_Read... [19:35:36]Read from MH i2c: E2 03 00 ED 19 00 90 00 7A [19:35:36]RAPDU: 90 00 [19:35:36]wFMCommunicate OK [19:35:36]wFMCommunicate request_size=4 [19:35:36]MH_SAM_APDU [19:35:36]CAPDU: 80 0D 03 02 [19:35:36]Write to MH i2c: E2 08 00 EE 19 80 0D 03 02 00 00 00 00 82 [19:35:36]Write i2c OK [19:35:36]MH_I2C_Read... [19:35:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:35:36]Read from MH i2c: E2 [19:35:36]MH_I2C_Read... [19:35:36]Read from MH i2c: E2 0B 00 [19:35:36]MH_I2C_Read... [19:35:36]Read from MH i2c: E2 0B 00 EE 19 00 50 EC 95 69 55 8E A8 13 90 00 5B [19:35:36]RAPDU: 50 EC 95 69 55 8E A8 13 90 00 [19:35:36]wFMCommunicate OK [19:35:36]SAM_PROTO_SignData done [19:35:36]FM_MakeSignedData done [19:35:36]CreateOFDProtocolMessage [19:35:36]wFMCommunicate request_size=4 [19:35:36]MH_SAM_APDU [19:35:36]CAPDU: 80 11 00 00 [19:35:36]Write to MH i2c: E2 08 00 EF 19 80 11 00 00 00 00 00 00 82 [19:35:36]Write i2c OK [19:35:36]MH_I2C_Read... [19:35:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:36]Read from MH i2c: E2 [19:35:36]MH_I2C_Read... [19:35:36]Read from MH i2c: E2 17 00 [19:35:36]MH_I2C_Read... [19:35:36]Read from MH i2c: E2 17 00 EF 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DD [19:35:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:35:36]wFMCommunicate OK [19:35:36]CreateOFDProtocolMessage done [19:35:36]OFDSenderStorePacket 118275 [19:35:36]StoreOFDPacket docnum=118275 [19:35:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 49 90 04 01 A1 50 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 08 4C A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 03 CE 01 00 35 04 06 00 7B BC 34 AA 87 97 50 EC 95 69 55 8E A8 13 [19:35:36]CheckFolder [19:35:36]dirname=/storage/ofd_packets [19:35:36]CheckFolder done [19:35:36]ProducePacketName [19:35:36]name=ofd_packets/00118275 [19:35:36]NVStorageSaveData ofd_packets/00118275 [19:35:36]File name is /storage/ofd_packets/00118275 [19:35:36]Write 298 bytes [19:35:36]NVStorageSaveData done [19:35:36]OFDSenderStorePacket done [19:35:36]KKMCreateOFDPacket done [19:35:36]NVStorageSaveData kkm_last_timestamp [19:35:36]File name is /storage/kkm_last_timestamp [19:35:36]Write 4 bytes [19:35:36]NVStorageSaveData done [19:35:36]ExternCall_PrintAddStr [19:35:36]wPrintStart [19:35:36]Write to MH i2c: 01 00 00 F0 19 09 [19:35:36]Write i2c OK [19:35:36]MH_I2C_Read... [19:35:36]Read from MH i2c: 01 [19:35:36]MH_I2C_Read... [19:35:36]Read from MH i2c: 01 07 00 [19:35:36]MH_I2C_Read... [19:35:36]Read from MH i2c: 01 07 00 F0 19 00 00 00 00 00 FF 0F 1E [19:35:36]RasterBufferAndPrint [19:35:36]line Счет N : (1)949148 [19:35:36]line ИНН: 02508201610067 [19:35:36]line Контрольно-Кассовый Чек [19:35:36]line ПРОДАЖА [19:35:36]line ТРК (МРК, ГНК) : 44 [19:35:36]line Товар: 2710194800 [19:35:36]line ДТ-К-5 [19:35:36]line 26.250 * 76.20 [19:35:36]line = 2000.25 [19:35:36]line НДС 12% НСП 1% [19:35:36]line > о реализуемом товаре [19:35:36]line ОКРУГЛЕНИЕ: -0.25 [19:35:36]line ИТОГО: 2000.00 [19:35:36]line НСП 1% : 17.70 [19:35:36]line НДС 12% : 212.42 [19:35:36]line Наличными: 0.00 [19:35:36]line Безнал.: 2000.00 [19:35:36]line Место: АЗС № 134 "Партнер Нефть" [19:35:36]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:35:36]line СНО: Общий режим [19:35:36]line Чек 218 27.07.2024 19:35 [19:35:36]line Смена: 432 ФФД: 1.0 [19:35:36]line ЗНМ: 0300000044 [19:35:36]line РНМ: 0000000000092660 [19:35:36]line Версия ККМ: 001 [19:35:36]line Платежная система: O! деньги [19:35:36]line ФМ: 0000000000874939 [19:35:36]line ФД: 118275 [19:35:36]line ФПД: 136048267659159 [19:35:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T193536&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118275&fm=136048267659159&tin=02508201610067®Number=0000000000092660&sum=200000 [19:35:37]OFD Sender: Processing packet 118275 [packets to send 86, broken 85] [19:35:37]ProducePacketName [19:35:37]name=ofd_packets/00118275 [19:35:37]OFD Sender: To server: pG, [19:35:37]CommunicateWithHost lk.salyk.kg:30040 [19:35:37]ConnectInit lk.salyk.kg [19:35:37]written 0, free lines is 4095 [19:35:37]Connected sock=11 [19:35:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 49 90 04 01 A1 50 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 08 4C A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 03 CE 01 00 35 04 06 00 7B BC 34 AA 87 97 50 EC 95 69 55 8E A8 13 [19:35:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 AB FA 47 00 A3 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 03 CE 01 00 F4 03 04 00 9A F9 A4 66 B6 04 01 00 00 02 EB 6F 5F EB 92 72 5A [19:35:37]CommunicateWithHost err = 0 [19:35:37]CheckOFDResponse [19:35:37]1017 (14) - 77093643461234 [19:35:37]1041 (16) - 0000000000874939 [19:35:37]1040 (4) - 118275 [19:35:37]1012 (4) - 27.07.2024 13:43 [19:35:37]1206 (1) - 0 [19:35:37]OFD Sender: Remove packet 118275 [19:35:37]ProducePacketName [19:35:37]name=ofd_packets/00118275 [19:35:37]NVStorageDeleteData [19:35:37]Write to MH i2c: 01 00 00 1A 1A 34 [19:35:37]Write i2c OK [19:35:37]MH_I2C_Read... [19:35:37]Read from MH i2c: 01 [19:35:37]MH_I2C_Read... [19:35:37]Read from MH i2c: 01 07 00 [19:35:37]MH_I2C_Read... [19:35:37]Read from MH i2c: 01 07 00 1A 1A 00 00 00 00 00 E1 0C 28 [19:35:37]RasterBufferAndPrint [19:35:37]line [19:35:37]line [19:35:37]line [19:35:37]line [19:35:37]line [19:35:37]written 0, free lines is 3303 [19:35:37]MH_Cut [19:35:37]Write to MH i2c: D1 01 00 21 1A 01 0D [19:35:37]Write i2c OK [19:35:37]MH_I2C_Read... [19:35:37]Read from MH i2c: D1 [19:35:37]MH_I2C_Read... [19:35:37]Read from MH i2c: D1 01 00 [19:35:37]MH_I2C_Read... [19:35:37]Read from MH i2c: D1 01 00 21 1A 00 0C [19:35:37]Write to MH i2c: 01 00 00 22 1A 3C [19:35:37]Write i2c OK [19:35:37]MH_I2C_Read... [19:35:37]OFD Sender: No OFD packet to send [19:35:38]*** Cut start [19:35:38]*** Partial cut [19:35:38]*** CUTSNS_PIN = 1 [19:35:38]*** CUTSNS_PIN = 0 [19:35:38]*** Brake cut motor [19:35:39]Read from MH i2c: 01 [19:35:39]MH_I2C_Read... [19:35:39]*** Stop cut motor [19:35:39]*** Cut end [19:35:39]Read from MH i2c: 01 07 00 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: 01 07 00 22 1A 00 00 00 00 00 FF 0F 51 [19:35:39]process_action close_receipt done [19:35:39]requested_data is exist [19:35:39]produce_requested_data [19:35:39]requested_item fm.sn is exist - process it [19:35:39]wFMCommunicate request_size=4 [19:35:39]MH_SAM_APDU [19:35:39]CAPDU: 80 11 00 00 [19:35:39]Write to MH i2c: E2 08 00 23 1A 80 11 00 00 00 00 00 00 B7 [19:35:39]Write i2c OK [19:35:39]MH_I2C_Read... [19:35:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:39]Read from MH i2c: E2 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: E2 17 00 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: E2 17 00 23 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 12 [19:35:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:35:39]wFMCommunicate OK [19:35:39]requested_item fd.num is exist - process it [19:35:39]SAM_PROTO_GetFieldsCounters [19:35:39]wFMCommunicate request_size=4 [19:35:39]MH_SAM_APDU [19:35:39]CAPDU: 80 13 00 00 [19:35:39]Write to MH i2c: E2 08 00 24 1A 80 13 00 00 00 00 00 00 BA [19:35:39]Write i2c OK [19:35:39]MH_I2C_Read... [19:35:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:35:39]Read from MH i2c: E2 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: E2 62 00 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: E2 62 00 24 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 03 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [19:35:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 03 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:35:39]wFMCommunicate OK [19:35:39]SAM_PROTO_GetFieldsCounters done [19:35:39]requested_item shift.num is exist - process it [19:35:39]requested_item shift.opened is exist - process it [19:35:39]req_shift_opened [19:35:39]FM_GetShiftState [19:35:39]SAM_PROTO_GetShiftState [19:35:39]wFMCommunicate request_size=4 [19:35:39]MH_SAM_APDU [19:35:39]CAPDU: 80 13 01 00 [19:35:39]Write to MH i2c: E2 08 00 25 1A 80 13 01 00 00 00 00 00 BC [19:35:39]Write i2c OK [19:35:39]MH_I2C_Read... [19:35:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:39]Read from MH i2c: E2 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: E2 0E 00 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: E2 0E 00 25 1A 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 49 [19:35:39]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [19:35:39]wFMCommunicate OK [19:35:39]SAM_PROTO_GetShiftState done [19:35:39]FM_GetShiftState done [19:35:39]req_shift_opened done [19:35:39]requested_item shift.open_date is exist - process it [19:35:39]req_shift_open_date [19:35:39]req_shift_open_date done [19:35:39]produce_requested_data done [19:35:39]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118275,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [19:35:39]process_action_free close_receipt [19:35:39]json_value_free [19:35:39]json_value_free done [19:35:39]process_json_proto returns [19:35:39]Send response to host [19:35:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118275,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [19:35:39]free response buf [19:35:39]execute_script done [19:35:39]execute_script returns [19:35:39]free content buf [19:35:39]Sock 9.Close socket [19:35:39]Sock 9.Thread stoped [19:35:42]OFD Sender: No OFD packet to send [19:35:47]OFD Sender: No OFD packet to send [19:35:52]OFD Sender: No OFD packet to send [19:35:58]OFD Sender: No OFD packet to send [19:36:03]OFD Sender: No OFD packet to send [19:36:08]OFD Sender: No OFD packet to send [19:36:13]OFD Sender: No OFD packet to send [19:36:18]OFD Sender: No OFD packet to send [19:36:23]OFD Sender: No OFD packet to send [19:36:28]OFD Sender: No OFD packet to send [19:36:33]OFD Sender: No OFD packet to send [19:36:38]OFD Sender: No OFD packet to send [19:36:43]OFD Sender: No OFD packet to send [19:36:48]OFD Sender: No OFD packet to send [19:36:53]OFD Sender: No OFD packet to send [19:36:58]OFD Sender: No OFD packet to send [19:37:03]OFD Sender: No OFD packet to send [19:37:08]OFD Sender: No OFD packet to send [19:37:13]OFD Sender: No OFD packet to send [19:37:18]OFD Sender: No OFD packet to send [19:37:23]OFD Sender: No OFD packet to send [19:37:28]OFD Sender: No OFD packet to send [19:37:33]OFD Sender: No OFD packet to send [19:37:38]OFD Sender: No OFD packet to send [19:37:43]OFD Sender: No OFD packet to send [19:37:48]OFD Sender: No OFD packet to send [19:37:53]OFD Sender: No OFD packet to send [19:37:58]OFD Sender: No OFD packet to send [19:38:03]OFD Sender: No OFD packet to send [19:38:08]OFD Sender: No OFD packet to send [19:38:13]OFD Sender: No OFD packet to send [19:38:18]OFD Sender: No OFD packet to send [19:38:23]OFD Sender: No OFD packet to send [19:38:28]OFD Sender: No OFD packet to send [19:38:33]OFD Sender: No OFD packet to send [19:38:38]OFD Sender: No OFD packet to send [19:38:43]OFD Sender: No OFD packet to send [19:38:48]OFD Sender: No OFD packet to send [19:38:53]OFD Sender: No OFD packet to send [19:38:58]OFD Sender: No OFD packet to send [19:39:03]OFD Sender: No OFD packet to send [19:39:08]OFD Sender: No OFD packet to send [19:39:13]OFD Sender: No OFD packet to send [19:39:18]OFD Sender: No OFD packet to send [19:39:23]OFD Sender: No OFD packet to send [19:39:28]OFD Sender: No OFD packet to send [19:39:33]OFD Sender: No OFD packet to send [19:39:38]OFD Sender: No OFD packet to send [19:39:43]OFD Sender: No OFD packet to send [19:39:48]OFD Sender: No OFD packet to send [19:39:53]OFD Sender: No OFD packet to send [19:39:58]OFD Sender: No OFD packet to send [19:40:02]accept exits with 7 [19:40:02]New connection [19:40:02]New thread 3067096420 created [19:40:02]Thread 3066953060 joined [19:40:02]Waiting for new connection... [19:40:02] Sock 7.Parse request [19:40:02]Sock 7.Check first char [19:40:02]Sock 7.First char is OK [19:40:02]request: POST /json_proto HTTP/1.0 [19:40:02]Method: POST [19:40:02]URL: /json_proto [19:40:02]Method is POST - this is cgi request [19:40:02]url: /json_proto [19:40:02]query_string will be loaded in cgi processing [19:40:02]execute_cgi json_proto POST (null) [19:40:02]execute_cgi path=json_proto method=POST [19:40:02]POST find Content-Length [19:40:02]Host: 172.17.45.7:8080 [19:40:02]Content-Length: 682 [19:40:02]Content-Type: application/json [19:40:02] [19:40:02]POST finish read [19:40:02]Found Content-Length = 682 [19:40:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:40:02]execute_script... [19:40: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)949149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:40:02]POST & json_proto [19:40:02]process_json_proto [19:40:02]json parsed OK: [19:40:02]protocol is kg_v1.0 [19:40:02]action value=close_receipt [19:40:02]process_action close_receipt [19:40:02]cmd_close_receipt [19:40:02]MH_GetDate [19:40:02]Write to MH i2c: F0 00 00 26 1A 2F [19:40:02]Write i2c OK [19:40:02]MH_I2C_Read... [19:40:02]Read from MH i2c: F0 [19:40:02]MH_I2C_Read... [19:40:02]Read from MH i2c: F0 09 00 [19:40:02]MH_I2C_Read... [19:40:02]Read from MH i2c: F0 09 00 26 1A 00 13 4D A5 66 90 0F 3E 66 E6 [19:40:02]GetLastDocTimeStamp 1722108936 [19:40:02]current date 1722109203 [19:40:02]FM_GetShiftState [19:40:02]SAM_PROTO_GetShiftState [19:40:02]wFMCommunicate request_size=4 [19:40:02]MH_SAM_APDU [19:40:02]CAPDU: 80 13 01 00 [19:40:02]Write to MH i2c: E2 08 00 27 1A 80 13 01 00 00 00 00 00 BE [19:40:02]Write i2c OK [19:40:02]MH_I2C_Read... [19:40:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:02]Read from MH i2c: E2 [19:40:02]MH_I2C_Read... [19:40:02]Read from MH i2c: E2 0E 00 [19:40:02]MH_I2C_Read... [19:40:02]Read from MH i2c: E2 0E 00 27 1A 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 4B [19:40:02]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [19:40:02]wFMCommunicate OK [19:40:02]SAM_PROTO_GetShiftState done [19:40:02]FM_GetShiftState done [19:40:02]opened in 1722038845 [19:40:02]opened+sec_in_day 1722125245 [19:40:02]quantity*price = 100005 [19:40:02]sum+1 = 100006 [19:40:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 219 27.07.2024 19:40 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118276 ФПД: 221831115516865 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T194003&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118276&fm=221831115516865&tin=02508201610067®Number=0000000000092660&sum=100000 [19:40:03]StoreToDocumentArchive [19:40:03]shift 432 fd 118276 [19:40:03]save to /storage/0432/doc_00118276 [19:40:03]save last doc name /storage/0432/doc_00118276 to /storage/kkm_last_doc_name [19:40:03]save OK [19:40:03]Clear old archive folders... [19:40:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:40:03]tlvbuf is B6EFD630 [19:40:03]SAM_PROTO_ClearQueue [19:40:03]wFMCommunicate request_size=4 [19:40:03]MH_SAM_APDU [19:40:03]CAPDU: 80 09 00 00 [19:40:03]Write to MH i2c: E2 08 00 34 1A 80 09 00 00 00 00 00 00 C0 [19:40:03]Write i2c OK [19:40:03]MH_I2C_Read... [19:40:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:40:03]Read from MH i2c: E2 [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: E2 03 00 [19:40:03]MH_I2C_Read... [19:40:03]OFD Sender: No OFD packet to send [19:40:03]Read from MH i2c: E2 03 00 34 1A 00 90 00 C2 [19:40:03]RAPDU: 90 00 [19:40:03]wFMCommunicate OK [19:40:03]SAM_PROTO_ClearQueue done [19:40:03]KKMCreateOFDPacket [19:40:03]OFDProtocolAddRootSTLVToBuf [19:40:03]FM_MakeSignedData [19:40:03]FM_MakeSignedData [19:40:03]SAM_PROTO_SignData [19:40:03]wFMCommunicate request_size=4 [19:40:03]MH_SAM_APDU [19:40:03]CAPDU: 80 0D 01 02 [19:40:03]Write to MH i2c: E2 08 00 35 1A 80 0D 01 02 00 00 00 00 C8 [19:40:03]Write i2c OK [19:40:03]MH_I2C_Read... [19:40:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:40:03]Read from MH i2c: E2 [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: E2 03 00 [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: E2 03 00 35 1A 00 90 00 C3 [19:40:03]RAPDU: 90 00 [19:40:03]wFMCommunicate OK [19:40:03]wFMCommunicate request_size=255 [19:40:03]MH_SAM_APDU [19:40:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 13 4D A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 04 CE 01 00 35 04 06 00 C9 [19:40:03]Write to MH i2c: E2 02 01 36 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 13 4D A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 04 CE 01 00 35 04 06 00 C9 00 00 6E [19:40:03]Write i2c OK [19:40:03]MH_I2C_Read... [19:40:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:03]Read from MH i2c: E2 [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: E2 03 00 [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: E2 03 00 36 1A 00 90 00 C4 [19:40:03]RAPDU: 90 00 [19:40:03]wFMCommunicate OK [19:40:03]wFMCommunicate request_size=10 [19:40:03]MH_SAM_APDU [19:40:03]CAPDU: 80 0D 02 02 05 C1 14 D7 2B C1 [19:40:03]Write to MH i2c: E2 0D 00 37 1A 80 0D 02 02 05 00 C1 14 D7 2B C1 00 00 6D [19:40:03]Write i2c OK [19:40:03]MH_I2C_Read... [19:40:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:03]Read from MH i2c: E2 [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: E2 03 00 [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: E2 03 00 37 1A 00 90 00 C5 [19:40:03]RAPDU: 90 00 [19:40:03]wFMCommunicate OK [19:40:03]wFMCommunicate request_size=4 [19:40:03]MH_SAM_APDU [19:40:03]CAPDU: 80 0D 03 02 [19:40:03]Write to MH i2c: E2 08 00 38 1A 80 0D 03 02 00 00 00 00 CD [19:40:03]Write i2c OK [19:40:03]MH_I2C_Read... [19:40:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:40:03]Read from MH i2c: E2 [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: E2 0B 00 [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: E2 0B 00 38 1A 00 8A B2 C0 37 C8 86 99 E0 90 00 C8 [19:40:03]RAPDU: 8A B2 C0 37 C8 86 99 E0 90 00 [19:40:03]wFMCommunicate OK [19:40:03]SAM_PROTO_SignData done [19:40:03]FM_MakeSignedData done [19:40:03]CreateOFDProtocolMessage [19:40:03]wFMCommunicate request_size=4 [19:40:03]MH_SAM_APDU [19:40:03]CAPDU: 80 11 00 00 [19:40:03]Write to MH i2c: E2 08 00 39 1A 80 11 00 00 00 00 00 00 CD [19:40:03]Write i2c OK [19:40:03]MH_I2C_Read... [19:40:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:03]Read from MH i2c: E2 [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: E2 17 00 [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: E2 17 00 39 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 28 [19:40:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:40:03]wFMCommunicate OK [19:40:03]CreateOFDProtocolMessage done [19:40:03]OFDSenderStorePacket 118276 [19:40:03]StoreOFDPacket docnum=118276 [19:40:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4B 51 07 01 EF 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 13 4D A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 04 CE 01 00 35 04 06 00 C9 C1 14 D7 2B C1 8A B2 C0 37 C8 86 99 E0 [19:40:03]CheckFolder [19:40:03]dirname=/storage/ofd_packets [19:40:03]CheckFolder done [19:40:03]ProducePacketName [19:40:03]name=ofd_packets/00118276 [19:40:03]NVStorageSaveData ofd_packets/00118276 [19:40:03]File name is /storage/ofd_packets/00118276 [19:40:03]Write 301 bytes [19:40:03]NVStorageSaveData done [19:40:03]OFDSenderStorePacket done [19:40:03]KKMCreateOFDPacket done [19:40:03]NVStorageSaveData kkm_last_timestamp [19:40:03]File name is /storage/kkm_last_timestamp [19:40:03]Write 4 bytes [19:40:03]NVStorageSaveData done [19:40:03]ExternCall_PrintAddStr [19:40:03]wPrintStart [19:40:03]Write to MH i2c: 01 00 00 3A 1A 54 [19:40:03]Write i2c OK [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: 01 [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: 01 07 00 [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: 01 07 00 3A 1A 00 00 00 00 00 FF 0F 69 [19:40:03]RasterBufferAndPrint [19:40:03]line Счет N : (1)949149 [19:40:03]line ИНН: 02508201610067 [19:40:03]line Контрольно-Кассовый Чек [19:40:03]line ПРОДАЖА [19:40:03]line ТРК (МРК, ГНК) : 31 [19:40:03]line Товар: 2710124130 [19:40:03]line Аи-92-К-4 [19:40:03]line 14.750 * 67.80 [19:40:03]line = 1000.05 [19:40:03]line НДС 12% НСП 1% [19:40:03]line > о реализуемом товаре [19:40:03]line ОКРУГЛЕНИЕ: -0.05 [19:40:03]line ИТОГО: 1000.00 [19:40:03]line Внесено: 1000.00 [19:40:03]line СДАЧА: 0.00 [19:40:03]line НСП 1% : 8.85 [19:40:03]line НДС 12% : 106.20 [19:40:03]line Наличными: 1000.00 [19:40:03]line Безнал.: 0.00 [19:40:03]line Место: АЗС № 134 "Партнер Нефть" [19:40:03]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:40:03]line СНО: Общий режим [19:40:03]line Чек 219 27.07.2024 19:40 [19:40:03]line Смена: 432 ФФД: 1.0 [19:40:03]line ЗНМ: 0300000044 [19:40:03]line РНМ: 0000000000092660 [19:40:03]line Версия ККМ: 001 [19:40:03]line ФМ: 0000000000874939 [19:40:03]line ФД: 118276 [19:40:03]line ФПД: 221831115516865 [19:40:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T194003&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118276&fm=221831115516865&tin=02508201610067®Number=0000000000092660&sum=100000 [19:40:04]OFD Sender: Processing packet 118276 [packets to send 86, broken 85] [19:40:04]ProducePacketName [19:40:04]name=ofd_packets/00118276 [19:40:04]OFD Sender: To server: pG, [19:40:04]CommunicateWithHost lk.salyk.kg:30040 [19:40:04]ConnectInit lk.salyk.kg [19:40:04]written 0, free lines is 4095 [19:40:04]Connected sock=10 [19:40:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4B 51 07 01 EF 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 13 4D A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 04 CE 01 00 35 04 06 00 C9 C1 14 D7 2B C1 8A B2 C0 37 C8 86 99 E0 [19:40:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A7 9C 47 00 21 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 34 39 33 39 10 04 04 00 04 CE 01 00 F4 03 04 00 A5 FA A4 66 B6 04 01 00 00 60 32 2C E2 38 BB B9 0E [19:40:04]CommunicateWithHost err = 0 [19:40:04]CheckOFDResponse [19:40:04]1017 (14) - 77093643461234 [19:40:04]1041 (16) - 0000000000874939 [19:40:04]1040 (4) - 118276 [19:40:04]1012 (4) - 27.07.2024 13:48 [19:40:04]1206 (1) - 0 [19:40:04]OFD Sender: Remove packet 118276 [19:40:04]ProducePacketName [19:40:04]name=ofd_packets/00118276 [19:40:04]NVStorageDeleteData [19:40:04]Write to MH i2c: 01 00 00 64 1A 7E [19:40:04]Write i2c OK [19:40:04]MH_I2C_Read... [19:40:04]Read from MH i2c: 01 [19:40:04]MH_I2C_Read... [19:40:04]Read from MH i2c: 01 07 00 [19:40:04]MH_I2C_Read... [19:40:04]Read from MH i2c: 01 07 00 64 1A 00 00 00 00 00 EB 0C 7C [19:40:04]RasterBufferAndPrint [19:40:04]line [19:40:04]line [19:40:04]line [19:40:04]line [19:40:04]line [19:40:04]written 0, free lines is 3314 [19:40:04]MH_Cut [19:40:04]Write to MH i2c: D1 01 00 6B 1A 01 57 [19:40:04]Write i2c OK [19:40:04]MH_I2C_Read... [19:40:04]Read from MH i2c: D1 [19:40:04]MH_I2C_Read... [19:40:04]Read from MH i2c: D1 01 00 [19:40:04]MH_I2C_Read... [19:40:04]Read from MH i2c: D1 01 00 6B 1A 00 56 [19:40:04]Write to MH i2c: 01 00 00 6C 1A 86 [19:40:04]Write i2c OK [19:40:04]MH_I2C_Read... [19:40:04]OFD Sender: No OFD packet to send [19:40:05]*** Cut start [19:40:05]*** Partial cut [19:40:05]*** CUTSNS_PIN = 1 [19:40:05]*** CUTSNS_PIN = 0 [19:40:05]*** Brake cut motor [19:40:05]Read from MH i2c: 01 [19:40:05]MH_I2C_Read... [19:40:05]*** Stop cut motor [19:40:05]*** Cut end [19:40:05]Read from MH i2c: 01 07 00 [19:40:05]MH_I2C_Read... [19:40:05]Read from MH i2c: 01 07 00 6C 1A 00 00 00 00 00 FF 0F 9B [19:40:05]process_action close_receipt done [19:40:05]requested_data is exist [19:40:05]produce_requested_data [19:40:05]requested_item fm.sn is exist - process it [19:40:05]wFMCommunicate request_size=4 [19:40:05]MH_SAM_APDU [19:40:05]CAPDU: 80 11 00 00 [19:40:05]Write to MH i2c: E2 08 00 6D 1A 80 11 00 00 00 00 00 00 01 [19:40:05]Write i2c OK [19:40:05]MH_I2C_Read... [19:40:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:05]Read from MH i2c: E2 [19:40:05]MH_I2C_Read... [19:40:05]Read from MH i2c: E2 17 00 [19:40:05]MH_I2C_Read... [19:40:05]Read from MH i2c: E2 17 00 6D 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5C [19:40:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:40:05]wFMCommunicate OK [19:40:05]requested_item fd.num is exist - process it [19:40:05]SAM_PROTO_GetFieldsCounters [19:40:05]wFMCommunicate request_size=4 [19:40:05]MH_SAM_APDU [19:40:05]CAPDU: 80 13 00 00 [19:40:05]Write to MH i2c: E2 08 00 6E 1A 80 13 00 00 00 00 00 00 04 [19:40:05]Write i2c OK [19:40:05]MH_I2C_Read... [19:40:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:06]Read from MH i2c: E2 [19:40:06]MH_I2C_Read... [19:40:06]Read from MH i2c: E2 62 00 [19:40:06]MH_I2C_Read... [19:40:06]Read from MH i2c: E2 62 00 6E 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 04 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [19:40:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 04 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:40:06]wFMCommunicate OK [19:40:06]SAM_PROTO_GetFieldsCounters done [19:40:06]requested_item shift.num is exist - process it [19:40:06]requested_item shift.opened is exist - process it [19:40:06]req_shift_opened [19:40:06]FM_GetShiftState [19:40:06]SAM_PROTO_GetShiftState [19:40:06]wFMCommunicate request_size=4 [19:40:06]MH_SAM_APDU [19:40:06]CAPDU: 80 13 01 00 [19:40:06]Write to MH i2c: E2 08 00 6F 1A 80 13 01 00 00 00 00 00 06 [19:40:06]Write i2c OK [19:40:06]MH_I2C_Read... [19:40:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:06]Read from MH i2c: E2 [19:40:06]MH_I2C_Read... [19:40:06]Read from MH i2c: E2 0E 00 [19:40:06]MH_I2C_Read... [19:40:06]Read from MH i2c: E2 0E 00 6F 1A 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 93 [19:40:06]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [19:40:06]wFMCommunicate OK [19:40:06]SAM_PROTO_GetShiftState done [19:40:06]FM_GetShiftState done [19:40:06]req_shift_opened done [19:40:06]requested_item shift.open_date is exist - process it [19:40:06]req_shift_open_date [19:40:06]req_shift_open_date done [19:40:06]produce_requested_data done [19:40:06]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118276,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [19:40:06]process_action_free close_receipt [19:40:06]json_value_free [19:40:06]json_value_free done [19:40:06]process_json_proto returns [19:40:06]Send response to host [19:40:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118276,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [19:40:06]free response buf [19:40:06]execute_script done [19:40:06]execute_script returns [19:40:06]free content buf [19:40:06]Sock 7.Close socket [19:40:06]Sock 7.Thread stoped [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:55]OFD Sender: No OFD packet to send [19:41:00]OFD Sender: No OFD packet to send [19:41:05]OFD Sender: No OFD packet to send [19:41:10]OFD Sender: No OFD packet to send [19:41:15]OFD Sender: No OFD packet to send [19:41:20]OFD Sender: No OFD packet to send [19:41:25]OFD Sender: No OFD packet to send [19:41:30]OFD Sender: No OFD packet to send [19:41:35]OFD Sender: No OFD packet to send [19:41:40]OFD Sender: No OFD packet to send [19:41:45]OFD Sender: No OFD packet to send [19:41:50]OFD Sender: No OFD packet to send [19:41:55]OFD Sender: No OFD packet to send [19:42:00]OFD Sender: No OFD packet to send [19:42:05]OFD Sender: No OFD packet to send [19:42:10]OFD Sender: No OFD packet to send [19:42:15]OFD Sender: No OFD packet to send [19:42:20]OFD Sender: No OFD packet to send [19:42:25]OFD Sender: No OFD packet to send [19:42:30]OFD Sender: No OFD packet to send [19:42:35]OFD Sender: No OFD packet to send [19:42:40]OFD Sender: No OFD packet to send [19:42:45]OFD Sender: No OFD packet to send [19:42:50]OFD Sender: No OFD packet to send [19:42:55]OFD Sender: No OFD packet to send [19:43:00]OFD Sender: No OFD packet to send [19:43:05]OFD Sender: No OFD packet to send [19:43:10]OFD Sender: No OFD packet to send [19:43:15]OFD Sender: No OFD packet to send [19:43:20]OFD Sender: No OFD packet to send [19:43:25]OFD Sender: No OFD packet to send [19:43:30]OFD Sender: No OFD packet to send [19:43:35]OFD Sender: No OFD packet to send [19:43:40]OFD Sender: No OFD packet to send [19:43:45]OFD Sender: No OFD packet to send [19:43:50]OFD Sender: No OFD packet to send [19:43:55]OFD Sender: No OFD packet to send [19:44:00]OFD Sender: No OFD packet to send [19:44:05]OFD Sender: No OFD packet to send [19:44:10]OFD Sender: No OFD packet to send [19:44:15]OFD Sender: No OFD packet to send [19:44:20]OFD Sender: No OFD packet to send [19:44:25]OFD Sender: No OFD packet to send [19:44:30]OFD Sender: No OFD packet to send [19:44:35]OFD Sender: No OFD packet to send [19:44:40]OFD Sender: No OFD packet to send [19:44:45]OFD Sender: No OFD packet to send [19:44:50]OFD Sender: No OFD packet to send [19:44:55]OFD Sender: No OFD packet to send [19:45:00]OFD Sender: No OFD packet to send [19:45:05]OFD Sender: No OFD packet to send [19:45:10]OFD Sender: No OFD packet to send [19:45:15]OFD Sender: No OFD packet to send [19:45:20]OFD Sender: No OFD packet to send [19:45:25]OFD Sender: No OFD packet to send [19:45:30]OFD Sender: No OFD packet to send [19:45:35]OFD Sender: No OFD packet to send [19:45:40]OFD Sender: No OFD packet to send [19:45:45]OFD Sender: No OFD packet to send [19:45:50]OFD Sender: No OFD packet to send [19:45:55]OFD Sender: No OFD packet to send [19:46:00]OFD Sender: No OFD packet to send [19:46:05]OFD Sender: No OFD packet to send [19:46:10]OFD Sender: No OFD packet to send [19:46:15]OFD Sender: No OFD packet to send [19:46:20]OFD Sender: No OFD packet to send [19:46:25]OFD Sender: No OFD packet to send [19:46:30]OFD Sender: No OFD packet to send [19:46:35]OFD Sender: No OFD packet to send [19:46:40]OFD Sender: No OFD packet to send [19:46:45]OFD Sender: No OFD packet to send [19:46:50]OFD Sender: No OFD packet to send [19:46:55]OFD Sender: No OFD packet to send [19:47:00]OFD Sender: No OFD packet to send [19:47:05]OFD Sender: No OFD packet to send [19:47:10]OFD Sender: No OFD packet to send [19:47:15]OFD Sender: No OFD packet to send [19:47:20]OFD Sender: No OFD packet to send [19:47:25]OFD Sender: No OFD packet to send [19:47:30]OFD Sender: No OFD packet to send [19:47:35]OFD Sender: No OFD packet to send [19:47:36]accept exits with 9 [19:47:36]New connection [19:47:36]New thread 3066953060 created [19:47:36]Thread 3067096420 joined [19:47:36]Waiting for new connection... [19:47:36] Sock 9.Parse request [19:47:36]Sock 9.Check first char [19:47:36]Sock 9.First char is OK [19:47:36]request: POST /json_proto HTTP/1.0 [19:47:36]Method: POST [19:47:36]URL: /json_proto [19:47:36]Method is POST - this is cgi request [19:47:36]url: /json_proto [19:47:36]query_string will be loaded in cgi processing [19:47:36]execute_cgi json_proto POST (null) [19:47:36]execute_cgi path=json_proto method=POST [19:47:36]POST find Content-Length [19:47:36]Host: 172.17.45.7:8080 [19:47:36]Content-Length: 677 [19:47:36]Content-Type: application/json [19:47:36] [19:47:36]POST finish read [19:47:36]Found Content-Length = 677 [19:47:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:47:36]execute_script... [19:47: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)949150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:47:36]POST & json_proto [19:47:36]process_json_proto [19:47:36]json parsed OK: [19:47:36]protocol is kg_v1.0 [19:47:36]action value=close_receipt [19:47:36]process_action close_receipt [19:47:36]cmd_close_receipt [19:47:36]MH_GetDate [19:47:36]Write to MH i2c: F0 00 00 70 1A 79 [19:47:36]Write i2c OK [19:47:36]MH_I2C_Read... [19:47:36]Read from MH i2c: F0 [19:47:36]MH_I2C_Read... [19:47:36]Read from MH i2c: F0 09 00 [19:47:36]MH_I2C_Read... [19:47:36]Read from MH i2c: F0 09 00 70 1A 00 D9 4E A5 66 90 0F 3E 66 F7 [19:47:36]GetLastDocTimeStamp 1722109203 [19:47:36]current date 1722109657 [19:47:36]FM_GetShiftState [19:47:36]SAM_PROTO_GetShiftState [19:47:36]wFMCommunicate request_size=4 [19:47:36]MH_SAM_APDU [19:47:36]CAPDU: 80 13 01 00 [19:47:36]Write to MH i2c: E2 08 00 71 1A 80 13 01 00 00 00 00 00 08 [19:47:36]Write i2c OK [19:47:36]MH_I2C_Read... [19:47:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:36]Read from MH i2c: E2 [19:47:36]MH_I2C_Read... [19:47:36]Read from MH i2c: E2 0E 00 [19:47:36]MH_I2C_Read... [19:47:36]Read from MH i2c: E2 0E 00 71 1A 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 95 [19:47:36]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [19:47:36]wFMCommunicate OK [19:47:36]SAM_PROTO_GetShiftState done [19:47:36]FM_GetShiftState done [19:47:36]opened in 1722038845 [19:47:36]opened+sec_in_day 1722125245 [19:47:36]quantity*price = 50036 [19:47:36]sum+1 = 50037 [19:47:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 220 27.07.2024 19:47 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118277 ФПД: 249908771676744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T194737&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118277&fm=249908771676744&tin=02508201610067®Number=0000000000092660&sum=50000 [19:47:37]StoreToDocumentArchive [19:47:37]shift 432 fd 118277 [19:47:37]save to /storage/0432/doc_00118277 [19:47:37]save last doc name /storage/0432/doc_00118277 to /storage/kkm_last_doc_name [19:47:37]save OK [19:47:37]Clear old archive folders... [19:47:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:47:37]tlvbuf is 01E3BFF0 [19:47:37]SAM_PROTO_ClearQueue [19:47:37]wFMCommunicate request_size=4 [19:47:37]MH_SAM_APDU [19:47:37]CAPDU: 80 09 00 00 [19:47:37]Write to MH i2c: E2 08 00 7E 1A 80 09 00 00 00 00 00 00 0A [19:47:37]Write i2c OK [19:47:37]MH_I2C_Read... [19:47:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:47:37]Read from MH i2c: E2 [19:47:37]MH_I2C_Read... [19:47:37]Read from MH i2c: E2 03 00 [19:47:37]MH_I2C_Read... [19:47:37]Read from MH i2c: E2 03 00 7E 1A 00 90 00 0C [19:47:37]RAPDU: 90 00 [19:47:37]wFMCommunicate OK [19:47:37]SAM_PROTO_ClearQueue done [19:47:37]KKMCreateOFDPacket [19:47:37]OFDProtocolAddRootSTLVToBuf [19:47:37]FM_MakeSignedData [19:47:37]FM_MakeSignedData [19:47:37]SAM_PROTO_SignData [19:47:37]wFMCommunicate request_size=4 [19:47:37]MH_SAM_APDU [19:47:37]CAPDU: 80 0D 01 02 [19:47:37]Write to MH i2c: E2 08 00 7F 1A 80 0D 01 02 00 00 00 00 12 [19:47:37]Write i2c OK [19:47:37]MH_I2C_Read... [19:47:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:47:37]Read from MH i2c: E2 [19:47:37]MH_I2C_Read... [19:47:37]Read from MH i2c: E2 03 00 [19:47:37]MH_I2C_Read... [19:47:37]Read from MH i2c: E2 03 00 7F 1A 00 90 00 0D [19:47:37]RAPDU: 90 00 [19:47:37]wFMCommunicate OK [19:47:37]wFMCommunicate request_size=255 [19:47:37]MH_SAM_APDU [19:47: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 DC 00 00 00 F4 03 04 00 D9 4E A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 05 CE 01 00 35 04 06 00 E3 [19:47:37]Write to MH i2c: E2 02 01 80 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 DC 00 00 00 F4 03 04 00 D9 4E A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 05 CE 01 00 35 04 06 00 E3 00 00 0C [19:47:37]Write i2c OK [19:47:37]MH_I2C_Read... [19:47:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:38]Read from MH i2c: E2 [19:47:38]MH_I2C_Read... [19:47:38]Read from MH i2c: E2 03 00 [19:47:38]MH_I2C_Read... [19:47:38]Read from MH i2c: E2 03 00 80 1A 00 90 00 0E [19:47:38]RAPDU: 90 00 [19:47:38]wFMCommunicate OK [19:47:38]wFMCommunicate request_size=10 [19:47:38]MH_SAM_APDU [19:47:38]CAPDU: 80 0D 02 02 05 4A 6B 8F E2 48 [19:47:38]Write to MH i2c: E2 0D 00 81 1A 80 0D 02 02 05 00 4A 6B 8F E2 48 00 00 8D [19:47:38]Write i2c OK [19:47:38]MH_I2C_Read... [19:47:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:38]Read from MH i2c: E2 [19:47:38]MH_I2C_Read... [19:47:38]Read from MH i2c: E2 03 00 [19:47:38]MH_I2C_Read... [19:47:38]Read from MH i2c: E2 03 00 81 1A 00 90 00 0F [19:47:38]RAPDU: 90 00 [19:47:38]wFMCommunicate OK [19:47:38]wFMCommunicate request_size=4 [19:47:38]MH_SAM_APDU [19:47:38]CAPDU: 80 0D 03 02 [19:47:38]Write to MH i2c: E2 08 00 82 1A 80 0D 03 02 00 00 00 00 17 [19:47:38]Write i2c OK [19:47:38]MH_I2C_Read... [19:47:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:47:38]Read from MH i2c: E2 [19:47:38]MH_I2C_Read... [19:47:38]Read from MH i2c: E2 0B 00 [19:47:38]MH_I2C_Read... [19:47:38]Read from MH i2c: E2 0B 00 82 1A 00 87 FC 58 D9 6B B4 48 9C 90 00 CF [19:47:38]RAPDU: 87 FC 58 D9 6B B4 48 9C 90 00 [19:47:38]wFMCommunicate OK [19:47:38]SAM_PROTO_SignData done [19:47:38]FM_MakeSignedData done [19:47:38]CreateOFDProtocolMessage [19:47:38]wFMCommunicate request_size=4 [19:47:38]MH_SAM_APDU [19:47:38]CAPDU: 80 11 00 00 [19:47:38]Write to MH i2c: E2 08 00 83 1A 80 11 00 00 00 00 00 00 17 [19:47:38]Write i2c OK [19:47:38]MH_I2C_Read... [19:47:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:38]Read from MH i2c: E2 [19:47:38]MH_I2C_Read... [19:47:38]Read from MH i2c: E2 17 00 [19:47:38]MH_I2C_Read... [19:47:38]Read from MH i2c: E2 17 00 83 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 72 [19:47:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:47:38]wFMCommunicate OK [19:47:38]CreateOFDProtocolMessage done [19:47:38]OFDSenderStorePacket 118277 [19:47:38]StoreOFDPacket docnum=118277 [19:47:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 63 25 07 01 EF 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 DC 00 00 00 F4 03 04 00 D9 4E A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 05 CE 01 00 35 04 06 00 E3 4A 6B 8F E2 48 87 FC 58 D9 6B B4 48 9C [19:47:38]CheckFolder [19:47:38]dirname=/storage/ofd_packets [19:47:38]CheckFolder done [19:47:38]ProducePacketName [19:47:38]name=ofd_packets/00118277 [19:47:38]NVStorageSaveData ofd_packets/00118277 [19:47:38]File name is /storage/ofd_packets/00118277 [19:47:38]Write 301 bytes [19:47:38]NVStorageSaveData done [19:47:38]OFDSenderStorePacket done [19:47:38]KKMCreateOFDPacket done [19:47:38]NVStorageSaveData kkm_last_timestamp [19:47:38]File name is /storage/kkm_last_timestamp [19:47:38]Write 4 bytes [19:47:38]NVStorageSaveData done [19:47:38]ExternCall_PrintAddStr [19:47:38]wPrintStart [19:47:38]Write to MH i2c: 01 00 00 84 1A 9E [19:47:38]Write i2c OK [19:47:38]MH_I2C_Read... [19:47:38]Read from MH i2c: 01 [19:47:38]MH_I2C_Read... [19:47:38]Read from MH i2c: 01 07 00 [19:47:38]MH_I2C_Read... [19:47:38]Read from MH i2c: 01 07 00 84 1A 00 00 00 00 00 FF 0F B3 [19:47:38]RasterBufferAndPrint [19:47:38]line Счет N : (1)949150 [19:47:38]line ИНН: 02508201610067 [19:47:38]line Контрольно-Кассовый Чек [19:47:38]line ПРОДАЖА [19:47:38]line ТРК (МРК, ГНК) : 31 [19:47:38]line Товар: 2710124130 [19:47:38]line Аи-92-К-4 [19:47:38]line 7.380 * 67.80 [19:47:38]line = 500.36 [19:47:38]line НДС 12% НСП 1% [19:47:38]line > о реализуемом товаре [19:47:38]line ОКРУГЛЕНИЕ: -0.36 [19:47:38]line ИТОГО: 500.00 [19:47:38]line Внесено: 500.00 [19:47:38]line СДАЧА: 0.00 [19:47:38]line НСП 1% : 4.43 [19:47:38]line НДС 12% : 53.14 [19:47:38]line Наличными: 500.00 [19:47:38]line Безнал.: 0.00 [19:47:38]line Место: АЗС № 134 "Партнер Нефть" [19:47:38]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:47:38]line СНО: Общий режим [19:47:38]line Чек 220 27.07.2024 19:47 [19:47:38]line Смена: 432 ФФД: 1.0 [19:47:38]line ЗНМ: 0300000044 [19:47:38]line РНМ: 0000000000092660 [19:47:38]line Версия ККМ: 001 [19:47:38]line ФМ: 0000000000874939 [19:47:38]line ФД: 118277 [19:47:38]line ФПД: 249908771676744 [19:47:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T194737&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118277&fm=249908771676744&tin=02508201610067®Number=0000000000092660&sum=50000 [19:47:38]written 0, free lines is 4095 [19:47:38]OFD Sender: Processing packet 118277 [packets to send 86, broken 85] [19:47:38]ProducePacketName [19:47:38]name=ofd_packets/00118277 [19:47:38]OFD Sender: To server: pG, [19:47:38]CommunicateWithHost lk.salyk.kg:30040 [19:47:38]ConnectInit lk.salyk.kg [19:47:38]Connected sock=10 [19:47:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 63 25 07 01 EF 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 DC 00 00 00 F4 03 04 00 D9 4E A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 05 CE 01 00 35 04 06 00 E3 4A 6B 8F E2 48 87 FC 58 D9 6B B4 48 9C [19:47:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 FE 93 47 00 16 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 05 CE 01 00 F4 03 04 00 6B FC A4 66 B6 04 01 00 00 93 2D 8B 5A 31 8B 8B FC [19:47:38]CommunicateWithHost err = 0 [19:47:38]CheckOFDResponse [19:47:38]1017 (14) - 77093643461234 [19:47:38]1041 (16) - 0000000000874939 [19:47:38]1040 (4) - 118277 [19:47:38]1012 (4) - 27.07.2024 13:55 [19:47:38]1206 (1) - 0 [19:47:38]OFD Sender: Remove packet 118277 [19:47:38]ProducePacketName [19:47:38]name=ofd_packets/00118277 [19:47:38]NVStorageDeleteData [19:47:38]Write to MH i2c: 01 00 00 AE 1A C8 [19:47:38]Write i2c OK [19:47:38]MH_I2C_Read... [19:47:38]Read from MH i2c: 01 [19:47:38]MH_I2C_Read... [19:47:38]Read from MH i2c: 01 07 00 [19:47:38]MH_I2C_Read... [19:47:38]Read from MH i2c: 01 07 00 AE 1A 00 00 00 00 00 E2 0C BD [19:47:38]RasterBufferAndPrint [19:47:38]line [19:47:38]line [19:47:38]line [19:47:38]line [19:47:38]line [19:47:38]written 0, free lines is 3304 [19:47:38]MH_Cut [19:47:38]Write to MH i2c: D1 01 00 B5 1A 01 A1 [19:47:38]Write i2c OK [19:47:38]MH_I2C_Read... [19:47:38]Read from MH i2c: D1 [19:47:38]MH_I2C_Read... [19:47:38]Read from MH i2c: D1 01 00 [19:47:38]MH_I2C_Read... [19:47:38]Read from MH i2c: D1 01 00 B5 1A 00 A0 [19:47:38]Write to MH i2c: 01 00 00 B6 1A D0 [19:47:38]Write i2c OK [19:47:38]MH_I2C_Read... [19:47:39]OFD Sender: No OFD packet to send [19:47:39]*** Cut start [19:47:39]*** Partial cut [19:47:39]*** CUTSNS_PIN = 1 [19:47:39]*** CUTSNS_PIN = 0 [19:47:39]*** Brake cut motor [19:47:40]Read from MH i2c: 01 [19:47:40]MH_I2C_Read... [19:47:40]*** Stop cut motor [19:47:40]*** Cut end [19:47:40]Read from MH i2c: 01 07 00 [19:47:40]MH_I2C_Read... [19:47:40]Read from MH i2c: 01 07 00 B6 1A 00 00 00 00 00 FF 0F E5 [19:47:40]process_action close_receipt done [19:47:40]requested_data is exist [19:47:40]produce_requested_data [19:47:40]requested_item fm.sn is exist - process it [19:47:40]wFMCommunicate request_size=4 [19:47:40]MH_SAM_APDU [19:47:40]CAPDU: 80 11 00 00 [19:47:40]Write to MH i2c: E2 08 00 B7 1A 80 11 00 00 00 00 00 00 4B [19:47:40]Write i2c OK [19:47:40]MH_I2C_Read... [19:47:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:40]Read from MH i2c: E2 [19:47:40]MH_I2C_Read... [19:47:40]Read from MH i2c: E2 17 00 [19:47:40]MH_I2C_Read... [19:47:40]Read from MH i2c: E2 17 00 B7 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A6 [19:47:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:47:40]wFMCommunicate OK [19:47:40]requested_item fd.num is exist - process it [19:47:40]SAM_PROTO_GetFieldsCounters [19:47:40]wFMCommunicate request_size=4 [19:47:40]MH_SAM_APDU [19:47:40]CAPDU: 80 13 00 00 [19:47:40]Write to MH i2c: E2 08 00 B8 1A 80 13 00 00 00 00 00 00 4E [19:47:40]Write i2c OK [19:47:40]MH_I2C_Read... [19:47:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:47:40]Read from MH i2c: E2 [19:47:40]MH_I2C_Read... [19:47:40]Read from MH i2c: E2 62 00 [19:47:40]MH_I2C_Read... [19:47:40]Read from MH i2c: E2 62 00 B8 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 05 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [19:47:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 05 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:47:40]wFMCommunicate OK [19:47:40]SAM_PROTO_GetFieldsCounters done [19:47:40]requested_item shift.num is exist - process it [19:47:40]requested_item shift.opened is exist - process it [19:47:40]req_shift_opened [19:47:40]FM_GetShiftState [19:47:40]SAM_PROTO_GetShiftState [19:47:40]wFMCommunicate request_size=4 [19:47:40]MH_SAM_APDU [19:47:40]CAPDU: 80 13 01 00 [19:47:40]Write to MH i2c: E2 08 00 B9 1A 80 13 01 00 00 00 00 00 50 [19:47:40]Write i2c OK [19:47:40]MH_I2C_Read... [19:47:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:40]Read from MH i2c: E2 [19:47:40]MH_I2C_Read... [19:47:40]Read from MH i2c: E2 0E 00 [19:47:40]MH_I2C_Read... [19:47:40]Read from MH i2c: E2 0E 00 B9 1A 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 DD [19:47:40]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [19:47:40]wFMCommunicate OK [19:47:40]SAM_PROTO_GetShiftState done [19:47:40]FM_GetShiftState done [19:47:40]req_shift_opened done [19:47:40]requested_item shift.open_date is exist - process it [19:47:40]req_shift_open_date [19:47:40]req_shift_open_date done [19:47:40]produce_requested_data done [19:47:40]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118277,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [19:47:40]process_action_free close_receipt [19:47:40]json_value_free [19:47:40]json_value_free done [19:47:40]process_json_proto returns [19:47:40]Send response to host [19:47:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118277,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [19:47:40]free response buf [19:47:40]execute_script done [19:47:40]execute_script returns [19:47:40]free content buf [19:47:40]Sock 9.Close socket [19:47:40]Sock 9.Thread stoped [19:47:44]OFD Sender: No OFD packet to send [19:47:49]OFD Sender: No OFD packet to send [19:47:54]OFD Sender: No OFD packet to send [19:47:59]OFD Sender: No OFD packet to send [19:48:04]OFD Sender: No OFD packet to send [19:48:09]OFD Sender: No OFD packet to send [19:48:14]OFD Sender: No OFD packet to send [19:48:19]OFD Sender: No OFD packet to send [19:48:24]OFD Sender: No OFD packet to send [19:48:29]OFD Sender: No OFD packet to send [19:48:34]OFD Sender: No OFD packet to send [19:48:39]OFD Sender: No OFD packet to send [19:48:44]OFD Sender: No OFD packet to send [19:48:49]OFD Sender: No OFD packet to send [19:48:54]OFD Sender: No OFD packet to send [19:48:59]OFD Sender: No OFD packet to send [19:49:04]OFD Sender: No OFD packet to send [19:49:09]OFD Sender: No OFD packet to send [19:49:14]OFD Sender: No OFD packet to send [19:49:19]OFD Sender: No OFD packet to send [19:49:23]accept exits with 7 [19:49:23]New connection [19:49:23]New thread 3067096420 created [19:49:23]Thread 3066953060 joined [19:49:23]Waiting for new connection... [19:49:23] Sock 7.Parse request [19:49:23]Sock 7.Check first char [19:49:23]Sock 7.First char is OK [19:49:23]request: POST /json_proto HTTP/1.0 [19:49:23]Method: POST [19:49:23]URL: /json_proto [19:49:23]Method is POST - this is cgi request [19:49:23]url: /json_proto [19:49:23]query_string will be loaded in cgi processing [19:49:23]execute_cgi json_proto POST (null) [19:49:23]execute_cgi path=json_proto method=POST [19:49:23]POST find Content-Length [19:49:23]Host: 172.17.45.7:8080 [19:49:23]Content-Length: 677 [19:49:23]Content-Type: application/json [19:49:23] [19:49:23]POST finish read [19:49:23]Found Content-Length = 677 [19:49:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:49:23]execute_script... [19:49: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)949151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:49:23]POST & json_proto [19:49:23]process_json_proto [19:49:23]json parsed OK: [19:49:23]protocol is kg_v1.0 [19:49:23]action value=close_receipt [19:49:23]process_action close_receipt [19:49:23]cmd_close_receipt [19:49:23]MH_GetDate [19:49:23]Write to MH i2c: F0 00 00 BA 1A C3 [19:49:23]Write i2c OK [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: F0 [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: F0 09 00 [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: F0 09 00 BA 1A 00 44 4F A5 66 90 0F 3E 66 AD [19:49:23]GetLastDocTimeStamp 1722109657 [19:49:23]current date 1722109764 [19:49:23]FM_GetShiftState [19:49:23]SAM_PROTO_GetShiftState [19:49:23]wFMCommunicate request_size=4 [19:49:23]MH_SAM_APDU [19:49:23]CAPDU: 80 13 01 00 [19:49:23]Write to MH i2c: E2 08 00 BB 1A 80 13 01 00 00 00 00 00 52 [19:49:23]Write i2c OK [19:49:23]MH_I2C_Read... [19:49:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:23]Read from MH i2c: E2 [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: E2 0E 00 [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: E2 0E 00 BB 1A 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 DF [19:49:23]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [19:49:23]wFMCommunicate OK [19:49:23]SAM_PROTO_GetShiftState done [19:49:23]FM_GetShiftState done [19:49:23]opened in 1722038845 [19:49:23]opened+sec_in_day 1722125245 [19:49:23]quantity*price = 50036 [19:49:23]sum+1 = 50037 [19:49:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 221 27.07.2024 19:49 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118278 ФПД: 167748736362477 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T194924&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118278&fm=167748736362477&tin=02508201610067®Number=0000000000092660&sum=50000 [19:49:24]StoreToDocumentArchive [19:49:24]shift 432 fd 118278 [19:49:24]save to /storage/0432/doc_00118278 [19:49:24]save last doc name /storage/0432/doc_00118278 to /storage/kkm_last_doc_name [19:49:24]save OK [19:49:24]Clear old archive folders... [19:49:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:49:24]tlvbuf is 01E1DAD0 [19:49:24]SAM_PROTO_ClearQueue [19:49:24]wFMCommunicate request_size=4 [19:49:24]MH_SAM_APDU [19:49:24]CAPDU: 80 09 00 00 [19:49:24]Write to MH i2c: E2 08 00 C8 1A 80 09 00 00 00 00 00 00 54 [19:49:24]Write i2c OK [19:49:24]MH_I2C_Read... [19:49:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:49:24]Read from MH i2c: E2 [19:49:24]MH_I2C_Read... [19:49:24]Read from MH i2c: E2 03 00 [19:49:24]MH_I2C_Read... [19:49:24]Read from MH i2c: E2 03 00 C8 1A 00 90 00 56 [19:49:24]RAPDU: 90 00 [19:49:24]wFMCommunicate OK [19:49:24]SAM_PROTO_ClearQueue done [19:49:24]KKMCreateOFDPacket [19:49:24]OFDProtocolAddRootSTLVToBuf [19:49:24]FM_MakeSignedData [19:49:24]FM_MakeSignedData [19:49:24]SAM_PROTO_SignData [19:49:24]wFMCommunicate request_size=4 [19:49:24]MH_SAM_APDU [19:49:24]CAPDU: 80 0D 01 02 [19:49:24]Write to MH i2c: E2 08 00 C9 1A 80 0D 01 02 00 00 00 00 5C [19:49:24]Write i2c OK [19:49:24]MH_I2C_Read... [19:49:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:49:24]Read from MH i2c: E2 [19:49:24]MH_I2C_Read... [19:49:24]Read from MH i2c: E2 03 00 [19:49:24]MH_I2C_Read... [19:49:24]Read from MH i2c: E2 03 00 C9 1A 00 90 00 57 [19:49:24]RAPDU: 90 00 [19:49:24]wFMCommunicate OK [19:49:24]wFMCommunicate request_size=255 [19:49:24]MH_SAM_APDU [19:49: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 DD 00 00 00 F4 03 04 00 44 4F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 06 CE 01 00 35 04 06 00 98 [19:49:24]Write to MH i2c: E2 02 01 CA 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 DD 00 00 00 F4 03 04 00 44 4F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 06 CE 01 00 35 04 06 00 98 00 00 79 [19:49:24]Write i2c OK [19:49:24]MH_I2C_Read... [19:49:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:25]Read from MH i2c: E2 [19:49:25]MH_I2C_Read... [19:49:25]Read from MH i2c: E2 03 00 [19:49:25]MH_I2C_Read... [19:49:25]Read from MH i2c: E2 03 00 CA 1A 00 90 00 58 [19:49:25]RAPDU: 90 00 [19:49:25]wFMCommunicate OK [19:49:25]wFMCommunicate request_size=10 [19:49:25]MH_SAM_APDU [19:49:25]CAPDU: 80 0D 02 02 05 91 0B D7 A7 ED [19:49:25]Write to MH i2c: E2 0D 00 CB 1A 80 0D 02 02 05 00 91 0B D7 A7 ED 00 00 70 [19:49:25]Write i2c OK [19:49:25]MH_I2C_Read... [19:49:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:25]Read from MH i2c: E2 [19:49:25]MH_I2C_Read... [19:49:25]Read from MH i2c: E2 03 00 [19:49:25]MH_I2C_Read... [19:49:25]Read from MH i2c: E2 03 00 CB 1A 00 90 00 59 [19:49:25]RAPDU: 90 00 [19:49:25]wFMCommunicate OK [19:49:25]wFMCommunicate request_size=4 [19:49:25]MH_SAM_APDU [19:49:25]CAPDU: 80 0D 03 02 [19:49:25]Write to MH i2c: E2 08 00 CC 1A 80 0D 03 02 00 00 00 00 61 [19:49:25]Write i2c OK [19:49:25]MH_I2C_Read... [19:49:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:49:25]Read from MH i2c: E2 [19:49:25]MH_I2C_Read... [19:49:25]Read from MH i2c: E2 0B 00 [19:49:25]MH_I2C_Read... [19:49:25]Read from MH i2c: E2 0B 00 CC 1A 00 47 56 85 EF 51 E4 CF 12 90 00 89 [19:49:25]RAPDU: 47 56 85 EF 51 E4 CF 12 90 00 [19:49:25]wFMCommunicate OK [19:49:25]SAM_PROTO_SignData done [19:49:25]FM_MakeSignedData done [19:49:25]CreateOFDProtocolMessage [19:49:25]wFMCommunicate request_size=4 [19:49:25]MH_SAM_APDU [19:49:25]CAPDU: 80 11 00 00 [19:49:25]Write to MH i2c: E2 08 00 CD 1A 80 11 00 00 00 00 00 00 61 [19:49:25]Write i2c OK [19:49:25]MH_I2C_Read... [19:49:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:25]Read from MH i2c: E2 [19:49:25]MH_I2C_Read... [19:49:25]Read from MH i2c: E2 17 00 [19:49:25]MH_I2C_Read... [19:49:25]Read from MH i2c: E2 17 00 CD 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BC [19:49:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:49:25]wFMCommunicate OK [19:49:25]CreateOFDProtocolMessage done [19:49:25]OFDSenderStorePacket 118278 [19:49:25]StoreOFDPacket docnum=118278 [19:49:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A8 47 07 01 D0 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 DD 00 00 00 F4 03 04 00 44 4F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 06 CE 01 00 35 04 06 00 98 91 0B D7 A7 ED 47 56 85 EF 51 E4 CF 12 [19:49:25]CheckFolder [19:49:25]dirname=/storage/ofd_packets [19:49:25]CheckFolder done [19:49:25]ProducePacketName [19:49:25]name=ofd_packets/00118278 [19:49:25]NVStorageSaveData ofd_packets/00118278 [19:49:25]File name is /storage/ofd_packets/00118278 [19:49:25]Write 301 bytes [19:49:25]NVStorageSaveData done [19:49:25]OFDSenderStorePacket done [19:49:25]KKMCreateOFDPacket done [19:49:25]NVStorageSaveData kkm_last_timestamp [19:49:25]File name is /storage/kkm_last_timestamp [19:49:25]Write 4 bytes [19:49:25]NVStorageSaveData done [19:49:25]ExternCall_PrintAddStr [19:49:25]wPrintStart [19:49:25]Write to MH i2c: 01 00 00 CE 1A E8 [19:49:25]Write i2c OK [19:49:25]MH_I2C_Read... [19:49:25]Read from MH i2c: 01 [19:49:25]MH_I2C_Read... [19:49:25]Read from MH i2c: 01 07 00 [19:49:25]MH_I2C_Read... [19:49:25]Read from MH i2c: 01 07 00 CE 1A 00 00 00 00 00 FF 0F FD [19:49:25]RasterBufferAndPrint [19:49:25]line Счет N : (1)949151 [19:49:25]line ИНН: 02508201610067 [19:49:25]line Контрольно-Кассовый Чек [19:49:25]line ПРОДАЖА [19:49:25]line ТРК (МРК, ГНК) : 41 [19:49:25]line Товар: 2710124130 [19:49:25]line Аи-92-К-4 [19:49:25]line 7.380 * 67.80 [19:49:25]line = 500.36 [19:49:25]line НДС 12% НСП 1% [19:49:25]line > о реализуемом товаре [19:49:25]line ОКРУГЛЕНИЕ: -0.36 [19:49:25]line ИТОГО: 500.00 [19:49:25]line Внесено: 500.00 [19:49:25]line СДАЧА: 0.00 [19:49:25]line НСП 1% : 4.43 [19:49:25]line НДС 12% : 53.14 [19:49:25]line Наличными: 500.00 [19:49:25]line Безнал.: 0.00 [19:49:25]line Место: АЗС № 134 "Партнер Нефть" [19:49:25]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:49:25]line СНО: Общий режим [19:49:25]line Чек 221 27.07.2024 19:49 [19:49:25]line Смена: 432 ФФД: 1.0 [19:49:25]line ЗНМ: 0300000044 [19:49:25]line РНМ: 0000000000092660 [19:49:25]line Версия ККМ: 001 [19:49:25]line ФМ: 0000000000874939 [19:49:25]line ФД: 118278 [19:49:25]line ФПД: 167748736362477 [19:49:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T194924&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118278&fm=167748736362477&tin=02508201610067®Number=0000000000092660&sum=50000 [19:49:25]written 0, free lines is 4095 [19:49:25]OFD Sender: Processing packet 118278 [packets to send 86, broken 85] [19:49:25]ProducePacketName [19:49:25]name=ofd_packets/00118278 [19:49:25]OFD Sender: To server: pG, [19:49:25]CommunicateWithHost lk.salyk.kg:30040 [19:49:25]ConnectInit lk.salyk.kg [19:49:25]Connected sock=10 [19:49:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A8 47 07 01 D0 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 DD 00 00 00 F4 03 04 00 44 4F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 06 CE 01 00 35 04 06 00 98 91 0B D7 A7 ED 47 56 85 EF 51 E4 CF 12 [19:49:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 1F D1 47 00 F5 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 34 39 33 39 10 04 04 00 06 CE 01 00 F4 03 04 00 D6 FC A4 66 B6 04 01 00 00 51 1D 05 15 82 3C BC 72 [19:49:25]CommunicateWithHost err = 0 [19:49:25]CheckOFDResponse [19:49:25]1017 (14) - 77093643461234 [19:49:25]1041 (16) - 0000000000874939 [19:49:25]1040 (4) - 118278 [19:49:25]1012 (4) - 27.07.2024 13:57 [19:49:25]1206 (1) - 0 [19:49:25]OFD Sender: Remove packet 118278 [19:49:25]ProducePacketName [19:49:25]name=ofd_packets/00118278 [19:49:25]NVStorageDeleteData [19:49:25]Write to MH i2c: 01 00 00 F8 1A 12 [19:49:25]Write i2c OK [19:49:25]MH_I2C_Read... [19:49:25]Read from MH i2c: 01 [19:49:25]MH_I2C_Read... [19:49:25]Read from MH i2c: 01 07 00 [19:49:25]MH_I2C_Read... [19:49:25]Read from MH i2c: 01 07 00 F8 1A 00 00 00 00 00 EB 0C 10 [19:49:25]RasterBufferAndPrint [19:49:25]line [19:49:25]line [19:49:25]line [19:49:25]line [19:49:25]line [19:49:25]written 0, free lines is 3313 [19:49:25]MH_Cut [19:49:25]Write to MH i2c: D1 01 00 FF 1A 01 EB [19:49:25]Write i2c OK [19:49:25]MH_I2C_Read... [19:49:25]Read from MH i2c: D1 [19:49:25]MH_I2C_Read... [19:49:25]Read from MH i2c: D1 01 00 [19:49:25]MH_I2C_Read... [19:49:25]Read from MH i2c: D1 01 00 FF 1A 00 EA [19:49:25]Write to MH i2c: 01 00 00 00 1B 1B [19:49:25]Write i2c OK [19:49:25]MH_I2C_Read... [19:49:26]OFD Sender: No OFD packet to send [19:49:26]*** Cut start [19:49:26]*** Partial cut [19:49:26]*** CUTSNS_PIN = 1 [19:49:26]*** CUTSNS_PIN = 0 [19:49:26]*** Brake cut motor [19:49:27]Read from MH i2c: 01 [19:49:27]MH_I2C_Read... [19:49:27]*** Stop cut motor [19:49:27]*** Cut end [19:49:27]Read from MH i2c: 01 07 00 [19:49:27]MH_I2C_Read... [19:49:27]Read from MH i2c: 01 07 00 00 1B 00 00 00 00 00 FF 0F 30 [19:49:27]process_action close_receipt done [19:49:27]requested_data is exist [19:49:27]produce_requested_data [19:49:27]requested_item fm.sn is exist - process it [19:49:27]wFMCommunicate request_size=4 [19:49:27]MH_SAM_APDU [19:49:27]CAPDU: 80 11 00 00 [19:49:27]Write to MH i2c: E2 08 00 01 1B 80 11 00 00 00 00 00 00 96 [19:49:27]Write i2c OK [19:49:27]MH_I2C_Read... [19:49:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:27]Read from MH i2c: E2 [19:49:27]MH_I2C_Read... [19:49:27]Read from MH i2c: E2 17 00 [19:49:27]MH_I2C_Read... [19:49:27]Read from MH i2c: E2 17 00 01 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F1 [19:49:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:49:27]wFMCommunicate OK [19:49:27]requested_item fd.num is exist - process it [19:49:27]SAM_PROTO_GetFieldsCounters [19:49:27]wFMCommunicate request_size=4 [19:49:27]MH_SAM_APDU [19:49:27]CAPDU: 80 13 00 00 [19:49:27]Write to MH i2c: E2 08 00 02 1B 80 13 00 00 00 00 00 00 99 [19:49:27]Write i2c OK [19:49:27]MH_I2C_Read... [19:49:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:49:27]Read from MH i2c: E2 [19:49:27]MH_I2C_Read... [19:49:27]Read from MH i2c: E2 62 00 [19:49:27]MH_I2C_Read... [19:49:27]Read from MH i2c: E2 62 00 02 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 06 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [19:49:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 06 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:49:27]wFMCommunicate OK [19:49:27]SAM_PROTO_GetFieldsCounters done [19:49:27]requested_item shift.num is exist - process it [19:49:27]requested_item shift.opened is exist - process it [19:49:27]req_shift_opened [19:49:27]FM_GetShiftState [19:49:27]SAM_PROTO_GetShiftState [19:49:27]wFMCommunicate request_size=4 [19:49:27]MH_SAM_APDU [19:49:27]CAPDU: 80 13 01 00 [19:49:27]Write to MH i2c: E2 08 00 03 1B 80 13 01 00 00 00 00 00 9B [19:49:27]Write i2c OK [19:49:27]MH_I2C_Read... [19:49:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:27]Read from MH i2c: E2 [19:49:27]MH_I2C_Read... [19:49:27]Read from MH i2c: E2 0E 00 [19:49:27]MH_I2C_Read... [19:49:27]Read from MH i2c: E2 0E 00 03 1B 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 28 [19:49:27]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [19:49:27]wFMCommunicate OK [19:49:27]SAM_PROTO_GetShiftState done [19:49:27]FM_GetShiftState done [19:49:27]req_shift_opened done [19:49:27]requested_item shift.open_date is exist - process it [19:49:27]req_shift_open_date [19:49:27]req_shift_open_date done [19:49:27]produce_requested_data done [19:49:27]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118278,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [19:49:27]process_action_free close_receipt [19:49:27]json_value_free [19:49:27]json_value_free done [19:49:27]process_json_proto returns [19:49:27]Send response to host [19:49:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118278,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [19:49:27]free response buf [19:49:27]execute_script done [19:49:27]execute_script returns [19:49:27]free content buf [19:49:27]Sock 7.Close socket [19:49:27]Sock 7.Thread stoped [19:49:31]OFD Sender: No OFD packet to send [19:49:36]OFD Sender: No OFD packet to send [19:49:41]OFD Sender: No OFD packet to send [19:49:46]OFD Sender: No OFD packet to send [19:49:51]OFD Sender: No OFD packet to send [19:49:56]OFD Sender: No OFD packet to send [19:50:01]OFD Sender: No OFD packet to send [19:50:06]OFD Sender: No OFD packet to send [19:50:11]OFD Sender: No OFD packet to send [19:50:16]OFD Sender: No OFD packet to send [19:50:21]OFD Sender: No OFD packet to send [19:50:26]OFD Sender: No OFD packet to send [19:50:31]OFD Sender: No OFD packet to send [19:50:36]OFD Sender: No OFD packet to send [19:50:41]OFD Sender: No OFD packet to send [19:50:46]OFD Sender: No OFD packet to send [19:50:51]OFD Sender: No OFD packet to send [19:50:56]OFD Sender: No OFD packet to send [19:51:01]OFD Sender: No OFD packet to send [19:51:06]OFD Sender: No OFD packet to send [19:51:11]OFD Sender: No OFD packet to send [19:51:16]OFD Sender: No OFD packet to send [19:51:21]OFD Sender: No OFD packet to send [19:51:22]accept exits with 9 [19:51:22]New connection [19:51:22]New thread 3066953060 created [19:51:22]Thread 3067096420 joined [19:51:22]Waiting for new connection... [19:51:22] Sock 9.Parse request [19:51:22]Sock 9.Check first char [19:51:22]Sock 9.First char is OK [19:51:22]request: POST /json_proto HTTP/1.0 [19:51:22]Method: POST [19:51:22]URL: /json_proto [19:51:22]Method is POST - this is cgi request [19:51:22]url: /json_proto [19:51:22]query_string will be loaded in cgi processing [19:51:22]execute_cgi json_proto POST (null) [19:51:22]execute_cgi path=json_proto method=POST [19:51:22]POST find Content-Length [19:51:22]Host: 172.17.45.7:8080 [19:51:22]Content-Length: 675 [19:51:22]Content-Type: application/json [19:51:22] [19:51:22]POST finish read [19:51:22]Found Content-Length = 675 [19:51:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:51:22]execute_script... [19:51: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)949152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:51:22]POST & json_proto [19:51:22]process_json_proto [19:51:22]json parsed OK: [19:51:22]protocol is kg_v1.0 [19:51:22]action value=close_receipt [19:51:22]process_action close_receipt [19:51:22]cmd_close_receipt [19:51:22]MH_GetDate [19:51:22]Write to MH i2c: F0 00 00 04 1B 0E [19:51:22]Write i2c OK [19:51:22]MH_I2C_Read... [19:51:22]Read from MH i2c: F0 [19:51:22]MH_I2C_Read... [19:51:22]Read from MH i2c: F0 09 00 [19:51:22]MH_I2C_Read... [19:51:22]Read from MH i2c: F0 09 00 04 1B 00 BB 4F A5 66 90 0F 3E 66 6F [19:51:22]GetLastDocTimeStamp 1722109764 [19:51:22]current date 1722109883 [19:51:22]FM_GetShiftState [19:51:22]SAM_PROTO_GetShiftState [19:51:22]wFMCommunicate request_size=4 [19:51:22]MH_SAM_APDU [19:51:22]CAPDU: 80 13 01 00 [19:51:22]Write to MH i2c: E2 08 00 05 1B 80 13 01 00 00 00 00 00 9D [19:51:22]Write i2c OK [19:51:22]MH_I2C_Read... [19:51:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:51:22]Read from MH i2c: E2 [19:51:22]MH_I2C_Read... [19:51:22]Read from MH i2c: E2 0E 00 [19:51:22]MH_I2C_Read... [19:51:22]Read from MH i2c: E2 0E 00 05 1B 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 2A [19:51:22]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [19:51:22]wFMCommunicate OK [19:51:22]SAM_PROTO_GetShiftState done [19:51:22]FM_GetShiftState done [19:51:22]opened in 1722038845 [19:51:22]opened+sec_in_day 1722125245 [19:51:22]quantity*price = 80010 [19:51:22]sum+1 = 80011 [19:51:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 222 27.07.2024 19:51 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118279 ФПД: 96634546878462 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T195124&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118279&fm=96634546878462&tin=02508201610067®Number=0000000000092660&sum=80000 [19:51:23]StoreToDocumentArchive [19:51:23]shift 432 fd 118279 [19:51:23]save to /storage/0432/doc_00118279 [19:51:23]save last doc name /storage/0432/doc_00118279 to /storage/kkm_last_doc_name [19:51:23]save OK [19:51:23]Clear old archive folders... [19:51:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:51:23]tlvbuf is 01E5B330 [19:51:23]SAM_PROTO_ClearQueue [19:51:23]wFMCommunicate request_size=4 [19:51:23]MH_SAM_APDU [19:51:23]CAPDU: 80 09 00 00 [19:51:23]Write to MH i2c: E2 08 00 12 1B 80 09 00 00 00 00 00 00 9F [19:51:23]Write i2c OK [19:51:23]MH_I2C_Read... [19:51:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:51:24]Read from MH i2c: E2 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: E2 03 00 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: E2 03 00 12 1B 00 90 00 A1 [19:51:24]RAPDU: 90 00 [19:51:24]wFMCommunicate OK [19:51:24]SAM_PROTO_ClearQueue done [19:51:24]KKMCreateOFDPacket [19:51:24]OFDProtocolAddRootSTLVToBuf [19:51:24]FM_MakeSignedData [19:51:24]FM_MakeSignedData [19:51:24]SAM_PROTO_SignData [19:51:24]wFMCommunicate request_size=4 [19:51:24]MH_SAM_APDU [19:51:24]CAPDU: 80 0D 01 02 [19:51:24]Write to MH i2c: E2 08 00 13 1B 80 0D 01 02 00 00 00 00 A7 [19:51:24]Write i2c OK [19:51:24]MH_I2C_Read... [19:51:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:51:24]Read from MH i2c: E2 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: E2 03 00 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: E2 03 00 13 1B 00 90 00 A2 [19:51:24]RAPDU: 90 00 [19:51:24]wFMCommunicate OK [19:51:24]wFMCommunicate request_size=255 [19:51:24]MH_SAM_APDU [19:51:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 BC 4F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 07 CE 01 00 35 04 06 00 57 E3 7B D6 [19:51:24]Write to MH i2c: E2 02 01 14 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 BC 4F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 07 CE 01 00 35 04 06 00 57 E3 7B D6 00 00 70 [19:51:24]Write i2c OK [19:51:24]MH_I2C_Read... [19:51:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:51:24]Read from MH i2c: E2 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: E2 03 00 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: E2 03 00 14 1B 00 90 00 A3 [19:51:24]RAPDU: 90 00 [19:51:24]wFMCommunicate OK [19:51:24]wFMCommunicate request_size=7 [19:51:24]MH_SAM_APDU [19:51:24]CAPDU: 80 0D 02 02 02 F7 FE [19:51:24]Write to MH i2c: E2 0A 00 15 1B 80 0D 02 02 02 00 F7 FE 00 00 A3 [19:51:24]Write i2c OK [19:51:24]MH_I2C_Read... [19:51:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:51:24]Read from MH i2c: E2 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: E2 03 00 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: E2 03 00 15 1B 00 90 00 A4 [19:51:24]RAPDU: 90 00 [19:51:24]wFMCommunicate OK [19:51:24]wFMCommunicate request_size=4 [19:51:24]MH_SAM_APDU [19:51:24]CAPDU: 80 0D 03 02 [19:51:24]Write to MH i2c: E2 08 00 16 1B 80 0D 03 02 00 00 00 00 AC [19:51:24]Write i2c OK [19:51:24]MH_I2C_Read... [19:51:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:51:24]Read from MH i2c: E2 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: E2 0B 00 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: E2 0B 00 16 1B 00 30 3C 42 FD 2A 99 A3 07 90 00 C5 [19:51:24]RAPDU: 30 3C 42 FD 2A 99 A3 07 90 00 [19:51:24]wFMCommunicate OK [19:51:24]SAM_PROTO_SignData done [19:51:24]FM_MakeSignedData done [19:51:24]CreateOFDProtocolMessage [19:51:24]wFMCommunicate request_size=4 [19:51:24]MH_SAM_APDU [19:51:24]CAPDU: 80 11 00 00 [19:51:24]Write to MH i2c: E2 08 00 17 1B 80 11 00 00 00 00 00 00 AC [19:51:24]Write i2c OK [19:51:24]MH_I2C_Read... [19:51:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:51:24]Read from MH i2c: E2 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: E2 17 00 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: E2 17 00 17 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 07 [19:51:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:51:24]wFMCommunicate OK [19:51:24]CreateOFDProtocolMessage done [19:51:24]OFDSenderStorePacket 118279 [19:51:24]StoreOFDPacket docnum=118279 [19:51:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 95 54 04 01 07 D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 BC 4F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 07 CE 01 00 35 04 06 00 57 E3 7B D6 F7 FE 30 3C 42 FD 2A 99 A3 07 [19:51:24]CheckFolder [19:51:24]dirname=/storage/ofd_packets [19:51:24]CheckFolder done [19:51:24]ProducePacketName [19:51:24]name=ofd_packets/00118279 [19:51:24]NVStorageSaveData ofd_packets/00118279 [19:51:24]File name is /storage/ofd_packets/00118279 [19:51:24]Write 298 bytes [19:51:24]NVStorageSaveData done [19:51:24]OFDSenderStorePacket done [19:51:24]KKMCreateOFDPacket done [19:51:24]NVStorageSaveData kkm_last_timestamp [19:51:24]File name is /storage/kkm_last_timestamp [19:51:24]Write 4 bytes [19:51:24]NVStorageSaveData done [19:51:24]ExternCall_PrintAddStr [19:51:24]wPrintStart [19:51:24]Write to MH i2c: 01 00 00 18 1B 33 [19:51:24]Write i2c OK [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: 01 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: 01 07 00 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: 01 07 00 18 1B 00 00 00 00 00 FF 0F 48 [19:51:24]RasterBufferAndPrint [19:51:24]line Счет N : (1)949152 [19:51:24]line ИНН: 02508201610067 [19:51:24]line Контрольно-Кассовый Чек [19:51:24]line ПРОДАЖА [19:51:24]line ТРК (МРК, ГНК) : 21 [19:51:24]line Товар: 2710194800 [19:51:24]line ДТ-К-5 [19:51:24]line 10.500 * 76.20 [19:51:24]line = 800.10 [19:51:24]line НДС 12% НСП 1% [19:51:24]line > о реализуемом товаре [19:51:24]line ОКРУГЛЕНИЕ: -0.10 [19:51:24]line ИТОГО: 800.00 [19:51:24]line Внесено: 800.00 [19:51:24]line СДАЧА: 0.00 [19:51:24]line НСП 1% : 7.08 [19:51:24]line НДС 12% : 84.97 [19:51:24]line Наличными: 800.00 [19:51:24]line Безнал.: 0.00 [19:51:24]line Место: АЗС № 134 "Партнер Нефть" [19:51:24]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:51:24]line СНО: Общий режим [19:51:24]line Чек 222 27.07.2024 19:51 [19:51:24]line Смена: 432 ФФД: 1.0 [19:51:24]line ЗНМ: 0300000044 [19:51:24]line РНМ: 0000000000092660 [19:51:24]line Версия ККМ: 001 [19:51:24]line ФМ: 0000000000874939 [19:51:24]line ФД: 118279 [19:51:24]line ФПД: 96634546878462 [19:51:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T195124&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118279&fm=96634546878462&tin=02508201610067®Number=0000000000092660&sum=80000 [19:51:24]OFD Sender: Processing packet 118279 [packets to send 86, broken 85] [19:51:24]ProducePacketName [19:51:24]name=ofd_packets/00118279 [19:51:24]OFD Sender: To server: pG, [19:51:24]CommunicateWithHost lk.salyk.kg:30040 [19:51:24]ConnectInit lk.salyk.kg [19:51:24]written 0, free lines is 4095 [19:51:24]Connected sock=10 [19:51:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 95 54 04 01 07 D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 BC 4F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 07 CE 01 00 35 04 06 00 57 E3 7B D6 F7 FE 30 3C 42 FD 2A 99 A3 07 [19:51:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 50 E5 47 00 D4 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 07 CE 01 00 F4 03 04 00 4E FD A4 66 B6 04 01 00 00 DC 5D 78 D4 ED 9F 13 B9 [19:51:25]CommunicateWithHost err = 0 [19:51:25]CheckOFDResponse [19:51:25]1017 (14) - 77093643461234 [19:51:25]1041 (16) - 0000000000874939 [19:51:25]1040 (4) - 118279 [19:51:25]1012 (4) - 27.07.2024 13:59 [19:51:25]1206 (1) - 0 [19:51:25]OFD Sender: Remove packet 118279 [19:51:25]ProducePacketName [19:51:25]name=ofd_packets/00118279 [19:51:25]NVStorageDeleteData [19:51:25]Write to MH i2c: 01 00 00 42 1B 5D [19:51:25]Write i2c OK [19:51:25]MH_I2C_Read... [19:51:25]Read from MH i2c: 01 [19:51:25]MH_I2C_Read... [19:51:25]Read from MH i2c: 01 07 00 [19:51:25]MH_I2C_Read... [19:51:25]Read from MH i2c: 01 07 00 42 1B 00 00 00 00 00 E5 0C 55 [19:51:25]RasterBufferAndPrint [19:51:25]line [19:51:25]line [19:51:25]line [19:51:25]line [19:51:25]line [19:51:25]written 0, free lines is 3307 [19:51:25]MH_Cut [19:51:25]Write to MH i2c: D1 01 00 49 1B 01 36 [19:51:25]Write i2c OK [19:51:25]MH_I2C_Read... [19:51:25]Read from MH i2c: D1 [19:51:25]MH_I2C_Read... [19:51:25]Read from MH i2c: D1 01 00 [19:51:25]MH_I2C_Read... [19:51:25]Read from MH i2c: D1 01 00 49 1B 00 35 [19:51:25]Write to MH i2c: 01 00 00 4A 1B 65 [19:51:25]Write i2c OK [19:51:25]MH_I2C_Read... [19:51:25]OFD Sender: No OFD packet to send [19:51:26]*** Cut start [19:51:26]*** Partial cut [19:51:26]*** CUTSNS_PIN = 1 [19:51:26]*** CUTSNS_PIN = 0 [19:51:26]*** Brake cut motor [19:51:26]Read from MH i2c: 01 [19:51:26]MH_I2C_Read... [19:51:26]*** Stop cut motor [19:51:26]*** Cut end [19:51:26]Read from MH i2c: 01 07 00 [19:51:26]MH_I2C_Read... [19:51:26]Read from MH i2c: 01 07 00 4A 1B 00 00 00 00 00 FF 0F 7A [19:51:26]process_action close_receipt done [19:51:26]requested_data is exist [19:51:26]produce_requested_data [19:51:26]requested_item fm.sn is exist - process it [19:51:26]wFMCommunicate request_size=4 [19:51:26]MH_SAM_APDU [19:51:26]CAPDU: 80 11 00 00 [19:51:26]Write to MH i2c: E2 08 00 4B 1B 80 11 00 00 00 00 00 00 E0 [19:51:26]Write i2c OK [19:51:26]MH_I2C_Read... [19:51:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:51:26]Read from MH i2c: E2 [19:51:26]MH_I2C_Read... [19:51:26]Read from MH i2c: E2 17 00 [19:51:26]MH_I2C_Read... [19:51:26]Read from MH i2c: E2 17 00 4B 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3B [19:51:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:51:26]wFMCommunicate OK [19:51:26]requested_item fd.num is exist - process it [19:51:26]SAM_PROTO_GetFieldsCounters [19:51:26]wFMCommunicate request_size=4 [19:51:26]MH_SAM_APDU [19:51:26]CAPDU: 80 13 00 00 [19:51:26]Write to MH i2c: E2 08 00 4C 1B 80 13 00 00 00 00 00 00 E3 [19:51:26]Write i2c OK [19:51:26]MH_I2C_Read... [19:51:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:51:26]Read from MH i2c: E2 [19:51:26]MH_I2C_Read... [19:51:26]Read from MH i2c: E2 62 00 [19:51:26]MH_I2C_Read... [19:51:26]Read from MH i2c: E2 62 00 4C 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 07 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [19:51:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 07 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:51:26]wFMCommunicate OK [19:51:26]SAM_PROTO_GetFieldsCounters done [19:51:26]requested_item shift.num is exist - process it [19:51:26]requested_item shift.opened is exist - process it [19:51:26]req_shift_opened [19:51:26]FM_GetShiftState [19:51:26]SAM_PROTO_GetShiftState [19:51:26]wFMCommunicate request_size=4 [19:51:26]MH_SAM_APDU [19:51:26]CAPDU: 80 13 01 00 [19:51:26]Write to MH i2c: E2 08 00 4D 1B 80 13 01 00 00 00 00 00 E5 [19:51:26]Write i2c OK [19:51:26]MH_I2C_Read... [19:51:26]Read from MH i2c: E2 [19:51:26]MH_I2C_Read... [19:51:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:51:26]Read from MH i2c: E2 0E 00 [19:51:26]MH_I2C_Read... [19:51:26]Read from MH i2c: E2 0E 00 4D 1B 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 72 [19:51:26]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [19:51:26]wFMCommunicate OK [19:51:26]SAM_PROTO_GetShiftState done [19:51:26]FM_GetShiftState done [19:51:26]req_shift_opened done [19:51:26]requested_item shift.open_date is exist - process it [19:51:26]req_shift_open_date [19:51:26]req_shift_open_date done [19:51:26]produce_requested_data done [19:51:26]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118279,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [19:51:26]process_action_free close_receipt [19:51:26]json_value_free [19:51:26]json_value_free done [19:51:26]process_json_proto returns [19:51:26]Send response to host [19:51:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118279,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [19:51:26]free response buf [19:51:26]execute_script done [19:51:26]execute_script returns [19:51:26]free content buf [19:51:26]Sock 9.Close socket [19:51:26]Sock 9.Thread stoped [19:51:30]OFD Sender: No OFD packet to send [19:51:35]OFD Sender: No OFD packet to send [19:51:40]OFD Sender: No OFD packet to send [19:51:45]OFD Sender: No OFD packet to send [19:51:50]OFD Sender: No OFD packet to send [19:51:55]OFD Sender: No OFD packet to send [19:52:00]OFD Sender: No OFD packet to send [19:52:05]OFD Sender: No OFD packet to send [19:52:10]OFD Sender: No OFD packet to send [19:52:15]OFD Sender: No OFD packet to send [19:52:20]OFD Sender: No OFD packet to send [19:52:25]OFD Sender: No OFD packet to send [19:52:30]OFD Sender: No OFD packet to send [19:52:34]accept exits with 7 [19:52:34]New connection [19:52:34]New thread 3067096420 created [19:52:34]Thread 3066953060 joined [19:52:34]Waiting for new connection... [19:52:34] Sock 7.Parse request [19:52:34]Sock 7.Check first char [19:52:34]Sock 7.First char is OK [19:52:34]request: POST /json_proto HTTP/1.0 [19:52:34]Method: POST [19:52:34]URL: /json_proto [19:52:34]Method is POST - this is cgi request [19:52:34]url: /json_proto [19:52:34]query_string will be loaded in cgi processing [19:52:34]execute_cgi json_proto POST (null) [19:52:34]execute_cgi path=json_proto method=POST [19:52:34]POST find Content-Length [19:52:34]Host: 172.17.45.7:8080 [19:52:34]Content-Length: 679 [19:52:34]Content-Type: application/json [19:52:34] [19:52:34]POST finish read [19:52:34]Found Content-Length = 679 [19:52:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:34]execute_script... [19:52: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)949154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:34]POST & json_proto [19:52:34]process_json_proto [19:52:34]json parsed OK: [19:52:34]protocol is kg_v1.0 [19:52:34]action value=close_receipt [19:52:34]process_action close_receipt [19:52:34]cmd_close_receipt [19:52:34]MH_GetDate [19:52:34]Write to MH i2c: F0 00 00 4E 1B 58 [19:52:34]Write i2c OK [19:52:34]MH_I2C_Read... [19:52:34]Read from MH i2c: F0 [19:52:34]MH_I2C_Read... [19:52:34]Read from MH i2c: F0 09 00 [19:52:34]MH_I2C_Read... [19:52:34]Read from MH i2c: F0 09 00 4E 1B 00 03 50 A5 66 90 0F 3E 66 02 [19:52:34]GetLastDocTimeStamp 1722109884 [19:52:34]current date 1722109955 [19:52:34]FM_GetShiftState [19:52:34]SAM_PROTO_GetShiftState [19:52:34]wFMCommunicate request_size=4 [19:52:34]MH_SAM_APDU [19:52:34]CAPDU: 80 13 01 00 [19:52:34]Write to MH i2c: E2 08 00 4F 1B 80 13 01 00 00 00 00 00 E7 [19:52:34]Write i2c OK [19:52:34]MH_I2C_Read... [19:52:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:34]Read from MH i2c: E2 [19:52:34]MH_I2C_Read... [19:52:34]Read from MH i2c: E2 0E 00 [19:52:34]MH_I2C_Read... [19:52:34]Read from MH i2c: E2 0E 00 4F 1B 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 74 [19:52:34]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [19:52:34]wFMCommunicate OK [19:52:34]SAM_PROTO_GetShiftState done [19:52:34]FM_GetShiftState done [19:52:34]opened in 1722038845 [19:52:34]opened+sec_in_day 1722125245 [19:52:34]quantity*price = 100050 [19:52:34]sum+1 = 100052 [19:52:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 223 27.07.2024 19:52 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118280 ФПД: 28116001195176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T195235&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118280&fm=28116001195176&tin=02508201610067®Number=0000000000092660&sum=100000 [19:52:35]StoreToDocumentArchive [19:52:35]shift 432 fd 118280 [19:52:35]save to /storage/0432/doc_00118280 [19:52:35]save last doc name /storage/0432/doc_00118280 to /storage/kkm_last_doc_name [19:52:35]save OK [19:52:35]Clear old archive folders... [19:52:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:52:35]tlvbuf is 01E21730 [19:52:35]SAM_PROTO_ClearQueue [19:52:35]wFMCommunicate request_size=4 [19:52:35]MH_SAM_APDU [19:52:35]CAPDU: 80 09 00 00 [19:52:35]Write to MH i2c: E2 08 00 5C 1B 80 09 00 00 00 00 00 00 E9 [19:52:35]Write i2c OK [19:52:35]MH_I2C_Read... [19:52:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:52:35]Read from MH i2c: E2 [19:52:35]MH_I2C_Read... [19:52:35]Read from MH i2c: E2 03 00 [19:52:35]MH_I2C_Read... [19:52:35]Read from MH i2c: E2 03 00 5C 1B 00 90 00 EB [19:52:35]RAPDU: 90 00 [19:52:35]wFMCommunicate OK [19:52:35]SAM_PROTO_ClearQueue done [19:52:35]KKMCreateOFDPacket [19:52:35]OFDProtocolAddRootSTLVToBuf [19:52:35]FM_MakeSignedData [19:52:35]FM_MakeSignedData [19:52:35]SAM_PROTO_SignData [19:52:35]wFMCommunicate request_size=4 [19:52:35]MH_SAM_APDU [19:52:35]CAPDU: 80 0D 01 02 [19:52:35]Write to MH i2c: E2 08 00 5D 1B 80 0D 01 02 00 00 00 00 F1 [19:52:35]Write i2c OK [19:52:35]MH_I2C_Read... [19:52:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:52:35]Read from MH i2c: E2 [19:52:35]MH_I2C_Read... [19:52:35]Read from MH i2c: E2 03 00 [19:52:35]MH_I2C_Read... [19:52:35]Read from MH i2c: E2 03 00 5D 1B 00 90 00 EC [19:52:35]RAPDU: 90 00 [19:52:35]wFMCommunicate OK [19:52:35]wFMCommunicate request_size=255 [19:52:35]MH_SAM_APDU [19:52: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 03 50 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 08 CE 01 00 35 04 06 00 19 92 44 43 [19:52:35]Write to MH i2c: E2 02 01 5E 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 03 50 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 08 CE 01 00 35 04 06 00 19 92 44 43 00 00 78 [19:52:35]Write i2c OK [19:52:35]MH_I2C_Read... [19:52:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:36]Read from MH i2c: E2 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: E2 03 00 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: E2 03 00 5E 1B 00 90 00 ED [19:52:36]RAPDU: 90 00 [19:52:36]wFMCommunicate OK [19:52:36]wFMCommunicate request_size=7 [19:52:36]MH_SAM_APDU [19:52:36]CAPDU: 80 0D 02 02 02 84 A8 [19:52:36]Write to MH i2c: E2 0A 00 5F 1B 80 0D 02 02 02 00 84 A8 00 00 24 [19:52:36]Write i2c OK [19:52:36]MH_I2C_Read... [19:52:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:36]Read from MH i2c: E2 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: E2 03 00 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: E2 03 00 5F 1B 00 90 00 EE [19:52:36]RAPDU: 90 00 [19:52:36]wFMCommunicate OK [19:52:36]wFMCommunicate request_size=4 [19:52:36]MH_SAM_APDU [19:52:36]CAPDU: 80 0D 03 02 [19:52:36]Write to MH i2c: E2 08 00 60 1B 80 0D 03 02 00 00 00 00 F6 [19:52:36]Write i2c OK [19:52:36]MH_I2C_Read... [19:52:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:52:36]Read from MH i2c: E2 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: E2 0B 00 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: E2 0B 00 60 1B 00 69 4C 2A 68 0E 2A 05 7C 90 00 F7 [19:52:36]RAPDU: 69 4C 2A 68 0E 2A 05 7C 90 00 [19:52:36]wFMCommunicate OK [19:52:36]SAM_PROTO_SignData done [19:52:36]FM_MakeSignedData done [19:52:36]CreateOFDProtocolMessage [19:52:36]wFMCommunicate request_size=4 [19:52:36]MH_SAM_APDU [19:52:36]CAPDU: 80 11 00 00 [19:52:36]Write to MH i2c: E2 08 00 61 1B 80 11 00 00 00 00 00 00 F6 [19:52:36]Write i2c OK [19:52:36]MH_I2C_Read... [19:52:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:36]Read from MH i2c: E2 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: E2 17 00 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: E2 17 00 61 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 51 [19:52:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:52:36]wFMCommunicate OK [19:52:36]CreateOFDProtocolMessage done [19:52:36]OFDSenderStorePacket 118280 [19:52:36]StoreOFDPacket docnum=118280 [19:52:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 30 3D 04 01 6C 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 03 50 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 08 CE 01 00 35 04 06 00 19 92 44 43 84 A8 69 4C 2A 68 0E 2A 05 7C [19:52:36]CheckFolder [19:52:36]dirname=/storage/ofd_packets [19:52:36]CheckFolder done [19:52:36]ProducePacketName [19:52:36]name=ofd_packets/00118280 [19:52:36]NVStorageSaveData ofd_packets/00118280 [19:52:36]File name is /storage/ofd_packets/00118280 [19:52:36]Write 298 bytes [19:52:36]NVStorageSaveData done [19:52:36]OFDSenderStorePacket done [19:52:36]KKMCreateOFDPacket done [19:52:36]NVStorageSaveData kkm_last_timestamp [19:52:36]File name is /storage/kkm_last_timestamp [19:52:36]Write 4 bytes [19:52:36]NVStorageSaveData done [19:52:36]ExternCall_PrintAddStr [19:52:36]wPrintStart [19:52:36]Write to MH i2c: 01 00 00 62 1B 7D [19:52:36]Write i2c OK [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: 01 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: 01 07 00 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: 01 07 00 62 1B 00 00 00 00 00 FF 0F 92 [19:52:36]RasterBufferAndPrint [19:52:36]line Счет N : (1)949154 [19:52:36]line ИНН: 02508201610067 [19:52:36]line Контрольно-Кассовый Чек [19:52:36]line ПРОДАЖА [19:52:36]line ТРК (МРК, ГНК) : 34 [19:52:36]line Товар: 2710194800 [19:52:36]line ДТ-К-5 [19:52:36]line 13.130 * 76.20 [19:52:36]line = 1000.51 [19:52:36]line НДС 12% НСП 1% [19:52:36]line > о реализуемом товаре [19:52:36]line ОКРУГЛЕНИЕ: -0.51 [19:52:36]line ИТОГО: 1000.00 [19:52:36]line Внесено: 1000.00 [19:52:36]line СДАЧА: 0.00 [19:52:36]line НСП 1% : 8.85 [19:52:36]line НДС 12% : 106.25 [19:52:36]line Наличными: 1000.00 [19:52:36]line Безнал.: 0.00 [19:52:36]line Место: АЗС № 134 "Партнер Нефть" [19:52:36]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:52:36]line СНО: Общий режим [19:52:36]line Чек 223 27.07.2024 19:52 [19:52:36]line Смена: 432 ФФД: 1.0 [19:52:36]line ЗНМ: 0300000044 [19:52:36]line РНМ: 0000000000092660 [19:52:36]line Версия ККМ: 001 [19:52:36]line ФМ: 0000000000874939 [19:52:36]line ФД: 118280 [19:52:36]line ФПД: 28116001195176 [19:52:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T195235&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118280&fm=28116001195176&tin=02508201610067®Number=0000000000092660&sum=100000 [19:52:36]OFD Sender: Processing packet 118280 [packets to send 86, broken 85] [19:52:36]ProducePacketName [19:52:36]name=ofd_packets/00118280 [19:52:36]OFD Sender: To server: pG, [19:52:36]CommunicateWithHost lk.salyk.kg:30040 [19:52:36]ConnectInit lk.salyk.kg [19:52:36]written 0, free lines is 4095 [19:52:36]Connected sock=10 [19:52:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 30 3D 04 01 6C 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 03 50 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 08 CE 01 00 35 04 06 00 19 92 44 43 84 A8 69 4C 2A 68 0E 2A 05 7C [19:52:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A8 6C 47 00 8E 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 08 CE 01 00 F4 03 04 00 95 FD A4 66 B6 04 01 00 00 53 1E 0A 1E 64 E7 74 EE [19:52:36]CommunicateWithHost err = 0 [19:52:36]CheckOFDResponse [19:52:36]1017 (14) - 77093643461234 [19:52:36]1041 (16) - 0000000000874939 [19:52:36]1040 (4) - 118280 [19:52:36]1012 (4) - 27.07.2024 14:00 [19:52:36]1206 (1) - 0 [19:52:36]OFD Sender: Remove packet 118280 [19:52:36]ProducePacketName [19:52:36]name=ofd_packets/00118280 [19:52:36]NVStorageDeleteData [19:52:37]Write to MH i2c: 01 00 00 8C 1B A7 [19:52:37]Write i2c OK [19:52:37]MH_I2C_Read... [19:52:37]Read from MH i2c: 01 [19:52:37]MH_I2C_Read... [19:52:37]Read from MH i2c: 01 07 00 [19:52:37]MH_I2C_Read... [19:52:37]Read from MH i2c: 01 07 00 8C 1B 00 00 00 00 00 E3 0C 9D [19:52:37]RasterBufferAndPrint [19:52:37]line [19:52:37]line [19:52:37]line [19:52:37]line [19:52:37]line [19:52:37]written 0, free lines is 3305 [19:52:37]MH_Cut [19:52:37]Write to MH i2c: D1 01 00 93 1B 01 80 [19:52:37]Write i2c OK [19:52:37]MH_I2C_Read... [19:52:37]Read from MH i2c: D1 [19:52:37]MH_I2C_Read... [19:52:37]Read from MH i2c: D1 01 00 [19:52:37]MH_I2C_Read... [19:52:37]Read from MH i2c: D1 01 00 93 1B 00 7F [19:52:37]Write to MH i2c: 01 00 00 94 1B AF [19:52:37]Write i2c OK [19:52:37]MH_I2C_Read... [19:52:37]OFD Sender: No OFD packet to send [19:52:37]*** Cut start [19:52:37]*** Partial cut [19:52:37]*** CUTSNS_PIN = 1 [19:52:37]*** CUTSNS_PIN = 0 [19:52:38]*** Brake cut motor [19:52:38]Read from MH i2c: 01 [19:52:38]MH_I2C_Read... [19:52:38]*** Stop cut motor [19:52:38]*** Cut end [19:52:38]Read from MH i2c: 01 07 00 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: 01 07 00 94 1B 00 00 00 00 00 FF 0F C4 [19:52:38]process_action close_receipt done [19:52:38]requested_data is exist [19:52:38]produce_requested_data [19:52:38]requested_item fm.sn is exist - process it [19:52:38]wFMCommunicate request_size=4 [19:52:38]MH_SAM_APDU [19:52:38]CAPDU: 80 11 00 00 [19:52:38]Write to MH i2c: E2 08 00 95 1B 80 11 00 00 00 00 00 00 2A [19:52:38]Write i2c OK [19:52:38]MH_I2C_Read... [19:52:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:38]Read from MH i2c: E2 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 17 00 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 17 00 95 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 85 [19:52:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:52:38]wFMCommunicate OK [19:52:38]requested_item fd.num is exist - process it [19:52:38]SAM_PROTO_GetFieldsCounters [19:52:38]wFMCommunicate request_size=4 [19:52:38]MH_SAM_APDU [19:52:38]CAPDU: 80 13 00 00 [19:52:38]Write to MH i2c: E2 08 00 96 1B 80 13 00 00 00 00 00 00 2D [19:52:38]Write i2c OK [19:52:38]MH_I2C_Read... [19:52:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:52:38]Read from MH i2c: E2 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 62 00 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 62 00 96 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 08 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [19:52:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 08 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:52:38]wFMCommunicate OK [19:52:38]SAM_PROTO_GetFieldsCounters done [19:52:38]requested_item shift.num is exist - process it [19:52:38]requested_item shift.opened is exist - process it [19:52:38]req_shift_opened [19:52:38]FM_GetShiftState [19:52:38]SAM_PROTO_GetShiftState [19:52:38]wFMCommunicate request_size=4 [19:52:38]MH_SAM_APDU [19:52:38]CAPDU: 80 13 01 00 [19:52:38]Write to MH i2c: E2 08 00 97 1B 80 13 01 00 00 00 00 00 2F [19:52:38]Write i2c OK [19:52:38]MH_I2C_Read... [19:52:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:38]Read from MH i2c: E2 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 0E 00 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 0E 00 97 1B 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 BC [19:52:38]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [19:52:38]wFMCommunicate OK [19:52:38]SAM_PROTO_GetShiftState done [19:52:38]FM_GetShiftState done [19:52:38]req_shift_opened done [19:52:38]requested_item shift.open_date is exist - process it [19:52:38]req_shift_open_date [19:52:38]req_shift_open_date done [19:52:38]produce_requested_data done [19:52:38]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118280,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [19:52:38]process_action_free close_receipt [19:52:38]json_value_free [19:52:38]json_value_free done [19:52:38]process_json_proto returns [19:52:38]Send response to host [19:52:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118280,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [19:52:38]free response buf [19:52:38]execute_script done [19:52:38]execute_script returns [19:52:38]free content buf [19:52:38]Sock 7.Close socket [19:52:38]Sock 7.Thread stoped [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:20]accept exits with 9 [19:53:20]New connection [19:53:20]New thread 3066953060 created [19:53:20]Thread 3067096420 joined [19:53:20]Waiting for new connection... [19:53:20] Sock 9.Parse request [19:53:20]Sock 9.Check first char [19:53:20]Sock 9.First char is OK [19:53:20]request: POST /json_proto HTTP/1.0 [19:53:20]Method: POST [19:53:20]URL: /json_proto [19:53:20]Method is POST - this is cgi request [19:53:20]url: /json_proto [19:53:20]query_string will be loaded in cgi processing [19:53:20]execute_cgi json_proto POST (null) [19:53:20]execute_cgi path=json_proto method=POST [19:53:20]POST find Content-Length [19:53:20]Host: 172.17.45.7:8080 [19:53:20]Content-Length: 679 [19:53:20]Content-Type: application/json [19:53:20] [19:53:20]POST finish read [19:53:20]Found Content-Length = 679 [19:53:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:20]execute_script... [19:53:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:20]POST & json_proto [19:53:20]process_json_proto [19:53:20]json parsed OK: [19:53:20]protocol is kg_v1.0 [19:53:20]action value=close_receipt [19:53:20]process_action close_receipt [19:53:20]cmd_close_receipt [19:53:20]MH_GetDate [19:53:20]Write to MH i2c: F0 00 00 98 1B A2 [19:53:20]Write i2c OK [19:53:20]MH_I2C_Read... [19:53:20]Read from MH i2c: F0 [19:53:20]MH_I2C_Read... [19:53:20]Read from MH i2c: F0 09 00 [19:53:20]MH_I2C_Read... [19:53:20]Read from MH i2c: F0 09 00 98 1B 00 31 50 A5 66 90 0F 3E 66 7A [19:53:20]GetLastDocTimeStamp 1722109955 [19:53:20]current date 1722110001 [19:53:20]FM_GetShiftState [19:53:20]SAM_PROTO_GetShiftState [19:53:20]wFMCommunicate request_size=4 [19:53:20]MH_SAM_APDU [19:53:20]CAPDU: 80 13 01 00 [19:53:20]Write to MH i2c: E2 08 00 99 1B 80 13 01 00 00 00 00 00 31 [19:53:20]Write i2c OK [19:53:20]MH_I2C_Read... [19:53:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:20]Read from MH i2c: E2 [19:53:20]MH_I2C_Read... [19:53:20]Read from MH i2c: E2 0E 00 [19:53:20]MH_I2C_Read... [19:53:20]Read from MH i2c: E2 0E 00 99 1B 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 BE [19:53:20]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [19:53:20]wFMCommunicate OK [19:53:20]SAM_PROTO_GetShiftState done [19:53:20]FM_GetShiftState done [19:53:20]opened in 1722038845 [19:53:20]opened+sec_in_day 1722125245 [19:53:20]quantity*price = 100050 [19:53:20]sum+1 = 100052 [19:53:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 224 27.07.2024 19:53 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118281 ФПД: 97634596328427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T195321&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118281&fm=97634596328427&tin=02508201610067®Number=0000000000092660&sum=100000 [19:53:21]StoreToDocumentArchive [19:53:21]shift 432 fd 118281 [19:53:21]save to /storage/0432/doc_00118281 [19:53:21]save last doc name /storage/0432/doc_00118281 to /storage/kkm_last_doc_name [19:53:21]save OK [19:53:21]Clear old archive folders... [19:53:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:53:21]tlvbuf is 01E38140 [19:53:21]SAM_PROTO_ClearQueue [19:53:21]wFMCommunicate request_size=4 [19:53:21]MH_SAM_APDU [19:53:21]CAPDU: 80 09 00 00 [19:53:21]Write to MH i2c: E2 08 00 A6 1B 80 09 00 00 00 00 00 00 33 [19:53:21]Write i2c OK [19:53:21]MH_I2C_Read... [19:53:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:53:21]Read from MH i2c: E2 [19:53:21]MH_I2C_Read... [19:53:21]Read from MH i2c: E2 03 00 [19:53:21]MH_I2C_Read... [19:53:21]Read from MH i2c: E2 03 00 A6 1B 00 90 00 35 [19:53:21]RAPDU: 90 00 [19:53:21]wFMCommunicate OK [19:53:21]SAM_PROTO_ClearQueue done [19:53:21]KKMCreateOFDPacket [19:53:21]OFDProtocolAddRootSTLVToBuf [19:53:21]FM_MakeSignedData [19:53:21]FM_MakeSignedData [19:53:21]SAM_PROTO_SignData [19:53:21]wFMCommunicate request_size=4 [19:53:21]MH_SAM_APDU [19:53:21]CAPDU: 80 0D 01 02 [19:53:21]Write to MH i2c: E2 08 00 A7 1B 80 0D 01 02 00 00 00 00 3B [19:53:21]Write i2c OK [19:53:21]MH_I2C_Read... [19:53:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:53:21]Read from MH i2c: E2 [19:53:21]MH_I2C_Read... [19:53:21]Read from MH i2c: E2 03 00 [19:53:21]MH_I2C_Read... [19:53:21]Read from MH i2c: E2 03 00 A7 1B 00 90 00 36 [19:53:21]RAPDU: 90 00 [19:53:21]wFMCommunicate OK [19:53:21]wFMCommunicate request_size=255 [19:53:21]MH_SAM_APDU [19:53:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 31 50 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 09 CE 01 00 35 04 06 00 58 CC 53 6E [19:53:21]Write to MH i2c: E2 02 01 A8 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 31 50 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 09 CE 01 00 35 04 06 00 58 CC 53 6E 00 00 A5 [19:53:21]Write i2c OK [19:53:21]MH_I2C_Read... [19:53:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:21]Read from MH i2c: E2 [19:53:21]MH_I2C_Read... [19:53:21]Read from MH i2c: E2 03 00 [19:53:21]MH_I2C_Read... [19:53:21]Read from MH i2c: E2 03 00 A8 1B 00 90 00 37 [19:53:21]RAPDU: 90 00 [19:53:21]wFMCommunicate OK [19:53:21]wFMCommunicate request_size=7 [19:53:21]MH_SAM_APDU [19:53:21]CAPDU: 80 0D 02 02 02 93 EB [19:53:21]Write to MH i2c: E2 0A 00 A9 1B 80 0D 02 02 02 00 93 EB 00 00 C0 [19:53:21]Write i2c OK [19:53:21]MH_I2C_Read... [19:53:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:21]Read from MH i2c: E2 [19:53:21]MH_I2C_Read... [19:53:21]Read from MH i2c: E2 03 00 [19:53:21]MH_I2C_Read... [19:53:21]Read from MH i2c: E2 03 00 A9 1B 00 90 00 38 [19:53:21]RAPDU: 90 00 [19:53:21]wFMCommunicate OK [19:53:21]wFMCommunicate request_size=4 [19:53:21]MH_SAM_APDU [19:53:21]CAPDU: 80 0D 03 02 [19:53:21]Write to MH i2c: E2 08 00 AA 1B 80 0D 03 02 00 00 00 00 40 [19:53:21]Write i2c OK [19:53:21]MH_I2C_Read... [19:53:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:53:22]Read from MH i2c: E2 [19:53:22]MH_I2C_Read... [19:53:22]Read from MH i2c: E2 0B 00 [19:53:22]MH_I2C_Read... [19:53:22]Read from MH i2c: E2 0B 00 AA 1B 00 87 6D DD D9 99 61 B9 AE 90 00 4C [19:53:22]RAPDU: 87 6D DD D9 99 61 B9 AE 90 00 [19:53:22]wFMCommunicate OK [19:53:22]SAM_PROTO_SignData done [19:53:22]FM_MakeSignedData done [19:53:22]CreateOFDProtocolMessage [19:53:22]wFMCommunicate request_size=4 [19:53:22]MH_SAM_APDU [19:53:22]CAPDU: 80 11 00 00 [19:53:22]Write to MH i2c: E2 08 00 AB 1B 80 11 00 00 00 00 00 00 40 [19:53:22]Write i2c OK [19:53:22]MH_I2C_Read... [19:53:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:22]Read from MH i2c: E2 [19:53:22]MH_I2C_Read... [19:53:22]Read from MH i2c: E2 17 00 [19:53:22]MH_I2C_Read... [19:53:22]Read from MH i2c: E2 17 00 AB 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9B [19:53:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:53:22]wFMCommunicate OK [19:53:22]CreateOFDProtocolMessage done [19:53:22]OFDSenderStorePacket 118281 [19:53:22]StoreOFDPacket docnum=118281 [19:53:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 41 A2 04 01 9A AD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 31 50 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 09 CE 01 00 35 04 06 00 58 CC 53 6E 93 EB 87 6D DD D9 99 61 B9 AE [19:53:22]CheckFolder [19:53:22]dirname=/storage/ofd_packets [19:53:22]CheckFolder done [19:53:22]ProducePacketName [19:53:22]name=ofd_packets/00118281 [19:53:22]NVStorageSaveData ofd_packets/00118281 [19:53:22]File name is /storage/ofd_packets/00118281 [19:53:22]Write 298 bytes [19:53:22]NVStorageSaveData done [19:53:22]OFDSenderStorePacket done [19:53:22]KKMCreateOFDPacket done [19:53:22]NVStorageSaveData kkm_last_timestamp [19:53:22]File name is /storage/kkm_last_timestamp [19:53:22]Write 4 bytes [19:53:22]NVStorageSaveData done [19:53:22]ExternCall_PrintAddStr [19:53:22]wPrintStart [19:53:22]Write to MH i2c: 01 00 00 AC 1B C7 [19:53:22]Write i2c OK [19:53:22]MH_I2C_Read... [19:53:22]Read from MH i2c: 01 [19:53:22]MH_I2C_Read... [19:53:22]Read from MH i2c: 01 07 00 [19:53:22]MH_I2C_Read... [19:53:22]Read from MH i2c: 01 07 00 AC 1B 00 00 00 00 00 FF 0F DC [19:53:22]RasterBufferAndPrint [19:53:22]line Счет N : (1)949155 [19:53:22]line ИНН: 02508201610067 [19:53:22]line Контрольно-Кассовый Чек [19:53:22]line ПРОДАЖА [19:53:22]line ТРК (МРК, ГНК) : 64 [19:53:22]line Товар: 2710194800 [19:53:22]line ДТ-К-5 [19:53:22]line 13.130 * 76.20 [19:53:22]line = 1000.51 [19:53:22]line НДС 12% НСП 1% [19:53:22]line > о реализуемом товаре [19:53:22]line ОКРУГЛЕНИЕ: -0.51 [19:53:22]line ИТОГО: 1000.00 [19:53:22]line Внесено: 1000.00 [19:53:22]line СДАЧА: 0.00 [19:53:22]line НСП 1% : 8.85 [19:53:22]line НДС 12% : 106.25 [19:53:22]line Наличными: 1000.00 [19:53:22]line Безнал.: 0.00 [19:53:22]line Место: АЗС № 134 "Партнер Нефть" [19:53:22]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:53:22]line СНО: Общий режим [19:53:22]line Чек 224 27.07.2024 19:53 [19:53:22]line Смена: 432 ФФД: 1.0 [19:53:22]line ЗНМ: 0300000044 [19:53:22]line РНМ: 0000000000092660 [19:53:22]line Версия ККМ: 001 [19:53:22]line ФМ: 0000000000874939 [19:53:22]line ФД: 118281 [19:53:22]line ФПД: 97634596328427 [19:53:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T195321&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118281&fm=97634596328427&tin=02508201610067®Number=0000000000092660&sum=100000 [19:53:22]written 0, free lines is 4095 [19:53:22]OFD Sender: Processing packet 118281 [packets to send 86, broken 85] [19:53:22]ProducePacketName [19:53:22]name=ofd_packets/00118281 [19:53:22]OFD Sender: To server: pG, [19:53:22]CommunicateWithHost lk.salyk.kg:30040 [19:53:22]ConnectInit lk.salyk.kg [19:53:22]Connected sock=10 [19:53:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 41 A2 04 01 9A AD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 31 50 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 09 CE 01 00 35 04 06 00 58 CC 53 6E 93 EB 87 6D DD D9 99 61 B9 AE [19:53:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 DF 4B 47 00 79 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 09 CE 01 00 F4 03 04 00 C3 FD A4 66 B6 04 01 00 00 C3 88 5A 90 5F 18 54 07 [19:53:22]CommunicateWithHost err = 0 [19:53:22]CheckOFDResponse [19:53:22]1017 (14) - 77093643461234 [19:53:22]1041 (16) - 0000000000874939 [19:53:22]1040 (4) - 118281 [19:53:22]1012 (4) - 27.07.2024 14:01 [19:53:22]1206 (1) - 0 [19:53:22]OFD Sender: Remove packet 118281 [19:53:22]ProducePacketName [19:53:22]name=ofd_packets/00118281 [19:53:22]NVStorageDeleteData [19:53:22]Write to MH i2c: 01 00 00 D6 1B F1 [19:53:22]Write i2c OK [19:53:22]MH_I2C_Read... [19:53:22]Read from MH i2c: 01 [19:53:22]MH_I2C_Read... [19:53:22]Read from MH i2c: 01 07 00 [19:53:22]MH_I2C_Read... [19:53:22]Read from MH i2c: 01 07 00 D6 1B 00 00 00 00 00 EA 0C EE [19:53:22]RasterBufferAndPrint [19:53:22]line [19:53:22]line [19:53:22]line [19:53:22]line [19:53:22]line [19:53:22]written 0, free lines is 3312 [19:53:22]MH_Cut [19:53:22]Write to MH i2c: D1 01 00 DD 1B 01 CA [19:53:22]Write i2c OK [19:53:22]MH_I2C_Read... [19:53:22]Read from MH i2c: D1 [19:53:22]MH_I2C_Read... [19:53:22]Read from MH i2c: D1 01 00 [19:53:22]MH_I2C_Read... [19:53:22]Read from MH i2c: D1 01 00 DD 1B 00 C9 [19:53:22]Write to MH i2c: 01 00 00 DE 1B F9 [19:53:22]Write i2c OK [19:53:22]MH_I2C_Read... [19:53:22]OFD Sender: No OFD packet to send [19:53:23]*** Cut start [19:53:23]*** Partial cut [19:53:23]*** CUTSNS_PIN = 1 [19:53:23]*** CUTSNS_PIN = 0 [19:53:23]*** Brake cut motor [19:53:23]Read from MH i2c: 01 [19:53:23]MH_I2C_Read... [19:53:23]*** Stop cut motor [19:53:23]*** Cut end [19:53:23]Read from MH i2c: 01 07 00 [19:53:23]MH_I2C_Read... [19:53:23]Read from MH i2c: 01 07 00 DE 1B 00 00 00 00 00 FF 0F 0E [19:53:23]process_action close_receipt done [19:53:23]requested_data is exist [19:53:23]produce_requested_data [19:53:23]requested_item fm.sn is exist - process it [19:53:23]wFMCommunicate request_size=4 [19:53:23]MH_SAM_APDU [19:53:23]CAPDU: 80 11 00 00 [19:53:23]Write to MH i2c: E2 08 00 DF 1B 80 11 00 00 00 00 00 00 74 [19:53:23]Write i2c OK [19:53:23]MH_I2C_Read... [19:53:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:23]Read from MH i2c: E2 [19:53:23]MH_I2C_Read... [19:53:23]Read from MH i2c: E2 17 00 [19:53:23]MH_I2C_Read... [19:53:23]Read from MH i2c: E2 17 00 DF 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CF [19:53:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:53:23]wFMCommunicate OK [19:53:23]requested_item fd.num is exist - process it [19:53:23]SAM_PROTO_GetFieldsCounters [19:53:23]wFMCommunicate request_size=4 [19:53:23]MH_SAM_APDU [19:53:23]CAPDU: 80 13 00 00 [19:53:23]Write to MH i2c: E2 08 00 E0 1B 80 13 00 00 00 00 00 00 77 [19:53:23]Write i2c OK [19:53:23]MH_I2C_Read... [19:53:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:53:24]Read from MH i2c: E2 [19:53:24]MH_I2C_Read... [19:53:24]Read from MH i2c: E2 62 00 [19:53:24]MH_I2C_Read... [19:53:24]Read from MH i2c: E2 62 00 E0 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 09 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [19:53:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 09 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:53:24]wFMCommunicate OK [19:53:24]SAM_PROTO_GetFieldsCounters done [19:53:24]requested_item shift.num is exist - process it [19:53:24]requested_item shift.opened is exist - process it [19:53:24]req_shift_opened [19:53:24]FM_GetShiftState [19:53:24]SAM_PROTO_GetShiftState [19:53:24]wFMCommunicate request_size=4 [19:53:24]MH_SAM_APDU [19:53:24]CAPDU: 80 13 01 00 [19:53:24]Write to MH i2c: E2 08 00 E1 1B 80 13 01 00 00 00 00 00 79 [19:53:24]Write i2c OK [19:53:24]MH_I2C_Read... [19:53:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:24]Read from MH i2c: E2 [19:53:24]MH_I2C_Read... [19:53:24]Read from MH i2c: E2 0E 00 [19:53:24]MH_I2C_Read... [19:53:24]Read from MH i2c: E2 0E 00 E1 1B 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 06 [19:53:24]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [19:53:24]wFMCommunicate OK [19:53:24]SAM_PROTO_GetShiftState done [19:53:24]FM_GetShiftState done [19:53:24]req_shift_opened done [19:53:24]requested_item shift.open_date is exist - process it [19:53:24]req_shift_open_date [19:53:24]req_shift_open_date done [19:53:24]produce_requested_data done [19:53:24]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118281,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [19:53:24]process_action_free close_receipt [19:53:24]json_value_free [19:53:24]json_value_free done [19:53:24]process_json_proto returns [19:53:24]Send response to host [19:53:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118281,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [19:53:24]free response buf [19:53:24]execute_script done [19:53:24]execute_script returns [19:53:24]free content buf [19:53:24]Sock 9.Close socket [19:53:24]Sock 9.Thread stoped [19:53:27]OFD Sender: No OFD packet to send [19:53:32]OFD Sender: No OFD packet to send [19:53:37]OFD Sender: No OFD packet to send [19:53:42]OFD Sender: No OFD packet to send [19:53:47]OFD Sender: No OFD packet to send [19:53:52]OFD Sender: No OFD packet to send [19:53:57]OFD Sender: No OFD packet to send [19:54:00]accept exits with 7 [19:54:00]New connection [19:54:00]New thread 3067096420 created [19:54:00]Thread 3066953060 joined [19:54:00]Waiting for new connection... [19:54:00] Sock 7.Parse request [19:54:00]Sock 7.Check first char [19:54:00]Sock 7.First char is OK [19:54:00]request: POST /json_proto HTTP/1.0 [19:54:00]Method: POST [19:54:00]URL: /json_proto [19:54:00]Method is POST - this is cgi request [19:54:00]url: /json_proto [19:54:00]query_string will be loaded in cgi processing [19:54:00]execute_cgi json_proto POST (null) [19:54:00]execute_cgi path=json_proto method=POST [19:54:00]POST find Content-Length [19:54:00]Host: 172.17.45.7:8080 [19:54:00]Content-Length: 819 [19:54:00]Content-Type: application/json [19:54:00] [19:54:00]POST finish read [19:54:00]Found Content-Length = 819 [19:54:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:00]execute_script... [19:54: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)949153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:00]POST & json_proto [19:54:00]process_json_proto [19:54:00]json parsed OK: [19:54:00]protocol is kg_v1.0 [19:54:00]action value=close_receipt [19:54:00]process_action close_receipt [19:54:00]cmd_close_receipt [19:54:00]MH_GetDate [19:54:00]Write to MH i2c: F0 00 00 E2 1B EC [19:54:00]Write i2c OK [19:54:00]MH_I2C_Read... [19:54:00]Read from MH i2c: F0 [19:54:00]MH_I2C_Read... [19:54:00]Read from MH i2c: F0 09 00 [19:54:00]MH_I2C_Read... [19:54:00]Read from MH i2c: F0 09 00 E2 1B 00 5A 50 A5 66 90 0F 3E 66 ED [19:54:00]GetLastDocTimeStamp 1722110001 [19:54:00]current date 1722110042 [19:54:00]FM_GetShiftState [19:54:00]SAM_PROTO_GetShiftState [19:54:00]wFMCommunicate request_size=4 [19:54:00]MH_SAM_APDU [19:54:00]CAPDU: 80 13 01 00 [19:54:00]Write to MH i2c: E2 08 00 E3 1B 80 13 01 00 00 00 00 00 7B [19:54:00]Write i2c OK [19:54:00]MH_I2C_Read... [19:54:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:00]Read from MH i2c: E2 [19:54:00]MH_I2C_Read... [19:54:00]Read from MH i2c: E2 0E 00 [19:54:00]MH_I2C_Read... [19:54:00]Read from MH i2c: E2 0E 00 E3 1B 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 08 [19:54:00]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [19:54:00]wFMCommunicate OK [19:54:00]SAM_PROTO_GetShiftState done [19:54:00]FM_GetShiftState done [19:54:00]opened in 1722038845 [19:54:00]opened+sec_in_day 1722125245 [19:54:00]quantity*price = 200025 [19:54:00]sum+1 = 200026 [19:54:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 225 27.07.2024 19:54 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118282 ФПД: 260347218407298 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T195402&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118282&fm=260347218407298&tin=02508201610067®Number=0000000000092660&sum=200000 [19:54:02]StoreToDocumentArchive [19:54:02]shift 432 fd 118282 [19:54:02]save to /storage/0432/doc_00118282 [19:54:02]save last doc name /storage/0432/doc_00118282 to /storage/kkm_last_doc_name [19:54:02]save OK [19:54:02]Clear old archive folders... [19:54:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:54:02]tlvbuf is 01E19A20 [19:54:02]SAM_PROTO_ClearQueue [19:54:02]wFMCommunicate request_size=4 [19:54:02]MH_SAM_APDU [19:54:02]CAPDU: 80 09 00 00 [19:54:02]Write to MH i2c: E2 08 00 F0 1B 80 09 00 00 00 00 00 00 7D [19:54:02]Write i2c OK [19:54:02]MH_I2C_Read... [19:54:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:54:02]Read from MH i2c: E2 [19:54:02]MH_I2C_Read... [19:54:02]Read from MH i2c: E2 03 00 [19:54:02]MH_I2C_Read... [19:54:02]Read from MH i2c: E2 03 00 F0 1B 00 90 00 7F [19:54:02]RAPDU: 90 00 [19:54:02]wFMCommunicate OK [19:54:02]SAM_PROTO_ClearQueue done [19:54:02]KKMCreateOFDPacket [19:54:02]OFDProtocolAddRootSTLVToBuf [19:54:02]FM_MakeSignedData [19:54:02]FM_MakeSignedData [19:54:02]SAM_PROTO_SignData [19:54:02]wFMCommunicate request_size=4 [19:54:02]MH_SAM_APDU [19:54:02]CAPDU: 80 0D 01 02 [19:54:02]Write to MH i2c: E2 08 00 F1 1B 80 0D 01 02 00 00 00 00 85 [19:54:02]Write i2c OK [19:54:02]MH_I2C_Read... [19:54:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:54:02]Read from MH i2c: E2 [19:54:02]MH_I2C_Read... [19:54:02]Read from MH i2c: E2 03 00 [19:54:02]MH_I2C_Read... [19:54:02]Read from MH i2c: E2 03 00 F1 1B 00 90 00 80 [19:54:02]RAPDU: 90 00 [19:54:02]wFMCommunicate OK [19:54:02]wFMCommunicate request_size=255 [19:54:02]MH_SAM_APDU [19:54:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 5A 50 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0A CE 01 00 35 04 06 00 EC C8 CF 78 [19:54:02]Write to MH i2c: E2 02 01 F2 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 5A 50 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0A CE 01 00 35 04 06 00 EC C8 CF 78 00 00 1E [19:54:02]Write i2c OK [19:54:02]MH_I2C_Read... [19:54:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:02]Read from MH i2c: E2 [19:54:02]MH_I2C_Read... [19:54:02]Read from MH i2c: E2 03 00 [19:54:02]MH_I2C_Read... [19:54:02]Read from MH i2c: E2 03 00 F2 1B 00 90 00 81 [19:54:02]RAPDU: 90 00 [19:54:02]wFMCommunicate OK [19:54:02]wFMCommunicate request_size=7 [19:54:02]MH_SAM_APDU [19:54:02]CAPDU: 80 0D 02 02 02 AF 82 [19:54:02]Write to MH i2c: E2 0A 00 F3 1B 80 0D 02 02 02 00 AF 82 00 00 BD [19:54:02]Write i2c OK [19:54:02]MH_I2C_Read... [19:54:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:02]Read from MH i2c: E2 [19:54:02]MH_I2C_Read... [19:54:02]Read from MH i2c: E2 03 00 [19:54:02]MH_I2C_Read... [19:54:02]Read from MH i2c: E2 03 00 F3 1B 00 90 00 82 [19:54:02]RAPDU: 90 00 [19:54:02]wFMCommunicate OK [19:54:02]wFMCommunicate request_size=4 [19:54:02]MH_SAM_APDU [19:54:02]CAPDU: 80 0D 03 02 [19:54:02]Write to MH i2c: E2 08 00 F4 1B 80 0D 03 02 00 00 00 00 8A [19:54:02]Write i2c OK [19:54:02]MH_I2C_Read... [19:54:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:54:02]Read from MH i2c: E2 [19:54:02]MH_I2C_Read... [19:54:02]Read from MH i2c: E2 0B 00 [19:54:02]MH_I2C_Read... [19:54:02]Read from MH i2c: E2 0B 00 F4 1B 00 4F A5 5A D6 20 2B 6F 13 90 00 7C [19:54:02]RAPDU: 4F A5 5A D6 20 2B 6F 13 90 00 [19:54:02]wFMCommunicate OK [19:54:02]SAM_PROTO_SignData done [19:54:02]FM_MakeSignedData done [19:54:02]CreateOFDProtocolMessage [19:54:02]wFMCommunicate request_size=4 [19:54:02]MH_SAM_APDU [19:54:02]CAPDU: 80 11 00 00 [19:54:02]Write to MH i2c: E2 08 00 F5 1B 80 11 00 00 00 00 00 00 8A [19:54:02]Write i2c OK [19:54:02]MH_I2C_Read... [19:54:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:02]Read from MH i2c: E2 [19:54:02]MH_I2C_Read... [19:54:02]Read from MH i2c: E2 17 00 [19:54:02]MH_I2C_Read... [19:54:02]Read from MH i2c: E2 17 00 F5 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E5 [19:54:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:54:02]wFMCommunicate OK [19:54:02]CreateOFDProtocolMessage done [19:54:02]OFDSenderStorePacket 118282 [19:54:02]StoreOFDPacket docnum=118282 [19:54:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 39 32 04 01 05 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 5A 50 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0A CE 01 00 35 04 06 00 EC C8 CF 78 AF 82 4F A5 5A D6 20 2B 6F 13 [19:54:02]CheckFolder [19:54:02]dirname=/storage/ofd_packets [19:54:02]CheckFolder done [19:54:02]ProducePacketName [19:54:02]name=ofd_packets/00118282 [19:54:02]NVStorageSaveData ofd_packets/00118282 [19:54:02]File name is /storage/ofd_packets/00118282 [19:54:02]Write 298 bytes [19:54:02]NVStorageSaveData done [19:54:02]OFDSenderStorePacket done [19:54:02]KKMCreateOFDPacket done [19:54:02]NVStorageSaveData kkm_last_timestamp [19:54:02]File name is /storage/kkm_last_timestamp [19:54:02]Write 4 bytes [19:54:02]NVStorageSaveData done [19:54:02]ExternCall_PrintAddStr [19:54:02]wPrintStart [19:54:02]Write to MH i2c: 01 00 00 F6 1B 11 [19:54:02]Write i2c OK [19:54:02]MH_I2C_Read... [19:54:02]Read from MH i2c: 01 [19:54:02]MH_I2C_Read... [19:54:02]Read from MH i2c: 01 07 00 [19:54:02]MH_I2C_Read... [19:54:02]Read from MH i2c: 01 07 00 F6 1B 00 00 00 00 00 FF 0F 26 [19:54:02]RasterBufferAndPrint [19:54:02]line Счет N : (1)949153 [19:54:02]line ИНН: 02508201610067 [19:54:02]line Контрольно-Кассовый Чек [19:54:02]line ПРОДАЖА [19:54:02]line ТРК (МРК, ГНК) : 44 [19:54:02]line Товар: 2710194800 [19:54:02]line ДТ-К-5 [19:54:02]line 26.250 * 76.20 [19:54:02]line = 2000.25 [19:54:02]line НДС 12% НСП 1% [19:54:02]line > о реализуемом товаре [19:54:02]line ОКРУГЛЕНИЕ: -0.25 [19:54:02]line ИТОГО: 2000.00 [19:54:02]line НСП 1% : 17.70 [19:54:02]line НДС 12% : 212.42 [19:54:02]line Наличными: 0.00 [19:54:02]line Безнал.: 2000.00 [19:54:02]line Место: АЗС № 134 "Партнер Нефть" [19:54:02]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:54:02]line СНО: Общий режим [19:54:02]line Чек 225 27.07.2024 19:54 [19:54:02]line Смена: 432 ФФД: 1.0 [19:54:02]line ЗНМ: 0300000044 [19:54:02]line РНМ: 0000000000092660 [19:54:02]line Версия ККМ: 001 [19:54:02]line Платежная система: O! деньги [19:54:02]line ФМ: 0000000000874939 [19:54:02]line ФД: 118282 [19:54:02]line ФПД: 260347218407298 [19:54:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T195402&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118282&fm=260347218407298&tin=02508201610067®Number=0000000000092660&sum=200000 [19:54:02]OFD Sender: Processing packet 118282 [packets to send 86, broken 85] [19:54:02]ProducePacketName [19:54:02]name=ofd_packets/00118282 [19:54:02]OFD Sender: To server: pG, [19:54:02]CommunicateWithHost lk.salyk.kg:30040 [19:54:02]ConnectInit lk.salyk.kg [19:54:02]written 0, free lines is 4095 [19:54:03]Connected sock=10 [19:54:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 39 32 04 01 05 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 5A 50 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0A CE 01 00 35 04 06 00 EC C8 CF 78 AF 82 4F A5 5A D6 20 2B 6F 13 [19:54:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 82 86 47 00 D6 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0A CE 01 00 F4 03 04 00 EC FD A4 66 B6 04 01 00 00 60 54 59 17 12 58 27 E6 [19:54:03]CommunicateWithHost err = 0 [19:54:03]CheckOFDResponse [19:54:03]1017 (14) - 77093643461234 [19:54:03]1041 (16) - 0000000000874939 [19:54:03]1040 (4) - 118282 [19:54:03]1012 (4) - 27.07.2024 14:02 [19:54:03]1206 (1) - 0 [19:54:03]OFD Sender: Remove packet 118282 [19:54:03]ProducePacketName [19:54:03]name=ofd_packets/00118282 [19:54:03]NVStorageDeleteData [19:54:03]Write to MH i2c: 01 00 00 20 1C 3C [19:54:03]Write i2c OK [19:54:03]MH_I2C_Read... [19:54:03]Read from MH i2c: 01 [19:54:03]MH_I2C_Read... [19:54:03]Read from MH i2c: 01 07 00 [19:54:03]MH_I2C_Read... [19:54:03]Read from MH i2c: 01 07 00 20 1C 00 00 00 00 00 FD 0C 4C [19:54:03]RasterBufferAndPrint [19:54:03]line [19:54:03]line [19:54:03]line [19:54:03]line [19:54:03]line [19:54:03]written 0, free lines is 3331 [19:54:03]MH_Cut [19:54:03]Write to MH i2c: D1 01 00 27 1C 01 15 [19:54:03]Write i2c OK [19:54:03]MH_I2C_Read... [19:54:03]Read from MH i2c: D1 [19:54:03]MH_I2C_Read... [19:54:03]Read from MH i2c: D1 01 00 [19:54:03]MH_I2C_Read... [19:54:03]Read from MH i2c: D1 01 00 27 1C 00 14 [19:54:03]Write to MH i2c: 01 00 00 28 1C 44 [19:54:03]Write i2c OK [19:54:03]MH_I2C_Read... [19:54:03]OFD Sender: No OFD packet to send [19:54:04]*** Cut start [19:54:04]*** Partial cut [19:54:04]*** CUTSNS_PIN = 1 [19:54:04]*** CUTSNS_PIN = 0 [19:54:04]*** Brake cut motor [19:54:04]Read from MH i2c: 01 [19:54:04]MH_I2C_Read... [19:54:04]*** Stop cut motor [19:54:04]*** Cut end [19:54:04]Read from MH i2c: 01 07 00 [19:54:04]MH_I2C_Read... [19:54:04]Read from MH i2c: 01 07 00 28 1C 00 00 00 00 00 FF 0F 59 [19:54:04]process_action close_receipt done [19:54:04]requested_data is exist [19:54:04]produce_requested_data [19:54:04]requested_item fm.sn is exist - process it [19:54:04]wFMCommunicate request_size=4 [19:54:04]MH_SAM_APDU [19:54:04]CAPDU: 80 11 00 00 [19:54:04]Write to MH i2c: E2 08 00 29 1C 80 11 00 00 00 00 00 00 BF [19:54:04]Write i2c OK [19:54:04]MH_I2C_Read... [19:54:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:04]Read from MH i2c: E2 [19:54:04]MH_I2C_Read... [19:54:04]Read from MH i2c: E2 17 00 [19:54:04]MH_I2C_Read... [19:54: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 34 39 33 39 90 00 1A [19:54:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:54:04]wFMCommunicate OK [19:54:04]requested_item fd.num is exist - process it [19:54:04]SAM_PROTO_GetFieldsCounters [19:54:04]wFMCommunicate request_size=4 [19:54:04]MH_SAM_APDU [19:54:04]CAPDU: 80 13 00 00 [19:54:04]Write to MH i2c: E2 08 00 2A 1C 80 13 00 00 00 00 00 00 C2 [19:54:04]Write i2c OK [19:54:04]MH_I2C_Read... [19:54:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:54:04]Read from MH i2c: E2 [19:54:04]MH_I2C_Read... [19:54:04]Read from MH i2c: E2 62 00 [19:54:04]MH_I2C_Read... [19:54:04]Read from MH i2c: E2 62 00 2A 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0A CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [19:54:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0A CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:54:04]wFMCommunicate OK [19:54:04]SAM_PROTO_GetFieldsCounters done [19:54:04]requested_item shift.num is exist - process it [19:54:04]requested_item shift.opened is exist - process it [19:54:04]req_shift_opened [19:54:04]FM_GetShiftState [19:54:04]SAM_PROTO_GetShiftState [19:54:04]wFMCommunicate request_size=4 [19:54:04]MH_SAM_APDU [19:54:04]CAPDU: 80 13 01 00 [19:54:04]Write to MH i2c: E2 08 00 2B 1C 80 13 01 00 00 00 00 00 C4 [19:54:04]Write i2c OK [19:54:04]MH_I2C_Read... [19:54:05]Read from MH i2c: E2 [19:54:05]MH_I2C_Read... [19:54:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:05]Read from MH i2c: E2 0E 00 [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: E2 0E 00 2B 1C 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 51 [19:54:05]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [19:54:05]wFMCommunicate OK [19:54:05]SAM_PROTO_GetShiftState done [19:54:05]FM_GetShiftState done [19:54:05]req_shift_opened done [19:54:05]requested_item shift.open_date is exist - process it [19:54:05]req_shift_open_date [19:54:05]req_shift_open_date done [19:54:05]produce_requested_data done [19:54:05]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118282,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [19:54:05]process_action_free close_receipt [19:54:05]json_value_free [19:54:05]json_value_free done [19:54:05]process_json_proto returns [19:54:05]Send response to host [19:54:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118282,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [19:54:05]free response buf [19:54:05]execute_script done [19:54:05]execute_script returns [19:54:05]free content buf [19:54:05]Sock 7.Close socket [19:54:05]Sock 7.Thread stoped [19:54:08]OFD Sender: No OFD packet to send [19:54:13]OFD Sender: No OFD packet to send [19:54:18]OFD Sender: No OFD packet to send [19:54:23]OFD Sender: No OFD packet to send [19:54:28]OFD Sender: No OFD packet to send [19:54:33]OFD Sender: No OFD packet to send [19:54:38]OFD Sender: No OFD packet to send [19:54:43]OFD Sender: No OFD packet to send [19:54:48]OFD Sender: No OFD packet to send [19:54:53]OFD Sender: No OFD packet to send [19:54:58]OFD Sender: No OFD packet to send [19:55:03]OFD Sender: No OFD packet to send [19:55:08]OFD Sender: No OFD packet to send [19:55:13]OFD Sender: No OFD packet to send [19:55:18]OFD Sender: No OFD packet to send [19:55:23]OFD Sender: No OFD packet to send [19:55:28]OFD Sender: No OFD packet to send [19:55:33]OFD Sender: No OFD packet to send [19:55:38]OFD Sender: No OFD packet to send [19:55:43]OFD Sender: No OFD packet to send [19:55:48]OFD Sender: No OFD packet to send [19:55:53]OFD Sender: No OFD packet to send [19:55:58]OFD Sender: No OFD packet to send [19:56:03]OFD Sender: No OFD packet to send [19:56:08]OFD Sender: No OFD packet to send [19:56:13]OFD Sender: No OFD packet to send [19:56:18]OFD Sender: No OFD packet to send [19:56:23]OFD Sender: No OFD packet to send [19:56:28]OFD Sender: No OFD packet to send [19:56:33]OFD Sender: No OFD packet to send [19:56:39]OFD Sender: No OFD packet to send [19:56:44]OFD Sender: No OFD packet to send [19:56:49]OFD Sender: No OFD packet to send [19:56:54]OFD Sender: No OFD packet to send [19:56:59]OFD Sender: No OFD packet to send [19:57:04]OFD Sender: No OFD packet to send [19:57:09]OFD Sender: No OFD packet to send [19:57:14]OFD Sender: No OFD packet to send [19:57:19]OFD Sender: No OFD packet to send [19:57:24]OFD Sender: No OFD packet to send [19:57:29]OFD Sender: No OFD packet to send [19:57:34]OFD Sender: No OFD packet to send [19:57:39]OFD Sender: No OFD packet to send [19:57:44]OFD Sender: No OFD packet to send [19:57:49]OFD Sender: No OFD packet to send [19:57:54]OFD Sender: No OFD packet to send [19:57:59]OFD Sender: No OFD packet to send [19:58:04]OFD Sender: No OFD packet to send [19:58:09]OFD Sender: No OFD packet to send [19:58:14]OFD Sender: No OFD packet to send [19:58:19]OFD Sender: No OFD packet to send [19:58:24]OFD Sender: No OFD packet to send [19:58:29]OFD Sender: No OFD packet to send [19:58:34]OFD Sender: No OFD packet to send [19:58:39]OFD Sender: No OFD packet to send [19:58:44]OFD Sender: No OFD packet to send [19:58:49]OFD Sender: No OFD packet to send [19:58:54]OFD Sender: No OFD packet to send [19:58:59]OFD Sender: No OFD packet to send [19:59:04]OFD Sender: No OFD packet to send [19:59:09]OFD Sender: No OFD packet to send [19:59:14]OFD Sender: No OFD packet to send [19:59:19]OFD Sender: No OFD packet to send [19:59:24]OFD Sender: No OFD packet to send [19:59:29]OFD Sender: No OFD packet to send [19:59:34]OFD Sender: No OFD packet to send [19:59:39]OFD Sender: No OFD packet to send [19:59:44]OFD Sender: No OFD packet to send [19:59:49]OFD Sender: No OFD packet to send [19:59:54]OFD Sender: No OFD packet to send [19:59:59]OFD Sender: No OFD packet to send [20:00:04]OFD Sender: No OFD packet to send [20:00:09]OFD Sender: No OFD packet to send [20:00:14]OFD Sender: No OFD packet to send [20:00:19]OFD Sender: No OFD packet to send [20:00:24]OFD Sender: No OFD packet to send [20:00:29]OFD Sender: No OFD packet to send [20:00:34]OFD Sender: No OFD packet to send [20:00:39]OFD Sender: No OFD packet to send [20:00:44]OFD Sender: No OFD packet to send [20:00:49]OFD Sender: No OFD packet to send [20:00:54]OFD Sender: No OFD packet to send [20:00:59]OFD Sender: No OFD packet to send [20:01:04]OFD Sender: No OFD packet to send [20:01:09]OFD Sender: No OFD packet to send [20:01:14]OFD Sender: No OFD packet to send [20:01:19]OFD Sender: No OFD packet to send [20:01:24]OFD Sender: No OFD packet to send [20:01:27]accept exits with 9 [20:01:27]New connection [20:01:27]New thread 3066953060 created [20:01:27]Thread 3067096420 joined [20:01:27]Waiting for new connection... [20:01:27] Sock 9.Parse request [20:01:27]Sock 9.Check first char [20:01:27]Sock 9.First char is OK [20:01:27]request: POST /json_proto HTTP/1.0 [20:01:27]Method: POST [20:01:27]URL: /json_proto [20:01:27]Method is POST - this is cgi request [20:01:27]url: /json_proto [20:01:27]query_string will be loaded in cgi processing [20:01:27]execute_cgi json_proto POST (null) [20:01:27]execute_cgi path=json_proto method=POST [20:01:27]POST find Content-Length [20:01:27]Host: 172.17.45.7:8080 [20:01:27]Content-Length: 682 [20:01:27]Content-Type: application/json [20:01:27] [20:01:27]POST finish read [20:01:27]Found Content-Length = 682 [20:01:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 19.920, "sum" : 1350.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1350.00, "total" : 1350.00, "payments": [ { "type": 0, "sum" : 1350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:27]execute_script... [20:01:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 19.920, "sum" : 1350.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1350.00, "total" : 1350.00, "payments": [ { "type": 0, "sum" : 1350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:27]POST & json_proto [20:01:27]process_json_proto [20:01:27]json parsed OK: [20:01:27]protocol is kg_v1.0 [20:01:27]action value=close_receipt [20:01:27]process_action close_receipt [20:01:27]cmd_close_receipt [20:01:27]MH_GetDate [20:01:27]Write to MH i2c: F0 00 00 2C 1C 37 [20:01:27]Write i2c OK [20:01:27]MH_I2C_Read... [20:01:27]Read from MH i2c: F0 [20:01:27]MH_I2C_Read... [20:01:27]Read from MH i2c: F0 09 00 [20:01:27]MH_I2C_Read... [20:01:27]Read from MH i2c: F0 09 00 2C 1C 00 18 52 A5 66 90 0F 3E 66 F8 [20:01:27]GetLastDocTimeStamp 1722110042 [20:01:27]current date 1722110488 [20:01:27]FM_GetShiftState [20:01:27]SAM_PROTO_GetShiftState [20:01:27]wFMCommunicate request_size=4 [20:01:27]MH_SAM_APDU [20:01:27]CAPDU: 80 13 01 00 [20:01:27]Write to MH i2c: E2 08 00 2D 1C 80 13 01 00 00 00 00 00 C6 [20:01:27]Write i2c OK [20:01:27]MH_I2C_Read... [20:01:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:27]Read from MH i2c: E2 [20:01:27]MH_I2C_Read... [20:01:27]Read from MH i2c: E2 0E 00 [20:01:27]MH_I2C_Read... [20:01:27]Read from MH i2c: E2 0E 00 2D 1C 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 53 [20:01:27]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [20:01:27]wFMCommunicate OK [20:01:27]SAM_PROTO_GetShiftState done [20:01:27]FM_GetShiftState done [20:01:27]opened in 1722038845 [20:01:27]opened+sec_in_day 1722125245 [20:01:27]quantity*price = 135057 [20:01:27]sum+1 = 135059 [20:01:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 1350.00 Внесено: 1350.00 СДАЧА: 0.00 НСП 1% : 11.95 НДС 12% : 143.42 Наличными: 1350.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 226 27.07.2024 20:01 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118283 ФПД: 20833786862814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T200128&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118283&fm=20833786862814&tin=02508201610067®Number=0000000000092660&sum=135000 [20:01:28]StoreToDocumentArchive [20:01:28]shift 432 fd 118283 [20:01:28]save to /storage/0432/doc_00118283 [20:01:28]save last doc name /storage/0432/doc_00118283 to /storage/kkm_last_doc_name [20:01:28]save OK [20:01:28]Clear old archive folders... [20:01:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:01:28]tlvbuf is 01E05F60 [20:01:28]SAM_PROTO_ClearQueue [20:01:28]wFMCommunicate request_size=4 [20:01:28]MH_SAM_APDU [20:01:28]CAPDU: 80 09 00 00 [20:01:28]Write to MH i2c: E2 08 00 3A 1C 80 09 00 00 00 00 00 00 C8 [20:01:28]Write i2c OK [20:01:28]MH_I2C_Read... [20:01:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:01:28]Read from MH i2c: E2 [20:01:28]MH_I2C_Read... [20:01:28]Read from MH i2c: E2 03 00 [20:01:28]MH_I2C_Read... [20:01:28]Read from MH i2c: E2 03 00 3A 1C 00 90 00 CA [20:01:28]RAPDU: 90 00 [20:01:28]wFMCommunicate OK [20:01:28]SAM_PROTO_ClearQueue done [20:01:28]KKMCreateOFDPacket [20:01:28]OFDProtocolAddRootSTLVToBuf [20:01:28]FM_MakeSignedData [20:01:28]FM_MakeSignedData [20:01:28]SAM_PROTO_SignData [20:01:28]wFMCommunicate request_size=4 [20:01:28]MH_SAM_APDU [20:01:28]CAPDU: 80 0D 01 02 [20:01:28]Write to MH i2c: E2 08 00 3B 1C 80 0D 01 02 00 00 00 00 D0 [20:01:28]Write i2c OK [20:01:28]MH_I2C_Read... [20:01:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:01:28]Read from MH i2c: E2 [20:01:28]MH_I2C_Read... [20:01:28]Read from MH i2c: E2 03 00 [20:01:28]MH_I2C_Read... [20:01:28]Read from MH i2c: E2 03 00 3B 1C 00 90 00 CB [20:01:28]RAPDU: 90 00 [20:01:28]wFMCommunicate OK [20:01:28]wFMCommunicate request_size=255 [20:01:28]MH_SAM_APDU [20:01:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D0 4D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 92 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 38 00 00 00 00 07 04 06 00 58 0F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 18 52 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0B CE 01 00 35 04 06 00 12 [20:01:28]Write to MH i2c: E2 02 01 3C 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 34 FF 03 08 00 03 D0 4D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 92 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 38 00 00 00 00 07 04 06 00 58 0F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 18 52 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0B CE 01 00 35 04 06 00 12 00 00 E8 [20:01:28]Write i2c OK [20:01:28]MH_I2C_Read... [20:01:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:28]Read from MH i2c: E2 [20:01:28]MH_I2C_Read... [20:01:28]Read from MH i2c: E2 03 00 [20:01:28]MH_I2C_Read... [20:01:28]Read from MH i2c: E2 03 00 3C 1C 00 90 00 CC [20:01:28]RAPDU: 90 00 [20:01:28]wFMCommunicate OK [20:01:28]wFMCommunicate request_size=10 [20:01:28]MH_SAM_APDU [20:01:28]CAPDU: 80 0D 02 02 05 F2 BE 77 1C DE [20:01:28]Write to MH i2c: E2 0D 00 3D 1C 80 0D 02 02 05 00 F2 BE 77 1C DE 00 00 FE [20:01:28]Write i2c OK [20:01:28]MH_I2C_Read... [20:01:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:28]Read from MH i2c: E2 [20:01:28]MH_I2C_Read... [20:01:28]Read from MH i2c: E2 03 00 [20:01:28]MH_I2C_Read... [20:01:28]Read from MH i2c: E2 03 00 3D 1C 00 90 00 CD [20:01:28]RAPDU: 90 00 [20:01:28]wFMCommunicate OK [20:01:28]wFMCommunicate request_size=4 [20:01:28]MH_SAM_APDU [20:01:28]CAPDU: 80 0D 03 02 [20:01:28]Write to MH i2c: E2 08 00 3E 1C 80 0D 03 02 00 00 00 00 D5 [20:01:28]Write i2c OK [20:01:28]MH_I2C_Read... [20:01:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:01:28]Read from MH i2c: E2 [20:01:28]MH_I2C_Read... [20:01:28]Read from MH i2c: E2 0B 00 [20:01:28]MH_I2C_Read... [20:01:28]Read from MH i2c: E2 0B 00 3E 1C 00 F1 43 D4 FC D5 B9 F6 82 90 00 E0 [20:01:28]RAPDU: F1 43 D4 FC D5 B9 F6 82 90 00 [20:01:28]wFMCommunicate OK [20:01:28]SAM_PROTO_SignData done [20:01:28]FM_MakeSignedData done [20:01:28]CreateOFDProtocolMessage [20:01:28]wFMCommunicate request_size=4 [20:01:28]MH_SAM_APDU [20:01:28]CAPDU: 80 11 00 00 [20:01:28]Write to MH i2c: E2 08 00 3F 1C 80 11 00 00 00 00 00 00 D5 [20:01:28]Write i2c OK [20:01:28]MH_I2C_Read... [20:01:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:29]Read from MH i2c: E2 [20:01:29]MH_I2C_Read... [20:01:29]Read from MH i2c: E2 17 00 [20:01:29]MH_I2C_Read... [20:01:29]Read from MH i2c: E2 17 00 3F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 30 [20:01:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:01:29]wFMCommunicate OK [20:01:29]CreateOFDProtocolMessage done [20:01:29]OFDSenderStorePacket 118283 [20:01:29]StoreOFDPacket docnum=118283 [20:01:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 34 44 07 01 8D C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D0 4D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 92 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 38 00 00 00 00 07 04 06 00 58 0F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 18 52 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0B CE 01 00 35 04 06 00 12 F2 BE 77 1C DE F1 43 D4 FC D5 B9 F6 82 [20:01:29]CheckFolder [20:01:29]dirname=/storage/ofd_packets [20:01:29]CheckFolder done [20:01:29]ProducePacketName [20:01:29]name=ofd_packets/00118283 [20:01:29]NVStorageSaveData ofd_packets/00118283 [20:01:29]File name is /storage/ofd_packets/00118283 [20:01:29]Write 301 bytes [20:01:29]NVStorageSaveData done [20:01:29]OFDSenderStorePacket done [20:01:29]KKMCreateOFDPacket done [20:01:29]NVStorageSaveData kkm_last_timestamp [20:01:29]File name is /storage/kkm_last_timestamp [20:01:29]Write 4 bytes [20:01:29]NVStorageSaveData done [20:01:29]ExternCall_PrintAddStr [20:01:29]wPrintStart [20:01:29]Write to MH i2c: 01 00 00 40 1C 5C [20:01:29]Write i2c OK [20:01:29]MH_I2C_Read... [20:01:29]Read from MH i2c: 01 [20:01:29]MH_I2C_Read... [20:01:29]Read from MH i2c: 01 07 00 [20:01:29]MH_I2C_Read... [20:01:29]Read from MH i2c: 01 07 00 40 1C 00 00 00 00 00 FF 0F 71 [20:01:29]RasterBufferAndPrint [20:01:29]line Счет N : (1)949156 [20:01:29]line ИНН: 02508201610067 [20:01:29]line Контрольно-Кассовый Чек [20:01:29]line ПРОДАЖА [20:01:29]line ТРК (МРК, ГНК) : 31 [20:01:29]line Товар: 2710124130 [20:01:29]line Аи-92-К-4 [20:01:29]line 19.920 * 67.80 [20:01:29]line = 1350.58 [20:01:29]line НДС 12% НСП 1% [20:01:29]line > о реализуемом товаре [20:01:29]line ОКРУГЛЕНИЕ: -0.58 [20:01:29]line ИТОГО: 1350.00 [20:01:29]line Внесено: 1350.00 [20:01:29]line СДАЧА: 0.00 [20:01:29]line НСП 1% : 11.95 [20:01:29]line НДС 12% : 143.42 [20:01:29]line Наличными: 1350.00 [20:01:29]line Безнал.: 0.00 [20:01:29]line Место: АЗС № 134 "Партнер Нефть" [20:01:29]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:01:29]line СНО: Общий режим [20:01:29]line Чек 226 27.07.2024 20:01 [20:01:29]line Смена: 432 ФФД: 1.0 [20:01:29]line ЗНМ: 0300000044 [20:01:29]line РНМ: 0000000000092660 [20:01:29]line Версия ККМ: 001 [20:01:29]line ФМ: 0000000000874939 [20:01:29]line ФД: 118283 [20:01:29]line ФПД: 20833786862814 [20:01:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T200128&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118283&fm=20833786862814&tin=02508201610067®Number=0000000000092660&sum=135000 [20:01:29]written 0, free lines is 4095 [20:01:29]OFD Sender: Processing packet 118283 [packets to send 86, broken 85] [20:01:29]ProducePacketName [20:01:29]name=ofd_packets/00118283 [20:01:29]OFD Sender: To server: pG, [20:01:29]CommunicateWithHost lk.salyk.kg:30040 [20:01:29]ConnectInit lk.salyk.kg [20:01:29]Connected sock=10 [20:01:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 34 44 07 01 8D C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D0 4D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 92 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 38 00 00 00 00 07 04 06 00 58 0F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 18 52 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0B CE 01 00 35 04 06 00 12 F2 BE 77 1C DE F1 43 D4 FC D5 B9 F6 82 [20:01:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 1B 08 47 00 AF 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0B CE 01 00 F4 03 04 00 AA FF A4 66 B6 04 01 00 00 9B 5C AD 1E CC 92 46 5B [20:01:29]CommunicateWithHost err = 0 [20:01:29]CheckOFDResponse [20:01:29]1017 (14) - 77093643461234 [20:01:29]1041 (16) - 0000000000874939 [20:01:29]1040 (4) - 118283 [20:01:29]1012 (4) - 27.07.2024 14:09 [20:01:29]1206 (1) - 0 [20:01:29]OFD Sender: Remove packet 118283 [20:01:29]ProducePacketName [20:01:29]name=ofd_packets/00118283 [20:01:29]NVStorageDeleteData [20:01:29]Write to MH i2c: 01 00 00 6A 1C 86 [20:01:29]Write i2c OK [20:01:29]MH_I2C_Read... [20:01:29]Read from MH i2c: 01 [20:01:29]MH_I2C_Read... [20:01:29]Read from MH i2c: 01 07 00 [20:01:29]MH_I2C_Read... [20:01:29]Read from MH i2c: 01 07 00 6A 1C 00 00 00 00 00 E2 0C 7B [20:01:29]RasterBufferAndPrint [20:01:29]line [20:01:29]line [20:01:29]line [20:01:29]line [20:01:29]line [20:01:29]written 0, free lines is 3303 [20:01:29]MH_Cut [20:01:29]Write to MH i2c: D1 01 00 71 1C 01 5F [20:01:29]Write i2c OK [20:01:29]MH_I2C_Read... [20:01:29]Read from MH i2c: D1 [20:01:29]MH_I2C_Read... [20:01:29]Read from MH i2c: D1 01 00 [20:01:29]MH_I2C_Read... [20:01:29]Read from MH i2c: D1 01 00 71 1C 00 5E [20:01:29]Write to MH i2c: 01 00 00 72 1C 8E [20:01:29]Write i2c OK [20:01:29]MH_I2C_Read... [20:01:30]OFD Sender: No OFD packet to send [20:01:30]*** Cut start [20:01:30]*** Partial cut [20:01:30]*** CUTSNS_PIN = 1 [20:01:30]*** CUTSNS_PIN = 0 [20:01:30]*** Brake cut motor [20:01:31]Read from MH i2c: 01 [20:01:31]MH_I2C_Read... [20:01:31]*** Stop cut motor [20:01:31]*** Cut end [20:01:31]Read from MH i2c: 01 07 00 [20:01:31]MH_I2C_Read... [20:01:31]Read from MH i2c: 01 07 00 72 1C 00 00 00 00 00 FF 0F A3 [20:01:31]process_action close_receipt done [20:01:31]requested_data is exist [20:01:31]produce_requested_data [20:01:31]requested_item fm.sn is exist - process it [20:01:31]wFMCommunicate request_size=4 [20:01:31]MH_SAM_APDU [20:01:31]CAPDU: 80 11 00 00 [20:01:31]Write to MH i2c: E2 08 00 73 1C 80 11 00 00 00 00 00 00 09 [20:01:31]Write i2c OK [20:01:31]MH_I2C_Read... [20:01:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:31]Read from MH i2c: E2 [20:01:31]MH_I2C_Read... [20:01:31]Read from MH i2c: E2 17 00 [20:01:31]MH_I2C_Read... [20:01:31]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 34 39 33 39 90 00 64 [20:01:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:01:31]wFMCommunicate OK [20:01:31]requested_item fd.num is exist - process it [20:01:31]SAM_PROTO_GetFieldsCounters [20:01:31]wFMCommunicate request_size=4 [20:01:31]MH_SAM_APDU [20:01:31]CAPDU: 80 13 00 00 [20:01:31]Write to MH i2c: E2 08 00 74 1C 80 13 00 00 00 00 00 00 0C [20:01:31]Write i2c OK [20:01:31]MH_I2C_Read... [20:01:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:01:31]Read from MH i2c: E2 [20:01:31]MH_I2C_Read... [20:01:31]Read from MH i2c: E2 62 00 [20:01:31]MH_I2C_Read... [20:01:31]Read from MH i2c: E2 62 00 74 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0B CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [20:01:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0B CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:01:31]wFMCommunicate OK [20:01:31]SAM_PROTO_GetFieldsCounters done [20:01:31]requested_item shift.num is exist - process it [20:01:31]requested_item shift.opened is exist - process it [20:01:31]req_shift_opened [20:01:31]FM_GetShiftState [20:01:31]SAM_PROTO_GetShiftState [20:01:31]wFMCommunicate request_size=4 [20:01:31]MH_SAM_APDU [20:01:31]CAPDU: 80 13 01 00 [20:01:31]Write to MH i2c: E2 08 00 75 1C 80 13 01 00 00 00 00 00 0E [20:01:31]Write i2c OK [20:01:31]MH_I2C_Read... [20:01:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:31]Read from MH i2c: E2 [20:01:31]MH_I2C_Read... [20:01:31]Read from MH i2c: E2 0E 00 [20:01:31]MH_I2C_Read... [20:01:31]Read from MH i2c: E2 0E 00 75 1C 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 9B [20:01:31]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [20:01:31]wFMCommunicate OK [20:01:31]SAM_PROTO_GetShiftState done [20:01:31]FM_GetShiftState done [20:01:31]req_shift_opened done [20:01:31]requested_item shift.open_date is exist - process it [20:01:31]req_shift_open_date [20:01:31]req_shift_open_date done [20:01:31]produce_requested_data done [20:01:31]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118283,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [20:01:31]process_action_free close_receipt [20:01:31]json_value_free [20:01:31]json_value_free done [20:01:31]process_json_proto returns [20:01:31]Send response to host [20:01:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118283,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [20:01:31]free response buf [20:01:31]execute_script done [20:01:31]execute_script returns [20:01:31]free content buf [20:01:31]Sock 9.Close socket [20:01:31]Sock 9.Thread stoped [20:01:35]OFD Sender: No OFD packet to send [20:01:40]OFD Sender: No OFD packet to send [20:01:45]OFD Sender: No OFD packet to send [20:01:50]OFD Sender: No OFD packet to send [20:01:55]OFD Sender: No OFD packet to send [20:02:00]OFD Sender: No OFD packet to send [20:02:05]OFD Sender: No OFD packet to send [20:02:10]OFD Sender: No OFD packet to send [20:02:15]OFD Sender: No OFD packet to send [20:02:20]OFD Sender: No OFD packet to send [20:02:25]OFD Sender: No OFD packet to send [20:02:30]OFD Sender: No OFD packet to send [20:02:35]OFD Sender: No OFD packet to send [20:02:40]OFD Sender: No OFD packet to send [20:02:45]OFD Sender: No OFD packet to send [20:02:50]OFD Sender: No OFD packet to send [20:02:55]OFD Sender: No OFD packet to send [20:03:00]OFD Sender: No OFD packet to send [20:03:05]OFD Sender: No OFD packet to send [20:03:10]OFD Sender: No OFD packet to send [20:03:15]OFD Sender: No OFD packet to send [20:03:20]OFD Sender: No OFD packet to send [20:03:25]OFD Sender: No OFD packet to send [20:03:30]OFD Sender: No OFD packet to send [20:03:35]OFD Sender: No OFD packet to send [20:03:40]OFD Sender: No OFD packet to send [20:03:45]OFD Sender: No OFD packet to send [20:03:50]OFD Sender: No OFD packet to send [20:03:55]OFD Sender: No OFD packet to send [20:04:00]OFD Sender: No OFD packet to send [20:04:05]OFD Sender: No OFD packet to send [20:04:10]OFD Sender: No OFD packet to send [20:04:15]OFD Sender: No OFD packet to send [20:04:20]OFD Sender: No OFD packet to send [20:04:25]OFD Sender: No OFD packet to send [20:04:30]OFD Sender: No OFD packet to send [20:04:35]OFD Sender: No OFD packet to send [20:04:40]OFD Sender: No OFD packet to send [20:04:45]OFD Sender: No OFD packet to send [20:04:50]OFD Sender: No OFD packet to send [20:04:55]OFD Sender: No OFD packet to send [20:05:00]OFD Sender: No OFD packet to send [20:05:05]OFD Sender: No OFD packet to send [20:05:10]OFD Sender: No OFD packet to send [20:05:15]OFD Sender: No OFD packet to send [20:05:20]OFD Sender: No OFD packet to send [20:05:25]OFD Sender: No OFD packet to send [20:05:30]OFD Sender: No OFD packet to send [20:05:35]OFD Sender: No OFD packet to send [20:05:40]OFD Sender: No OFD packet to send [20:05:45]OFD Sender: No OFD packet to send [20:05:50]OFD Sender: No OFD packet to send [20:05:55]OFD Sender: No OFD packet to send [20:06:00]OFD Sender: No OFD packet to send [20:06:05]OFD Sender: No OFD packet to send [20:06:10]OFD Sender: No OFD packet to send [20:06:15]OFD Sender: No OFD packet to send [20:06:20]OFD Sender: No OFD packet to send [20:06:25]OFD Sender: No OFD packet to send [20:06:30]OFD Sender: No OFD packet to send [20:06:35]OFD Sender: No OFD packet to send [20:06:40]OFD Sender: No OFD packet to send [20:06:45]OFD Sender: No OFD packet to send [20:06:50]OFD Sender: No OFD packet to send [20:06:55]OFD Sender: No OFD packet to send [20:07:00]OFD Sender: No OFD packet to send [20:07:05]OFD Sender: No OFD packet to send [20:07:10]OFD Sender: No OFD packet to send [20:07:15]OFD Sender: No OFD packet to send [20:07:20]OFD Sender: No OFD packet to send [20:07:25]OFD Sender: No OFD packet to send [20:07:30]OFD Sender: No OFD packet to send [20:07:35]OFD Sender: No OFD packet to send [20:07:40]OFD Sender: No OFD packet to send [20:07:45]OFD Sender: No OFD packet to send [20:07:50]OFD Sender: No OFD packet to send [20:07:55]OFD Sender: No OFD packet to send [20:08:00]OFD Sender: No OFD packet to send [20:08:05]OFD Sender: No OFD packet to send [20:08:10]OFD Sender: No OFD packet to send [20:08:14]int [20:08:14]Write to MH i2c: 01 00 00 76 1C 92 [20:08:14]*** FLAG_PRN_KEY set [20:08:14]Write i2c OK [20:08:14]MH_I2C_Read... [20:08:14]Read from MH i2c: 01 [20:08:14]MH_I2C_Read... [20:08:14]Read from MH i2c: 01 07 00 [20:08:14]MH_I2C_Read... [20:08:14]Read from MH i2c: 01 07 00 76 1C 00 08 00 00 00 FF 0F AF [20:08:14]state=0 [20:08:14]Key pressed [20:08:14]Feed [20:08:14]Write to MH i2c: D8 00 00 77 1C 6A [20:08:14]Write i2c OK [20:08:14]MH_I2C_Read... [20:08:14]Read from MH i2c: D8 [20:08:14]MH_I2C_Read... [20:08:14]Read from MH i2c: D8 01 00 [20:08:14]MH_I2C_Read... [20:08:14]*** FLAG_PRN_KEY reset [20:08:14]Read from MH i2c: D8 01 00 77 1C 00 6B [20:08:14]int line is 0 - check status [20:08:14]Write to MH i2c: 01 00 00 78 1C 94 [20:08:14]Write i2c OK [20:08:14]MH_I2C_Read... [20:08:14]Read from MH i2c: 01 [20:08:14]MH_I2C_Read... [20:08:14]Read from MH i2c: 01 07 00 [20:08:14]MH_I2C_Read... [20:08:14]Read from MH i2c: 01 07 00 78 1C 00 00 00 00 00 F5 0F 9F [20:08:14]state=2 [20:08:14]Stop feed [20:08:14]int [20:08:14]Write to MH i2c: 01 00 00 79 1C 95 [20:08:14]Write i2c OK [20:08:14]MH_I2C_Read... [20:08:14]Read from MH i2c: 01 [20:08:14]MH_I2C_Read... [20:08:14]Read from MH i2c: 01 07 00 [20:08:14]MH_I2C_Read... [20:08:14]Read from MH i2c: 01 07 00 79 1C 00 00 00 00 00 F5 0F A0 [20:08:14]state=0 [20:08:15]OFD Sender: No OFD packet to send [20:08:20]OFD Sender: No OFD packet to send [20:08:25]OFD Sender: No OFD packet to send [20:08:30]OFD Sender: No OFD packet to send [20:08:35]OFD Sender: No OFD packet to send [20:08:40]OFD Sender: No OFD packet to send [20:08:43]accept exits with 7 [20:08:43]New connection [20:08:43]New thread 3067096420 created [20:08:43]Thread 3066953060 joined [20:08:43]Waiting for new connection... [20:08:43] Sock 7.Parse request [20:08:43]Sock 7.Check first char [20:08:43]Sock 7.First char is OK [20:08:43]request: POST /json_proto HTTP/1.0 [20:08:43]Method: POST [20:08:43]URL: /json_proto [20:08:43]Method is POST - this is cgi request [20:08:43]url: /json_proto [20:08:43]query_string will be loaded in cgi processing [20:08:43]execute_cgi json_proto POST (null) [20:08:43]execute_cgi path=json_proto method=POST [20:08:43]POST find Content-Length [20:08:43]Host: 172.17.45.7:8080 [20:08:43]Content-Length: 679 [20:08:43]Content-Type: application/json [20:08:43] [20:08:43]POST finish read [20:08:43]Found Content-Length = 679 [20:08:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:43]execute_script... [20:08: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)949158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:43]POST & json_proto [20:08:43]process_json_proto [20:08:43]json parsed OK: [20:08:43]protocol is kg_v1.0 [20:08:43]action value=close_receipt [20:08:43]process_action close_receipt [20:08:43]cmd_close_receipt [20:08:43]MH_GetDate [20:08:43]Write to MH i2c: F0 00 00 7A 1C 85 [20:08:43]Write i2c OK [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: F0 [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: F0 09 00 [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: F0 09 00 7A 1C 00 CC 53 A5 66 90 0F 3E 66 FB [20:08:43]GetLastDocTimeStamp 1722110488 [20:08:43]current date 1722110924 [20:08:43]FM_GetShiftState [20:08:43]SAM_PROTO_GetShiftState [20:08:43]wFMCommunicate request_size=4 [20:08:43]MH_SAM_APDU [20:08:43]CAPDU: 80 13 01 00 [20:08:43]Write to MH i2c: E2 08 00 7B 1C 80 13 01 00 00 00 00 00 14 [20:08:43]Write i2c OK [20:08:43]MH_I2C_Read... [20:08:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:43]Read from MH i2c: E2 [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: E2 0E 00 [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: E2 0E 00 7B 1C 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 A1 [20:08:43]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [20:08:43]wFMCommunicate OK [20:08:43]SAM_PROTO_GetShiftState done [20:08:43]FM_GetShiftState done [20:08:43]opened in 1722038845 [20:08:43]opened+sec_in_day 1722125245 [20:08:43]quantity*price = 100050 [20:08:43]sum+1 = 100052 [20:08:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 227 27.07.2024 20:08 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118284 ФПД: 107031941246051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T200844&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118284&fm=107031941246051&tin=02508201610067®Number=0000000000092660&sum=100000 [20:08:44]StoreToDocumentArchive [20:08:44]shift 432 fd 118284 [20:08:44]save to /storage/0432/doc_00118284 [20:08:44]save last doc name /storage/0432/doc_00118284 to /storage/kkm_last_doc_name [20:08:44]save OK [20:08:44]Clear old archive folders... [20:08:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:08:44]tlvbuf is 01DEC760 [20:08:44]SAM_PROTO_ClearQueue [20:08:44]wFMCommunicate request_size=4 [20:08:44]MH_SAM_APDU [20:08:44]CAPDU: 80 09 00 00 [20:08:44]Write to MH i2c: E2 08 00 88 1C 80 09 00 00 00 00 00 00 16 [20:08:44]Write i2c OK [20:08:44]MH_I2C_Read... [20:08:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:08:44]Read from MH i2c: E2 [20:08:44]MH_I2C_Read... [20:08:44]Read from MH i2c: E2 03 00 [20:08:44]MH_I2C_Read... [20:08:44]Read from MH i2c: E2 03 00 88 1C 00 90 00 18 [20:08:44]RAPDU: 90 00 [20:08:44]wFMCommunicate OK [20:08:44]SAM_PROTO_ClearQueue done [20:08:44]KKMCreateOFDPacket [20:08:44]OFDProtocolAddRootSTLVToBuf [20:08:44]FM_MakeSignedData [20:08:44]FM_MakeSignedData [20:08:44]SAM_PROTO_SignData [20:08:44]wFMCommunicate request_size=4 [20:08:44]MH_SAM_APDU [20:08:44]CAPDU: 80 0D 01 02 [20:08:44]Write to MH i2c: E2 08 00 89 1C 80 0D 01 02 00 00 00 00 1E [20:08:44]Write i2c OK [20:08:44]MH_I2C_Read... [20:08:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:08:44]Read from MH i2c: E2 [20:08:44]MH_I2C_Read... [20:08:44]Read from MH i2c: E2 03 00 [20:08:44]MH_I2C_Read... [20:08:44]Read from MH i2c: E2 03 00 89 1C 00 90 00 19 [20:08:44]RAPDU: 90 00 [20:08:44]wFMCommunicate OK [20:08:44]wFMCommunicate request_size=255 [20:08:44]MH_SAM_APDU [20:08: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 CC 53 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0C CE 01 00 35 04 06 00 61 58 50 D6 [20:08:44]Write to MH i2c: E2 02 01 8A 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 CC 53 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0C CE 01 00 35 04 06 00 61 58 50 D6 00 00 26 [20:08:44]Write i2c OK [20:08:44]MH_I2C_Read... [20:08:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:44]Read from MH i2c: E2 [20:08:44]MH_I2C_Read... [20:08:44]Read from MH i2c: E2 03 00 [20:08:44]MH_I2C_Read... [20:08:44]Read from MH i2c: E2 03 00 8A 1C 00 90 00 1A [20:08:44]RAPDU: 90 00 [20:08:44]wFMCommunicate OK [20:08:44]wFMCommunicate request_size=7 [20:08:44]MH_SAM_APDU [20:08:44]CAPDU: 80 0D 02 02 02 6C 63 [20:08:44]Write to MH i2c: E2 0A 00 8B 1C 80 0D 02 02 02 00 6C 63 00 00 F4 [20:08:44]Write i2c OK [20:08:44]MH_I2C_Read... [20:08:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:44]Read from MH i2c: E2 [20:08:44]MH_I2C_Read... [20:08:44]Read from MH i2c: E2 03 00 [20:08:44]MH_I2C_Read... [20:08:44]Read from MH i2c: E2 03 00 8B 1C 00 90 00 1B [20:08:44]RAPDU: 90 00 [20:08:44]wFMCommunicate OK [20:08:44]wFMCommunicate request_size=4 [20:08:44]MH_SAM_APDU [20:08:44]CAPDU: 80 0D 03 02 [20:08:44]Write to MH i2c: E2 08 00 8C 1C 80 0D 03 02 00 00 00 00 23 [20:08:44]Write i2c OK [20:08:44]MH_I2C_Read... [20:08:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:08:44]Read from MH i2c: E2 [20:08:44]MH_I2C_Read... [20:08:44]Read from MH i2c: E2 0B 00 [20:08:44]MH_I2C_Read... [20:08:44]Read from MH i2c: E2 0B 00 8C 1C 00 31 26 23 F3 8A C6 F4 FC 90 00 D1 [20:08:44]RAPDU: 31 26 23 F3 8A C6 F4 FC 90 00 [20:08:44]wFMCommunicate OK [20:08:44]SAM_PROTO_SignData done [20:08:44]FM_MakeSignedData done [20:08:44]CreateOFDProtocolMessage [20:08:44]wFMCommunicate request_size=4 [20:08:44]MH_SAM_APDU [20:08:44]CAPDU: 80 11 00 00 [20:08:44]Write to MH i2c: E2 08 00 8D 1C 80 11 00 00 00 00 00 00 23 [20:08:44]Write i2c OK [20:08:44]MH_I2C_Read... [20:08:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:44]Read from MH i2c: E2 [20:08:44]MH_I2C_Read... [20:08:44]Read from MH i2c: E2 17 00 [20:08:44]MH_I2C_Read... [20:08:44]Read from MH i2c: E2 17 00 8D 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7E [20:08:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:08:44]wFMCommunicate OK [20:08:44]CreateOFDProtocolMessage done [20:08:44]OFDSenderStorePacket 118284 [20:08:44]StoreOFDPacket docnum=118284 [20:08:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 5B CC 04 01 63 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 CC 53 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0C CE 01 00 35 04 06 00 61 58 50 D6 6C 63 31 26 23 F3 8A C6 F4 FC [20:08:44]CheckFolder [20:08:44]dirname=/storage/ofd_packets [20:08:44]CheckFolder done [20:08:44]ProducePacketName [20:08:44]name=ofd_packets/00118284 [20:08:44]NVStorageSaveData ofd_packets/00118284 [20:08:44]File name is /storage/ofd_packets/00118284 [20:08:44]Write 298 bytes [20:08:44]NVStorageSaveData done [20:08:44]OFDSenderStorePacket done [20:08:44]KKMCreateOFDPacket done [20:08:44]NVStorageSaveData kkm_last_timestamp [20:08:44]File name is /storage/kkm_last_timestamp [20:08:44]Write 4 bytes [20:08:44]NVStorageSaveData done [20:08:44]ExternCall_PrintAddStr [20:08:44]wPrintStart [20:08:44]Write to MH i2c: 01 00 00 8E 1C AA [20:08:44]Write i2c OK [20:08:44]MH_I2C_Read... [20:08:44]Read from MH i2c: 01 [20:08:44]MH_I2C_Read... [20:08:44]Read from MH i2c: 01 07 00 [20:08:44]MH_I2C_Read... [20:08:44]Read from MH i2c: 01 07 00 8E 1C 00 00 00 00 00 FF 0F BF [20:08:44]RasterBufferAndPrint [20:08:44]line Счет N : (1)949158 [20:08:44]line ИНН: 02508201610067 [20:08:44]line Контрольно-Кассовый Чек [20:08:44]line ПРОДАЖА [20:08:44]line ТРК (МРК, ГНК) : 21 [20:08:44]line Товар: 2710194800 [20:08:44]line ДТ-К-5 [20:08:44]line 13.130 * 76.20 [20:08:44]line = 1000.51 [20:08:44]line НДС 12% НСП 1% [20:08:44]line > о реализуемом товаре [20:08:44]line ОКРУГЛЕНИЕ: -0.51 [20:08:44]line ИТОГО: 1000.00 [20:08:44]line Внесено: 1000.00 [20:08:44]line СДАЧА: 0.00 [20:08:44]line НСП 1% : 8.85 [20:08:44]line НДС 12% : 106.25 [20:08:44]line Наличными: 1000.00 [20:08:44]line Безнал.: 0.00 [20:08:44]line Место: АЗС № 134 "Партнер Нефть" [20:08:44]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:08:44]line СНО: Общий режим [20:08:44]line Чек 227 27.07.2024 20:08 [20:08:44]line Смена: 432 ФФД: 1.0 [20:08:44]line ЗНМ: 0300000044 [20:08:44]line РНМ: 0000000000092660 [20:08:44]line Версия ККМ: 001 [20:08:44]line ФМ: 0000000000874939 [20:08:44]line ФД: 118284 [20:08:44]line ФПД: 107031941246051 [20:08:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T200844&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118284&fm=107031941246051&tin=02508201610067®Number=0000000000092660&sum=100000 [20:08:44]written 0, free lines is 4095 [20:08:44]OFD Sender: Processing packet 118284 [packets to send 86, broken 85] [20:08:44]ProducePacketName [20:08:44]name=ofd_packets/00118284 [20:08:44]OFD Sender: To server: pG, [20:08:44]CommunicateWithHost lk.salyk.kg:30040 [20:08:44]ConnectInit lk.salyk.kg [20:08:44]Connected sock=10 [20: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 34 39 33 39 0C 01 00 00 5B CC 04 01 63 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 CC 53 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0C CE 01 00 35 04 06 00 61 58 50 D6 6C 63 31 26 23 F3 8A C6 F4 FC [20:08:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 DA 93 47 00 13 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 34 39 33 39 10 04 04 00 0C CE 01 00 F4 03 04 00 5E 01 A5 66 B6 04 01 00 00 B7 D2 90 94 40 8B 32 9E [20:08:45]CommunicateWithHost err = 0 [20:08:45]CheckOFDResponse [20:08:45]1017 (14) - 77093643461234 [20:08:45]1041 (16) - 0000000000874939 [20:08:45]1040 (4) - 118284 [20:08:45]1012 (4) - 27.07.2024 14:17 [20:08:45]1206 (1) - 0 [20:08:45]OFD Sender: Remove packet 118284 [20:08:45]ProducePacketName [20:08:45]name=ofd_packets/00118284 [20:08:45]NVStorageDeleteData [20:08:45]Write to MH i2c: 01 00 00 B8 1C D4 [20:08:45]Write i2c OK [20:08:45]MH_I2C_Read... [20:08:45]Read from MH i2c: 01 [20:08:45]MH_I2C_Read... [20:08:45]Read from MH i2c: 01 07 00 [20:08:45]MH_I2C_Read... [20:08:45]Read from MH i2c: 01 07 00 B8 1C 00 00 00 00 00 E9 0C D0 [20:08:45]RasterBufferAndPrint [20:08:45]line [20:08:45]line [20:08:45]line [20:08:45]line [20:08:45]line [20:08:45]written 0, free lines is 3309 [20:08:45]MH_Cut [20:08:45]Write to MH i2c: D1 01 00 BF 1C 01 AD [20:08:45]Write i2c OK [20:08:45]MH_I2C_Read... [20:08:45]Read from MH i2c: D1 [20:08:45]MH_I2C_Read... [20:08:45]Read from MH i2c: D1 01 00 [20:08:45]MH_I2C_Read... [20:08:45]Read from MH i2c: D1 01 00 BF 1C 00 AC [20:08:45]Write to MH i2c: 01 00 00 C0 1C DC [20:08:45]Write i2c OK [20:08:45]MH_I2C_Read... [20:08:45]OFD Sender: No OFD packet to send [20:08:45]*** Cut start [20:08:45]*** Partial cut [20:08:45]*** CUTSNS_PIN = 1 [20:08:45]*** CUTSNS_PIN = 0 [20:08:46]*** Brake cut motor [20:08:46]Read from MH i2c: 01 [20:08:46]MH_I2C_Read... [20:08:46]*** Stop cut motor [20:08:46]*** Cut end [20:08:46]Read from MH i2c: 01 07 00 [20:08:46]MH_I2C_Read... [20:08:46]Read from MH i2c: 01 07 00 C0 1C 00 00 00 00 00 FF 0F F1 [20:08:46]process_action close_receipt done [20:08:46]requested_data is exist [20:08:46]produce_requested_data [20:08:46]requested_item fm.sn is exist - process it [20:08:46]wFMCommunicate request_size=4 [20:08:46]MH_SAM_APDU [20:08:46]CAPDU: 80 11 00 00 [20:08:46]Write to MH i2c: E2 08 00 C1 1C 80 11 00 00 00 00 00 00 57 [20:08:46]Write i2c OK [20:08:46]MH_I2C_Read... [20:08:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:46]Read from MH i2c: E2 [20:08:46]MH_I2C_Read... [20:08:46]Read from MH i2c: E2 17 00 [20:08:46]MH_I2C_Read... [20:08:46]Read from MH i2c: E2 17 00 C1 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B2 [20:08:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:08:46]wFMCommunicate OK [20:08:46]requested_item fd.num is exist - process it [20:08:46]SAM_PROTO_GetFieldsCounters [20:08:46]wFMCommunicate request_size=4 [20:08:46]MH_SAM_APDU [20:08:46]CAPDU: 80 13 00 00 [20:08:46]Write to MH i2c: E2 08 00 C2 1C 80 13 00 00 00 00 00 00 5A [20:08:46]Write i2c OK [20:08:46]MH_I2C_Read... [20:08:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:08:46]Read from MH i2c: E2 [20:08:46]MH_I2C_Read... [20:08:46]Read from MH i2c: E2 62 00 [20:08:46]MH_I2C_Read... [20:08:46]Read from MH i2c: E2 62 00 C2 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0C CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [20: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0C CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:08:46]wFMCommunicate OK [20:08:46]SAM_PROTO_GetFieldsCounters done [20:08:46]requested_item shift.num is exist - process it [20:08:46]requested_item shift.opened is exist - process it [20:08:46]req_shift_opened [20:08:46]FM_GetShiftState [20:08:46]SAM_PROTO_GetShiftState [20:08:46]wFMCommunicate request_size=4 [20:08:46]MH_SAM_APDU [20:08:46]CAPDU: 80 13 01 00 [20:08:46]Write to MH i2c: E2 08 00 C3 1C 80 13 01 00 00 00 00 00 5C [20:08:46]Write i2c OK [20:08:46]MH_I2C_Read... [20:08:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:46]Read from MH i2c: E2 [20:08:46]MH_I2C_Read... [20:08:46]Read from MH i2c: E2 0E 00 [20:08:46]MH_I2C_Read... [20:08:46]Read from MH i2c: E2 0E 00 C3 1C 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 E9 [20:08:46]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [20:08:46]wFMCommunicate OK [20:08:46]SAM_PROTO_GetShiftState done [20:08:46]FM_GetShiftState done [20:08:46]req_shift_opened done [20:08:46]requested_item shift.open_date is exist - process it [20:08:46]req_shift_open_date [20:08:46]req_shift_open_date done [20:08:46]produce_requested_data done [20:08:46]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118284,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [20:08:46]process_action_free close_receipt [20:08:46]json_value_free [20:08:46]json_value_free done [20:08:46]process_json_proto returns [20:08:46]Send response to host [20:08:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118284,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [20:08:46]free response buf [20:08:46]execute_script done [20:08:46]execute_script returns [20:08:46]free content buf [20:08:46]Sock 7.Close socket [20:08:46]Sock 7.Thread stoped [20:08:50]OFD Sender: No OFD packet to send [20:08:55]OFD Sender: No OFD packet to send [20:09:00]OFD Sender: No OFD packet to send [20:09:05]OFD Sender: No OFD packet to send [20:09:10]OFD Sender: No OFD packet to send [20:09:15]OFD Sender: No OFD packet to send [20:09:20]OFD Sender: No OFD packet to send [20:09:25]OFD Sender: No OFD packet to send [20:09:30]OFD Sender: No OFD packet to send [20:09:35]OFD Sender: No OFD packet to send [20:09:40]OFD Sender: No OFD packet to send [20:09:45]OFD Sender: No OFD packet to send [20:09:50]OFD Sender: No OFD packet to send [20:09:53]accept exits with 9 [20:09:53]New connection [20:09:53]New thread 3066953060 created [20:09:53]Thread 3067096420 joined [20:09:53]Waiting for new connection... [20:09:53] Sock 9.Parse request [20:09:53]Sock 9.Check first char [20:09:53]Sock 9.First char is OK [20:09:53]request: POST /json_proto HTTP/1.0 [20:09:53]Method: POST [20:09:53]URL: /json_proto [20:09:53]Method is POST - this is cgi request [20:09:53]url: /json_proto [20:09:53]query_string will be loaded in cgi processing [20:09:53]execute_cgi json_proto POST (null) [20:09:53]execute_cgi path=json_proto method=POST [20:09:53]POST find Content-Length [20:09:53]Host: 172.17.45.7:8080 [20:09:53]Content-Length: 819 [20:09:53]Content-Type: application/json [20:09:53] [20:09:53]POST finish read [20:09:53]Found Content-Length = 819 [20:09:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:53]execute_script... [20:09: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)949157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:53]POST & json_proto [20:09:53]process_json_proto [20:09:53]json parsed OK: [20:09:53]protocol is kg_v1.0 [20:09:53]action value=close_receipt [20:09:53]process_action close_receipt [20:09:53]cmd_close_receipt [20:09:53]MH_GetDate [20:09:53]Write to MH i2c: F0 00 00 C4 1C CF [20:09:53]Write i2c OK [20:09:53]MH_I2C_Read... [20:09:53]Read from MH i2c: F0 [20:09:53]MH_I2C_Read... [20:09:53]Read from MH i2c: F0 09 00 [20:09:53]MH_I2C_Read... [20:09:53]Read from MH i2c: F0 09 00 C4 1C 00 12 54 A5 66 90 0F 3E 66 8C [20:09:53]GetLastDocTimeStamp 1722110924 [20:09:53]current date 1722110994 [20:09:53]FM_GetShiftState [20:09:53]SAM_PROTO_GetShiftState [20:09:53]wFMCommunicate request_size=4 [20:09:53]MH_SAM_APDU [20:09:53]CAPDU: 80 13 01 00 [20:09:53]Write to MH i2c: E2 08 00 C5 1C 80 13 01 00 00 00 00 00 5E [20:09:53]Write i2c OK [20:09:53]MH_I2C_Read... [20:09:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:53]Read from MH i2c: E2 [20:09:53]MH_I2C_Read... [20:09:53]Read from MH i2c: E2 0E 00 [20:09:53]MH_I2C_Read... [20:09:53]Read from MH i2c: E2 0E 00 C5 1C 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 EB [20:09:53]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [20:09:53]wFMCommunicate OK [20:09:53]SAM_PROTO_GetShiftState done [20:09:53]FM_GetShiftState done [20:09:53]opened in 1722038845 [20:09:53]opened+sec_in_day 1722125245 [20:09:53]quantity*price = 200025 [20:09:53]sum+1 = 200026 [20:09:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 228 27.07.2024 20:09 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118285 ФПД: 9379620192444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T200954&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118285&fm=9379620192444&tin=02508201610067®Number=0000000000092660&sum=200000 [20:09:54]StoreToDocumentArchive [20:09:54]shift 432 fd 118285 [20:09:54]save to /storage/0432/doc_00118285 [20:09:54]save last doc name /storage/0432/doc_00118285 to /storage/kkm_last_doc_name [20:09:54]save OK [20:09:54]Clear old archive folders... [20:09:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:09:54]tlvbuf is B6F78720 [20:09:54]SAM_PROTO_ClearQueue [20:09:54]wFMCommunicate request_size=4 [20:09:54]MH_SAM_APDU [20:09:54]CAPDU: 80 09 00 00 [20:09:54]Write to MH i2c: E2 08 00 D2 1C 80 09 00 00 00 00 00 00 60 [20:09:54]Write i2c OK [20:09:54]MH_I2C_Read... [20:09:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:09:54]Read from MH i2c: E2 [20:09:54]MH_I2C_Read... [20:09:54]Read from MH i2c: E2 03 00 [20:09:54]MH_I2C_Read... [20:09:54]Read from MH i2c: E2 03 00 D2 1C 00 90 00 62 [20:09:54]RAPDU: 90 00 [20:09:54]wFMCommunicate OK [20:09:54]SAM_PROTO_ClearQueue done [20:09:54]KKMCreateOFDPacket [20:09:54]OFDProtocolAddRootSTLVToBuf [20:09:54]FM_MakeSignedData [20:09:54]FM_MakeSignedData [20:09:54]SAM_PROTO_SignData [20:09:54]wFMCommunicate request_size=4 [20:09:54]MH_SAM_APDU [20:09:54]CAPDU: 80 0D 01 02 [20:09:54]Write to MH i2c: E2 08 00 D3 1C 80 0D 01 02 00 00 00 00 68 [20:09:54]Write i2c OK [20:09:54]MH_I2C_Read... [20:09:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:09:54]Read from MH i2c: E2 [20:09:54]MH_I2C_Read... [20:09:54]Read from MH i2c: E2 03 00 [20:09:54]MH_I2C_Read... [20:09:54]Read from MH i2c: E2 03 00 D3 1C 00 90 00 63 [20:09:54]RAPDU: 90 00 [20:09:54]wFMCommunicate OK [20:09:54]wFMCommunicate request_size=255 [20:09:54]MH_SAM_APDU [20:09: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 12 54 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0D CE 01 00 35 04 06 00 08 87 DC EE [20:09:54]Write to MH i2c: E2 02 01 D4 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 12 54 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0D CE 01 00 35 04 06 00 08 87 DC EE 00 00 21 [20:09:54]Write i2c OK [20:09:54]MH_I2C_Read... [20:09:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:55]Read from MH i2c: E2 [20:09:55]MH_I2C_Read... [20:09:55]Read from MH i2c: E2 03 00 [20:09:55]MH_I2C_Read... [20:09:55]Read from MH i2c: E2 03 00 D4 1C 00 90 00 64 [20:09:55]RAPDU: 90 00 [20:09:55]wFMCommunicate OK [20:09:55]wFMCommunicate request_size=7 [20:09:55]MH_SAM_APDU [20:09:55]CAPDU: 80 0D 02 02 02 00 BC [20:09:55]Write to MH i2c: E2 0A 00 D5 1C 80 0D 02 02 02 00 00 BC 00 00 2B [20:09:55]Write i2c OK [20:09:55]MH_I2C_Read... [20:09:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:55]Read from MH i2c: E2 [20:09:55]MH_I2C_Read... [20:09:55]Read from MH i2c: E2 03 00 [20:09:55]MH_I2C_Read... [20:09:55]Read from MH i2c: E2 03 00 D5 1C 00 90 00 65 [20:09:55]RAPDU: 90 00 [20:09:55]wFMCommunicate OK [20:09:55]wFMCommunicate request_size=4 [20:09:55]MH_SAM_APDU [20:09:55]CAPDU: 80 0D 03 02 [20:09:55]Write to MH i2c: E2 08 00 D6 1C 80 0D 03 02 00 00 00 00 6D [20:09:55]Write i2c OK [20:09:55]MH_I2C_Read... [20:09:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:09:55]Read from MH i2c: E2 [20:09:55]MH_I2C_Read... [20:09:55]Read from MH i2c: E2 0B 00 [20:09:55]MH_I2C_Read... [20:09:55]Read from MH i2c: E2 0B 00 D6 1C 00 C0 6C 6C 22 A4 61 28 C2 90 00 17 [20:09:55]RAPDU: C0 6C 6C 22 A4 61 28 C2 90 00 [20:09:55]wFMCommunicate OK [20:09:55]SAM_PROTO_SignData done [20:09:55]FM_MakeSignedData done [20:09:55]CreateOFDProtocolMessage [20:09:55]wFMCommunicate request_size=4 [20:09:55]MH_SAM_APDU [20:09:55]CAPDU: 80 11 00 00 [20:09:55]Write to MH i2c: E2 08 00 D7 1C 80 11 00 00 00 00 00 00 6D [20:09:55]Write i2c OK [20:09:55]MH_I2C_Read... [20:09:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:55]Read from MH i2c: E2 [20:09:55]MH_I2C_Read... [20:09:55]Read from MH i2c: E2 17 00 [20:09:55]MH_I2C_Read... [20:09:55]Read from MH i2c: E2 17 00 D7 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C8 [20:09:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:09:55]wFMCommunicate OK [20:09:55]CreateOFDProtocolMessage done [20:09:55]OFDSenderStorePacket 118285 [20:09:55]StoreOFDPacket docnum=118285 [20:09:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 1A A3 04 01 81 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 12 54 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0D CE 01 00 35 04 06 00 08 87 DC EE 00 BC C0 6C 6C 22 A4 61 28 C2 [20:09:55]CheckFolder [20:09:55]dirname=/storage/ofd_packets [20:09:55]CheckFolder done [20:09:55]ProducePacketName [20:09:55]name=ofd_packets/00118285 [20:09:55]NVStorageSaveData ofd_packets/00118285 [20:09:55]File name is /storage/ofd_packets/00118285 [20:09:55]Write 298 bytes [20:09:55]NVStorageSaveData done [20:09:55]OFDSenderStorePacket done [20:09:55]KKMCreateOFDPacket done [20:09:55]NVStorageSaveData kkm_last_timestamp [20:09:55]File name is /storage/kkm_last_timestamp [20:09:55]Write 4 bytes [20:09:55]NVStorageSaveData done [20:09:55]ExternCall_PrintAddStr [20:09:55]wPrintStart [20:09:55]Write to MH i2c: 01 00 00 D8 1C F4 [20:09:55]Write i2c OK [20:09:55]MH_I2C_Read... [20:09:55]Read from MH i2c: 01 [20:09:55]MH_I2C_Read... [20:09:55]Read from MH i2c: 01 07 00 [20:09:55]MH_I2C_Read... [20:09:55]Read from MH i2c: 01 07 00 D8 1C 00 00 00 00 00 FF 0F 09 [20:09:55]RasterBufferAndPrint [20:09:55]line Счет N : (1)949157 [20:09:55]line ИНН: 02508201610067 [20:09:55]line Контрольно-Кассовый Чек [20:09:55]line ПРОДАЖА [20:09:55]line ТРК (МРК, ГНК) : 44 [20:09:55]line Товар: 2710194800 [20:09:55]line ДТ-К-5 [20:09:55]line 26.250 * 76.20 [20:09:55]line = 2000.25 [20:09:55]line НДС 12% НСП 1% [20:09:55]line > о реализуемом товаре [20:09:55]line ОКРУГЛЕНИЕ: -0.25 [20:09:55]line ИТОГО: 2000.00 [20:09:55]line НСП 1% : 17.70 [20:09:55]line НДС 12% : 212.42 [20:09:55]line Наличными: 0.00 [20:09:55]line Безнал.: 2000.00 [20:09:55]line Место: АЗС № 134 "Партнер Нефть" [20:09:55]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:09:55]line СНО: Общий режим [20:09:55]line Чек 228 27.07.2024 20:09 [20:09:55]line Смена: 432 ФФД: 1.0 [20:09:55]line ЗНМ: 0300000044 [20:09:55]line РНМ: 0000000000092660 [20:09:55]line Версия ККМ: 001 [20:09:55]line Платежная система: O! деньги [20:09:55]line ФМ: 0000000000874939 [20:09:55]line ФД: 118285 [20:09:55]line ФПД: 9379620192444 [20:09:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T200954&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118285&fm=9379620192444&tin=02508201610067®Number=0000000000092660&sum=200000 [20:09:55]OFD Sender: Processing packet 118285 [packets to send 86, broken 85] [20:09:55]ProducePacketName [20:09:55]name=ofd_packets/00118285 [20:09:55]OFD Sender: To server: pG, [20:09:55]CommunicateWithHost lk.salyk.kg:30040 [20:09:55]ConnectInit lk.salyk.kg [20:09:55]written 0, free lines is 4095 [20:09:55]Connected sock=10 [20:09:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 1A A3 04 01 81 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 12 54 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0D CE 01 00 35 04 06 00 08 87 DC EE 00 BC C0 6C 6C 22 A4 61 28 C2 [20:09:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 3C 07 47 00 C2 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0D CE 01 00 F4 03 04 00 A4 01 A5 66 B6 04 01 00 00 25 C6 82 A7 29 A8 4E 19 [20:09:55]CommunicateWithHost err = 0 [20:09:55]CheckOFDResponse [20:09:55]1017 (14) - 77093643461234 [20:09:55]1041 (16) - 0000000000874939 [20:09:55]1040 (4) - 118285 [20:09:55]1012 (4) - 27.07.2024 14:18 [20:09:55]1206 (1) - 0 [20:09:55]OFD Sender: Remove packet 118285 [20:09:55]ProducePacketName [20:09:55]name=ofd_packets/00118285 [20:09:55]NVStorageDeleteData [20:09:56]Write to MH i2c: 01 00 00 02 1D 1F [20:09:56]Write i2c OK [20:09:56]MH_I2C_Read... [20:09:56]Read from MH i2c: 01 [20:09:56]MH_I2C_Read... [20:09:56]Read from MH i2c: 01 07 00 [20:09:56]MH_I2C_Read... [20:09:56]Read from MH i2c: 01 07 00 02 1D 00 00 00 00 00 EE 0C 20 [20:09:56]RasterBufferAndPrint [20:09:56]line [20:09:56]line [20:09:56]line [20:09:56]line [20:09:56]line [20:09:56]written 0, free lines is 3316 [20:09:56]MH_Cut [20:09:56]Write to MH i2c: D1 01 00 09 1D 01 F8 [20:09:56]Write i2c OK [20:09:56]MH_I2C_Read... [20:09:56]Read from MH i2c: D1 [20:09:56]MH_I2C_Read... [20:09:56]Read from MH i2c: D1 01 00 [20:09:56]MH_I2C_Read... [20:09:56]Read from MH i2c: D1 01 00 09 1D 00 F7 [20:09:56]Write to MH i2c: 01 00 00 0A 1D 27 [20:09:56]Write i2c OK [20:09:56]MH_I2C_Read... [20:09:56]OFD Sender: No OFD packet to send [20:09:56]*** Cut start [20:09:56]*** Partial cut [20:09:56]*** CUTSNS_PIN = 1 [20:09:56]*** CUTSNS_PIN = 0 [20:09:57]*** Brake cut motor [20:09:57]Read from MH i2c: 01 [20:09:57]MH_I2C_Read... [20:09:57]*** Stop cut motor [20:09:57]*** Cut end [20:09:57]Read from MH i2c: 01 07 00 [20:09:57]MH_I2C_Read... [20:09:57]Read from MH i2c: 01 07 00 0A 1D 00 00 00 00 00 FF 0F 3C [20:09:57]process_action close_receipt done [20:09:57]requested_data is exist [20:09:57]produce_requested_data [20:09:57]requested_item fm.sn is exist - process it [20:09:57]wFMCommunicate request_size=4 [20:09:57]MH_SAM_APDU [20:09:57]CAPDU: 80 11 00 00 [20:09:57]Write to MH i2c: E2 08 00 0B 1D 80 11 00 00 00 00 00 00 A2 [20:09:57]Write i2c OK [20:09:57]MH_I2C_Read... [20:09:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:57]Read from MH i2c: E2 [20:09:57]MH_I2C_Read... [20:09:57]Read from MH i2c: E2 17 00 [20:09:57]MH_I2C_Read... [20:09:57]Read from MH i2c: E2 17 00 0B 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FD [20:09:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:09:57]wFMCommunicate OK [20:09:57]requested_item fd.num is exist - process it [20:09:57]SAM_PROTO_GetFieldsCounters [20:09:57]wFMCommunicate request_size=4 [20:09:57]MH_SAM_APDU [20:09:57]CAPDU: 80 13 00 00 [20:09:57]Write to MH i2c: E2 08 00 0C 1D 80 13 00 00 00 00 00 00 A5 [20:09:57]Write i2c OK [20:09:57]MH_I2C_Read... [20:09:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:09:57]Read from MH i2c: E2 [20:09:57]MH_I2C_Read... [20:09:57]Read from MH i2c: E2 62 00 [20:09:57]MH_I2C_Read... [20:09:57]Read from MH i2c: E2 62 00 0C 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0D CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [20:09:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0D CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:09:57]wFMCommunicate OK [20:09:57]SAM_PROTO_GetFieldsCounters done [20:09:57]requested_item shift.num is exist - process it [20:09:57]requested_item shift.opened is exist - process it [20:09:57]req_shift_opened [20:09:57]FM_GetShiftState [20:09:57]SAM_PROTO_GetShiftState [20:09:57]wFMCommunicate request_size=4 [20:09:57]MH_SAM_APDU [20:09:57]CAPDU: 80 13 01 00 [20:09:57]Write to MH i2c: E2 08 00 0D 1D 80 13 01 00 00 00 00 00 A7 [20:09:57]Write i2c OK [20:09:57]MH_I2C_Read... [20:09:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:57]Read from MH i2c: E2 [20:09:57]MH_I2C_Read... [20:09:57]Read from MH i2c: E2 0E 00 [20:09:57]MH_I2C_Read... [20:09:57]Read from MH i2c: E2 0E 00 0D 1D 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 34 [20:09:57]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [20:09:57]wFMCommunicate OK [20:09:57]SAM_PROTO_GetShiftState done [20:09:57]FM_GetShiftState done [20:09:57]req_shift_opened done [20:09:57]requested_item shift.open_date is exist - process it [20:09:57]req_shift_open_date [20:09:57]req_shift_open_date done [20:09:57]produce_requested_data done [20:09:57]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118285,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [20:09:57]process_action_free close_receipt [20:09:57]json_value_free [20:09:57]json_value_free done [20:09:57]process_json_proto returns [20:09:57]Send response to host [20:09:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118285,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [20:09:57]free response buf [20:09:57]execute_script done [20:09:57]execute_script returns [20:09:57]free content buf [20:09:57]Sock 9.Close socket [20:09:57]Sock 9.Thread stoped [20:10:01]OFD Sender: No OFD packet to send [20:10:06]OFD Sender: No OFD packet to send [20:10:11]OFD Sender: No OFD packet to send [20:10:16]OFD Sender: No OFD packet to send [20:10:21]OFD Sender: No OFD packet to send [20:10:26]OFD Sender: No OFD packet to send [20:10:31]OFD Sender: No OFD packet to send [20:10:36]OFD Sender: No OFD packet to send [20:10:41]OFD Sender: No OFD packet to send [20:10:46]OFD Sender: No OFD packet to send [20:10:51]OFD Sender: No OFD packet to send [20:10:56]OFD Sender: No OFD packet to send [20:11:01]OFD Sender: No OFD packet to send [20:11:06]OFD Sender: No OFD packet to send [20:11:11]OFD Sender: No OFD packet to send [20:11:16]OFD Sender: No OFD packet to send [20:11:21]OFD Sender: No OFD packet to send [20:11:26]OFD Sender: No OFD packet to send [20:11:31]OFD Sender: No OFD packet to send [20:11:36]OFD Sender: No OFD packet to send [20:11:41]OFD Sender: No OFD packet to send [20:11:46]OFD Sender: No OFD packet to send [20:11:51]OFD Sender: No OFD packet to send [20:11:56]OFD Sender: No OFD packet to send [20:12:01]OFD Sender: No OFD packet to send [20:12:06]OFD Sender: No OFD packet to send [20:12:11]OFD Sender: No OFD packet to send [20:12:16]OFD Sender: No OFD packet to send [20:12:21]OFD Sender: No OFD packet to send [20:12:26]OFD Sender: No OFD packet to send [20:12:31]OFD Sender: No OFD packet to send [20:12:36]OFD Sender: No OFD packet to send [20:12:41]OFD Sender: No OFD packet to send [20:12:46]OFD Sender: No OFD packet to send [20:12:51]OFD Sender: No OFD packet to send [20:12:56]OFD Sender: No OFD packet to send [20:13:01]OFD Sender: No OFD packet to send [20:13:05]accept exits with 7 [20:13:05]New connection [20:13:05]New thread 3067096420 created [20:13:05]Thread 3066953060 joined [20:13:05]Waiting for new connection... [20:13:05] Sock 7.Parse request [20:13:05]Sock 7.Check first char [20:13:05]Sock 7.First char is OK [20:13:05]request: POST /json_proto HTTP/1.0 [20:13:05]Method: POST [20:13:05]URL: /json_proto [20:13:05]Method is POST - this is cgi request [20:13:05]url: /json_proto [20:13:05]query_string will be loaded in cgi processing [20:13:05]execute_cgi json_proto POST (null) [20:13:05]execute_cgi path=json_proto method=POST [20:13:05]POST find Content-Length [20:13:05]Host: 172.17.45.7:8080 [20:13:05]Content-Length: 677 [20:13:05]Content-Type: application/json [20:13:05] [20:13:05]POST finish read [20:13:05]Found Content-Length = 677 [20:13:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:13:05]execute_script... [20: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)949159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:13:05]POST & json_proto [20:13:05]process_json_proto [20:13:05]json parsed OK: [20:13:05]protocol is kg_v1.0 [20:13:05]action value=close_receipt [20:13:05]process_action close_receipt [20:13:05]cmd_close_receipt [20:13:05]MH_GetDate [20:13:05]Write to MH i2c: F0 00 00 0E 1D 1A [20:13:05]Write i2c OK [20:13:05]MH_I2C_Read... [20:13:05]Read from MH i2c: F0 [20:13:05]MH_I2C_Read... [20:13:05]Read from MH i2c: F0 09 00 [20:13:05]MH_I2C_Read... [20:13:05]Read from MH i2c: F0 09 00 0E 1D 00 D2 54 A5 66 90 0F 3E 66 97 [20:13:05]GetLastDocTimeStamp 1722110994 [20:13:05]current date 1722111186 [20:13:05]FM_GetShiftState [20:13:05]SAM_PROTO_GetShiftState [20:13:05]wFMCommunicate request_size=4 [20:13:05]MH_SAM_APDU [20:13:05]CAPDU: 80 13 01 00 [20:13:05]Write to MH i2c: E2 08 00 0F 1D 80 13 01 00 00 00 00 00 A9 [20:13:05]Write i2c OK [20:13:05]MH_I2C_Read... [20:13:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:05]Read from MH i2c: E2 [20:13:05]MH_I2C_Read... [20:13:05]Read from MH i2c: E2 0E 00 [20:13:05]MH_I2C_Read... [20:13:05]Read from MH i2c: E2 0E 00 0F 1D 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 36 [20:13:05]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [20:13:05]wFMCommunicate OK [20:13:05]SAM_PROTO_GetShiftState done [20:13:05]FM_GetShiftState done [20:13:05]opened in 1722038845 [20:13:05]opened+sec_in_day 1722125245 [20:13:05]quantity*price = 50036 [20:13:05]sum+1 = 50037 [20:13:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 229 27.07.2024 20:13 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118286 ФПД: 211359402620659 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T201306&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118286&fm=211359402620659&tin=02508201610067®Number=0000000000092660&sum=50000 [20:13:06]StoreToDocumentArchive [20:13:06]shift 432 fd 118286 [20:13:06]save to /storage/0432/doc_00118286 [20:13:06]save last doc name /storage/0432/doc_00118286 to /storage/kkm_last_doc_name [20:13:06]save OK [20:13:06]Clear old archive folders... [20:13:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:13:06]tlvbuf is 01DDEB30 [20:13:06]SAM_PROTO_ClearQueue [20:13:06]wFMCommunicate request_size=4 [20:13:06]MH_SAM_APDU [20:13:06]CAPDU: 80 09 00 00 [20:13:06]Write to MH i2c: E2 08 00 1C 1D 80 09 00 00 00 00 00 00 AB [20:13:06]Write i2c OK [20:13:06]MH_I2C_Read... [20:13:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:13:06]Read from MH i2c: E2 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: E2 03 00 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: E2 03 00 1C 1D 00 90 00 AD [20:13:06]RAPDU: 90 00 [20:13:06]wFMCommunicate OK [20:13:06]SAM_PROTO_ClearQueue done [20:13:06]KKMCreateOFDPacket [20:13:06]OFDProtocolAddRootSTLVToBuf [20:13:06]FM_MakeSignedData [20:13:06]FM_MakeSignedData [20:13:06]SAM_PROTO_SignData [20:13:06]wFMCommunicate request_size=4 [20:13:06]MH_SAM_APDU [20:13:06]CAPDU: 80 0D 01 02 [20:13:06]Write to MH i2c: E2 08 00 1D 1D 80 0D 01 02 00 00 00 00 B3 [20:13:06]Write i2c OK [20:13:06]MH_I2C_Read... [20:13:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:13:06]Read from MH i2c: E2 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: E2 03 00 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: E2 03 00 1D 1D 00 90 00 AE [20:13:06]RAPDU: 90 00 [20:13:06]wFMCommunicate OK [20:13:06]wFMCommunicate request_size=255 [20:13:06]MH_SAM_APDU [20: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E5 00 00 00 F4 03 04 00 D2 54 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0E CE 01 00 35 04 06 00 C0 [20:13:06]Write to MH i2c: E2 02 01 1E 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E5 00 00 00 F4 03 04 00 D2 54 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0E CE 01 00 35 04 06 00 C0 00 00 9B [20:13:06]Write i2c OK [20:13:06]MH_I2C_Read... [20:13:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:07]Read from MH i2c: E2 [20:13:07]MH_I2C_Read... [20:13:07]Read from MH i2c: E2 03 00 [20:13:07]MH_I2C_Read... [20:13:07]Read from MH i2c: E2 03 00 1E 1D 00 90 00 AF [20:13:07]RAPDU: 90 00 [20:13:07]wFMCommunicate OK [20:13:07]wFMCommunicate request_size=10 [20:13:07]MH_SAM_APDU [20:13:07]CAPDU: 80 0D 02 02 05 3A F2 1C F6 F3 [20:13:07]Write to MH i2c: E2 0D 00 1F 1D 80 0D 02 02 05 00 3A F2 1C F6 F3 00 00 F1 [20:13:07]Write i2c OK [20:13:07]MH_I2C_Read... [20:13:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:07]Read from MH i2c: E2 [20:13:07]MH_I2C_Read... [20:13:07]Read from MH i2c: E2 03 00 [20:13:07]MH_I2C_Read... [20:13:07]Read from MH i2c: E2 03 00 1F 1D 00 90 00 B0 [20:13:07]RAPDU: 90 00 [20:13:07]wFMCommunicate OK [20:13:07]wFMCommunicate request_size=4 [20:13:07]MH_SAM_APDU [20:13:07]CAPDU: 80 0D 03 02 [20:13:07]Write to MH i2c: E2 08 00 20 1D 80 0D 03 02 00 00 00 00 B8 [20:13:07]Write i2c OK [20:13:07]MH_I2C_Read... [20:13:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:13:07]Read from MH i2c: E2 [20:13:07]MH_I2C_Read... [20:13:07]Read from MH i2c: E2 0B 00 [20:13:07]MH_I2C_Read... [20:13:07]Read from MH i2c: E2 0B 00 20 1D 00 D4 C3 B8 8F 8F 7D 10 B0 90 00 63 [20:13:07]RAPDU: D4 C3 B8 8F 8F 7D 10 B0 90 00 [20:13:07]wFMCommunicate OK [20:13:07]SAM_PROTO_SignData done [20:13:07]FM_MakeSignedData done [20:13:07]CreateOFDProtocolMessage [20:13:07]wFMCommunicate request_size=4 [20:13:07]MH_SAM_APDU [20:13:07]CAPDU: 80 11 00 00 [20:13:07]Write to MH i2c: E2 08 00 21 1D 80 11 00 00 00 00 00 00 B8 [20:13:07]Write i2c OK [20:13:07]MH_I2C_Read... [20:13:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:07]Read from MH i2c: E2 [20:13:07]MH_I2C_Read... [20:13:07]Read from MH i2c: E2 17 00 [20:13:07]MH_I2C_Read... [20:13:07]Read from MH i2c: E2 17 00 21 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 13 [20:13:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:13:07]wFMCommunicate OK [20:13:07]CreateOFDProtocolMessage done [20:13:07]OFDSenderStorePacket 118286 [20:13:07]StoreOFDPacket docnum=118286 [20:13:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 1A 9F 07 01 C2 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E5 00 00 00 F4 03 04 00 D2 54 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0E CE 01 00 35 04 06 00 C0 3A F2 1C F6 F3 D4 C3 B8 8F 8F 7D 10 B0 [20:13:07]CheckFolder [20:13:07]dirname=/storage/ofd_packets [20:13:07]CheckFolder done [20:13:07]ProducePacketName [20:13:07]name=ofd_packets/00118286 [20:13:07]NVStorageSaveData ofd_packets/00118286 [20:13:07]File name is /storage/ofd_packets/00118286 [20:13:07]Write 301 bytes [20:13:07]NVStorageSaveData done [20:13:07]OFDSenderStorePacket done [20:13:07]KKMCreateOFDPacket done [20:13:07]NVStorageSaveData kkm_last_timestamp [20:13:07]File name is /storage/kkm_last_timestamp [20:13:07]Write 4 bytes [20:13:07]NVStorageSaveData done [20:13:07]ExternCall_PrintAddStr [20:13:07]wPrintStart [20:13:07]Write to MH i2c: 01 00 00 22 1D 3F [20:13:07]Write i2c OK [20:13:07]MH_I2C_Read... [20:13:07]Read from MH i2c: 01 [20:13:07]MH_I2C_Read... [20:13:07]Read from MH i2c: 01 07 00 [20:13:07]MH_I2C_Read... [20:13:07]Read from MH i2c: 01 07 00 22 1D 00 00 00 00 00 FF 0F 54 [20:13:07]RasterBufferAndPrint [20:13:07]line Счет N : (1)949159 [20:13:07]line ИНН: 02508201610067 [20:13:07]line Контрольно-Кассовый Чек [20:13:07]line ПРОДАЖА [20:13:07]line ТРК (МРК, ГНК) : 51 [20:13:07]line Товар: 2710124130 [20:13:07]line Аи-92-К-4 [20:13:07]line 7.380 * 67.80 [20:13:07]line = 500.36 [20:13:07]line НДС 12% НСП 1% [20:13:07]line > о реализуемом товаре [20:13:07]line ОКРУГЛЕНИЕ: -0.36 [20:13:07]line ИТОГО: 500.00 [20:13:07]line Внесено: 500.00 [20:13:07]line СДАЧА: 0.00 [20:13:07]line НСП 1% : 4.43 [20:13:07]line НДС 12% : 53.14 [20:13:07]line Наличными: 500.00 [20:13:07]line Безнал.: 0.00 [20:13:07]line Место: АЗС № 134 "Партнер Нефть" [20:13:07]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:13:07]line СНО: Общий режим [20:13:07]line Чек 229 27.07.2024 20:13 [20:13:07]line Смена: 432 ФФД: 1.0 [20:13:07]line ЗНМ: 0300000044 [20:13:07]line РНМ: 0000000000092660 [20:13:07]line Версия ККМ: 001 [20:13:07]line ФМ: 0000000000874939 [20:13:07]line ФД: 118286 [20:13:07]line ФПД: 211359402620659 [20:13:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T201306&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118286&fm=211359402620659&tin=02508201610067®Number=0000000000092660&sum=50000 [20:13:07]written 0, free lines is 4095 [20:13:07]OFD Sender: Processing packet 118286 [packets to send 86, broken 85] [20:13:07]ProducePacketName [20:13:07]name=ofd_packets/00118286 [20:13:07]OFD Sender: To server: pG, [20:13:07]CommunicateWithHost lk.salyk.kg:30040 [20:13:07]ConnectInit lk.salyk.kg [20:13:07]Connected sock=10 [20:13:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 1A 9F 07 01 C2 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E5 00 00 00 F4 03 04 00 D2 54 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0E CE 01 00 35 04 06 00 C0 3A F2 1C F6 F3 D4 C3 B8 8F 8F 7D 10 B0 [20:13:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 34 56 47 00 3B 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0E CE 01 00 F4 03 04 00 65 02 A5 66 B6 04 01 00 00 C7 A0 0E 98 BC 26 DC A8 [20:13:08]CommunicateWithHost err = 0 [20:13:08]CheckOFDResponse [20:13:08]1017 (14) - 77093643461234 [20:13:08]1041 (16) - 0000000000874939 [20:13:08]1040 (4) - 118286 [20:13:08]1012 (4) - 27.07.2024 14:21 [20:13:08]1206 (1) - 0 [20:13:08]OFD Sender: Remove packet 118286 [20:13:08]ProducePacketName [20:13:08]name=ofd_packets/00118286 [20:13:08]NVStorageDeleteData [20:13:08]Write to MH i2c: 01 00 00 4C 1D 69 [20:13:08]Write i2c OK [20:13:08]MH_I2C_Read... [20:13:08]Read from MH i2c: 01 [20:13:08]MH_I2C_Read... [20:13:08]Read from MH i2c: 01 07 00 [20:13:08]MH_I2C_Read... [20:13:08]Read from MH i2c: 01 07 00 4C 1D 00 00 00 00 00 E3 0C 5F [20:13:08]RasterBufferAndPrint [20:13:08]line [20:13:08]line [20:13:08]line [20:13:08]line [20:13:08]line [20:13:08]written 0, free lines is 3305 [20:13:08]MH_Cut [20:13:08]Write to MH i2c: D1 01 00 53 1D 01 42 [20:13:08]Write i2c OK [20:13:08]MH_I2C_Read... [20:13:08]Read from MH i2c: D1 [20:13:08]MH_I2C_Read... [20:13:08]Read from MH i2c: D1 01 00 [20:13:08]MH_I2C_Read... [20:13:08]Read from MH i2c: D1 01 00 53 1D 00 41 [20:13:08]Write to MH i2c: 01 00 00 54 1D 71 [20:13:08]Write i2c OK [20:13:08]MH_I2C_Read... [20:13:08]OFD Sender: No OFD packet to send [20:13:08]*** Cut start [20:13:08]*** Partial cut [20:13:08]*** CUTSNS_PIN = 1 [20:13:08]*** CUTSNS_PIN = 0 [20:13:09]*** Brake cut motor [20:13:09]Read from MH i2c: 01 [20:13:09]MH_I2C_Read... [20:13:09]*** Stop cut motor [20:13:09]*** Cut end [20:13:09]Read from MH i2c: 01 07 00 [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: 01 07 00 54 1D 00 00 00 00 00 FF 0F 86 [20:13:09]process_action close_receipt done [20:13:09]requested_data is exist [20:13:09]produce_requested_data [20:13:09]requested_item fm.sn is exist - process it [20:13:09]wFMCommunicate request_size=4 [20:13:09]MH_SAM_APDU [20:13:09]CAPDU: 80 11 00 00 [20:13:09]Write to MH i2c: E2 08 00 55 1D 80 11 00 00 00 00 00 00 EC [20:13:09]Write i2c OK [20:13:09]MH_I2C_Read... [20:13:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:09]Read from MH i2c: E2 [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: E2 17 00 [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: E2 17 00 55 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 47 [20:13:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:13:09]wFMCommunicate OK [20:13:09]requested_item fd.num is exist - process it [20:13:09]SAM_PROTO_GetFieldsCounters [20:13:09]wFMCommunicate request_size=4 [20:13:09]MH_SAM_APDU [20:13:09]CAPDU: 80 13 00 00 [20:13:09]Write to MH i2c: E2 08 00 56 1D 80 13 00 00 00 00 00 00 EF [20:13:09]Write i2c OK [20:13:09]MH_I2C_Read... [20:13:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:13:09]Read from MH i2c: E2 [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: E2 62 00 [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: E2 62 00 56 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0E CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [20: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0E CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:13:09]wFMCommunicate OK [20:13:09]SAM_PROTO_GetFieldsCounters done [20:13:09]requested_item shift.num is exist - process it [20:13:09]requested_item shift.opened is exist - process it [20:13:09]req_shift_opened [20:13:09]FM_GetShiftState [20:13:09]SAM_PROTO_GetShiftState [20:13:09]wFMCommunicate request_size=4 [20:13:09]MH_SAM_APDU [20:13:09]CAPDU: 80 13 01 00 [20:13:09]Write to MH i2c: E2 08 00 57 1D 80 13 01 00 00 00 00 00 F1 [20:13:09]Write i2c OK [20:13:09]MH_I2C_Read... [20:13:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:09]Read from MH i2c: E2 [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: E2 0E 00 [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: E2 0E 00 57 1D 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 7E [20:13:09]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [20:13:09]wFMCommunicate OK [20:13:09]SAM_PROTO_GetShiftState done [20:13:09]FM_GetShiftState done [20:13:09]req_shift_opened done [20:13:09]requested_item shift.open_date is exist - process it [20:13:09]req_shift_open_date [20:13:09]req_shift_open_date done [20:13:09]produce_requested_data done [20:13:09]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118286,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [20:13:09]process_action_free close_receipt [20:13:09]json_value_free [20:13:09]json_value_free done [20:13:09]process_json_proto returns [20:13:09]Send response to host [20:13:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118286,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [20:13:09]free response buf [20:13:09]execute_script done [20:13:09]execute_script returns [20:13:09]free content buf [20:13:09]Sock 7.Close socket [20:13:09]Sock 7.Thread stoped [20:13:13]OFD Sender: No OFD packet to send [20:13:15]accept exits with 9 [20:13:15]New connection [20:13:15]New thread 3066953060 created [20:13:15]Thread 3067096420 joined [20:13:15]Waiting for new connection... [20:13:15] Sock 9.Parse request [20:13:15]Sock 9.Check first char [20:13:15]Sock 9.First char is OK [20:13:15]request: POST /json_proto HTTP/1.0 [20:13:15]Method: POST [20:13:15]URL: /json_proto [20:13:15]Method is POST - this is cgi request [20:13:15]url: /json_proto [20:13:15]query_string will be loaded in cgi processing [20:13:15]execute_cgi json_proto POST (null) [20:13:15]execute_cgi path=json_proto method=POST [20:13:15]POST find Content-Length [20:13:15]Host: 172.17.45.7:8080 [20:13:15]Content-Length: 642 [20:13:15]Content-Type: application/json [20:13:15] [20:13:15]POST finish read [20:13:15]Found Content-Length = 642 [20:13:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 25.590, "sum" : 1735.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1735.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:13:15]execute_script... [20:13: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)949160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 25.590, "sum" : 1735.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1735.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:13:15]POST & json_proto [20:13:15]process_json_proto [20:13:15]json parsed OK: [20:13:15]protocol is kg_v1.0 [20:13:15]action value=close_receipt [20:13:15]process_action close_receipt [20:13:15]cmd_close_receipt [20:13:15]MH_GetDate [20:13:15]Write to MH i2c: F0 00 00 58 1D 64 [20:13:15]Write i2c OK [20:13:15]MH_I2C_Read... [20:13:15]Read from MH i2c: F0 [20:13:15]MH_I2C_Read... [20:13:15]Read from MH i2c: F0 09 00 [20:13:15]MH_I2C_Read... [20:13:15]Read from MH i2c: F0 09 00 58 1D 00 DC 54 A5 66 90 0F 3E 66 EB [20:13:15]GetLastDocTimeStamp 1722111186 [20:13:15]current date 1722111196 [20:13:15]FM_GetShiftState [20:13:15]SAM_PROTO_GetShiftState [20:13:15]wFMCommunicate request_size=4 [20:13:15]MH_SAM_APDU [20:13:15]CAPDU: 80 13 01 00 [20:13:15]Write to MH i2c: E2 08 00 59 1D 80 13 01 00 00 00 00 00 F3 [20:13:15]Write i2c OK [20:13:15]MH_I2C_Read... [20:13:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:15]Read from MH i2c: E2 [20:13:15]MH_I2C_Read... [20:13:15]Read from MH i2c: E2 0E 00 [20:13:15]MH_I2C_Read... [20:13:15]Read from MH i2c: E2 0E 00 59 1D 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 80 [20:13:15]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [20:13:15]wFMCommunicate OK [20:13:15]SAM_PROTO_GetShiftState done [20:13:15]FM_GetShiftState done [20:13:15]opened in 1722038845 [20:13:15]opened+sec_in_day 1722125245 [20:13:15]quantity*price = 173500 [20:13:15]sum+1 = 173501 [20:13:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1735.00 НСП 1% : 15.35 НДС 12% : 184.25 Наличными: 1735.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 230 27.07.2024 20:13 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118287 ФПД: 267302538406801 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T201316&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118287&fm=267302538406801&tin=02508201610067®Number=0000000000092660&sum=173500 [20:13:16]StoreToDocumentArchive [20:13:16]shift 432 fd 118287 [20:13:16]save to /storage/0432/doc_00118287 [20:13:16]save last doc name /storage/0432/doc_00118287 to /storage/kkm_last_doc_name [20:13:16]save OK [20:13:16]Clear old archive folders... [20:13:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:13:16]tlvbuf is 01E410A0 [20:13:16]SAM_PROTO_ClearQueue [20:13:16]wFMCommunicate request_size=4 [20:13:16]MH_SAM_APDU [20:13:16]CAPDU: 80 09 00 00 [20:13:16]Write to MH i2c: E2 08 00 66 1D 80 09 00 00 00 00 00 00 F5 [20:13:16]Write i2c OK [20:13:16]MH_I2C_Read... [20:13:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:13:16]Read from MH i2c: E2 [20:13:16]MH_I2C_Read... [20:13:16]Read from MH i2c: E2 03 00 [20:13:16]MH_I2C_Read... [20:13:16]Read from MH i2c: E2 03 00 66 1D 00 90 00 F7 [20:13:16]RAPDU: 90 00 [20:13:16]wFMCommunicate OK [20:13:16]SAM_PROTO_ClearQueue done [20:13:16]KKMCreateOFDPacket [20:13:16]OFDProtocolAddRootSTLVToBuf [20:13:16]FM_MakeSignedData [20:13:16]FM_MakeSignedData [20:13:16]SAM_PROTO_SignData [20:13:16]wFMCommunicate request_size=4 [20:13:16]MH_SAM_APDU [20:13:16]CAPDU: 80 0D 01 02 [20:13:16]Write to MH i2c: E2 08 00 67 1D 80 0D 01 02 00 00 00 00 FD [20:13:16]Write i2c OK [20:13:16]MH_I2C_Read... [20:13:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:13:16]Read from MH i2c: E2 [20:13:16]MH_I2C_Read... [20:13:16]Read from MH i2c: E2 03 00 [20:13:16]MH_I2C_Read... [20:13:16]Read from MH i2c: E2 03 00 67 1D 00 90 00 F8 [20:13:16]RAPDU: 90 00 [20:13:16]wFMCommunicate OK [20:13:16]wFMCommunicate request_size=255 [20:13:16]MH_SAM_APDU [20:13: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 34 FF 03 08 00 03 F6 63 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BC A5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC A5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 47 00 00 00 00 07 04 06 00 BC A5 02 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 DC 54 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0F CE 01 00 35 04 06 00 F3 [20:13:16]Write to MH i2c: E2 02 01 68 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 34 FF 03 08 00 03 F6 63 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BC A5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC A5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 47 00 00 00 00 07 04 06 00 BC A5 02 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 DC 54 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0F CE 01 00 35 04 06 00 F3 00 00 0B [20:13:16]Write i2c OK [20:13:16]MH_I2C_Read... [20:13:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:17]Read from MH i2c: E2 [20:13:17]MH_I2C_Read... [20:13:17]Read from MH i2c: E2 03 00 [20:13:17]MH_I2C_Read... [20:13:17]Read from MH i2c: E2 03 00 68 1D 00 90 00 F9 [20:13:17]RAPDU: 90 00 [20:13:17]wFMCommunicate OK [20:13:17]wFMCommunicate request_size=10 [20:13:17]MH_SAM_APDU [20:13:17]CAPDU: 80 0D 02 02 05 1C 38 D9 6B 91 [20:13:17]Write to MH i2c: E2 0D 00 69 1D 80 0D 02 02 05 00 1C 38 D9 6B 91 00 00 33 [20:13:17]Write i2c OK [20:13:17]MH_I2C_Read... [20:13:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:17]Read from MH i2c: E2 [20:13:17]MH_I2C_Read... [20:13:17]Read from MH i2c: E2 03 00 [20:13:17]MH_I2C_Read... [20:13:17]Read from MH i2c: E2 03 00 69 1D 00 90 00 FA [20:13:17]RAPDU: 90 00 [20:13:17]wFMCommunicate OK [20:13:17]wFMCommunicate request_size=4 [20:13:17]MH_SAM_APDU [20:13:17]CAPDU: 80 0D 03 02 [20:13:17]Write to MH i2c: E2 08 00 6A 1D 80 0D 03 02 00 00 00 00 02 [20:13:17]Write i2c OK [20:13:17]MH_I2C_Read... [20:13:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:13:17]Read from MH i2c: E2 [20:13:17]MH_I2C_Read... [20:13:17]Read from MH i2c: E2 0B 00 [20:13:17]MH_I2C_Read... [20:13:17]Read from MH i2c: E2 0B 00 6A 1D 00 E0 25 1C 42 C0 72 D7 7D 90 00 EC [20:13:17]RAPDU: E0 25 1C 42 C0 72 D7 7D 90 00 [20:13:17]wFMCommunicate OK [20:13:17]SAM_PROTO_SignData done [20:13:17]FM_MakeSignedData done [20:13:17]CreateOFDProtocolMessage [20:13:17]wFMCommunicate request_size=4 [20:13:17]MH_SAM_APDU [20:13:17]CAPDU: 80 11 00 00 [20:13:17]Write to MH i2c: E2 08 00 6B 1D 80 11 00 00 00 00 00 00 02 [20:13:17]Write i2c OK [20:13:17]MH_I2C_Read... [20:13:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:17]Read from MH i2c: E2 [20:13:17]MH_I2C_Read... [20:13:17]Read from MH i2c: E2 17 00 [20:13:17]MH_I2C_Read... [20:13:17]Read from MH i2c: E2 17 00 6B 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5D [20:13:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:13:17]wFMCommunicate OK [20:13:17]CreateOFDProtocolMessage done [20:13:17]OFDSenderStorePacket 118287 [20:13:17]StoreOFDPacket docnum=118287 [20:13:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 95 54 07 01 95 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F6 63 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BC A5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC A5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 47 00 00 00 00 07 04 06 00 BC A5 02 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 DC 54 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0F CE 01 00 35 04 06 00 F3 1C 38 D9 6B 91 E0 25 1C 42 C0 72 D7 7D [20:13:17]CheckFolder [20:13:17]dirname=/storage/ofd_packets [20:13:17]CheckFolder done [20:13:17]ProducePacketName [20:13:17]name=ofd_packets/00118287 [20:13:17]NVStorageSaveData ofd_packets/00118287 [20:13:17]File name is /storage/ofd_packets/00118287 [20:13:17]Write 301 bytes [20:13:17]NVStorageSaveData done [20:13:17]OFDSenderStorePacket done [20:13:17]KKMCreateOFDPacket done [20:13:17]NVStorageSaveData kkm_last_timestamp [20:13:17]File name is /storage/kkm_last_timestamp [20:13:17]Write 4 bytes [20:13:17]NVStorageSaveData done [20:13:17]ExternCall_PrintAddStr [20:13:17]wPrintStart [20:13:17]Write to MH i2c: 01 00 00 6C 1D 89 [20:13:17]Write i2c OK [20:13:17]MH_I2C_Read... [20:13:17]Read from MH i2c: 01 [20:13:17]MH_I2C_Read... [20:13:17]Read from MH i2c: 01 07 00 [20:13:17]MH_I2C_Read... [20:13:17]Read from MH i2c: 01 07 00 6C 1D 00 00 00 00 00 FF 0F 9E [20:13:17]RasterBufferAndPrint [20:13:17]line Счет N : (1)949160 [20:13:17]line ИНН: 02508201610067 [20:13:17]line Контрольно-Кассовый Чек [20:13:17]line ПРОДАЖА [20:13:17]line ТРК (МРК, ГНК) : 41 [20:13:17]line Товар: 2710124130 [20:13:17]line Аи-92-К-4 [20:13:17]line 25.590 * 67.80 [20:13:17]line = 1735.00 [20:13:17]line НДС 12% НСП 1% [20:13:17]line > о реализуемом товаре [20:13:17]line ИТОГО: 1735.00 [20:13:17]line НСП 1% : 15.35 [20:13:17]line НДС 12% : 184.25 [20:13:17]line Наличными: 1735.00 [20:13:17]line Безнал.: 0.00 [20:13:17]line Место: АЗС № 134 "Партнер Нефть" [20:13:17]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:13:17]line СНО: Общий режим [20:13:17]line Чек 230 27.07.2024 20:13 [20:13:17]line Смена: 432 ФФД: 1.0 [20:13:17]line ЗНМ: 0300000044 [20:13:17]line РНМ: 0000000000092660 [20:13:17]line Версия ККМ: 001 [20:13:17]line ФМ: 0000000000874939 [20:13:17]line ФД: 118287 [20:13:17]line ФПД: 267302538406801 [20:13:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T201316&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118287&fm=267302538406801&tin=02508201610067®Number=0000000000092660&sum=173500 [20:13:17]OFD Sender: Processing packet 118287 [packets to send 86, broken 85] [20:13:17]ProducePacketName [20:13:17]name=ofd_packets/00118287 [20:13:17]OFD Sender: To server: pG, [20:13:17]CommunicateWithHost lk.salyk.kg:30040 [20:13:17]ConnectInit lk.salyk.kg [20:13:17]written 0, free lines is 4095 [20:13:17]Connected sock=10 [20:13:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 95 54 07 01 95 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F6 63 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BC A5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC A5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 47 00 00 00 00 07 04 06 00 BC A5 02 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 DC 54 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0F CE 01 00 35 04 06 00 F3 1C 38 D9 6B 91 E0 25 1C 42 C0 72 D7 7D [20:13:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 4C 47 47 00 7D 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0F CE 01 00 F4 03 04 00 6E 02 A5 66 B6 04 01 00 00 7C 0D 65 9E 9A 63 EE FC [20:13:17]CommunicateWithHost err = 0 [20:13:17]CheckOFDResponse [20:13:17]1017 (14) - 77093643461234 [20:13:17]1041 (16) - 0000000000874939 [20:13:17]1040 (4) - 118287 [20:13:17]1012 (4) - 27.07.2024 14:21 [20:13:17]1206 (1) - 0 [20:13:17]OFD Sender: Remove packet 118287 [20:13:17]ProducePacketName [20:13:17]name=ofd_packets/00118287 [20:13:17]NVStorageDeleteData [20:13:17]Write to MH i2c: 01 00 00 93 1D B0 [20:13:17]Write i2c OK [20:13:17]MH_I2C_Read... [20:13:17]Read from MH i2c: 01 [20:13:17]MH_I2C_Read... [20:13:17]Read from MH i2c: 01 07 00 [20:13:17]MH_I2C_Read... [20:13:17]Read from MH i2c: 01 07 00 93 1D 00 00 00 00 00 0D 0D D1 [20:13:17]RasterBufferAndPrint [20:13:17]line [20:13:17]line [20:13:17]line [20:13:17]line [20:13:17]line [20:13:17]written 0, free lines is 3350 [20:13:17]MH_Cut [20:13:17]Write to MH i2c: D1 01 00 9A 1D 01 89 [20:13:17]Write i2c OK [20:13:17]MH_I2C_Read... [20:13:17]Read from MH i2c: D1 [20:13:17]MH_I2C_Read... [20:13:17]Read from MH i2c: D1 01 00 [20:13:17]MH_I2C_Read... [20:13:17]Read from MH i2c: D1 01 00 9A 1D 00 88 [20:13:17]Write to MH i2c: 01 00 00 9B 1D B8 [20:13:17]Write i2c OK [20:13:17]MH_I2C_Read... [20:13:18]OFD Sender: No OFD packet to send [20:13:18]*** Cut start [20:13:18]*** Partial cut [20:13:18]*** CUTSNS_PIN = 1 [20:13:18]*** CUTSNS_PIN = 0 [20:13:18]*** Brake cut motor [20:13:19]Read from MH i2c: 01 [20:13:19]MH_I2C_Read... [20:13:19]*** Stop cut motor [20:13:19]*** Cut end [20:13:19]Read from MH i2c: 01 07 00 [20:13:19]MH_I2C_Read... [20:13:19]Read from MH i2c: 01 07 00 9B 1D 00 00 00 00 00 FF 0F CD [20:13:19]process_action close_receipt done [20:13:19]requested_data is exist [20:13:19]produce_requested_data [20:13:19]requested_item fm.sn is exist - process it [20:13:19]wFMCommunicate request_size=4 [20:13:19]MH_SAM_APDU [20:13:19]CAPDU: 80 11 00 00 [20:13:19]Write to MH i2c: E2 08 00 9C 1D 80 11 00 00 00 00 00 00 33 [20:13:19]Write i2c OK [20:13:19]MH_I2C_Read... [20:13:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:19]Read from MH i2c: E2 [20:13:19]MH_I2C_Read... [20:13:19]Read from MH i2c: E2 17 00 [20:13:19]MH_I2C_Read... [20:13:19]Read from MH i2c: E2 17 00 9C 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8E [20:13:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:13:19]wFMCommunicate OK [20:13:19]requested_item fd.num is exist - process it [20:13:19]SAM_PROTO_GetFieldsCounters [20:13:19]wFMCommunicate request_size=4 [20:13:19]MH_SAM_APDU [20:13:19]CAPDU: 80 13 00 00 [20:13:19]Write to MH i2c: E2 08 00 9D 1D 80 13 00 00 00 00 00 00 36 [20:13:19]Write i2c OK [20:13:19]MH_I2C_Read... [20:13:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:13:19]Read from MH i2c: E2 [20:13:19]MH_I2C_Read... [20:13:19]Read from MH i2c: E2 62 00 [20:13:19]MH_I2C_Read... [20:13:19]Read from MH i2c: E2 62 00 9D 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0F CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [20:13:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0F CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:13:19]wFMCommunicate OK [20:13:19]SAM_PROTO_GetFieldsCounters done [20:13:19]requested_item shift.num is exist - process it [20:13:19]requested_item shift.opened is exist - process it [20:13:19]req_shift_opened [20:13:19]FM_GetShiftState [20:13:19]SAM_PROTO_GetShiftState [20:13:19]wFMCommunicate request_size=4 [20:13:19]MH_SAM_APDU [20:13:19]CAPDU: 80 13 01 00 [20:13:19]Write to MH i2c: E2 08 00 9E 1D 80 13 01 00 00 00 00 00 38 [20:13:19]Write i2c OK [20:13:19]MH_I2C_Read... [20:13:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:19]Read from MH i2c: E2 [20:13:19]MH_I2C_Read... [20:13:19]Read from MH i2c: E2 0E 00 [20:13:19]MH_I2C_Read... [20:13:19]Read from MH i2c: E2 0E 00 9E 1D 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 C5 [20:13:19]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [20:13:19]wFMCommunicate OK [20:13:19]SAM_PROTO_GetShiftState done [20:13:19]FM_GetShiftState done [20:13:19]req_shift_opened done [20:13:19]requested_item shift.open_date is exist - process it [20:13:19]req_shift_open_date [20:13:19]req_shift_open_date done [20:13:19]produce_requested_data done [20:13:19]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118287,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [20:13:19]process_action_free close_receipt [20:13:19]json_value_free [20:13:19]json_value_free done [20:13:19]process_json_proto returns [20:13:19]Send response to host [20:13:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118287,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [20:13:19]free response buf [20:13:19]execute_script done [20:13:19]execute_script returns [20:13:19]free content buf [20:13:19]Sock 9.Close socket [20:13:19]Sock 9.Thread stoped [20:13:23]OFD Sender: No OFD packet to send [20:13:28]OFD Sender: No OFD packet to send [20:13:33]OFD Sender: No OFD packet to send [20:13:38]OFD Sender: No OFD packet to send [20:13:43]OFD Sender: No OFD packet to send [20:13:48]OFD Sender: No OFD packet to send [20:13:53]OFD Sender: No OFD packet to send [20:13:58]OFD Sender: No OFD packet to send [20:14:00]accept exits with 7 [20:14:00]New connection [20:14:00]New thread 3067096420 created [20:14:00]Thread 3066953060 joined [20:14:00]Waiting for new connection... [20:14:00] Sock 7.Parse request [20:14:00]Sock 7.Check first char [20:14:00]Sock 7.First char is OK [20:14:00]request: POST /json_proto HTTP/1.0 [20:14:00]Method: POST [20:14:00]URL: /json_proto [20:14:00]Method is POST - this is cgi request [20:14:00]url: /json_proto [20:14:00]query_string will be loaded in cgi processing [20:14:00]execute_cgi json_proto POST (null) [20:14:00]execute_cgi path=json_proto method=POST [20:14:00]POST find Content-Length [20:14:00]Host: 172.17.45.7:8080 [20:14:00]Content-Length: 678 [20:14:00]Content-Type: application/json [20:14:00] [20:14:00]POST finish read [20:14:00]Found Content-Length = 678 [20:14:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:00]execute_script... [20:14: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)949161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:00]POST & json_proto [20:14:00]process_json_proto [20:14:00]json parsed OK: [20:14:00]protocol is kg_v1.0 [20:14:00]action value=close_receipt [20:14:00]process_action close_receipt [20:14:00]cmd_close_receipt [20:14:00]MH_GetDate [20:14:00]Write to MH i2c: F0 00 00 9F 1D AB [20:14:00]Write i2c OK [20:14:00]MH_I2C_Read... [20:14:00]Read from MH i2c: F0 [20:14:00]MH_I2C_Read... [20:14:00]Read from MH i2c: F0 09 00 [20:14:00]MH_I2C_Read... [20:14:00]Read from MH i2c: F0 09 00 9F 1D 00 09 55 A5 66 90 0F 3E 66 60 [20:14:00]GetLastDocTimeStamp 1722111196 [20:14:00]current date 1722111241 [20:14:00]FM_GetShiftState [20:14:00]SAM_PROTO_GetShiftState [20:14:00]wFMCommunicate request_size=4 [20:14:00]MH_SAM_APDU [20:14:00]CAPDU: 80 13 01 00 [20:14:00]Write to MH i2c: E2 08 00 A0 1D 80 13 01 00 00 00 00 00 3A [20:14:00]Write i2c OK [20:14:00]MH_I2C_Read... [20:14:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:00]Read from MH i2c: E2 [20:14:00]MH_I2C_Read... [20:14:00]Read from MH i2c: E2 0E 00 [20:14:00]MH_I2C_Read... [20:14:00]Read from MH i2c: E2 0E 00 A0 1D 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 C7 [20:14:00]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [20:14:00]wFMCommunicate OK [20:14:00]SAM_PROTO_GetShiftState done [20:14:00]FM_GetShiftState done [20:14:00]opened in 1722038845 [20:14:00]opened+sec_in_day 1722125245 [20:14:00]quantity*price = 70037 [20:14:00]sum+1 = 70038 [20:14:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 231 27.07.2024 20:14 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118288 ФПД: 272862843207209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T201401&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118288&fm=272862843207209&tin=02508201610067®Number=0000000000092660&sum=70000 [20:14:01]StoreToDocumentArchive [20:14:01]shift 432 fd 118288 [20:14:01]save to /storage/0432/doc_00118288 [20:14:01]save last doc name /storage/0432/doc_00118288 to /storage/kkm_last_doc_name [20:14:01]save OK [20:14:01]Clear old archive folders... [20:14:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:14:01]tlvbuf is B6DCBB90 [20:14:01]SAM_PROTO_ClearQueue [20:14:01]wFMCommunicate request_size=4 [20:14:01]MH_SAM_APDU [20:14:01]CAPDU: 80 09 00 00 [20:14:01]Write to MH i2c: E2 08 00 AD 1D 80 09 00 00 00 00 00 00 3C [20:14:01]Write i2c OK [20:14:01]MH_I2C_Read... [20:14:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:14:01]Read from MH i2c: E2 [20:14:01]MH_I2C_Read... [20:14:01]Read from MH i2c: E2 03 00 [20:14:01]MH_I2C_Read... [20:14:01]Read from MH i2c: E2 03 00 AD 1D 00 90 00 3E [20:14:01]RAPDU: 90 00 [20:14:01]wFMCommunicate OK [20:14:01]SAM_PROTO_ClearQueue done [20:14:01]KKMCreateOFDPacket [20:14:01]OFDProtocolAddRootSTLVToBuf [20:14:01]FM_MakeSignedData [20:14:01]FM_MakeSignedData [20:14:01]SAM_PROTO_SignData [20:14:01]wFMCommunicate request_size=4 [20:14:01]MH_SAM_APDU [20:14:01]CAPDU: 80 0D 01 02 [20:14:01]Write to MH i2c: E2 08 00 AE 1D 80 0D 01 02 00 00 00 00 44 [20:14:01]Write i2c OK [20:14:01]MH_I2C_Read... [20:14:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:14:01]Read from MH i2c: E2 [20:14:01]MH_I2C_Read... [20:14:01]Read from MH i2c: E2 03 00 [20:14:01]MH_I2C_Read... [20:14:01]Read from MH i2c: E2 03 00 AE 1D 00 90 00 3F [20:14:01]RAPDU: 90 00 [20:14:01]wFMCommunicate OK [20:14:01]wFMCommunicate request_size=255 [20:14:01]MH_SAM_APDU [20:14: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 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 E7 00 00 00 F4 03 04 00 09 55 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 10 CE 01 00 35 04 06 00 F8 [20:14:01]Write to MH i2c: E2 02 01 AF 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 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 E7 00 00 00 F4 03 04 00 09 55 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 10 CE 01 00 35 04 06 00 F8 00 00 87 [20:14:01]Write i2c OK [20:14:01]MH_I2C_Read... [20:14:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:01]Read from MH i2c: E2 [20:14:01]MH_I2C_Read... [20:14:01]Read from MH i2c: E2 03 00 [20:14:01]MH_I2C_Read... [20:14:01]Read from MH i2c: E2 03 00 AF 1D 00 90 00 40 [20:14:01]RAPDU: 90 00 [20:14:01]wFMCommunicate OK [20:14:01]wFMCommunicate request_size=10 [20:14:01]MH_SAM_APDU [20:14:01]CAPDU: 80 0D 02 02 05 2A D4 D7 7E 29 [20:14:01]Write to MH i2c: E2 0D 00 B0 1D 80 0D 02 02 05 00 2A D4 D7 7E 29 00 00 CD [20:14:01]Write i2c OK [20:14:01]MH_I2C_Read... [20:14:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:01]Read from MH i2c: E2 [20:14:01]MH_I2C_Read... [20:14:01]Read from MH i2c: E2 03 00 [20:14:01]MH_I2C_Read... [20:14:01]Read from MH i2c: E2 03 00 B0 1D 00 90 00 41 [20:14:01]RAPDU: 90 00 [20:14:01]wFMCommunicate OK [20:14:01]wFMCommunicate request_size=4 [20:14:01]MH_SAM_APDU [20:14:01]CAPDU: 80 0D 03 02 [20:14:01]Write to MH i2c: E2 08 00 B1 1D 80 0D 03 02 00 00 00 00 49 [20:14:01]Write i2c OK [20:14:01]MH_I2C_Read... [20:14:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:14:01]Read from MH i2c: E2 [20:14:01]MH_I2C_Read... [20:14:01]Read from MH i2c: E2 0B 00 [20:14:01]MH_I2C_Read... [20:14:01]Read from MH i2c: E2 0B 00 B1 1D 00 C2 79 C6 20 BA D0 93 20 90 00 A8 [20:14:01]RAPDU: C2 79 C6 20 BA D0 93 20 90 00 [20:14:01]wFMCommunicate OK [20:14:01]SAM_PROTO_SignData done [20:14:01]FM_MakeSignedData done [20:14:01]CreateOFDProtocolMessage [20:14:01]wFMCommunicate request_size=4 [20:14:01]MH_SAM_APDU [20:14:01]CAPDU: 80 11 00 00 [20:14:01]Write to MH i2c: E2 08 00 B2 1D 80 11 00 00 00 00 00 00 49 [20:14:01]Write i2c OK [20:14:01]MH_I2C_Read... [20:14:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:01]Read from MH i2c: E2 [20:14:01]MH_I2C_Read... [20:14:01]Read from MH i2c: E2 17 00 [20:14:01]MH_I2C_Read... [20:14:01]Read from MH i2c: E2 17 00 B2 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A4 [20:14:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:14:01]wFMCommunicate OK [20:14:01]CreateOFDProtocolMessage done [20:14:01]OFDSenderStorePacket 118288 [20:14:01]StoreOFDPacket docnum=118288 [20:14:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 AD 42 07 01 76 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 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 E7 00 00 00 F4 03 04 00 09 55 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 10 CE 01 00 35 04 06 00 F8 2A D4 D7 7E 29 C2 79 C6 20 BA D0 93 20 [20:14:01]CheckFolder [20:14:01]dirname=/storage/ofd_packets [20:14:01]CheckFolder done [20:14:01]ProducePacketName [20:14:01]name=ofd_packets/00118288 [20:14:01]NVStorageSaveData ofd_packets/00118288 [20:14:01]File name is /storage/ofd_packets/00118288 [20:14:01]Write 301 bytes [20:14:01]NVStorageSaveData done [20:14:01]OFDSenderStorePacket done [20:14:01]KKMCreateOFDPacket done [20:14:01]NVStorageSaveData kkm_last_timestamp [20:14:01]File name is /storage/kkm_last_timestamp [20:14:01]Write 4 bytes [20:14:01]NVStorageSaveData done [20:14:01]ExternCall_PrintAddStr [20:14:01]wPrintStart [20:14:01]Write to MH i2c: 01 00 00 B3 1D D0 [20:14:01]Write i2c OK [20:14:01]MH_I2C_Read... [20:14:01]Read from MH i2c: 01 [20:14:01]MH_I2C_Read... [20:14:01]Read from MH i2c: 01 07 00 [20:14:01]MH_I2C_Read... [20:14:01]Read from MH i2c: 01 07 00 B3 1D 00 00 00 00 00 FF 0F E5 [20:14:01]RasterBufferAndPrint [20:14:01]line Счет N : (1)949161 [20:14:01]line ИНН: 02508201610067 [20:14:01]line Контрольно-Кассовый Чек [20:14:01]line ПРОДАЖА [20:14:01]line ТРК (МРК, ГНК) : 61 [20:14:01]line Товар: 2710124130 [20:14:01]line Аи-92-К-4 [20:14:01]line 10.330 * 67.80 [20:14:01]line = 700.37 [20:14:01]line НДС 12% НСП 1% [20:14:01]line > о реализуемом товаре [20:14:01]line ОКРУГЛЕНИЕ: -0.37 [20:14:01]line ИТОГО: 700.00 [20:14:01]line Внесено: 700.00 [20:14:01]line СДАЧА: 0.00 [20:14:01]line НСП 1% : 6.20 [20:14:01]line НДС 12% : 74.38 [20:14:01]line Наличными: 700.00 [20:14:01]line Безнал.: 0.00 [20:14:01]line Место: АЗС № 134 "Партнер Нефть" [20:14:01]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:14:01]line СНО: Общий режим [20:14:01]line Чек 231 27.07.2024 20:14 [20:14:01]line Смена: 432 ФФД: 1.0 [20:14:01]line ЗНМ: 0300000044 [20:14:01]line РНМ: 0000000000092660 [20:14:01]line Версия ККМ: 001 [20:14:01]line ФМ: 0000000000874939 [20:14:01]line ФД: 118288 [20:14:01]line ФПД: 272862843207209 [20:14:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T201401&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118288&fm=272862843207209&tin=02508201610067®Number=0000000000092660&sum=70000 [20:14:02]OFD Sender: Processing packet 118288 [packets to send 86, broken 85] [20:14:02]ProducePacketName [20:14:02]name=ofd_packets/00118288 [20:14:02]OFD Sender: To server: pG, [20:14:02]CommunicateWithHost lk.salyk.kg:30040 [20:14:02]ConnectInit lk.salyk.kg [20:14:02]written 0, free lines is 4095 [20:14:02]Connected sock=10 [20:14:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 AD 42 07 01 76 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 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 E7 00 00 00 F4 03 04 00 09 55 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 10 CE 01 00 35 04 06 00 F8 2A D4 D7 7E 29 C2 79 C6 20 BA D0 93 20 [20:14:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F7 DB 47 00 8C EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 10 CE 01 00 F4 03 04 00 9B 02 A5 66 B6 04 01 00 00 A2 75 C7 FF 8C 1E C7 C4 [20:14:02]CommunicateWithHost err = 0 [20:14:02]CheckOFDResponse [20:14:02]1017 (14) - 77093643461234 [20:14:02]1041 (16) - 0000000000874939 [20:14:02]1040 (4) - 118288 [20:14:02]1012 (4) - 27.07.2024 14:22 [20:14:02]1206 (1) - 0 [20:14:02]OFD Sender: Remove packet 118288 [20:14:02]ProducePacketName [20:14:02]name=ofd_packets/00118288 [20:14:02]NVStorageDeleteData [20:14:02]Write to MH i2c: 01 00 00 DD 1D FA [20:14:02]Write i2c OK [20:14:02]MH_I2C_Read... [20:14:02]Read from MH i2c: 01 [20:14:02]MH_I2C_Read... [20:14:02]Read from MH i2c: 01 07 00 [20:14:02]MH_I2C_Read... [20:14:02]Read from MH i2c: 01 07 00 DD 1D 00 00 00 00 00 EB 0C F8 [20:14:02]RasterBufferAndPrint [20:14:02]line [20:14:02]line [20:14:02]line [20:14:02]line [20:14:02]line [20:14:02]written 0, free lines is 3313 [20:14:02]MH_Cut [20:14:02]Write to MH i2c: D1 01 00 E4 1D 01 D3 [20:14:02]Write i2c OK [20:14:02]MH_I2C_Read... [20:14:02]Read from MH i2c: D1 [20:14:02]MH_I2C_Read... [20:14:02]Read from MH i2c: D1 01 00 [20:14:02]MH_I2C_Read... [20:14:02]Read from MH i2c: D1 01 00 E4 1D 00 D2 [20:14:02]Write to MH i2c: 01 00 00 E5 1D 02 [20:14:02]Write i2c OK [20:14:02]MH_I2C_Read... [20:14:02]OFD Sender: No OFD packet to send [20:14:03]*** Cut start [20:14:03]*** Partial cut [20:14:03]*** CUTSNS_PIN = 1 [20:14:03]*** CUTSNS_PIN = 0 [20:14:03]*** Brake cut motor [20:14:03]Read from MH i2c: 01 [20:14:03]MH_I2C_Read... [20:14:03]*** Stop cut motor [20:14:03]*** Cut end [20:14:03]Read from MH i2c: 01 07 00 [20:14:03]MH_I2C_Read... [20:14:03]Read from MH i2c: 01 07 00 E5 1D 00 00 00 00 00 FF 0F 17 [20:14:03]process_action close_receipt done [20:14:03]requested_data is exist [20:14:03]produce_requested_data [20:14:03]requested_item fm.sn is exist - process it [20:14:03]wFMCommunicate request_size=4 [20:14:03]MH_SAM_APDU [20:14:03]CAPDU: 80 11 00 00 [20:14:03]Write to MH i2c: E2 08 00 E6 1D 80 11 00 00 00 00 00 00 7D [20:14:03]Write i2c OK [20:14:03]MH_I2C_Read... [20:14:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:03]Read from MH i2c: E2 [20:14:03]MH_I2C_Read... [20:14:03]Read from MH i2c: E2 17 00 [20:14:03]MH_I2C_Read... [20:14:03]Read from MH i2c: E2 17 00 E6 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D8 [20:14:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:14:03]wFMCommunicate OK [20:14:03]requested_item fd.num is exist - process it [20:14:03]SAM_PROTO_GetFieldsCounters [20:14:03]wFMCommunicate request_size=4 [20:14:03]MH_SAM_APDU [20:14:03]CAPDU: 80 13 00 00 [20:14:03]Write to MH i2c: E2 08 00 E7 1D 80 13 00 00 00 00 00 00 80 [20:14:03]Write i2c OK [20:14:03]MH_I2C_Read... [20:14:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:14:04]Read from MH i2c: E2 [20:14:04]MH_I2C_Read... [20:14:04]Read from MH i2c: E2 62 00 [20:14:04]MH_I2C_Read... [20:14:04]Read from MH i2c: E2 62 00 E7 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 10 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [20:14:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 10 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:14:04]wFMCommunicate OK [20:14:04]SAM_PROTO_GetFieldsCounters done [20:14:04]requested_item shift.num is exist - process it [20:14:04]requested_item shift.opened is exist - process it [20:14:04]req_shift_opened [20:14:04]FM_GetShiftState [20:14:04]SAM_PROTO_GetShiftState [20:14:04]wFMCommunicate request_size=4 [20:14:04]MH_SAM_APDU [20:14:04]CAPDU: 80 13 01 00 [20:14:04]Write to MH i2c: E2 08 00 E8 1D 80 13 01 00 00 00 00 00 82 [20:14:04]Write i2c OK [20:14:04]MH_I2C_Read... [20:14:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:04]Read from MH i2c: E2 [20:14:04]MH_I2C_Read... [20:14:04]Read from MH i2c: E2 0E 00 [20:14:04]MH_I2C_Read... [20:14:04]Read from MH i2c: E2 0E 00 E8 1D 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 0F [20:14:04]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [20:14:04]wFMCommunicate OK [20:14:04]SAM_PROTO_GetShiftState done [20:14:04]FM_GetShiftState done [20:14:04]req_shift_opened done [20:14:04]requested_item shift.open_date is exist - process it [20:14:04]req_shift_open_date [20:14:04]req_shift_open_date done [20:14:04]produce_requested_data done [20:14:04]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118288,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [20:14:04]process_action_free close_receipt [20:14:04]json_value_free [20:14:04]json_value_free done [20:14:04]process_json_proto returns [20:14:04]Send response to host [20:14:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118288,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [20:14:04]free response buf [20:14:04]execute_script done [20:14:04]execute_script returns [20:14:04]free content buf [20:14:04]Sock 7.Close socket [20:14:04]Sock 7.Thread stoped [20:14:07]OFD Sender: No OFD packet to send [20:14:12]OFD Sender: No OFD packet to send [20:14:17]OFD Sender: No OFD packet to send [20:14:22]OFD Sender: No OFD packet to send [20:14:27]OFD Sender: No OFD packet to send [20:14:32]OFD Sender: No OFD packet to send [20:14:37]OFD Sender: No OFD packet to send [20:14:42]OFD Sender: No OFD packet to send [20:14:47]OFD Sender: No OFD packet to send [20:14:52]OFD Sender: No OFD packet to send [20:14:57]OFD Sender: No OFD packet to send [20:15:02]OFD Sender: No OFD packet to send [20:15:07]OFD Sender: No OFD packet to send [20:15:12]OFD Sender: No OFD packet to send [20:15:17]OFD Sender: No OFD packet to send [20:15: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:24]accept exits with 9 [20:17:24]New connection [20:17:24]New thread 3066953060 created [20:17:24]Thread 3067096420 joined [20:17:24]Waiting for new connection... [20:17:24] Sock 9.Parse request [20:17:24]Sock 9.Check first char [20:17:24]Sock 9.First char is OK [20:17:24]request: POST /json_proto HTTP/1.0 [20:17:24]Method: POST [20:17:24]URL: /json_proto [20:17:24]Method is POST - this is cgi request [20:17:24]url: /json_proto [20:17:24]query_string will be loaded in cgi processing [20:17:24]execute_cgi json_proto POST (null) [20:17:24]execute_cgi path=json_proto method=POST [20:17:24]POST find Content-Length [20:17:24]Host: 172.17.45.7:8080 [20:17:24]Content-Length: 674 [20:17:24]Content-Type: application/json [20:17:24] [20:17:24]POST finish read [20:17:24]Found Content-Length = 674 [20:17:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.290, "sum" : 250.70, "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" ] } } [20:17:24]execute_script... [20:17: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)949162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.290, "sum" : 250.70, "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" ] } } [20:17:24]POST & json_proto [20:17:24]process_json_proto [20:17:24]json parsed OK: [20:17:24]protocol is kg_v1.0 [20:17:24]action value=close_receipt [20:17:24]process_action close_receipt [20:17:24]cmd_close_receipt [20:17:24]MH_GetDate [20:17:24]Write to MH i2c: F0 00 00 E9 1D F5 [20:17:24]Write i2c OK [20:17:24]MH_I2C_Read... [20:17:24]Read from MH i2c: F0 [20:17:24]MH_I2C_Read... [20:17:24]Read from MH i2c: F0 09 00 [20:17:24]MH_I2C_Read... [20:17:24]Read from MH i2c: F0 09 00 E9 1D 00 D5 55 A5 66 90 0F 3E 66 76 [20:17:24]GetLastDocTimeStamp 1722111241 [20:17:24]current date 1722111445 [20:17:24]FM_GetShiftState [20:17:24]SAM_PROTO_GetShiftState [20:17:24]wFMCommunicate request_size=4 [20:17:24]MH_SAM_APDU [20:17:24]CAPDU: 80 13 01 00 [20:17:24]Write to MH i2c: E2 08 00 EA 1D 80 13 01 00 00 00 00 00 84 [20:17:24]Write i2c OK [20:17:24]MH_I2C_Read... [20:17:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:24]Read from MH i2c: E2 [20:17:24]MH_I2C_Read... [20:17:24]Read from MH i2c: E2 0E 00 [20:17:24]MH_I2C_Read... [20:17:24]Read from MH i2c: E2 0E 00 EA 1D 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 11 [20:17:24]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [20:17:24]wFMCommunicate OK [20:17:24]SAM_PROTO_GetShiftState done [20:17:24]FM_GetShiftState done [20:17:24]opened in 1722038845 [20:17:24]opened+sec_in_day 1722125245 [20:17:24]quantity*price = 25069 [20:17:24]sum+1 = 25071 [20:17:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.22 НДС 12% : 26.62 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 232 27.07.2024 20:17 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118289 ФПД: 154077636909471 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T201725&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118289&fm=154077636909471&tin=02508201610067®Number=0000000000092660&sum=25000 [20:17:25]StoreToDocumentArchive [20:17:25]shift 432 fd 118289 [20:17:25]save to /storage/0432/doc_00118289 [20:17:25]save last doc name /storage/0432/doc_00118289 to /storage/kkm_last_doc_name [20:17:25]save OK [20:17:25]Clear old archive folders... [20:17:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:17:25]tlvbuf is 01E27E30 [20:17:25]SAM_PROTO_ClearQueue [20:17:25]wFMCommunicate request_size=4 [20:17:25]MH_SAM_APDU [20:17:25]CAPDU: 80 09 00 00 [20:17:25]Write to MH i2c: E2 08 00 F7 1D 80 09 00 00 00 00 00 00 86 [20:17:25]Write i2c OK [20:17:25]MH_I2C_Read... [20:17:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:17:25]Read from MH i2c: E2 [20:17:25]MH_I2C_Read... [20:17:25]Read from MH i2c: E2 03 00 [20:17:25]MH_I2C_Read... [20:17:25]Read from MH i2c: E2 03 00 F7 1D 00 90 00 88 [20:17:25]RAPDU: 90 00 [20:17:25]wFMCommunicate OK [20:17:25]SAM_PROTO_ClearQueue done [20:17:25]KKMCreateOFDPacket [20:17:25]OFDProtocolAddRootSTLVToBuf [20:17:25]FM_MakeSignedData [20:17:25]FM_MakeSignedData [20:17:25]SAM_PROTO_SignData [20:17:25]wFMCommunicate request_size=4 [20:17:25]MH_SAM_APDU [20:17:25]CAPDU: 80 0D 01 02 [20:17:25]Write to MH i2c: E2 08 00 F8 1D 80 0D 01 02 00 00 00 00 8E [20:17:25]Write i2c OK [20:17:25]MH_I2C_Read... [20:17:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:17:25]Read from MH i2c: E2 [20:17:25]MH_I2C_Read... [20:17:25]Read from MH i2c: E2 03 00 [20:17:25]MH_I2C_Read... [20:17:25]Read from MH i2c: E2 03 00 F8 1D 00 90 00 89 [20:17:25]RAPDU: 90 00 [20:17:25]wFMCommunicate OK [20:17:25]wFMCommunicate request_size=255 [20:17:25]MH_SAM_APDU [20:17: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EE 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 66 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 E8 00 00 00 F4 03 04 00 D5 55 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 11 CE 01 00 35 04 06 00 8C 21 FE D0 [20:17:25]Write to MH i2c: E2 02 01 F9 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EE 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 66 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 E8 00 00 00 F4 03 04 00 D5 55 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 11 CE 01 00 35 04 06 00 8C 21 FE D0 00 00 95 [20:17:25]Write i2c OK [20:17:25]MH_I2C_Read... [20:17:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:25]Read from MH i2c: E2 [20:17:25]MH_I2C_Read... [20:17:25]Read from MH i2c: E2 03 00 [20:17:25]MH_I2C_Read... [20:17:25]Read from MH i2c: E2 03 00 F9 1D 00 90 00 8A [20:17:25]RAPDU: 90 00 [20:17:25]wFMCommunicate OK [20:17:25]wFMCommunicate request_size=7 [20:17:25]MH_SAM_APDU [20:17:25]CAPDU: 80 0D 02 02 02 D9 9F [20:17:25]Write to MH i2c: E2 0A 00 FA 1D 80 0D 02 02 02 00 D9 9F 00 00 0D [20:17:25]Write i2c OK [20:17:25]MH_I2C_Read... [20:17:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:25]Read from MH i2c: E2 [20:17:25]MH_I2C_Read... [20:17:25]Read from MH i2c: E2 03 00 [20:17:25]MH_I2C_Read... [20:17:25]Read from MH i2c: E2 03 00 FA 1D 00 90 00 8B [20:17:25]RAPDU: 90 00 [20:17:25]wFMCommunicate OK [20:17:25]wFMCommunicate request_size=4 [20:17:25]MH_SAM_APDU [20:17:25]CAPDU: 80 0D 03 02 [20:17:25]Write to MH i2c: E2 08 00 FB 1D 80 0D 03 02 00 00 00 00 93 [20:17:25]Write i2c OK [20:17:25]MH_I2C_Read... [20:17:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:17:25]Read from MH i2c: E2 [20:17:25]MH_I2C_Read... [20:17:25]Read from MH i2c: E2 0B 00 [20:17:25]MH_I2C_Read... [20:17:25]Read from MH i2c: E2 0B 00 FB 1D 00 94 81 C6 6F 27 C1 21 68 90 00 4F [20:17:25]RAPDU: 94 81 C6 6F 27 C1 21 68 90 00 [20:17:25]wFMCommunicate OK [20:17:25]SAM_PROTO_SignData done [20:17:25]FM_MakeSignedData done [20:17:25]CreateOFDProtocolMessage [20:17:25]wFMCommunicate request_size=4 [20:17:25]MH_SAM_APDU [20:17:25]CAPDU: 80 11 00 00 [20:17:25]Write to MH i2c: E2 08 00 FC 1D 80 11 00 00 00 00 00 00 93 [20:17:25]Write i2c OK [20:17:25]MH_I2C_Read... [20:17:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:25]Read from MH i2c: E2 [20:17:25]MH_I2C_Read... [20:17:25]Read from MH i2c: E2 17 00 [20:17:25]MH_I2C_Read... [20:17:25]Read from MH i2c: E2 17 00 FC 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EE [20:17:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:17:25]wFMCommunicate OK [20:17:25]CreateOFDProtocolMessage done [20:17:25]OFDSenderStorePacket 118289 [20:17:25]StoreOFDPacket docnum=118289 [20:17:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 8B B0 04 01 7A 32 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EE 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 66 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 E8 00 00 00 F4 03 04 00 D5 55 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 11 CE 01 00 35 04 06 00 8C 21 FE D0 D9 9F 94 81 C6 6F 27 C1 21 68 [20:17:25]CheckFolder [20:17:25]dirname=/storage/ofd_packets [20:17:25]CheckFolder done [20:17:25]ProducePacketName [20:17:25]name=ofd_packets/00118289 [20:17:25]NVStorageSaveData ofd_packets/00118289 [20:17:25]File name is /storage/ofd_packets/00118289 [20:17:25]Write 298 bytes [20:17:25]NVStorageSaveData done [20:17:25]OFDSenderStorePacket done [20:17:25]KKMCreateOFDPacket done [20:17:25]NVStorageSaveData kkm_last_timestamp [20:17:25]File name is /storage/kkm_last_timestamp [20:17:25]Write 4 bytes [20:17:25]NVStorageSaveData done [20:17:25]ExternCall_PrintAddStr [20:17:25]wPrintStart [20:17:25]Write to MH i2c: 01 00 00 FD 1D 1A [20:17:25]Write i2c OK [20:17:25]MH_I2C_Read... [20:17:25]Read from MH i2c: 01 [20:17:25]MH_I2C_Read... [20:17:25]Read from MH i2c: 01 07 00 [20:17:25]MH_I2C_Read... [20:17:25]Read from MH i2c: 01 07 00 FD 1D 00 00 00 00 00 FF 0F 2F [20:17:25]RasterBufferAndPrint [20:17:25]line Счет N : (1)949162 [20:17:25]line ИНН: 02508201610067 [20:17:25]line Контрольно-Кассовый Чек [20:17:25]line ПРОДАЖА [20:17:25]line ТРК (МРК, ГНК) : 34 [20:17:25]line Товар: 2710194800 [20:17:25]line ДТ-К-5 [20:17:25]line 3.290 * 76.20 [20:17:25]line = 250.70 [20:17:25]line НДС 12% НСП 1% [20:17:25]line > о реализуемом товаре [20:17:25]line ОКРУГЛЕНИЕ: -0.70 [20:17:25]line ИТОГО: 250.00 [20:17:25]line Внесено: 250.00 [20:17:25]line СДАЧА: 0.00 [20:17:25]line НСП 1% : 2.22 [20:17:25]line НДС 12% : 26.62 [20:17:25]line Наличными: 250.00 [20:17:25]line Безнал.: 0.00 [20:17:25]line Место: АЗС № 134 "Партнер Нефть" [20:17:25]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:17:25]line СНО: Общий режим [20:17:25]line Чек 232 27.07.2024 20:17 [20:17:25]line Смена: 432 ФФД: 1.0 [20:17:25]line ЗНМ: 0300000044 [20:17:25]line РНМ: 0000000000092660 [20:17:25]line Версия ККМ: 001 [20:17:25]line ФМ: 0000000000874939 [20:17:25]line ФД: 118289 [20:17:25]line ФПД: 154077636909471 [20:17:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T201725&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118289&fm=154077636909471&tin=02508201610067®Number=0000000000092660&sum=25000 [20:17:26]OFD Sender: Processing packet 118289 [packets to send 86, broken 85] [20:17:26]ProducePacketName [20:17:26]name=ofd_packets/00118289 [20:17:26]OFD Sender: To server: pG, [20:17:26]CommunicateWithHost lk.salyk.kg:30040 [20:17:26]ConnectInit lk.salyk.kg [20:17:26]written 0, free lines is 4095 [20:17:26]Connected sock=10 [20:17:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 8B B0 04 01 7A 32 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EE 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 66 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 E8 00 00 00 F4 03 04 00 D5 55 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 11 CE 01 00 35 04 06 00 8C 21 FE D0 D9 9F 94 81 C6 6F 27 C1 21 68 [20:17:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E5 C3 47 00 CC 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 11 CE 01 00 F4 03 04 00 67 03 A5 66 B6 04 01 00 00 E7 4B F0 76 FB 14 26 78 [20:17:26]CommunicateWithHost err = 0 [20:17:26]CheckOFDResponse [20:17:26]1017 (14) - 77093643461234 [20:17:26]1041 (16) - 0000000000874939 [20:17:26]1040 (4) - 118289 [20:17:26]1012 (4) - 27.07.2024 14:25 [20:17:26]1206 (1) - 0 [20:17:26]OFD Sender: Remove packet 118289 [20:17:26]ProducePacketName [20:17:26]name=ofd_packets/00118289 [20:17:26]NVStorageDeleteData [20:17:26]Write to MH i2c: 01 00 00 27 1E 45 [20:17:26]Write i2c OK [20:17:26]MH_I2C_Read... [20:17:26]Read from MH i2c: 01 [20:17:26]MH_I2C_Read... [20:17:26]Read from MH i2c: 01 07 00 [20:17:26]MH_I2C_Read... [20:17:26]Read from MH i2c: 01 07 00 27 1E 00 00 00 00 00 F2 0C 4A [20:17:26]RasterBufferAndPrint [20:17:26]line [20:17:26]line [20:17:26]line [20:17:26]line [20:17:26]line [20:17:26]written 0, free lines is 3322 [20:17:26]MH_Cut [20:17:26]Write to MH i2c: D1 01 00 2E 1E 01 1E [20:17:26]Write i2c OK [20:17:26]MH_I2C_Read... [20:17:26]Read from MH i2c: D1 [20:17:26]MH_I2C_Read... [20:17:26]Read from MH i2c: D1 01 00 [20:17:26]MH_I2C_Read... [20:17:26]Read from MH i2c: D1 01 00 2E 1E 00 1D [20:17:26]Write to MH i2c: 01 00 00 2F 1E 4D [20:17:26]Write i2c OK [20:17:26]MH_I2C_Read... [20:17:26]OFD Sender: No OFD packet to send [20:17:27]*** Cut start [20:17:27]*** Partial cut [20:17:27]*** CUTSNS_PIN = 1 [20:17:27]*** CUTSNS_PIN = 0 [20:17:27]*** Brake cut motor [20:17:27]Read from MH i2c: 01 [20:17:27]MH_I2C_Read... [20:17:27]*** Stop cut motor [20:17:27]*** Cut end [20:17:27]Read from MH i2c: 01 07 00 [20:17:27]MH_I2C_Read... [20:17:27]Read from MH i2c: 01 07 00 2F 1E 00 00 00 00 00 FF 0F 62 [20:17:27]process_action close_receipt done [20:17:27]requested_data is exist [20:17:27]produce_requested_data [20:17:27]requested_item fm.sn is exist - process it [20:17:27]wFMCommunicate request_size=4 [20:17:27]MH_SAM_APDU [20:17:27]CAPDU: 80 11 00 00 [20:17:27]Write to MH i2c: E2 08 00 30 1E 80 11 00 00 00 00 00 00 C8 [20:17:28]Write i2c OK [20:17:28]MH_I2C_Read... [20:17:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:28]Read from MH i2c: E2 [20:17:28]MH_I2C_Read... [20:17:28]Read from MH i2c: E2 17 00 [20:17:28]MH_I2C_Read... [20:17:28]Read from MH i2c: E2 17 00 30 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 23 [20:17:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:17:28]wFMCommunicate OK [20:17:28]requested_item fd.num is exist - process it [20:17:28]SAM_PROTO_GetFieldsCounters [20:17:28]wFMCommunicate request_size=4 [20:17:28]MH_SAM_APDU [20:17:28]CAPDU: 80 13 00 00 [20:17:28]Write to MH i2c: E2 08 00 31 1E 80 13 00 00 00 00 00 00 CB [20:17:28]Write i2c OK [20:17:28]MH_I2C_Read... [20:17:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:17:28]Read from MH i2c: E2 [20:17:28]MH_I2C_Read... [20:17:28]Read from MH i2c: E2 62 00 [20:17:28]MH_I2C_Read... [20:17:28]Read from MH i2c: E2 62 00 31 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 11 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [20:17:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 11 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:17:28]wFMCommunicate OK [20:17:28]SAM_PROTO_GetFieldsCounters done [20:17:28]requested_item shift.num is exist - process it [20:17:28]requested_item shift.opened is exist - process it [20:17:28]req_shift_opened [20:17:28]FM_GetShiftState [20:17:28]SAM_PROTO_GetShiftState [20:17:28]wFMCommunicate request_size=4 [20:17:28]MH_SAM_APDU [20:17:28]CAPDU: 80 13 01 00 [20:17:28]Write to MH i2c: E2 08 00 32 1E 80 13 01 00 00 00 00 00 CD [20:17:28]Write i2c OK [20:17:28]MH_I2C_Read... [20:17:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:28]Read from MH i2c: E2 [20:17:28]MH_I2C_Read... [20:17:28]Read from MH i2c: E2 0E 00 [20:17:28]MH_I2C_Read... [20:17:28]Read from MH i2c: E2 0E 00 32 1E 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 5A [20:17:28]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [20:17:28]wFMCommunicate OK [20:17:28]SAM_PROTO_GetShiftState done [20:17:28]FM_GetShiftState done [20:17:28]req_shift_opened done [20:17:28]requested_item shift.open_date is exist - process it [20:17:28]req_shift_open_date [20:17:28]req_shift_open_date done [20:17:28]produce_requested_data done [20:17:28]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118289,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [20:17:28]process_action_free close_receipt [20:17:28]json_value_free [20:17:28]json_value_free done [20:17:28]process_json_proto returns [20:17:28]Send response to host [20:17:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118289,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [20:17:28]free response buf [20:17:28]execute_script done [20:17:28]execute_script returns [20:17:28]free content buf [20:17:28]Sock 9.Close socket [20:17:28]Sock 9.Thread stoped [20:17:32]OFD Sender: No OFD packet to send [20:17:37]OFD Sender: No OFD packet to send [20:17:42]OFD Sender: No OFD packet to send [20:17:47]OFD Sender: No OFD packet to send [20:17:52]OFD Sender: No OFD packet to send [20:17:57]OFD Sender: No OFD packet to send [20:18:02]OFD Sender: No OFD packet to send [20:18:07]OFD Sender: No OFD packet to send [20:18:12]OFD Sender: No OFD packet to send [20:18:17]OFD Sender: No OFD packet to send [20:18:22]OFD Sender: No OFD packet to send [20:18:27]OFD Sender: No OFD packet to send [20:18:32]OFD Sender: No OFD packet to send [20:18:37]OFD Sender: No OFD packet to send [20:18:42]OFD Sender: No OFD packet to send [20:18:47]OFD Sender: No OFD packet to send [20:18:52]OFD Sender: No OFD packet to send [20:18:57]OFD Sender: No OFD packet to send [20:19:02]OFD Sender: No OFD packet to send [20:19:07]OFD Sender: No OFD packet to send [20:19:12]OFD Sender: No OFD packet to send [20:19:17]OFD Sender: No OFD packet to send [20:19:22]OFD Sender: No OFD packet to send [20:19:27]OFD Sender: No OFD packet to send [20:19:32]OFD Sender: No OFD packet to send [20:19:37]OFD Sender: No OFD packet to send [20:19:42]OFD Sender: No OFD packet to send [20:19:47]OFD Sender: No OFD packet to send [20:19:52]OFD Sender: No OFD packet to send [20:19:57]OFD Sender: No OFD packet to send [20:20:02]OFD Sender: No OFD packet to send [20:20:07]OFD Sender: No OFD packet to send [20:20:12]OFD Sender: No OFD packet to send [20:20:17]OFD Sender: No OFD packet to send [20:20:22]OFD Sender: No OFD packet to send [20:20:27]OFD Sender: No OFD packet to send [20:20:32]OFD Sender: No OFD packet to send [20:20:37]OFD Sender: No OFD packet to send [20:20:42]OFD Sender: No OFD packet to send [20:20:47]OFD Sender: No OFD packet to send [20:20:52]OFD Sender: No OFD packet to send [20:20:57]OFD Sender: No OFD packet to send [20:20:57]accept exits with 7 [20:20:57]New connection [20:20:57]New thread 3067096420 created [20:20:57]Thread 3066953060 joined [20:20:57]Waiting for new connection... [20:20:57] Sock 7.Parse request [20:20:57]Sock 7.Check first char [20:20:57]Sock 7.First char is OK [20:20:57]request: POST /json_proto HTTP/1.0 [20:20:57]Method: POST [20:20:57]URL: /json_proto [20:20:57]Method is POST - this is cgi request [20:20:57]url: /json_proto [20:20:57]query_string will be loaded in cgi processing [20:20:57]execute_cgi json_proto POST (null) [20:20:57]execute_cgi path=json_proto method=POST [20:20:57]POST find Content-Length [20:20:57]Host: 172.17.45.7:8080 [20:20:57]Content-Length: 678 [20:20:57]Content-Type: application/json [20:20:57] [20:20:57]POST finish read [20:20:57]Found Content-Length = 678 [20:20:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 13.130, "sum" : 890.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 890.00, "total" : 890.00, "payments": [ { "type": 0, "sum" : 890.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:57]execute_script... [20: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)949163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 13.130, "sum" : 890.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 890.00, "total" : 890.00, "payments": [ { "type": 0, "sum" : 890.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:57]POST & json_proto [20:20:57]process_json_proto [20:20:57]json parsed OK: [20:20:57]protocol is kg_v1.0 [20:20:57]action value=close_receipt [20:20:57]process_action close_receipt [20:20:57]cmd_close_receipt [20:20:57]MH_GetDate [20:20:57]Write to MH i2c: F0 00 00 33 1E 40 [20:20:57]Write i2c OK [20:20:57]MH_I2C_Read... [20:20:57]Read from MH i2c: F0 [20:20:57]MH_I2C_Read... [20:20:57]Read from MH i2c: F0 09 00 [20:20:57]MH_I2C_Read... [20:20:57]Read from MH i2c: F0 09 00 33 1E 00 AB 56 A5 66 90 0F 3E 66 98 [20:20:57]GetLastDocTimeStamp 1722111445 [20:20:57]current date 1722111659 [20:20:57]FM_GetShiftState [20:20:57]SAM_PROTO_GetShiftState [20:20:57]wFMCommunicate request_size=4 [20:20:57]MH_SAM_APDU [20:20:57]CAPDU: 80 13 01 00 [20:20:57]Write to MH i2c: E2 08 00 34 1E 80 13 01 00 00 00 00 00 CF [20:20:57]Write i2c OK [20:20:57]MH_I2C_Read... [20:20:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:57]Read from MH i2c: E2 [20:20:57]MH_I2C_Read... [20:20:57]Read from MH i2c: E2 0E 00 [20:20:57]MH_I2C_Read... [20:20:57]Read from MH i2c: E2 0E 00 34 1E 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 5C [20:20:57]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [20:20:57]wFMCommunicate OK [20:20:57]SAM_PROTO_GetShiftState done [20:20:57]FM_GetShiftState done [20:20:57]opened in 1722038845 [20:20:57]opened+sec_in_day 1722125245 [20:20:57]quantity*price = 89021 [20:20:57]sum+1 = 89022 [20:20:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 890.00 Внесено: 890.00 СДАЧА: 0.00 НСП 1% : 7.88 НДС 12% : 94.54 Наличными: 890.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 233 27.07.2024 20:20 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118290 ФПД: 68354088877641 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T202059&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118290&fm=68354088877641&tin=02508201610067®Number=0000000000092660&sum=89000 [20:20:58]StoreToDocumentArchive [20:20:58]shift 432 fd 118290 [20:20:58]save to /storage/0432/doc_00118290 [20:20:58]save last doc name /storage/0432/doc_00118290 to /storage/kkm_last_doc_name [20:20:58]save OK [20:20:58]Clear old archive folders... [20:20:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:20:58]tlvbuf is B6F78190 [20:20:58]SAM_PROTO_ClearQueue [20:20:58]wFMCommunicate request_size=4 [20:20:58]MH_SAM_APDU [20:20:58]CAPDU: 80 09 00 00 [20:20:58]Write to MH i2c: E2 08 00 41 1E 80 09 00 00 00 00 00 00 D1 [20:20:58]Write i2c OK [20:20:58]MH_I2C_Read... [20:20:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:20:59]Read from MH i2c: E2 [20:20:59]MH_I2C_Read... [20:20:59]Read from MH i2c: E2 03 00 [20:20:59]MH_I2C_Read... [20:20:59]Read from MH i2c: E2 03 00 41 1E 00 90 00 D3 [20:20:59]RAPDU: 90 00 [20:20:59]wFMCommunicate OK [20:20:59]SAM_PROTO_ClearQueue done [20:20:59]KKMCreateOFDPacket [20:20:59]OFDProtocolAddRootSTLVToBuf [20:20:59]FM_MakeSignedData [20:20:59]FM_MakeSignedData [20:20:59]SAM_PROTO_SignData [20:20:59]wFMCommunicate request_size=4 [20:20:59]MH_SAM_APDU [20:20:59]CAPDU: 80 0D 01 02 [20:20:59]Write to MH i2c: E2 08 00 42 1E 80 0D 01 02 00 00 00 00 D9 [20:20:59]Write i2c OK [20:20:59]MH_I2C_Read... [20:20:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:20:59]Read from MH i2c: E2 [20:20:59]MH_I2C_Read... [20:20:59]Read from MH i2c: E2 03 00 [20:20:59]MH_I2C_Read... [20:20:59]Read from MH i2c: E2 03 00 42 1E 00 90 00 D4 [20:20:59]RAPDU: 90 00 [20:20:59]wFMCommunicate OK [20:20:59]wFMCommunicate request_size=255 [20:20:59]MH_SAM_APDU [20:20: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 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BD 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 24 00 00 00 00 07 04 06 00 A8 5B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 AB 56 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 12 CE 01 00 35 04 06 00 3E [20:20:59]Write to MH i2c: E2 02 01 43 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 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BD 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 24 00 00 00 00 07 04 06 00 A8 5B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 AB 56 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 12 CE 01 00 35 04 06 00 3E 00 00 0A [20:20:59]Write i2c OK [20:20:59]MH_I2C_Read... [20:20:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:59]Read from MH i2c: E2 [20:20:59]MH_I2C_Read... [20:20:59]Read from MH i2c: E2 03 00 [20:20:59]MH_I2C_Read... [20:20:59]Read from MH i2c: E2 03 00 43 1E 00 90 00 D5 [20:20:59]RAPDU: 90 00 [20:20:59]wFMCommunicate OK [20:20:59]wFMCommunicate request_size=10 [20:20:59]MH_SAM_APDU [20:20:59]CAPDU: 80 0D 02 02 05 2A ED 2F BE 49 [20:20:59]Write to MH i2c: E2 0D 00 44 1E 80 0D 02 02 05 00 2A ED 2F BE 49 00 00 33 [20:20:59]Write i2c OK [20:20:59]MH_I2C_Read... [20:20:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:59]Read from MH i2c: E2 [20:20:59]MH_I2C_Read... [20:20:59]Read from MH i2c: E2 03 00 [20:20:59]MH_I2C_Read... [20:20:59]Read from MH i2c: E2 03 00 44 1E 00 90 00 D6 [20:20:59]RAPDU: 90 00 [20:20:59]wFMCommunicate OK [20:20:59]wFMCommunicate request_size=4 [20:20:59]MH_SAM_APDU [20:20:59]CAPDU: 80 0D 03 02 [20:20:59]Write to MH i2c: E2 08 00 45 1E 80 0D 03 02 00 00 00 00 DE [20:20:59]Write i2c OK [20:20:59]MH_I2C_Read... [20:20:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:20:59]Read from MH i2c: E2 [20:20:59]MH_I2C_Read... [20:20:59]Read from MH i2c: E2 0B 00 [20:20:59]MH_I2C_Read... [20:20:59]Read from MH i2c: E2 0B 00 45 1E 00 84 3A 60 C8 2A 7D 3D B1 90 00 5A [20:20:59]RAPDU: 84 3A 60 C8 2A 7D 3D B1 90 00 [20:20:59]wFMCommunicate OK [20:20:59]SAM_PROTO_SignData done [20:20:59]FM_MakeSignedData done [20:20:59]CreateOFDProtocolMessage [20:20:59]wFMCommunicate request_size=4 [20:20:59]MH_SAM_APDU [20:20:59]CAPDU: 80 11 00 00 [20:20:59]Write to MH i2c: E2 08 00 46 1E 80 11 00 00 00 00 00 00 DE [20:20:59]Write i2c OK [20:20:59]MH_I2C_Read... [20:20:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:59]Read from MH i2c: E2 [20:20:59]MH_I2C_Read... [20:20:59]Read from MH i2c: E2 17 00 [20:20:59]MH_I2C_Read... [20:20:59]Read from MH i2c: E2 17 00 46 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 39 [20:20:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:20:59]wFMCommunicate OK [20:20:59]CreateOFDProtocolMessage done [20:20:59]OFDSenderStorePacket 118290 [20:20:59]StoreOFDPacket docnum=118290 [20:20:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A2 D2 07 01 7B BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BD 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 24 00 00 00 00 07 04 06 00 A8 5B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 AB 56 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 12 CE 01 00 35 04 06 00 3E 2A ED 2F BE 49 84 3A 60 C8 2A 7D 3D B1 [20:20:59]CheckFolder [20:20:59]dirname=/storage/ofd_packets [20:20:59]CheckFolder done [20:20:59]ProducePacketName [20:20:59]name=ofd_packets/00118290 [20:20:59]NVStorageSaveData ofd_packets/00118290 [20:20:59]File name is /storage/ofd_packets/00118290 [20:20:59]Write 301 bytes [20:20:59]NVStorageSaveData done [20:20:59]OFDSenderStorePacket done [20:20:59]KKMCreateOFDPacket done [20:20:59]NVStorageSaveData kkm_last_timestamp [20:20:59]File name is /storage/kkm_last_timestamp [20:20:59]Write 4 bytes [20:20:59]NVStorageSaveData done [20:20:59]ExternCall_PrintAddStr [20:20:59]wPrintStart [20:20:59]Write to MH i2c: 01 00 00 47 1E 65 [20:20:59]Write i2c OK [20:20:59]MH_I2C_Read... [20:20:59]Read from MH i2c: 01 [20:20:59]MH_I2C_Read... [20:20:59]Read from MH i2c: 01 07 00 [20:20:59]MH_I2C_Read... [20:20:59]Read from MH i2c: 01 07 00 47 1E 00 00 00 00 00 FF 0F 7A [20:20:59]RasterBufferAndPrint [20:20:59]line Счет N : (1)949163 [20:20:59]line ИНН: 02508201610067 [20:20:59]line Контрольно-Кассовый Чек [20:20:59]line ПРОДАЖА [20:20:59]line ТРК (МРК, ГНК) : 41 [20:20:59]line Товар: 2710124130 [20:20:59]line Аи-92-К-4 [20:20:59]line 13.130 * 67.80 [20:20:59]line = 890.21 [20:20:59]line НДС 12% НСП 1% [20:20:59]line > о реализуемом товаре [20:20:59]line ОКРУГЛЕНИЕ: -0.21 [20:20:59]line ИТОГО: 890.00 [20:20:59]line Внесено: 890.00 [20:20:59]line СДАЧА: 0.00 [20:20:59]line НСП 1% : 7.88 [20:20:59]line НДС 12% : 94.54 [20:20:59]line Наличными: 890.00 [20:20:59]line Безнал.: 0.00 [20:20:59]line Место: АЗС № 134 "Партнер Нефть" [20:20:59]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:20:59]line СНО: Общий режим [20:20:59]line Чек 233 27.07.2024 20:20 [20:20:59]line Смена: 432 ФФД: 1.0 [20:20:59]line ЗНМ: 0300000044 [20:20:59]line РНМ: 0000000000092660 [20:20:59]line Версия ККМ: 001 [20:20:59]line ФМ: 0000000000874939 [20:20:59]line ФД: 118290 [20:20:59]line ФПД: 68354088877641 [20:20:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T202059&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118290&fm=68354088877641&tin=02508201610067®Number=0000000000092660&sum=89000 [20:20:59]OFD Sender: Processing packet 118290 [packets to send 86, broken 85] [20:20:59]ProducePacketName [20:20:59]name=ofd_packets/00118290 [20:20:59]OFD Sender: To server: pG, [20:20:59]CommunicateWithHost lk.salyk.kg:30040 [20:20:59]ConnectInit lk.salyk.kg [20:20:59]written 0, free lines is 4095 [20:20:59]Connected sock=10 [20: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 34 39 33 39 0F 01 00 00 A2 D2 07 01 7B BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BD 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 24 00 00 00 00 07 04 06 00 A8 5B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 AB 56 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 12 CE 01 00 35 04 06 00 3E 2A ED 2F BE 49 84 3A 60 C8 2A 7D 3D B1 [20:21:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E5 84 47 00 C4 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 12 CE 01 00 F4 03 04 00 3D 04 A5 66 B6 04 01 00 00 F8 47 AB BE FF EF 4A 68 [20:21:00]CommunicateWithHost err = 0 [20:21:00]CheckOFDResponse [20:21:00]1017 (14) - 77093643461234 [20:21:00]1041 (16) - 0000000000874939 [20:21:00]1040 (4) - 118290 [20:21:00]1012 (4) - 27.07.2024 14:29 [20:21:00]1206 (1) - 0 [20:21:00]OFD Sender: Remove packet 118290 [20:21:00]ProducePacketName [20:21:00]name=ofd_packets/00118290 [20:21:00]NVStorageDeleteData [20:21:00]Write to MH i2c: 01 00 00 71 1E 8F [20:21:00]Write i2c OK [20:21:00]MH_I2C_Read... [20:21:00]Read from MH i2c: 01 [20:21:00]MH_I2C_Read... [20:21:00]Read from MH i2c: 01 07 00 [20:21:00]MH_I2C_Read... [20:21:00]Read from MH i2c: 01 07 00 71 1E 00 00 00 00 00 EB 0C 8D [20:21:00]RasterBufferAndPrint [20:21:00]line [20:21:00]line [20:21:00]line [20:21:00]line [20:21:00]line [20:21:00]written 0, free lines is 3313 [20:21:00]MH_Cut [20:21:00]Write to MH i2c: D1 01 00 78 1E 01 68 [20:21:00]Write i2c OK [20:21:00]MH_I2C_Read... [20:21:00]Read from MH i2c: D1 [20:21:00]MH_I2C_Read... [20:21:00]Read from MH i2c: D1 01 00 [20:21:00]MH_I2C_Read... [20:21:00]Read from MH i2c: D1 01 00 78 1E 00 67 [20:21:00]Write to MH i2c: 01 00 00 79 1E 97 [20:21:00]Write i2c OK [20:21:00]MH_I2C_Read... [20:21:00]OFD Sender: No OFD packet to send [20:21:01]*** Cut start [20:21:01]*** Partial cut [20:21:01]*** CUTSNS_PIN = 1 [20:21:01]*** CUTSNS_PIN = 0 [20:21:01]*** Brake cut motor [20:21:01]Read from MH i2c: 01 [20:21:01]MH_I2C_Read... [20:21:01]*** Stop cut motor [20:21:01]*** Cut end [20:21:01]Read from MH i2c: 01 07 00 [20:21:01]MH_I2C_Read... [20:21:01]Read from MH i2c: 01 07 00 79 1E 00 00 00 00 00 FF 0F AC [20:21:01]process_action close_receipt done [20:21:01]requested_data is exist [20:21:01]produce_requested_data [20:21:01]requested_item fm.sn is exist - process it [20:21:01]wFMCommunicate request_size=4 [20:21:01]MH_SAM_APDU [20:21:01]CAPDU: 80 11 00 00 [20:21:01]Write to MH i2c: E2 08 00 7A 1E 80 11 00 00 00 00 00 00 12 [20:21:01]Write i2c OK [20:21:01]MH_I2C_Read... [20:21:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:01]Read from MH i2c: E2 [20:21:01]MH_I2C_Read... [20:21:01]Read from MH i2c: E2 17 00 [20:21:01]MH_I2C_Read... [20:21:01]Read from MH i2c: E2 17 00 7A 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6D [20:21:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:21:01]wFMCommunicate OK [20:21:01]requested_item fd.num is exist - process it [20:21:01]SAM_PROTO_GetFieldsCounters [20:21:01]wFMCommunicate request_size=4 [20:21:01]MH_SAM_APDU [20:21:01]CAPDU: 80 13 00 00 [20:21:01]Write to MH i2c: E2 08 00 7B 1E 80 13 00 00 00 00 00 00 15 [20:21:01]Write i2c OK [20:21:01]MH_I2C_Read... [20:21:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:21:01]Read from MH i2c: E2 [20:21:01]MH_I2C_Read... [20:21:01]Read from MH i2c: E2 62 00 [20:21:01]MH_I2C_Read... [20:21:01]Read from MH i2c: E2 62 00 7B 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 12 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [20: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 12 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:21:01]wFMCommunicate OK [20:21:01]SAM_PROTO_GetFieldsCounters done [20:21:01]requested_item shift.num is exist - process it [20:21:01]requested_item shift.opened is exist - process it [20:21:01]req_shift_opened [20:21:01]FM_GetShiftState [20:21:01]SAM_PROTO_GetShiftState [20:21:01]wFMCommunicate request_size=4 [20:21:01]MH_SAM_APDU [20:21:01]CAPDU: 80 13 01 00 [20:21:01]Write to MH i2c: E2 08 00 7C 1E 80 13 01 00 00 00 00 00 17 [20:21:01]Write i2c OK [20:21:01]MH_I2C_Read... [20:21:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:01]Read from MH i2c: E2 [20:21:01]MH_I2C_Read... [20:21:01]Read from MH i2c: E2 0E 00 [20:21:01]MH_I2C_Read... [20:21:01]Read from MH i2c: E2 0E 00 7C 1E 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 A4 [20:21:01]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [20:21:01]wFMCommunicate OK [20:21:01]SAM_PROTO_GetShiftState done [20:21:01]FM_GetShiftState done [20:21:01]req_shift_opened done [20:21:01]requested_item shift.open_date is exist - process it [20:21:01]req_shift_open_date [20:21:01]req_shift_open_date done [20:21:01]produce_requested_data done [20:21:01]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118290,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [20:21:01]process_action_free close_receipt [20:21:01]json_value_free [20:21:01]json_value_free done [20:21:01]process_json_proto returns [20:21:01]Send response to host [20:21:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118290,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [20:21:01]free response buf [20:21:01]execute_script done [20:21:01]execute_script returns [20:21:01]free content buf [20:21:01]Sock 7.Close socket [20:21:01]Sock 7.Thread stoped [20:21:05]OFD Sender: No OFD packet to send [20:21:10]OFD Sender: No OFD packet to send [20:21:15]OFD Sender: No OFD packet to send [20:21:20]OFD Sender: No OFD packet to send [20:21:25]OFD Sender: No OFD packet to send [20:21:30]OFD Sender: No OFD packet to send [20:21:35]OFD Sender: No OFD packet to send [20:21:40]OFD Sender: No OFD packet to send [20:21:45]OFD Sender: No OFD packet to send [20:21:50]OFD Sender: No OFD packet to send [20:21:55]OFD Sender: No OFD packet to send [20:22:00]OFD Sender: No OFD packet to send [20:22:05]OFD Sender: No OFD packet to send [20:22:10]OFD Sender: No OFD packet to send [20:22:15]OFD Sender: No OFD packet to send [20:22:20]OFD Sender: No OFD packet to send [20:22:25]OFD Sender: No OFD packet to send [20:22:30]OFD Sender: No OFD packet to send [20:22:35]OFD Sender: No OFD packet to send [20:22:40]OFD Sender: No OFD packet to send [20:22:45]OFD Sender: No OFD packet to send [20:22:50]OFD Sender: No OFD packet to send [20:22:55]OFD Sender: No OFD packet to send [20:23:00]OFD Sender: No OFD packet to send [20:23:05]OFD Sender: No OFD packet to send [20:23:10]OFD Sender: No OFD packet to send [20:23:15]OFD Sender: No OFD packet to send [20:23:20]OFD Sender: No OFD packet to send [20:23:25]OFD Sender: No OFD packet to send [20:23:30]OFD Sender: No OFD packet to send [20:23:35]OFD Sender: No OFD packet to send [20:23:40]OFD Sender: No OFD packet to send [20:23:45]OFD Sender: No OFD packet to send [20:23:50]OFD Sender: No OFD packet to send [20:23:53]accept exits with 9 [20:23:53]New connection [20:23:53]New thread 3066953060 created [20:23:53]Thread 3067096420 joined [20:23:53]Waiting for new connection... [20:23:53] Sock 9.Parse request [20:23:53]Sock 9.Check first char [20:23:53]Sock 9.First char is OK [20:23:53]request: POST /json_proto HTTP/1.0 [20:23:53]Method: POST [20:23:53]URL: /json_proto [20:23:53]Method is POST - this is cgi request [20:23:53]url: /json_proto [20:23:53]query_string will be loaded in cgi processing [20:23:53]execute_cgi json_proto POST (null) [20:23:53]execute_cgi path=json_proto method=POST [20:23:53]POST find Content-Length [20:23:53]Host: 172.17.45.7:8080 [20:23:53]Content-Length: 674 [20:23:53]Content-Type: application/json [20:23:53] [20:23:53]POST finish read [20:23:53]Found Content-Length = 674 [20:23:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:53]execute_script... [20:23: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)949164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:53]POST & json_proto [20:23:53]process_json_proto [20:23:53]json parsed OK: [20:23:53]protocol is kg_v1.0 [20:23:53]action value=close_receipt [20:23:53]process_action close_receipt [20:23:53]cmd_close_receipt [20:23:53]MH_GetDate [20:23:53]Write to MH i2c: F0 00 00 7D 1E 8A [20:23:53]Write i2c OK [20:23:53]MH_I2C_Read... [20:23:53]Read from MH i2c: F0 [20:23:53]MH_I2C_Read... [20:23:53]Read from MH i2c: F0 09 00 [20:23:53]MH_I2C_Read... [20:23:53]Read from MH i2c: F0 09 00 7D 1E 00 5B 57 A5 66 90 0F 3E 66 93 [20:23:53]GetLastDocTimeStamp 1722111659 [20:23:53]current date 1722111835 [20:23:53]FM_GetShiftState [20:23:53]SAM_PROTO_GetShiftState [20:23:53]wFMCommunicate request_size=4 [20:23:53]MH_SAM_APDU [20:23:53]CAPDU: 80 13 01 00 [20:23:53]Write to MH i2c: E2 08 00 7E 1E 80 13 01 00 00 00 00 00 19 [20:23:53]Write i2c OK [20:23:53]MH_I2C_Read... [20:23:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:53]Read from MH i2c: E2 [20:23:53]MH_I2C_Read... [20:23:53]Read from MH i2c: E2 0E 00 [20:23:53]MH_I2C_Read... [20:23:53]Read from MH i2c: E2 0E 00 7E 1E 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 A6 [20:23:53]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [20:23:53]wFMCommunicate OK [20:23:53]SAM_PROTO_GetShiftState done [20:23:53]FM_GetShiftState done [20:23:53]opened in 1722038845 [20:23:53]opened+sec_in_day 1722125245 [20:23:53]quantity*price = 50063 [20:23:53]sum+1 = 50064 [20:23:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 234 27.07.2024 20:23 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118291 ФПД: 156155428952739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T202355&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118291&fm=156155428952739&tin=02508201610067®Number=0000000000092660&sum=50000 [20:23:55]StoreToDocumentArchive [20:23:55]shift 432 fd 118291 [20:23:55]save to /storage/0432/doc_00118291 [20:23:55]save last doc name /storage/0432/doc_00118291 to /storage/kkm_last_doc_name [20:23:55]save OK [20:23:55]Clear old archive folders... [20:23:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:23:55]tlvbuf is 01E3C160 [20:23:55]SAM_PROTO_ClearQueue [20:23:55]wFMCommunicate request_size=4 [20:23:55]MH_SAM_APDU [20:23:55]CAPDU: 80 09 00 00 [20:23:55]Write to MH i2c: E2 08 00 8B 1E 80 09 00 00 00 00 00 00 1B [20:23:55]Write i2c OK [20:23:55]MH_I2C_Read... [20:23:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:23:55]Read from MH i2c: E2 [20:23:55]MH_I2C_Read... [20:23:55]Read from MH i2c: E2 03 00 [20:23:55]MH_I2C_Read... [20:23:55]Read from MH i2c: E2 03 00 8B 1E 00 90 00 1D [20:23:55]RAPDU: 90 00 [20:23:55]wFMCommunicate OK [20:23:55]SAM_PROTO_ClearQueue done [20:23:55]KKMCreateOFDPacket [20:23:55]OFDProtocolAddRootSTLVToBuf [20:23:55]FM_MakeSignedData [20:23:55]FM_MakeSignedData [20:23:55]SAM_PROTO_SignData [20:23:55]wFMCommunicate request_size=4 [20:23:55]MH_SAM_APDU [20:23:55]CAPDU: 80 0D 01 02 [20:23:55]Write to MH i2c: E2 08 00 8C 1E 80 0D 01 02 00 00 00 00 23 [20:23:55]Write i2c OK [20:23:55]MH_I2C_Read... [20:23:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:23:55]Read from MH i2c: E2 [20:23:55]MH_I2C_Read... [20:23:55]Read from MH i2c: E2 03 00 [20:23:55]MH_I2C_Read... [20:23:55]Read from MH i2c: E2 03 00 8C 1E 00 90 00 1E [20:23:55]RAPDU: 90 00 [20:23:55]wFMCommunicate OK [20:23:55]wFMCommunicate request_size=255 [20:23:55]MH_SAM_APDU [20:23: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 5B 57 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 13 CE 01 00 35 04 06 00 8E 05 C4 DF [20:23:55]Write to MH i2c: E2 02 01 8D 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 5B 57 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 13 CE 01 00 35 04 06 00 8E 05 C4 DF 00 00 AB [20:23:55]Write i2c OK [20:23:55]MH_I2C_Read... [20:23:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:55]Read from MH i2c: E2 [20:23:55]MH_I2C_Read... [20:23:55]Read from MH i2c: E2 03 00 [20:23:55]MH_I2C_Read... [20:23:55]Read from MH i2c: E2 03 00 8D 1E 00 90 00 1F [20:23:55]RAPDU: 90 00 [20:23:55]wFMCommunicate OK [20:23:55]wFMCommunicate request_size=7 [20:23:55]MH_SAM_APDU [20:23:55]CAPDU: 80 0D 02 02 02 5A A3 [20:23:55]Write to MH i2c: E2 0A 00 8E 1E 80 0D 02 02 02 00 5A A3 00 00 27 [20:23:55]Write i2c OK [20:23:55]MH_I2C_Read... [20:23:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:55]Read from MH i2c: E2 [20:23:55]MH_I2C_Read... [20:23:55]Read from MH i2c: E2 03 00 [20:23:55]MH_I2C_Read... [20:23:55]Read from MH i2c: E2 03 00 8E 1E 00 90 00 20 [20:23:55]RAPDU: 90 00 [20:23:55]wFMCommunicate OK [20:23:55]wFMCommunicate request_size=4 [20:23:55]MH_SAM_APDU [20:23:55]CAPDU: 80 0D 03 02 [20:23:55]Write to MH i2c: E2 08 00 8F 1E 80 0D 03 02 00 00 00 00 28 [20:23:55]Write i2c OK [20:23:55]MH_I2C_Read... [20:23:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:23:55]Read from MH i2c: E2 [20:23:55]MH_I2C_Read... [20:23:55]Read from MH i2c: E2 0B 00 [20:23:55]MH_I2C_Read... [20:23:55]Read from MH i2c: E2 0B 00 8F 1E 00 C9 28 3C 86 61 C3 0E 48 90 00 56 [20:23:55]RAPDU: C9 28 3C 86 61 C3 0E 48 90 00 [20:23:55]wFMCommunicate OK [20:23:55]SAM_PROTO_SignData done [20:23:55]FM_MakeSignedData done [20:23:55]CreateOFDProtocolMessage [20:23:55]wFMCommunicate request_size=4 [20:23:55]MH_SAM_APDU [20:23:55]CAPDU: 80 11 00 00 [20:23:55]Write to MH i2c: E2 08 00 90 1E 80 11 00 00 00 00 00 00 28 [20:23:55]Write i2c OK [20:23:55]MH_I2C_Read... [20:23:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:55]Read from MH i2c: E2 [20:23:55]MH_I2C_Read... [20:23:55]Read from MH i2c: E2 17 00 [20:23:55]MH_I2C_Read... [20:23:55]Read from MH i2c: E2 17 00 90 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 83 [20:23:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:23:55]wFMCommunicate OK [20:23:55]CreateOFDProtocolMessage done [20:23:55]OFDSenderStorePacket 118291 [20:23:55]StoreOFDPacket docnum=118291 [20:23:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 40 59 04 01 3D F3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 5B 57 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 13 CE 01 00 35 04 06 00 8E 05 C4 DF 5A A3 C9 28 3C 86 61 C3 0E 48 [20:23:55]CheckFolder [20:23:55]dirname=/storage/ofd_packets [20:23:55]CheckFolder done [20:23:55]ProducePacketName [20:23:55]name=ofd_packets/00118291 [20:23:55]NVStorageSaveData ofd_packets/00118291 [20:23:55]File name is /storage/ofd_packets/00118291 [20:23:55]Write 298 bytes [20:23:55]NVStorageSaveData done [20:23:55]OFDSenderStorePacket done [20:23:55]KKMCreateOFDPacket done [20:23:55]NVStorageSaveData kkm_last_timestamp [20:23:55]File name is /storage/kkm_last_timestamp [20:23:55]Write 4 bytes [20:23:55]NVStorageSaveData done [20:23:55]ExternCall_PrintAddStr [20:23:55]wPrintStart [20:23:55]Write to MH i2c: 01 00 00 91 1E AF [20:23:55]Write i2c OK [20:23:55]MH_I2C_Read... [20:23:55]Read from MH i2c: 01 [20:23:55]MH_I2C_Read... [20:23:55]Read from MH i2c: 01 07 00 [20:23:55]MH_I2C_Read... [20:23:55]Read from MH i2c: 01 07 00 91 1E 00 00 00 00 00 FF 0F C4 [20:23:55]RasterBufferAndPrint [20:23:55]line Счет N : (1)949164 [20:23:55]line ИНН: 02508201610067 [20:23:55]line Контрольно-Кассовый Чек [20:23:55]line ПРОДАЖА [20:23:55]line ТРК (МРК, ГНК) : 44 [20:23:55]line Товар: 2710194800 [20:23:55]line ДТ-К-5 [20:23:55]line 6.570 * 76.20 [20:23:55]line = 500.63 [20:23:55]line НДС 12% НСП 1% [20:23:55]line > о реализуемом товаре [20:23:55]line ОКРУГЛЕНИЕ: -0.63 [20:23:55]line ИТОГО: 500.00 [20:23:55]line Внесено: 500.00 [20:23:55]line СДАЧА: 0.00 [20:23:55]line НСП 1% : 4.43 [20:23:55]line НДС 12% : 53.16 [20:23:55]line Наличными: 500.00 [20:23:55]line Безнал.: 0.00 [20:23:55]line Место: АЗС № 134 "Партнер Нефть" [20:23:55]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:23:55]line СНО: Общий режим [20:23:55]line Чек 234 27.07.2024 20:23 [20:23:55]line Смена: 432 ФФД: 1.0 [20:23:55]line ЗНМ: 0300000044 [20:23:55]line РНМ: 0000000000092660 [20:23:55]line Версия ККМ: 001 [20:23:55]line ФМ: 0000000000874939 [20:23:55]line ФД: 118291 [20:23:55]line ФПД: 156155428952739 [20:23:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T202355&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118291&fm=156155428952739&tin=02508201610067®Number=0000000000092660&sum=50000 [20:23:55]OFD Sender: Processing packet 118291 [packets to send 86, broken 85] [20:23:55]ProducePacketName [20:23:55]name=ofd_packets/00118291 [20:23:55]OFD Sender: To server: pG, [20:23:55]CommunicateWithHost lk.salyk.kg:30040 [20:23:55]ConnectInit lk.salyk.kg [20:23:55]written 0, free lines is 4095 [20:23:56]Connected sock=10 [20:23:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 40 59 04 01 3D F3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 5B 57 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 13 CE 01 00 35 04 06 00 8E 05 C4 DF 5A A3 C9 28 3C 86 61 C3 0E 48 [20:23:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 2D BA 47 00 71 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 13 CE 01 00 F4 03 04 00 ED 04 A5 66 B6 04 01 00 00 81 AE 4C B0 2C 3C F2 24 [20:23:56]CommunicateWithHost err = 0 [20:23:56]CheckOFDResponse [20:23:56]1017 (14) - 77093643461234 [20:23:56]1041 (16) - 0000000000874939 [20:23:56]1040 (4) - 118291 [20:23:56]1012 (4) - 27.07.2024 14:32 [20:23:56]1206 (1) - 0 [20:23:56]OFD Sender: Remove packet 118291 [20:23:56]ProducePacketName [20:23:56]name=ofd_packets/00118291 [20:23:56]NVStorageDeleteData [20:23:56]Write to MH i2c: 01 00 00 BB 1E D9 [20:23:56]Write i2c OK [20:23:56]MH_I2C_Read... [20:23:56]Read from MH i2c: 01 [20:23:56]MH_I2C_Read... [20:23:56]Read from MH i2c: 01 07 00 [20:23:56]MH_I2C_Read... [20:23:56]Read from MH i2c: 01 07 00 BB 1E 00 00 00 00 00 E6 0C D2 [20:23:56]RasterBufferAndPrint [20:23:56]line [20:23:56]line [20:23:56]line [20:23:56]line [20:23:56]line [20:23:56]written 0, free lines is 3308 [20:23:56]MH_Cut [20:23:56]Write to MH i2c: D1 01 00 C2 1E 01 B2 [20:23:56]Write i2c OK [20:23:56]MH_I2C_Read... [20:23:56]Read from MH i2c: D1 [20:23:56]MH_I2C_Read... [20:23:56]Read from MH i2c: D1 01 00 [20:23:56]MH_I2C_Read... [20:23:56]Read from MH i2c: D1 01 00 C2 1E 00 B1 [20:23:56]Write to MH i2c: 01 00 00 C3 1E E1 [20:23:56]Write i2c OK [20:23:56]MH_I2C_Read... [20:23:56]OFD Sender: No OFD packet to send [20:23:57]*** Cut start [20:23:57]*** Partial cut [20:23:57]*** CUTSNS_PIN = 1 [20:23:57]*** CUTSNS_PIN = 0 [20:23:57]*** Brake cut motor [20:23:57]Read from MH i2c: 01 [20:23:57]MH_I2C_Read... [20:23:57]Read from MH i2c: 01 07 00 [20:23:57]MH_I2C_Read... [20:23:57]Read from MH i2c: 01 07 00 C3 1E 00 00 00 00 00 FF 0F F6 [20:23:57]process_action close_receipt done [20:23:57]requested_data is exist [20:23:57]produce_requested_data [20:23:57]requested_item fm.sn is exist - process it [20:23:57]wFMCommunicate request_size=4 [20:23:57]MH_SAM_APDU [20:23:57]CAPDU: 80 11 00 00 [20:23:57]Write to MH i2c: E2 08 00 C4 1E 80 11 00 00 00 00 00 00 5C [20:23:57]Write i2c OK [20:23:57]MH_I2C_Read... [20:23:57]*** Stop cut motor [20:23:57]*** Cut end [20:23:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:57]Read from MH i2c: E2 [20:23:57]MH_I2C_Read... [20:23:57]Read from MH i2c: E2 17 00 [20:23:57]MH_I2C_Read... [20:23:57]Read from MH i2c: E2 17 00 C4 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B7 [20:23:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:23:57]wFMCommunicate OK [20:23:57]requested_item fd.num is exist - process it [20:23:57]SAM_PROTO_GetFieldsCounters [20:23:57]wFMCommunicate request_size=4 [20:23:57]MH_SAM_APDU [20:23:57]CAPDU: 80 13 00 00 [20:23:57]Write to MH i2c: E2 08 00 C5 1E 80 13 00 00 00 00 00 00 5F [20:23:57]Write i2c OK [20:23:57]MH_I2C_Read... [20:23:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:23:57]Read from MH i2c: E2 [20:23:57]MH_I2C_Read... [20:23:57]Read from MH i2c: E2 62 00 [20:23:57]MH_I2C_Read... [20:23:57]Read from MH i2c: E2 62 00 C5 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 13 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [20:23:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 13 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:23:57]wFMCommunicate OK [20:23:57]SAM_PROTO_GetFieldsCounters done [20:23:57]requested_item shift.num is exist - process it [20:23:57]requested_item shift.opened is exist - process it [20:23:57]req_shift_opened [20:23:57]FM_GetShiftState [20:23:57]SAM_PROTO_GetShiftState [20:23:57]wFMCommunicate request_size=4 [20:23:57]MH_SAM_APDU [20:23:57]CAPDU: 80 13 01 00 [20:23:57]Write to MH i2c: E2 08 00 C6 1E 80 13 01 00 00 00 00 00 61 [20:23:57]Write i2c OK [20:23:57]MH_I2C_Read... [20:23:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:58]Read from MH i2c: E2 [20:23:58]MH_I2C_Read... [20:23:58]Read from MH i2c: E2 0E 00 [20:23:58]MH_I2C_Read... [20:23:58]Read from MH i2c: E2 0E 00 C6 1E 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 EE [20:23:58]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [20:23:58]wFMCommunicate OK [20:23:58]SAM_PROTO_GetShiftState done [20:23:58]FM_GetShiftState done [20:23:58]req_shift_opened done [20:23:58]requested_item shift.open_date is exist - process it [20:23:58]req_shift_open_date [20:23:58]req_shift_open_date done [20:23:58]produce_requested_data done [20:23:58]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118291,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [20:23:58]process_action_free close_receipt [20:23:58]json_value_free [20:23:58]json_value_free done [20:23:58]process_json_proto returns [20:23:58]Send response to host [20:23:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118291,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [20:23:58]free response buf [20:23:58]execute_script done [20:23:58]execute_script returns [20:23:58]free content buf [20:23:58]Sock 9.Close socket [20:23:58]Sock 9.Thread stoped [20:24:01]OFD Sender: No OFD packet to send [20:24:06]OFD Sender: No OFD packet to send [20:24:11]OFD Sender: No OFD packet to send [20:24:16]OFD Sender: No OFD packet to send [20:24:21]OFD Sender: No OFD packet to send [20:24:26]OFD Sender: No OFD packet to send [20:24:31]OFD Sender: No OFD packet to send [20:24:36]OFD Sender: No OFD packet to send [20:24:41]OFD Sender: No OFD packet to send [20:24:46]OFD Sender: No OFD packet to send [20:24:51]OFD Sender: No OFD packet to send [20:24:56]OFD Sender: No OFD packet to send [20:25:01]OFD Sender: No OFD packet to send [20:25:06]OFD Sender: No OFD packet to send [20:25:11]OFD Sender: No OFD packet to send [20:25:16]OFD Sender: No OFD packet to send [20:25:21]OFD Sender: No OFD packet to send [20:25:26]OFD Sender: No OFD packet to send [20:25:31]OFD Sender: No OFD packet to send [20:25:36]OFD Sender: No OFD packet to send [20:25:41]OFD Sender: No OFD packet to send [20:25:46]OFD Sender: No OFD packet to send [20:25:51]OFD Sender: No OFD packet to send [20:25:56]OFD Sender: No OFD packet to send [20:26:01]OFD Sender: No OFD packet to send [20:26:06]OFD Sender: No OFD packet to send [20:26:11]OFD Sender: No OFD packet to send [20:26:16]OFD Sender: No OFD packet to send [20:26:21]OFD Sender: No OFD packet to send [20:26:26]OFD Sender: No OFD packet to send [20:26:31]OFD Sender: No OFD packet to send [20:26:36]OFD Sender: No OFD packet to send [20:26:41]OFD Sender: No OFD packet to send [20:26:46]OFD Sender: No OFD packet to send [20:26:51]OFD Sender: No OFD packet to send [20:26:56]OFD Sender: No OFD packet to send [20:27:01]OFD Sender: No OFD packet to send [20:27:06]OFD Sender: No OFD packet to send [20:27:11]OFD Sender: No OFD packet to send [20:27:16]OFD Sender: No OFD packet to send [20:27:21]OFD Sender: No OFD packet to send [20:27:26]OFD Sender: No OFD packet to send [20:27:32]OFD Sender: No OFD packet to send [20:27:37]OFD Sender: No OFD packet to send [20:27:42]OFD Sender: No OFD packet to send [20:27:47]OFD Sender: No OFD packet to send [20:27:52]OFD Sender: No OFD packet to send [20:27:57]OFD Sender: No OFD packet to send [20:28:02]OFD Sender: No OFD packet to send [20:28:07]OFD Sender: No OFD packet to send [20:28:12]OFD Sender: No OFD packet to send [20:28:17]OFD Sender: No OFD packet to send [20:28:22]OFD Sender: No OFD packet to send [20:28:27]OFD Sender: No OFD packet to send [20:28:32]OFD Sender: No OFD packet to send [20:28:37]OFD Sender: No OFD packet to send [20:28:42]OFD Sender: No OFD packet to send [20:28:47]OFD Sender: No OFD packet to send [20:28:52]OFD Sender: No OFD packet to send [20:28:57]OFD Sender: No OFD packet to send [20:29:02]OFD Sender: No OFD packet to send [20:29:07]OFD Sender: No OFD packet to send [20:29:12]OFD Sender: No OFD packet to send [20:29:17]OFD Sender: No OFD packet to send [20:29:22]OFD Sender: No OFD packet to send [20:29:27]OFD Sender: No OFD packet to send [20:29:32]OFD Sender: No OFD packet to send [20:29:37]OFD Sender: No OFD packet to send [20:29:42]OFD Sender: No OFD packet to send [20:29:47]OFD Sender: No OFD packet to send [20:29:52]OFD Sender: No OFD packet to send [20:29:57]OFD Sender: No OFD packet to send [20:30:02]OFD Sender: No OFD packet to send [20:30:07]OFD Sender: No OFD packet to send [20:30:12]OFD Sender: No OFD packet to send [20:30:17]OFD Sender: No OFD packet to send [20:30:22]OFD Sender: No OFD packet to send [20:30:26]accept exits with 7 [20:30:26]New connection [20:30:26]New thread 3067096420 created [20:30:26]Thread 3066953060 joined [20:30:26]Waiting for new connection... [20:30:26] Sock 7.Parse request [20:30:26]Sock 7.Check first char [20:30:26]Sock 7.First char is OK [20:30:26]request: POST /json_proto HTTP/1.0 [20:30:26]Method: POST [20:30:26]URL: /json_proto [20:30:26]Method is POST - this is cgi request [20:30:26]url: /json_proto [20:30:26]query_string will be loaded in cgi processing [20:30:26]execute_cgi json_proto POST (null) [20:30:26]execute_cgi path=json_proto method=POST [20:30:26]POST find Content-Length [20:30:26]Host: 172.17.45.7:8080 [20:30:26]Content-Length: 800 [20:30:26]Content-Type: application/json [20:30:26] [20:30:26]POST finish read [20:30:26]Found Content-Length = 800 [20:30:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 59.580, "sum" : 4540.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:30:26]execute_script... [20:30:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 59.580, "sum" : 4540.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:30:26]POST & json_proto [20:30:26]process_json_proto [20:30:26]json parsed OK: [20:30:26]protocol is kg_v1.0 [20:30:26]action value=close_receipt [20:30:26]process_action close_receipt [20:30:26]cmd_close_receipt [20:30:26]MH_GetDate [20:30:26]Write to MH i2c: F0 00 00 C7 1E D4 [20:30:26]Write i2c OK [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: F0 [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: F0 09 00 [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: F0 09 00 C7 1E 00 E4 58 A5 66 90 0F 3E 66 67 [20:30:26]GetLastDocTimeStamp 1722111835 [20:30:26]current date 1722112228 [20:30:26]FM_GetShiftState [20:30:26]SAM_PROTO_GetShiftState [20:30:26]wFMCommunicate request_size=4 [20:30:26]MH_SAM_APDU [20:30:26]CAPDU: 80 13 01 00 [20:30:26]Write to MH i2c: E2 08 00 C8 1E 80 13 01 00 00 00 00 00 63 [20:30:26]Write i2c OK [20:30:26]MH_I2C_Read... [20:30:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:26]Read from MH i2c: E2 [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: E2 0E 00 [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: E2 0E 00 C8 1E 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 F0 [20:30:26]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [20:30:26]wFMCommunicate OK [20:30:26]SAM_PROTO_GetShiftState done [20:30:26]FM_GetShiftState done [20:30:26]opened in 1722038845 [20:30:26]opened+sec_in_day 1722125245 [20:30:26]quantity*price = 453999 [20:30:26]sum+1 = 454001 [20:30:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4540.00 НСП 1% : 40.18 НДС 12% : 482.12 Наличными: 0.00 Безнал.: 4540.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 235 27.07.2024 20:30 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118292 ФПД: 137728051624868 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T203028&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118292&fm=137728051624868&tin=02508201610067®Number=0000000000092660&sum=454000 [20:30:27]StoreToDocumentArchive [20:30:27]shift 432 fd 118292 [20:30:27]save to /storage/0432/doc_00118292 [20:30:27]save last doc name /storage/0432/doc_00118292 to /storage/kkm_last_doc_name [20:30:27]save OK [20:30:27]Clear old archive folders... [20:30:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:30:27]tlvbuf is 01DF5780 [20:30:27]SAM_PROTO_ClearQueue [20:30:27]wFMCommunicate request_size=4 [20:30:27]MH_SAM_APDU [20:30:27]CAPDU: 80 09 00 00 [20:30:27]Write to MH i2c: E2 08 00 D5 1E 80 09 00 00 00 00 00 00 65 [20:30:27]Write i2c OK [20:30:27]MH_I2C_Read... [20:30:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:30:28]Read from MH i2c: E2 [20:30:28]MH_I2C_Read... [20:30:28]Read from MH i2c: E2 03 00 [20:30:28]MH_I2C_Read... [20:30:28]Read from MH i2c: E2 03 00 D5 1E 00 90 00 67 [20:30:28]RAPDU: 90 00 [20:30:28]wFMCommunicate OK [20:30:28]SAM_PROTO_ClearQueue done [20:30:28]KKMCreateOFDPacket [20:30:28]OFDProtocolAddRootSTLVToBuf [20:30:28]FM_MakeSignedData [20:30:28]FM_MakeSignedData [20:30:28]SAM_PROTO_SignData [20:30:28]wFMCommunicate request_size=4 [20:30:28]MH_SAM_APDU [20:30:28]CAPDU: 80 0D 01 02 [20:30:28]Write to MH i2c: E2 08 00 D6 1E 80 0D 01 02 00 00 00 00 6D [20:30:28]Write i2c OK [20:30:28]MH_I2C_Read... [20:30:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:30:28]Read from MH i2c: E2 [20:30:28]MH_I2C_Read... [20:30:28]Read from MH i2c: E2 03 00 [20:30:28]MH_I2C_Read... [20:30:28]Read from MH i2c: E2 03 00 D6 1E 00 90 00 68 [20:30:28]RAPDU: 90 00 [20:30:28]wFMCommunicate OK [20:30:28]wFMCommunicate request_size=255 [20:30:28]MH_SAM_APDU [20:30: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BC E8 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 70 ED 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 ED 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 BC 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 ED 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 E4 58 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 14 CE 01 00 35 04 06 00 7D 43 4F 97 [20:30:28]Write to MH i2c: E2 02 01 D7 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BC E8 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 70 ED 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 ED 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 BC 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 ED 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 E4 58 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 14 CE 01 00 35 04 06 00 7D 43 4F 97 00 00 C0 [20:30:28]Write i2c OK [20:30:28]MH_I2C_Read... [20:30:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:28]Read from MH i2c: E2 [20:30:28]MH_I2C_Read... [20:30:28]Read from MH i2c: E2 03 00 [20:30:28]MH_I2C_Read... [20:30:28]Read from MH i2c: E2 03 00 D7 1E 00 90 00 69 [20:30:28]RAPDU: 90 00 [20:30:28]wFMCommunicate OK [20:30:28]wFMCommunicate request_size=7 [20:30:28]MH_SAM_APDU [20:30:28]CAPDU: 80 0D 02 02 02 BB A4 [20:30:28]Write to MH i2c: E2 0A 00 D8 1E 80 0D 02 02 02 00 BB A4 00 00 D3 [20:30:28]Write i2c OK [20:30:28]MH_I2C_Read... [20:30:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:28]Read from MH i2c: E2 [20:30:28]MH_I2C_Read... [20:30:28]Read from MH i2c: E2 03 00 [20:30:28]MH_I2C_Read... [20:30:28]Read from MH i2c: E2 03 00 D8 1E 00 90 00 6A [20:30:28]RAPDU: 90 00 [20:30:28]wFMCommunicate OK [20:30:28]wFMCommunicate request_size=4 [20:30:28]MH_SAM_APDU [20:30:28]CAPDU: 80 0D 03 02 [20:30:28]Write to MH i2c: E2 08 00 D9 1E 80 0D 03 02 00 00 00 00 72 [20:30:28]Write i2c OK [20:30:28]MH_I2C_Read... [20:30:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:30:28]Read from MH i2c: E2 [20:30:28]MH_I2C_Read... [20:30:28]Read from MH i2c: E2 0B 00 [20:30:28]MH_I2C_Read... [20:30:28]Read from MH i2c: E2 0B 00 D9 1E 00 16 3B 53 21 66 59 23 6C 90 00 86 [20:30:28]RAPDU: 16 3B 53 21 66 59 23 6C 90 00 [20:30:28]wFMCommunicate OK [20:30:28]SAM_PROTO_SignData done [20:30:28]FM_MakeSignedData done [20:30:28]CreateOFDProtocolMessage [20:30:28]wFMCommunicate request_size=4 [20:30:28]MH_SAM_APDU [20:30:28]CAPDU: 80 11 00 00 [20:30:28]Write to MH i2c: E2 08 00 DA 1E 80 11 00 00 00 00 00 00 72 [20:30:28]Write i2c OK [20:30:28]MH_I2C_Read... [20:30:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:28]Read from MH i2c: E2 [20:30:28]MH_I2C_Read... [20:30:28]Read from MH i2c: E2 17 00 [20:30:28]MH_I2C_Read... [20:30:28]Read from MH i2c: E2 17 00 DA 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CD [20:30:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:30:28]wFMCommunicate OK [20:30:28]CreateOFDProtocolMessage done [20:30:28]OFDSenderStorePacket 118292 [20:30:28]StoreOFDPacket docnum=118292 [20:30:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 59 57 04 01 FE 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BC E8 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 70 ED 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 ED 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 BC 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 ED 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 E4 58 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 14 CE 01 00 35 04 06 00 7D 43 4F 97 BB A4 16 3B 53 21 66 59 23 6C [20:30:28]CheckFolder [20:30:28]dirname=/storage/ofd_packets [20:30:28]CheckFolder done [20:30:28]ProducePacketName [20:30:28]name=ofd_packets/00118292 [20:30:28]NVStorageSaveData ofd_packets/00118292 [20:30:28]File name is /storage/ofd_packets/00118292 [20:30:28]Write 298 bytes [20:30:28]NVStorageSaveData done [20:30:28]OFDSenderStorePacket done [20:30:28]KKMCreateOFDPacket done [20:30:28]NVStorageSaveData kkm_last_timestamp [20:30:28]File name is /storage/kkm_last_timestamp [20:30:28]Write 4 bytes [20:30:28]NVStorageSaveData done [20:30:28]ExternCall_PrintAddStr [20:30:28]wPrintStart [20:30:28]Write to MH i2c: 01 00 00 DB 1E F9 [20:30:28]Write i2c OK [20:30:28]MH_I2C_Read... [20:30:28]Read from MH i2c: 01 [20:30:28]MH_I2C_Read... [20:30:28]Read from MH i2c: 01 07 00 [20:30:28]MH_I2C_Read... [20:30:28]Read from MH i2c: 01 07 00 DB 1E 00 00 00 00 00 FF 0F 0E [20:30:28]RasterBufferAndPrint [20:30:28]line Счет N : (1)949165 [20:30:28]line ИНН: 02508201610067 [20:30:28]line Контрольно-Кассовый Чек [20:30:28]line ПРОДАЖА [20:30:28]line ТРК (МРК, ГНК) : 44 [20:30:28]line Товар: 2710194800 [20:30:28]line ДТ-К-5 [20:30:28]line 59.580 * 76.20 [20:30:28]line = 4540.00 [20:30:28]line НДС 12% НСП 1% [20:30:28]line > о реализуемом товаре [20:30:28]line ИТОГО: 4540.00 [20:30:28]line НСП 1% : 40.18 [20:30:28]line НДС 12% : 482.12 [20:30:28]line Наличными: 0.00 [20:30:28]line Безнал.: 4540.00 [20:30:28]line Место: АЗС № 134 "Партнер Нефть" [20:30:28]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:30:28]line СНО: Общий режим [20:30:28]line Чек 235 27.07.2024 20:30 [20:30:28]line Смена: 432 ФФД: 1.0 [20:30:28]line ЗНМ: 0300000044 [20:30:28]line РНМ: 0000000000092660 [20:30:28]line Версия ККМ: 001 [20:30:28]line Платежная система: O! деньги [20:30:28]line ФМ: 0000000000874939 [20:30:28]line ФД: 118292 [20:30:28]line ФПД: 137728051624868 [20:30:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T203028&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118292&fm=137728051624868&tin=02508201610067®Number=0000000000092660&sum=454000 [20:30:28]OFD Sender: Processing packet 118292 [packets to send 86, broken 85] [20:30:28]ProducePacketName [20:30:28]name=ofd_packets/00118292 [20:30:28]OFD Sender: To server: pG, [20:30:28]CommunicateWithHost lk.salyk.kg:30040 [20:30:28]ConnectInit lk.salyk.kg [20:30:28]written 0, free lines is 4095 [20:30:28]Connected sock=10 [20:30:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 59 57 04 01 FE 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BC E8 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 70 ED 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 ED 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 BC 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 ED 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 E4 58 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 14 CE 01 00 35 04 06 00 7D 43 4F 97 BB A4 16 3B 53 21 66 59 23 6C [20:30:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 4E 26 47 00 54 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 14 CE 01 00 F4 03 04 00 76 06 A5 66 B6 04 01 00 00 7B D9 D6 2C 5A E4 28 97 [20:30:29]CommunicateWithHost err = 0 [20:30:29]CheckOFDResponse [20:30:29]1017 (14) - 77093643461234 [20:30:29]1041 (16) - 0000000000874939 [20:30:29]1040 (4) - 118292 [20:30:29]1012 (4) - 27.07.2024 14:38 [20:30:29]1206 (1) - 0 [20:30:29]OFD Sender: Remove packet 118292 [20:30:29]ProducePacketName [20:30:29]name=ofd_packets/00118292 [20:30:29]NVStorageDeleteData [20:30:29]Write to MH i2c: 01 00 00 04 1F 23 [20:30:29]Write i2c OK [20:30:29]MH_I2C_Read... [20:30:29]Read from MH i2c: 01 [20:30:29]MH_I2C_Read... [20:30:29]Read from MH i2c: 01 07 00 [20:30:29]MH_I2C_Read... [20:30:29]Read from MH i2c: 01 07 00 04 1F 00 00 00 00 00 05 0D 3C [20:30:29]RasterBufferAndPrint [20:30:29]line [20:30:29]line [20:30:29]line [20:30:29]line [20:30:29]line [20:30:29]written 0, free lines is 3339 [20:30:29]MH_Cut [20:30:29]Write to MH i2c: D1 01 00 0B 1F 01 FC [20:30:29]Write i2c OK [20:30:29]MH_I2C_Read... [20:30:29]Read from MH i2c: D1 [20:30:29]MH_I2C_Read... [20:30:29]Read from MH i2c: D1 01 00 [20:30:29]MH_I2C_Read... [20:30:29]Read from MH i2c: D1 01 00 0B 1F 00 FB [20:30:29]Write to MH i2c: 01 00 00 0C 1F 2B [20:30:29]Write i2c OK [20:30:29]MH_I2C_Read... [20:30:29]OFD Sender: No OFD packet to send [20:30:29]*** Cut start [20:30:29]*** Partial cut [20:30:29]*** CUTSNS_PIN = 1 [20:30:30]*** CUTSNS_PIN = 0 [20:30:30]*** Brake cut motor [20:30:30]Read from MH i2c: 01 [20:30:30]MH_I2C_Read... [20:30:30]*** Stop cut motor [20:30:30]*** Cut end [20:30:30]Read from MH i2c: 01 07 00 [20:30:30]MH_I2C_Read... [20:30:30]Read from MH i2c: 01 07 00 0C 1F 00 00 00 00 00 FF 0F 40 [20:30:30]process_action close_receipt done [20:30:30]requested_data is exist [20:30:30]produce_requested_data [20:30:30]requested_item fm.sn is exist - process it [20:30:30]wFMCommunicate request_size=4 [20:30:30]MH_SAM_APDU [20:30:30]CAPDU: 80 11 00 00 [20:30:30]Write to MH i2c: E2 08 00 0D 1F 80 11 00 00 00 00 00 00 A6 [20:30:30]Write i2c OK [20:30:30]MH_I2C_Read... [20:30:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:30]Read from MH i2c: E2 [20:30:30]MH_I2C_Read... [20:30:30]Read from MH i2c: E2 17 00 [20:30:30]MH_I2C_Read... [20:30:30]Read from MH i2c: E2 17 00 0D 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 01 [20:30:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:30:30]wFMCommunicate OK [20:30:30]requested_item fd.num is exist - process it [20:30:30]SAM_PROTO_GetFieldsCounters [20:30:30]wFMCommunicate request_size=4 [20:30:30]MH_SAM_APDU [20:30:30]CAPDU: 80 13 00 00 [20:30:30]Write to MH i2c: E2 08 00 0E 1F 80 13 00 00 00 00 00 00 A9 [20:30:30]Write i2c OK [20:30:30]MH_I2C_Read... [20:30:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:30:30]Read from MH i2c: E2 [20:30:30]MH_I2C_Read... [20:30:30]Read from MH i2c: E2 62 00 [20:30:30]MH_I2C_Read... [20:30:30]Read from MH i2c: E2 62 00 0E 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 14 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [20:30:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 14 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:30:30]wFMCommunicate OK [20:30:30]SAM_PROTO_GetFieldsCounters done [20:30:30]requested_item shift.num is exist - process it [20:30:30]requested_item shift.opened is exist - process it [20:30:30]req_shift_opened [20:30:30]FM_GetShiftState [20:30:30]SAM_PROTO_GetShiftState [20:30:30]wFMCommunicate request_size=4 [20:30:30]MH_SAM_APDU [20:30:30]CAPDU: 80 13 01 00 [20:30:30]Write to MH i2c: E2 08 00 0F 1F 80 13 01 00 00 00 00 00 AB [20:30:30]Write i2c OK [20:30:30]MH_I2C_Read... [20:30:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:30]Read from MH i2c: E2 [20:30:30]MH_I2C_Read... [20:30:30]Read from MH i2c: E2 0E 00 [20:30:30]MH_I2C_Read... [20:30:30]Read from MH i2c: E2 0E 00 0F 1F 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 38 [20:30:30]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [20:30:30]wFMCommunicate OK [20:30:30]SAM_PROTO_GetShiftState done [20:30:30]FM_GetShiftState done [20:30:30]req_shift_opened done [20:30:30]requested_item shift.open_date is exist - process it [20:30:30]req_shift_open_date [20:30:30]req_shift_open_date done [20:30:30]produce_requested_data done [20:30:30]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118292,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [20:30:30]process_action_free close_receipt [20:30:30]json_value_free [20:30:30]json_value_free done [20:30:30]process_json_proto returns [20:30:30]Send response to host [20:30:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118292,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [20:30:30]free response buf [20:30:30]execute_script done [20:30:30]execute_script returns [20:30:30]free content buf [20:30:30]Sock 7.Close socket [20:30:30]Sock 7.Thread stoped [20:30:34]OFD Sender: No OFD packet to send [20:30:39]OFD Sender: No OFD packet to send [20:30:44]OFD Sender: No OFD packet to send [20:30:49]OFD Sender: No OFD packet to send [20:30:54]OFD Sender: No OFD packet to send [20:30:59]OFD Sender: No OFD packet to send [20:31:04]OFD Sender: No OFD packet to send [20:31:09]OFD Sender: No OFD packet to send [20:31:14]OFD Sender: No OFD packet to send [20:31:19]OFD Sender: No OFD packet to send [20:31:24]OFD Sender: No OFD packet to send [20:31:29]OFD Sender: No OFD packet to send [20:31:34]OFD Sender: No OFD packet to send [20:31:39]OFD Sender: No OFD packet to send [20:31:44]OFD Sender: No OFD packet to send [20:31:49]OFD Sender: No OFD packet to send [20:31:54]OFD Sender: No OFD packet to send [20:31:59]OFD Sender: No OFD packet to send [20:32:04]OFD Sender: No OFD packet to send [20:32:09]OFD Sender: No OFD packet to send [20:32:14]OFD Sender: No OFD packet to send [20:32:19]OFD Sender: No OFD packet to send [20:32:24]OFD Sender: No OFD packet to send [20:32:29]OFD Sender: No OFD packet to send [20:32:34]OFD Sender: No OFD packet to send [20:32:39]OFD Sender: No OFD packet to send [20:32:44]OFD Sender: No OFD packet to send [20:32:49]OFD Sender: No OFD packet to send [20:32:54]OFD Sender: No OFD packet to send [20:32:59]OFD Sender: No OFD packet to send [20:33:04]OFD Sender: No OFD packet to send [20:33:09]OFD Sender: No OFD packet to send [20:33:14]OFD Sender: No OFD packet to send [20:33:19]OFD Sender: No OFD packet to send [20:33:24]OFD Sender: No OFD packet to send [20:33:29]OFD Sender: No OFD packet to send [20:33:34]OFD Sender: No OFD packet to send [20:33:39]OFD Sender: No OFD packet to send [20:33:44]OFD Sender: No OFD packet to send [20:33:49]OFD Sender: No OFD packet to send [20:33:54]OFD Sender: No OFD packet to send [20:33:59]OFD Sender: No OFD packet to send [20:34:04]OFD Sender: No OFD packet to send [20:34:09]OFD Sender: No OFD packet to send [20:34:14]OFD Sender: No OFD packet to send [20:34:19]OFD Sender: No OFD packet to send [20:34:24]OFD Sender: No OFD packet to send [20:34:29]OFD Sender: No OFD packet to send [20:34:34]OFD Sender: No OFD packet to send [20:34:39]OFD Sender: No OFD packet to send [20:34:44]OFD Sender: No OFD packet to send [20:34:49]OFD Sender: No OFD packet to send [20:34:54]OFD Sender: No OFD packet to send [20:34:59]OFD Sender: No OFD packet to send [20:35:04]OFD Sender: No OFD packet to send [20:35:09]OFD Sender: No OFD packet to send [20:35:14]OFD Sender: No OFD packet to send [20:35:19]OFD Sender: No OFD packet to send [20:35:24]OFD Sender: No OFD packet to send [20:35:29]OFD Sender: No OFD packet to send [20:35:32]accept exits with 9 [20:35:32]New connection [20:35:32]New thread 3066953060 created [20:35:32]Thread 3067096420 joined [20:35:32]Waiting for new connection... [20:35:32] Sock 9.Parse request [20:35:32]Sock 9.Check first char [20:35:32]Sock 9.First char is OK [20:35:32]request: POST /json_proto HTTP/1.0 [20:35:32]Method: POST [20:35:32]URL: /json_proto [20:35:32]Method is POST - this is cgi request [20:35:32]url: /json_proto [20:35:32]query_string will be loaded in cgi processing [20:35:32]execute_cgi json_proto POST (null) [20:35:32]execute_cgi path=json_proto method=POST [20:35:32]POST find Content-Length [20:35:32]Host: 172.17.45.7:8080 [20:35:32]Content-Length: 819 [20:35:32]Content-Type: application/json [20:35:32] [20:35:32]POST finish read [20:35:32]Found Content-Length = 819 [20:35:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:35:32]execute_script... [20:35:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:35:32]POST & json_proto [20:35:32]process_json_proto [20:35:32]json parsed OK: [20:35:32]protocol is kg_v1.0 [20:35:32]action value=close_receipt [20:35:32]process_action close_receipt [20:35:32]cmd_close_receipt [20:35:32]MH_GetDate [20:35:32]Write to MH i2c: F0 00 00 10 1F 1E [20:35:32]Write i2c OK [20:35:32]MH_I2C_Read... [20:35:32]Read from MH i2c: F0 [20:35:32]MH_I2C_Read... [20:35:32]Read from MH i2c: F0 09 00 [20:35:32]MH_I2C_Read... [20:35:32]Read from MH i2c: F0 09 00 10 1F 00 15 5A A5 66 90 0F 3E 66 E4 [20:35:32]GetLastDocTimeStamp 1722112228 [20:35:32]current date 1722112533 [20:35:32]FM_GetShiftState [20:35:32]SAM_PROTO_GetShiftState [20:35:32]wFMCommunicate request_size=4 [20:35:32]MH_SAM_APDU [20:35:32]CAPDU: 80 13 01 00 [20:35:32]Write to MH i2c: E2 08 00 11 1F 80 13 01 00 00 00 00 00 AD [20:35:32]Write i2c OK [20:35:32]MH_I2C_Read... [20:35:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:35:32]Read from MH i2c: E2 [20:35:32]MH_I2C_Read... [20:35:32]Read from MH i2c: E2 0E 00 [20:35:32]MH_I2C_Read... [20:35:32]Read from MH i2c: E2 0E 00 11 1F 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 3A [20:35:32]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [20:35:32]wFMCommunicate OK [20:35:32]SAM_PROTO_GetShiftState done [20:35:32]FM_GetShiftState done [20:35:32]opened in 1722038845 [20:35:32]opened+sec_in_day 1722125245 [20:35:32]quantity*price = 200025 [20:35:32]sum+1 = 200026 [20:35:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 236 27.07.2024 20:35 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118293 ФПД: 119323822336298 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T203533&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118293&fm=119323822336298&tin=02508201610067®Number=0000000000092660&sum=200000 [20:35:33]StoreToDocumentArchive [20:35:33]shift 432 fd 118293 [20:35:33]save to /storage/0432/doc_00118293 [20:35:33]save last doc name /storage/0432/doc_00118293 to /storage/kkm_last_doc_name [20:35:33]save OK [20:35:33]Clear old archive folders... [20:35:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:35:33]tlvbuf is 01DECB70 [20:35:33]SAM_PROTO_ClearQueue [20:35:33]wFMCommunicate request_size=4 [20:35:33]MH_SAM_APDU [20:35:33]CAPDU: 80 09 00 00 [20:35:33]Write to MH i2c: E2 08 00 1E 1F 80 09 00 00 00 00 00 00 AF [20:35:33]Write i2c OK [20:35:33]MH_I2C_Read... [20:35:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:35:33]Read from MH i2c: E2 [20:35:33]MH_I2C_Read... [20:35:33]Read from MH i2c: E2 03 00 [20:35:33]MH_I2C_Read... [20:35:33]Read from MH i2c: E2 03 00 1E 1F 00 90 00 B1 [20:35:33]RAPDU: 90 00 [20:35:33]wFMCommunicate OK [20:35:33]SAM_PROTO_ClearQueue done [20:35:33]KKMCreateOFDPacket [20:35:33]OFDProtocolAddRootSTLVToBuf [20:35:33]FM_MakeSignedData [20:35:33]FM_MakeSignedData [20:35:33]SAM_PROTO_SignData [20:35:33]wFMCommunicate request_size=4 [20:35:33]MH_SAM_APDU [20:35:33]CAPDU: 80 0D 01 02 [20:35:33]Write to MH i2c: E2 08 00 1F 1F 80 0D 01 02 00 00 00 00 B7 [20:35:33]Write i2c OK [20:35:33]MH_I2C_Read... [20:35:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:35:33]Read from MH i2c: E2 [20:35:33]MH_I2C_Read... [20:35:33]Read from MH i2c: E2 03 00 [20:35:33]MH_I2C_Read... [20:35:33]Read from MH i2c: E2 03 00 1F 1F 00 90 00 B2 [20:35:33]RAPDU: 90 00 [20:35:33]wFMCommunicate OK [20:35:33]wFMCommunicate request_size=255 [20:35:33]MH_SAM_APDU [20:35:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 15 5A A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 15 CE 01 00 35 04 06 00 6C 86 3E 0B [20:35:33]Write to MH i2c: E2 02 01 20 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 15 5A A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 15 CE 01 00 35 04 06 00 6C 86 3E 0B 00 00 6B [20:35:33]Write i2c OK [20:35:33]MH_I2C_Read... [20:35:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:35:34]Read from MH i2c: E2 [20:35:34]MH_I2C_Read... [20:35:34]Read from MH i2c: E2 03 00 [20:35:34]MH_I2C_Read... [20:35:34]Read from MH i2c: E2 03 00 20 1F 00 90 00 B3 [20:35:34]RAPDU: 90 00 [20:35:34]wFMCommunicate OK [20:35:34]wFMCommunicate request_size=7 [20:35:34]MH_SAM_APDU [20:35:34]CAPDU: 80 0D 02 02 02 29 2A [20:35:34]Write to MH i2c: E2 0A 00 21 1F 80 0D 02 02 02 00 29 2A 00 00 11 [20:35:34]Write i2c OK [20:35:34]MH_I2C_Read... [20:35:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:35:34]Read from MH i2c: E2 [20:35:34]MH_I2C_Read... [20:35:34]Read from MH i2c: E2 03 00 [20:35:34]MH_I2C_Read... [20:35:34]Read from MH i2c: E2 03 00 21 1F 00 90 00 B4 [20:35:34]RAPDU: 90 00 [20:35:34]wFMCommunicate OK [20:35:34]wFMCommunicate request_size=4 [20:35:34]MH_SAM_APDU [20:35:34]CAPDU: 80 0D 03 02 [20:35:34]Write to MH i2c: E2 08 00 22 1F 80 0D 03 02 00 00 00 00 BC [20:35:34]Write i2c OK [20:35:34]MH_I2C_Read... [20:35:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:35:34]Read from MH i2c: E2 [20:35:34]MH_I2C_Read... [20:35:34]Read from MH i2c: E2 0B 00 [20:35:34]MH_I2C_Read... [20:35:34]Read from MH i2c: E2 0B 00 22 1F 00 9E 6B C6 15 A6 32 25 1E 90 00 BC [20:35:34]RAPDU: 9E 6B C6 15 A6 32 25 1E 90 00 [20:35:34]wFMCommunicate OK [20:35:34]SAM_PROTO_SignData done [20:35:34]FM_MakeSignedData done [20:35:34]CreateOFDProtocolMessage [20:35:34]wFMCommunicate request_size=4 [20:35:34]MH_SAM_APDU [20:35:34]CAPDU: 80 11 00 00 [20:35:34]Write to MH i2c: E2 08 00 23 1F 80 11 00 00 00 00 00 00 BC [20:35:34]Write i2c OK [20:35:34]MH_I2C_Read... [20:35:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:35:34]Read from MH i2c: E2 [20:35:34]MH_I2C_Read... [20:35:34]Read from MH i2c: E2 17 00 [20:35:34]MH_I2C_Read... [20:35:34]Read from MH i2c: E2 17 00 23 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 17 [20:35:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:35:34]wFMCommunicate OK [20:35:34]CreateOFDProtocolMessage done [20:35:34]OFDSenderStorePacket 118293 [20:35:34]StoreOFDPacket docnum=118293 [20:35:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 9C A4 04 01 FA 8C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 15 5A A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 15 CE 01 00 35 04 06 00 6C 86 3E 0B 29 2A 9E 6B C6 15 A6 32 25 1E [20:35:34]CheckFolder [20:35:34]dirname=/storage/ofd_packets [20:35:34]CheckFolder done [20:35:34]ProducePacketName [20:35:34]name=ofd_packets/00118293 [20:35:34]NVStorageSaveData ofd_packets/00118293 [20:35:34]File name is /storage/ofd_packets/00118293 [20:35:34]Write 298 bytes [20:35:34]NVStorageSaveData done [20:35:34]OFDSenderStorePacket done [20:35:34]KKMCreateOFDPacket done [20:35:34]NVStorageSaveData kkm_last_timestamp [20:35:34]File name is /storage/kkm_last_timestamp [20:35:34]Write 4 bytes [20:35:34]NVStorageSaveData done [20:35:34]ExternCall_PrintAddStr [20:35:34]wPrintStart [20:35:34]Write to MH i2c: 01 00 00 24 1F 43 [20:35:34]Write i2c OK [20:35:34]MH_I2C_Read... [20:35:34]Read from MH i2c: 01 [20:35:34]MH_I2C_Read... [20:35:34]Read from MH i2c: 01 07 00 [20:35:34]MH_I2C_Read... [20:35:34]Read from MH i2c: 01 07 00 24 1F 00 00 00 00 00 FF 0F 58 [20:35:34]RasterBufferAndPrint [20:35:34]line Счет N : (1)949166 [20:35:34]line ИНН: 02508201610067 [20:35:34]line Контрольно-Кассовый Чек [20:35:34]line ПРОДАЖА [20:35:34]line ТРК (МРК, ГНК) : 44 [20:35:34]line Товар: 2710194800 [20:35:34]line ДТ-К-5 [20:35:34]line 26.250 * 76.20 [20:35:34]line = 2000.25 [20:35:34]line НДС 12% НСП 1% [20:35:34]line > о реализуемом товаре [20:35:34]line ОКРУГЛЕНИЕ: -0.25 [20:35:34]line ИТОГО: 2000.00 [20:35:34]line НСП 1% : 17.70 [20:35:34]line НДС 12% : 212.42 [20:35:34]line Наличными: 0.00 [20:35:34]line Безнал.: 2000.00 [20:35:34]line Место: АЗС № 134 "Партнер Нефть" [20:35:34]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:35:34]line СНО: Общий режим [20:35:34]line Чек 236 27.07.2024 20:35 [20:35:34]line Смена: 432 ФФД: 1.0 [20:35:34]line ЗНМ: 0300000044 [20:35:34]line РНМ: 0000000000092660 [20:35:34]line Версия ККМ: 001 [20:35:34]line Платежная система: O! деньги [20:35:34]line ФМ: 0000000000874939 [20:35:34]line ФД: 118293 [20:35:34]line ФПД: 119323822336298 [20:35:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T203533&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118293&fm=119323822336298&tin=02508201610067®Number=0000000000092660&sum=200000 [20:35:34]OFD Sender: Processing packet 118293 [packets to send 86, broken 85] [20:35:34]ProducePacketName [20:35:34]name=ofd_packets/00118293 [20:35:34]OFD Sender: To server: pG, [20:35:34]CommunicateWithHost lk.salyk.kg:30040 [20:35:34]ConnectInit lk.salyk.kg [20:35:34]written 0, free lines is 4095 [20:35:34]Connected sock=10 [20:35:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 9C A4 04 01 FA 8C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 15 5A A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 15 CE 01 00 35 04 06 00 6C 86 3E 0B 29 2A 9E 6B C6 15 A6 32 25 1E [20:35:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A7 C3 47 00 1F 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 15 CE 01 00 F4 03 04 00 A7 07 A5 66 B6 04 01 00 00 CE 99 98 94 AD B5 56 A7 [20:35:34]CommunicateWithHost err = 0 [20:35:34]CheckOFDResponse [20:35:34]1017 (14) - 77093643461234 [20:35:34]1041 (16) - 0000000000874939 [20:35:34]1040 (4) - 118293 [20:35:34]1012 (4) - 27.07.2024 14:43 [20:35:34]1206 (1) - 0 [20:35:34]OFD Sender: Remove packet 118293 [20:35:34]ProducePacketName [20:35:34]name=ofd_packets/00118293 [20:35:34]NVStorageDeleteData [20:35:34]Write to MH i2c: 01 00 00 4E 1F 6D [20:35:34]Write i2c OK [20:35:34]MH_I2C_Read... [20:35:34]Read from MH i2c: 01 [20:35:34]MH_I2C_Read... [20:35:34]Read from MH i2c: 01 07 00 [20:35:34]MH_I2C_Read... [20:35:35]Read from MH i2c: 01 07 00 4E 1F 00 00 00 00 00 F2 0C 72 [20:35:35]RasterBufferAndPrint [20:35:35]line [20:35:35]line [20:35:35]line [20:35:35]line [20:35:35]line [20:35:35]written 0, free lines is 3320 [20:35:35]MH_Cut [20:35:35]Write to MH i2c: D1 01 00 55 1F 01 46 [20:35:35]Write i2c OK [20:35:35]MH_I2C_Read... [20:35:35]Read from MH i2c: D1 [20:35:35]MH_I2C_Read... [20:35:35]Read from MH i2c: D1 01 00 [20:35:35]MH_I2C_Read... [20:35:35]Read from MH i2c: D1 01 00 55 1F 00 45 [20:35:35]Write to MH i2c: 01 00 00 56 1F 75 [20:35:35]Write i2c OK [20:35:35]MH_I2C_Read... [20:35:35]OFD Sender: No OFD packet to send [20:35:35]*** Cut start [20:35:35]*** Partial cut [20:35:35]*** CUTSNS_PIN = 1 [20:35:35]*** CUTSNS_PIN = 0 [20:35:36]*** Brake cut motor [20:35:36]Read from MH i2c: 01 [20:35:36]MH_I2C_Read... [20:35:36]*** Stop cut motor [20:35:36]*** Cut end [20:35:36]Read from MH i2c: 01 07 00 [20:35:36]MH_I2C_Read... [20:35:36]Read from MH i2c: 01 07 00 56 1F 00 00 00 00 00 FF 0F 8A [20:35:36]process_action close_receipt done [20:35:36]requested_data is exist [20:35:36]produce_requested_data [20:35:36]requested_item fm.sn is exist - process it [20:35:36]wFMCommunicate request_size=4 [20:35:36]MH_SAM_APDU [20:35:36]CAPDU: 80 11 00 00 [20:35:36]Write to MH i2c: E2 08 00 57 1F 80 11 00 00 00 00 00 00 F0 [20:35:36]Write i2c OK [20:35:36]MH_I2C_Read... [20:35:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:35:36]Read from MH i2c: E2 [20:35:36]MH_I2C_Read... [20:35:36]Read from MH i2c: E2 17 00 [20:35:36]MH_I2C_Read... [20:35:36]Read from MH i2c: E2 17 00 57 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4B [20:35:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:35:36]wFMCommunicate OK [20:35:36]requested_item fd.num is exist - process it [20:35:36]SAM_PROTO_GetFieldsCounters [20:35:36]wFMCommunicate request_size=4 [20:35:36]MH_SAM_APDU [20:35:36]CAPDU: 80 13 00 00 [20:35:36]Write to MH i2c: E2 08 00 58 1F 80 13 00 00 00 00 00 00 F3 [20:35:36]Write i2c OK [20:35:36]MH_I2C_Read... [20:35:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:35:36]Read from MH i2c: E2 [20:35:36]MH_I2C_Read... [20:35:36]Read from MH i2c: E2 62 00 [20:35:36]MH_I2C_Read... [20:35:36]Read from MH i2c: E2 62 00 58 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 15 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [20:35:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 15 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:35:36]wFMCommunicate OK [20:35:36]SAM_PROTO_GetFieldsCounters done [20:35:36]requested_item shift.num is exist - process it [20:35:36]requested_item shift.opened is exist - process it [20:35:36]req_shift_opened [20:35:36]FM_GetShiftState [20:35:36]SAM_PROTO_GetShiftState [20:35:36]wFMCommunicate request_size=4 [20:35:36]MH_SAM_APDU [20:35:36]CAPDU: 80 13 01 00 [20:35:36]Write to MH i2c: E2 08 00 59 1F 80 13 01 00 00 00 00 00 F5 [20:35:36]Write i2c OK [20:35:36]MH_I2C_Read... [20:35:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:35:36]Read from MH i2c: E2 [20:35:36]MH_I2C_Read... [20:35:36]Read from MH i2c: E2 0E 00 [20:35:36]MH_I2C_Read... [20:35:36]Read from MH i2c: E2 0E 00 59 1F 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 82 [20:35:36]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [20:35:36]wFMCommunicate OK [20:35:36]SAM_PROTO_GetShiftState done [20:35:36]FM_GetShiftState done [20:35:36]req_shift_opened done [20:35:36]requested_item shift.open_date is exist - process it [20:35:36]req_shift_open_date [20:35:36]req_shift_open_date done [20:35:36]produce_requested_data done [20:35:36]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118293,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [20:35:36]process_action_free close_receipt [20:35:36]json_value_free [20:35:36]json_value_free done [20:35:36]process_json_proto returns [20:35:36]Send response to host [20:35:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118293,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [20:35:36]free response buf [20:35:36]execute_script done [20:35:36]execute_script returns [20:35:36]free content buf [20:35:36]Sock 9.Close socket [20:35:36]Sock 9.Thread stoped [20:35:40]OFD Sender: No OFD packet to send [20:35:45]OFD Sender: No OFD packet to send [20:35:50]OFD Sender: No OFD packet to send [20:35:55]OFD Sender: No OFD packet to send [20:36:00]OFD Sender: No OFD packet to send [20:36:05]OFD Sender: No OFD packet to send [20:36:10]OFD Sender: No OFD packet to send [20:36:15]OFD Sender: No OFD packet to send [20:36:20]OFD Sender: No OFD packet to send [20:36:25]OFD Sender: No OFD packet to send [20:36:30]OFD Sender: No OFD packet to send [20:36:35]OFD Sender: No OFD packet to send [20:36:40]OFD Sender: No OFD packet to send [20:36:45]OFD Sender: No OFD packet to send [20:36:50]OFD Sender: No OFD packet to send [20:36:55]OFD Sender: No OFD packet to send [20:37:00]OFD Sender: No OFD packet to send [20:37:05]OFD Sender: No OFD packet to send [20:37:10]OFD Sender: No OFD packet to send [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:40]OFD Sender: No OFD packet to send [20:42:45]OFD Sender: No OFD packet to send [20:42:50]OFD Sender: No OFD packet to send [20:42:55]OFD Sender: No OFD packet to send [20:43:00]OFD Sender: No OFD packet to send [20:43:05]OFD Sender: No OFD packet to send [20:43:10]OFD Sender: No OFD packet to send [20:43:15]OFD Sender: No OFD packet to send [20:43:20]OFD Sender: No OFD packet to send [20:43:21]accept exits with 7 [20:43:21]New connection [20:43:21]New thread 3067096420 created [20:43:21]Thread 3066953060 joined [20:43:21]Waiting for new connection... [20:43:21] Sock 7.Parse request [20:43:21]Sock 7.Check first char [20:43:21]Sock 7.First char is OK [20:43:21]request: POST /json_proto HTTP/1.0 [20:43:21]Method: POST [20:43:21]URL: /json_proto [20:43:21]Method is POST - this is cgi request [20:43:21]url: /json_proto [20:43:21]query_string will be loaded in cgi processing [20:43:21]execute_cgi json_proto POST (null) [20:43:21]execute_cgi path=json_proto method=POST [20:43:21]POST find Content-Length [20:43:21]Host: 172.17.45.7:8080 [20:43:21]Content-Length: 682 [20:43:21]Content-Type: application/json [20:43:21] [20:43:21]POST finish read [20:43:21]Found Content-Length = 682 [20:43:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:43:22]execute_script... [20:43: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)949167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:43:22]POST & json_proto [20:43:22]process_json_proto [20:43:22]json parsed OK: [20:43:22]protocol is kg_v1.0 [20:43:22]action value=close_receipt [20:43:22]process_action close_receipt [20:43:22]cmd_close_receipt [20:43:22]MH_GetDate [20:43:22]Write to MH i2c: F0 00 00 5A 1F 68 [20:43:22]Write i2c OK [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: F0 [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: F0 09 00 [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: F0 09 00 5A 1F 00 EB 5B A5 66 90 0F 3E 66 05 [20:43:22]GetLastDocTimeStamp 1722112533 [20:43:22]current date 1722113003 [20:43:22]FM_GetShiftState [20:43:22]SAM_PROTO_GetShiftState [20:43:22]wFMCommunicate request_size=4 [20:43:22]MH_SAM_APDU [20:43:22]CAPDU: 80 13 01 00 [20:43:22]Write to MH i2c: E2 08 00 5B 1F 80 13 01 00 00 00 00 00 F7 [20:43:22]Write i2c OK [20:43:22]MH_I2C_Read... [20:43:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:22]Read from MH i2c: E2 [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: E2 0E 00 [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: E2 0E 00 5B 1F 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 84 [20:43:22]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [20:43:22]wFMCommunicate OK [20:43:22]SAM_PROTO_GetShiftState done [20:43:22]FM_GetShiftState done [20:43:22]opened in 1722038845 [20:43:22]opened+sec_in_day 1722125245 [20:43:22]quantity*price = 200010 [20:43:22]sum+1 = 200011 [20:43:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 237 27.07.2024 20:43 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118294 ФПД: 60319441199040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T204323&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118294&fm=60319441199040&tin=02508201610067®Number=0000000000092660&sum=200000 [20:43:23]StoreToDocumentArchive [20:43:23]shift 432 fd 118294 [20:43:23]save to /storage/0432/doc_00118294 [20:43:23]save last doc name /storage/0432/doc_00118294 to /storage/kkm_last_doc_name [20:43:23]save OK [20:43:23]Clear old archive folders... [20:43:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:43:23]tlvbuf is 01E33BE0 [20:43:23]SAM_PROTO_ClearQueue [20:43:23]wFMCommunicate request_size=4 [20:43:23]MH_SAM_APDU [20:43:23]CAPDU: 80 09 00 00 [20:43:23]Write to MH i2c: E2 08 00 68 1F 80 09 00 00 00 00 00 00 F9 [20:43:23]Write i2c OK [20:43:23]MH_I2C_Read... [20:43:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:43:23]Read from MH i2c: E2 [20:43:23]MH_I2C_Read... [20:43:23]Read from MH i2c: E2 03 00 [20:43:23]MH_I2C_Read... [20:43:23]Read from MH i2c: E2 03 00 68 1F 00 90 00 FB [20:43:23]RAPDU: 90 00 [20:43:23]wFMCommunicate OK [20:43:23]SAM_PROTO_ClearQueue done [20:43:23]KKMCreateOFDPacket [20:43:23]OFDProtocolAddRootSTLVToBuf [20:43:23]FM_MakeSignedData [20:43:23]FM_MakeSignedData [20:43:23]SAM_PROTO_SignData [20:43:23]wFMCommunicate request_size=4 [20:43:23]MH_SAM_APDU [20:43:23]CAPDU: 80 0D 01 02 [20:43:23]Write to MH i2c: E2 08 00 69 1F 80 0D 01 02 00 00 00 00 01 [20:43:23]Write i2c OK [20:43:23]MH_I2C_Read... [20:43:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:43:23]Read from MH i2c: E2 [20:43:23]MH_I2C_Read... [20:43:23]Read from MH i2c: E2 03 00 [20:43:23]MH_I2C_Read... [20:43:23]Read from MH i2c: E2 03 00 69 1F 00 90 00 FC [20:43:23]RAPDU: 90 00 [20:43:23]wFMCommunicate OK [20:43:23]wFMCommunicate request_size=255 [20:43:23]MH_SAM_APDU [20:43: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 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 ED 00 00 00 F4 03 04 00 EB 5B A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 16 CE 01 00 35 04 06 00 36 [20:43:23]Write to MH i2c: E2 02 01 6A 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 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 ED 00 00 00 F4 03 04 00 EB 5B A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 16 CE 01 00 35 04 06 00 36 00 00 93 [20:43:23]Write i2c OK [20:43:23]MH_I2C_Read... [20:43:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:23]Read from MH i2c: E2 [20:43:23]MH_I2C_Read... [20:43:23]Read from MH i2c: E2 03 00 [20:43:23]MH_I2C_Read... [20:43:23]Read from MH i2c: E2 03 00 6A 1F 00 90 00 FD [20:43:23]RAPDU: 90 00 [20:43:23]wFMCommunicate OK [20:43:23]wFMCommunicate request_size=10 [20:43:23]MH_SAM_APDU [20:43:23]CAPDU: 80 0D 02 02 05 DC 36 DD 9F C0 [20:43:23]Write to MH i2c: E2 0D 00 6B 1F 80 0D 02 02 05 00 DC 36 DD 9F C0 00 00 5C [20:43:23]Write i2c OK [20:43:23]MH_I2C_Read... [20:43:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:23]Read from MH i2c: E2 [20:43:23]MH_I2C_Read... [20:43:23]Read from MH i2c: E2 03 00 [20:43:23]MH_I2C_Read... [20:43:23]Read from MH i2c: E2 03 00 6B 1F 00 90 00 FE [20:43:23]RAPDU: 90 00 [20:43:23]wFMCommunicate OK [20:43:23]wFMCommunicate request_size=4 [20:43:23]MH_SAM_APDU [20:43:23]CAPDU: 80 0D 03 02 [20:43:23]Write to MH i2c: E2 08 00 6C 1F 80 0D 03 02 00 00 00 00 06 [20:43:23]Write i2c OK [20:43:23]MH_I2C_Read... [20:43:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:43:23]Read from MH i2c: E2 [20:43:23]MH_I2C_Read... [20:43:23]Read from MH i2c: E2 0B 00 [20:43:23]MH_I2C_Read... [20:43:23]Read from MH i2c: E2 0B 00 6C 1F 00 AB 1C E6 FC 42 FC 7E 33 90 00 9F [20:43:23]RAPDU: AB 1C E6 FC 42 FC 7E 33 90 00 [20:43:23]wFMCommunicate OK [20:43:23]SAM_PROTO_SignData done [20:43:23]FM_MakeSignedData done [20:43:23]CreateOFDProtocolMessage [20:43:23]wFMCommunicate request_size=4 [20:43:23]MH_SAM_APDU [20:43:23]CAPDU: 80 11 00 00 [20:43:23]Write to MH i2c: E2 08 00 6D 1F 80 11 00 00 00 00 00 00 06 [20:43:23]Write i2c OK [20:43:23]MH_I2C_Read... [20:43:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:23]Read from MH i2c: E2 [20:43:23]MH_I2C_Read... [20:43:23]Read from MH i2c: E2 17 00 [20:43:23]MH_I2C_Read... [20:43:23]Read from MH i2c: E2 17 00 6D 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 61 [20:43:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:43:23]wFMCommunicate OK [20:43:23]CreateOFDProtocolMessage done [20:43:23]OFDSenderStorePacket 118294 [20:43:23]StoreOFDPacket docnum=118294 [20:43:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F9 E6 07 01 7F 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 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 ED 00 00 00 F4 03 04 00 EB 5B A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 16 CE 01 00 35 04 06 00 36 DC 36 DD 9F C0 AB 1C E6 FC 42 FC 7E 33 [20:43:23]CheckFolder [20:43:23]dirname=/storage/ofd_packets [20:43:23]CheckFolder done [20:43:23]ProducePacketName [20:43:23]name=ofd_packets/00118294 [20:43:23]NVStorageSaveData ofd_packets/00118294 [20:43:23]File name is /storage/ofd_packets/00118294 [20:43:23]Write 301 bytes [20:43:23]NVStorageSaveData done [20:43:23]OFDSenderStorePacket done [20:43:23]KKMCreateOFDPacket done [20:43:23]NVStorageSaveData kkm_last_timestamp [20:43:23]File name is /storage/kkm_last_timestamp [20:43:23]Write 4 bytes [20:43:23]NVStorageSaveData done [20:43:23]ExternCall_PrintAddStr [20:43:23]wPrintStart [20:43:23]Write to MH i2c: 01 00 00 6E 1F 8D [20:43:23]Write i2c OK [20:43:23]MH_I2C_Read... [20:43:23]Read from MH i2c: 01 [20:43:23]MH_I2C_Read... [20:43:23]Read from MH i2c: 01 07 00 [20:43:23]MH_I2C_Read... [20:43:23]Read from MH i2c: 01 07 00 6E 1F 00 00 00 00 00 FF 0F A2 [20:43:23]RasterBufferAndPrint [20:43:23]line Счет N : (1)949167 [20:43:23]line ИНН: 02508201610067 [20:43:23]line Контрольно-Кассовый Чек [20:43:23]line ПРОДАЖА [20:43:23]line ТРК (МРК, ГНК) : 41 [20:43:23]line Товар: 2710124130 [20:43:23]line Аи-92-К-4 [20:43:23]line 29.500 * 67.80 [20:43:23]line = 2000.10 [20:43:23]line НДС 12% НСП 1% [20:43:23]line > о реализуемом товаре [20:43:23]line ОКРУГЛЕНИЕ: -0.10 [20:43:23]line ИТОГО: 2000.00 [20:43:23]line Внесено: 2000.00 [20:43:23]line СДАЧА: 0.00 [20:43:23]line НСП 1% : 17.70 [20:43:23]line НДС 12% : 212.40 [20:43:23]line Наличными: 2000.00 [20:43:23]line Безнал.: 0.00 [20:43:23]line Место: АЗС № 134 "Партнер Нефть" [20:43:23]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:43:23]line СНО: Общий режим [20:43:23]line Чек 237 27.07.2024 20:43 [20:43:23]line Смена: 432 ФФД: 1.0 [20:43:23]line ЗНМ: 0300000044 [20:43:23]line РНМ: 0000000000092660 [20:43:23]line Версия ККМ: 001 [20:43:23]line ФМ: 0000000000874939 [20:43:23]line ФД: 118294 [20:43:23]line ФПД: 60319441199040 [20:43:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T204323&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118294&fm=60319441199040&tin=02508201610067®Number=0000000000092660&sum=200000 [20:43:24]OFD Sender: Processing packet 118294 [packets to send 86, broken 85] [20:43:24]ProducePacketName [20:43:24]name=ofd_packets/00118294 [20:43:24]OFD Sender: To server: pG, [20:43:24]CommunicateWithHost lk.salyk.kg:30040 [20:43:24]ConnectInit lk.salyk.kg [20:43:24]written 0, free lines is 4095 [20:43:24]Connected sock=10 [20:43:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F9 E6 07 01 7F 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 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 ED 00 00 00 F4 03 04 00 EB 5B A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 16 CE 01 00 35 04 06 00 36 DC 36 DD 9F C0 AB 1C E6 FC 42 FC 7E 33 [20:43:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 60 A8 47 00 14 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 16 CE 01 00 F4 03 04 00 7D 09 A5 66 B6 04 01 00 00 7B 0C 8A 0B 54 47 26 B6 [20:43:24]CommunicateWithHost err = 0 [20:43:24]CheckOFDResponse [20:43:24]1017 (14) - 77093643461234 [20:43:24]1041 (16) - 0000000000874939 [20:43:24]1040 (4) - 118294 [20:43:24]1012 (4) - 27.07.2024 14:51 [20:43:24]1206 (1) - 0 [20:43:24]OFD Sender: Remove packet 118294 [20:43:24]ProducePacketName [20:43:24]name=ofd_packets/00118294 [20:43:24]NVStorageDeleteData [20:43:24]Write to MH i2c: 01 00 00 98 1F B7 [20:43:24]Write i2c OK [20:43:24]MH_I2C_Read... [20:43:24]Read from MH i2c: 01 [20:43:24]MH_I2C_Read... [20:43:24]Read from MH i2c: 01 07 00 [20:43:24]MH_I2C_Read... [20:43:24]Read from MH i2c: 01 07 00 98 1F 00 00 00 00 00 E9 0C B3 [20:43:24]RasterBufferAndPrint [20:43:24]line [20:43:24]line [20:43:24]line [20:43:24]line [20:43:24]line [20:43:24]written 0, free lines is 3311 [20:43:24]MH_Cut [20:43:24]Write to MH i2c: D1 01 00 9F 1F 01 90 [20:43:24]Write i2c OK [20:43:24]MH_I2C_Read... [20:43:24]Read from MH i2c: D1 [20:43:24]MH_I2C_Read... [20:43:24]Read from MH i2c: D1 01 00 [20:43:24]MH_I2C_Read... [20:43:24]Read from MH i2c: D1 01 00 9F 1F 00 8F [20:43:24]Write to MH i2c: 01 00 00 A0 1F BF [20:43:24]Write i2c OK [20:43:24]MH_I2C_Read... [20:43:24]OFD Sender: No OFD packet to send [20:43:25]*** Cut start [20:43:25]*** Partial cut [20:43:25]*** CUTSNS_PIN = 1 [20:43:25]*** CUTSNS_PIN = 0 [20:43:25]*** Brake cut motor [20:43:25]Read from MH i2c: 01 [20:43:25]MH_I2C_Read... [20:43:25]*** Stop cut motor [20:43:25]*** Cut end [20:43:25]Read from MH i2c: 01 07 00 [20:43:25]MH_I2C_Read... [20:43:25]Read from MH i2c: 01 07 00 A0 1F 00 00 00 00 00 FF 0F D4 [20:43:25]process_action close_receipt done [20:43:25]requested_data is exist [20:43:25]produce_requested_data [20:43:25]requested_item fm.sn is exist - process it [20:43:25]wFMCommunicate request_size=4 [20:43:25]MH_SAM_APDU [20:43:25]CAPDU: 80 11 00 00 [20:43:25]Write to MH i2c: E2 08 00 A1 1F 80 11 00 00 00 00 00 00 3A [20:43:25]Write i2c OK [20:43:25]MH_I2C_Read... [20:43:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:25]Read from MH i2c: E2 [20:43:25]MH_I2C_Read... [20:43:25]Read from MH i2c: E2 17 00 [20:43:25]MH_I2C_Read... [20:43:25]Read from MH i2c: E2 17 00 A1 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 95 [20:43:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:43:25]wFMCommunicate OK [20:43:25]requested_item fd.num is exist - process it [20:43:25]SAM_PROTO_GetFieldsCounters [20:43:25]wFMCommunicate request_size=4 [20:43:25]MH_SAM_APDU [20:43:25]CAPDU: 80 13 00 00 [20:43:25]Write to MH i2c: E2 08 00 A2 1F 80 13 00 00 00 00 00 00 3D [20:43:25]Write i2c OK [20:43:25]MH_I2C_Read... [20:43:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:43:26]Read from MH i2c: E2 [20:43:26]MH_I2C_Read... [20:43:26]Read from MH i2c: E2 62 00 [20:43:26]MH_I2C_Read... [20:43:26]Read from MH i2c: E2 62 00 A2 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 16 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [20:43:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 16 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:43:26]wFMCommunicate OK [20:43:26]SAM_PROTO_GetFieldsCounters done [20:43:26]requested_item shift.num is exist - process it [20:43:26]requested_item shift.opened is exist - process it [20:43:26]req_shift_opened [20:43:26]FM_GetShiftState [20:43:26]SAM_PROTO_GetShiftState [20:43:26]wFMCommunicate request_size=4 [20:43:26]MH_SAM_APDU [20:43:26]CAPDU: 80 13 01 00 [20:43:26]Write to MH i2c: E2 08 00 A3 1F 80 13 01 00 00 00 00 00 3F [20:43:26]Write i2c OK [20:43:26]MH_I2C_Read... [20:43:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:26]Read from MH i2c: E2 [20:43:26]MH_I2C_Read... [20:43:26]Read from MH i2c: E2 0E 00 [20:43:26]MH_I2C_Read... [20:43:26]Read from MH i2c: E2 0E 00 A3 1F 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 CC [20:43:26]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [20:43:26]wFMCommunicate OK [20:43:26]SAM_PROTO_GetShiftState done [20:43:26]FM_GetShiftState done [20:43:26]req_shift_opened done [20:43:26]requested_item shift.open_date is exist - process it [20:43:26]req_shift_open_date [20:43:26]req_shift_open_date done [20:43:26]produce_requested_data done [20:43:26]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118294,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [20:43:26]process_action_free close_receipt [20:43:26]json_value_free [20:43:26]json_value_free done [20:43:26]process_json_proto returns [20:43:26]Send response to host [20:43:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118294,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [20:43:26]free response buf [20:43:26]execute_script done [20:43:26]execute_script returns [20:43:26]free content buf [20:43:26]Sock 7.Close socket [20:43:26]Sock 7.Thread stoped [20:43:29]OFD Sender: No OFD packet to send [20:43:34]OFD Sender: No OFD packet to send [20:43:39]OFD Sender: No OFD packet to send [20:43:44]OFD Sender: No OFD packet to send [20:43:49]OFD Sender: No OFD packet to send [20:43:54]OFD Sender: No OFD packet to send [20:44:00]OFD Sender: No OFD packet to send [20:44:05]OFD Sender: No OFD packet to send [20:44:10]OFD Sender: No OFD packet to send [20:44:15]OFD Sender: No OFD packet to send [20:44:20]OFD Sender: No OFD packet to send [20:44:25]OFD Sender: No OFD packet to send [20:44:30]OFD Sender: No OFD packet to send [20:44:35]OFD Sender: No OFD packet to send [20:44:40]OFD Sender: No OFD packet to send [20:44:45]OFD Sender: No OFD packet to send [20:44:50]OFD Sender: No OFD packet to send [20:44:55]OFD Sender: No OFD packet to send [20:45:00]OFD Sender: No OFD packet to send [20:45:05]OFD Sender: No OFD packet to send [20:45:10]OFD Sender: No OFD packet to send [20:45:15]OFD Sender: No OFD packet to send [20:45:20]OFD Sender: No OFD packet to send [20:45:25]OFD Sender: No OFD packet to send [20:45:30]OFD Sender: No OFD packet to send [20:45:35]OFD Sender: No OFD packet to send [20:45:40]OFD Sender: No OFD packet to send [20:45:45]OFD Sender: No OFD packet to send [20:45:50]OFD Sender: No OFD packet to send [20:45:55]OFD Sender: No OFD packet to send [20:46:00]OFD Sender: No OFD packet to send [20:46:05]OFD Sender: No OFD packet to send [20:46:10]OFD Sender: No OFD packet to send [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:25]OFD Sender: No OFD packet to send [20:50:30]OFD Sender: No OFD packet to send [20:50:35]OFD Sender: No OFD packet to send [20:50:40]OFD Sender: No OFD packet to send [20:50:45]OFD Sender: No OFD packet to send [20:50:50]OFD Sender: No OFD packet to send [20:50:55]OFD Sender: No OFD packet to send [20:51:00]OFD Sender: No OFD packet to send [20:51:05]OFD Sender: No OFD packet to send [20:51:10]OFD Sender: No OFD packet to send [20:51:15]OFD Sender: No OFD packet to send [20:51:20]OFD Sender: No OFD packet to send [20:51:25]OFD Sender: No OFD packet to send [20:51:30]OFD Sender: No OFD packet to send [20:51:35]OFD Sender: No OFD packet to send [20:51:40]OFD Sender: No OFD packet to send [20:51:45]OFD Sender: No OFD packet to send [20:51:50]OFD Sender: No OFD packet to send [20:51:55]OFD Sender: No OFD packet to send [20:52:00]OFD Sender: No OFD packet to send [20:52:05]OFD Sender: No OFD packet to send [20:52:10]OFD Sender: No OFD packet to send [20:52:15]OFD Sender: No OFD packet to send [20:52:20]OFD Sender: No OFD packet to send [20:52:25]OFD Sender: No OFD packet to send [20:52:30]OFD Sender: No OFD packet to send [20:52:35]OFD Sender: No OFD packet to send [20:52:40]OFD Sender: No OFD packet to send [20:52:45]OFD Sender: No OFD packet to send [20:52:50]OFD Sender: No OFD packet to send [20:52:55]OFD Sender: No OFD packet to send [20:53:00]OFD Sender: No OFD packet to send [20:53:05]OFD Sender: No OFD packet to send [20:53:10]OFD Sender: No OFD packet to send [20:53:15]OFD Sender: No OFD packet to send [20:53:20]OFD Sender: No OFD packet to send [20:53:25]OFD Sender: No OFD packet to send [20:53:30]OFD Sender: No OFD packet to send [20:53:35]OFD Sender: No OFD packet to send [20:53:40]OFD Sender: No OFD packet to send [20:53:45]OFD Sender: No OFD packet to send [20:53:50]OFD Sender: No OFD packet to send [20:53:55]OFD Sender: No OFD packet to send [20:54:00]OFD Sender: No OFD packet to send [20:54:05]OFD Sender: No OFD packet to send [20:54:10]OFD Sender: No OFD packet to send [20:54:15]OFD Sender: No OFD packet to send [20:54:20]OFD Sender: No OFD packet to send [20:54:25]OFD Sender: No OFD packet to send [20:54:30]OFD Sender: No OFD packet to send [20:54:35]OFD Sender: No OFD packet to send [20:54: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:52]accept exits with 9 [20:56:52]New connection [20:56:52]New thread 3066953060 created [20:56:52]Thread 3067096420 joined [20:56:52]Waiting for new connection... [20:56:52] Sock 9.Parse request [20:56:52]Sock 9.Check first char [20:56:52]Sock 9.First char is OK [20:56:52]request: POST /json_proto HTTP/1.0 [20:56:52]Method: POST [20:56:52]URL: /json_proto [20:56:52]Method is POST - this is cgi request [20:56:52]url: /json_proto [20:56:52]query_string will be loaded in cgi processing [20:56:52]execute_cgi json_proto POST (null) [20:56:52]execute_cgi path=json_proto method=POST [20:56:52]POST find Content-Length [20:56:52]Host: 172.17.45.7:8080 [20:56:52]Content-Length: 674 [20:56:52]Content-Type: application/json [20:56:52] [20:56:52]POST finish read [20:56:52]Found Content-Length = 674 [20:56:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:56:52]execute_script... [20:56: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)949168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:56:52]POST & json_proto [20:56:52]process_json_proto [20:56:52]json parsed OK: [20:56:52]protocol is kg_v1.0 [20:56:52]action value=close_receipt [20:56:52]process_action close_receipt [20:56:52]cmd_close_receipt [20:56:52]MH_GetDate [20:56:52]Write to MH i2c: F0 00 00 A4 1F B2 [20:56:52]Write i2c OK [20:56:52]MH_I2C_Read... [20:56:52]Read from MH i2c: F0 [20:56:52]MH_I2C_Read... [20:56:52]Read from MH i2c: F0 09 00 [20:56:52]MH_I2C_Read... [20:56:52]Read from MH i2c: F0 09 00 A4 1F 00 16 5F A5 66 90 0F 3E 66 7E [20:56:52]GetLastDocTimeStamp 1722113003 [20:56:52]current date 1722113814 [20:56:52]FM_GetShiftState [20:56:52]SAM_PROTO_GetShiftState [20:56:52]wFMCommunicate request_size=4 [20:56:52]MH_SAM_APDU [20:56:52]CAPDU: 80 13 01 00 [20:56:52]Write to MH i2c: E2 08 00 A5 1F 80 13 01 00 00 00 00 00 41 [20:56:52]Write i2c OK [20:56:52]MH_I2C_Read... [20:56:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:52]Read from MH i2c: E2 [20:56:52]MH_I2C_Read... [20:56:52]Read from MH i2c: E2 0E 00 [20:56:52]MH_I2C_Read... [20:56:52]Read from MH i2c: E2 0E 00 A5 1F 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 CE [20:56:52]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [20:56:52]wFMCommunicate OK [20:56:52]SAM_PROTO_GetShiftState done [20:56:52]FM_GetShiftState done [20:56:52]opened in 1722038845 [20:56:52]opened+sec_in_day 1722125245 [20:56:52]quantity*price = 60045 [20:56:52]sum+1 = 60047 [20:56:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 238 27.07.2024 20:56 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118295 ФПД: 265745300952735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T205654&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118295&fm=265745300952735&tin=02508201610067®Number=0000000000092660&sum=60000 [20:56:54]StoreToDocumentArchive [20:56:54]shift 432 fd 118295 [20:56:54]save to /storage/0432/doc_00118295 [20:56:54]save last doc name /storage/0432/doc_00118295 to /storage/kkm_last_doc_name [20:56:54]save OK [20:56:54]Clear old archive folders... [20:56:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:56:54]tlvbuf is 01E1D8B0 [20:56:54]SAM_PROTO_ClearQueue [20:56:54]wFMCommunicate request_size=4 [20:56:54]MH_SAM_APDU [20:56:54]CAPDU: 80 09 00 00 [20:56:54]Write to MH i2c: E2 08 00 B2 1F 80 09 00 00 00 00 00 00 43 [20:56:54]Write i2c OK [20:56:54]MH_I2C_Read... [20:56:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:56:54]Read from MH i2c: E2 [20:56:54]MH_I2C_Read... [20:56:54]Read from MH i2c: E2 03 00 [20:56:54]MH_I2C_Read... [20:56:54]Read from MH i2c: E2 03 00 B2 1F 00 90 00 45 [20:56:54]RAPDU: 90 00 [20:56:54]wFMCommunicate OK [20:56:54]SAM_PROTO_ClearQueue done [20:56:54]KKMCreateOFDPacket [20:56:54]OFDProtocolAddRootSTLVToBuf [20:56:54]FM_MakeSignedData [20:56:54]FM_MakeSignedData [20:56:54]SAM_PROTO_SignData [20:56:54]wFMCommunicate request_size=4 [20:56:54]MH_SAM_APDU [20:56:54]CAPDU: 80 0D 01 02 [20:56:54]Write to MH i2c: E2 08 00 B3 1F 80 0D 01 02 00 00 00 00 4B [20:56:54]Write i2c OK [20:56:54]MH_I2C_Read... [20:56:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:56:54]Read from MH i2c: E2 [20:56:54]MH_I2C_Read... [20:56:54]Read from MH i2c: E2 03 00 [20:56:54]MH_I2C_Read... [20:56:54]Read from MH i2c: E2 03 00 B3 1F 00 90 00 46 [20:56:54]RAPDU: 90 00 [20:56:54]wFMCommunicate OK [20:56:54]wFMCommunicate request_size=255 [20:56:54]MH_SAM_APDU [20:56: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 16 5F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 17 CE 01 00 35 04 06 00 F1 B1 A6 43 [20:56:54]Write to MH i2c: E2 02 01 B4 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 16 5F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 17 CE 01 00 35 04 06 00 F1 B1 A6 43 00 00 2C [20:56:54]Write i2c OK [20:56:54]MH_I2C_Read... [20:56:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:54]Read from MH i2c: E2 [20:56:54]MH_I2C_Read... [20:56:54]Read from MH i2c: E2 03 00 [20:56:54]MH_I2C_Read... [20:56:54]Read from MH i2c: E2 03 00 B4 1F 00 90 00 47 [20:56:54]RAPDU: 90 00 [20:56:54]wFMCommunicate OK [20:56:54]wFMCommunicate request_size=7 [20:56:54]MH_SAM_APDU [20:56:54]CAPDU: 80 0D 02 02 02 96 9F [20:56:54]Write to MH i2c: E2 0A 00 B5 1F 80 0D 02 02 02 00 96 9F 00 00 87 [20:56:54]Write i2c OK [20:56:54]MH_I2C_Read... [20:56:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:54]Read from MH i2c: E2 [20:56:54]MH_I2C_Read... [20:56:54]Read from MH i2c: E2 03 00 [20:56:54]MH_I2C_Read... [20:56:54]Read from MH i2c: E2 03 00 B5 1F 00 90 00 48 [20:56:54]RAPDU: 90 00 [20:56:54]wFMCommunicate OK [20:56:54]wFMCommunicate request_size=4 [20:56:54]MH_SAM_APDU [20:56:54]CAPDU: 80 0D 03 02 [20:56:54]Write to MH i2c: E2 08 00 B6 1F 80 0D 03 02 00 00 00 00 50 [20:56:54]Write i2c OK [20:56:54]MH_I2C_Read... [20:56:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:56:54]Read from MH i2c: E2 [20:56:54]MH_I2C_Read... [20:56:54]Read from MH i2c: E2 0B 00 [20:56:54]MH_I2C_Read... [20:56:54]Read from MH i2c: E2 0B 00 B6 1F 00 42 6C 73 D6 1B EB DE 45 90 00 71 [20:56:54]RAPDU: 42 6C 73 D6 1B EB DE 45 90 00 [20:56:54]wFMCommunicate OK [20:56:54]SAM_PROTO_SignData done [20:56:54]FM_MakeSignedData done [20:56:54]CreateOFDProtocolMessage [20:56:54]wFMCommunicate request_size=4 [20:56:54]MH_SAM_APDU [20:56:54]CAPDU: 80 11 00 00 [20:56:54]Write to MH i2c: E2 08 00 B7 1F 80 11 00 00 00 00 00 00 50 [20:56:54]Write i2c OK [20:56:54]MH_I2C_Read... [20:56:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:54]Read from MH i2c: E2 [20:56:54]MH_I2C_Read... [20:56:54]Read from MH i2c: E2 17 00 [20:56:54]MH_I2C_Read... [20:56:54]Read from MH i2c: E2 17 00 B7 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AB [20:56:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:56:54]wFMCommunicate OK [20:56:54]CreateOFDProtocolMessage done [20:56:54]OFDSenderStorePacket 118295 [20:56:54]StoreOFDPacket docnum=118295 [20:56:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 9E 69 04 01 17 C2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 16 5F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 17 CE 01 00 35 04 06 00 F1 B1 A6 43 96 9F 42 6C 73 D6 1B EB DE 45 [20:56:54]CheckFolder [20:56:54]dirname=/storage/ofd_packets [20:56:54]CheckFolder done [20:56:54]ProducePacketName [20:56:54]name=ofd_packets/00118295 [20:56:54]NVStorageSaveData ofd_packets/00118295 [20:56:54]File name is /storage/ofd_packets/00118295 [20:56:54]Write 298 bytes [20:56:54]NVStorageSaveData done [20:56:54]OFDSenderStorePacket done [20:56:54]KKMCreateOFDPacket done [20:56:54]NVStorageSaveData kkm_last_timestamp [20:56:54]File name is /storage/kkm_last_timestamp [20:56:54]Write 4 bytes [20:56:54]NVStorageSaveData done [20:56:54]ExternCall_PrintAddStr [20:56:54]wPrintStart [20:56:54]Write to MH i2c: 01 00 00 B8 1F D7 [20:56:54]Write i2c OK [20:56:54]MH_I2C_Read... [20:56:54]Read from MH i2c: 01 [20:56:54]MH_I2C_Read... [20:56:54]Read from MH i2c: 01 07 00 [20:56:54]MH_I2C_Read... [20:56:54]Read from MH i2c: 01 07 00 B8 1F 00 00 00 00 00 FF 0F EC [20:56:54]RasterBufferAndPrint [20:56:54]line Счет N : (1)949168 [20:56:54]line ИНН: 02508201610067 [20:56:54]line Контрольно-Кассовый Чек [20:56:54]line ПРОДАЖА [20:56:54]line ТРК (МРК, ГНК) : 44 [20:56:54]line Товар: 2710194800 [20:56:54]line ДТ-К-5 [20:56:54]line 7.880 * 76.20 [20:56:54]line = 600.46 [20:56:54]line НДС 12% НСП 1% [20:56:54]line > о реализуемом товаре [20:56:54]line ОКРУГЛЕНИЕ: -0.46 [20:56:54]line ИТОГО: 600.00 [20:56:54]line Внесено: 600.00 [20:56:54]line СДАЧА: 0.00 [20:56:54]line НСП 1% : 5.31 [20:56:54]line НДС 12% : 63.77 [20:56:54]line Наличными: 600.00 [20:56:54]line Безнал.: 0.00 [20:56:54]line Место: АЗС № 134 "Партнер Нефть" [20:56:54]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:56:54]line СНО: Общий режим [20:56:54]line Чек 238 27.07.2024 20:56 [20:56:54]line Смена: 432 ФФД: 1.0 [20:56:54]line ЗНМ: 0300000044 [20:56:54]line РНМ: 0000000000092660 [20:56:54]line Версия ККМ: 001 [20:56:54]line ФМ: 0000000000874939 [20:56:54]line ФД: 118295 [20:56:54]line ФПД: 265745300952735 [20:56:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T205654&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118295&fm=265745300952735&tin=02508201610067®Number=0000000000092660&sum=60000 [20:56:54]OFD Sender: Processing packet 118295 [packets to send 86, broken 85] [20:56:54]ProducePacketName [20:56:54]name=ofd_packets/00118295 [20:56:54]OFD Sender: To server: pG, [20:56:54]CommunicateWithHost lk.salyk.kg:30040 [20:56:54]ConnectInit lk.salyk.kg [20:56:54]written 0, free lines is 4095 [20:56:55]Connected sock=10 [20:56:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 9E 69 04 01 17 C2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 16 5F A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 17 CE 01 00 35 04 06 00 F1 B1 A6 43 96 9F 42 6C 73 D6 1B EB DE 45 [20:56:55]Write to MH i2c: 01 00 00 E2 1F 01 [20:56:55]Write i2c OK [20:56:55]MH_I2C_Read... [20:56:55]Read from MH i2c: 01 [20:56:55]MH_I2C_Read... [20:56:55]Read from MH i2c: 01 07 00 [20:56:55]MH_I2C_Read... [20:56:55]Read from MH i2c: 01 07 00 E2 1F 00 00 00 00 00 D9 0C ED [20:56:55]RasterBufferAndPrint [20:56:55]line [20:56:55]line [20:56:55]line [20:56:55]line [20:56:55]line [20:56:55]written 0, free lines is 3296 [20:56:55]MH_Cut [20:56:55]Write to MH i2c: D1 01 00 E9 1F 01 DA [20:56:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D3 2D 47 00 9E F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 17 CE 01 00 F4 03 04 00 A8 0C A5 66 B6 04 01 00 00 5B 10 3F 52 D5 9A 6C 8F [20:56:55]CommunicateWithHost err = 0 [20:56:55]CheckOFDResponse [20:56:55]1017 (14) - 77093643461234 [20:56:55]1041 (16) - 0000000000874939 [20:56:55]1040 (4) - 118295 [20:56:55]1012 (4) - 27.07.2024 15:05 [20:56:55]1206 (1) - 0 [20:56:55]OFD Sender: Remove packet 118295 [20:56:55]ProducePacketName [20:56:55]name=ofd_packets/00118295 [20:56:55]NVStorageDeleteData [20:56:55]Write i2c OK [20:56:55]MH_I2C_Read... [20:56:55]Read from MH i2c: D1 [20:56:55]MH_I2C_Read... [20:56:55]Read from MH i2c: D1 01 00 [20:56:55]MH_I2C_Read... [20:56:55]Read from MH i2c: D1 01 00 E9 1F 00 D9 [20:56:55]Write to MH i2c: 01 00 00 EA 1F 09 [20:56:55]Write i2c OK [20:56:55]MH_I2C_Read... [20:56:55]OFD Sender: No OFD packet to send [20:56:56]*** Cut start [20:56:56]*** Partial cut [20:56:56]*** CUTSNS_PIN = 1 [20:56:56]*** CUTSNS_PIN = 0 [20:56:56]*** Brake cut motor [20:56:56]Read from MH i2c: 01 [20:56:56]MH_I2C_Read... [20:56:56]*** Stop cut motor [20:56:56]*** Cut end [20:56:56]Read from MH i2c: 01 07 00 [20:56:56]MH_I2C_Read... [20:56:56]Read from MH i2c: 01 07 00 EA 1F 00 00 00 00 00 FF 0F 1E [20:56:56]process_action close_receipt done [20:56:56]requested_data is exist [20:56:56]produce_requested_data [20:56:56]requested_item fm.sn is exist - process it [20:56:56]wFMCommunicate request_size=4 [20:56:56]MH_SAM_APDU [20:56:56]CAPDU: 80 11 00 00 [20:56:56]Write to MH i2c: E2 08 00 EB 1F 80 11 00 00 00 00 00 00 84 [20:56:56]Write i2c OK [20:56:56]MH_I2C_Read... [20:56:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:56]Read from MH i2c: E2 [20:56:56]MH_I2C_Read... [20:56:56]Read from MH i2c: E2 17 00 [20:56:56]MH_I2C_Read... [20:56:56]Read from MH i2c: E2 17 00 EB 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DF [20:56:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:56:56]wFMCommunicate OK [20:56:56]requested_item fd.num is exist - process it [20:56:56]SAM_PROTO_GetFieldsCounters [20:56:56]wFMCommunicate request_size=4 [20:56:56]MH_SAM_APDU [20:56:56]CAPDU: 80 13 00 00 [20:56:56]Write to MH i2c: E2 08 00 EC 1F 80 13 00 00 00 00 00 00 87 [20:56:56]Write i2c OK [20:56:56]MH_I2C_Read... [20:56:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:56:56]Read from MH i2c: E2 [20:56:56]MH_I2C_Read... [20:56:56]Read from MH i2c: E2 62 00 [20:56:56]MH_I2C_Read... [20:56:56]Read from MH i2c: E2 62 00 EC 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 17 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [20:56:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 17 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:56:56]wFMCommunicate OK [20:56:56]SAM_PROTO_GetFieldsCounters done [20:56:56]requested_item shift.num is exist - process it [20:56:56]requested_item shift.opened is exist - process it [20:56:56]req_shift_opened [20:56:56]FM_GetShiftState [20:56:56]SAM_PROTO_GetShiftState [20:56:56]wFMCommunicate request_size=4 [20:56:56]MH_SAM_APDU [20:56:56]CAPDU: 80 13 01 00 [20:56:56]Write to MH i2c: E2 08 00 ED 1F 80 13 01 00 00 00 00 00 89 [20:56:56]Write i2c OK [20:56:56]MH_I2C_Read... [20:56:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:57]Read from MH i2c: E2 [20:56:57]MH_I2C_Read... [20:56:57]Read from MH i2c: E2 0E 00 [20:56:57]MH_I2C_Read... [20:56:57]Read from MH i2c: E2 0E 00 ED 1F 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 16 [20:56:57]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [20:56:57]wFMCommunicate OK [20:56:57]SAM_PROTO_GetShiftState done [20:56:57]FM_GetShiftState done [20:56:57]req_shift_opened done [20:56:57]requested_item shift.open_date is exist - process it [20:56:57]req_shift_open_date [20:56:57]req_shift_open_date done [20:56:57]produce_requested_data done [20:56:57]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118295,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [20:56:57]process_action_free close_receipt [20:56:57]json_value_free [20:56:57]json_value_free done [20:56:57]process_json_proto returns [20:56:57]Send response to host [20:56:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118295,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [20:56:57]free response buf [20:56:57]execute_script done [20:56:57]execute_script returns [20:56:57]free content buf [20:56:57]Sock 9.Close socket [20:56:57]Sock 9.Thread stoped [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:01]OFD Sender: No OFD packet to send [20:58:06]OFD Sender: No OFD packet to send [20:58:11]OFD Sender: No OFD packet to send [20:58:16]OFD Sender: No OFD packet to send [20:58:21]OFD Sender: No OFD packet to send [20:58:26]OFD Sender: No OFD packet to send [20:58:31]OFD Sender: No OFD packet to send [20:58:36]OFD Sender: No OFD packet to send [20:58:41]OFD Sender: No OFD packet to send [20:58:46]OFD Sender: No OFD packet to send [20:58:51]OFD Sender: No OFD packet to send [20:58:56]OFD Sender: No OFD packet to send [20:59:01]OFD Sender: No OFD packet to send [20:59:06]OFD Sender: No OFD packet to send [20:59:11]OFD Sender: No OFD packet to send [20:59:16]OFD Sender: No OFD packet to send [20:59:21]OFD Sender: No OFD packet to send [20:59:26]OFD Sender: No OFD packet to send [20:59:31]OFD Sender: No OFD packet to send [20:59:36]OFD Sender: No OFD packet to send [20:59:41]OFD Sender: No OFD packet to send [20:59:46]OFD Sender: No OFD packet to send [20:59:51]OFD Sender: No OFD packet to send [20:59:56]OFD Sender: No OFD packet to send [21:00:01]OFD Sender: No OFD packet to send [21:00:06]OFD Sender: No OFD packet to send [21:00:11]OFD Sender: No OFD packet to send [21:00:16]OFD Sender: No OFD packet to send [21:00:21]OFD Sender: No OFD packet to send [21:00:26]OFD Sender: No OFD packet to send [21:00:31]OFD Sender: No OFD packet to send [21:00:36]OFD Sender: No OFD packet to send [21:00:41]OFD Sender: No OFD packet to send [21:00:46]OFD Sender: No OFD packet to send [21:00:51]OFD Sender: No OFD packet to send [21:00:56]OFD Sender: No OFD packet to send [21:01:01]OFD Sender: No OFD packet to send [21:01:06]OFD Sender: No OFD packet to send [21:01:11]OFD Sender: No OFD packet to send [21:01:16]OFD Sender: No OFD packet to send [21:01:21]OFD Sender: No OFD packet to send [21:01:26]OFD Sender: No OFD packet to send [21:01:31]OFD Sender: No OFD packet to send [21:01:36]OFD Sender: No OFD packet to send [21:01:41]OFD Sender: No OFD packet to send [21:01:46]OFD Sender: No OFD packet to send [21:01:51]OFD Sender: No OFD packet to send [21:01:56]OFD Sender: No OFD packet to send [21:02:01]OFD Sender: No OFD packet to send [21:02:06]OFD Sender: No OFD packet to send [21:02:11]OFD Sender: No OFD packet to send [21:02:16]OFD Sender: No OFD packet to send [21:02:21]OFD Sender: No OFD packet to send [21:02:26]OFD Sender: No OFD packet to send [21:02:29]accept exits with 7 [21:02:29]New connection [21:02:29]New thread 3067096420 created [21:02:29]Thread 3066953060 joined [21:02:29]Waiting for new connection... [21:02:29] Sock 7.Parse request [21:02:29]Sock 7.Check first char [21:02:29]Sock 7.First char is OK [21:02:29]request: POST /json_proto HTTP/1.0 [21:02:29]Method: POST [21:02:29]URL: /json_proto [21:02:29]Method is POST - this is cgi request [21:02:29]url: /json_proto [21:02:29]query_string will be loaded in cgi processing [21:02:29]execute_cgi json_proto POST (null) [21:02:29]execute_cgi path=json_proto method=POST [21:02:29]POST find Content-Length [21:02:29]Host: 172.17.45.7:8080 [21:02:29]Content-Length: 819 [21:02:29]Content-Type: application/json [21:02:29] [21:02:29]POST finish read [21:02:29]Found Content-Length = 819 [21:02:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 42.000, "sum" : 3200.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", "total" : 3200.00, "payments": [ { "type": 1, "sum" : 3200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:02:29]execute_script... [21:02: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)949169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 42.000, "sum" : 3200.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", "total" : 3200.00, "payments": [ { "type": 1, "sum" : 3200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:02:29]POST & json_proto [21:02:29]process_json_proto [21:02:29]json parsed OK: [21:02:29]protocol is kg_v1.0 [21:02:29]action value=close_receipt [21:02:29]process_action close_receipt [21:02:29]cmd_close_receipt [21:02:29]MH_GetDate [21:02:29]Write to MH i2c: F0 00 00 EE 1F FC [21:02:29]Write i2c OK [21:02:29]MH_I2C_Read... [21:02:29]Read from MH i2c: F0 [21:02:29]MH_I2C_Read... [21:02:29]Read from MH i2c: F0 09 00 [21:02:29]MH_I2C_Read... [21:02:29]Read from MH i2c: F0 09 00 EE 1F 00 66 60 A5 66 90 0F 3E 66 19 [21:02:29]GetLastDocTimeStamp 1722113814 [21:02:29]current date 1722114150 [21:02:29]FM_GetShiftState [21:02:29]SAM_PROTO_GetShiftState [21:02:29]wFMCommunicate request_size=4 [21:02:29]MH_SAM_APDU [21:02:29]CAPDU: 80 13 01 00 [21:02:29]Write to MH i2c: E2 08 00 EF 1F 80 13 01 00 00 00 00 00 8B [21:02:29]Write i2c OK [21:02:29]MH_I2C_Read... [21:02:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:02:29]Read from MH i2c: E2 [21:02:29]MH_I2C_Read... [21:02:29]Read from MH i2c: E2 0E 00 [21:02:29]MH_I2C_Read... [21:02:29]Read from MH i2c: E2 0E 00 EF 1F 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 18 [21:02:29]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:02:29]wFMCommunicate OK [21:02:29]SAM_PROTO_GetShiftState done [21:02:29]FM_GetShiftState done [21:02:29]opened in 1722038845 [21:02:29]opened+sec_in_day 1722125245 [21:02:29]quantity*price = 320040 [21:02:29]sum+1 = 320041 [21:02:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 3200.00 НСП 1% : 28.32 НДС 12% : 339.86 Наличными: 0.00 Безнал.: 3200.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 239 27.07.2024 21:02 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118296 ФПД: 95623037689692 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T210230&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118296&fm=95623037689692&tin=02508201610067®Number=0000000000092660&sum=320000 [21:02:30]StoreToDocumentArchive [21:02:30]shift 432 fd 118296 [21:02:30]save to /storage/0432/doc_00118296 [21:02:30]save last doc name /storage/0432/doc_00118296 to /storage/kkm_last_doc_name [21:02:30]save OK [21:02:30]Clear old archive folders... [21:02:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:02:30]tlvbuf is 01E21BC0 [21:02:30]SAM_PROTO_ClearQueue [21:02:30]wFMCommunicate request_size=4 [21:02:30]MH_SAM_APDU [21:02:30]CAPDU: 80 09 00 00 [21:02:30]Write to MH i2c: E2 08 00 FC 1F 80 09 00 00 00 00 00 00 8D [21:02:30]Write i2c OK [21:02:30]MH_I2C_Read... [21:02:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:02:30]Read from MH i2c: E2 [21:02:30]MH_I2C_Read... [21:02:30]Read from MH i2c: E2 03 00 [21:02:30]MH_I2C_Read... [21:02:30]Read from MH i2c: E2 03 00 FC 1F 00 90 00 8F [21:02:30]RAPDU: 90 00 [21:02:30]wFMCommunicate OK [21:02:30]SAM_PROTO_ClearQueue done [21:02:30]KKMCreateOFDPacket [21:02:30]OFDProtocolAddRootSTLVToBuf [21:02:30]FM_MakeSignedData [21:02:30]FM_MakeSignedData [21:02:30]SAM_PROTO_SignData [21:02:30]wFMCommunicate request_size=4 [21:02:30]MH_SAM_APDU [21:02:30]CAPDU: 80 0D 01 02 [21:02:30]Write to MH i2c: E2 08 00 FD 1F 80 0D 01 02 00 00 00 00 95 [21:02:30]Write i2c OK [21:02:30]MH_I2C_Read... [21:02:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:02:30]Read from MH i2c: E2 [21:02:30]MH_I2C_Read... [21:02:30]Read from MH i2c: E2 03 00 [21:02:30]MH_I2C_Read... [21:02:30]Read from MH i2c: E2 03 00 FD 1F 00 90 00 90 [21:02:30]RAPDU: 90 00 [21:02:30]wFMCommunicate OK [21:02:30]wFMCommunicate request_size=255 [21:02:30]MH_SAM_APDU [21:02: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 A4 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 28 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 E2 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 66 60 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 18 CE 01 00 35 04 06 00 56 F7 F9 31 [21:02:30]Write to MH i2c: E2 02 01 FE 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 A4 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 28 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 E2 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 66 60 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 18 CE 01 00 35 04 06 00 56 F7 F9 31 00 00 9C [21:02:30]Write i2c OK [21:02:30]MH_I2C_Read... [21:02:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:02:30]Read from MH i2c: E2 [21:02:30]MH_I2C_Read... [21:02:30]Read from MH i2c: E2 03 00 [21:02:30]MH_I2C_Read... [21:02:30]Read from MH i2c: E2 03 00 FE 1F 00 90 00 91 [21:02:30]RAPDU: 90 00 [21:02:30]wFMCommunicate OK [21:02:30]wFMCommunicate request_size=7 [21:02:30]MH_SAM_APDU [21:02:30]CAPDU: 80 0D 02 02 02 9F 5C [21:02:30]Write to MH i2c: E2 0A 00 FF 1F 80 0D 02 02 02 00 9F 5C 00 00 97 [21:02:30]Write i2c OK [21:02:30]MH_I2C_Read... [21:02:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:02:30]Read from MH i2c: E2 [21:02:30]MH_I2C_Read... [21:02:30]Read from MH i2c: E2 03 00 [21:02:30]MH_I2C_Read... [21:02:30]Read from MH i2c: E2 03 00 FF 1F 00 90 00 92 [21:02:30]RAPDU: 90 00 [21:02:30]wFMCommunicate OK [21:02:30]wFMCommunicate request_size=4 [21:02:30]MH_SAM_APDU [21:02:30]CAPDU: 80 0D 03 02 [21:02:30]Write to MH i2c: E2 08 00 00 20 80 0D 03 02 00 00 00 00 9B [21:02:30]Write i2c OK [21:02:30]MH_I2C_Read... [21:02:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:02:30]Read from MH i2c: E2 [21:02:30]MH_I2C_Read... [21:02:30]Read from MH i2c: E2 0B 00 [21:02:30]MH_I2C_Read... [21:02:30]Read from MH i2c: E2 0B 00 00 20 00 5F AE 03 B4 FF C6 76 41 90 00 DC [21:02:30]RAPDU: 5F AE 03 B4 FF C6 76 41 90 00 [21:02:30]wFMCommunicate OK [21:02:30]SAM_PROTO_SignData done [21:02:30]FM_MakeSignedData done [21:02:30]CreateOFDProtocolMessage [21:02:30]wFMCommunicate request_size=4 [21:02:30]MH_SAM_APDU [21:02:30]CAPDU: 80 11 00 00 [21:02:30]Write to MH i2c: E2 08 00 01 20 80 11 00 00 00 00 00 00 9B [21:02:30]Write i2c OK [21:02:30]MH_I2C_Read... [21:02:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:02:30]Read from MH i2c: E2 [21:02:30]MH_I2C_Read... [21:02:30]Read from MH i2c: E2 17 00 [21:02:30]MH_I2C_Read... [21:02:30]Read from MH i2c: E2 17 00 01 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F6 [21:02:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:02:30]wFMCommunicate OK [21:02:30]CreateOFDProtocolMessage done [21:02:30]OFDSenderStorePacket 118296 [21:02:30]StoreOFDPacket docnum=118296 [21:02:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 5A B3 04 01 A7 EE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 A4 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 28 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 E2 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 66 60 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 18 CE 01 00 35 04 06 00 56 F7 F9 31 9F 5C 5F AE 03 B4 FF C6 76 41 [21:02:30]CheckFolder [21:02:30]dirname=/storage/ofd_packets [21:02:30]CheckFolder done [21:02:30]ProducePacketName [21:02:30]name=ofd_packets/00118296 [21:02:30]NVStorageSaveData ofd_packets/00118296 [21:02:30]File name is /storage/ofd_packets/00118296 [21:02:30]Write 298 bytes [21:02:30]NVStorageSaveData done [21:02:30]OFDSenderStorePacket done [21:02:30]KKMCreateOFDPacket done [21:02:30]NVStorageSaveData kkm_last_timestamp [21:02:30]File name is /storage/kkm_last_timestamp [21:02:30]Write 4 bytes [21:02:30]NVStorageSaveData done [21:02:30]ExternCall_PrintAddStr [21:02:30]wPrintStart [21:02:30]Write to MH i2c: 01 00 00 02 20 22 [21:02:30]Write i2c OK [21:02:30]MH_I2C_Read... [21:02:30]Read from MH i2c: 01 [21:02:30]MH_I2C_Read... [21:02:30]Read from MH i2c: 01 07 00 [21:02:30]MH_I2C_Read... [21:02:30]Read from MH i2c: 01 07 00 02 20 00 00 00 00 00 FF 0F 37 [21:02:30]RasterBufferAndPrint [21:02:30]line Счет N : (1)949169 [21:02:30]line ИНН: 02508201610067 [21:02:30]line Контрольно-Кассовый Чек [21:02:30]line ПРОДАЖА [21:02:30]line ТРК (МРК, ГНК) : 54 [21:02:30]line Товар: 2710194800 [21:02:30]line ДТ-К-5 [21:02:30]line 42.000 * 76.20 [21:02:30]line = 3200.40 [21:02:30]line НДС 12% НСП 1% [21:02:30]line > о реализуемом товаре [21:02:30]line ОКРУГЛЕНИЕ: -0.40 [21:02:30]line ИТОГО: 3200.00 [21:02:30]line НСП 1% : 28.32 [21:02:30]line НДС 12% : 339.86 [21:02:30]line Наличными: 0.00 [21:02:30]line Безнал.: 3200.00 [21:02:30]line Место: АЗС № 134 "Партнер Нефть" [21:02:30]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:02:30]line СНО: Общий режим [21:02:30]line Чек 239 27.07.2024 21:02 [21:02:30]line Смена: 432 ФФД: 1.0 [21:02:30]line ЗНМ: 0300000044 [21:02:30]line РНМ: 0000000000092660 [21:02:30]line Версия ККМ: 001 [21:02:30]line Платежная система: O! деньги [21:02:30]line ФМ: 0000000000874939 [21:02:30]line ФД: 118296 [21:02:30]line ФПД: 95623037689692 [21:02:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T210230&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118296&fm=95623037689692&tin=02508201610067®Number=0000000000092660&sum=320000 [21:02:31]OFD Sender: Processing packet 118296 [packets to send 86, broken 85] [21:02:31]ProducePacketName [21:02:31]name=ofd_packets/00118296 [21:02:31]OFD Sender: To server: pG, [21:02:31]CommunicateWithHost lk.salyk.kg:30040 [21:02:31]ConnectInit lk.salyk.kg [21:02:31]written 0, free lines is 4095 [21:02:31]Connected sock=10 [21:02:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 5A B3 04 01 A7 EE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 A4 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 28 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 E2 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 66 60 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 18 CE 01 00 35 04 06 00 56 F7 F9 31 9F 5C 5F AE 03 B4 FF C6 76 41 [21:02:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B4 64 47 00 9F 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 18 CE 01 00 F4 03 04 00 F8 0D A5 66 B6 04 01 00 00 96 88 7B 9E 69 13 0C FD [21:02:31]CommunicateWithHost err = 0 [21:02:31]CheckOFDResponse [21:02:31]1017 (14) - 77093643461234 [21:02:31]1041 (16) - 0000000000874939 [21:02:31]1040 (4) - 118296 [21:02:31]1012 (4) - 27.07.2024 15:10 [21:02:31]1206 (1) - 0 [21:02:31]OFD Sender: Remove packet 118296 [21:02:31]ProducePacketName [21:02:31]name=ofd_packets/00118296 [21:02:31]NVStorageDeleteData [21:02:31]Write to MH i2c: 01 00 00 2C 20 4C [21:02:31]Write i2c OK [21:02:31]MH_I2C_Read... [21:02:31]Read from MH i2c: 01 [21:02:31]MH_I2C_Read... [21:02:31]Read from MH i2c: 01 07 00 [21:02:31]MH_I2C_Read... [21:02:31]Read from MH i2c: 01 07 00 2C 20 00 00 00 00 00 EB 0C 4A [21:02:31]RasterBufferAndPrint [21:02:31]line [21:02:31]line [21:02:31]line [21:02:31]line [21:02:31]line [21:02:31]written 0, free lines is 3314 [21:02:31]MH_Cut [21:02:31]Write to MH i2c: D1 01 00 33 20 01 25 [21:02:31]Write i2c OK [21:02:31]MH_I2C_Read... [21:02:31]Read from MH i2c: D1 [21:02:31]MH_I2C_Read... [21:02:31]Read from MH i2c: D1 01 00 [21:02:31]MH_I2C_Read... [21:02:31]Read from MH i2c: D1 01 00 33 20 00 24 [21:02:31]Write to MH i2c: 01 00 00 34 20 54 [21:02:31]Write i2c OK [21:02:31]MH_I2C_Read... [21:02:31]OFD Sender: No OFD packet to send [21:02:32]*** Cut start [21:02:32]*** Partial cut [21:02:32]*** CUTSNS_PIN = 1 [21:02:32]*** CUTSNS_PIN = 0 [21:02:32]*** Brake cut motor [21:02:32]Read from MH i2c: 01 [21:02:32]MH_I2C_Read... [21:02:32]*** Stop cut motor [21:02:32]*** Cut end [21:02:32]Read from MH i2c: 01 07 00 [21:02:32]MH_I2C_Read... [21:02:32]Read from MH i2c: 01 07 00 34 20 00 00 00 00 00 FF 0F 69 [21:02:32]process_action close_receipt done [21:02:32]requested_data is exist [21:02:32]produce_requested_data [21:02:32]requested_item fm.sn is exist - process it [21:02:32]wFMCommunicate request_size=4 [21:02:32]MH_SAM_APDU [21:02:32]CAPDU: 80 11 00 00 [21:02:32]Write to MH i2c: E2 08 00 35 20 80 11 00 00 00 00 00 00 CF [21:02:32]Write i2c OK [21:02:32]MH_I2C_Read... [21:02:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:02:33]Read from MH i2c: E2 [21:02:33]MH_I2C_Read... [21:02:33]Read from MH i2c: E2 17 00 [21:02:33]MH_I2C_Read... [21:02:33]Read from MH i2c: E2 17 00 35 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2A [21:02:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:02:33]wFMCommunicate OK [21:02:33]requested_item fd.num is exist - process it [21:02:33]SAM_PROTO_GetFieldsCounters [21:02:33]wFMCommunicate request_size=4 [21:02:33]MH_SAM_APDU [21:02:33]CAPDU: 80 13 00 00 [21:02:33]Write to MH i2c: E2 08 00 36 20 80 13 00 00 00 00 00 00 D2 [21:02:33]Write i2c OK [21:02:33]MH_I2C_Read... [21:02:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:02:33]Read from MH i2c: E2 [21:02:33]MH_I2C_Read... [21:02:33]Read from MH i2c: E2 62 00 [21:02:33]MH_I2C_Read... [21:02:33]Read from MH i2c: E2 62 00 36 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 18 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [21:02:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 18 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:02:33]wFMCommunicate OK [21:02:33]SAM_PROTO_GetFieldsCounters done [21:02:33]requested_item shift.num is exist - process it [21:02:33]requested_item shift.opened is exist - process it [21:02:33]req_shift_opened [21:02:33]FM_GetShiftState [21:02:33]SAM_PROTO_GetShiftState [21:02:33]wFMCommunicate request_size=4 [21:02:33]MH_SAM_APDU [21:02:33]CAPDU: 80 13 01 00 [21:02:33]Write to MH i2c: E2 08 00 37 20 80 13 01 00 00 00 00 00 D4 [21:02:33]Write i2c OK [21:02:33]MH_I2C_Read... [21:02:33]Read from MH i2c: E2 [21:02:33]MH_I2C_Read... [21:02:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:02:33]Read from MH i2c: E2 0E 00 [21:02:33]MH_I2C_Read... [21:02:33]Read from MH i2c: E2 0E 00 37 20 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 61 [21:02:33]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:02:33]wFMCommunicate OK [21:02:33]SAM_PROTO_GetShiftState done [21:02:33]FM_GetShiftState done [21:02:33]req_shift_opened done [21:02:33]requested_item shift.open_date is exist - process it [21:02:33]req_shift_open_date [21:02:33]req_shift_open_date done [21:02:33]produce_requested_data done [21:02:33]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118296,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [21:02:33]process_action_free close_receipt [21:02:33]json_value_free [21:02:33]json_value_free done [21:02:33]process_json_proto returns [21:02:33]Send response to host [21:02:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118296,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [21:02:33]free response buf [21:02:33]execute_script done [21:02:33]execute_script returns [21:02:33]free content buf [21:02:33]Sock 7.Close socket [21:02:33]Sock 7.Thread stoped [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:02]OFD Sender: No OFD packet to send [21:03:07]OFD Sender: No OFD packet to send [21:03:12]OFD Sender: No OFD packet to send [21:03:17]OFD Sender: No OFD packet to send [21:03:22]OFD Sender: No OFD packet to send [21:03:27]OFD Sender: No OFD packet to send [21:03:32]OFD Sender: No OFD packet to send [21:03:37]OFD Sender: No OFD packet to send [21:03:42]OFD Sender: No OFD packet to send [21:03:47]OFD Sender: No OFD packet to send [21:03:52]OFD Sender: No OFD packet to send [21:03:57]OFD Sender: No OFD packet to send [21:04:02]OFD Sender: No OFD packet to send [21:04:07]OFD Sender: No OFD packet to send [21:04:12]OFD Sender: No OFD packet to send [21:04:17]OFD Sender: No OFD packet to send [21:04:22]OFD Sender: No OFD packet to send [21:04:27]OFD Sender: No OFD packet to send [21:04:32]OFD Sender: No OFD packet to send [21:04:37]OFD Sender: No OFD packet to send [21:04:42]OFD Sender: No OFD packet to send [21:04:47]OFD Sender: No OFD packet to send [21:04:52]OFD Sender: No OFD packet to send [21:04:57]OFD Sender: No OFD packet to send [21:05:02]OFD Sender: No OFD packet to send [21:05:07]OFD Sender: No OFD packet to send [21:05:07]accept exits with 9 [21:05:07]New connection [21:05:07]New thread 3066953060 created [21:05:07]Thread 3067096420 joined [21:05:07]Waiting for new connection... [21:05:07] Sock 9.Parse request [21:05:07]Sock 9.Check first char [21:05:07]Sock 9.First char is OK [21:05:07]request: POST /json_proto HTTP/1.0 [21:05:07]Method: POST [21:05:07]URL: /json_proto [21:05:07]Method is POST - this is cgi request [21:05:07]url: /json_proto [21:05:07]query_string will be loaded in cgi processing [21:05:07]execute_cgi json_proto POST (null) [21:05:07]execute_cgi path=json_proto method=POST [21:05:07]POST find Content-Length [21:05:07]Host: 172.17.45.7:8080 [21:05:07]Content-Length: 678 [21:05:07]Content-Type: application/json [21:05:07] [21:05:07]POST finish read [21:05:07]Found Content-Length = 678 [21:05:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.380, "sum" : 770.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 770.00, "total" : 770.00, "payments": [ { "type": 0, "sum" : 770.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:07]execute_script... [21:05: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)949170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.380, "sum" : 770.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 770.00, "total" : 770.00, "payments": [ { "type": 0, "sum" : 770.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:07]POST & json_proto [21:05:07]process_json_proto [21:05:07]json parsed OK: [21:05:07]protocol is kg_v1.0 [21:05:07]action value=close_receipt [21:05:07]process_action close_receipt [21:05:07]cmd_close_receipt [21:05:07]MH_GetDate [21:05:07]Write to MH i2c: F0 00 00 38 20 47 [21:05:07]Write i2c OK [21:05:07]MH_I2C_Read... [21:05:07]Read from MH i2c: F0 [21:05:07]MH_I2C_Read... [21:05:07]Read from MH i2c: F0 09 00 [21:05:07]MH_I2C_Read... [21:05:07]Read from MH i2c: F0 09 00 38 20 00 05 61 A5 66 90 0F 3E 66 04 [21:05:07]GetLastDocTimeStamp 1722114150 [21:05:07]current date 1722114309 [21:05:07]FM_GetShiftState [21:05:07]SAM_PROTO_GetShiftState [21:05:07]wFMCommunicate request_size=4 [21:05:07]MH_SAM_APDU [21:05:07]CAPDU: 80 13 01 00 [21:05:07]Write to MH i2c: E2 08 00 39 20 80 13 01 00 00 00 00 00 D6 [21:05:07]Write i2c OK [21:05:07]MH_I2C_Read... [21:05:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:07]Read from MH i2c: E2 [21:05:07]MH_I2C_Read... [21:05:07]Read from MH i2c: E2 0E 00 [21:05:07]MH_I2C_Read... [21:05:07]Read from MH i2c: E2 0E 00 39 20 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 63 [21:05:07]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:05:07]wFMCommunicate OK [21:05:07]SAM_PROTO_GetShiftState done [21:05:07]FM_GetShiftState done [21:05:07]opened in 1722038845 [21:05:07]opened+sec_in_day 1722125245 [21:05:07]quantity*price = 77019 [21:05:07]sum+1 = 77021 [21:05:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 770.00 Внесено: 770.00 СДАЧА: 0.00 НСП 1% : 6.82 НДС 12% : 81.79 Наличными: 770.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 240 27.07.2024 21:05 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118297 ФПД: 175539198593910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T210509&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118297&fm=175539198593910&tin=02508201610067®Number=0000000000092660&sum=77000 [21:05:08]StoreToDocumentArchive [21:05:08]shift 432 fd 118297 [21:05:08]save to /storage/0432/doc_00118297 [21:05:08]save last doc name /storage/0432/doc_00118297 to /storage/kkm_last_doc_name [21:05:08]save OK [21:05:08]Clear old archive folders... [21:05:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:05:08]tlvbuf is 01DDA000 [21:05:08]SAM_PROTO_ClearQueue [21:05:08]wFMCommunicate request_size=4 [21:05:08]MH_SAM_APDU [21:05:08]CAPDU: 80 09 00 00 [21:05:08]Write to MH i2c: E2 08 00 46 20 80 09 00 00 00 00 00 00 D8 [21:05:08]Write i2c OK [21:05:08]MH_I2C_Read... [21:05:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:05:08]Read from MH i2c: E2 [21:05:08]MH_I2C_Read... [21:05:08]Read from MH i2c: E2 03 00 [21:05:08]MH_I2C_Read... [21:05:08]Read from MH i2c: E2 03 00 46 20 00 90 00 DA [21:05:08]RAPDU: 90 00 [21:05:08]wFMCommunicate OK [21:05:08]SAM_PROTO_ClearQueue done [21:05:08]KKMCreateOFDPacket [21:05:08]OFDProtocolAddRootSTLVToBuf [21:05:08]FM_MakeSignedData [21:05:08]FM_MakeSignedData [21:05:08]SAM_PROTO_SignData [21:05:08]wFMCommunicate request_size=4 [21:05:08]MH_SAM_APDU [21:05:08]CAPDU: 80 0D 01 02 [21:05:08]Write to MH i2c: E2 08 00 47 20 80 0D 01 02 00 00 00 00 E0 [21:05:08]Write i2c OK [21:05:08]MH_I2C_Read... [21:05:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:05:08]Read from MH i2c: E2 [21:05:08]MH_I2C_Read... [21:05:08]Read from MH i2c: E2 03 00 [21:05:08]MH_I2C_Read... [21:05:08]Read from MH i2c: E2 03 00 47 20 00 90 00 DB [21:05:08]RAPDU: 90 00 [21:05:08]wFMCommunicate OK [21:05:08]wFMCommunicate request_size=255 [21:05:08]MH_SAM_APDU [21:05:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 8C 28 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DC 2C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 1F 00 00 00 00 07 04 06 00 C8 2C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 05 61 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 19 CE 01 00 35 04 06 00 9F [21:05:08]Write to MH i2c: E2 02 01 48 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 8C 28 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DC 2C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 1F 00 00 00 00 07 04 06 00 C8 2C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 05 61 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 19 CE 01 00 35 04 06 00 9F 00 00 08 [21:05:08]Write i2c OK [21:05:08]MH_I2C_Read... [21:05:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:09]Read from MH i2c: E2 [21:05:09]MH_I2C_Read... [21:05:09]Read from MH i2c: E2 03 00 [21:05:09]MH_I2C_Read... [21:05:09]Read from MH i2c: E2 03 00 48 20 00 90 00 DC [21:05:09]RAPDU: 90 00 [21:05:09]wFMCommunicate OK [21:05:09]wFMCommunicate request_size=10 [21:05:09]MH_SAM_APDU [21:05:09]CAPDU: 80 0D 02 02 05 A6 E7 93 8B 76 [21:05:09]Write to MH i2c: E2 0D 00 49 20 80 0D 02 02 05 00 A6 E7 93 8B 76 00 00 0E [21:05:09]Write i2c OK [21:05:09]MH_I2C_Read... [21:05:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:09]Read from MH i2c: E2 [21:05:09]MH_I2C_Read... [21:05:09]Read from MH i2c: E2 03 00 [21:05:09]MH_I2C_Read... [21:05:09]Read from MH i2c: E2 03 00 49 20 00 90 00 DD [21:05:09]RAPDU: 90 00 [21:05:09]wFMCommunicate OK [21:05:09]wFMCommunicate request_size=4 [21:05:09]MH_SAM_APDU [21:05:09]CAPDU: 80 0D 03 02 [21:05:09]Write to MH i2c: E2 08 00 4A 20 80 0D 03 02 00 00 00 00 E5 [21:05:09]Write i2c OK [21:05:09]MH_I2C_Read... [21:05:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:05:09]Read from MH i2c: E2 [21:05:09]MH_I2C_Read... [21:05:09]Read from MH i2c: E2 0B 00 [21:05:09]MH_I2C_Read... [21:05:09]Read from MH i2c: E2 0B 00 4A 20 00 06 93 78 36 D7 2B E0 60 90 00 6F [21:05:09]RAPDU: 06 93 78 36 D7 2B E0 60 90 00 [21:05:09]wFMCommunicate OK [21:05:09]SAM_PROTO_SignData done [21:05:09]FM_MakeSignedData done [21:05:09]CreateOFDProtocolMessage [21:05:09]wFMCommunicate request_size=4 [21:05:09]MH_SAM_APDU [21:05:09]CAPDU: 80 11 00 00 [21:05:09]Write to MH i2c: E2 08 00 4B 20 80 11 00 00 00 00 00 00 E5 [21:05:09]Write i2c OK [21:05:09]MH_I2C_Read... [21:05:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:09]Read from MH i2c: E2 [21:05:09]MH_I2C_Read... [21:05:09]Read from MH i2c: E2 17 00 [21:05:09]MH_I2C_Read... [21:05:09]Read from MH i2c: E2 17 00 4B 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 40 [21:05:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:05:09]wFMCommunicate OK [21:05:09]CreateOFDProtocolMessage done [21:05:09]OFDSenderStorePacket 118297 [21:05:09]StoreOFDPacket docnum=118297 [21:05:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B8 7F 07 01 E1 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 8C 28 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DC 2C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 1F 00 00 00 00 07 04 06 00 C8 2C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 05 61 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 19 CE 01 00 35 04 06 00 9F A6 E7 93 8B 76 06 93 78 36 D7 2B E0 60 [21:05:09]CheckFolder [21:05:09]dirname=/storage/ofd_packets [21:05:09]CheckFolder done [21:05:09]ProducePacketName [21:05:09]name=ofd_packets/00118297 [21:05:09]NVStorageSaveData ofd_packets/00118297 [21:05:09]File name is /storage/ofd_packets/00118297 [21:05:09]Write 301 bytes [21:05:09]NVStorageSaveData done [21:05:09]OFDSenderStorePacket done [21:05:09]KKMCreateOFDPacket done [21:05:09]NVStorageSaveData kkm_last_timestamp [21:05:09]File name is /storage/kkm_last_timestamp [21:05:09]Write 4 bytes [21:05:09]NVStorageSaveData done [21:05:09]ExternCall_PrintAddStr [21:05:09]wPrintStart [21:05:09]Write to MH i2c: 01 00 00 4C 20 6C [21:05:09]Write i2c OK [21:05:09]MH_I2C_Read... [21:05:09]Read from MH i2c: 01 [21:05:09]MH_I2C_Read... [21:05:09]Read from MH i2c: 01 07 00 [21:05:09]MH_I2C_Read... [21:05:09]Read from MH i2c: 01 07 00 4C 20 00 00 00 00 00 FF 0F 81 [21:05:09]RasterBufferAndPrint [21:05:09]line Счет N : (1)949170 [21:05:09]line ИНН: 02508201610067 [21:05:09]line Контрольно-Кассовый Чек [21:05:09]line ПРОДАЖА [21:05:09]line ТРК (МРК, ГНК) : 43 [21:05:09]line Товар: 2710124500 [21:05:09]line Аи-95-К-3 [21:05:09]line 10.380 * 74.20 [21:05:09]line = 770.20 [21:05:09]line НДС 12% НСП 1% [21:05:09]line > о реализуемом товаре [21:05:09]line ОКРУГЛЕНИЕ: -0.20 [21:05:09]line ИТОГО: 770.00 [21:05:09]line Внесено: 770.00 [21:05:09]line СДАЧА: 0.00 [21:05:09]line НСП 1% : 6.82 [21:05:09]line НДС 12% : 81.79 [21:05:09]line Наличными: 770.00 [21:05:09]line Безнал.: 0.00 [21:05:09]line Место: АЗС № 134 "Партнер Нефть" [21:05:09]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:05:09]line СНО: Общий режим [21:05:09]line Чек 240 27.07.2024 21:05 [21:05:09]line Смена: 432 ФФД: 1.0 [21:05:09]line ЗНМ: 0300000044 [21:05:09]line РНМ: 0000000000092660 [21:05:09]line Версия ККМ: 001 [21:05:09]line ФМ: 0000000000874939 [21:05:09]line ФД: 118297 [21:05:09]line ФПД: 175539198593910 [21:05:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T210509&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118297&fm=175539198593910&tin=02508201610067®Number=0000000000092660&sum=77000 [21:05:09]OFD Sender: Processing packet 118297 [packets to send 86, broken 85] [21:05:09]ProducePacketName [21:05:09]name=ofd_packets/00118297 [21:05:09]OFD Sender: To server: pG, [21:05:09]CommunicateWithHost lk.salyk.kg:30040 [21:05:09]ConnectInit lk.salyk.kg [21:05:09]written 0, free lines is 4095 [21:05:09]Connected sock=10 [21:05:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B8 7F 07 01 E1 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 8C 28 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DC 2C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 1F 00 00 00 00 07 04 06 00 C8 2C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 05 61 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 19 CE 01 00 35 04 06 00 9F A6 E7 93 8B 76 06 93 78 36 D7 2B E0 60 [21:05:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 4A 36 47 00 B9 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 19 CE 01 00 F4 03 04 00 97 0E A5 66 B6 04 01 00 00 98 DA 71 59 AB 29 17 1E [21:05:09]CommunicateWithHost err = 0 [21:05:09]CheckOFDResponse [21:05:09]1017 (14) - 77093643461234 [21:05:09]1041 (16) - 0000000000874939 [21:05:09]1040 (4) - 118297 [21:05:09]1012 (4) - 27.07.2024 15:13 [21:05:09]1206 (1) - 0 [21:05:09]OFD Sender: Remove packet 118297 [21:05:09]ProducePacketName [21:05:09]name=ofd_packets/00118297 [21:05:09]NVStorageDeleteData [21:05:10]Write to MH i2c: 01 00 00 76 20 96 [21:05:10]Write i2c OK [21:05:10]MH_I2C_Read... [21:05:10]Read from MH i2c: 01 [21:05:10]MH_I2C_Read... [21:05:10]Read from MH i2c: 01 07 00 [21:05:10]MH_I2C_Read... [21:05:10]Read from MH i2c: 01 07 00 76 20 00 00 00 00 00 EE 0C 97 [21:05:10]RasterBufferAndPrint [21:05:10]line [21:05:10]line [21:05:10]line [21:05:10]line [21:05:10]line [21:05:10]written 0, free lines is 3316 [21:05:10]MH_Cut [21:05:10]Write to MH i2c: D1 01 00 7D 20 01 6F [21:05:10]Write i2c OK [21:05:10]MH_I2C_Read... [21:05:10]Read from MH i2c: D1 [21:05:10]MH_I2C_Read... [21:05:10]Read from MH i2c: D1 01 00 [21:05:10]MH_I2C_Read... [21:05:10]Read from MH i2c: D1 01 00 7D 20 00 6E [21:05:10]Write to MH i2c: 01 00 00 7E 20 9E [21:05:10]Write i2c OK [21:05:10]MH_I2C_Read... [21:05:10]OFD Sender: No OFD packet to send [21:05:10]*** Cut start [21:05:10]*** Partial cut [21:05:10]*** CUTSNS_PIN = 1 [21:05:10]*** CUTSNS_PIN = 0 [21:05:11]*** Brake cut motor [21:05:11]Read from MH i2c: 01 [21:05:11]MH_I2C_Read... [21:05:11]*** Stop cut motor [21:05:11]*** Cut end [21:05:11]Read from MH i2c: 01 07 00 [21:05:11]MH_I2C_Read... [21:05:11]Read from MH i2c: 01 07 00 7E 20 00 00 00 00 00 FF 0F B3 [21:05:11]process_action close_receipt done [21:05:11]requested_data is exist [21:05:11]produce_requested_data [21:05:11]requested_item fm.sn is exist - process it [21:05:11]wFMCommunicate request_size=4 [21:05:11]MH_SAM_APDU [21:05:11]CAPDU: 80 11 00 00 [21:05:11]Write to MH i2c: E2 08 00 7F 20 80 11 00 00 00 00 00 00 19 [21:05:11]Write i2c OK [21:05:11]MH_I2C_Read... [21:05:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:11]Read from MH i2c: E2 [21:05:11]MH_I2C_Read... [21:05:11]Read from MH i2c: E2 17 00 [21:05:11]MH_I2C_Read... [21:05:11]Read from MH i2c: E2 17 00 7F 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 74 [21:05:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:05:11]wFMCommunicate OK [21:05:11]requested_item fd.num is exist - process it [21:05:11]SAM_PROTO_GetFieldsCounters [21:05:11]wFMCommunicate request_size=4 [21:05:11]MH_SAM_APDU [21:05:11]CAPDU: 80 13 00 00 [21:05:11]Write to MH i2c: E2 08 00 80 20 80 13 00 00 00 00 00 00 1C [21:05:11]Write i2c OK [21:05:11]MH_I2C_Read... [21:05:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:05:11]Read from MH i2c: E2 [21:05:11]MH_I2C_Read... [21:05:11]Read from MH i2c: E2 62 00 [21:05:11]MH_I2C_Read... [21:05:11]Read from MH i2c: E2 62 00 80 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 19 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [21:05:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 19 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:05:11]wFMCommunicate OK [21:05:11]SAM_PROTO_GetFieldsCounters done [21:05:11]requested_item shift.num is exist - process it [21:05:11]requested_item shift.opened is exist - process it [21:05:11]req_shift_opened [21:05:11]FM_GetShiftState [21:05:11]SAM_PROTO_GetShiftState [21:05:11]wFMCommunicate request_size=4 [21:05:11]MH_SAM_APDU [21:05:11]CAPDU: 80 13 01 00 [21:05:11]Write to MH i2c: E2 08 00 81 20 80 13 01 00 00 00 00 00 1E [21:05:11]Write i2c OK [21:05:11]MH_I2C_Read... [21:05:11]Read from MH i2c: E2 [21:05:11]MH_I2C_Read... [21:05:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:11]Read from MH i2c: E2 0E 00 [21:05:11]MH_I2C_Read... [21:05:11]Read from MH i2c: E2 0E 00 81 20 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 AB [21:05:11]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:05:11]wFMCommunicate OK [21:05:11]SAM_PROTO_GetShiftState done [21:05:11]FM_GetShiftState done [21:05:11]req_shift_opened done [21:05:11]requested_item shift.open_date is exist - process it [21:05:11]req_shift_open_date [21:05:11]req_shift_open_date done [21:05:11]produce_requested_data done [21:05:11]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118297,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [21:05:11]process_action_free close_receipt [21:05:11]json_value_free [21:05:11]json_value_free done [21:05:11]process_json_proto returns [21:05:11]Send response to host [21:05:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118297,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [21:05:11]free response buf [21:05:11]execute_script done [21:05:11]execute_script returns [21:05:11]free content buf [21:05:11]Sock 9.Close socket [21:05:11]Sock 9.Thread stoped [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:17]accept exits with 7 [21:07:17]New connection [21:07:17]New thread 3067096420 created [21:07:17]Thread 3066953060 joined [21:07:17]Waiting for new connection... [21:07:17] Sock 7.Parse request [21:07:17]Sock 7.Check first char [21:07:17]Sock 7.First char is OK [21:07:17]request: POST /json_proto HTTP/1.0 [21:07:17]Method: POST [21:07:17]URL: /json_proto [21:07:17]Method is POST - this is cgi request [21:07:17]url: /json_proto [21:07:17]query_string will be loaded in cgi processing [21:07:17]execute_cgi json_proto POST (null) [21:07:17]execute_cgi path=json_proto method=POST [21:07:17]POST find Content-Length [21:07:17]Host: 172.17.45.7:8080 [21:07:17]Content-Length: 682 [21:07:17]Content-Type: application/json [21:07:17] [21:07:17]POST finish read [21:07:17]Found Content-Length = 682 [21:07:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:07:17]execute_script... [21:07: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)949171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:07:17]POST & json_proto [21:07:17]process_json_proto [21:07:17]json parsed OK: [21:07:17]protocol is kg_v1.0 [21:07:17]action value=close_receipt [21:07:17]process_action close_receipt [21:07:17]cmd_close_receipt [21:07:17]MH_GetDate [21:07:17]Write to MH i2c: F0 00 00 82 20 91 [21:07:17]Write i2c OK [21:07:17]MH_I2C_Read... [21:07:17]Read from MH i2c: F0 [21:07:17]MH_I2C_Read... [21:07:17]Read from MH i2c: F0 09 00 [21:07:17]MH_I2C_Read... [21:07:17]Read from MH i2c: F0 09 00 82 20 00 86 61 A5 66 90 0F 3E 66 CF [21:07:17]GetLastDocTimeStamp 1722114309 [21:07:17]current date 1722114438 [21:07:17]FM_GetShiftState [21:07:17]SAM_PROTO_GetShiftState [21:07:17]wFMCommunicate request_size=4 [21:07:17]MH_SAM_APDU [21:07:17]CAPDU: 80 13 01 00 [21:07:17]Write to MH i2c: E2 08 00 83 20 80 13 01 00 00 00 00 00 20 [21:07:17]Write i2c OK [21:07:17]MH_I2C_Read... [21:07:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:17]Read from MH i2c: E2 [21:07:17]MH_I2C_Read... [21:07:17]Read from MH i2c: E2 0E 00 [21:07:17]MH_I2C_Read... [21:07:17]Read from MH i2c: E2 0E 00 83 20 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 AD [21:07:17]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:07:17]wFMCommunicate OK [21:07:17]SAM_PROTO_GetShiftState done [21:07:17]FM_GetShiftState done [21:07:17]opened in 1722038845 [21:07:17]opened+sec_in_day 1722125245 [21:07:17]quantity*price = 100005 [21:07:17]sum+1 = 100006 [21:07:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 241 27.07.2024 21:07 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118298 ФПД: 10646010279727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T210718&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118298&fm=10646010279727&tin=02508201610067®Number=0000000000092660&sum=100000 [21:07:18]StoreToDocumentArchive [21:07:18]shift 432 fd 118298 [21:07:18]save to /storage/0432/doc_00118298 [21:07:18]save last doc name /storage/0432/doc_00118298 to /storage/kkm_last_doc_name [21:07:18]save OK [21:07:18]Clear old archive folders... [21:07:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:07:18]tlvbuf is 01E3C790 [21:07:18]SAM_PROTO_ClearQueue [21:07:18]wFMCommunicate request_size=4 [21:07:18]MH_SAM_APDU [21:07:18]CAPDU: 80 09 00 00 [21:07:18]Write to MH i2c: E2 08 00 90 20 80 09 00 00 00 00 00 00 22 [21:07:18]Write i2c OK [21:07:18]MH_I2C_Read... [21:07:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:07:18]Read from MH i2c: E2 [21:07:18]MH_I2C_Read... [21:07:18]Read from MH i2c: E2 03 00 [21:07:18]MH_I2C_Read... [21:07:18]Read from MH i2c: E2 03 00 90 20 00 90 00 24 [21:07:18]RAPDU: 90 00 [21:07:18]wFMCommunicate OK [21:07:18]SAM_PROTO_ClearQueue done [21:07:18]KKMCreateOFDPacket [21:07:18]OFDProtocolAddRootSTLVToBuf [21:07:18]FM_MakeSignedData [21:07:18]FM_MakeSignedData [21:07:18]SAM_PROTO_SignData [21:07:18]wFMCommunicate request_size=4 [21:07:18]MH_SAM_APDU [21:07:18]CAPDU: 80 0D 01 02 [21:07:18]Write to MH i2c: E2 08 00 91 20 80 0D 01 02 00 00 00 00 2A [21:07:18]Write i2c OK [21:07:18]MH_I2C_Read... [21:07:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:07:18]Read from MH i2c: E2 [21:07:18]MH_I2C_Read... [21:07:18]Read from MH i2c: E2 03 00 [21:07:18]MH_I2C_Read... [21:07:18]Read from MH i2c: E2 03 00 91 20 00 90 00 25 [21:07:18]RAPDU: 90 00 [21:07:18]wFMCommunicate OK [21:07:18]wFMCommunicate request_size=255 [21:07:18]MH_SAM_APDU [21:07: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 86 61 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1A CE 01 00 35 04 06 00 09 [21:07:18]Write to MH i2c: E2 02 01 92 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 86 61 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1A CE 01 00 35 04 06 00 09 00 00 C3 [21:07:18]Write i2c OK [21:07:18]MH_I2C_Read... [21:07:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:18]Read from MH i2c: E2 [21:07:18]MH_I2C_Read... [21:07:18]Read from MH i2c: E2 03 00 [21:07:18]MH_I2C_Read... [21:07:18]Read from MH i2c: E2 03 00 92 20 00 90 00 26 [21:07:18]RAPDU: 90 00 [21:07:18]wFMCommunicate OK [21:07:18]wFMCommunicate request_size=10 [21:07:18]MH_SAM_APDU [21:07:18]CAPDU: 80 0D 02 02 05 AE B7 A9 37 2F [21:07:18]Write to MH i2c: E2 0D 00 93 20 80 0D 02 02 05 00 AE B7 A9 37 2F 00 00 AB [21:07:18]Write i2c OK [21:07:18]MH_I2C_Read... [21:07:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:18]Read from MH i2c: E2 [21:07:18]MH_I2C_Read... [21:07:18]Read from MH i2c: E2 03 00 [21:07:18]MH_I2C_Read... [21:07:18]Read from MH i2c: E2 03 00 93 20 00 90 00 27 [21:07:18]RAPDU: 90 00 [21:07:18]wFMCommunicate OK [21:07:18]wFMCommunicate request_size=4 [21:07:18]MH_SAM_APDU [21:07:18]CAPDU: 80 0D 03 02 [21:07:18]Write to MH i2c: E2 08 00 94 20 80 0D 03 02 00 00 00 00 2F [21:07:18]Write i2c OK [21:07:18]MH_I2C_Read... [21:07:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:07:18]Read from MH i2c: E2 [21:07:18]MH_I2C_Read... [21:07:18]Read from MH i2c: E2 0B 00 [21:07:18]MH_I2C_Read... [21:07:18]Read from MH i2c: E2 0B 00 94 20 00 15 86 1E 47 E7 DC 32 1B 90 00 40 [21:07:18]RAPDU: 15 86 1E 47 E7 DC 32 1B 90 00 [21:07:18]wFMCommunicate OK [21:07:18]SAM_PROTO_SignData done [21:07:18]FM_MakeSignedData done [21:07:18]CreateOFDProtocolMessage [21:07:18]wFMCommunicate request_size=4 [21:07:18]MH_SAM_APDU [21:07:18]CAPDU: 80 11 00 00 [21:07:18]Write to MH i2c: E2 08 00 95 20 80 11 00 00 00 00 00 00 2F [21:07:18]Write i2c OK [21:07:18]MH_I2C_Read... [21:07:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:18]Read from MH i2c: E2 [21:07:18]MH_I2C_Read... [21:07:18]Read from MH i2c: E2 17 00 [21:07:18]MH_I2C_Read... [21:07:18]Read from MH i2c: E2 17 00 95 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8A [21:07:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:07:18]wFMCommunicate OK [21:07:18]CreateOFDProtocolMessage done [21:07:18]OFDSenderStorePacket 118298 [21:07:18]StoreOFDPacket docnum=118298 [21:07:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 9D DE 07 01 EC 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 86 61 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1A CE 01 00 35 04 06 00 09 AE B7 A9 37 2F 15 86 1E 47 E7 DC 32 1B [21:07:18]CheckFolder [21:07:18]dirname=/storage/ofd_packets [21:07:18]CheckFolder done [21:07:18]ProducePacketName [21:07:18]name=ofd_packets/00118298 [21:07:18]NVStorageSaveData ofd_packets/00118298 [21:07:18]File name is /storage/ofd_packets/00118298 [21:07:18]Write 301 bytes [21:07:18]NVStorageSaveData done [21:07:18]OFDSenderStorePacket done [21:07:18]KKMCreateOFDPacket done [21:07:18]NVStorageSaveData kkm_last_timestamp [21:07:18]File name is /storage/kkm_last_timestamp [21:07:18]Write 4 bytes [21:07:18]NVStorageSaveData done [21:07:18]ExternCall_PrintAddStr [21:07:18]wPrintStart [21:07:18]Write to MH i2c: 01 00 00 96 20 B6 [21:07:18]Write i2c OK [21:07:18]MH_I2C_Read... [21:07:18]Read from MH i2c: 01 [21:07:18]MH_I2C_Read... [21:07:18]Read from MH i2c: 01 07 00 [21:07:18]MH_I2C_Read... [21:07:18]Read from MH i2c: 01 07 00 96 20 00 00 00 00 00 FF 0F CB [21:07:18]RasterBufferAndPrint [21:07:18]line Счет N : (1)949171 [21:07:18]line ИНН: 02508201610067 [21:07:18]line Контрольно-Кассовый Чек [21:07:18]line ПРОДАЖА [21:07:18]line ТРК (МРК, ГНК) : 51 [21:07:18]line Товар: 2710124130 [21:07:18]line Аи-92-К-4 [21:07:18]line 14.750 * 67.80 [21:07:18]line = 1000.05 [21:07:18]line НДС 12% НСП 1% [21:07:18]line > о реализуемом товаре [21:07:18]line ОКРУГЛЕНИЕ: -0.05 [21:07:18]line ИТОГО: 1000.00 [21:07:18]line Внесено: 1000.00 [21:07:18]line СДАЧА: 0.00 [21:07:18]line НСП 1% : 8.85 [21:07:18]line НДС 12% : 106.20 [21:07:18]line Наличными: 1000.00 [21:07:18]line Безнал.: 0.00 [21:07:18]line Место: АЗС № 134 "Партнер Нефть" [21:07:18]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:07:18]line СНО: Общий режим [21:07:18]line Чек 241 27.07.2024 21:07 [21:07:18]line Смена: 432 ФФД: 1.0 [21:07:18]line ЗНМ: 0300000044 [21:07:18]line РНМ: 0000000000092660 [21:07:18]line Версия ККМ: 001 [21:07:18]line ФМ: 0000000000874939 [21:07:18]line ФД: 118298 [21:07:18]line ФПД: 10646010279727 [21:07:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T210718&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118298&fm=10646010279727&tin=02508201610067®Number=0000000000092660&sum=100000 [21:07:18]written 0, free lines is 4095 [21:07:18]OFD Sender: Processing packet 118298 [packets to send 86, broken 85] [21:07:18]ProducePacketName [21:07:18]name=ofd_packets/00118298 [21:07:18]OFD Sender: To server: pG, [21:07:18]CommunicateWithHost lk.salyk.kg:30040 [21:07:18]ConnectInit lk.salyk.kg [21:07:19]Connected sock=10 [21:07:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 9D DE 07 01 EC 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 86 61 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1A CE 01 00 35 04 06 00 09 AE B7 A9 37 2F 15 86 1E 47 E7 DC 32 1B [21:07:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 26 EB 47 00 2C CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1A CE 01 00 F4 03 04 00 18 0F A5 66 B6 04 01 00 00 F4 A5 BA 86 B2 5A 25 FA [21:07:19]CommunicateWithHost err = 0 [21:07:19]CheckOFDResponse [21:07:19]1017 (14) - 77093643461234 [21:07:19]1041 (16) - 0000000000874939 [21:07:19]1040 (4) - 118298 [21:07:19]1012 (4) - 27.07.2024 15:15 [21:07:19]1206 (1) - 0 [21:07:19]OFD Sender: Remove packet 118298 [21:07:19]ProducePacketName [21:07:19]name=ofd_packets/00118298 [21:07:19]NVStorageDeleteData [21:07:19]Write to MH i2c: 01 00 00 C0 20 E0 [21:07:19]Write i2c OK [21:07:19]MH_I2C_Read... [21:07:19]Read from MH i2c: 01 [21:07:19]MH_I2C_Read... [21:07:19]Read from MH i2c: 01 07 00 [21:07:19]MH_I2C_Read... [21:07:19]Read from MH i2c: 01 07 00 C0 20 00 00 00 00 00 EC 0C DF [21:07:19]RasterBufferAndPrint [21:07:19]line [21:07:19]line [21:07:19]line [21:07:19]line [21:07:19]line [21:07:19]written 0, free lines is 3314 [21:07:19]MH_Cut [21:07:19]Write to MH i2c: D1 01 00 C7 20 01 B9 [21:07:19]Write i2c OK [21:07:19]MH_I2C_Read... [21:07:19]Read from MH i2c: D1 [21:07:19]MH_I2C_Read... [21:07:19]Read from MH i2c: D1 01 00 [21:07:19]MH_I2C_Read... [21:07:19]Read from MH i2c: D1 01 00 C7 20 00 B8 [21:07:19]Write to MH i2c: 01 00 00 C8 20 E8 [21:07:19]Write i2c OK [21:07:19]MH_I2C_Read... [21:07:19]OFD Sender: No OFD packet to send [21:07:20]*** Cut start [21:07:20]*** Partial cut [21:07:20]*** CUTSNS_PIN = 1 [21:07:20]*** CUTSNS_PIN = 0 [21:07:20]*** Brake cut motor [21:07:20]Read from MH i2c: 01 [21:07:20]MH_I2C_Read... [21:07:20]*** Stop cut motor [21:07:20]*** Cut end [21:07:20]Read from MH i2c: 01 07 00 [21:07:20]MH_I2C_Read... [21:07:20]Read from MH i2c: 01 07 00 C8 20 00 00 00 00 00 FF 0F FD [21:07:20]process_action close_receipt done [21:07:20]requested_data is exist [21:07:20]produce_requested_data [21:07:20]requested_item fm.sn is exist - process it [21:07:20]wFMCommunicate request_size=4 [21:07:20]MH_SAM_APDU [21:07:20]CAPDU: 80 11 00 00 [21:07:20]Write to MH i2c: E2 08 00 C9 20 80 11 00 00 00 00 00 00 63 [21:07:20]Write i2c OK [21:07:20]MH_I2C_Read... [21:07:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:20]Read from MH i2c: E2 [21:07:20]MH_I2C_Read... [21:07:20]Read from MH i2c: E2 17 00 [21:07:20]MH_I2C_Read... [21:07:20]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 34 39 33 39 90 00 BE [21:07:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:07:20]wFMCommunicate OK [21:07:20]requested_item fd.num is exist - process it [21:07:20]SAM_PROTO_GetFieldsCounters [21:07:20]wFMCommunicate request_size=4 [21:07:20]MH_SAM_APDU [21:07:20]CAPDU: 80 13 00 00 [21:07:20]Write to MH i2c: E2 08 00 CA 20 80 13 00 00 00 00 00 00 66 [21:07:20]Write i2c OK [21:07:20]MH_I2C_Read... [21:07:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:07:20]Read from MH i2c: E2 [21:07:20]MH_I2C_Read... [21:07:20]Read from MH i2c: E2 62 00 [21:07:20]MH_I2C_Read... [21:07:20]Read from MH i2c: E2 62 00 CA 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1A CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [21:07:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1A CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:07:20]wFMCommunicate OK [21:07:20]SAM_PROTO_GetFieldsCounters done [21:07:20]requested_item shift.num is exist - process it [21:07:20]requested_item shift.opened is exist - process it [21:07:20]req_shift_opened [21:07:20]FM_GetShiftState [21:07:20]SAM_PROTO_GetShiftState [21:07:20]wFMCommunicate request_size=4 [21:07:20]MH_SAM_APDU [21:07:20]CAPDU: 80 13 01 00 [21:07:20]Write to MH i2c: E2 08 00 CB 20 80 13 01 00 00 00 00 00 68 [21:07:20]Write i2c OK [21:07:20]MH_I2C_Read... [21:07:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:20]Read from MH i2c: E2 [21:07:20]MH_I2C_Read... [21:07:20]Read from MH i2c: E2 0E 00 [21:07:20]MH_I2C_Read... [21:07:20]Read from MH i2c: E2 0E 00 CB 20 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 F5 [21:07:20]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:07:20]wFMCommunicate OK [21:07:20]SAM_PROTO_GetShiftState done [21:07:20]FM_GetShiftState done [21:07:20]req_shift_opened done [21:07:20]requested_item shift.open_date is exist - process it [21:07:20]req_shift_open_date [21:07:20]req_shift_open_date done [21:07:20]produce_requested_data done [21:07:20]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118298,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [21:07:20]process_action_free close_receipt [21:07:20]json_value_free [21:07:20]json_value_free done [21:07:20]process_json_proto returns [21:07:20]Send response to host [21:07:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118298,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [21:07:20]free response buf [21:07:20]execute_script done [21:07:20]execute_script returns [21:07:20]free content buf [21:07:20]Sock 7.Close socket [21:07:20]Sock 7.Thread stoped [21:07:24]OFD Sender: No OFD packet to send [21:07:29]OFD Sender: No OFD packet to send [21:07:34]OFD Sender: No OFD packet to send [21:07:39]OFD Sender: No OFD packet to send [21:07:44]OFD Sender: No OFD packet to send [21:07:49]OFD Sender: No OFD packet to send [21:07:54]OFD Sender: No OFD packet to send [21:07:59]OFD Sender: No OFD packet to send [21:08:01]accept exits with 9 [21:08:01]New connection [21:08:01]New thread 3066953060 created [21:08:01]Thread 3067096420 joined [21:08:01]Waiting for new connection... [21:08:01] Sock 9.Parse request [21:08:01]Sock 9.Check first char [21:08:01]Sock 9.First char is OK [21:08:01]request: POST /json_proto HTTP/1.0 [21:08:01]Method: POST [21:08:01]URL: /json_proto [21:08:01]Method is POST - this is cgi request [21:08:01]url: /json_proto [21:08:01]query_string will be loaded in cgi processing [21:08:01]execute_cgi json_proto POST (null) [21:08:01]execute_cgi path=json_proto method=POST [21:08:01]POST find Content-Length [21:08:01]Host: 172.17.45.7:8080 [21:08:01]Content-Length: 677 [21:08:01]Content-Type: application/json [21:08:01] [21:08:01]POST finish read [21:08:01]Found Content-Length = 677 [21:08:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:08:01]execute_script... [21:08: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)949172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:08:01]POST & json_proto [21:08:01]process_json_proto [21:08:01]json parsed OK: [21:08:01]protocol is kg_v1.0 [21:08:01]action value=close_receipt [21:08:01]process_action close_receipt [21:08:01]cmd_close_receipt [21:08:01]MH_GetDate [21:08:01]Write to MH i2c: F0 00 00 CC 20 DB [21:08:01]Write i2c OK [21:08:01]MH_I2C_Read... [21:08:01]Read from MH i2c: F0 [21:08:01]MH_I2C_Read... [21:08:01]Read from MH i2c: F0 09 00 [21:08:01]MH_I2C_Read... [21:08:01]Read from MH i2c: F0 09 00 CC 20 00 B2 61 A5 66 90 0F 3E 66 45 [21:08:01]GetLastDocTimeStamp 1722114438 [21:08:01]current date 1722114482 [21:08:01]FM_GetShiftState [21:08:01]SAM_PROTO_GetShiftState [21:08:01]wFMCommunicate request_size=4 [21:08:01]MH_SAM_APDU [21:08:01]CAPDU: 80 13 01 00 [21:08:01]Write to MH i2c: E2 08 00 CD 20 80 13 01 00 00 00 00 00 6A [21:08:01]Write i2c OK [21:08:01]MH_I2C_Read... [21:08:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:01]Read from MH i2c: E2 [21:08:01]MH_I2C_Read... [21:08:01]Read from MH i2c: E2 0E 00 [21:08:01]MH_I2C_Read... [21:08:01]Read from MH i2c: E2 0E 00 CD 20 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 F7 [21:08:01]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:08:01]wFMCommunicate OK [21:08:01]SAM_PROTO_GetShiftState done [21:08:01]FM_GetShiftState done [21:08:01]opened in 1722038845 [21:08:01]opened+sec_in_day 1722125245 [21:08:01]quantity*price = 50036 [21:08:01]sum+1 = 50037 [21:08:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 242 27.07.2024 21:08 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118299 ФПД: 135351729425359 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T210802&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118299&fm=135351729425359&tin=02508201610067®Number=0000000000092660&sum=50000 [21:08:02]StoreToDocumentArchive [21:08:02]shift 432 fd 118299 [21:08:02]save to /storage/0432/doc_00118299 [21:08:02]save last doc name /storage/0432/doc_00118299 to /storage/kkm_last_doc_name [21:08:02]save OK [21:08:02]Clear old archive folders... [21:08:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:08:02]tlvbuf is 01E5B2D0 [21:08:02]SAM_PROTO_ClearQueue [21:08:02]wFMCommunicate request_size=4 [21:08:02]MH_SAM_APDU [21:08:02]CAPDU: 80 09 00 00 [21:08:02]Write to MH i2c: E2 08 00 DA 20 80 09 00 00 00 00 00 00 6C [21:08:02]Write i2c OK [21:08:02]MH_I2C_Read... [21:08:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:08:02]Read from MH i2c: E2 [21:08:02]MH_I2C_Read... [21:08:02]Read from MH i2c: E2 03 00 [21:08:02]MH_I2C_Read... [21:08:02]Read from MH i2c: E2 03 00 DA 20 00 90 00 6E [21:08:02]RAPDU: 90 00 [21:08:02]wFMCommunicate OK [21:08:02]SAM_PROTO_ClearQueue done [21:08:02]KKMCreateOFDPacket [21:08:02]OFDProtocolAddRootSTLVToBuf [21:08:02]FM_MakeSignedData [21:08:02]FM_MakeSignedData [21:08:02]SAM_PROTO_SignData [21:08:02]wFMCommunicate request_size=4 [21:08:02]MH_SAM_APDU [21:08:02]CAPDU: 80 0D 01 02 [21:08:02]Write to MH i2c: E2 08 00 DB 20 80 0D 01 02 00 00 00 00 74 [21:08:02]Write i2c OK [21:08:02]MH_I2C_Read... [21:08:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:08:02]Read from MH i2c: E2 [21:08:02]MH_I2C_Read... [21:08:02]Read from MH i2c: E2 03 00 [21:08:02]MH_I2C_Read... [21:08:02]Read from MH i2c: E2 03 00 DB 20 00 90 00 6F [21:08:02]RAPDU: 90 00 [21:08:02]wFMCommunicate OK [21:08:02]wFMCommunicate request_size=255 [21:08:02]MH_SAM_APDU [21:08: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F2 00 00 00 F4 03 04 00 B2 61 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1B CE 01 00 35 04 06 00 7B [21:08:02]Write to MH i2c: E2 02 01 DC 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F2 00 00 00 F4 03 04 00 B2 61 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1B CE 01 00 35 04 06 00 7B 00 00 1E [21:08:02]Write i2c OK [21:08:02]MH_I2C_Read... [21:08:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:03]Read from MH i2c: E2 [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: E2 03 00 [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: E2 03 00 DC 20 00 90 00 70 [21:08:03]RAPDU: 90 00 [21:08:03]wFMCommunicate OK [21:08:03]wFMCommunicate request_size=10 [21:08:03]MH_SAM_APDU [21:08:03]CAPDU: 80 0D 02 02 05 1A 07 C0 8B CF [21:08:03]Write to MH i2c: E2 0D 00 DD 20 80 0D 02 02 05 00 1A 07 C0 8B CF 00 00 BC [21:08:03]Write i2c OK [21:08:03]MH_I2C_Read... [21:08:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:03]Read from MH i2c: E2 [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: E2 03 00 [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: E2 03 00 DD 20 00 90 00 71 [21:08:03]RAPDU: 90 00 [21:08:03]wFMCommunicate OK [21:08:03]wFMCommunicate request_size=4 [21:08:03]MH_SAM_APDU [21:08:03]CAPDU: 80 0D 03 02 [21:08:03]Write to MH i2c: E2 08 00 DE 20 80 0D 03 02 00 00 00 00 79 [21:08:03]Write i2c OK [21:08:03]MH_I2C_Read... [21:08:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:08:03]Read from MH i2c: E2 [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: E2 0B 00 [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: E2 0B 00 DE 20 00 9B C7 1D 11 81 97 B8 EF 90 00 C9 [21:08:03]RAPDU: 9B C7 1D 11 81 97 B8 EF 90 00 [21:08:03]wFMCommunicate OK [21:08:03]SAM_PROTO_SignData done [21:08:03]FM_MakeSignedData done [21:08:03]CreateOFDProtocolMessage [21:08:03]wFMCommunicate request_size=4 [21:08:03]MH_SAM_APDU [21:08:03]CAPDU: 80 11 00 00 [21:08:03]Write to MH i2c: E2 08 00 DF 20 80 11 00 00 00 00 00 00 79 [21:08:03]Write i2c OK [21:08:03]MH_I2C_Read... [21:08:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:03]Read from MH i2c: E2 [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: E2 17 00 [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: E2 17 00 DF 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D4 [21:08:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:08:03]wFMCommunicate OK [21:08:03]CreateOFDProtocolMessage done [21:08:03]OFDSenderStorePacket 118299 [21:08:03]StoreOFDPacket docnum=118299 [21:08:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D0 42 07 01 AE F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F2 00 00 00 F4 03 04 00 B2 61 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1B CE 01 00 35 04 06 00 7B 1A 07 C0 8B CF 9B C7 1D 11 81 97 B8 EF [21:08:03]CheckFolder [21:08:03]dirname=/storage/ofd_packets [21:08:03]CheckFolder done [21:08:03]ProducePacketName [21:08:03]name=ofd_packets/00118299 [21:08:03]NVStorageSaveData ofd_packets/00118299 [21:08:03]File name is /storage/ofd_packets/00118299 [21:08:03]Write 301 bytes [21:08:03]NVStorageSaveData done [21:08:03]OFDSenderStorePacket done [21:08:03]KKMCreateOFDPacket done [21:08:03]NVStorageSaveData kkm_last_timestamp [21:08:03]File name is /storage/kkm_last_timestamp [21:08:03]Write 4 bytes [21:08:03]NVStorageSaveData done [21:08:03]ExternCall_PrintAddStr [21:08:03]wPrintStart [21:08:03]Write to MH i2c: 01 00 00 E0 20 00 [21:08:03]Write i2c OK [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: 01 [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: 01 07 00 [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: 01 07 00 E0 20 00 00 00 00 00 FF 0F 15 [21:08:03]RasterBufferAndPrint [21:08:03]line Счет N : (1)949172 [21:08:03]line ИНН: 02508201610067 [21:08:03]line Контрольно-Кассовый Чек [21:08:03]line ПРОДАЖА [21:08:03]line ТРК (МРК, ГНК) : 31 [21:08:03]line Товар: 2710124130 [21:08:03]line Аи-92-К-4 [21:08:03]line 7.380 * 67.80 [21:08:03]line = 500.36 [21:08:03]line НДС 12% НСП 1% [21:08:03]line > о реализуемом товаре [21:08:03]line ОКРУГЛЕНИЕ: -0.36 [21:08:03]line ИТОГО: 500.00 [21:08:03]line Внесено: 500.00 [21:08:03]line СДАЧА: 0.00 [21:08:03]line НСП 1% : 4.43 [21:08:03]line НДС 12% : 53.14 [21:08:03]line Наличными: 500.00 [21:08:03]line Безнал.: 0.00 [21:08:03]line Место: АЗС № 134 "Партнер Нефть" [21:08:03]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:08:03]line СНО: Общий режим [21:08:03]line Чек 242 27.07.2024 21:08 [21:08:03]line Смена: 432 ФФД: 1.0 [21:08:03]line ЗНМ: 0300000044 [21:08:03]line РНМ: 0000000000092660 [21:08:03]line Версия ККМ: 001 [21:08:03]line ФМ: 0000000000874939 [21:08:03]line ФД: 118299 [21:08:03]line ФПД: 135351729425359 [21:08:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T210802&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118299&fm=135351729425359&tin=02508201610067®Number=0000000000092660&sum=50000 [21:08:03]OFD Sender: Processing packet 118299 [packets to send 86, broken 85] [21:08:03]ProducePacketName [21:08:03]name=ofd_packets/00118299 [21:08:03]OFD Sender: To server: pG, [21:08:03]CommunicateWithHost lk.salyk.kg:30040 [21:08:03]ConnectInit lk.salyk.kg [21:08:03]written 0, free lines is 4095 [21:08:03]Connected sock=10 [21:08:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D0 42 07 01 AE F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F2 00 00 00 F4 03 04 00 B2 61 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1B CE 01 00 35 04 06 00 7B 1A 07 C0 8B CF 9B C7 1D 11 81 97 B8 EF [21:08:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 0F 25 47 00 91 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 34 39 33 39 10 04 04 00 1B CE 01 00 F4 03 04 00 44 0F A5 66 B6 04 01 00 00 84 CB 78 BF 64 02 4D A1 [21:08:03]CommunicateWithHost err = 0 [21:08:03]CheckOFDResponse [21:08:03]1017 (14) - 77093643461234 [21:08:03]1041 (16) - 0000000000874939 [21:08:03]1040 (4) - 118299 [21:08:03]1012 (4) - 27.07.2024 15:16 [21:08:03]1206 (1) - 0 [21:08:03]OFD Sender: Remove packet 118299 [21:08:03]ProducePacketName [21:08:03]name=ofd_packets/00118299 [21:08:03]NVStorageDeleteData [21:08:03]Write to MH i2c: 01 00 00 0A 21 2B [21:08:03]Write i2c OK [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: 01 [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: 01 07 00 [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: 01 07 00 0A 21 00 00 00 00 00 E4 0C 22 [21:08:03]RasterBufferAndPrint [21:08:03]line [21:08:03]line [21:08:03]line [21:08:03]line [21:08:03]line [21:08:03]written 0, free lines is 3306 [21:08:03]MH_Cut [21:08:03]Write to MH i2c: D1 01 00 11 21 01 04 [21:08:03]Write i2c OK [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: D1 [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: D1 01 00 [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: D1 01 00 11 21 00 03 [21:08:03]Write to MH i2c: 01 00 00 12 21 33 [21:08:03]Write i2c OK [21:08:03]MH_I2C_Read... [21:08:04]OFD Sender: No OFD packet to send [21:08:04]*** Cut start [21:08:04]*** Partial cut [21:08:04]*** CUTSNS_PIN = 1 [21:08:04]*** CUTSNS_PIN = 0 [21:08:04]*** Brake cut motor [21:08:05]Read from MH i2c: 01 [21:08:05]MH_I2C_Read... [21:08:05]*** Stop cut motor [21:08:05]*** Cut end [21:08:05]Read from MH i2c: 01 07 00 [21:08:05]MH_I2C_Read... [21:08:05]Read from MH i2c: 01 07 00 12 21 00 00 00 00 00 FF 0F 48 [21:08:05]process_action close_receipt done [21:08:05]requested_data is exist [21:08:05]produce_requested_data [21:08:05]requested_item fm.sn is exist - process it [21:08:05]wFMCommunicate request_size=4 [21:08:05]MH_SAM_APDU [21:08:05]CAPDU: 80 11 00 00 [21:08:05]Write to MH i2c: E2 08 00 13 21 80 11 00 00 00 00 00 00 AE [21:08:05]Write i2c OK [21:08:05]MH_I2C_Read... [21:08:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:05]Read from MH i2c: E2 [21:08:05]MH_I2C_Read... [21:08:05]Read from MH i2c: E2 17 00 [21:08:05]MH_I2C_Read... [21:08:05]Read from MH i2c: E2 17 00 13 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 09 [21:08:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:08:05]wFMCommunicate OK [21:08:05]requested_item fd.num is exist - process it [21:08:05]SAM_PROTO_GetFieldsCounters [21:08:05]wFMCommunicate request_size=4 [21:08:05]MH_SAM_APDU [21:08:05]CAPDU: 80 13 00 00 [21:08:05]Write to MH i2c: E2 08 00 14 21 80 13 00 00 00 00 00 00 B1 [21:08:05]Write i2c OK [21:08:05]MH_I2C_Read... [21:08:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:08:05]Read from MH i2c: E2 [21:08:05]MH_I2C_Read... [21:08:05]Read from MH i2c: E2 62 00 [21:08:05]MH_I2C_Read... [21:08:05]Read from MH i2c: E2 62 00 14 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1B CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [21:08:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1B CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:08:05]wFMCommunicate OK [21:08:05]SAM_PROTO_GetFieldsCounters done [21:08:05]requested_item shift.num is exist - process it [21:08:05]requested_item shift.opened is exist - process it [21:08:05]req_shift_opened [21:08:05]FM_GetShiftState [21:08:05]SAM_PROTO_GetShiftState [21:08:05]wFMCommunicate request_size=4 [21:08:05]MH_SAM_APDU [21:08:05]CAPDU: 80 13 01 00 [21:08:05]Write to MH i2c: E2 08 00 15 21 80 13 01 00 00 00 00 00 B3 [21:08:05]Write i2c OK [21:08:05]MH_I2C_Read... [21:08:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:05]Read from MH i2c: E2 [21:08:05]MH_I2C_Read... [21:08:05]Read from MH i2c: E2 0E 00 [21:08:05]MH_I2C_Read... [21:08:05]Read from MH i2c: E2 0E 00 15 21 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 40 [21:08:05]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:08:05]wFMCommunicate OK [21:08:05]SAM_PROTO_GetShiftState done [21:08:05]FM_GetShiftState done [21:08:05]req_shift_opened done [21:08:05]requested_item shift.open_date is exist - process it [21:08:05]req_shift_open_date [21:08:05]req_shift_open_date done [21:08:05]produce_requested_data done [21:08:05]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118299,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [21:08:05]process_action_free close_receipt [21:08:05]json_value_free [21:08:05]json_value_free done [21:08:05]process_json_proto returns [21:08:05]Send response to host [21:08:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118299,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [21:08:05]free response buf [21:08:05]execute_script done [21:08:05]execute_script returns [21:08:05]free content buf [21:08:05]Sock 9.Close socket [21:08:05]Sock 9.Thread stoped [21:08:09]OFD Sender: No OFD packet to send [21:08:14]OFD Sender: No OFD packet to send [21:08:19]OFD Sender: No OFD packet to send [21:08:24]OFD Sender: No OFD packet to send [21:08:27]accept exits with 7 [21:08:27]New connection [21:08:27]New thread 3067096420 created [21:08:27]Thread 3066953060 joined [21:08:27]Waiting for new connection... [21:08:27] Sock 7.Parse request [21:08:27]Sock 7.Check first char [21:08:27]Sock 7.First char is OK [21:08:27]request: POST /json_proto HTTP/1.0 [21:08:27]Method: POST [21:08:27]URL: /json_proto [21:08:27]Method is POST - this is cgi request [21:08:27]url: /json_proto [21:08:27]query_string will be loaded in cgi processing [21:08:27]execute_cgi json_proto POST (null) [21:08:27]execute_cgi path=json_proto method=POST [21:08:27]POST find Content-Length [21:08:27]Host: 172.17.45.7:8080 [21:08:27]Content-Length: 739 [21:08:27]Content-Type: application/json [21:08:27] [21:08:27]POST finish read [21:08:27]Found Content-Length = 739 [21:08:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118298, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:08:27]execute_script... [21:08:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118298, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:08:27]POST & json_proto [21:08:27]process_json_proto [21:08:27]json parsed OK: [21:08:27]protocol is kg_v1.0 [21:08:27]action value=close_receipt [21:08:27]process_action close_receipt [21:08:27]cmd_close_receipt [21:08:27]MH_GetDate [21:08:27]Write to MH i2c: F0 00 00 16 21 26 [21:08:27]Write i2c OK [21:08:27]MH_I2C_Read... [21:08:27]Read from MH i2c: F0 [21:08:27]MH_I2C_Read... [21:08:27]Read from MH i2c: F0 09 00 [21:08:27]MH_I2C_Read... [21:08:27]Read from MH i2c: F0 09 00 16 21 00 CC 61 A5 66 90 0F 3E 66 AA [21:08:27]GetLastDocTimeStamp 1722114482 [21:08:27]current date 1722114508 [21:08:27]FM_GetShiftState [21:08:27]SAM_PROTO_GetShiftState [21:08:27]wFMCommunicate request_size=4 [21:08:27]MH_SAM_APDU [21:08:27]CAPDU: 80 13 01 00 [21:08:27]Write to MH i2c: E2 08 00 17 21 80 13 01 00 00 00 00 00 B5 [21:08:27]Write i2c OK [21:08:27]MH_I2C_Read... [21:08:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:27]Read from MH i2c: E2 [21:08:27]MH_I2C_Read... [21:08:27]Read from MH i2c: E2 0E 00 [21:08:27]MH_I2C_Read... [21:08:27]Read from MH i2c: E2 0E 00 17 21 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 42 [21:08:27]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:08:27]wFMCommunicate OK [21:08:27]SAM_PROTO_GetShiftState done [21:08:27]FM_GetShiftState done [21:08:27]opened in 1722038845 [21:08:27]opened+sec_in_day 1722125245 [21:08:27]quantity*price = 100005 [21:08:27]sum+1 = 100006 [21:08:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 243 27.07.2024 21:08 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФД осн.: 118298 ФМ осн.: 0000000000874939 ФМ: 0000000000874939 ФД: 118300 ФПД: 62086892589634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T210829&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118300&fm=62086892589634&tin=02508201610067®Number=0000000000092660&sum=100000 [21:08:28]StoreToDocumentArchive [21:08:28]shift 432 fd 118300 [21:08:28]save to /storage/0432/doc_00118300 [21:08:28]save last doc name /storage/0432/doc_00118300 to /storage/kkm_last_doc_name [21:08:28]save OK [21:08:28]Clear old archive folders... [21:08:28]ProcessDocumentItem done err = 0, tmpTLVsize=279 [21:08:28]tlvbuf is 01E1DA70 [21:08:28]SAM_PROTO_ClearQueue [21:08:28]wFMCommunicate request_size=4 [21:08:28]MH_SAM_APDU [21:08:28]CAPDU: 80 09 00 00 [21:08:28]Write to MH i2c: E2 08 00 26 21 80 09 00 00 00 00 00 00 B9 [21:08:28]Write i2c OK [21:08:28]MH_I2C_Read... [21:08:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:08:28]Read from MH i2c: E2 [21:08:28]MH_I2C_Read... [21:08:28]Read from MH i2c: E2 03 00 [21:08:28]MH_I2C_Read... [21:08:28]Read from MH i2c: E2 03 00 26 21 00 90 00 BB [21:08:28]RAPDU: 90 00 [21:08:28]wFMCommunicate OK [21:08:28]SAM_PROTO_ClearQueue done [21:08:28]KKMCreateOFDPacket [21:08:28]OFDProtocolAddRootSTLVToBuf [21:08:28]FM_MakeSignedData [21:08:28]FM_MakeSignedData [21:08:28]SAM_PROTO_SignData [21:08:28]wFMCommunicate request_size=4 [21:08:28]MH_SAM_APDU [21:08:28]CAPDU: 80 0D 01 02 [21:08:28]Write to MH i2c: E2 08 00 27 21 80 0D 01 02 00 00 00 00 C1 [21:08:28]Write i2c OK [21:08:28]MH_I2C_Read... [21:08:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:08:28]Read from MH i2c: E2 [21:08:28]MH_I2C_Read... [21:08:28]Read from MH i2c: E2 03 00 [21:08:28]MH_I2C_Read... [21:08:28]Read from MH i2c: E2 03 00 27 21 00 90 00 BC [21:08:28]RAPDU: 90 00 [21:08:28]wFMCommunicate OK [21:08:28]wFMCommunicate request_size=255 [21:08:28]MH_SAM_APDU [21:08:28]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 CD 61 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 1A CE 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 [21:08:28]Write to MH i2c: E2 02 01 28 21 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 CD 61 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 1A CE 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 00 00 FC [21:08:28]Write i2c OK [21:08:28]MH_I2C_Read... [21:08:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:29]Read from MH i2c: E2 [21:08:29]MH_I2C_Read... [21:08:29]Read from MH i2c: E2 03 00 [21:08:29]MH_I2C_Read... [21:08:29]Read from MH i2c: E2 03 00 28 21 00 90 00 BD [21:08:29]RAPDU: 90 00 [21:08:29]wFMCommunicate OK [21:08:29]wFMCommunicate request_size=38 [21:08:29]MH_SAM_APDU [21:08:29]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1C CE 01 00 35 04 06 00 38 77 BB 2D 92 42 [21:08:29]Write to MH i2c: E2 29 00 29 21 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1C CE 01 00 35 04 06 00 38 77 BB 2D 92 42 00 00 AB [21:08:29]Write i2c OK [21:08:29]MH_I2C_Read... [21:08:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:29]Read from MH i2c: E2 [21:08:29]MH_I2C_Read... [21:08:29]Read from MH i2c: E2 03 00 [21:08:29]MH_I2C_Read... [21:08:29]Read from MH i2c: E2 03 00 29 21 00 90 00 BE [21:08:29]RAPDU: 90 00 [21:08:29]wFMCommunicate OK [21:08:29]wFMCommunicate request_size=4 [21:08:29]MH_SAM_APDU [21:08:29]CAPDU: 80 0D 03 02 [21:08:29]Write to MH i2c: E2 08 00 2A 21 80 0D 03 02 00 00 00 00 C6 [21:08:29]Write i2c OK [21:08:29]MH_I2C_Read... [21:08:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:08:29]Read from MH i2c: E2 [21:08:29]MH_I2C_Read... [21:08:29]Read from MH i2c: E2 0B 00 [21:08:29]MH_I2C_Read... [21:08:29]Read from MH i2c: E2 0B 00 2A 21 00 3E B0 DA 51 39 F7 FD 13 90 00 20 [21:08:29]RAPDU: 3E B0 DA 51 39 F7 FD 13 90 00 [21:08:29]wFMCommunicate OK [21:08:29]SAM_PROTO_SignData done [21:08:29]FM_MakeSignedData done [21:08:29]CreateOFDProtocolMessage [21:08:29]wFMCommunicate request_size=4 [21:08:29]MH_SAM_APDU [21:08:29]CAPDU: 80 11 00 00 [21:08:29]Write to MH i2c: E2 08 00 2B 21 80 11 00 00 00 00 00 00 C6 [21:08:29]Write i2c OK [21:08:29]MH_I2C_Read... [21:08:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:29]Read from MH i2c: E2 [21:08:29]MH_I2C_Read... [21:08:29]Read from MH i2c: E2 17 00 [21:08:29]MH_I2C_Read... [21:08:29]Read from MH i2c: E2 17 00 2B 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 21 [21:08:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:08:29]wFMCommunicate OK [21:08:29]CreateOFDProtocolMessage done [21:08:29]OFDSenderStorePacket 118300 [21:08:29]StoreOFDPacket docnum=118300 [21:08:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 E1 F7 23 01 4E 4F 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 CD 61 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 1A CE 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1C CE 01 00 35 04 06 00 38 77 BB 2D 92 42 3E B0 DA 51 39 F7 FD 13 [21:08:29]CheckFolder [21:08:29]dirname=/storage/ofd_packets [21:08:29]CheckFolder done [21:08:29]ProducePacketName [21:08:29]name=ofd_packets/00118300 [21:08:29]NVStorageSaveData ofd_packets/00118300 [21:08:29]File name is /storage/ofd_packets/00118300 [21:08:29]Write 329 bytes [21:08:29]NVStorageSaveData done [21:08:29]OFDSenderStorePacket done [21:08:29]KKMCreateOFDPacket done [21:08:29]NVStorageSaveData kkm_last_timestamp [21:08:29]File name is /storage/kkm_last_timestamp [21:08:29]Write 4 bytes [21:08:29]NVStorageSaveData done [21:08:29]ExternCall_PrintAddStr [21:08:29]wPrintStart [21:08:29]Write to MH i2c: 01 00 00 2C 21 4D [21:08:29]Write i2c OK [21:08:29]MH_I2C_Read... [21:08:29]Read from MH i2c: 01 [21:08:29]MH_I2C_Read... [21:08:29]Read from MH i2c: 01 07 00 [21:08:29]MH_I2C_Read... [21:08:29]Read from MH i2c: 01 07 00 2C 21 00 00 00 00 00 FF 0F 62 [21:08:29]RasterBufferAndPrint [21:08:29]line Счет N : (1)949171 [21:08:29]line ИНН: 02508201610067 [21:08:29]line Контрольно-Кассовый Чек [21:08:29]line ВОЗВРАТ ПРОДАЖИ [21:08:29]line ТРК (МРК, ГНК) : 51 [21:08:29]line Товар: 2710124130 [21:08:29]line Аи-92-К-4 [21:08:29]line 14.750 * 67.80 [21:08:29]line = 1000.05 [21:08:29]line НДС 12% НСП 1% [21:08:29]line > о реализуемом товаре [21:08:29]line ОКРУГЛЕНИЕ: -0.05 [21:08:29]line ИТОГО: 1000.00 [21:08:29]line НСП 1% : 8.85 [21:08:29]line НДС 12% : 106.20 [21:08:29]line Наличными: 1000.00 [21:08:29]line Безнал.: 0.00 [21:08:29]line Место: АЗС № 134 "Партнер Нефть" [21:08:29]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:08:29]line СНО: Общий режим [21:08:29]line Чек 243 27.07.2024 21:08 [21:08:29]line Смена: 432 ФФД: 1.0 [21:08:29]line ЗНМ: 0300000044 [21:08:29]line РНМ: 0000000000092660 [21:08:29]line Версия ККМ: 001 [21:08:29]line ФД осн.: 118298 [21:08:29]line ФМ осн.: 0000000000874939 [21:08:29]line ФМ: 0000000000874939 [21:08:29]line ФД: 118300 [21:08:29]line ФПД: 62086892589634 [21:08:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T210829&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118300&fm=62086892589634&tin=02508201610067®Number=0000000000092660&sum=100000 [21:08:29]OFD Sender: Processing packet 118300 [packets to send 86, broken 85] [21:08:29]ProducePacketName [21:08:29]name=ofd_packets/00118300 [21:08:29]OFD Sender: To server: pG, [21:08:29]CommunicateWithHost lk.salyk.kg:30040 [21:08:29]ConnectInit lk.salyk.kg [21:08:29]written 0, free lines is 4095 [21:08:29]Connected sock=10 [21:08:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 E1 F7 23 01 4E 4F 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 CD 61 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 1A CE 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1C CE 01 00 35 04 06 00 38 77 BB 2D 92 42 3E B0 DA 51 39 F7 FD 13 [21:08:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 BB BC 47 00 6A 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 34 39 33 39 10 04 04 00 1C CE 01 00 F4 03 04 00 5F 0F A5 66 B6 04 01 00 00 75 9A BE 27 F5 01 A5 15 [21:08:29]CommunicateWithHost err = 0 [21:08:29]CheckOFDResponse [21:08:29]1017 (14) - 77093643461234 [21:08:29]1041 (16) - 0000000000874939 [21:08:29]1040 (4) - 118300 [21:08:29]1012 (4) - 27.07.2024 15:16 [21:08:29]1206 (1) - 0 [21:08:29]OFD Sender: Remove packet 118300 [21:08:29]ProducePacketName [21:08:29]name=ofd_packets/00118300 [21:08:29]NVStorageDeleteData [21:08:30]Write to MH i2c: 01 00 00 56 21 77 [21:08:30]Write i2c OK [21:08:30]MH_I2C_Read... [21:08:30]Read from MH i2c: 01 [21:08:30]MH_I2C_Read... [21:08:30]Read from MH i2c: 01 07 00 [21:08:30]MH_I2C_Read... [21:08:30]Read from MH i2c: 01 07 00 56 21 00 00 00 00 00 EE 0C 78 [21:08:30]RasterBufferAndPrint [21:08:30]line [21:08:30]line [21:08:30]line [21:08:30]line [21:08:30]line [21:08:30]written 0, free lines is 3317 [21:08:30]MH_Cut [21:08:30]Write to MH i2c: D1 01 00 5D 21 01 50 [21:08:30]Write i2c OK [21:08:30]MH_I2C_Read... [21:08:30]Read from MH i2c: D1 [21:08:30]MH_I2C_Read... [21:08:30]Read from MH i2c: D1 01 00 [21:08:30]MH_I2C_Read... [21:08:30]Read from MH i2c: D1 01 00 5D 21 00 4F [21:08:30]Write to MH i2c: 01 00 00 5E 21 7F [21:08:30]Write i2c OK [21:08:30]MH_I2C_Read... [21:08:30]OFD Sender: No OFD packet to send [21:08:30]*** Cut start [21:08:30]*** Partial cut [21:08:30]*** CUTSNS_PIN = 1 [21:08:30]*** CUTSNS_PIN = 0 [21:08:31]*** Brake cut motor [21:08:31]Read from MH i2c: 01 [21:08:31]MH_I2C_Read... [21:08:31]*** Stop cut motor [21:08:31]*** Cut end [21:08:31]Read from MH i2c: 01 07 00 [21:08:31]MH_I2C_Read... [21:08:31]Read from MH i2c: 01 07 00 5E 21 00 00 00 00 00 FF 0F 94 [21:08:31]process_action close_receipt done [21:08:31]requested_data is exist [21:08:31]produce_requested_data [21:08:31]requested_item fm.sn is exist - process it [21:08:31]wFMCommunicate request_size=4 [21:08:31]MH_SAM_APDU [21:08:31]CAPDU: 80 11 00 00 [21:08:31]Write to MH i2c: E2 08 00 5F 21 80 11 00 00 00 00 00 00 FA [21:08:31]Write i2c OK [21:08:31]MH_I2C_Read... [21:08:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:31]Read from MH i2c: E2 [21:08:31]MH_I2C_Read... [21:08:31]Read from MH i2c: E2 17 00 [21:08:31]MH_I2C_Read... [21:08:31]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 34 39 33 39 90 00 55 [21:08:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:08:31]wFMCommunicate OK [21:08:31]requested_item fd.num is exist - process it [21:08:31]SAM_PROTO_GetFieldsCounters [21:08:31]wFMCommunicate request_size=4 [21:08:31]MH_SAM_APDU [21:08:31]CAPDU: 80 13 00 00 [21:08:31]Write to MH i2c: E2 08 00 60 21 80 13 00 00 00 00 00 00 FD [21:08:31]Write i2c OK [21:08:31]MH_I2C_Read... [21:08:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:08:31]Read from MH i2c: E2 [21:08:31]MH_I2C_Read... [21:08:31]Read from MH i2c: E2 62 00 [21:08:31]MH_I2C_Read... [21:08:31]Read from MH i2c: E2 62 00 60 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1C CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [21:08:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1C CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:08:31]wFMCommunicate OK [21:08:31]SAM_PROTO_GetFieldsCounters done [21:08:31]requested_item shift.num is exist - process it [21:08:31]requested_item shift.opened is exist - process it [21:08:31]req_shift_opened [21:08:31]FM_GetShiftState [21:08:31]SAM_PROTO_GetShiftState [21:08:31]wFMCommunicate request_size=4 [21:08:31]MH_SAM_APDU [21:08:31]CAPDU: 80 13 01 00 [21:08:31]Write to MH i2c: E2 08 00 61 21 80 13 01 00 00 00 00 00 FF [21:08:31]Write i2c OK [21:08:31]MH_I2C_Read... [21:08:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:31]Read from MH i2c: E2 [21:08:31]MH_I2C_Read... [21:08:31]Read from MH i2c: E2 0E 00 [21:08:31]MH_I2C_Read... [21:08:31]Read from MH i2c: E2 0E 00 61 21 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 8C [21:08:31]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:08:31]wFMCommunicate OK [21:08:31]SAM_PROTO_GetShiftState done [21:08:31]FM_GetShiftState done [21:08:31]req_shift_opened done [21:08:31]requested_item shift.open_date is exist - process it [21:08:31]req_shift_open_date [21:08:31]req_shift_open_date done [21:08:31]produce_requested_data done [21:08:31]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118300,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [21:08:31]process_action_free close_receipt [21:08:31]json_value_free [21:08:31]json_value_free done [21:08:31]process_json_proto returns [21:08:31]Send response to host [21:08:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118300,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [21:08:31]free response buf [21:08:31]execute_script done [21:08:31]execute_script returns [21:08:31]free content buf [21:08:31]Sock 7.Close socket [21:08:31]Sock 7.Thread stoped [21:08:32]accept exits with 9 [21:08:32]New connection [21:08:32]New thread 3066953060 created [21:08:32]Thread 3067096420 joined [21:08:32]Waiting for new connection... [21:08:32] Sock 9.Parse request [21:08:32]Sock 9.Check first char [21:08:32]Sock 9.First char is OK [21:08:32]request: POST /json_proto HTTP/1.0 [21:08:32]Method: POST [21:08:32]URL: /json_proto [21:08:32]Method is POST - this is cgi request [21:08:32]url: /json_proto [21:08:32]query_string will be loaded in cgi processing [21:08:32]execute_cgi json_proto POST (null) [21:08:32]execute_cgi path=json_proto method=POST [21:08:32]POST find Content-Length [21:08:32]Host: 172.17.45.7:8080 [21:08:32]Content-Length: 679 [21:08:32]Content-Type: application/json [21:08:32] [21:08:32]POST finish read [21:08:32]Found Content-Length = 679 [21:08:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.440, "sum" : 979.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 979.00, "payments": [ { "type": 0, "sum" : 979.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:08:32]execute_script... [21:08: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)949171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.440, "sum" : 979.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 979.00, "payments": [ { "type": 0, "sum" : 979.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:08:32]POST & json_proto [21:08:32]process_json_proto [21:08:32]json parsed OK: [21:08:32]protocol is kg_v1.0 [21:08:32]action value=close_receipt [21:08:32]process_action close_receipt [21:08:32]cmd_close_receipt [21:08:32]MH_GetDate [21:08:32]Write to MH i2c: F0 00 00 62 21 72 [21:08:32]Write i2c OK [21:08:32]MH_I2C_Read... [21:08:32]Read from MH i2c: F0 [21:08:32]MH_I2C_Read... [21:08:32]Read from MH i2c: F0 09 00 [21:08:32]MH_I2C_Read... [21:08:32]Read from MH i2c: F0 09 00 62 21 00 D1 61 A5 66 90 0F 3E 66 FB [21:08:32]GetLastDocTimeStamp 1722114509 [21:08:32]current date 1722114513 [21:08:32]FM_GetShiftState [21:08:32]SAM_PROTO_GetShiftState [21:08:32]wFMCommunicate request_size=4 [21:08:32]MH_SAM_APDU [21:08:32]CAPDU: 80 13 01 00 [21:08:32]Write to MH i2c: E2 08 00 63 21 80 13 01 00 00 00 00 00 01 [21:08:32]Write i2c OK [21:08:32]MH_I2C_Read... [21:08:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:32]Read from MH i2c: E2 [21:08:32]MH_I2C_Read... [21:08:32]Read from MH i2c: E2 0E 00 [21:08:32]MH_I2C_Read... [21:08:32]Read from MH i2c: E2 0E 00 63 21 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 8E [21:08:32]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:08:32]wFMCommunicate OK [21:08:32]SAM_PROTO_GetShiftState done [21:08:32]FM_GetShiftState done [21:08:32]opened in 1722038845 [21:08:32]opened+sec_in_day 1722125245 [21:08:32]quantity*price = 97903 [21:08:32]sum+1 = 97904 [21:08:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 979.00 Внесено: 1000.00 СДАЧА: 21.00 НСП 1% : 8.66 НДС 12% : 103.97 Наличными: 979.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 244 27.07.2024 21:08 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118301 ФПД: 5984072123377 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T210833&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118301&fm=5984072123377&tin=02508201610067®Number=0000000000092660&sum=97900 [21:08:33]StoreToDocumentArchive [21:08:33]shift 432 fd 118301 [21:08:33]save to /storage/0432/doc_00118301 [21:08:33]save last doc name /storage/0432/doc_00118301 to /storage/kkm_last_doc_name [21:08:33]save OK [21:08:33]Clear old archive folders... [21:08:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:08:33]tlvbuf is 01E63630 [21:08:33]SAM_PROTO_ClearQueue [21:08:33]wFMCommunicate request_size=4 [21:08:33]MH_SAM_APDU [21:08:33]CAPDU: 80 09 00 00 [21:08:33]Write to MH i2c: E2 08 00 70 21 80 09 00 00 00 00 00 00 03 [21:08:33]Write i2c OK [21:08:33]MH_I2C_Read... [21:08:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:08:33]Read from MH i2c: E2 [21:08:33]MH_I2C_Read... [21:08:33]Read from MH i2c: E2 03 00 [21:08:33]MH_I2C_Read... [21:08:33]Read from MH i2c: E2 03 00 70 21 00 90 00 05 [21:08:33]RAPDU: 90 00 [21:08:33]wFMCommunicate OK [21:08:33]SAM_PROTO_ClearQueue done [21:08:33]KKMCreateOFDPacket [21:08:33]OFDProtocolAddRootSTLVToBuf [21:08:33]FM_MakeSignedData [21:08:33]FM_MakeSignedData [21:08:33]SAM_PROTO_SignData [21:08:33]wFMCommunicate request_size=4 [21:08:33]MH_SAM_APDU [21:08:33]CAPDU: 80 0D 01 02 [21:08:33]Write to MH i2c: E2 08 00 71 21 80 0D 01 02 00 00 00 00 0B [21:08:33]Write i2c OK [21:08:33]MH_I2C_Read... [21:08:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:08:33]Read from MH i2c: E2 [21:08:33]MH_I2C_Read... [21:08:33]Read from MH i2c: E2 03 00 [21:08:33]MH_I2C_Read... [21:08:33]Read from MH i2c: E2 03 00 71 21 00 90 00 06 [21:08:33]RAPDU: 90 00 [21:08:33]wFMCommunicate OK [21:08:33]wFMCommunicate request_size=255 [21:08:33]MH_SAM_APDU [21:08: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 34 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6F 7E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 7E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 28 00 00 00 00 07 04 06 00 6C 7E 01 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 D1 61 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1D CE 01 00 35 04 06 00 05 [21:08:33]Write to MH i2c: E2 02 01 72 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 34 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6F 7E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 7E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 28 00 00 00 00 07 04 06 00 6C 7E 01 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 D1 61 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1D CE 01 00 35 04 06 00 05 00 00 11 [21:08:33]Write i2c OK [21:08:33]MH_I2C_Read... [21:08:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:34]Read from MH i2c: E2 [21:08:34]MH_I2C_Read... [21:08:34]Read from MH i2c: E2 03 00 [21:08:34]MH_I2C_Read... [21:08:34]Read from MH i2c: E2 03 00 72 21 00 90 00 07 [21:08:34]RAPDU: 90 00 [21:08:34]wFMCommunicate OK [21:08:34]wFMCommunicate request_size=10 [21:08:34]MH_SAM_APDU [21:08:34]CAPDU: 80 0D 02 02 05 71 46 7E 43 F1 [21:08:34]Write to MH i2c: E2 0D 00 73 21 80 0D 02 02 05 00 71 46 7E 43 F1 00 00 81 [21:08:34]Write i2c OK [21:08:34]MH_I2C_Read... [21:08:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:34]Read from MH i2c: E2 [21:08:34]MH_I2C_Read... [21:08:34]Read from MH i2c: E2 03 00 [21:08:34]MH_I2C_Read... [21:08:34]Read from MH i2c: E2 03 00 73 21 00 90 00 08 [21:08:34]RAPDU: 90 00 [21:08:34]wFMCommunicate OK [21:08:34]wFMCommunicate request_size=4 [21:08:34]MH_SAM_APDU [21:08:34]CAPDU: 80 0D 03 02 [21:08:34]Write to MH i2c: E2 08 00 74 21 80 0D 03 02 00 00 00 00 10 [21:08:34]Write i2c OK [21:08:34]MH_I2C_Read... [21:08:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:08:34]Read from MH i2c: E2 [21:08:34]MH_I2C_Read... [21:08:34]Read from MH i2c: E2 0B 00 [21:08:34]MH_I2C_Read... [21:08:34]Read from MH i2c: E2 0B 00 74 21 00 7F 1A 52 CB 9B EB F4 C3 90 00 04 [21:08:34]RAPDU: 7F 1A 52 CB 9B EB F4 C3 90 00 [21:08:34]wFMCommunicate OK [21:08:34]SAM_PROTO_SignData done [21:08:34]FM_MakeSignedData done [21:08:34]CreateOFDProtocolMessage [21:08:34]wFMCommunicate request_size=4 [21:08:34]MH_SAM_APDU [21:08:34]CAPDU: 80 11 00 00 [21:08:34]Write to MH i2c: E2 08 00 75 21 80 11 00 00 00 00 00 00 10 [21:08:34]Write i2c OK [21:08:34]MH_I2C_Read... [21:08:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:34]Read from MH i2c: E2 [21:08:34]MH_I2C_Read... [21:08:34]Read from MH i2c: E2 17 00 [21:08:34]MH_I2C_Read... [21:08:34]Read from MH i2c: E2 17 00 75 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6B [21:08:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:08:34]wFMCommunicate OK [21:08:34]CreateOFDProtocolMessage done [21:08:34]OFDSenderStorePacket 118301 [21:08:34]StoreOFDPacket docnum=118301 [21:08:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 96 8F 07 01 6A 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 34 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6F 7E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 7E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 28 00 00 00 00 07 04 06 00 6C 7E 01 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 D1 61 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1D CE 01 00 35 04 06 00 05 71 46 7E 43 F1 7F 1A 52 CB 9B EB F4 C3 [21:08:34]CheckFolder [21:08:34]dirname=/storage/ofd_packets [21:08:34]CheckFolder done [21:08:34]ProducePacketName [21:08:34]name=ofd_packets/00118301 [21:08:34]NVStorageSaveData ofd_packets/00118301 [21:08:34]File name is /storage/ofd_packets/00118301 [21:08:34]Write 301 bytes [21:08:34]NVStorageSaveData done [21:08:34]OFDSenderStorePacket done [21:08:34]KKMCreateOFDPacket done [21:08:34]NVStorageSaveData kkm_last_timestamp [21:08:34]File name is /storage/kkm_last_timestamp [21:08:34]Write 4 bytes [21:08:34]NVStorageSaveData done [21:08:34]ExternCall_PrintAddStr [21:08:34]wPrintStart [21:08:34]Write to MH i2c: 01 00 00 76 21 97 [21:08:34]Write i2c OK [21:08:34]MH_I2C_Read... [21:08:34]Read from MH i2c: 01 [21:08:34]MH_I2C_Read... [21:08:34]Read from MH i2c: 01 07 00 [21:08:34]MH_I2C_Read... [21:08:34]Read from MH i2c: 01 07 00 76 21 00 00 00 00 00 FF 0F AC [21:08:34]RasterBufferAndPrint [21:08:34]line Счет N : (1)949171 [21:08:34]line ИНН: 02508201610067 [21:08:34]line Контрольно-Кассовый Чек [21:08:34]line ПРОДАЖА [21:08:34]line ТРК (МРК, ГНК) : 51 [21:08:34]line Товар: 2710124130 [21:08:34]line Аи-92-К-4 [21:08:34]line 14.440 * 67.80 [21:08:34]line = 979.03 [21:08:34]line НДС 12% НСП 1% [21:08:34]line > о реализуемом товаре [21:08:34]line ОКРУГЛЕНИЕ: -0.03 [21:08:34]line ИТОГО: 979.00 [21:08:34]line Внесено: 1000.00 [21:08:34]line СДАЧА: 21.00 [21:08:34]line НСП 1% : 8.66 [21:08:34]line НДС 12% : 103.97 [21:08:34]line Наличными: 979.00 [21:08:34]line Безнал.: 0.00 [21:08:34]line Место: АЗС № 134 "Партнер Нефть" [21:08:34]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:08:34]line СНО: Общий режим [21:08:34]line Чек 244 27.07.2024 21:08 [21:08:34]line Смена: 432 ФФД: 1.0 [21:08:34]line ЗНМ: 0300000044 [21:08:34]line РНМ: 0000000000092660 [21:08:34]line Версия ККМ: 001 [21:08:34]line ФМ: 0000000000874939 [21:08:34]line ФД: 118301 [21:08:34]line ФПД: 5984072123377 [21:08:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T210833&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118301&fm=5984072123377&tin=02508201610067®Number=0000000000092660&sum=97900 [21:08:34]OFD Sender: Processing packet 118301 [packets to send 86, broken 85] [21:08:34]ProducePacketName [21:08:34]name=ofd_packets/00118301 [21:08:34]OFD Sender: To server: pG, [21:08:34]CommunicateWithHost lk.salyk.kg:30040 [21:08:34]ConnectInit lk.salyk.kg [21:08:34]written 0, free lines is 4095 [21:08:34]Connected sock=10 [21:08:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 96 8F 07 01 6A 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 34 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6F 7E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 7E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 28 00 00 00 00 07 04 06 00 6C 7E 01 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 D1 61 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1D CE 01 00 35 04 06 00 05 71 46 7E 43 F1 7F 1A 52 CB 9B EB F4 C3 [21:08:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 4F DD 47 00 4B AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1D CE 01 00 F4 03 04 00 64 0F A5 66 B6 04 01 00 00 C5 35 5D 16 76 54 1D 53 [21:08:34]CommunicateWithHost err = 0 [21:08:34]CheckOFDResponse [21:08:34]1017 (14) - 77093643461234 [21:08:34]1041 (16) - 0000000000874939 [21:08:34]1040 (4) - 118301 [21:08:34]1012 (4) - 27.07.2024 15:16 [21:08:34]1206 (1) - 0 [21:08:34]OFD Sender: Remove packet 118301 [21:08:34]ProducePacketName [21:08:34]name=ofd_packets/00118301 [21:08:34]NVStorageDeleteData [21:08:35]Write to MH i2c: 01 00 00 A0 21 C1 [21:08:35]Write i2c OK [21:08:35]MH_I2C_Read... [21:08:35]Read from MH i2c: 01 [21:08:35]MH_I2C_Read... [21:08:35]Read from MH i2c: 01 07 00 [21:08:35]MH_I2C_Read... [21:08:35]Read from MH i2c: 01 07 00 A0 21 00 00 00 00 00 DD 0C B1 [21:08:35]RasterBufferAndPrint [21:08:35]line [21:08:35]line [21:08:35]line [21:08:35]line [21:08:35]line [21:08:35]written 0, free lines is 3305 [21:08:35]MH_Cut [21:08:35]Write to MH i2c: D1 01 00 A7 21 01 9A [21:08:35]Write i2c OK [21:08:35]MH_I2C_Read... [21:08:35]Read from MH i2c: D1 [21:08:35]MH_I2C_Read... [21:08:35]Read from MH i2c: D1 01 00 [21:08:35]MH_I2C_Read... [21:08:35]Read from MH i2c: D1 01 00 A7 21 00 99 [21:08:35]Write to MH i2c: 01 00 00 A8 21 C9 [21:08:35]Write i2c OK [21:08:35]MH_I2C_Read... [21:08:35]OFD Sender: No OFD packet to send [21:08:35]*** Cut start [21:08:35]*** Partial cut [21:08:35]*** CUTSNS_PIN = 1 [21:08:35]*** CUTSNS_PIN = 0 [21:08:35]*** Brake cut motor [21:08:36]Read from MH i2c: 01 [21:08:36]MH_I2C_Read... [21:08:36]*** Stop cut motor [21:08:36]*** Cut end [21:08:36]Read from MH i2c: 01 07 00 [21:08:36]MH_I2C_Read... [21:08:36]Read from MH i2c: 01 07 00 A8 21 00 00 00 00 00 FF 0F DE [21:08:36]process_action close_receipt done [21:08:36]requested_data is exist [21:08:36]produce_requested_data [21:08:36]requested_item fm.sn is exist - process it [21:08:36]wFMCommunicate request_size=4 [21:08:36]MH_SAM_APDU [21:08:36]CAPDU: 80 11 00 00 [21:08:36]Write to MH i2c: E2 08 00 A9 21 80 11 00 00 00 00 00 00 44 [21:08:36]Write i2c OK [21:08:36]MH_I2C_Read... [21:08:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:36]Read from MH i2c: E2 [21:08:36]MH_I2C_Read... [21:08:36]Read from MH i2c: E2 17 00 [21:08:36]MH_I2C_Read... [21:08:36]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 34 39 33 39 90 00 9F [21:08:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:08:36]wFMCommunicate OK [21:08:36]requested_item fd.num is exist - process it [21:08:36]SAM_PROTO_GetFieldsCounters [21:08:36]wFMCommunicate request_size=4 [21:08:36]MH_SAM_APDU [21:08:36]CAPDU: 80 13 00 00 [21:08:36]Write to MH i2c: E2 08 00 AA 21 80 13 00 00 00 00 00 00 47 [21:08:36]Write i2c OK [21:08:36]MH_I2C_Read... [21:08:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:08:36]Read from MH i2c: E2 [21:08:36]MH_I2C_Read... [21:08:36]Read from MH i2c: E2 62 00 [21:08:36]MH_I2C_Read... [21:08:36]Read from MH i2c: E2 62 00 AA 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1D CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [21:08:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1D CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:08:36]wFMCommunicate OK [21:08:36]SAM_PROTO_GetFieldsCounters done [21:08:36]requested_item shift.num is exist - process it [21:08:36]requested_item shift.opened is exist - process it [21:08:36]req_shift_opened [21:08:36]FM_GetShiftState [21:08:36]SAM_PROTO_GetShiftState [21:08:36]wFMCommunicate request_size=4 [21:08:36]MH_SAM_APDU [21:08:36]CAPDU: 80 13 01 00 [21:08:36]Write to MH i2c: E2 08 00 AB 21 80 13 01 00 00 00 00 00 49 [21:08:36]Write i2c OK [21:08:36]MH_I2C_Read... [21:08:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:36]Read from MH i2c: E2 [21:08:36]MH_I2C_Read... [21:08:36]Read from MH i2c: E2 0E 00 [21:08:36]MH_I2C_Read... [21:08:36]Read from MH i2c: E2 0E 00 AB 21 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 D6 [21:08:36]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:08:36]wFMCommunicate OK [21:08:36]SAM_PROTO_GetShiftState done [21:08:36]FM_GetShiftState done [21:08:36]req_shift_opened done [21:08:36]requested_item shift.open_date is exist - process it [21:08:36]req_shift_open_date [21:08:36]req_shift_open_date done [21:08:36]produce_requested_data done [21:08:36]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118301,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [21:08:36]process_action_free close_receipt [21:08:36]json_value_free [21:08:36]json_value_free done [21:08:36]process_json_proto returns [21:08:36]Send response to host [21:08:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118301,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [21:08:36]free response buf [21:08:36]execute_script done [21:08:36]execute_script returns [21:08:36]free content buf [21:08:36]Sock 9.Close socket [21:08:36]Sock 9.Thread stoped [21:08:40]OFD Sender: No OFD packet to send [21:08:45]OFD Sender: No OFD packet to send [21:08:50]OFD Sender: No OFD packet to send [21:08:55]OFD Sender: No OFD packet to send [21:09:00]OFD Sender: No OFD packet to send [21:09:05]OFD Sender: No OFD packet to send [21:09:10]OFD Sender: No OFD packet to send [21:09:15]OFD Sender: No OFD packet to send [21:09:20]OFD Sender: No OFD packet to send [21:09:25]OFD Sender: No OFD packet to send [21:09:30]OFD Sender: No OFD packet to send [21:09:35]OFD Sender: No OFD packet to send [21:09:40]OFD Sender: No OFD packet to send [21:09:45]OFD Sender: No OFD packet to send [21:09:50]OFD Sender: No OFD packet to send [21:09:55]OFD Sender: No OFD packet to send [21:10:00]OFD Sender: No OFD packet to send [21:10:05]OFD Sender: No OFD packet to send [21:10:10]OFD Sender: No OFD packet to send [21:10:15]OFD Sender: No OFD packet to send [21:10:20]OFD Sender: No OFD packet to send [21:10:25]OFD Sender: No OFD packet to send [21:10:30]OFD Sender: No OFD packet to send [21:10:35]OFD Sender: No OFD packet to send [21:10:40]OFD Sender: No OFD packet to send [21:10:45]OFD Sender: No OFD packet to send [21:10:50]OFD Sender: No OFD packet to send [21:10:55]OFD Sender: No OFD packet to send [21:11:00]OFD Sender: No OFD packet to send [21:11:05]OFD Sender: No OFD packet to send [21:11:10]OFD Sender: No OFD packet to send [21:11:15]OFD Sender: No OFD packet to send [21:11:16]accept exits with 7 [21:11:16]New connection [21:11:16]New thread 3067096420 created [21:11:16]Thread 3066953060 joined [21:11:16]Waiting for new connection... [21:11:16] Sock 7.Parse request [21:11:16]Sock 7.Check first char [21:11:16]Sock 7.First char is OK [21:11:16]request: POST /json_proto HTTP/1.0 [21:11:16]Method: POST [21:11:16]URL: /json_proto [21:11:16]Method is POST - this is cgi request [21:11:16]url: /json_proto [21:11:16]query_string will be loaded in cgi processing [21:11:16]execute_cgi json_proto POST (null) [21:11:16]execute_cgi path=json_proto method=POST [21:11:16]POST find Content-Length [21:11:16]Host: 172.17.45.7:8080 [21:11:16]Content-Length: 682 [21:11:16]Content-Type: application/json [21:11:16] [21:11:16]POST finish read [21:11:16]Found Content-Length = 682 [21:11:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:11:16]execute_script... [21:11:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:11:16]POST & json_proto [21:11:16]process_json_proto [21:11:16]json parsed OK: [21:11:16]protocol is kg_v1.0 [21:11:16]action value=close_receipt [21:11:16]process_action close_receipt [21:11:16]cmd_close_receipt [21:11:16]MH_GetDate [21:11:16]Write to MH i2c: F0 00 00 AC 21 BC [21:11:16]Write i2c OK [21:11:16]MH_I2C_Read... [21:11:16]Read from MH i2c: F0 [21:11:16]MH_I2C_Read... [21:11:16]Read from MH i2c: F0 09 00 [21:11:16]MH_I2C_Read... [21:11:16]Read from MH i2c: F0 09 00 AC 21 00 76 62 A5 66 90 0F 3E 66 EB [21:11:16]GetLastDocTimeStamp 1722114513 [21:11:16]current date 1722114678 [21:11:16]FM_GetShiftState [21:11:16]SAM_PROTO_GetShiftState [21:11:16]wFMCommunicate request_size=4 [21:11:16]MH_SAM_APDU [21:11:16]CAPDU: 80 13 01 00 [21:11:16]Write to MH i2c: E2 08 00 AD 21 80 13 01 00 00 00 00 00 4B [21:11:16]Write i2c OK [21:11:16]MH_I2C_Read... [21:11:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:17]Read from MH i2c: E2 [21:11:17]MH_I2C_Read... [21:11:17]Read from MH i2c: E2 0E 00 [21:11:17]MH_I2C_Read... [21:11:17]Read from MH i2c: E2 0E 00 AD 21 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 D8 [21:11:17]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:11:17]wFMCommunicate OK [21:11:17]SAM_PROTO_GetShiftState done [21:11:17]FM_GetShiftState done [21:11:17]opened in 1722038845 [21:11:17]opened+sec_in_day 1722125245 [21:11:17]quantity*price = 100005 [21:11:17]sum+1 = 100006 [21:11:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 245 27.07.2024 21:11 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118302 ФПД: 114968392175242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T211118&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118302&fm=114968392175242&tin=02508201610067®Number=0000000000092660&sum=100000 [21:11:18]StoreToDocumentArchive [21:11:18]shift 432 fd 118302 [21:11:18]save to /storage/0432/doc_00118302 [21:11:18]save last doc name /storage/0432/doc_00118302 to /storage/kkm_last_doc_name [21:11:18]save OK [21:11:18]Clear old archive folders... [21:11:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:11:18]tlvbuf is 01E24110 [21:11:18]SAM_PROTO_ClearQueue [21:11:18]wFMCommunicate request_size=4 [21:11:18]MH_SAM_APDU [21:11:18]CAPDU: 80 09 00 00 [21:11:18]Write to MH i2c: E2 08 00 BA 21 80 09 00 00 00 00 00 00 4D [21:11:18]Write i2c OK [21:11:18]MH_I2C_Read... [21:11:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:11:18]Read from MH i2c: E2 [21:11:18]MH_I2C_Read... [21:11:18]Read from MH i2c: E2 03 00 [21:11:18]MH_I2C_Read... [21:11:18]Read from MH i2c: E2 03 00 BA 21 00 90 00 4F [21:11:18]RAPDU: 90 00 [21:11:18]wFMCommunicate OK [21:11:18]SAM_PROTO_ClearQueue done [21:11:18]KKMCreateOFDPacket [21:11:18]OFDProtocolAddRootSTLVToBuf [21:11:18]FM_MakeSignedData [21:11:18]FM_MakeSignedData [21:11:18]SAM_PROTO_SignData [21:11:18]wFMCommunicate request_size=4 [21:11:18]MH_SAM_APDU [21:11:18]CAPDU: 80 0D 01 02 [21:11:18]Write to MH i2c: E2 08 00 BB 21 80 0D 01 02 00 00 00 00 55 [21:11:18]Write i2c OK [21:11:18]MH_I2C_Read... [21:11:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:11:18]Read from MH i2c: E2 [21:11:18]MH_I2C_Read... [21:11:18]Read from MH i2c: E2 03 00 [21:11:18]MH_I2C_Read... [21:11:18]Read from MH i2c: E2 03 00 BB 21 00 90 00 50 [21:11:18]RAPDU: 90 00 [21:11:18]wFMCommunicate OK [21:11:18]wFMCommunicate request_size=255 [21:11:18]MH_SAM_APDU [21:11:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 76 62 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1E CE 01 00 35 04 06 00 68 [21:11:18]Write to MH i2c: E2 02 01 BC 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 76 62 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1E CE 01 00 35 04 06 00 68 00 00 46 [21:11:18]Write i2c OK [21:11:18]MH_I2C_Read... [21:11:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:18]Read from MH i2c: E2 [21:11:18]MH_I2C_Read... [21:11:18]Read from MH i2c: E2 03 00 [21:11:18]MH_I2C_Read... [21:11:18]Read from MH i2c: E2 03 00 BC 21 00 90 00 51 [21:11:18]RAPDU: 90 00 [21:11:18]wFMCommunicate OK [21:11:18]wFMCommunicate request_size=10 [21:11:18]MH_SAM_APDU [21:11:18]CAPDU: 80 0D 02 02 05 90 2A 2D 0E 8A [21:11:18]Write to MH i2c: E2 0D 00 BD 21 80 0D 02 02 05 00 90 2A 2D 0E 8A 00 00 E1 [21:11:18]Write i2c OK [21:11:18]MH_I2C_Read... [21:11:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:18]Read from MH i2c: E2 [21:11:18]MH_I2C_Read... [21:11:18]Read from MH i2c: E2 03 00 [21:11:18]MH_I2C_Read... [21:11:18]Read from MH i2c: E2 03 00 BD 21 00 90 00 52 [21:11:18]RAPDU: 90 00 [21:11:18]wFMCommunicate OK [21:11:18]wFMCommunicate request_size=4 [21:11:18]MH_SAM_APDU [21:11:18]CAPDU: 80 0D 03 02 [21:11:18]Write to MH i2c: E2 08 00 BE 21 80 0D 03 02 00 00 00 00 5A [21:11:18]Write i2c OK [21:11:18]MH_I2C_Read... [21:11:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:11:18]Read from MH i2c: E2 [21:11:18]MH_I2C_Read... [21:11:18]Read from MH i2c: E2 0B 00 [21:11:18]MH_I2C_Read... [21:11:18]Read from MH i2c: E2 0B 00 BE 21 00 7F A0 E7 51 F8 1E 52 77 90 00 91 [21:11:18]RAPDU: 7F A0 E7 51 F8 1E 52 77 90 00 [21:11:18]wFMCommunicate OK [21:11:18]SAM_PROTO_SignData done [21:11:18]FM_MakeSignedData done [21:11:18]CreateOFDProtocolMessage [21:11:18]wFMCommunicate request_size=4 [21:11:18]MH_SAM_APDU [21:11:18]CAPDU: 80 11 00 00 [21:11:18]Write to MH i2c: E2 08 00 BF 21 80 11 00 00 00 00 00 00 5A [21:11:18]Write i2c OK [21:11:18]MH_I2C_Read... [21:11:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:18]Read from MH i2c: E2 [21:11:18]MH_I2C_Read... [21:11:18]Read from MH i2c: E2 17 00 [21:11:18]MH_I2C_Read... [21:11:18]Read from MH i2c: E2 17 00 BF 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B5 [21:11:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:11:18]wFMCommunicate OK [21:11:18]CreateOFDProtocolMessage done [21:11:18]OFDSenderStorePacket 118302 [21:11:18]StoreOFDPacket docnum=118302 [21:11:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 DD 70 07 01 06 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 76 62 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1E CE 01 00 35 04 06 00 68 90 2A 2D 0E 8A 7F A0 E7 51 F8 1E 52 77 [21:11:18]CheckFolder [21:11:18]dirname=/storage/ofd_packets [21:11:18]CheckFolder done [21:11:18]ProducePacketName [21:11:18]name=ofd_packets/00118302 [21:11:18]NVStorageSaveData ofd_packets/00118302 [21:11:18]File name is /storage/ofd_packets/00118302 [21:11:18]Write 301 bytes [21:11:18]NVStorageSaveData done [21:11:18]OFDSenderStorePacket done [21:11:18]KKMCreateOFDPacket done [21:11:18]NVStorageSaveData kkm_last_timestamp [21:11:18]File name is /storage/kkm_last_timestamp [21:11:18]Write 4 bytes [21:11:18]NVStorageSaveData done [21:11:18]ExternCall_PrintAddStr [21:11:18]wPrintStart [21:11:18]Write to MH i2c: 01 00 00 C0 21 E1 [21:11:18]Write i2c OK [21:11:18]MH_I2C_Read... [21:11:18]Read from MH i2c: 01 [21:11:18]MH_I2C_Read... [21:11:18]Read from MH i2c: 01 07 00 [21:11:18]MH_I2C_Read... [21:11:18]Read from MH i2c: 01 07 00 C0 21 00 00 00 00 00 FF 0F F6 [21:11:18]RasterBufferAndPrint [21:11:18]line Счет N : (1)949173 [21:11:18]line ИНН: 02508201610067 [21:11:18]line Контрольно-Кассовый Чек [21:11:18]line ПРОДАЖА [21:11:18]line ТРК (МРК, ГНК) : 61 [21:11:18]line Товар: 2710124130 [21:11:18]line Аи-92-К-4 [21:11:18]line 14.750 * 67.80 [21:11:18]line = 1000.05 [21:11:18]line НДС 12% НСП 1% [21:11:18]line > о реализуемом товаре [21:11:18]line ОКРУГЛЕНИЕ: -0.05 [21:11:18]line ИТОГО: 1000.00 [21:11:18]line Внесено: 1000.00 [21:11:18]line СДАЧА: 0.00 [21:11:18]line НСП 1% : 8.85 [21:11:18]line НДС 12% : 106.20 [21:11:18]line Наличными: 1000.00 [21:11:18]line Безнал.: 0.00 [21:11:18]line Место: АЗС № 134 "Партнер Нефть" [21:11:18]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:11:18]line СНО: Общий режим [21:11:18]line Чек 245 27.07.2024 21:11 [21:11:18]line Смена: 432 ФФД: 1.0 [21:11:18]line ЗНМ: 0300000044 [21:11:18]line РНМ: 0000000000092660 [21:11:18]line Версия ККМ: 001 [21:11:18]line ФМ: 0000000000874939 [21:11:18]line ФД: 118302 [21:11:18]line ФПД: 114968392175242 [21:11:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T211118&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118302&fm=114968392175242&tin=02508201610067®Number=0000000000092660&sum=100000 [21:11:18]OFD Sender: Processing packet 118302 [packets to send 86, broken 85] [21:11:18]ProducePacketName [21:11:18]name=ofd_packets/00118302 [21:11:18]OFD Sender: To server: pG, [21:11:18]CommunicateWithHost lk.salyk.kg:30040 [21:11:18]ConnectInit lk.salyk.kg [21:11:18]written 0, free lines is 4095 [21:11:19]Connected sock=10 [21:11:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 DD 70 07 01 06 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 76 62 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1E CE 01 00 35 04 06 00 68 90 2A 2D 0E 8A 7F A0 E7 51 F8 1E 52 77 [21:11:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 7B D3 47 00 05 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1E CE 01 00 F4 03 04 00 08 10 A5 66 B6 04 01 00 00 FA C8 DA 0C 19 C7 D2 2E [21:11:19]CommunicateWithHost err = 0 [21:11:19]CheckOFDResponse [21:11:19]1017 (14) - 77093643461234 [21:11:19]1041 (16) - 0000000000874939 [21:11:19]1040 (4) - 118302 [21:11:19]1012 (4) - 27.07.2024 15:19 [21:11:19]1206 (1) - 0 [21:11:19]OFD Sender: Remove packet 118302 [21:11:19]ProducePacketName [21:11:19]name=ofd_packets/00118302 [21:11:19]NVStorageDeleteData [21:11:19]Write to MH i2c: 01 00 00 EA 21 0B [21:11:19]Write i2c OK [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: 01 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: 01 07 00 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: 01 07 00 EA 21 00 00 00 00 00 D1 0C EF [21:11:19]RasterBufferAndPrint [21:11:19]line [21:11:19]line [21:11:19]line [21:11:19]line [21:11:19]line [21:11:19]written 0, free lines is 3289 [21:11:19]MH_Cut [21:11:19]Write to MH i2c: D1 01 00 F1 21 01 E4 [21:11:19]Write i2c OK [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: D1 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: D1 01 00 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: D1 01 00 F1 21 00 E3 [21:11:19]Write to MH i2c: 01 00 00 F2 21 13 [21:11:19]Write i2c OK [21:11:19]MH_I2C_Read... [21:11:19]OFD Sender: No OFD packet to send [21:11:20]*** Cut start [21:11:20]*** Partial cut [21:11:20]*** CUTSNS_PIN = 1 [21:11:20]*** CUTSNS_PIN = 0 [21:11:20]*** Brake cut motor [21:11:20]Read from MH i2c: 01 [21:11:20]MH_I2C_Read... [21:11:20]*** Stop cut motor [21:11:20]*** Cut end [21:11:20]Read from MH i2c: 01 07 00 [21:11:20]MH_I2C_Read... [21:11:20]Read from MH i2c: 01 07 00 F2 21 00 00 00 00 00 FF 0F 28 [21:11:20]process_action close_receipt done [21:11:20]requested_data is exist [21:11:20]produce_requested_data [21:11:20]requested_item fm.sn is exist - process it [21:11:20]wFMCommunicate request_size=4 [21:11:20]MH_SAM_APDU [21:11:20]CAPDU: 80 11 00 00 [21:11:20]Write to MH i2c: E2 08 00 F3 21 80 11 00 00 00 00 00 00 8E [21:11:20]Write i2c OK [21:11:20]MH_I2C_Read... [21:11:20]Read from MH i2c: E2 [21:11:20]MH_I2C_Read... [21:11:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:20]Read from MH i2c: E2 17 00 [21:11:20]MH_I2C_Read... [21:11:20]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 34 39 33 39 90 00 E9 [21:11:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:11:20]wFMCommunicate OK [21:11:20]requested_item fd.num is exist - process it [21:11:20]SAM_PROTO_GetFieldsCounters [21:11:20]wFMCommunicate request_size=4 [21:11:20]MH_SAM_APDU [21:11:20]CAPDU: 80 13 00 00 [21:11:20]Write to MH i2c: E2 08 00 F4 21 80 13 00 00 00 00 00 00 91 [21:11:20]Write i2c OK [21:11:20]MH_I2C_Read... [21:11:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:11:20]Read from MH i2c: E2 [21:11:20]MH_I2C_Read... [21:11:20]Read from MH i2c: E2 62 00 [21:11:20]MH_I2C_Read... [21:11:20]Read from MH i2c: E2 62 00 F4 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1E CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [21:11:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1E CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:11:20]wFMCommunicate OK [21:11:20]SAM_PROTO_GetFieldsCounters done [21:11:20]requested_item shift.num is exist - process it [21:11:20]requested_item shift.opened is exist - process it [21:11:20]req_shift_opened [21:11:20]FM_GetShiftState [21:11:20]SAM_PROTO_GetShiftState [21:11:20]wFMCommunicate request_size=4 [21:11:20]MH_SAM_APDU [21:11:20]CAPDU: 80 13 01 00 [21:11:20]Write to MH i2c: E2 08 00 F5 21 80 13 01 00 00 00 00 00 93 [21:11:20]Write i2c OK [21:11:20]MH_I2C_Read... [21:11:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:20]Read from MH i2c: E2 [21:11:20]MH_I2C_Read... [21:11:20]Read from MH i2c: E2 0E 00 [21:11:20]MH_I2C_Read... [21:11:20]Read from MH i2c: E2 0E 00 F5 21 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 20 [21:11:20]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:11:20]wFMCommunicate OK [21:11:20]SAM_PROTO_GetShiftState done [21:11:20]FM_GetShiftState done [21:11:20]req_shift_opened done [21:11:20]requested_item shift.open_date is exist - process it [21:11:20]req_shift_open_date [21:11:20]req_shift_open_date done [21:11:20]produce_requested_data done [21:11:20]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118302,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [21:11:20]process_action_free close_receipt [21:11:20]json_value_free [21:11:20]json_value_free done [21:11:20]process_json_proto returns [21:11:20]Send response to host [21:11:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118302,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [21:11:20]free response buf [21:11:20]execute_script done [21:11:20]execute_script returns [21:11:21]free content buf [21:11:21]Sock 7.Close socket [21:11:21]Sock 7.Thread stoped [21:11:24]OFD Sender: No OFD packet to send [21:11:29]OFD Sender: No OFD packet to send [21:11:34]OFD Sender: No OFD packet to send [21:11:39]OFD Sender: No OFD packet to send [21:11:44]OFD Sender: No OFD packet to send [21:11:49]OFD Sender: No OFD packet to send [21:11:54]OFD Sender: No OFD packet to send [21:11:59]OFD Sender: No OFD packet to send [21:12:04]OFD Sender: No OFD packet to send [21:12:09]OFD Sender: No OFD packet to send [21:12:14]OFD Sender: No OFD packet to send [21:12:19]OFD Sender: No OFD packet to send [21:12:24]OFD Sender: No OFD packet to send [21:12:29]OFD Sender: No OFD packet to send [21:12:34]OFD Sender: No OFD packet to send [21:12:39]OFD Sender: No OFD packet to send [21:12:44]OFD Sender: No OFD packet to send [21:12:49]OFD Sender: No OFD packet to send [21:12:54]OFD Sender: No OFD packet to send [21:12:59]OFD Sender: No OFD packet to send [21:13:04]OFD Sender: No OFD packet to send [21:13:09]OFD Sender: No OFD packet to send [21:13:14]OFD Sender: No OFD packet to send [21:13:19]OFD Sender: No OFD packet to send [21:13:24]OFD Sender: No OFD packet to send [21:13:29]OFD Sender: No OFD packet to send [21:13:34]OFD Sender: No OFD packet to send [21:13:39]OFD Sender: No OFD packet to send [21:13:44]OFD Sender: No OFD packet to send [21:13:49]OFD Sender: No OFD packet to send [21:13:54]OFD Sender: No OFD packet to send [21:13:59]OFD Sender: No OFD packet to send [21:14:04]OFD Sender: No OFD packet to send [21:14:09]OFD Sender: No OFD packet to send [21:14:14]OFD Sender: No OFD packet to send [21:14:19]OFD Sender: No OFD packet to send [21:14:24]OFD Sender: No OFD packet to send [21:14:29]OFD Sender: No OFD packet to send [21:14:34]OFD Sender: No OFD packet to send [21:14:39]OFD Sender: No OFD packet to send [21:14:44]OFD Sender: No OFD packet to send [21:14:50]OFD Sender: No OFD packet to send [21:14:55]OFD Sender: No OFD packet to send [21:15:00]OFD Sender: No OFD packet to send [21:15:05]OFD Sender: No OFD packet to send [21:15:10]OFD Sender: No OFD packet to send [21:15:15]OFD Sender: No OFD packet to send [21:15:20]OFD Sender: No OFD packet to send [21:15:25]OFD Sender: No OFD packet to send [21:15:30]OFD Sender: No OFD packet to send [21:15:35]OFD Sender: No OFD packet to send [21:15:40]OFD Sender: No OFD packet to send [21:15:45]OFD Sender: No OFD packet to send [21:15:50]OFD Sender: No OFD packet to send [21:15:55]OFD Sender: No OFD packet to send [21:16:00]OFD Sender: No OFD packet to send [21:16:05]OFD Sender: No OFD packet to send [21:16:10]OFD Sender: No OFD packet to send [21:16:15]OFD Sender: No OFD packet to send [21:16:17]accept exits with 9 [21:16:17]New connection [21:16:17]New thread 3066953060 created [21:16:17]Thread 3067096420 joined [21:16:17]Waiting for new connection... [21:16:17] Sock 9.Parse request [21:16:17]Sock 9.Check first char [21:16:17]Sock 9.First char is OK [21:16:17]request: POST /json_proto HTTP/1.0 [21:16:17]Method: POST [21:16:17]URL: /json_proto [21:16:17]Method is POST - this is cgi request [21:16:17]url: /json_proto [21:16:17]query_string will be loaded in cgi processing [21:16:17]execute_cgi json_proto POST (null) [21:16:17]execute_cgi path=json_proto method=POST [21:16:17]POST find Content-Length [21:16:17]Host: 172.17.45.7:8080 [21:16:17]Content-Length: 677 [21:16:17]Content-Type: application/json [21:16:17] [21:16:17]POST finish read [21:16:17]Found Content-Length = 677 [21:16:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:16:17]execute_script... [21: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)949174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:16:17]POST & json_proto [21:16:17]process_json_proto [21:16:17]json parsed OK: [21:16:17]protocol is kg_v1.0 [21:16:17]action value=close_receipt [21:16:17]process_action close_receipt [21:16:17]cmd_close_receipt [21:16:17]MH_GetDate [21:16:17]Write to MH i2c: F0 00 00 F6 21 06 [21:16:17]Write i2c OK [21:16:17]MH_I2C_Read... [21:16:17]Read from MH i2c: F0 [21:16:17]MH_I2C_Read... [21:16:17]Read from MH i2c: F0 09 00 [21:16:17]MH_I2C_Read... [21:16:17]Read from MH i2c: F0 09 00 F6 21 00 A2 63 A5 66 90 0F 3E 66 62 [21:16:17]GetLastDocTimeStamp 1722114678 [21:16:17]current date 1722114978 [21:16:17]FM_GetShiftState [21:16:17]SAM_PROTO_GetShiftState [21:16:17]wFMCommunicate request_size=4 [21:16:17]MH_SAM_APDU [21:16:17]CAPDU: 80 13 01 00 [21:16:17]Write to MH i2c: E2 08 00 F7 21 80 13 01 00 00 00 00 00 95 [21:16:17]Write i2c OK [21:16:17]MH_I2C_Read... [21:16:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:17]Read from MH i2c: E2 [21:16:17]MH_I2C_Read... [21:16:17]Read from MH i2c: E2 0E 00 [21:16:17]MH_I2C_Read... [21:16:17]Read from MH i2c: E2 0E 00 F7 21 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 22 [21:16:17]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:16:17]wFMCommunicate OK [21:16:17]SAM_PROTO_GetShiftState done [21:16:17]FM_GetShiftState done [21:16:17]opened in 1722038845 [21:16:17]opened+sec_in_day 1722125245 [21:16:17]quantity*price = 50036 [21:16:17]sum+1 = 50037 [21:16:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 246 27.07.2024 21:16 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118303 ФПД: 189101807014164 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T211618&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118303&fm=189101807014164&tin=02508201610067®Number=0000000000092660&sum=50000 [21:16:18]StoreToDocumentArchive [21:16:18]shift 432 fd 118303 [21:16:18]save to /storage/0432/doc_00118303 [21:16:18]save last doc name /storage/0432/doc_00118303 to /storage/kkm_last_doc_name [21:16:18]save OK [21:16:18]Clear old archive folders... [21:16:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:16:18]tlvbuf is 01DBE5A0 [21:16:18]SAM_PROTO_ClearQueue [21:16:18]wFMCommunicate request_size=4 [21:16:18]MH_SAM_APDU [21:16:18]CAPDU: 80 09 00 00 [21:16:18]Write to MH i2c: E2 08 00 04 22 80 09 00 00 00 00 00 00 98 [21:16:18]Write i2c OK [21:16:18]MH_I2C_Read... [21:16:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:16:18]Read from MH i2c: E2 [21:16:18]MH_I2C_Read... [21:16:18]Read from MH i2c: E2 03 00 [21:16:18]MH_I2C_Read... [21:16:18]Read from MH i2c: E2 03 00 04 22 00 90 00 9A [21:16:18]RAPDU: 90 00 [21:16:18]wFMCommunicate OK [21:16:18]SAM_PROTO_ClearQueue done [21:16:18]KKMCreateOFDPacket [21:16:18]OFDProtocolAddRootSTLVToBuf [21:16:18]FM_MakeSignedData [21:16:18]FM_MakeSignedData [21:16:18]SAM_PROTO_SignData [21:16:18]wFMCommunicate request_size=4 [21:16:18]MH_SAM_APDU [21:16:18]CAPDU: 80 0D 01 02 [21:16:18]Write to MH i2c: E2 08 00 05 22 80 0D 01 02 00 00 00 00 A0 [21:16:18]Write i2c OK [21:16:18]MH_I2C_Read... [21:16:18]Read from MH i2c: E2 [21:16:18]MH_I2C_Read... [21:16:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:16:18]Read from MH i2c: E2 03 00 [21:16:18]MH_I2C_Read... [21:16:18]Read from MH i2c: E2 03 00 05 22 00 90 00 9B [21:16:18]RAPDU: 90 00 [21:16:18]wFMCommunicate OK [21:16:18]wFMCommunicate request_size=255 [21:16:18]MH_SAM_APDU [21:16:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F6 00 00 00 F4 03 04 00 A2 63 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1F CE 01 00 35 04 06 00 AB [21:16:18]Write to MH i2c: E2 02 01 06 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F6 00 00 00 F4 03 04 00 A2 63 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1F CE 01 00 35 04 06 00 AB 00 00 74 [21:16:18]Write i2c OK [21:16:18]MH_I2C_Read... [21:16:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:18]Read from MH i2c: E2 [21:16:18]MH_I2C_Read... [21:16:18]Read from MH i2c: E2 03 00 [21:16:18]MH_I2C_Read... [21:16:18]Read from MH i2c: E2 03 00 06 22 00 90 00 9C [21:16:18]RAPDU: 90 00 [21:16:18]wFMCommunicate OK [21:16:18]wFMCommunicate request_size=10 [21:16:18]MH_SAM_APDU [21:16:18]CAPDU: 80 0D 02 02 05 FC B2 08 91 14 [21:16:18]Write to MH i2c: E2 0D 00 07 22 80 0D 02 02 05 00 FC B2 08 91 14 00 00 08 [21:16:18]Write i2c OK [21:16:18]MH_I2C_Read... [21:16:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:19]Read from MH i2c: E2 [21:16:19]MH_I2C_Read... [21:16:19]Read from MH i2c: E2 03 00 [21:16:19]MH_I2C_Read... [21:16:19]Read from MH i2c: E2 03 00 07 22 00 90 00 9D [21:16:19]RAPDU: 90 00 [21:16:19]wFMCommunicate OK [21:16:19]wFMCommunicate request_size=4 [21:16:19]MH_SAM_APDU [21:16:19]CAPDU: 80 0D 03 02 [21:16:19]Write to MH i2c: E2 08 00 08 22 80 0D 03 02 00 00 00 00 A5 [21:16:19]Write i2c OK [21:16:19]MH_I2C_Read... [21:16:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:16:19]Read from MH i2c: E2 [21:16:19]MH_I2C_Read... [21:16:19]Read from MH i2c: E2 0B 00 [21:16:19]MH_I2C_Read... [21:16:19]Read from MH i2c: E2 0B 00 08 22 00 BB 3D 61 29 99 2E 63 FA 90 00 4C [21:16:19]RAPDU: BB 3D 61 29 99 2E 63 FA 90 00 [21:16:19]wFMCommunicate OK [21:16:19]SAM_PROTO_SignData done [21:16:19]FM_MakeSignedData done [21:16:19]CreateOFDProtocolMessage [21:16:19]wFMCommunicate request_size=4 [21:16:19]MH_SAM_APDU [21:16:19]CAPDU: 80 11 00 00 [21:16:19]Write to MH i2c: E2 08 00 09 22 80 11 00 00 00 00 00 00 A5 [21:16:19]Write i2c OK [21:16:19]MH_I2C_Read... [21:16:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:19]Read from MH i2c: E2 [21:16:19]MH_I2C_Read... [21:16:19]Read from MH i2c: E2 17 00 [21:16:19]MH_I2C_Read... [21:16:19]Read from MH i2c: E2 17 00 09 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 00 [21:16:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:16:19]wFMCommunicate OK [21:16:19]CreateOFDProtocolMessage done [21:16:19]OFDSenderStorePacket 118303 [21:16:19]StoreOFDPacket docnum=118303 [21:16:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B5 EB 07 01 0F 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F6 00 00 00 F4 03 04 00 A2 63 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1F CE 01 00 35 04 06 00 AB FC B2 08 91 14 BB 3D 61 29 99 2E 63 FA [21:16:19]CheckFolder [21:16:19]dirname=/storage/ofd_packets [21:16:19]CheckFolder done [21:16:19]ProducePacketName [21:16:19]name=ofd_packets/00118303 [21:16:19]NVStorageSaveData ofd_packets/00118303 [21:16:19]File name is /storage/ofd_packets/00118303 [21:16:19]Write 301 bytes [21:16:19]NVStorageSaveData done [21:16:19]OFDSenderStorePacket done [21:16:19]KKMCreateOFDPacket done [21:16:19]NVStorageSaveData kkm_last_timestamp [21:16:19]File name is /storage/kkm_last_timestamp [21:16:19]Write 4 bytes [21:16:19]NVStorageSaveData done [21:16:19]ExternCall_PrintAddStr [21:16:19]wPrintStart [21:16:19]Write to MH i2c: 01 00 00 0A 22 2C [21:16:19]Write i2c OK [21:16:19]MH_I2C_Read... [21:16:19]Read from MH i2c: 01 [21:16:19]MH_I2C_Read... [21:16:19]Read from MH i2c: 01 07 00 [21:16:19]MH_I2C_Read... [21:16:19]Read from MH i2c: 01 07 00 0A 22 00 00 00 00 00 FF 0F 41 [21:16:19]RasterBufferAndPrint [21:16:19]line Счет N : (1)949174 [21:16:19]line ИНН: 02508201610067 [21:16:19]line Контрольно-Кассовый Чек [21:16:19]line ПРОДАЖА [21:16:19]line ТРК (МРК, ГНК) : 31 [21:16:19]line Товар: 2710124130 [21:16:19]line Аи-92-К-4 [21:16:19]line 7.380 * 67.80 [21:16:19]line = 500.36 [21:16:19]line НДС 12% НСП 1% [21:16:19]line > о реализуемом товаре [21:16:19]line ОКРУГЛЕНИЕ: -0.36 [21:16:19]line ИТОГО: 500.00 [21:16:19]line Внесено: 500.00 [21:16:19]line СДАЧА: 0.00 [21:16:19]line НСП 1% : 4.43 [21:16:19]line НДС 12% : 53.14 [21:16:19]line Наличными: 500.00 [21:16:19]line Безнал.: 0.00 [21:16:19]line Место: АЗС № 134 "Партнер Нефть" [21:16:19]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:16:19]line СНО: Общий режим [21:16:19]line Чек 246 27.07.2024 21:16 [21:16:19]line Смена: 432 ФФД: 1.0 [21:16:19]line ЗНМ: 0300000044 [21:16:19]line РНМ: 0000000000092660 [21:16:19]line Версия ККМ: 001 [21:16:19]line ФМ: 0000000000874939 [21:16:19]line ФД: 118303 [21:16:19]line ФПД: 189101807014164 [21:16:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T211618&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118303&fm=189101807014164&tin=02508201610067®Number=0000000000092660&sum=50000 [21:16:19]OFD Sender: Processing packet 118303 [packets to send 86, broken 85] [21:16:19]ProducePacketName [21:16:19]name=ofd_packets/00118303 [21:16:19]OFD Sender: To server: pG, [21:16:19]CommunicateWithHost lk.salyk.kg:30040 [21:16:19]ConnectInit lk.salyk.kg [21:16:19]written 0, free lines is 4095 [21:16:19]Connected sock=10 [21: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 34 39 33 39 0F 01 00 00 B5 EB 07 01 0F 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F6 00 00 00 F4 03 04 00 A2 63 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1F CE 01 00 35 04 06 00 AB FC B2 08 91 14 BB 3D 61 29 99 2E 63 FA [21:16:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 20 4B 47 00 69 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1F CE 01 00 F4 03 04 00 34 11 A5 66 B6 04 01 00 00 62 33 EE EB 77 21 BF 2B [21:16:19]CommunicateWithHost err = 0 [21:16:19]CheckOFDResponse [21:16:19]1017 (14) - 77093643461234 [21:16:19]1041 (16) - 0000000000874939 [21:16:19]1040 (4) - 118303 [21:16:19]1012 (4) - 27.07.2024 15:24 [21:16:19]1206 (1) - 0 [21:16:19]OFD Sender: Remove packet 118303 [21:16:19]ProducePacketName [21:16:19]name=ofd_packets/00118303 [21:16:19]NVStorageDeleteData [21:16:19]Write to MH i2c: 01 00 00 34 22 56 [21:16:19]Write i2c OK [21:16:19]MH_I2C_Read... [21:16:19]Read from MH i2c: 01 [21:16:19]MH_I2C_Read... [21:16:19]Read from MH i2c: 01 07 00 [21:16:19]MH_I2C_Read... [21:16:19]Read from MH i2c: 01 07 00 34 22 00 00 00 00 00 CE 0C 37 [21:16:19]RasterBufferAndPrint [21:16:19]line [21:16:19]line [21:16:19]line [21:16:19]line [21:16:19]line [21:16:19]written 0, free lines is 3282 [21:16:19]MH_Cut [21:16:19]Write to MH i2c: D1 01 00 3B 22 01 2F [21:16:19]Write i2c OK [21:16:19]MH_I2C_Read... [21:16:19]Read from MH i2c: D1 [21:16:19]MH_I2C_Read... [21:16:19]Read from MH i2c: D1 01 00 [21:16:19]MH_I2C_Read... [21:16:19]Read from MH i2c: D1 01 00 3B 22 00 2E [21:16:19]Write to MH i2c: 01 00 00 3C 22 5E [21:16:19]Write i2c OK [21:16:19]MH_I2C_Read... [21:16:20]OFD Sender: No OFD packet to send [21:16:20]*** Cut start [21:16:20]*** Partial cut [21:16:20]*** CUTSNS_PIN = 1 [21:16:20]*** CUTSNS_PIN = 0 [21:16:20]*** Brake cut motor [21:16:21]Read from MH i2c: 01 [21:16:21]MH_I2C_Read... [21:16:21]*** Stop cut motor [21:16:21]*** Cut end [21:16:21]Read from MH i2c: 01 07 00 [21:16:21]MH_I2C_Read... [21:16:21]Read from MH i2c: 01 07 00 3C 22 00 00 00 00 00 FF 0F 73 [21:16:21]process_action close_receipt done [21:16:21]requested_data is exist [21:16:21]produce_requested_data [21:16:21]requested_item fm.sn is exist - process it [21:16:21]wFMCommunicate request_size=4 [21:16:21]MH_SAM_APDU [21:16:21]CAPDU: 80 11 00 00 [21:16:21]Write to MH i2c: E2 08 00 3D 22 80 11 00 00 00 00 00 00 D9 [21:16:21]Write i2c OK [21:16:21]MH_I2C_Read... [21:16:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:21]Read from MH i2c: E2 [21:16:21]MH_I2C_Read... [21:16:21]Read from MH i2c: E2 17 00 [21:16:21]MH_I2C_Read... [21:16:21]Read from MH i2c: E2 17 00 3D 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 34 [21:16:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:16:21]wFMCommunicate OK [21:16:21]requested_item fd.num is exist - process it [21:16:21]SAM_PROTO_GetFieldsCounters [21:16:21]wFMCommunicate request_size=4 [21:16:21]MH_SAM_APDU [21:16:21]CAPDU: 80 13 00 00 [21:16:21]Write to MH i2c: E2 08 00 3E 22 80 13 00 00 00 00 00 00 DC [21:16:21]Write i2c OK [21:16:21]MH_I2C_Read... [21:16:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:16:21]Read from MH i2c: E2 [21:16:21]MH_I2C_Read... [21:16:21]Read from MH i2c: E2 62 00 [21:16:21]MH_I2C_Read... [21:16:21]Read from MH i2c: E2 62 00 3E 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1F CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [21: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1F CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:16:21]wFMCommunicate OK [21:16:21]SAM_PROTO_GetFieldsCounters done [21:16:21]requested_item shift.num is exist - process it [21:16:21]requested_item shift.opened is exist - process it [21:16:21]req_shift_opened [21:16:21]FM_GetShiftState [21:16:21]SAM_PROTO_GetShiftState [21:16:21]wFMCommunicate request_size=4 [21:16:21]MH_SAM_APDU [21:16:21]CAPDU: 80 13 01 00 [21:16:21]Write to MH i2c: E2 08 00 3F 22 80 13 01 00 00 00 00 00 DE [21:16:21]Write i2c OK [21:16:21]MH_I2C_Read... [21:16:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:21]Read from MH i2c: E2 [21:16:21]MH_I2C_Read... [21:16:21]Read from MH i2c: E2 0E 00 [21:16:21]MH_I2C_Read... [21:16:21]Read from MH i2c: E2 0E 00 3F 22 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 6B [21:16:21]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:16:21]wFMCommunicate OK [21:16:21]SAM_PROTO_GetShiftState done [21:16:21]FM_GetShiftState done [21:16:21]req_shift_opened done [21:16:21]requested_item shift.open_date is exist - process it [21:16:21]req_shift_open_date [21:16:21]req_shift_open_date done [21:16:21]produce_requested_data done [21:16:21]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118303,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [21:16:21]process_action_free close_receipt [21:16:21]json_value_free [21:16:21]json_value_free done [21:16:21]process_json_proto returns [21:16:21]Send response to host [21:16:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118303,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [21:16:21]free response buf [21:16:21]execute_script done [21:16:21]execute_script returns [21:16:21]free content buf [21:16:21]Sock 9.Close socket [21:16:21]Sock 9.Thread stoped [21:16:25]OFD Sender: No OFD packet to send [21:16:30]OFD Sender: No OFD packet to send [21:16:35]OFD Sender: No OFD packet to send [21:16:40]OFD Sender: No OFD packet to send [21:16:45]OFD Sender: No OFD packet to send [21:16:50]OFD Sender: No OFD packet to send [21:16:55]OFD Sender: No OFD packet to send [21:17:00]OFD Sender: No OFD packet to send [21:17:05]OFD Sender: No OFD packet to send [21:17:10]OFD Sender: No OFD packet to send [21:17:15]OFD Sender: No OFD packet to send [21:17:20]OFD Sender: No OFD packet to send [21:17:25]OFD Sender: No OFD packet to send [21:17:30]OFD Sender: No OFD packet to send [21:17:35]OFD Sender: No OFD packet to send [21:17:40]OFD Sender: No OFD packet to send [21:17:45]OFD Sender: No OFD packet to send [21:17:50]OFD Sender: No OFD packet to send [21:17:55]OFD Sender: No OFD packet to send [21:18:00]OFD Sender: No OFD packet to send [21:18:05]OFD Sender: No OFD packet to send [21:18:10]OFD Sender: No OFD packet to send [21:18:15]OFD Sender: No OFD packet to send [21:18:20]OFD Sender: No OFD packet to send [21:18:25]OFD Sender: No OFD packet to send [21:18:30]OFD Sender: No OFD packet to send [21:18:35]OFD Sender: No OFD packet to send [21:18:40]OFD Sender: No OFD packet to send [21:18:45]OFD Sender: No OFD packet to send [21:18:50]OFD Sender: No OFD packet to send [21:18:55]OFD Sender: No OFD packet to send [21:18:57]accept exits with 7 [21:18:57]New connection [21:18:57]New thread 3067096420 created [21:18:57]Thread 3066953060 joined [21:18:57]Waiting for new connection... [21:18:57] Sock 7.Parse request [21:18:57]Sock 7.Check first char [21:18:57]Sock 7.First char is OK [21:18:57]request: POST /json_proto HTTP/1.0 [21:18:57]Method: POST [21:18:57]URL: /json_proto [21:18:57]Method is POST - this is cgi request [21:18:57]url: /json_proto [21:18:57]query_string will be loaded in cgi processing [21:18:57]execute_cgi json_proto POST (null) [21:18:57]execute_cgi path=json_proto method=POST [21:18:57]POST find Content-Length [21:18:57]Host: 172.17.45.7:8080 [21:18:57]Content-Length: 1164 [21:18:57]Content-Type: application/json [21:18:57] [21:18:57]POST finish read [21:18:57]Found Content-Length = 1164 [21:18:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)949175\u000A27.07.2024 21:17\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 15.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 1017.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30039459\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:18:57]execute_script... [21:18:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)949175\u000A27.07.2024 21:17\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 15.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 1017.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30039459\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:18:57]POST & json_proto [21:18:57]process_json_proto [21:18:57]json parsed OK: [21:18:57]protocol is kg_v1.0 [21:18:57]action value=print_text [21:18:57]process_action print_text [21:18:57]cmd_print_text [21:18:57]ExternCall_PrintAddStr [21:18:57]wPrintStart [21:18:57]Write to MH i2c: 01 00 00 40 22 62 [21:18:57]Write i2c OK [21:18:57]MH_I2C_Read... [21:18:57]Read from MH i2c: 01 [21:18:57]MH_I2C_Read... [21:18:57]Read from MH i2c: 01 07 00 [21:18:57]MH_I2C_Read... [21:18:57]Read from MH i2c: 01 07 00 40 22 00 00 00 00 00 FF 0F 77 [21:18:57]RasterBufferAndPrint [21:18:57]line *****ТОВАРНЫЙ ЧЕК***** [21:18:57]line АЗС-134 [21:18:57]line Партнер нефть [21:18:57]line 02508201610067 [21:18:57]line Кассир : Айдарали у Б. [21:18:57]line Счет N : (1)949175 [21:18:57]line 27.07.2024 21:17 [21:18:57]line ПРОДАЖА [21:18:57]line ТРК (МРК, ГНК): 41 [21:18:57]line Вид ГСМ : 2710124130 [21:18:57]line Аи-92-К-4 [21:18:57]line 15.000 x 67.80 [21:18:57]line ИТОГ: 1017.00 [21:18:57]line Тип оплаты: Талоны: ТК ГПНА Online [21:18:57]line 30039459 [21:18:57]line ______________________ [21:18:57]line (подпись) [21:18:57]written 0, free lines is 4095 [21:18:57]Write to MH i2c: 01 00 00 54 22 76 [21:18:57]Write i2c OK [21:18:57]MH_I2C_Read... [21:18:57]Read from MH i2c: 01 [21:18:57]MH_I2C_Read... [21:18:57]Read from MH i2c: 01 07 00 [21:18:57]MH_I2C_Read... [21:18:57]Read from MH i2c: 01 07 00 54 22 00 00 00 00 00 10 0E 9B [21:18:57]RasterBufferAndPrint [21:18:57]line [21:18:57]line [21:18:57]line [21:18:57]line [21:18:57]line [21:18:57]written 0, free lines is 3602 [21:18:57]MH_Cut [21:18:57]Write to MH i2c: D1 01 00 5B 22 01 4F [21:18:57]Write i2c OK [21:18:57]MH_I2C_Read... [21:18:57]Read from MH i2c: D1 [21:18:57]MH_I2C_Read... [21:18:57]Read from MH i2c: D1 01 00 [21:18:57]MH_I2C_Read... [21:18:57]Read from MH i2c: D1 01 00 5B 22 00 4E [21:18:57]Write to MH i2c: 01 00 00 5C 22 7E [21:18:57]Write i2c OK [21:18:57]MH_I2C_Read... [21:18:57]*** Cut start [21:18:57]*** Partial cut [21:18:57]*** CUTSNS_PIN = 1 [21:18:57]*** CUTSNS_PIN = 0 [21:18:58]*** Brake cut motor [21:18:58]Read from MH i2c: 01 [21:18:58]MH_I2C_Read... [21:18:58]*** Stop cut motor [21:18:58]*** Cut end [21:18:58]Read from MH i2c: 01 07 00 [21:18:58]MH_I2C_Read... [21:18:58]Read from MH i2c: 01 07 00 5C 22 00 00 00 00 00 FF 0F 93 [21:18:58]process_action print_text done [21:18:58]requested_data is exist [21:18:58]produce_requested_data [21:18:58]requested_item fm.sn is exist - process it [21:18:58]wFMCommunicate request_size=4 [21:18:58]MH_SAM_APDU [21:18:58]CAPDU: 80 11 00 00 [21:18:58]Write to MH i2c: E2 08 00 5D 22 80 11 00 00 00 00 00 00 F9 [21:18:58]Write i2c OK [21:18:58]MH_I2C_Read... [21:18:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:58]Read from MH i2c: E2 [21:18:58]MH_I2C_Read... [21:18:58]Read from MH i2c: E2 17 00 [21:18:58]MH_I2C_Read... [21:18:58]Read from MH i2c: E2 17 00 5D 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 54 [21:18:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:18:58]wFMCommunicate OK [21:18:58]requested_item fd.num is exist - process it [21:18:58]SAM_PROTO_GetFieldsCounters [21:18:58]wFMCommunicate request_size=4 [21:18:58]MH_SAM_APDU [21:18:58]CAPDU: 80 13 00 00 [21:18:58]Write to MH i2c: E2 08 00 5E 22 80 13 00 00 00 00 00 00 FC [21:18:58]Write i2c OK [21:18:58]MH_I2C_Read... [21:18:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:18:58]Read from MH i2c: E2 [21:18:58]MH_I2C_Read... [21:18:58]Read from MH i2c: E2 62 00 [21:18:58]MH_I2C_Read... [21:18:58]Read from MH i2c: E2 62 00 5E 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1F CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [21:18:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1F CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:18:58]wFMCommunicate OK [21:18:58]SAM_PROTO_GetFieldsCounters done [21:18:58]requested_item shift.num is exist - process it [21:18:58]requested_item shift.opened is exist - process it [21:18:58]req_shift_opened [21:18:58]FM_GetShiftState [21:18:58]SAM_PROTO_GetShiftState [21:18:58]wFMCommunicate request_size=4 [21:18:58]MH_SAM_APDU [21:18:58]CAPDU: 80 13 01 00 [21:18:58]Write to MH i2c: E2 08 00 5F 22 80 13 01 00 00 00 00 00 FE [21:18:58]Write i2c OK [21:18:58]MH_I2C_Read... [21:18:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:58]Read from MH i2c: E2 [21:18:58]MH_I2C_Read... [21:18:58]Read from MH i2c: E2 0E 00 [21:18:58]MH_I2C_Read... [21:18:58]Read from MH i2c: E2 0E 00 5F 22 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 8B [21:18:58]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:18:58]wFMCommunicate OK [21:18:58]SAM_PROTO_GetShiftState done [21:18:58]FM_GetShiftState done [21:18:58]req_shift_opened done [21:18:58]requested_item shift.open_date is exist - process it [21:18:58]req_shift_open_date [21:18:58]req_shift_open_date done [21:18:58]produce_requested_data done [21:18:58]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118303,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [21:18:58]process_action_free print_text [21:18:58]json_value_free [21:18:58]json_value_free done [21:18:58]process_json_proto returns [21:18:58]Send response to host [21:18:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118303,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [21:18:58]free response buf [21:18:58]execute_script done [21:18:58]execute_script returns [21:18:58]free content buf [21:18:58]Sock 7.Close socket [21:18:58]Sock 7.Thread stoped [21:19:00]OFD Sender: No OFD packet to send [21:19:05]OFD Sender: No OFD packet to send [21:19:10]OFD Sender: No OFD packet to send [21:19:15]OFD Sender: No OFD packet to send [21:19:20]OFD Sender: No OFD packet to send [21:19:25]OFD Sender: No OFD packet to send [21:19:30]OFD Sender: No OFD packet to send [21:19:35]OFD Sender: No OFD packet to send [21:19:40]OFD Sender: No OFD packet to send [21:19:45]OFD Sender: No OFD packet to send [21:19:50]OFD Sender: No OFD packet to send [21:19:55]OFD Sender: No OFD packet to send [21:20:00]OFD Sender: No OFD packet to send [21:20:05]OFD Sender: No OFD packet to send [21:20:10]OFD Sender: No OFD packet to send [21:20:15]OFD Sender: No OFD packet to send [21:20:20]OFD Sender: No OFD packet to send [21:20:25]OFD Sender: No OFD packet to send [21:20:30]OFD Sender: No OFD packet to send [21:20:35]OFD Sender: No OFD packet to send [21:20:40]OFD Sender: No OFD packet to send [21:20:45]OFD Sender: No OFD packet to send [21:20:50]OFD Sender: No OFD packet to send [21:20:55]OFD Sender: No OFD packet to send [21:21:00]OFD Sender: No OFD packet to send [21:21:05]OFD Sender: No OFD packet to send [21:21:10]OFD Sender: No OFD packet to send [21:21:15]OFD Sender: No OFD packet to send [21:21:20]OFD Sender: No OFD packet to send [21:21:25]OFD Sender: No OFD packet to send [21:21:30]OFD Sender: No OFD packet to send [21:21:35]OFD Sender: No OFD packet to send [21:21:40]OFD Sender: No OFD packet to send [21:21:45]OFD Sender: No OFD packet to send [21:21:50]OFD Sender: No OFD packet to send [21:21:55]OFD Sender: No OFD packet to send [21:22:00]OFD Sender: No OFD packet to send [21:22:05]OFD Sender: No OFD packet to send [21:22:10]OFD Sender: No OFD packet to send [21:22:15]OFD Sender: No OFD packet to send [21:22:20]OFD Sender: No OFD packet to send [21:22:25]OFD Sender: No OFD packet to send [21:22:30]OFD Sender: No OFD packet to send [21:22:35]OFD Sender: No OFD packet to send [21:22:40]OFD Sender: No OFD packet to send [21:22:45]OFD Sender: No OFD packet to send [21:22:50]OFD Sender: No OFD packet to send [21:22:55]OFD Sender: No OFD packet to send [21:23:00]OFD Sender: No OFD packet to send [21:23:05]OFD Sender: No OFD packet to send [21:23:10]OFD Sender: No OFD packet to send [21:23:15]OFD Sender: No OFD packet to send [21:23:20]OFD Sender: No OFD packet to send [21:23:25]OFD Sender: No OFD packet to send [21:23:30]OFD Sender: No OFD packet to send [21:23:35]OFD Sender: No OFD packet to send [21:23:40]OFD Sender: No OFD packet to send [21:23:45]OFD Sender: No OFD packet to send [21:23:50]OFD Sender: No OFD packet to send [21:23:55]OFD Sender: No OFD packet to send [21:24:00]OFD Sender: No OFD packet to send [21:24:05]OFD Sender: No OFD packet to send [21:24:10]OFD Sender: No OFD packet to send [21:24:15]OFD Sender: No OFD packet to send [21:24:20]OFD Sender: No OFD packet to send [21:24:25]OFD Sender: No OFD packet to send [21:24:30]OFD Sender: No OFD packet to send [21:24:35]OFD Sender: No OFD packet to send [21:24:40]OFD Sender: No OFD packet to send [21:24:45]OFD Sender: No OFD packet to send [21:24:50]OFD Sender: No OFD packet to send [21:24:55]OFD Sender: No OFD packet to send [21:25:00]OFD Sender: No OFD packet to send [21:25:01]accept exits with 10 [21:25:01]New connection [21:25:01]New thread 3066953060 created [21:25:01]Thread 3067096420 joined [21:25:01]Waiting for new connection... [21:25:01] Sock 10.Parse request [21:25:01]Sock 10.Check first char [21:25:01]Sock 10.First char is OK [21:25:01]request: POST /json_proto HTTP/1.0 [21:25:01]Method: POST [21:25:01]URL: /json_proto [21:25:01]Method is POST - this is cgi request [21:25:01]url: /json_proto [21:25:01]query_string will be loaded in cgi processing [21:25:01]execute_cgi json_proto POST (null) [21:25:01]execute_cgi path=json_proto method=POST [21:25:01]POST find Content-Length [21:25:01]Host: 172.17.45.7:8080 [21:25:01]Content-Length: 677 [21:25:01]Content-Type: application/json [21:25:01] [21:25:01]POST finish read [21:25:01]Found Content-Length = 677 [21:25:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 3.370, "sum" : 250.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:01]execute_script... [21:25: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)949176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 3.370, "sum" : 250.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:01]POST & json_proto [21:25:01]process_json_proto [21:25:01]json parsed OK: [21:25:01]protocol is kg_v1.0 [21:25:01]action value=close_receipt [21:25:01]process_action close_receipt [21:25:01]cmd_close_receipt [21:25:01]MH_GetDate [21:25:01]Write to MH i2c: F0 00 00 60 22 71 [21:25:01]Write i2c OK [21:25:01]MH_I2C_Read... [21:25:01]Read from MH i2c: F0 [21:25:01]MH_I2C_Read... [21:25:01]Read from MH i2c: F0 09 00 [21:25:01]MH_I2C_Read... [21:25:01]Read from MH i2c: F0 09 00 60 22 00 AF 65 A5 66 90 0F 3E 66 DC [21:25:01]GetLastDocTimeStamp 1722114978 [21:25:01]current date 1722115503 [21:25:01]FM_GetShiftState [21:25:01]SAM_PROTO_GetShiftState [21:25:01]wFMCommunicate request_size=4 [21:25:01]MH_SAM_APDU [21:25:01]CAPDU: 80 13 01 00 [21:25:01]Write to MH i2c: E2 08 00 61 22 80 13 01 00 00 00 00 00 00 [21:25:01]Write i2c OK [21:25:01]MH_I2C_Read... [21:25:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:01]Read from MH i2c: E2 [21:25:01]MH_I2C_Read... [21:25:01]Read from MH i2c: E2 0E 00 [21:25:01]MH_I2C_Read... [21:25:01]Read from MH i2c: E2 0E 00 61 22 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 8D [21:25:01]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:25:01]wFMCommunicate OK [21:25:01]SAM_PROTO_GetShiftState done [21:25:01]FM_GetShiftState done [21:25:01]opened in 1722038845 [21:25:01]opened+sec_in_day 1722125245 [21:25:01]quantity*price = 25005 [21:25:01]sum+1 = 25006 [21:25:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 247 27.07.2024 21:25 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118304 ФПД: 44034133920713 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T212503&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118304&fm=44034133920713&tin=02508201610067®Number=0000000000092660&sum=25000 [21:25:02]StoreToDocumentArchive [21:25:02]shift 432 fd 118304 [21:25:02]save to /storage/0432/doc_00118304 [21:25:02]save last doc name /storage/0432/doc_00118304 to /storage/kkm_last_doc_name [21:25:02]save OK [21:25:02]Clear old archive folders... [21:25:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:25:02]tlvbuf is B6EFD350 [21:25:02]SAM_PROTO_ClearQueue [21:25:02]wFMCommunicate request_size=4 [21:25:02]MH_SAM_APDU [21:25:02]CAPDU: 80 09 00 00 [21:25:02]Write to MH i2c: E2 08 00 6E 22 80 09 00 00 00 00 00 00 02 [21:25:02]Write i2c OK [21:25:02]MH_I2C_Read... [21:25:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:25:02]Read from MH i2c: E2 [21:25:02]MH_I2C_Read... [21:25:02]Read from MH i2c: E2 03 00 [21:25:02]MH_I2C_Read... [21:25:02]Read from MH i2c: E2 03 00 6E 22 00 90 00 04 [21:25:02]RAPDU: 90 00 [21:25:02]wFMCommunicate OK [21:25:02]SAM_PROTO_ClearQueue done [21:25:02]KKMCreateOFDPacket [21:25:02]OFDProtocolAddRootSTLVToBuf [21:25:02]FM_MakeSignedData [21:25:02]FM_MakeSignedData [21:25:02]SAM_PROTO_SignData [21:25:02]wFMCommunicate request_size=4 [21:25:02]MH_SAM_APDU [21:25:02]CAPDU: 80 0D 01 02 [21:25:02]Write to MH i2c: E2 08 00 6F 22 80 0D 01 02 00 00 00 00 0A [21:25:02]Write i2c OK [21:25:02]MH_I2C_Read... [21:25:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:25:02]Read from MH i2c: E2 [21:25:02]MH_I2C_Read... [21:25:02]Read from MH i2c: E2 03 00 [21:25:02]MH_I2C_Read... [21:25:02]Read from MH i2c: E2 03 00 6F 22 00 90 00 05 [21:25:02]RAPDU: 90 00 [21:25:02]wFMCommunicate OK [21:25:02]wFMCommunicate request_size=255 [21:25:02]MH_SAM_APDU [21:25: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 33 FF 03 08 00 03 2A 0D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 AF 65 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 20 CE 01 00 35 04 06 00 28 [21:25:02]Write to MH i2c: E2 02 01 70 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 33 FF 03 08 00 03 2A 0D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 AF 65 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 20 CE 01 00 35 04 06 00 28 00 00 AF [21:25:02]Write i2c OK [21:25:02]MH_I2C_Read... [21:25:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:03]Read from MH i2c: E2 [21:25:03]MH_I2C_Read... [21:25:03]Read from MH i2c: E2 03 00 [21:25:03]MH_I2C_Read... [21:25:03]Read from MH i2c: E2 03 00 70 22 00 90 00 06 [21:25:03]RAPDU: 90 00 [21:25:03]wFMCommunicate OK [21:25:03]wFMCommunicate request_size=10 [21:25:03]MH_SAM_APDU [21:25:03]CAPDU: 80 0D 02 02 05 0C 7E E9 0B C9 [21:25:03]Write to MH i2c: E2 0D 00 71 22 80 0D 02 02 05 00 0C 7E E9 0B C9 00 00 5E [21:25:03]Write i2c OK [21:25:03]MH_I2C_Read... [21:25:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:03]Read from MH i2c: E2 [21:25:03]MH_I2C_Read... [21:25:03]Read from MH i2c: E2 03 00 [21:25:03]MH_I2C_Read... [21:25:03]Read from MH i2c: E2 03 00 71 22 00 90 00 07 [21:25:03]RAPDU: 90 00 [21:25:03]wFMCommunicate OK [21:25:03]wFMCommunicate request_size=4 [21:25:03]MH_SAM_APDU [21:25:03]CAPDU: 80 0D 03 02 [21:25:03]Write to MH i2c: E2 08 00 72 22 80 0D 03 02 00 00 00 00 0F [21:25:03]Write i2c OK [21:25:03]MH_I2C_Read... [21:25:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:25:03]Read from MH i2c: E2 [21:25:03]MH_I2C_Read... [21:25:03]Read from MH i2c: E2 0B 00 [21:25:03]MH_I2C_Read... [21:25:03]Read from MH i2c: E2 0B 00 72 22 00 AD 42 CE D7 8D CD AF 6F 90 00 1C [21:25:03]RAPDU: AD 42 CE D7 8D CD AF 6F 90 00 [21:25:03]wFMCommunicate OK [21:25:03]SAM_PROTO_SignData done [21:25:03]FM_MakeSignedData done [21:25:03]CreateOFDProtocolMessage [21:25:03]wFMCommunicate request_size=4 [21:25:03]MH_SAM_APDU [21:25:03]CAPDU: 80 11 00 00 [21:25:03]Write to MH i2c: E2 08 00 73 22 80 11 00 00 00 00 00 00 0F [21:25:03]Write i2c OK [21:25:03]MH_I2C_Read... [21:25:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:03]Read from MH i2c: E2 [21:25:03]MH_I2C_Read... [21:25:03]Read from MH i2c: E2 17 00 [21:25:03]MH_I2C_Read... [21:25:03]Read from MH i2c: E2 17 00 73 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6A [21:25:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:25:03]wFMCommunicate OK [21:25:03]CreateOFDProtocolMessage done [21:25:03]OFDSenderStorePacket 118304 [21:25:03]StoreOFDPacket docnum=118304 [21:25:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 0A 9B 07 01 52 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 2A 0D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 AF 65 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 20 CE 01 00 35 04 06 00 28 0C 7E E9 0B C9 AD 42 CE D7 8D CD AF 6F [21:25:03]CheckFolder [21:25:03]dirname=/storage/ofd_packets [21:25:03]CheckFolder done [21:25:03]ProducePacketName [21:25:03]name=ofd_packets/00118304 [21:25:03]NVStorageSaveData ofd_packets/00118304 [21:25:03]File name is /storage/ofd_packets/00118304 [21:25:03]Write 301 bytes [21:25:03]NVStorageSaveData done [21:25:03]OFDSenderStorePacket done [21:25:03]KKMCreateOFDPacket done [21:25:03]NVStorageSaveData kkm_last_timestamp [21:25:03]File name is /storage/kkm_last_timestamp [21:25:03]Write 4 bytes [21:25:03]NVStorageSaveData done [21:25:03]ExternCall_PrintAddStr [21:25:03]wPrintStart [21:25:03]Write to MH i2c: 01 00 00 74 22 96 [21:25:03]Write i2c OK [21:25:03]MH_I2C_Read... [21:25:03]Read from MH i2c: 01 [21:25:03]MH_I2C_Read... [21:25:03]Read from MH i2c: 01 07 00 [21:25:03]MH_I2C_Read... [21:25:03]Read from MH i2c: 01 07 00 74 22 00 00 00 00 00 FF 0F AB [21:25:03]RasterBufferAndPrint [21:25:03]line Счет N : (1)949176 [21:25:03]line ИНН: 02508201610067 [21:25:03]line Контрольно-Кассовый Чек [21:25:03]line ПРОДАЖА [21:25:03]line ТРК (МРК, ГНК) : 53 [21:25:03]line Товар: 2710124500 [21:25:03]line Аи-95-К-3 [21:25:03]line 3.370 * 74.20 [21:25:03]line = 250.05 [21:25:03]line НДС 12% НСП 1% [21:25:03]line > о реализуемом товаре [21:25:03]line ОКРУГЛЕНИЕ: -0.05 [21:25:03]line ИТОГО: 250.00 [21:25:03]line Внесено: 250.00 [21:25:03]line СДАЧА: 0.00 [21:25:03]line НСП 1% : 2.21 [21:25:03]line НДС 12% : 26.55 [21:25:03]line Наличными: 250.00 [21:25:03]line Безнал.: 0.00 [21:25:03]line Место: АЗС № 134 "Партнер Нефть" [21:25:03]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:25:03]line СНО: Общий режим [21:25:03]line Чек 247 27.07.2024 21:25 [21:25:03]line Смена: 432 ФФД: 1.0 [21:25:03]line ЗНМ: 0300000044 [21:25:03]line РНМ: 0000000000092660 [21:25:03]line Версия ККМ: 001 [21:25:03]line ФМ: 0000000000874939 [21:25:03]line ФД: 118304 [21:25:03]line ФПД: 44034133920713 [21:25:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T212503&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118304&fm=44034133920713&tin=02508201610067®Number=0000000000092660&sum=25000 [21:25:03]written 0, free lines is 4095 [21:25:03]OFD Sender: Processing packet 118304 [packets to send 86, broken 85] [21:25:03]ProducePacketName [21:25:03]name=ofd_packets/00118304 [21:25:03]OFD Sender: To server: pG, [21:25:03]CommunicateWithHost lk.salyk.kg:30040 [21:25:03]ConnectInit lk.salyk.kg [21:25:03]Connected sock=7 [21:25:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 0A 9B 07 01 52 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 2A 0D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 AF 65 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 20 CE 01 00 35 04 06 00 28 0C 7E E9 0B C9 AD 42 CE D7 8D CD AF 6F [21:25:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 AA 6D 47 00 39 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 20 CE 01 00 F4 03 04 00 40 13 A5 66 B6 04 01 00 00 89 11 9A A6 3D 02 96 A5 [21:25:03]CommunicateWithHost err = 0 [21:25:03]CheckOFDResponse [21:25:03]1017 (14) - 77093643461234 [21:25:03]1041 (16) - 0000000000874939 [21:25:03]1040 (4) - 118304 [21:25:03]1012 (4) - 27.07.2024 15:33 [21:25:03]1206 (1) - 0 [21:25:03]OFD Sender: Remove packet 118304 [21:25:03]ProducePacketName [21:25:03]name=ofd_packets/00118304 [21:25:03]NVStorageDeleteData [21:25:03]Write to MH i2c: 01 00 00 9E 22 C0 [21:25:03]Write i2c OK [21:25:03]MH_I2C_Read... [21:25:03]Read from MH i2c: 01 [21:25:03]MH_I2C_Read... [21:25:03]Read from MH i2c: 01 07 00 [21:25:03]MH_I2C_Read... [21:25:03]Read from MH i2c: 01 07 00 9E 22 00 00 00 00 00 DC 0C AF [21:25:03]RasterBufferAndPrint [21:25:03]line [21:25:03]line [21:25:03]line [21:25:03]line [21:25:03]line [21:25:03]written 0, free lines is 3298 [21:25:03]MH_Cut [21:25:03]Write to MH i2c: D1 01 00 A5 22 01 99 [21:25:03]Write i2c OK [21:25:03]MH_I2C_Read... [21:25:03]Read from MH i2c: D1 [21:25:03]MH_I2C_Read... [21:25:03]Read from MH i2c: D1 01 00 [21:25:03]MH_I2C_Read... [21:25:03]Read from MH i2c: D1 01 00 A5 22 00 98 [21:25:03]Write to MH i2c: 01 00 00 A6 22 C8 [21:25:03]Write i2c OK [21:25:03]MH_I2C_Read... [21:25:04]OFD Sender: No OFD packet to send [21:25:04]*** Cut start [21:25:04]*** Partial cut [21:25:04]*** CUTSNS_PIN = 1 [21:25:04]*** CUTSNS_PIN = 0 [21:25:04]*** Brake cut motor [21:25:05]Read from MH i2c: 01 [21:25:05]MH_I2C_Read... [21:25:05]*** Stop cut motor [21:25:05]*** Cut end [21:25:05]Read from MH i2c: 01 07 00 [21:25:05]MH_I2C_Read... [21:25:05]Read from MH i2c: 01 07 00 A6 22 00 00 00 00 00 FF 0F DD [21:25:05]process_action close_receipt done [21:25:05]requested_data is exist [21:25:05]produce_requested_data [21:25:05]requested_item fm.sn is exist - process it [21:25:05]wFMCommunicate request_size=4 [21:25:05]MH_SAM_APDU [21:25:05]CAPDU: 80 11 00 00 [21:25:05]Write to MH i2c: E2 08 00 A7 22 80 11 00 00 00 00 00 00 43 [21:25:05]Write i2c OK [21:25:05]MH_I2C_Read... [21:25:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:05]Read from MH i2c: E2 [21:25:05]MH_I2C_Read... [21:25:05]Read from MH i2c: E2 17 00 [21:25:05]MH_I2C_Read... [21:25:05]Read from MH i2c: E2 17 00 A7 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9E [21:25:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:25:05]wFMCommunicate OK [21:25:05]requested_item fd.num is exist - process it [21:25:05]SAM_PROTO_GetFieldsCounters [21:25:05]wFMCommunicate request_size=4 [21:25:05]MH_SAM_APDU [21:25:05]CAPDU: 80 13 00 00 [21:25:05]Write to MH i2c: E2 08 00 A8 22 80 13 00 00 00 00 00 00 46 [21:25:05]Write i2c OK [21:25:05]MH_I2C_Read... [21:25:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:25:05]Read from MH i2c: E2 [21:25:05]MH_I2C_Read... [21:25:05]Read from MH i2c: E2 62 00 [21:25:05]MH_I2C_Read... [21:25:05]Read from MH i2c: E2 62 00 A8 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 20 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [21:25:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 20 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:25:05]wFMCommunicate OK [21:25:05]SAM_PROTO_GetFieldsCounters done [21:25:05]requested_item shift.num is exist - process it [21:25:05]requested_item shift.opened is exist - process it [21:25:05]req_shift_opened [21:25:05]FM_GetShiftState [21:25:05]SAM_PROTO_GetShiftState [21:25:05]wFMCommunicate request_size=4 [21:25:05]MH_SAM_APDU [21:25:05]CAPDU: 80 13 01 00 [21:25:05]Write to MH i2c: E2 08 00 A9 22 80 13 01 00 00 00 00 00 48 [21:25:05]Write i2c OK [21:25:05]MH_I2C_Read... [21:25:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:05]Read from MH i2c: E2 [21:25:05]MH_I2C_Read... [21:25:05]Read from MH i2c: E2 0E 00 [21:25:05]MH_I2C_Read... [21:25:05]Read from MH i2c: E2 0E 00 A9 22 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 D5 [21:25:05]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:25:05]wFMCommunicate OK [21:25:05]SAM_PROTO_GetShiftState done [21:25:05]FM_GetShiftState done [21:25:05]req_shift_opened done [21:25:05]requested_item shift.open_date is exist - process it [21:25:05]req_shift_open_date [21:25:05]req_shift_open_date done [21:25:05]produce_requested_data done [21:25:05]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118304,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [21:25:05]process_action_free close_receipt [21:25:05]json_value_free [21:25:05]json_value_free done [21:25:05]process_json_proto returns [21:25:05]Send response to host [21:25:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118304,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [21:25:05]free response buf [21:25:05]execute_script done [21:25:05]execute_script returns [21:25:05]free content buf [21:25:05]Sock 10.Close socket [21:25:05]Sock 10.Thread stoped [21:25:09]OFD Sender: No OFD packet to send [21:25:14]OFD Sender: No OFD packet to send [21:25:19]OFD Sender: No OFD packet to send [21:25:24]OFD Sender: No OFD packet to send [21:25:29]OFD Sender: No OFD packet to send [21:25:34]OFD Sender: No OFD packet to send [21:25:39]OFD Sender: No OFD packet to send [21:25:44]OFD Sender: No OFD packet to send [21:25:49]OFD Sender: No OFD packet to send [21:25:54]OFD Sender: No OFD packet to send [21:25:59]OFD Sender: No OFD packet to send [21:26:04]OFD Sender: No OFD packet to send [21:26:09]OFD Sender: No OFD packet to send [21:26:14]OFD Sender: No OFD packet to send [21:26:19]OFD Sender: No OFD packet to send [21:26:24]OFD Sender: No OFD packet to send [21:26:29]OFD Sender: No OFD packet to send [21:26:34]OFD Sender: No OFD packet to send [21:26:39]OFD Sender: No OFD packet to send [21:26:44]OFD Sender: No OFD packet to send [21:26:49]OFD Sender: No OFD packet to send [21:26:54]OFD Sender: No OFD packet to send [21:26:59]OFD Sender: No OFD packet to send [21:27:04]OFD Sender: No OFD packet to send [21:27:08]accept exits with 9 [21:27:08]New connection [21:27:08]New thread 3067096420 created [21:27:08]Thread 3066953060 joined [21:27:08]Waiting for new connection... [21:27:08] Sock 9.Parse request [21:27:08]Sock 9.Check first char [21:27:08]Sock 9.First char is OK [21:27:08]request: POST /json_proto HTTP/1.0 [21:27:08]Method: POST [21:27:08]URL: /json_proto [21:27:08]Method is POST - this is cgi request [21:27:08]url: /json_proto [21:27:08]query_string will be loaded in cgi processing [21:27:08]execute_cgi json_proto POST (null) [21:27:08]execute_cgi path=json_proto method=POST [21:27:08]POST find Content-Length [21:27:08]Host: 172.17.45.7:8080 [21:27:08]Content-Length: 679 [21:27:08]Content-Type: application/json [21:27:08] [21:27:08]POST finish read [21:27:08]Found Content-Length = 679 [21:27:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:08]execute_script... [21:27: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)949177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:08]POST & json_proto [21:27:08]process_json_proto [21:27:08]json parsed OK: [21:27:08]protocol is kg_v1.0 [21:27:08]action value=close_receipt [21:27:08]process_action close_receipt [21:27:08]cmd_close_receipt [21:27:08]MH_GetDate [21:27:08]Write to MH i2c: F0 00 00 AA 22 BB [21:27:08]Write i2c OK [21:27:08]MH_I2C_Read... [21:27:08]Read from MH i2c: F0 [21:27:08]MH_I2C_Read... [21:27:08]Read from MH i2c: F0 09 00 [21:27:08]MH_I2C_Read... [21:27:08]Read from MH i2c: F0 09 00 AA 22 00 2D 66 A5 66 90 0F 3E 66 A5 [21:27:08]GetLastDocTimeStamp 1722115503 [21:27:08]current date 1722115629 [21:27:08]FM_GetShiftState [21:27:08]SAM_PROTO_GetShiftState [21:27:08]wFMCommunicate request_size=4 [21:27:08]MH_SAM_APDU [21:27:08]CAPDU: 80 13 01 00 [21:27:08]Write to MH i2c: E2 08 00 AB 22 80 13 01 00 00 00 00 00 4A [21:27:08]Write i2c OK [21:27:08]MH_I2C_Read... [21:27:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:08]Read from MH i2c: E2 [21:27:08]MH_I2C_Read... [21:27:08]Read from MH i2c: E2 0E 00 [21:27:08]MH_I2C_Read... [21:27:08]Read from MH i2c: E2 0E 00 AB 22 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 D7 [21:27:08]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:27:08]wFMCommunicate OK [21:27:08]SAM_PROTO_GetShiftState done [21:27:08]FM_GetShiftState done [21:27:08]opened in 1722038845 [21:27:08]opened+sec_in_day 1722125245 [21:27:08]quantity*price = 100050 [21:27:08]sum+1 = 100052 [21:27:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 248 27.07.2024 21:27 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118305 ФПД: 255551425573202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T212709&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118305&fm=255551425573202&tin=02508201610067®Number=0000000000092660&sum=100000 [21:27:09]StoreToDocumentArchive [21:27:09]shift 432 fd 118305 [21:27:09]save to /storage/0432/doc_00118305 [21:27:09]save last doc name /storage/0432/doc_00118305 to /storage/kkm_last_doc_name [21:27:09]save OK [21:27:09]Clear old archive folders... [21:27:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:27:09]tlvbuf is 01E52290 [21:27:09]SAM_PROTO_ClearQueue [21:27:09]wFMCommunicate request_size=4 [21:27:09]MH_SAM_APDU [21:27:09]CAPDU: 80 09 00 00 [21:27:09]Write to MH i2c: E2 08 00 B8 22 80 09 00 00 00 00 00 00 4C [21:27:09]Write i2c OK [21:27:09]MH_I2C_Read... [21:27:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:27:09]Read from MH i2c: E2 [21:27:09]MH_I2C_Read... [21:27:09]Read from MH i2c: E2 03 00 [21:27:09]MH_I2C_Read... [21:27:09]Read from MH i2c: E2 03 00 B8 22 00 90 00 4E [21:27:09]RAPDU: 90 00 [21:27:09]wFMCommunicate OK [21:27:09]SAM_PROTO_ClearQueue done [21:27:09]KKMCreateOFDPacket [21:27:09]OFDProtocolAddRootSTLVToBuf [21:27:09]FM_MakeSignedData [21:27:09]FM_MakeSignedData [21:27:09]SAM_PROTO_SignData [21:27:09]wFMCommunicate request_size=4 [21:27:09]MH_SAM_APDU [21:27:09]CAPDU: 80 0D 01 02 [21:27:09]Write to MH i2c: E2 08 00 B9 22 80 0D 01 02 00 00 00 00 54 [21:27:09]Write i2c OK [21:27:09]MH_I2C_Read... [21:27:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:27:09]Read from MH i2c: E2 [21:27:09]MH_I2C_Read... [21:27:09]Read from MH i2c: E2 03 00 [21:27:09]MH_I2C_Read... [21:27:09]Read from MH i2c: E2 03 00 B9 22 00 90 00 4F [21:27:09]RAPDU: 90 00 [21:27:09]wFMCommunicate OK [21:27:09]wFMCommunicate request_size=255 [21:27:09]MH_SAM_APDU [21:27: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 2D 66 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 21 CE 01 00 35 04 06 00 E8 6C 33 F1 [21:27:09]Write to MH i2c: E2 02 01 BA 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 2D 66 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 21 CE 01 00 35 04 06 00 E8 6C 33 F1 00 00 93 [21:27:09]Write i2c OK [21:27:09]MH_I2C_Read... [21:27:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:09]Read from MH i2c: E2 [21:27:09]MH_I2C_Read... [21:27:09]Read from MH i2c: E2 03 00 [21:27:09]MH_I2C_Read... [21:27:09]Read from MH i2c: E2 03 00 BA 22 00 90 00 50 [21:27:09]RAPDU: 90 00 [21:27:09]wFMCommunicate OK [21:27:09]wFMCommunicate request_size=7 [21:27:09]MH_SAM_APDU [21:27:09]CAPDU: 80 0D 02 02 02 71 52 [21:27:09]Write to MH i2c: E2 0A 00 BB 22 80 0D 02 02 02 00 71 52 00 00 1E [21:27:09]Write i2c OK [21:27:09]MH_I2C_Read... [21:27:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:09]Read from MH i2c: E2 [21:27:09]MH_I2C_Read... [21:27:09]Read from MH i2c: E2 03 00 [21:27:09]MH_I2C_Read... [21:27:09]Read from MH i2c: E2 03 00 BB 22 00 90 00 51 [21:27:09]RAPDU: 90 00 [21:27:09]wFMCommunicate OK [21:27:09]wFMCommunicate request_size=4 [21:27:09]MH_SAM_APDU [21:27:09]CAPDU: 80 0D 03 02 [21:27:09]Write to MH i2c: E2 08 00 BC 22 80 0D 03 02 00 00 00 00 59 [21:27:09]Write i2c OK [21:27:09]MH_I2C_Read... [21:27:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:27:10]Read from MH i2c: E2 [21:27:10]MH_I2C_Read... [21:27:10]Read from MH i2c: E2 0B 00 [21:27:10]MH_I2C_Read... [21:27:10]Read from MH i2c: E2 0B 00 BC 22 00 4D F9 39 9F F7 57 5D 6A 90 00 8D [21:27:10]RAPDU: 4D F9 39 9F F7 57 5D 6A 90 00 [21:27:10]wFMCommunicate OK [21:27:10]SAM_PROTO_SignData done [21:27:10]FM_MakeSignedData done [21:27:10]CreateOFDProtocolMessage [21:27:10]wFMCommunicate request_size=4 [21:27:10]MH_SAM_APDU [21:27:10]CAPDU: 80 11 00 00 [21:27:10]Write to MH i2c: E2 08 00 BD 22 80 11 00 00 00 00 00 00 59 [21:27:10]Write i2c OK [21:27:10]MH_I2C_Read... [21:27:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:10]Read from MH i2c: E2 [21:27:10]MH_I2C_Read... [21:27:10]Read from MH i2c: E2 17 00 [21:27:10]MH_I2C_Read... [21:27:10]Read from MH i2c: E2 17 00 BD 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B4 [21:27:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:27:10]wFMCommunicate OK [21:27:10]CreateOFDProtocolMessage done [21:27:10]OFDSenderStorePacket 118305 [21:27:10]StoreOFDPacket docnum=118305 [21:27:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 EE B0 04 01 81 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 2D 66 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 21 CE 01 00 35 04 06 00 E8 6C 33 F1 71 52 4D F9 39 9F F7 57 5D 6A [21:27:10]CheckFolder [21:27:10]dirname=/storage/ofd_packets [21:27:10]CheckFolder done [21:27:10]ProducePacketName [21:27:10]name=ofd_packets/00118305 [21:27:10]NVStorageSaveData ofd_packets/00118305 [21:27:10]File name is /storage/ofd_packets/00118305 [21:27:10]Write 298 bytes [21:27:10]NVStorageSaveData done [21:27:10]OFDSenderStorePacket done [21:27:10]KKMCreateOFDPacket done [21:27:10]NVStorageSaveData kkm_last_timestamp [21:27:10]File name is /storage/kkm_last_timestamp [21:27:10]Write 4 bytes [21:27:10]NVStorageSaveData done [21:27:10]ExternCall_PrintAddStr [21:27:10]wPrintStart [21:27:10]Write to MH i2c: 01 00 00 BE 22 E0 [21:27:10]Write i2c OK [21:27:10]MH_I2C_Read... [21:27:10]Read from MH i2c: 01 [21:27:10]MH_I2C_Read... [21:27:10]Read from MH i2c: 01 07 00 [21:27:10]MH_I2C_Read... [21:27:10]Read from MH i2c: 01 07 00 BE 22 00 00 00 00 00 FF 0F F5 [21:27:10]RasterBufferAndPrint [21:27:10]line Счет N : (1)949177 [21:27:10]line ИНН: 02508201610067 [21:27:10]line Контрольно-Кассовый Чек [21:27:10]line ПРОДАЖА [21:27:10]line ТРК (МРК, ГНК) : 44 [21:27:10]line Товар: 2710194800 [21:27:10]line ДТ-К-5 [21:27:10]line 13.130 * 76.20 [21:27:10]line = 1000.51 [21:27:10]line НДС 12% НСП 1% [21:27:10]line > о реализуемом товаре [21:27:10]line ОКРУГЛЕНИЕ: -0.51 [21:27:10]line ИТОГО: 1000.00 [21:27:10]line Внесено: 1000.00 [21:27:10]line СДАЧА: 0.00 [21:27:10]line НСП 1% : 8.85 [21:27:10]line НДС 12% : 106.25 [21:27:10]line Наличными: 1000.00 [21:27:10]line Безнал.: 0.00 [21:27:10]line Место: АЗС № 134 "Партнер Нефть" [21:27:10]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:27:10]line СНО: Общий режим [21:27:10]line Чек 248 27.07.2024 21:27 [21:27:10]line Смена: 432 ФФД: 1.0 [21:27:10]line ЗНМ: 0300000044 [21:27:10]line РНМ: 0000000000092660 [21:27:10]line Версия ККМ: 001 [21:27:10]line ФМ: 0000000000874939 [21:27:10]line ФД: 118305 [21:27:10]line ФПД: 255551425573202 [21:27:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T212709&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118305&fm=255551425573202&tin=02508201610067®Number=0000000000092660&sum=100000 [21:27:10]written 0, free lines is 4095 [21:27:10]OFD Sender: Processing packet 118305 [packets to send 86, broken 85] [21:27:10]ProducePacketName [21:27:10]name=ofd_packets/00118305 [21:27:10]OFD Sender: To server: pG, [21:27:10]CommunicateWithHost lk.salyk.kg:30040 [21:27:10]ConnectInit lk.salyk.kg [21:27:10]Connected sock=10 [21:27:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 EE B0 04 01 81 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 2D 66 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 21 CE 01 00 35 04 06 00 E8 6C 33 F1 71 52 4D F9 39 9F F7 57 5D 6A [21:27:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 97 C9 47 00 F4 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 21 CE 01 00 F4 03 04 00 BF 13 A5 66 B6 04 01 00 00 31 12 7D FA 2D 4A 0F 7D [21:27:10]CommunicateWithHost err = 0 [21:27:10]CheckOFDResponse [21:27:10]1017 (14) - 77093643461234 [21:27:10]1041 (16) - 0000000000874939 [21:27:10]1040 (4) - 118305 [21:27:10]1012 (4) - 27.07.2024 15:35 [21:27:10]1206 (1) - 0 [21:27:10]OFD Sender: Remove packet 118305 [21:27:10]ProducePacketName [21:27:10]name=ofd_packets/00118305 [21:27:10]NVStorageDeleteData [21:27:10]Write to MH i2c: 01 00 00 E8 22 0A [21:27:10]Write i2c OK [21:27:10]MH_I2C_Read... [21:27:10]Read from MH i2c: 01 [21:27:10]MH_I2C_Read... [21:27:10]Read from MH i2c: 01 07 00 [21:27:10]MH_I2C_Read... [21:27:10]Read from MH i2c: 01 07 00 E8 22 00 00 00 00 00 E1 0C FE [21:27:10]RasterBufferAndPrint [21:27:10]line [21:27:10]line [21:27:10]line [21:27:10]line [21:27:10]line [21:27:10]written 0, free lines is 3303 [21:27:10]MH_Cut [21:27:10]Write to MH i2c: D1 01 00 EF 22 01 E3 [21:27:10]Write i2c OK [21:27:10]MH_I2C_Read... [21:27:10]Read from MH i2c: D1 [21:27:10]MH_I2C_Read... [21:27:10]Read from MH i2c: D1 01 00 [21:27:10]MH_I2C_Read... [21:27:10]Read from MH i2c: D1 01 00 EF 22 00 E2 [21:27:10]Write to MH i2c: 01 00 00 F0 22 12 [21:27:10]Write i2c OK [21:27:10]MH_I2C_Read... [21:27:10]OFD Sender: No OFD packet to send [21:27:11]*** Cut start [21:27:11]*** Partial cut [21:27:11]*** CUTSNS_PIN = 1 [21:27:11]*** CUTSNS_PIN = 0 [21:27:11]*** Brake cut motor [21:27:11]Read from MH i2c: 01 [21:27:11]MH_I2C_Read... [21:27:11]*** Stop cut motor [21:27:11]*** Cut end [21:27:11]Read from MH i2c: 01 07 00 [21:27:11]MH_I2C_Read... [21:27:11]Read from MH i2c: 01 07 00 F0 22 00 00 00 00 00 FF 0F 27 [21:27:11]process_action close_receipt done [21:27:11]requested_data is exist [21:27:11]produce_requested_data [21:27:11]requested_item fm.sn is exist - process it [21:27:11]wFMCommunicate request_size=4 [21:27:11]MH_SAM_APDU [21:27:11]CAPDU: 80 11 00 00 [21:27:11]Write to MH i2c: E2 08 00 F1 22 80 11 00 00 00 00 00 00 8D [21:27:11]Write i2c OK [21:27:11]MH_I2C_Read... [21:27:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:11]Read from MH i2c: E2 [21:27:11]MH_I2C_Read... [21:27:11]Read from MH i2c: E2 17 00 [21:27:11]MH_I2C_Read... [21:27:11]Read from MH i2c: E2 17 00 F1 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E8 [21:27:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:27:11]wFMCommunicate OK [21:27:11]requested_item fd.num is exist - process it [21:27:11]SAM_PROTO_GetFieldsCounters [21:27:11]wFMCommunicate request_size=4 [21:27:11]MH_SAM_APDU [21:27:11]CAPDU: 80 13 00 00 [21:27:11]Write to MH i2c: E2 08 00 F2 22 80 13 00 00 00 00 00 00 90 [21:27:11]Write i2c OK [21:27:11]MH_I2C_Read... [21:27:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:27:12]Read from MH i2c: E2 [21:27:12]MH_I2C_Read... [21:27:12]Read from MH i2c: E2 62 00 [21:27:12]MH_I2C_Read... [21:27:12]Read from MH i2c: E2 62 00 F2 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 21 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [21:27:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 21 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:27:12]wFMCommunicate OK [21:27:12]SAM_PROTO_GetFieldsCounters done [21:27:12]requested_item shift.num is exist - process it [21:27:12]requested_item shift.opened is exist - process it [21:27:12]req_shift_opened [21:27:12]FM_GetShiftState [21:27:12]SAM_PROTO_GetShiftState [21:27:12]wFMCommunicate request_size=4 [21:27:12]MH_SAM_APDU [21:27:12]CAPDU: 80 13 01 00 [21:27:12]Write to MH i2c: E2 08 00 F3 22 80 13 01 00 00 00 00 00 92 [21:27:12]Write i2c OK [21:27:12]MH_I2C_Read... [21:27:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:12]Read from MH i2c: E2 [21:27:12]MH_I2C_Read... [21:27:12]Read from MH i2c: E2 0E 00 [21:27:12]MH_I2C_Read... [21:27:12]Read from MH i2c: E2 0E 00 F3 22 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 1F [21:27:12]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:27:12]wFMCommunicate OK [21:27:12]SAM_PROTO_GetShiftState done [21:27:12]FM_GetShiftState done [21:27:12]req_shift_opened done [21:27:12]requested_item shift.open_date is exist - process it [21:27:12]req_shift_open_date [21:27:12]req_shift_open_date done [21:27:12]produce_requested_data done [21:27:12]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118305,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [21:27:12]process_action_free close_receipt [21:27:12]json_value_free [21:27:12]json_value_free done [21:27:12]process_json_proto returns [21:27:12]Send response to host [21:27:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118305,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [21:27:12]free response buf [21:27:12]execute_script done [21:27:12]execute_script returns [21:27:12]free content buf [21:27:12]Sock 9.Close socket [21:27:12]Sock 9.Thread stoped [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:26]OFD Sender: No OFD packet to send [21:28:31]OFD Sender: No OFD packet to send [21:28:36]OFD Sender: No OFD packet to send [21:28:41]OFD Sender: No OFD packet to send [21:28:46]OFD Sender: No OFD packet to send [21:28:51]OFD Sender: No OFD packet to send [21:28:56]OFD Sender: No OFD packet to send [21:29:01]OFD Sender: No OFD packet to send [21:29:06]OFD Sender: No OFD packet to send [21:29:11]OFD Sender: No OFD packet to send [21:29:16]OFD Sender: No OFD packet to send [21:29:21]OFD Sender: No OFD packet to send [21:29:26]OFD Sender: No OFD packet to send [21:29:31]OFD Sender: No OFD packet to send [21:29:36]OFD Sender: No OFD packet to send [21:29:41]OFD Sender: No OFD packet to send [21:29:46]OFD Sender: No OFD packet to send [21:29:51]OFD Sender: No OFD packet to send [21:29:56]OFD Sender: No OFD packet to send [21:30:01]OFD Sender: No OFD packet to send [21:30:06]OFD Sender: No OFD packet to send [21:30:11]OFD Sender: No OFD packet to send [21:30:16]OFD Sender: No OFD packet to send [21:30:21]OFD Sender: No OFD packet to send [21:30:26]OFD Sender: No OFD packet to send [21:30:31]OFD Sender: No OFD packet to send [21:30:36]OFD Sender: No OFD packet to send [21:30:41]OFD Sender: No OFD packet to send [21:30:46]OFD Sender: No OFD packet to send [21:30:51]OFD Sender: No OFD packet to send [21:30:56]OFD Sender: No OFD packet to send [21:31:01]OFD Sender: No OFD packet to send [21:31:06]OFD Sender: No OFD packet to send [21:31:11]OFD Sender: No OFD packet to send [21:31:16]OFD Sender: No OFD packet to send [21:31:21]OFD Sender: No OFD packet to send [21:31:26]OFD Sender: No OFD packet to send [21:31:31]OFD Sender: No OFD packet to send [21:31:36]OFD Sender: No OFD packet to send [21:31:38]accept exits with 7 [21:31:38]New connection [21:31:38]New thread 3066953060 created [21:31:38]Thread 3067096420 joined [21:31:38]Waiting for new connection... [21:31:38] Sock 7.Parse request [21:31:38]Sock 7.Check first char [21:31:38]Sock 7.First char is OK [21:31:38]request: POST /json_proto HTTP/1.0 [21:31:38]Method: POST [21:31:38]URL: /json_proto [21:31:38]Method is POST - this is cgi request [21:31:38]url: /json_proto [21:31:38]query_string will be loaded in cgi processing [21:31:38]execute_cgi json_proto POST (null) [21:31:38]execute_cgi path=json_proto method=POST [21:31:38]POST find Content-Length [21:31:38]Host: 172.17.45.7:8080 [21:31:38]Content-Length: 835 [21:31:38]Content-Type: application/json [21:31:38] [21:31:38]POST finish read [21:31:38]Found Content-Length = 835 [21:31:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.53, "quantity" : 13.240, "sum" : 1000.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:38]execute_script... [21:31: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)949178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.53, "quantity" : 13.240, "sum" : 1000.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:38]POST & json_proto [21:31:38]process_json_proto [21:31:38]json parsed OK: [21:31:38]protocol is kg_v1.0 [21:31:38]action value=close_receipt [21:31:38]process_action close_receipt [21:31:38]cmd_close_receipt [21:31:38]MH_GetDate [21:31:38]Write to MH i2c: F0 00 00 F4 22 05 [21:31:38]Write i2c OK [21:31:38]MH_I2C_Read... [21:31:38]Read from MH i2c: F0 [21:31:38]MH_I2C_Read... [21:31:38]Read from MH i2c: F0 09 00 [21:31:38]MH_I2C_Read... [21:31:38]Read from MH i2c: F0 09 00 F4 22 00 3B 67 A5 66 90 0F 3E 66 FE [21:31:38]GetLastDocTimeStamp 1722115629 [21:31:38]current date 1722115899 [21:31:38]FM_GetShiftState [21:31:38]SAM_PROTO_GetShiftState [21:31:38]wFMCommunicate request_size=4 [21:31:38]MH_SAM_APDU [21:31:38]CAPDU: 80 13 01 00 [21:31:38]Write to MH i2c: E2 08 00 F5 22 80 13 01 00 00 00 00 00 94 [21:31:38]Write i2c OK [21:31:38]MH_I2C_Read... [21:31:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:38]Read from MH i2c: E2 [21:31:38]MH_I2C_Read... [21:31:38]Read from MH i2c: E2 0E 00 [21:31:38]MH_I2C_Read... [21:31:38]Read from MH i2c: E2 0E 00 F5 22 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 21 [21:31:38]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:31:38]wFMCommunicate OK [21:31:38]SAM_PROTO_GetShiftState done [21:31:38]FM_GetShiftState done [21:31:38]opened in 1722038845 [21:31:38]opened+sec_in_day 1722125245 [21:31:38]quantity*price = 100001 [21:31:38]sum+1 = 100003 [21:31:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 249 27.07.2024 21:31 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874939 ФД: 118306 ФПД: 12864525293143 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T213139&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118306&fm=12864525293143&tin=02508201610067®Number=0000000000092660&sum=100000 [21:31:39]StoreToDocumentArchive [21:31:39]shift 432 fd 118306 [21:31:39]save to /storage/0432/doc_00118306 [21:31:39]save last doc name /storage/0432/doc_00118306 to /storage/kkm_last_doc_name [21:31:39]save OK [21:31:39]Clear old archive folders... [21:31:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:31:39]tlvbuf is B6ECB6E0 [21:31:39]SAM_PROTO_ClearQueue [21:31:39]wFMCommunicate request_size=4 [21:31:39]MH_SAM_APDU [21:31:39]CAPDU: 80 09 00 00 [21:31:39]Write to MH i2c: E2 08 00 02 23 80 09 00 00 00 00 00 00 97 [21:31:39]Write i2c OK [21:31:39]MH_I2C_Read... [21:31:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:31:39]Read from MH i2c: E2 [21:31:39]MH_I2C_Read... [21:31:39]Read from MH i2c: E2 03 00 [21:31:39]MH_I2C_Read... [21:31:39]Read from MH i2c: E2 03 00 02 23 00 90 00 99 [21:31:39]RAPDU: 90 00 [21:31:39]wFMCommunicate OK [21:31:39]SAM_PROTO_ClearQueue done [21:31:39]KKMCreateOFDPacket [21:31:39]OFDProtocolAddRootSTLVToBuf [21:31:39]FM_MakeSignedData [21:31:39]FM_MakeSignedData [21:31:39]SAM_PROTO_SignData [21:31:39]wFMCommunicate request_size=4 [21:31:39]MH_SAM_APDU [21:31:39]CAPDU: 80 0D 01 02 [21:31:39]Write to MH i2c: E2 08 00 03 23 80 0D 01 02 00 00 00 00 9F [21:31:39]Write i2c OK [21:31:39]MH_I2C_Read... [21:31:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:31:39]Read from MH i2c: E2 [21:31:39]MH_I2C_Read... [21:31:39]Read from MH i2c: E2 03 00 [21:31:39]MH_I2C_Read... [21:31:39]Read from MH i2c: E2 03 00 03 23 00 90 00 9A [21:31:39]RAPDU: 90 00 [21:31:39]wFMCommunicate OK [21:31:39]wFMCommunicate request_size=255 [21:31:39]MH_SAM_APDU [21:31:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B8 33 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 A2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 3B 67 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 22 CE 01 00 35 04 06 00 0B B3 41 75 [21:31:39]Write to MH i2c: E2 02 01 04 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B8 33 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 A2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 3B 67 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 22 CE 01 00 35 04 06 00 0B B3 41 75 00 00 E0 [21:31:39]Write i2c OK [21:31:39]MH_I2C_Read... [21:31:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:39]Read from MH i2c: E2 [21:31:39]MH_I2C_Read... [21:31:39]Read from MH i2c: E2 03 00 [21:31:39]MH_I2C_Read... [21:31:39]Read from MH i2c: E2 03 00 04 23 00 90 00 9B [21:31:39]RAPDU: 90 00 [21:31:39]wFMCommunicate OK [21:31:39]wFMCommunicate request_size=7 [21:31:39]MH_SAM_APDU [21:31:39]CAPDU: 80 0D 02 02 02 D6 57 [21:31:39]Write to MH i2c: E2 0A 00 05 23 80 0D 02 02 02 00 D6 57 00 00 D3 [21:31:39]Write i2c OK [21:31:39]MH_I2C_Read... [21:31:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:39]Read from MH i2c: E2 [21:31:39]MH_I2C_Read... [21:31:39]Read from MH i2c: E2 03 00 [21:31:39]MH_I2C_Read... [21:31:39]Read from MH i2c: E2 03 00 05 23 00 90 00 9C [21:31:39]RAPDU: 90 00 [21:31:39]wFMCommunicate OK [21:31:39]wFMCommunicate request_size=4 [21:31:39]MH_SAM_APDU [21:31:39]CAPDU: 80 0D 03 02 [21:31:39]Write to MH i2c: E2 08 00 06 23 80 0D 03 02 00 00 00 00 A4 [21:31:39]Write i2c OK [21:31:39]MH_I2C_Read... [21:31:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:31:39]Read from MH i2c: E2 [21:31:39]MH_I2C_Read... [21:31:39]Read from MH i2c: E2 0B 00 [21:31:39]MH_I2C_Read... [21:31:39]Read from MH i2c: E2 0B 00 06 23 00 9F 94 9E F1 6F FA 55 2D 90 00 52 [21:31:39]RAPDU: 9F 94 9E F1 6F FA 55 2D 90 00 [21:31:39]wFMCommunicate OK [21:31:39]SAM_PROTO_SignData done [21:31:39]FM_MakeSignedData done [21:31:39]CreateOFDProtocolMessage [21:31:39]wFMCommunicate request_size=4 [21:31:39]MH_SAM_APDU [21:31:39]CAPDU: 80 11 00 00 [21:31:39]Write to MH i2c: E2 08 00 07 23 80 11 00 00 00 00 00 00 A4 [21:31:39]Write i2c OK [21:31:39]MH_I2C_Read... [21:31:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:39]Read from MH i2c: E2 [21:31:39]MH_I2C_Read... [21:31:39]Read from MH i2c: E2 17 00 [21:31:39]MH_I2C_Read... [21:31:39]Read from MH i2c: E2 17 00 07 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FF [21:31:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:31:39]wFMCommunicate OK [21:31:39]CreateOFDProtocolMessage done [21:31:39]OFDSenderStorePacket 118306 [21:31:39]StoreOFDPacket docnum=118306 [21:31:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 18 80 04 01 9C 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B8 33 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 A2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 3B 67 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 22 CE 01 00 35 04 06 00 0B B3 41 75 D6 57 9F 94 9E F1 6F FA 55 2D [21:31:39]CheckFolder [21:31:39]dirname=/storage/ofd_packets [21:31:39]CheckFolder done [21:31:39]ProducePacketName [21:31:39]name=ofd_packets/00118306 [21:31:39]NVStorageSaveData ofd_packets/00118306 [21:31:39]File name is /storage/ofd_packets/00118306 [21:31:39]Write 298 bytes [21:31:39]NVStorageSaveData done [21:31:39]OFDSenderStorePacket done [21:31:39]KKMCreateOFDPacket done [21:31:39]NVStorageSaveData kkm_last_timestamp [21:31:39]File name is /storage/kkm_last_timestamp [21:31:39]Write 4 bytes [21:31:39]NVStorageSaveData done [21:31:39]ExternCall_PrintAddStr [21:31:39]wPrintStart [21:31:39]Write to MH i2c: 01 00 00 08 23 2B [21:31:39]Write i2c OK [21:31:39]MH_I2C_Read... [21:31:39]Read from MH i2c: 01 [21:31:39]MH_I2C_Read... [21:31:39]Read from MH i2c: 01 07 00 [21:31:39]MH_I2C_Read... [21:31:39]Read from MH i2c: 01 07 00 08 23 00 00 00 00 00 FF 0F 40 [21:31:39]RasterBufferAndPrint [21:31:39]line Счет N : (1)949178 [21:31:39]line ИНН: 02508201610067 [21:31:39]line Контрольно-Кассовый Чек [21:31:39]line ПРОДАЖА [21:31:39]line ТРК (МРК, ГНК) : 44 [21:31:39]line Товар: 2710194800 [21:31:39]line ДТ-К-5 [21:31:39]line 13.240 * 75.53 [21:31:39]line = 1000.02 [21:31:39]line НДС 12% НСП 1% [21:31:39]line > о реализуемом товаре [21:31:39]line ОКРУГЛЕНИЕ: -0.02 [21:31:39]line ИТОГО: 1000.00 [21:31:39]line НСП 1% : 8.85 [21:31:39]line НДС 12% : 106.20 [21:31:39]line Наличными: 0.00 [21:31:39]line Безнал.: 1000.00 [21:31:39]line Место: АЗС № 134 "Партнер Нефть" [21:31:39]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:31:39]line СНО: Общий режим [21:31:39]line Чек 249 27.07.2024 21:31 [21:31:39]line Смена: 432 ФФД: 1.0 [21:31:39]line ЗНМ: 0300000044 [21:31:39]line РНМ: 0000000000092660 [21:31:39]line Версия ККМ: 001 [21:31:39]line Платежная система: Бакай Банк [21:31:39]line ФМ: 0000000000874939 [21:31:39]line ФД: 118306 [21:31:39]line ФПД: 12864525293143 [21:31:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T213139&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118306&fm=12864525293143&tin=02508201610067®Number=0000000000092660&sum=100000 [21:31:40]OFD Sender: Processing packet 118306 [packets to send 86, broken 85] [21:31:40]ProducePacketName [21:31:40]name=ofd_packets/00118306 [21:31:40]OFD Sender: To server: pG, [21:31:40]CommunicateWithHost lk.salyk.kg:30040 [21:31:40]ConnectInit lk.salyk.kg [21:31:40]written 0, free lines is 4095 [21:31:40]Connected sock=10 [21:31:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 18 80 04 01 9C 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B8 33 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 A2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 3B 67 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 22 CE 01 00 35 04 06 00 0B B3 41 75 D6 57 9F 94 9E F1 6F FA 55 2D [21:31:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D5 D2 47 00 C6 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 22 CE 01 00 F4 03 04 00 CD 14 A5 66 B6 04 01 00 00 3C 78 CA ED 05 07 3F D2 [21:31:40]CommunicateWithHost err = 0 [21:31:40]CheckOFDResponse [21:31:40]1017 (14) - 77093643461234 [21:31:40]1041 (16) - 0000000000874939 [21:31:40]1040 (4) - 118306 [21:31:40]1012 (4) - 27.07.2024 15:39 [21:31:40]1206 (1) - 0 [21:31:40]OFD Sender: Remove packet 118306 [21:31:40]ProducePacketName [21:31:40]name=ofd_packets/00118306 [21:31:40]NVStorageDeleteData [21:31:40]Write to MH i2c: 01 00 00 32 23 55 [21:31:40]Write i2c OK [21:31:40]MH_I2C_Read... [21:31:40]Read from MH i2c: 01 [21:31:40]MH_I2C_Read... [21:31:40]Read from MH i2c: 01 07 00 [21:31:40]MH_I2C_Read... [21:31:40]Read from MH i2c: 01 07 00 32 23 00 00 00 00 00 D4 0C 3C [21:31:40]RasterBufferAndPrint [21:31:40]line [21:31:40]line [21:31:40]line [21:31:40]line [21:31:40]line [21:31:40]written 0, free lines is 3292 [21:31:40]MH_Cut [21:31:40]Write to MH i2c: D1 01 00 39 23 01 2E [21:31:40]Write i2c OK [21:31:40]MH_I2C_Read... [21:31:40]Read from MH i2c: D1 [21:31:40]MH_I2C_Read... [21:31:40]Read from MH i2c: D1 01 00 [21:31:40]MH_I2C_Read... [21:31:40]Read from MH i2c: D1 01 00 39 23 00 2D [21:31:40]Write to MH i2c: 01 00 00 3A 23 5D [21:31:40]Write i2c OK [21:31:40]MH_I2C_Read... [21:31:41]OFD Sender: No OFD packet to send [21:31:41]*** Cut start [21:31:41]*** Partial cut [21:31:41]*** CUTSNS_PIN = 1 [21:31:41]*** CUTSNS_PIN = 0 [21:31:41]*** Brake cut motor [21:31:42]Read from MH i2c: 01 [21:31:42]MH_I2C_Read... [21:31:42]*** Stop cut motor [21:31:42]*** Cut end [21:31:42]Read from MH i2c: 01 07 00 [21:31:42]MH_I2C_Read... [21:31:42]Read from MH i2c: 01 07 00 3A 23 00 00 00 00 00 FF 0F 72 [21:31:42]process_action close_receipt done [21:31:42]requested_data is exist [21:31:42]produce_requested_data [21:31:42]requested_item fm.sn is exist - process it [21:31:42]wFMCommunicate request_size=4 [21:31:42]MH_SAM_APDU [21:31:42]CAPDU: 80 11 00 00 [21:31:42]Write to MH i2c: E2 08 00 3B 23 80 11 00 00 00 00 00 00 D8 [21:31:42]Write i2c OK [21:31:42]MH_I2C_Read... [21:31:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:42]Read from MH i2c: E2 [21:31:42]MH_I2C_Read... [21:31:42]Read from MH i2c: E2 17 00 [21:31:42]MH_I2C_Read... [21:31:42]Read from MH i2c: E2 17 00 3B 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 33 [21:31:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:31:42]wFMCommunicate OK [21:31:42]requested_item fd.num is exist - process it [21:31:42]SAM_PROTO_GetFieldsCounters [21:31:42]wFMCommunicate request_size=4 [21:31:42]MH_SAM_APDU [21:31:42]CAPDU: 80 13 00 00 [21:31:42]Write to MH i2c: E2 08 00 3C 23 80 13 00 00 00 00 00 00 DB [21:31:42]Write i2c OK [21:31:42]MH_I2C_Read... [21:31:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:31:42]Read from MH i2c: E2 [21:31:42]MH_I2C_Read... [21:31:42]Read from MH i2c: E2 62 00 [21:31:42]MH_I2C_Read... [21:31:42]Read from MH i2c: E2 62 00 3C 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 22 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [21:31:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 22 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:31:42]wFMCommunicate OK [21:31:42]SAM_PROTO_GetFieldsCounters done [21:31:42]requested_item shift.num is exist - process it [21:31:42]requested_item shift.opened is exist - process it [21:31:42]req_shift_opened [21:31:42]FM_GetShiftState [21:31:42]SAM_PROTO_GetShiftState [21:31:42]wFMCommunicate request_size=4 [21:31:42]MH_SAM_APDU [21:31:42]CAPDU: 80 13 01 00 [21:31:42]Write to MH i2c: E2 08 00 3D 23 80 13 01 00 00 00 00 00 DD [21:31:42]Write i2c OK [21:31:42]MH_I2C_Read... [21:31:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:42]Read from MH i2c: E2 [21:31:42]MH_I2C_Read... [21:31:42]Read from MH i2c: E2 0E 00 [21:31:42]MH_I2C_Read... [21:31:42]Read from MH i2c: E2 0E 00 3D 23 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 6A [21:31:42]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:31:42]wFMCommunicate OK [21:31:42]SAM_PROTO_GetShiftState done [21:31:42]FM_GetShiftState done [21:31:42]req_shift_opened done [21:31:42]requested_item shift.open_date is exist - process it [21:31:42]req_shift_open_date [21:31:42]req_shift_open_date done [21:31:42]produce_requested_data done [21:31:42]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118306,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [21:31:42]process_action_free close_receipt [21:31:42]json_value_free [21:31:42]json_value_free done [21:31:42]process_json_proto returns [21:31:42]Send response to host [21:31:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118306,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [21:31:42]free response buf [21:31:42]execute_script done [21:31:42]execute_script returns [21:31:42]free content buf [21:31:42]Sock 7.Close socket [21:31:42]Sock 7.Thread stoped [21:31:46]OFD Sender: No OFD packet to send [21:31:51]OFD Sender: No OFD packet to send [21:31:56]OFD Sender: No OFD packet to send [21:32:01]OFD Sender: No OFD packet to send [21:32:06]OFD Sender: No OFD packet to send [21:32:11]OFD Sender: No OFD packet to send [21:32:16]OFD Sender: No OFD packet to send [21:32:21]OFD Sender: No OFD packet to send [21:32:26]OFD Sender: No OFD packet to send [21:32:31]OFD Sender: No OFD packet to send [21:32:36]OFD Sender: No OFD packet to send [21:32:41]OFD Sender: No OFD packet to send [21:32:46]OFD Sender: No OFD packet to send [21:32:51]OFD Sender: No OFD packet to send [21:32:56]OFD Sender: No OFD packet to send [21:33:01]OFD Sender: No OFD packet to send [21:33:06]OFD Sender: No OFD packet to send [21:33:11]OFD Sender: No OFD packet to send [21:33:16]OFD Sender: No OFD packet to send [21:33:21]OFD Sender: No OFD packet to send [21:33:26]OFD Sender: No OFD packet to send [21:33:31]OFD Sender: No OFD packet to send [21:33:36]OFD Sender: No OFD packet to send [21:33:41]OFD Sender: No OFD packet to send [21:33:46]OFD Sender: No OFD packet to send [21:33:51]OFD Sender: No OFD packet to send [21:33:51]accept exits with 9 [21:33:51]New connection [21:33:51]New thread 3067096420 created [21:33:51]Thread 3066953060 joined [21:33:51]Waiting for new connection... [21:33:51] Sock 9.Parse request [21:33:51]Sock 9.Check first char [21:33:51]Sock 9.First char is OK [21:33:51]request: POST /json_proto HTTP/1.0 [21:33:51]Method: POST [21:33:51]URL: /json_proto [21:33:51]Method is POST - this is cgi request [21:33:51]url: /json_proto [21:33:51]query_string will be loaded in cgi processing [21:33:51]execute_cgi json_proto POST (null) [21:33:51]execute_cgi path=json_proto method=POST [21:33:51]POST find Content-Length [21:33:51]Host: 172.17.45.7:8080 [21:33:51]Content-Length: 677 [21:33:51]Content-Type: application/json [21:33:51] [21:33:51]POST finish read [21:33:51]Found Content-Length = 677 [21:33:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:33:51]execute_script... [21: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)949179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:33:51]POST & json_proto [21:33:51]process_json_proto [21:33:51]json parsed OK: [21:33:51]protocol is kg_v1.0 [21:33:51]action value=close_receipt [21:33:51]process_action close_receipt [21:33:51]cmd_close_receipt [21:33:51]MH_GetDate [21:33:51]Write to MH i2c: F0 00 00 3E 23 50 [21:33:51]Write i2c OK [21:33:51]MH_I2C_Read... [21:33:51]Read from MH i2c: F0 [21:33:51]MH_I2C_Read... [21:33:51]Read from MH i2c: F0 09 00 [21:33:51]MH_I2C_Read... [21:33:51]Read from MH i2c: F0 09 00 3E 23 00 C1 67 A5 66 90 0F 3E 66 CF [21:33:51]GetLastDocTimeStamp 1722115899 [21:33:51]current date 1722116033 [21:33:51]FM_GetShiftState [21:33:51]SAM_PROTO_GetShiftState [21:33:51]wFMCommunicate request_size=4 [21:33:51]MH_SAM_APDU [21:33:51]CAPDU: 80 13 01 00 [21:33:51]Write to MH i2c: E2 08 00 3F 23 80 13 01 00 00 00 00 00 DF [21:33:51]Write i2c OK [21:33:51]MH_I2C_Read... [21:33:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:33:51]Read from MH i2c: E2 [21:33:51]MH_I2C_Read... [21:33:51]Read from MH i2c: E2 0E 00 [21:33:51]MH_I2C_Read... [21:33:51]Read from MH i2c: E2 0E 00 3F 23 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 6C [21:33:51]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:33:51]wFMCommunicate OK [21:33:51]SAM_PROTO_GetShiftState done [21:33:51]FM_GetShiftState done [21:33:51]opened in 1722038845 [21:33:51]opened+sec_in_day 1722125245 [21:33:51]quantity*price = 30035 [21:33:51]sum+1 = 30036 [21:33:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 250 27.07.2024 21:33 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118307 ФПД: 195051797269990 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T213353&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118307&fm=195051797269990&tin=02508201610067®Number=0000000000092660&sum=30000 [21:33:52]StoreToDocumentArchive [21:33:52]shift 432 fd 118307 [21:33:52]save to /storage/0432/doc_00118307 [21:33:52]save last doc name /storage/0432/doc_00118307 to /storage/kkm_last_doc_name [21:33:52]save OK [21:33:52]Clear old archive folders... [21:33:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:33:52]tlvbuf is 01E21AB0 [21:33:52]SAM_PROTO_ClearQueue [21:33:52]wFMCommunicate request_size=4 [21:33:52]MH_SAM_APDU [21:33:52]CAPDU: 80 09 00 00 [21:33:52]Write to MH i2c: E2 08 00 4C 23 80 09 00 00 00 00 00 00 E1 [21:33:52]Write i2c OK [21:33:52]MH_I2C_Read... [21:33:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:33:52]Read from MH i2c: E2 [21:33:52]MH_I2C_Read... [21:33:52]Read from MH i2c: E2 03 00 [21:33:52]MH_I2C_Read... [21:33:52]Read from MH i2c: E2 03 00 4C 23 00 90 00 E3 [21:33:52]RAPDU: 90 00 [21:33:52]wFMCommunicate OK [21:33:52]SAM_PROTO_ClearQueue done [21:33:52]KKMCreateOFDPacket [21:33:52]OFDProtocolAddRootSTLVToBuf [21:33:52]FM_MakeSignedData [21:33:52]FM_MakeSignedData [21:33:52]SAM_PROTO_SignData [21:33:52]wFMCommunicate request_size=4 [21:33:52]MH_SAM_APDU [21:33:52]CAPDU: 80 0D 01 02 [21:33:52]Write to MH i2c: E2 08 00 4D 23 80 0D 01 02 00 00 00 00 E9 [21:33:52]Write i2c OK [21:33:52]MH_I2C_Read... [21:33:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:33:52]Read from MH i2c: E2 [21:33:52]MH_I2C_Read... [21:33:52]Read from MH i2c: E2 03 00 [21:33:52]MH_I2C_Read... [21:33:52]Read from MH i2c: E2 03 00 4D 23 00 90 00 E4 [21:33:52]RAPDU: 90 00 [21:33:52]wFMCommunicate OK [21:33:52]wFMCommunicate request_size=255 [21:33:52]MH_SAM_APDU [21: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 C1 67 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 23 CE 01 00 35 04 06 00 B1 [21:33:52]Write to MH i2c: E2 02 01 4E 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 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 C1 67 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 23 CE 01 00 35 04 06 00 B1 00 00 0D [21:33:52]Write i2c OK [21:33:52]MH_I2C_Read... [21:33:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:33:53]Read from MH i2c: E2 [21:33:53]MH_I2C_Read... [21:33:53]Read from MH i2c: E2 03 00 [21:33:53]MH_I2C_Read... [21:33:53]Read from MH i2c: E2 03 00 4E 23 00 90 00 E5 [21:33:53]RAPDU: 90 00 [21:33:53]wFMCommunicate OK [21:33:53]wFMCommunicate request_size=10 [21:33:53]MH_SAM_APDU [21:33:53]CAPDU: 80 0D 02 02 05 66 09 16 CD E6 [21:33:53]Write to MH i2c: E2 0D 00 4F 23 80 0D 02 02 05 00 66 09 16 CD E6 00 00 2E [21:33:53]Write i2c OK [21:33:53]MH_I2C_Read... [21:33:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:33:53]Read from MH i2c: E2 [21:33:53]MH_I2C_Read... [21:33:53]Read from MH i2c: E2 03 00 [21:33:53]MH_I2C_Read... [21:33:53]Read from MH i2c: E2 03 00 4F 23 00 90 00 E6 [21:33:53]RAPDU: 90 00 [21:33:53]wFMCommunicate OK [21:33:53]wFMCommunicate request_size=4 [21:33:53]MH_SAM_APDU [21:33:53]CAPDU: 80 0D 03 02 [21:33:53]Write to MH i2c: E2 08 00 50 23 80 0D 03 02 00 00 00 00 EE [21:33:53]Write i2c OK [21:33:53]MH_I2C_Read... [21:33:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:33:53]Read from MH i2c: E2 [21:33:53]MH_I2C_Read... [21:33:53]Read from MH i2c: E2 0B 00 [21:33:53]MH_I2C_Read... [21:33:53]Read from MH i2c: E2 0B 00 50 23 00 DD 08 14 1A A2 DE 80 DE 90 00 E0 [21:33:53]RAPDU: DD 08 14 1A A2 DE 80 DE 90 00 [21:33:53]wFMCommunicate OK [21:33:53]SAM_PROTO_SignData done [21:33:53]FM_MakeSignedData done [21:33:53]CreateOFDProtocolMessage [21:33:53]wFMCommunicate request_size=4 [21:33:53]MH_SAM_APDU [21:33:53]CAPDU: 80 11 00 00 [21:33:53]Write to MH i2c: E2 08 00 51 23 80 11 00 00 00 00 00 00 EE [21:33:53]Write i2c OK [21:33:53]MH_I2C_Read... [21:33:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:33:53]Read from MH i2c: E2 [21:33:53]MH_I2C_Read... [21:33:53]Read from MH i2c: E2 17 00 [21:33:53]MH_I2C_Read... [21:33:53]Read from MH i2c: E2 17 00 51 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 49 [21:33:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:33:53]wFMCommunicate OK [21:33:53]CreateOFDProtocolMessage done [21:33:53]OFDSenderStorePacket 118307 [21:33:53]StoreOFDPacket docnum=118307 [21:33:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 DC 84 07 01 DE ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 C1 67 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 23 CE 01 00 35 04 06 00 B1 66 09 16 CD E6 DD 08 14 1A A2 DE 80 DE [21:33:53]CheckFolder [21:33:53]dirname=/storage/ofd_packets [21:33:53]CheckFolder done [21:33:53]ProducePacketName [21:33:53]name=ofd_packets/00118307 [21:33:53]NVStorageSaveData ofd_packets/00118307 [21:33:53]File name is /storage/ofd_packets/00118307 [21:33:53]Write 301 bytes [21:33:53]NVStorageSaveData done [21:33:53]OFDSenderStorePacket done [21:33:53]KKMCreateOFDPacket done [21:33:53]NVStorageSaveData kkm_last_timestamp [21:33:53]File name is /storage/kkm_last_timestamp [21:33:53]Write 4 bytes [21:33:53]NVStorageSaveData done [21:33:53]ExternCall_PrintAddStr [21:33:53]wPrintStart [21:33:53]Write to MH i2c: 01 00 00 52 23 75 [21:33:53]Write i2c OK [21:33:53]MH_I2C_Read... [21:33:53]Read from MH i2c: 01 [21:33:53]MH_I2C_Read... [21:33:53]Read from MH i2c: 01 07 00 [21:33:53]MH_I2C_Read... [21:33:53]Read from MH i2c: 01 07 00 52 23 00 00 00 00 00 FF 0F 8A [21:33:53]RasterBufferAndPrint [21:33:53]line Счет N : (1)949179 [21:33:53]line ИНН: 02508201610067 [21:33:53]line Контрольно-Кассовый Чек [21:33:53]line ПРОДАЖА [21:33:53]line ТРК (МРК, ГНК) : 41 [21:33:53]line Товар: 2710124130 [21:33:53]line Аи-92-К-4 [21:33:53]line 4.430 * 67.80 [21:33:53]line = 300.35 [21:33:53]line НДС 12% НСП 1% [21:33:53]line > о реализуемом товаре [21:33:53]line ОКРУГЛЕНИЕ: -0.35 [21:33:53]line ИТОГО: 300.00 [21:33:53]line Внесено: 300.00 [21:33:53]line СДАЧА: 0.00 [21:33:53]line НСП 1% : 2.66 [21:33:53]line НДС 12% : 31.90 [21:33:53]line Наличными: 300.00 [21:33:53]line Безнал.: 0.00 [21:33:53]line Место: АЗС № 134 "Партнер Нефть" [21:33:53]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:33:53]line СНО: Общий режим [21:33:53]line Чек 250 27.07.2024 21:33 [21:33:53]line Смена: 432 ФФД: 1.0 [21:33:53]line ЗНМ: 0300000044 [21:33:53]line РНМ: 0000000000092660 [21:33:53]line Версия ККМ: 001 [21:33:53]line ФМ: 0000000000874939 [21:33:53]line ФД: 118307 [21:33:53]line ФПД: 195051797269990 [21:33:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T213353&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118307&fm=195051797269990&tin=02508201610067®Number=0000000000092660&sum=30000 [21:33:53]OFD Sender: Processing packet 118307 [packets to send 86, broken 85] [21:33:53]ProducePacketName [21:33:53]name=ofd_packets/00118307 [21:33:53]OFD Sender: To server: pG, [21:33:53]CommunicateWithHost lk.salyk.kg:30040 [21:33:53]ConnectInit lk.salyk.kg [21:33:53]written 0, free lines is 4095 [21:33:53]Connected sock=10 [21: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 34 39 33 39 0F 01 00 00 DC 84 07 01 DE ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 C1 67 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 23 CE 01 00 35 04 06 00 B1 66 09 16 CD E6 DD 08 14 1A A2 DE 80 DE [21:33:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E1 4A 47 00 01 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 34 39 33 39 10 04 04 00 23 CE 01 00 F4 03 04 00 53 15 A5 66 B6 04 01 00 00 98 B6 41 C5 B8 D0 42 4D [21:33:53]CommunicateWithHost err = 0 [21:33:53]CheckOFDResponse [21:33:53]1017 (14) - 77093643461234 [21:33:53]1041 (16) - 0000000000874939 [21:33:53]1040 (4) - 118307 [21:33:53]1012 (4) - 27.07.2024 15:42 [21:33:53]1206 (1) - 0 [21:33:53]OFD Sender: Remove packet 118307 [21:33:53]ProducePacketName [21:33:53]name=ofd_packets/00118307 [21:33:53]NVStorageDeleteData [21:33:54]Write to MH i2c: 01 00 00 7C 23 9F [21:33:54]Write i2c OK [21:33:54]MH_I2C_Read... [21:33:54]Read from MH i2c: 01 [21:33:54]MH_I2C_Read... [21:33:54]Read from MH i2c: 01 07 00 [21:33:54]MH_I2C_Read... [21:33:54]Read from MH i2c: 01 07 00 7C 23 00 00 00 00 00 EB 0C 9D [21:33:54]RasterBufferAndPrint [21:33:54]line [21:33:54]line [21:33:54]line [21:33:54]line [21:33:54]line [21:33:54]written 0, free lines is 3314 [21:33:54]MH_Cut [21:33:54]Write to MH i2c: D1 01 00 83 23 01 78 [21:33:54]Write i2c OK [21:33:54]MH_I2C_Read... [21:33:54]Read from MH i2c: D1 [21:33:54]MH_I2C_Read... [21:33:54]Read from MH i2c: D1 01 00 [21:33:54]MH_I2C_Read... [21:33:54]Read from MH i2c: D1 01 00 83 23 00 77 [21:33:54]Write to MH i2c: 01 00 00 84 23 A7 [21:33:54]Write i2c OK [21:33:54]MH_I2C_Read... [21:33:54]OFD Sender: No OFD packet to send [21:33:54]*** Cut start [21:33:54]*** Partial cut [21:33:54]*** CUTSNS_PIN = 1 [21:33:54]*** CUTSNS_PIN = 0 [21:33:54]*** Brake cut motor [21:33:55]Read from MH i2c: 01 [21:33:55]MH_I2C_Read... [21:33:55]*** Stop cut motor [21:33:55]*** Cut end [21:33:55]Read from MH i2c: 01 07 00 [21:33:55]MH_I2C_Read... [21:33:55]Read from MH i2c: 01 07 00 84 23 00 00 00 00 00 FF 0F BC [21:33:55]process_action close_receipt done [21:33:55]requested_data is exist [21:33:55]produce_requested_data [21:33:55]requested_item fm.sn is exist - process it [21:33:55]wFMCommunicate request_size=4 [21:33:55]MH_SAM_APDU [21:33:55]CAPDU: 80 11 00 00 [21:33:55]Write to MH i2c: E2 08 00 85 23 80 11 00 00 00 00 00 00 22 [21:33:55]Write i2c OK [21:33:55]MH_I2C_Read... [21:33:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:33:55]Read from MH i2c: E2 [21:33:55]MH_I2C_Read... [21:33:55]Read from MH i2c: E2 17 00 [21:33:55]MH_I2C_Read... [21:33:55]Read from MH i2c: E2 17 00 85 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7D [21:33:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:33:55]wFMCommunicate OK [21:33:55]requested_item fd.num is exist - process it [21:33:55]SAM_PROTO_GetFieldsCounters [21:33:55]wFMCommunicate request_size=4 [21:33:55]MH_SAM_APDU [21:33:55]CAPDU: 80 13 00 00 [21:33:55]Write to MH i2c: E2 08 00 86 23 80 13 00 00 00 00 00 00 25 [21:33:55]Write i2c OK [21:33:55]MH_I2C_Read... [21:33:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:33:55]Read from MH i2c: E2 [21:33:55]MH_I2C_Read... [21:33:55]Read from MH i2c: E2 62 00 [21:33:55]MH_I2C_Read... [21:33:55]Read from MH i2c: E2 62 00 86 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 23 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [21: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 23 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:33:55]wFMCommunicate OK [21:33:55]SAM_PROTO_GetFieldsCounters done [21:33:55]requested_item shift.num is exist - process it [21:33:55]requested_item shift.opened is exist - process it [21:33:55]req_shift_opened [21:33:55]FM_GetShiftState [21:33:55]SAM_PROTO_GetShiftState [21:33:55]wFMCommunicate request_size=4 [21:33:55]MH_SAM_APDU [21:33:55]CAPDU: 80 13 01 00 [21:33:55]Write to MH i2c: E2 08 00 87 23 80 13 01 00 00 00 00 00 27 [21:33:55]Write i2c OK [21:33:55]MH_I2C_Read... [21:33:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:33:55]Read from MH i2c: E2 [21:33:55]MH_I2C_Read... [21:33:55]Read from MH i2c: E2 0E 00 [21:33:55]MH_I2C_Read... [21:33:55]Read from MH i2c: E2 0E 00 87 23 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 B4 [21:33:55]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:33:55]wFMCommunicate OK [21:33:55]SAM_PROTO_GetShiftState done [21:33:55]FM_GetShiftState done [21:33:55]req_shift_opened done [21:33:55]requested_item shift.open_date is exist - process it [21:33:55]req_shift_open_date [21:33:55]req_shift_open_date done [21:33:55]produce_requested_data done [21:33:55]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118307,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [21:33:55]process_action_free close_receipt [21:33:55]json_value_free [21:33:55]json_value_free done [21:33:55]process_json_proto returns [21:33:55]Send response to host [21:33:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118307,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [21:33:55]free response buf [21:33:55]execute_script done [21:33:55]execute_script returns [21:33:55]free content buf [21:33:55]Sock 9.Close socket [21:33:55]Sock 9.Thread stoped [21:33:59]OFD Sender: No OFD packet to send [21:34:04]OFD Sender: No OFD packet to send [21:34:09]OFD Sender: No OFD packet to send [21:34:14]OFD Sender: No OFD packet to send [21:34:19]OFD Sender: No OFD packet to send [21:34:24]OFD Sender: No OFD packet to send [21:34:29]OFD Sender: No OFD packet to send [21:34:34]OFD Sender: No OFD packet to send [21:34:39]OFD Sender: No OFD packet to send [21:34:44]OFD Sender: No OFD packet to send [21:34:49]OFD Sender: No OFD packet to send [21:34:54]OFD Sender: No OFD packet to send [21:34:59]OFD Sender: No OFD packet to send [21:35:04]OFD Sender: No OFD packet to send [21:35:09]OFD Sender: No OFD packet to send [21:35:14]OFD Sender: No OFD packet to send [21:35:19]OFD Sender: No OFD packet to send [21:35:24]OFD Sender: No OFD packet to send [21:35:29]OFD Sender: No OFD packet to send [21:35:34]OFD Sender: No OFD packet to send [21:35:39]OFD Sender: No OFD packet to send [21:35:44]OFD Sender: No OFD packet to send [21:35:49]OFD Sender: No OFD packet to send [21:35:54]OFD Sender: No OFD packet to send [21:35:59]OFD Sender: No OFD packet to send [21:36:04]OFD Sender: No OFD packet to send [21:36:09]OFD Sender: No OFD packet to send [21:36:14]OFD Sender: No OFD packet to send [21:36:19]OFD Sender: No OFD packet to send [21:36:24]OFD Sender: No OFD packet to send [21:36:29]OFD Sender: No OFD packet to send [21:36:34]OFD Sender: No OFD packet to send [21:36:39]OFD Sender: No OFD packet to send [21:36:44]OFD Sender: No OFD packet to send [21:36:49]OFD Sender: No OFD packet to send [21:36:54]OFD Sender: No OFD packet to send [21:36:59]OFD Sender: No OFD packet to send [21:37:04]OFD Sender: No OFD packet to send [21:37:09]OFD Sender: No OFD packet to send [21:37:14]OFD Sender: No OFD packet to send [21:37:19]OFD Sender: No OFD packet to send [21:37:24]OFD Sender: No OFD packet to send [21:37:29]OFD Sender: No OFD packet to send [21:37:34]OFD Sender: No OFD packet to send [21:37:39]OFD Sender: No OFD packet to send [21:37:44]OFD Sender: No OFD packet to send [21:37:49]OFD Sender: No OFD packet to send [21:37:54]OFD Sender: No OFD packet to send [21:37:59]OFD Sender: No OFD packet to send [21:38:04]OFD Sender: No OFD packet to send [21:38:09]OFD Sender: No OFD packet to send [21:38:14]OFD Sender: No OFD packet to send [21:38:19]OFD Sender: No OFD packet to send [21:38:24]OFD Sender: No OFD packet to send [21:38:29]OFD Sender: No OFD packet to send [21:38:34]OFD Sender: No OFD packet to send [21:38:39]OFD Sender: No OFD packet to send [21:38:44]OFD Sender: No OFD packet to send [21:38:49]OFD Sender: No OFD packet to send [21:38:54]OFD Sender: No OFD packet to send [21:38:59]OFD Sender: No OFD packet to send [21:39:04]OFD Sender: No OFD packet to send [21:39:09]OFD Sender: No OFD packet to send [21:39:14]OFD Sender: No OFD packet to send [21:39:19]OFD Sender: No OFD packet to send [21:39:24]OFD Sender: No OFD packet to send [21:39:29]OFD Sender: No OFD packet to send [21:39:34]OFD Sender: No OFD packet to send [21:39:39]OFD Sender: No OFD packet to send [21:39:44]OFD Sender: No OFD packet to send [21:39:49]OFD Sender: No OFD packet to send [21:39:54]OFD Sender: No OFD packet to send [21:39:59]OFD Sender: No OFD packet to send [21:40:04]OFD Sender: No OFD packet to send [21:40:09]OFD Sender: No OFD packet to send [21:40:14]OFD Sender: No OFD packet to send [21:40:19]OFD Sender: No OFD packet to send [21:40:24]OFD Sender: No OFD packet to send [21:40:29]OFD Sender: No OFD packet to send [21:40:34]OFD Sender: No OFD packet to send [21:40:35]accept exits with 7 [21:40:35]New connection [21:40:35]New thread 3066953060 created [21:40:35]Thread 3067096420 joined [21:40:35]Waiting for new connection... [21:40:35] Sock 7.Parse request [21:40:35]Sock 7.Check first char [21:40:35]Sock 7.First char is OK [21:40:35]request: POST /json_proto HTTP/1.0 [21:40:35]Method: POST [21:40:35]URL: /json_proto [21:40:35]Method is POST - this is cgi request [21:40:35]url: /json_proto [21:40:35]query_string will be loaded in cgi processing [21:40:35]execute_cgi json_proto POST (null) [21:40:35]execute_cgi path=json_proto method=POST [21:40:35]POST find Content-Length [21:40:35]Host: 172.17.45.7:8080 [21:40:35]Content-Length: 679 [21:40:35]Content-Type: application/json [21:40:35] [21:40:35]POST finish read [21:40:35]Found Content-Length = 679 [21:40:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [21:40:35]execute_script... [21:40: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)949180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [21:40:35]POST & json_proto [21:40:35]process_json_proto [21:40:35]json parsed OK: [21:40:35]protocol is kg_v1.0 [21:40:35]action value=close_receipt [21:40:35]process_action close_receipt [21:40:35]cmd_close_receipt [21:40:35]MH_GetDate [21:40:35]Write to MH i2c: F0 00 00 88 23 9A [21:40:35]Write i2c OK [21:40:35]MH_I2C_Read... [21:40:35]Read from MH i2c: F0 [21:40:35]MH_I2C_Read... [21:40:35]Read from MH i2c: F0 09 00 [21:40:35]MH_I2C_Read... [21:40:35]Read from MH i2c: F0 09 00 88 23 00 55 69 A5 66 90 0F 3E 66 AF [21:40:35]GetLastDocTimeStamp 1722116033 [21:40:35]current date 1722116437 [21:40:35]FM_GetShiftState [21:40:35]SAM_PROTO_GetShiftState [21:40:35]wFMCommunicate request_size=4 [21:40:35]MH_SAM_APDU [21:40:35]CAPDU: 80 13 01 00 [21:40:35]Write to MH i2c: E2 08 00 89 23 80 13 01 00 00 00 00 00 29 [21:40:35]Write i2c OK [21:40:35]MH_I2C_Read... [21:40:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:35]Read from MH i2c: E2 [21:40:35]MH_I2C_Read... [21:40:35]Read from MH i2c: E2 0E 00 [21:40:35]MH_I2C_Read... [21:40:35]Read from MH i2c: E2 0E 00 89 23 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 B6 [21:40:35]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:40:35]wFMCommunicate OK [21:40:35]SAM_PROTO_GetShiftState done [21:40:35]FM_GetShiftState done [21:40:35]opened in 1722038845 [21:40:35]opened+sec_in_day 1722125245 [21:40:35]quantity*price = 150037 [21:40:35]sum+1 = 150039 [21:40:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 251 27.07.2024 21:40 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118308 ФПД: 124840279987907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T214037&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118308&fm=124840279987907&tin=02508201610067®Number=0000000000092660&sum=150000 [21:40:37]StoreToDocumentArchive [21:40:37]shift 432 fd 118308 [21:40:37]save to /storage/0432/doc_00118308 [21:40:37]save last doc name /storage/0432/doc_00118308 to /storage/kkm_last_doc_name [21:40:37]save OK [21:40:37]Clear old archive folders... [21:40:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:40:37]tlvbuf is 01E1E090 [21:40:37]SAM_PROTO_ClearQueue [21:40:37]wFMCommunicate request_size=4 [21:40:37]MH_SAM_APDU [21:40:37]CAPDU: 80 09 00 00 [21:40:37]Write to MH i2c: E2 08 00 96 23 80 09 00 00 00 00 00 00 2B [21:40:37]Write i2c OK [21:40:37]MH_I2C_Read... [21:40:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:40:37]Read from MH i2c: E2 [21:40:37]MH_I2C_Read... [21:40:37]Read from MH i2c: E2 03 00 [21:40:37]MH_I2C_Read... [21:40:37]Read from MH i2c: E2 03 00 96 23 00 90 00 2D [21:40:37]RAPDU: 90 00 [21:40:37]wFMCommunicate OK [21:40:37]SAM_PROTO_ClearQueue done [21:40:37]KKMCreateOFDPacket [21:40:37]OFDProtocolAddRootSTLVToBuf [21:40:37]FM_MakeSignedData [21:40:37]FM_MakeSignedData [21:40:37]SAM_PROTO_SignData [21:40:37]wFMCommunicate request_size=4 [21:40:37]MH_SAM_APDU [21:40:37]CAPDU: 80 0D 01 02 [21:40:37]Write to MH i2c: E2 08 00 97 23 80 0D 01 02 00 00 00 00 33 [21:40:37]Write i2c OK [21:40:37]MH_I2C_Read... [21:40:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:40:37]Read from MH i2c: E2 [21:40:37]MH_I2C_Read... [21:40:37]Read from MH i2c: E2 03 00 [21:40:37]MH_I2C_Read... [21:40:37]Read from MH i2c: E2 03 00 97 23 00 90 00 2E [21:40:37]RAPDU: 90 00 [21:40:37]wFMCommunicate OK [21:40:37]wFMCommunicate request_size=255 [21:40:37]MH_SAM_APDU [21:40: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 FB 00 00 00 F4 03 04 00 55 69 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 24 CE 01 00 35 04 06 00 71 8A A4 8A [21:40:37]Write to MH i2c: E2 02 01 98 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 FB 00 00 00 F4 03 04 00 55 69 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 24 CE 01 00 35 04 06 00 71 8A A4 8A 00 00 CB [21:40:37]Write i2c OK [21:40:37]MH_I2C_Read... [21:40:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:37]Read from MH i2c: E2 [21:40:37]MH_I2C_Read... [21:40:37]Read from MH i2c: E2 03 00 [21:40:37]MH_I2C_Read... [21:40:37]Read from MH i2c: E2 03 00 98 23 00 90 00 2F [21:40:37]RAPDU: 90 00 [21:40:37]wFMCommunicate OK [21:40:37]wFMCommunicate request_size=7 [21:40:37]MH_SAM_APDU [21:40:37]CAPDU: 80 0D 02 02 02 D6 C3 [21:40:37]Write to MH i2c: E2 0A 00 99 23 80 0D 02 02 02 00 D6 C3 00 00 D3 [21:40:37]Write i2c OK [21:40:37]MH_I2C_Read... [21:40:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:37]Read from MH i2c: E2 [21:40:37]MH_I2C_Read... [21:40:37]Read from MH i2c: E2 03 00 [21:40:37]MH_I2C_Read... [21:40:37]Read from MH i2c: E2 03 00 99 23 00 90 00 30 [21:40:37]RAPDU: 90 00 [21:40:37]wFMCommunicate OK [21:40:37]wFMCommunicate request_size=4 [21:40:37]MH_SAM_APDU [21:40:37]CAPDU: 80 0D 03 02 [21:40:37]Write to MH i2c: E2 08 00 9A 23 80 0D 03 02 00 00 00 00 38 [21:40:37]Write i2c OK [21:40:37]MH_I2C_Read... [21:40:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:40:37]Read from MH i2c: E2 [21:40:37]MH_I2C_Read... [21:40:37]Read from MH i2c: E2 0B 00 [21:40:37]MH_I2C_Read... [21:40:37]Read from MH i2c: E2 0B 00 9A 23 00 43 5A 67 7B D7 3D 52 B3 90 00 D1 [21:40:37]RAPDU: 43 5A 67 7B D7 3D 52 B3 90 00 [21:40:37]wFMCommunicate OK [21:40:37]SAM_PROTO_SignData done [21:40:37]FM_MakeSignedData done [21:40:37]CreateOFDProtocolMessage [21:40:37]wFMCommunicate request_size=4 [21:40:37]MH_SAM_APDU [21:40:37]CAPDU: 80 11 00 00 [21:40:37]Write to MH i2c: E2 08 00 9B 23 80 11 00 00 00 00 00 00 38 [21:40:37]Write i2c OK [21:40:37]MH_I2C_Read... [21:40:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:37]Read from MH i2c: E2 [21:40:37]MH_I2C_Read... [21:40:37]Read from MH i2c: E2 17 00 [21:40:37]MH_I2C_Read... [21:40:37]Read from MH i2c: E2 17 00 9B 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 93 [21:40:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:40:37]wFMCommunicate OK [21:40:37]CreateOFDProtocolMessage done [21:40:37]OFDSenderStorePacket 118308 [21:40:37]StoreOFDPacket docnum=118308 [21:40:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 3F C8 04 01 E8 4C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 FB 00 00 00 F4 03 04 00 55 69 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 24 CE 01 00 35 04 06 00 71 8A A4 8A D6 C3 43 5A 67 7B D7 3D 52 B3 [21:40:37]CheckFolder [21:40:37]dirname=/storage/ofd_packets [21:40:37]CheckFolder done [21:40:37]ProducePacketName [21:40:37]name=ofd_packets/00118308 [21:40:37]NVStorageSaveData ofd_packets/00118308 [21:40:37]File name is /storage/ofd_packets/00118308 [21:40:37]Write 298 bytes [21:40:37]NVStorageSaveData done [21:40:37]OFDSenderStorePacket done [21:40:37]KKMCreateOFDPacket done [21:40:37]NVStorageSaveData kkm_last_timestamp [21:40:37]File name is /storage/kkm_last_timestamp [21:40:37]Write 4 bytes [21:40:37]NVStorageSaveData done [21:40:37]ExternCall_PrintAddStr [21:40:37]wPrintStart [21:40:37]Write to MH i2c: 01 00 00 9C 23 BF [21:40:37]Write i2c OK [21:40:37]MH_I2C_Read... [21:40:37]Read from MH i2c: 01 [21:40:37]MH_I2C_Read... [21:40:37]Read from MH i2c: 01 07 00 [21:40:37]MH_I2C_Read... [21:40:37]Read from MH i2c: 01 07 00 9C 23 00 00 00 00 00 FF 0F D4 [21:40:37]RasterBufferAndPrint [21:40:37]line Счет N : (1)949180 [21:40:37]line ИНН: 02508201610067 [21:40:37]line Контрольно-Кассовый Чек [21:40:37]line ПРОДАЖА [21:40:37]line ТРК (МРК, ГНК) : 44 [21:40:37]line Товар: 2710194800 [21:40:37]line ДТ-К-5 [21:40:37]line 19.690 * 76.20 [21:40:37]line = 1500.38 [21:40:37]line НДС 12% НСП 1% [21:40:37]line > о реализуемом товаре [21:40:37]line ОКРУГЛЕНИЕ: -0.38 [21:40:37]line ИТОГО: 1500.00 [21:40:37]line Внесено: 1500.00 [21:40:37]line СДАЧА: 0.00 [21:40:37]line НСП 1% : 13.28 [21:40:37]line НДС 12% : 159.33 [21:40:37]line Наличными: 1500.00 [21:40:37]line Безнал.: 0.00 [21:40:37]line Место: АЗС № 134 "Партнер Нефть" [21:40:37]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:40:37]line СНО: Общий режим [21:40:37]line Чек 251 27.07.2024 21:40 [21:40:37]line Смена: 432 ФФД: 1.0 [21:40:37]line ЗНМ: 0300000044 [21:40:37]line РНМ: 0000000000092660 [21:40:37]line Версия ККМ: 001 [21:40:37]line ФМ: 0000000000874939 [21:40:37]line ФД: 118308 [21:40:37]line ФПД: 124840279987907 [21:40:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T214037&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118308&fm=124840279987907&tin=02508201610067®Number=0000000000092660&sum=150000 [21:40:37]OFD Sender: Processing packet 118308 [packets to send 86, broken 85] [21:40:37]ProducePacketName [21:40:37]name=ofd_packets/00118308 [21:40:37]OFD Sender: To server: pG, [21:40:37]CommunicateWithHost lk.salyk.kg:30040 [21:40:37]ConnectInit lk.salyk.kg [21:40:37]written 0, free lines is 4095 [21:40:38]Connected sock=9 [21:40:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 3F C8 04 01 E8 4C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 FB 00 00 00 F4 03 04 00 55 69 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 24 CE 01 00 35 04 06 00 71 8A A4 8A D6 C3 43 5A 67 7B D7 3D 52 B3 [21:40:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E1 61 47 00 E9 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 24 CE 01 00 F4 03 04 00 E7 16 A5 66 B6 04 01 00 00 1A 81 52 DD 84 B1 D9 C2 [21:40:38]CommunicateWithHost err = 0 [21:40:38]CheckOFDResponse [21:40:38]1017 (14) - 77093643461234 [21:40:38]1041 (16) - 0000000000874939 [21:40:38]1040 (4) - 118308 [21:40:38]1012 (4) - 27.07.2024 15:48 [21:40:38]1206 (1) - 0 [21:40:38]OFD Sender: Remove packet 118308 [21:40:38]ProducePacketName [21:40:38]name=ofd_packets/00118308 [21:40:38]NVStorageDeleteData [21:40:38]Write to MH i2c: 01 00 00 C6 23 E9 [21:40:38]Write i2c OK [21:40:38]MH_I2C_Read... [21:40:38]Read from MH i2c: 01 [21:40:38]MH_I2C_Read... [21:40:38]Read from MH i2c: 01 07 00 [21:40:38]MH_I2C_Read... [21:40:38]Read from MH i2c: 01 07 00 C6 23 00 00 00 00 00 D9 0C D5 [21:40:38]RasterBufferAndPrint [21:40:38]line [21:40:38]line [21:40:38]line [21:40:38]line [21:40:38]line [21:40:38]written 0, free lines is 3296 [21:40:38]MH_Cut [21:40:38]Write to MH i2c: D1 01 00 CD 23 01 C2 [21:40:38]Write i2c OK [21:40:38]MH_I2C_Read... [21:40:38]Read from MH i2c: D1 [21:40:38]MH_I2C_Read... [21:40:38]Read from MH i2c: D1 01 00 [21:40:38]MH_I2C_Read... [21:40:38]Read from MH i2c: D1 01 00 CD 23 00 C1 [21:40:38]Write to MH i2c: 01 00 00 CE 23 F1 [21:40:38]Write i2c OK [21:40:38]MH_I2C_Read... [21:40:38]OFD Sender: No OFD packet to send [21:40:39]*** Cut start [21:40:39]*** Partial cut [21:40:39]*** CUTSNS_PIN = 1 [21:40:39]*** CUTSNS_PIN = 0 [21:40:39]*** Brake cut motor [21:40:39]Read from MH i2c: 01 [21:40:39]MH_I2C_Read... [21:40:39]*** Stop cut motor [21:40:39]*** Cut end [21:40:39]Read from MH i2c: 01 07 00 [21:40:39]MH_I2C_Read... [21:40:39]Read from MH i2c: 01 07 00 CE 23 00 00 00 00 00 FF 0F 06 [21:40:39]process_action close_receipt done [21:40:39]requested_data is exist [21:40:39]produce_requested_data [21:40:39]requested_item fm.sn is exist - process it [21:40:39]wFMCommunicate request_size=4 [21:40:39]MH_SAM_APDU [21:40:39]CAPDU: 80 11 00 00 [21:40:39]Write to MH i2c: E2 08 00 CF 23 80 11 00 00 00 00 00 00 6C [21:40:39]Write i2c OK [21:40:39]MH_I2C_Read... [21:40:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:39]Read from MH i2c: E2 [21:40:39]MH_I2C_Read... [21:40:39]Read from MH i2c: E2 17 00 [21:40:39]MH_I2C_Read... [21:40:39]Read from MH i2c: E2 17 00 CF 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C7 [21:40:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:40:39]wFMCommunicate OK [21:40:39]requested_item fd.num is exist - process it [21:40:39]SAM_PROTO_GetFieldsCounters [21:40:39]wFMCommunicate request_size=4 [21:40:39]MH_SAM_APDU [21:40:39]CAPDU: 80 13 00 00 [21:40:39]Write to MH i2c: E2 08 00 D0 23 80 13 00 00 00 00 00 00 6F [21:40:39]Write i2c OK [21:40:39]MH_I2C_Read... [21:40:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:40:39]Read from MH i2c: E2 [21:40:39]MH_I2C_Read... [21:40:39]Read from MH i2c: E2 62 00 [21:40:39]MH_I2C_Read... [21:40:39]Read from MH i2c: E2 62 00 D0 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 24 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [21:40:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 24 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:40:39]wFMCommunicate OK [21:40:39]SAM_PROTO_GetFieldsCounters done [21:40:39]requested_item shift.num is exist - process it [21:40:39]requested_item shift.opened is exist - process it [21:40:39]req_shift_opened [21:40:39]FM_GetShiftState [21:40:39]SAM_PROTO_GetShiftState [21:40:39]wFMCommunicate request_size=4 [21:40:39]MH_SAM_APDU [21:40:39]CAPDU: 80 13 01 00 [21:40:39]Write to MH i2c: E2 08 00 D1 23 80 13 01 00 00 00 00 00 71 [21:40:39]Write i2c OK [21:40:39]MH_I2C_Read... [21:40:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:40]Read from MH i2c: E2 [21:40:40]MH_I2C_Read... [21:40:40]Read from MH i2c: E2 0E 00 [21:40:40]MH_I2C_Read... [21:40:40]Read from MH i2c: E2 0E 00 D1 23 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 FE [21:40:40]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:40:40]wFMCommunicate OK [21:40:40]SAM_PROTO_GetShiftState done [21:40:40]FM_GetShiftState done [21:40:40]req_shift_opened done [21:40:40]requested_item shift.open_date is exist - process it [21:40:40]req_shift_open_date [21:40:40]req_shift_open_date done [21:40:40]produce_requested_data done [21:40:40]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118308,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [21:40:40]process_action_free close_receipt [21:40:40]json_value_free [21:40:40]json_value_free done [21:40:40]process_json_proto returns [21:40:40]Send response to host [21:40:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118308,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [21:40:40]free response buf [21:40:40]execute_script done [21:40:40]execute_script returns [21:40:40]free content buf [21:40:40]Sock 7.Close socket [21:40:40]Sock 7.Thread stoped [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:19]OFD Sender: No OFD packet to send [21:44:24]OFD Sender: No OFD packet to send [21:44:29]OFD Sender: No OFD packet to send [21:44:34]OFD Sender: No OFD packet to send [21:44:39]OFD Sender: No OFD packet to send [21:44:44]OFD Sender: No OFD packet to send [21:44:49]OFD Sender: No OFD packet to send [21:44:54]OFD Sender: No OFD packet to send [21:44:59]OFD Sender: No OFD packet to send [21:45:04]OFD Sender: No OFD packet to send [21:45:09]OFD Sender: No OFD packet to send [21:45:14]OFD Sender: No OFD packet to send [21:45:19]OFD Sender: No OFD packet to send [21:45:24]OFD Sender: No OFD packet to send [21:45:29]OFD Sender: No OFD packet to send [21:45:34]OFD Sender: No OFD packet to send [21:45:39]OFD Sender: No OFD packet to send [21:45:44]OFD Sender: No OFD packet to send [21:45:49]OFD Sender: No OFD packet to send [21:45:54]OFD Sender: No OFD packet to send [21:45:59]OFD Sender: No OFD packet to send [21:46:04]OFD Sender: No OFD packet to send [21:46:09]OFD Sender: No OFD packet to send [21:46:14]OFD Sender: No OFD packet to send [21:46:19]OFD Sender: No OFD packet to send [21:46:24]OFD Sender: No OFD packet to send [21:46:29]OFD Sender: No OFD packet to send [21:46:34]OFD Sender: No OFD packet to send [21:46:39]OFD Sender: No OFD packet to send [21:46:44]OFD Sender: No OFD packet to send [21:46:49]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:18]accept exits with 10 [21:48:18]New connection [21:48:18]New thread 3067096420 created [21:48:18]Thread 3066953060 joined [21:48:18]Waiting for new connection... [21:48:18] Sock 10.Parse request [21:48:18]Sock 10.Check first char [21:48:18]Sock 10.First char is OK [21:48:18]request: POST /json_proto HTTP/1.0 [21:48:18]Method: POST [21:48:18]URL: /json_proto [21:48:18]Method is POST - this is cgi request [21:48:18]url: /json_proto [21:48:18]query_string will be loaded in cgi processing [21:48:18]execute_cgi json_proto POST (null) [21:48:18]execute_cgi path=json_proto method=POST [21:48:18]POST find Content-Length [21:48:18]Host: 172.17.45.7:8080 [21:48:18]Content-Length: 819 [21:48:18]Content-Type: application/json [21:48:18] [21:48:18]POST finish read [21:48:18]Found Content-Length = 819 [21:48:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:18]execute_script... [21: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)949181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:18]POST & json_proto [21:48:18]process_json_proto [21:48:18]json parsed OK: [21:48:18]protocol is kg_v1.0 [21:48:18]action value=close_receipt [21:48:18]process_action close_receipt [21:48:18]cmd_close_receipt [21:48:18]MH_GetDate [21:48:18]Write to MH i2c: F0 00 00 D2 23 E4 [21:48:18]Write i2c OK [21:48:18]MH_I2C_Read... [21:48:18]Read from MH i2c: F0 [21:48:18]MH_I2C_Read... [21:48:18]Read from MH i2c: F0 09 00 [21:48:18]MH_I2C_Read... [21:48:18]Read from MH i2c: F0 09 00 D2 23 00 24 6B A5 66 90 0F 3E 66 CA [21:48:18]GetLastDocTimeStamp 1722116437 [21:48:18]current date 1722116900 [21:48:18]FM_GetShiftState [21:48:18]SAM_PROTO_GetShiftState [21:48:18]wFMCommunicate request_size=4 [21:48:18]MH_SAM_APDU [21:48:18]CAPDU: 80 13 01 00 [21:48:18]Write to MH i2c: E2 08 00 D3 23 80 13 01 00 00 00 00 00 73 [21:48:18]Write i2c OK [21:48:18]MH_I2C_Read... [21:48:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:18]Read from MH i2c: E2 [21:48:18]MH_I2C_Read... [21:48:18]Read from MH i2c: E2 0E 00 [21:48:18]MH_I2C_Read... [21:48:18]Read from MH i2c: E2 0E 00 D3 23 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 00 [21:48:18]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:48:18]wFMCommunicate OK [21:48:18]SAM_PROTO_GetShiftState done [21:48:18]FM_GetShiftState done [21:48:18]opened in 1722038845 [21:48:18]opened+sec_in_day 1722125245 [21:48:18]quantity*price = 300075 [21:48:18]sum+1 = 300077 [21:48:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 252 27.07.2024 21:48 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118309 ФПД: 275627213500891 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T214820&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118309&fm=275627213500891&tin=02508201610067®Number=0000000000092660&sum=300000 [21:48:19]StoreToDocumentArchive [21:48:19]shift 432 fd 118309 [21:48:19]save to /storage/0432/doc_00118309 [21:48:19]save last doc name /storage/0432/doc_00118309 to /storage/kkm_last_doc_name [21:48:19]save OK [21:48:19]Clear old archive folders... [21:48:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:48:19]tlvbuf is 01E11FD0 [21:48:19]SAM_PROTO_ClearQueue [21:48:19]wFMCommunicate request_size=4 [21:48:19]MH_SAM_APDU [21:48:19]CAPDU: 80 09 00 00 [21:48:19]Write to MH i2c: E2 08 00 E0 23 80 09 00 00 00 00 00 00 75 [21:48:19]Write i2c OK [21:48:19]MH_I2C_Read... [21:48:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:48:19]Read from MH i2c: E2 [21:48:19]MH_I2C_Read... [21:48:19]Read from MH i2c: E2 03 00 [21:48:19]MH_I2C_Read... [21:48:19]Read from MH i2c: E2 03 00 E0 23 00 90 00 77 [21:48:19]RAPDU: 90 00 [21:48:19]wFMCommunicate OK [21:48:19]SAM_PROTO_ClearQueue done [21:48:19]KKMCreateOFDPacket [21:48:19]OFDProtocolAddRootSTLVToBuf [21:48:19]FM_MakeSignedData [21:48:19]FM_MakeSignedData [21:48:19]SAM_PROTO_SignData [21:48:19]wFMCommunicate request_size=4 [21:48:19]MH_SAM_APDU [21:48:19]CAPDU: 80 0D 01 02 [21:48:19]Write to MH i2c: E2 08 00 E1 23 80 0D 01 02 00 00 00 00 7D [21:48:19]Write i2c OK [21:48:19]MH_I2C_Read... [21:48:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:48:19]Read from MH i2c: E2 [21:48:19]MH_I2C_Read... [21:48:19]Read from MH i2c: E2 03 00 [21:48:19]MH_I2C_Read... [21:48:19]Read from MH i2c: E2 03 00 E1 23 00 90 00 78 [21:48:19]RAPDU: 90 00 [21:48:19]wFMCommunicate OK [21:48:19]wFMCommunicate request_size=255 [21:48:19]MH_SAM_APDU [21:48:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 24 6B A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 25 CE 01 00 35 04 06 00 FA AE 76 26 [21:48:19]Write to MH i2c: E2 02 01 E2 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 24 6B A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 25 CE 01 00 35 04 06 00 FA AE 76 26 00 00 C3 [21:48:19]Write i2c OK [21:48:19]MH_I2C_Read... [21:48:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:20]Read from MH i2c: E2 [21:48:20]MH_I2C_Read... [21:48:20]Read from MH i2c: E2 03 00 [21:48:20]MH_I2C_Read... [21:48:20]Read from MH i2c: E2 03 00 E2 23 00 90 00 79 [21:48:20]RAPDU: 90 00 [21:48:20]wFMCommunicate OK [21:48:20]wFMCommunicate request_size=7 [21:48:20]MH_SAM_APDU [21:48:20]CAPDU: 80 0D 02 02 02 B1 DB [21:48:20]Write to MH i2c: E2 0A 00 E3 23 80 0D 02 02 02 00 B1 DB 00 00 10 [21:48:20]Write i2c OK [21:48:20]MH_I2C_Read... [21:48:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:20]Read from MH i2c: E2 [21:48:20]MH_I2C_Read... [21:48:20]Read from MH i2c: E2 03 00 [21:48:20]MH_I2C_Read... [21:48:20]Read from MH i2c: E2 03 00 E3 23 00 90 00 7A [21:48:20]RAPDU: 90 00 [21:48:20]wFMCommunicate OK [21:48:20]wFMCommunicate request_size=4 [21:48:20]MH_SAM_APDU [21:48:20]CAPDU: 80 0D 03 02 [21:48:20]Write to MH i2c: E2 08 00 E4 23 80 0D 03 02 00 00 00 00 82 [21:48:20]Write i2c OK [21:48:20]MH_I2C_Read... [21:48:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:48:20]Read from MH i2c: E2 [21:48:20]MH_I2C_Read... [21:48:20]Read from MH i2c: E2 0B 00 [21:48:20]MH_I2C_Read... [21:48:20]Read from MH i2c: E2 0B 00 E4 23 00 71 F2 06 32 52 BD 65 B1 90 00 43 [21:48:20]RAPDU: 71 F2 06 32 52 BD 65 B1 90 00 [21:48:20]wFMCommunicate OK [21:48:20]SAM_PROTO_SignData done [21:48:20]FM_MakeSignedData done [21:48:20]CreateOFDProtocolMessage [21:48:20]wFMCommunicate request_size=4 [21:48:20]MH_SAM_APDU [21:48:20]CAPDU: 80 11 00 00 [21:48:20]Write to MH i2c: E2 08 00 E5 23 80 11 00 00 00 00 00 00 82 [21:48:20]Write i2c OK [21:48:20]MH_I2C_Read... [21:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:20]Read from MH i2c: E2 [21:48:20]MH_I2C_Read... [21:48:20]Read from MH i2c: E2 17 00 [21:48:20]MH_I2C_Read... [21:48:20]Read from MH i2c: E2 17 00 E5 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DD [21:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:48:20]wFMCommunicate OK [21:48:20]CreateOFDProtocolMessage done [21:48:20]OFDSenderStorePacket 118309 [21:48:20]StoreOFDPacket docnum=118309 [21:48:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C8 D7 04 01 FE 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 24 6B A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 25 CE 01 00 35 04 06 00 FA AE 76 26 B1 DB 71 F2 06 32 52 BD 65 B1 [21:48:20]CheckFolder [21:48:20]dirname=/storage/ofd_packets [21:48:20]CheckFolder done [21:48:20]ProducePacketName [21:48:20]name=ofd_packets/00118309 [21:48:20]NVStorageSaveData ofd_packets/00118309 [21:48:20]File name is /storage/ofd_packets/00118309 [21:48:20]Write 298 bytes [21:48:20]NVStorageSaveData done [21:48:20]OFDSenderStorePacket done [21:48:20]KKMCreateOFDPacket done [21:48:20]NVStorageSaveData kkm_last_timestamp [21:48:20]File name is /storage/kkm_last_timestamp [21:48:20]Write 4 bytes [21:48:20]NVStorageSaveData done [21:48:20]ExternCall_PrintAddStr [21:48:20]wPrintStart [21:48:20]Write to MH i2c: 01 00 00 E6 23 09 [21:48:20]Write i2c OK [21:48:20]MH_I2C_Read... [21:48:20]Read from MH i2c: 01 [21:48:20]MH_I2C_Read... [21:48:20]Read from MH i2c: 01 07 00 [21:48:20]MH_I2C_Read... [21:48:20]Read from MH i2c: 01 07 00 E6 23 00 00 00 00 00 FF 0F 1E [21:48:20]RasterBufferAndPrint [21:48:20]line Счет N : (1)949181 [21:48:20]line ИНН: 02508201610067 [21:48:20]line Контрольно-Кассовый Чек [21:48:20]line ПРОДАЖА [21:48:20]line ТРК (МРК, ГНК) : 34 [21:48:20]line Товар: 2710194800 [21:48:20]line ДТ-К-5 [21:48:20]line 39.380 * 76.20 [21:48:20]line = 3000.76 [21:48:20]line НДС 12% НСП 1% [21:48:20]line > о реализуемом товаре [21:48:20]line ОКРУГЛЕНИЕ: -0.76 [21:48:20]line ИТОГО: 3000.00 [21:48:20]line НСП 1% : 26.55 [21:48:20]line НДС 12% : 318.66 [21:48:20]line Наличными: 0.00 [21:48:20]line Безнал.: 3000.00 [21:48:20]line Место: АЗС № 134 "Партнер Нефть" [21:48:20]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:48:20]line СНО: Общий режим [21:48:20]line Чек 252 27.07.2024 21:48 [21:48:20]line Смена: 432 ФФД: 1.0 [21:48:20]line ЗНМ: 0300000044 [21:48:20]line РНМ: 0000000000092660 [21:48:20]line Версия ККМ: 001 [21:48:20]line Платежная система: O! деньги [21:48:20]line ФМ: 0000000000874939 [21:48:20]line ФД: 118309 [21:48:20]line ФПД: 275627213500891 [21:48:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T214820&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118309&fm=275627213500891&tin=02508201610067®Number=0000000000092660&sum=300000 [21:48:20]OFD Sender: Processing packet 118309 [packets to send 86, broken 85] [21:48:20]ProducePacketName [21:48:20]name=ofd_packets/00118309 [21:48:20]OFD Sender: To server: pG, [21:48:20]CommunicateWithHost lk.salyk.kg:30040 [21:48:20]ConnectInit lk.salyk.kg [21:48:20]written 0, free lines is 4095 [21:48:20]Connected sock=11 [21: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 34 39 33 39 0C 01 00 00 C8 D7 04 01 FE 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 24 6B A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 25 CE 01 00 35 04 06 00 FA AE 76 26 B1 DB 71 F2 06 32 52 BD 65 B1 [21:48:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 21 4A 47 00 3C 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 25 CE 01 00 F4 03 04 00 B6 18 A5 66 B6 04 01 00 00 98 EA 03 C6 02 5A B1 34 [21:48:20]CommunicateWithHost err = 0 [21:48:20]CheckOFDResponse [21:48:20]1017 (14) - 77093643461234 [21:48:20]1041 (16) - 0000000000874939 [21:48:20]1040 (4) - 118309 [21:48:20]1012 (4) - 27.07.2024 15:56 [21:48:20]1206 (1) - 0 [21:48:20]OFD Sender: Remove packet 118309 [21:48:20]ProducePacketName [21:48:20]name=ofd_packets/00118309 [21:48:20]NVStorageDeleteData [21:48:20]Write to MH i2c: 01 00 00 10 24 34 [21:48:20]Write i2c OK [21:48:20]MH_I2C_Read... [21:48:20]Read from MH i2c: 01 [21:48:20]MH_I2C_Read... [21:48:20]Read from MH i2c: 01 07 00 [21:48:20]MH_I2C_Read... [21:48:20]Read from MH i2c: 01 07 00 10 24 00 00 00 00 00 DD 0C 24 [21:48:20]RasterBufferAndPrint [21:48:20]line [21:48:20]line [21:48:20]line [21:48:20]line [21:48:20]line [21:48:20]written 0, free lines is 3299 [21:48:20]MH_Cut [21:48:20]Write to MH i2c: D1 01 00 17 24 01 0D [21:48:21]Write i2c OK [21:48:21]MH_I2C_Read... [21:48:21]Read from MH i2c: D1 [21:48:21]MH_I2C_Read... [21:48:21]Read from MH i2c: D1 01 00 [21:48:21]MH_I2C_Read... [21:48:21]Read from MH i2c: D1 01 00 17 24 00 0C [21:48:21]Write to MH i2c: 01 00 00 18 24 3C [21:48:21]Write i2c OK [21:48:21]MH_I2C_Read... [21:48:21]OFD Sender: No OFD packet to send [21:48:21]*** Cut start [21:48:21]*** Partial cut [21:48:21]*** CUTSNS_PIN = 1 [21:48:21]*** CUTSNS_PIN = 0 [21:48:21]*** Brake cut motor [21:48:22]Read from MH i2c: 01 [21:48:22]MH_I2C_Read... [21:48:22]*** Stop cut motor [21:48:22]*** Cut end [21:48:22]Read from MH i2c: 01 07 00 [21:48:22]MH_I2C_Read... [21:48:22]Read from MH i2c: 01 07 00 18 24 00 00 00 00 00 FF 0F 51 [21:48:22]process_action close_receipt done [21:48:22]requested_data is exist [21:48:22]produce_requested_data [21:48:22]requested_item fm.sn is exist - process it [21:48:22]wFMCommunicate request_size=4 [21:48:22]MH_SAM_APDU [21:48:22]CAPDU: 80 11 00 00 [21:48:22]Write to MH i2c: E2 08 00 19 24 80 11 00 00 00 00 00 00 B7 [21:48:22]Write i2c OK [21:48:22]MH_I2C_Read... [21:48:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:22]Read from MH i2c: E2 [21:48:22]MH_I2C_Read... [21:48:22]Read from MH i2c: E2 17 00 [21:48:22]MH_I2C_Read... [21:48:22]Read from MH i2c: E2 17 00 19 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 12 [21:48:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:48:22]wFMCommunicate OK [21:48:22]requested_item fd.num is exist - process it [21:48:22]SAM_PROTO_GetFieldsCounters [21:48:22]wFMCommunicate request_size=4 [21:48:22]MH_SAM_APDU [21:48:22]CAPDU: 80 13 00 00 [21:48:22]Write to MH i2c: E2 08 00 1A 24 80 13 00 00 00 00 00 00 BA [21:48:22]Write i2c OK [21:48:22]MH_I2C_Read... [21:48:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:48:22]Read from MH i2c: E2 [21:48:22]MH_I2C_Read... [21:48:22]Read from MH i2c: E2 62 00 [21:48:22]MH_I2C_Read... [21:48:22]Read from MH i2c: E2 62 00 1A 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 25 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [21:48:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 25 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:48:22]wFMCommunicate OK [21:48:22]SAM_PROTO_GetFieldsCounters done [21:48:22]requested_item shift.num is exist - process it [21:48:22]requested_item shift.opened is exist - process it [21:48:22]req_shift_opened [21:48:22]FM_GetShiftState [21:48:22]SAM_PROTO_GetShiftState [21:48:22]wFMCommunicate request_size=4 [21:48:22]MH_SAM_APDU [21:48:22]CAPDU: 80 13 01 00 [21:48:22]Write to MH i2c: E2 08 00 1B 24 80 13 01 00 00 00 00 00 BC [21:48:22]Write i2c OK [21:48:22]MH_I2C_Read... [21:48:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:22]Read from MH i2c: E2 [21:48:22]MH_I2C_Read... [21:48:22]Read from MH i2c: E2 0E 00 [21:48:22]MH_I2C_Read... [21:48:22]Read from MH i2c: E2 0E 00 1B 24 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 49 [21:48:22]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:48:22]wFMCommunicate OK [21:48:22]SAM_PROTO_GetShiftState done [21:48:22]FM_GetShiftState done [21:48:22]req_shift_opened done [21:48:22]requested_item shift.open_date is exist - process it [21:48:22]req_shift_open_date [21:48:22]req_shift_open_date done [21:48:22]produce_requested_data done [21:48:22]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118309,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [21:48:22]process_action_free close_receipt [21:48:22]json_value_free [21:48:22]json_value_free done [21:48:22]process_json_proto returns [21:48:22]Send response to host [21:48:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118309,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [21:48:22]free response buf [21:48:22]execute_script done [21:48:22]execute_script returns [21:48:22]free content buf [21:48:22]Sock 10.Close socket [21:48:22]Sock 10.Thread stoped [21:48:26]OFD Sender: No OFD packet to send [21:48:31]OFD Sender: No OFD packet to send [21:48:36]OFD Sender: No OFD packet to send [21:48:41]OFD Sender: No OFD packet to send [21:48:46]OFD Sender: No OFD packet to send [21:48:51]OFD Sender: No OFD packet to send [21:48:51]accept exits with 7 [21:48:51]New connection [21:48:51]New thread 3066953060 created [21:48:51]Thread 3067096420 joined [21:48:51]Waiting for new connection... [21:48:51] Sock 7.Parse request [21:48:51]Sock 7.Check first char [21:48:51]Sock 7.First char is OK [21:48:51]request: POST /json_proto HTTP/1.0 [21:48:51]Method: POST [21:48:51]URL: /json_proto [21:48:51]Method is POST - this is cgi request [21:48:51]url: /json_proto [21:48:51]query_string will be loaded in cgi processing [21:48:51]execute_cgi json_proto POST (null) [21:48:51]execute_cgi path=json_proto method=POST [21:48:51]POST find Content-Length [21:48:51]Host: 172.17.45.7:8080 [21:48:51]Content-Length: 677 [21:48:51]Content-Type: application/json [21:48:51] [21:48:51]POST finish read [21:48:51]Found Content-Length = 677 [21:48:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:48:51]execute_script... [21:48: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)949182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:48:51]POST & json_proto [21:48:51]process_json_proto [21:48:51]json parsed OK: [21:48:51]protocol is kg_v1.0 [21:48:51]action value=close_receipt [21:48:51]process_action close_receipt [21:48:51]cmd_close_receipt [21:48:51]MH_GetDate [21:48:51]Write to MH i2c: F0 00 00 1C 24 2F [21:48:51]Write i2c OK [21:48:51]MH_I2C_Read... [21:48:51]Read from MH i2c: F0 [21:48:51]MH_I2C_Read... [21:48:51]Read from MH i2c: F0 09 00 [21:48:51]MH_I2C_Read... [21:48:51]Read from MH i2c: F0 09 00 1C 24 00 45 6B A5 66 90 0F 3E 66 36 [21:48:51]GetLastDocTimeStamp 1722116900 [21:48:51]current date 1722116933 [21:48:51]FM_GetShiftState [21:48:51]SAM_PROTO_GetShiftState [21:48:51]wFMCommunicate request_size=4 [21:48:51]MH_SAM_APDU [21:48:51]CAPDU: 80 13 01 00 [21:48:51]Write to MH i2c: E2 08 00 1D 24 80 13 01 00 00 00 00 00 BE [21:48:51]Write i2c OK [21:48:51]MH_I2C_Read... [21:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:51]Read from MH i2c: E2 [21:48:51]MH_I2C_Read... [21:48:51]Read from MH i2c: E2 0E 00 [21:48:51]MH_I2C_Read... [21:48:51]Read from MH i2c: E2 0E 00 1D 24 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 4B [21:48:51]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:48:51]wFMCommunicate OK [21:48:51]SAM_PROTO_GetShiftState done [21:48:51]FM_GetShiftState done [21:48:51]opened in 1722038845 [21:48:51]opened+sec_in_day 1722125245 [21:48:51]quantity*price = 50036 [21:48:51]sum+1 = 50037 [21:48:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 253 27.07.2024 21:48 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118310 ФПД: 93783436337742 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T214853&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118310&fm=93783436337742&tin=02508201610067®Number=0000000000092660&sum=50000 [21:48:53]StoreToDocumentArchive [21:48:53]shift 432 fd 118310 [21:48:53]save to /storage/0432/doc_00118310 [21:48:53]save last doc name /storage/0432/doc_00118310 to /storage/kkm_last_doc_name [21:48:53]save OK [21:48:53]Clear old archive folders... [21:48:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:48:53]tlvbuf is 01DBE390 [21:48:53]SAM_PROTO_ClearQueue [21:48:53]wFMCommunicate request_size=4 [21:48:53]MH_SAM_APDU [21:48:53]CAPDU: 80 09 00 00 [21:48:53]Write to MH i2c: E2 08 00 2A 24 80 09 00 00 00 00 00 00 C0 [21:48:53]Write i2c OK [21:48:53]MH_I2C_Read... [21:48:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:48:53]Read from MH i2c: E2 [21:48:53]MH_I2C_Read... [21:48:53]Read from MH i2c: E2 03 00 [21:48:53]MH_I2C_Read... [21:48:53]Read from MH i2c: E2 03 00 2A 24 00 90 00 C2 [21:48:53]RAPDU: 90 00 [21:48:53]wFMCommunicate OK [21:48:53]SAM_PROTO_ClearQueue done [21:48:53]KKMCreateOFDPacket [21:48:53]OFDProtocolAddRootSTLVToBuf [21:48:53]FM_MakeSignedData [21:48:53]FM_MakeSignedData [21:48:53]SAM_PROTO_SignData [21:48:53]wFMCommunicate request_size=4 [21:48:53]MH_SAM_APDU [21:48:53]CAPDU: 80 0D 01 02 [21:48:53]Write to MH i2c: E2 08 00 2B 24 80 0D 01 02 00 00 00 00 C8 [21:48:53]Write i2c OK [21:48:53]MH_I2C_Read... [21:48:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:48:53]Read from MH i2c: E2 [21:48:53]MH_I2C_Read... [21:48:53]Read from MH i2c: E2 03 00 [21:48:53]MH_I2C_Read... [21:48:53]Read from MH i2c: E2 03 00 2B 24 00 90 00 C3 [21:48:53]RAPDU: 90 00 [21:48:53]wFMCommunicate OK [21:48:53]wFMCommunicate request_size=255 [21:48:53]MH_SAM_APDU [21:48: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 45 6B A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 26 CE 01 00 35 04 06 00 55 [21:48:53]Write to MH i2c: E2 02 01 2C 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 45 6B A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 26 CE 01 00 35 04 06 00 55 00 00 FF [21:48:53]Write i2c OK [21:48:53]MH_I2C_Read... [21:48:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:53]Read from MH i2c: E2 [21:48:53]MH_I2C_Read... [21:48:53]Read from MH i2c: E2 03 00 [21:48:53]MH_I2C_Read... [21:48:53]Read from MH i2c: E2 03 00 2C 24 00 90 00 C4 [21:48:53]RAPDU: 90 00 [21:48:53]wFMCommunicate OK [21:48:53]wFMCommunicate request_size=10 [21:48:53]MH_SAM_APDU [21:48:53]CAPDU: 80 0D 02 02 05 4B A8 68 A2 4E [21:48:53]Write to MH i2c: E2 0D 00 2D 24 80 0D 02 02 05 00 4B A8 68 A2 4E 00 00 20 [21:48:53]Write i2c OK [21:48:53]MH_I2C_Read... [21:48:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:53]Read from MH i2c: E2 [21:48:53]MH_I2C_Read... [21:48:53]Read from MH i2c: E2 03 00 [21:48:53]MH_I2C_Read... [21:48:53]Read from MH i2c: E2 03 00 2D 24 00 90 00 C5 [21:48:53]RAPDU: 90 00 [21:48:53]wFMCommunicate OK [21:48:53]wFMCommunicate request_size=4 [21:48:53]MH_SAM_APDU [21:48:53]CAPDU: 80 0D 03 02 [21:48:53]Write to MH i2c: E2 08 00 2E 24 80 0D 03 02 00 00 00 00 CD [21:48:53]Write i2c OK [21:48:53]MH_I2C_Read... [21:48:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:48:53]Read from MH i2c: E2 [21:48:53]MH_I2C_Read... [21:48:53]Read from MH i2c: E2 0B 00 [21:48:53]MH_I2C_Read... [21:48:53]Read from MH i2c: E2 0B 00 2E 24 00 01 15 4F 35 22 65 FD 0E 90 00 FA [21:48:53]RAPDU: 01 15 4F 35 22 65 FD 0E 90 00 [21:48:53]wFMCommunicate OK [21:48:53]SAM_PROTO_SignData done [21:48:53]FM_MakeSignedData done [21:48:53]CreateOFDProtocolMessage [21:48:53]wFMCommunicate request_size=4 [21:48:53]MH_SAM_APDU [21:48:53]CAPDU: 80 11 00 00 [21:48:53]Write to MH i2c: E2 08 00 2F 24 80 11 00 00 00 00 00 00 CD [21:48:53]Write i2c OK [21:48:53]MH_I2C_Read... [21:48:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:53]Read from MH i2c: E2 [21:48:53]MH_I2C_Read... [21:48:53]Read from MH i2c: E2 17 00 [21:48:53]MH_I2C_Read... [21:48:53]Read from MH i2c: E2 17 00 2F 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 28 [21:48:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:48:53]wFMCommunicate OK [21:48:53]CreateOFDProtocolMessage done [21:48:53]OFDSenderStorePacket 118310 [21:48:53]StoreOFDPacket docnum=118310 [21:48:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 22 0D 07 01 D5 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 45 6B A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 26 CE 01 00 35 04 06 00 55 4B A8 68 A2 4E 01 15 4F 35 22 65 FD 0E [21:48:53]CheckFolder [21:48:53]dirname=/storage/ofd_packets [21:48:53]CheckFolder done [21:48:53]ProducePacketName [21:48:53]name=ofd_packets/00118310 [21:48:53]NVStorageSaveData ofd_packets/00118310 [21:48:53]File name is /storage/ofd_packets/00118310 [21:48:53]Write 301 bytes [21:48:53]NVStorageSaveData done [21:48:53]OFDSenderStorePacket done [21:48:53]KKMCreateOFDPacket done [21:48:53]NVStorageSaveData kkm_last_timestamp [21:48:53]File name is /storage/kkm_last_timestamp [21:48:53]Write 4 bytes [21:48:53]NVStorageSaveData done [21:48:53]ExternCall_PrintAddStr [21:48:53]wPrintStart [21:48:53]Write to MH i2c: 01 00 00 30 24 54 [21:48:53]Write i2c OK [21:48:53]MH_I2C_Read... [21:48:53]Read from MH i2c: 01 [21:48:53]MH_I2C_Read... [21:48:53]Read from MH i2c: 01 07 00 [21:48:53]MH_I2C_Read... [21:48:53]Read from MH i2c: 01 07 00 30 24 00 00 00 00 00 FF 0F 69 [21:48:53]RasterBufferAndPrint [21:48:53]line Счет N : (1)949182 [21:48:53]line ИНН: 02508201610067 [21:48:53]line Контрольно-Кассовый Чек [21:48:53]line ПРОДАЖА [21:48:53]line ТРК (МРК, ГНК) : 51 [21:48:53]line Товар: 2710124130 [21:48:53]line Аи-92-К-4 [21:48:53]line 7.380 * 67.80 [21:48:53]line = 500.36 [21:48:53]line НДС 12% НСП 1% [21:48:53]line > о реализуемом товаре [21:48:53]line ОКРУГЛЕНИЕ: -0.36 [21:48:53]line ИТОГО: 500.00 [21:48:53]line Внесено: 500.00 [21:48:53]line СДАЧА: 0.00 [21:48:53]line НСП 1% : 4.43 [21:48:53]line НДС 12% : 53.14 [21:48:53]line Наличными: 500.00 [21:48:53]line Безнал.: 0.00 [21:48:53]line Место: АЗС № 134 "Партнер Нефть" [21:48:53]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:48:53]line СНО: Общий режим [21:48:53]line Чек 253 27.07.2024 21:48 [21:48:53]line Смена: 432 ФФД: 1.0 [21:48:53]line ЗНМ: 0300000044 [21:48:53]line РНМ: 0000000000092660 [21:48:53]line Версия ККМ: 001 [21:48:53]line ФМ: 0000000000874939 [21:48:53]line ФД: 118310 [21:48:53]line ФПД: 93783436337742 [21:48:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T214853&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118310&fm=93783436337742&tin=02508201610067®Number=0000000000092660&sum=50000 [21:48:53]OFD Sender: Processing packet 118310 [packets to send 86, broken 85] [21:48:53]ProducePacketName [21:48:53]name=ofd_packets/00118310 [21:48:53]OFD Sender: To server: pG, [21:48:53]CommunicateWithHost lk.salyk.kg:30040 [21:48:53]ConnectInit lk.salyk.kg [21:48:53]written 0, free lines is 4095 [21:48:54]Connected sock=10 [21:48:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 22 0D 07 01 D5 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 45 6B A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 26 CE 01 00 35 04 06 00 55 4B A8 68 A2 4E 01 15 4F 35 22 65 FD 0E [21:48:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 30 AB 47 00 66 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 34 39 33 39 10 04 04 00 26 CE 01 00 F4 03 04 00 D7 18 A5 66 B6 04 01 00 00 B0 05 FD 87 9B FB 56 0A [21:48:54]CommunicateWithHost err = 0 [21:48:54]CheckOFDResponse [21:48:54]1017 (14) - 77093643461234 [21:48:54]1041 (16) - 0000000000874939 [21:48:54]1040 (4) - 118310 [21:48:54]1012 (4) - 27.07.2024 15:57 [21:48:54]1206 (1) - 0 [21:48:54]OFD Sender: Remove packet 118310 [21:48:54]ProducePacketName [21:48:54]name=ofd_packets/00118310 [21:48:54]NVStorageDeleteData [21:48:54]Write to MH i2c: 01 00 00 5A 24 7E [21:48:54]Write i2c OK [21:48:54]MH_I2C_Read... [21:48:54]Read from MH i2c: 01 [21:48:54]MH_I2C_Read... [21:48:54]Read from MH i2c: 01 07 00 [21:48:54]MH_I2C_Read... [21:48:54]Read from MH i2c: 01 07 00 5A 24 00 00 00 00 00 DC 0C 6D [21:48:54]RasterBufferAndPrint [21:48:54]line [21:48:54]line [21:48:54]line [21:48:54]line [21:48:54]line [21:48:54]written 0, free lines is 3298 [21:48:54]MH_Cut [21:48:54]Write to MH i2c: D1 01 00 61 24 01 57 [21:48:54]Write i2c OK [21:48:54]MH_I2C_Read... [21:48:54]Read from MH i2c: D1 [21:48:54]MH_I2C_Read... [21:48:54]Read from MH i2c: D1 01 00 [21:48:54]MH_I2C_Read... [21:48:54]Read from MH i2c: D1 01 00 61 24 00 56 [21:48:54]Write to MH i2c: 01 00 00 62 24 86 [21:48:54]Write i2c OK [21:48:54]MH_I2C_Read... [21:48:54]OFD Sender: No OFD packet to send [21:48:55]*** Cut start [21:48:55]*** Partial cut [21:48:55]*** CUTSNS_PIN = 1 [21:48:55]*** CUTSNS_PIN = 0 [21:48:55]*** Brake cut motor [21:48:55]Read from MH i2c: 01 [21:48:55]MH_I2C_Read... [21:48:55]*** Stop cut motor [21:48:55]*** Cut end [21:48:55]Read from MH i2c: 01 07 00 [21:48:55]MH_I2C_Read... [21:48:55]Read from MH i2c: 01 07 00 62 24 00 00 00 00 00 FF 0F 9B [21:48:55]process_action close_receipt done [21:48:55]requested_data is exist [21:48:55]produce_requested_data [21:48:55]requested_item fm.sn is exist - process it [21:48:55]wFMCommunicate request_size=4 [21:48:55]MH_SAM_APDU [21:48:55]CAPDU: 80 11 00 00 [21:48:55]Write to MH i2c: E2 08 00 63 24 80 11 00 00 00 00 00 00 01 [21:48:55]Write i2c OK [21:48:55]MH_I2C_Read... [21:48:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:55]Read from MH i2c: E2 [21:48:55]MH_I2C_Read... [21:48:55]Read from MH i2c: E2 17 00 [21:48:55]MH_I2C_Read... [21:48:55]Read from MH i2c: E2 17 00 63 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5C [21:48:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:48:55]wFMCommunicate OK [21:48:55]requested_item fd.num is exist - process it [21:48:55]SAM_PROTO_GetFieldsCounters [21:48:55]wFMCommunicate request_size=4 [21:48:55]MH_SAM_APDU [21:48:55]CAPDU: 80 13 00 00 [21:48:55]Write to MH i2c: E2 08 00 64 24 80 13 00 00 00 00 00 00 04 [21:48:55]Write i2c OK [21:48:55]MH_I2C_Read... [21:48:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:48:55]Read from MH i2c: E2 [21:48:55]MH_I2C_Read... [21:48:55]Read from MH i2c: E2 62 00 [21:48:55]MH_I2C_Read... [21:48:55]Read from MH i2c: E2 62 00 64 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 26 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [21:48:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 26 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:48:55]wFMCommunicate OK [21:48:55]SAM_PROTO_GetFieldsCounters done [21:48:55]requested_item shift.num is exist - process it [21:48:55]requested_item shift.opened is exist - process it [21:48:55]req_shift_opened [21:48:55]FM_GetShiftState [21:48:55]SAM_PROTO_GetShiftState [21:48:55]wFMCommunicate request_size=4 [21:48:55]MH_SAM_APDU [21:48:55]CAPDU: 80 13 01 00 [21:48:55]Write to MH i2c: E2 08 00 65 24 80 13 01 00 00 00 00 00 06 [21:48:55]Write i2c OK [21:48:55]MH_I2C_Read... [21:48:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:55]Read from MH i2c: E2 [21:48:55]MH_I2C_Read... [21:48:55]Read from MH i2c: E2 0E 00 [21:48:55]MH_I2C_Read... [21:48:55]Read from MH i2c: E2 0E 00 65 24 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 93 [21:48:55]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:48:55]wFMCommunicate OK [21:48:55]SAM_PROTO_GetShiftState done [21:48:55]FM_GetShiftState done [21:48:55]req_shift_opened done [21:48:55]requested_item shift.open_date is exist - process it [21:48:55]req_shift_open_date [21:48:55]req_shift_open_date done [21:48:55]produce_requested_data done [21:48:55]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118310,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [21:48:55]process_action_free close_receipt [21:48:55]json_value_free [21:48:55]json_value_free done [21:48:55]process_json_proto returns [21:48:55]Send response to host [21:48:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118310,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [21:48:55]free response buf [21:48:55]execute_script done [21:48:55]execute_script returns [21:48:55]free content buf [21:48:55]Sock 7.Close socket [21:48:55]Sock 7.Thread stoped [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:17]accept exits with 9 [21:50:17]New connection [21:50:17]New thread 3067096420 created [21:50:17]Thread 3066953060 joined [21:50:17]Waiting for new connection... [21:50:17] Sock 9.Parse request [21:50:17]Sock 9.Check first char [21:50:17]Sock 9.First char is OK [21:50:17]request: POST /json_proto HTTP/1.0 [21:50:17]Method: POST [21:50:17]URL: /json_proto [21:50:17]Method is POST - this is cgi request [21:50:17]url: /json_proto [21:50:17]query_string will be loaded in cgi processing [21:50:17]execute_cgi json_proto POST (null) [21:50:17]execute_cgi path=json_proto method=POST [21:50:17]POST find Content-Length [21:50:17]Host: 172.17.45.7:8080 [21:50:17]Content-Length: 678 [21:50:17]Content-Type: application/json [21:50:17] [21:50:17]POST finish read [21:50:17]Found Content-Length = 678 [21:50:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "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:50:17]execute_script... [21:50: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)949183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "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:50:17]POST & json_proto [21:50:17]process_json_proto [21:50:17]json parsed OK: [21:50:17]protocol is kg_v1.0 [21:50:17]action value=close_receipt [21:50:17]process_action close_receipt [21:50:17]cmd_close_receipt [21:50:17]MH_GetDate [21:50:17]Write to MH i2c: F0 00 00 66 24 79 [21:50:17]Write i2c OK [21:50:17]MH_I2C_Read... [21:50:17]Read from MH i2c: F0 [21:50:17]MH_I2C_Read... [21:50:17]Read from MH i2c: F0 09 00 [21:50:17]MH_I2C_Read... [21:50:17]Read from MH i2c: F0 09 00 66 24 00 9A 6B A5 66 90 0F 3E 66 D5 [21:50:17]GetLastDocTimeStamp 1722116933 [21:50:17]current date 1722117018 [21:50:17]FM_GetShiftState [21:50:17]SAM_PROTO_GetShiftState [21:50:17]wFMCommunicate request_size=4 [21:50:17]MH_SAM_APDU [21:50:17]CAPDU: 80 13 01 00 [21:50:17]Write to MH i2c: E2 08 00 67 24 80 13 01 00 00 00 00 00 08 [21:50:17]Write i2c OK [21:50:17]MH_I2C_Read... [21:50:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:17]Read from MH i2c: E2 [21:50:17]MH_I2C_Read... [21:50:17]Read from MH i2c: E2 0E 00 [21:50:17]MH_I2C_Read... [21:50:17]Read from MH i2c: E2 0E 00 67 24 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 95 [21:50:17]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:50:17]wFMCommunicate OK [21:50:17]SAM_PROTO_GetShiftState done [21:50:17]FM_GetShiftState done [21:50:17]opened in 1722038845 [21:50:17]opened+sec_in_day 1722125245 [21:50:17]quantity*price = 80004 [21:50:17]sum+1 = 80005 [21:50:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 254 27.07.2024 21:50 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118311 ФПД: 54551481106839 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T215018&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118311&fm=54551481106839&tin=02508201610067®Number=0000000000092660&sum=80000 [21:50:18]StoreToDocumentArchive [21:50:18]shift 432 fd 118311 [21:50:18]save to /storage/0432/doc_00118311 [21:50:18]save last doc name /storage/0432/doc_00118311 to /storage/kkm_last_doc_name [21:50:18]save OK [21:50:18]Clear old archive folders... [21:50:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:50:18]tlvbuf is 01E01D20 [21:50:18]SAM_PROTO_ClearQueue [21:50:18]wFMCommunicate request_size=4 [21:50:18]MH_SAM_APDU [21:50:18]CAPDU: 80 09 00 00 [21:50:18]Write to MH i2c: E2 08 00 74 24 80 09 00 00 00 00 00 00 0A [21:50:18]Write i2c OK [21:50:18]MH_I2C_Read... [21:50:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:50:18]Read from MH i2c: E2 [21:50:18]MH_I2C_Read... [21:50:18]Read from MH i2c: E2 03 00 [21:50:18]MH_I2C_Read... [21:50:18]Read from MH i2c: E2 03 00 74 24 00 90 00 0C [21:50:18]RAPDU: 90 00 [21:50:18]wFMCommunicate OK [21:50:18]SAM_PROTO_ClearQueue done [21:50:18]KKMCreateOFDPacket [21:50:18]OFDProtocolAddRootSTLVToBuf [21:50:18]FM_MakeSignedData [21:50:18]FM_MakeSignedData [21:50:18]SAM_PROTO_SignData [21:50:18]wFMCommunicate request_size=4 [21:50:18]MH_SAM_APDU [21:50:18]CAPDU: 80 0D 01 02 [21:50:18]Write to MH i2c: E2 08 00 75 24 80 0D 01 02 00 00 00 00 12 [21:50:18]Write i2c OK [21:50:18]MH_I2C_Read... [21:50:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:50:18]Read from MH i2c: E2 [21:50:18]MH_I2C_Read... [21:50:18]Read from MH i2c: E2 03 00 [21:50:18]MH_I2C_Read... [21:50:18]Read from MH i2c: E2 03 00 75 24 00 90 00 0D [21:50:18]RAPDU: 90 00 [21:50:18]wFMCommunicate OK [21:50:18]wFMCommunicate request_size=255 [21:50:18]MH_SAM_APDU [21:50: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 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 FE 00 00 00 F4 03 04 00 9A 6B A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 27 CE 01 00 35 04 06 00 31 [21:50:18]Write to MH i2c: E2 02 01 76 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 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 FE 00 00 00 F4 03 04 00 9A 6B A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 27 CE 01 00 35 04 06 00 31 00 00 29 [21:50:18]Write i2c OK [21:50:18]MH_I2C_Read... [21:50:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:18]Read from MH i2c: E2 [21:50:18]MH_I2C_Read... [21:50:18]Read from MH i2c: E2 03 00 [21:50:18]MH_I2C_Read... [21:50:18]Read from MH i2c: E2 03 00 76 24 00 90 00 0E [21:50:18]RAPDU: 90 00 [21:50:18]wFMCommunicate OK [21:50:18]wFMCommunicate request_size=10 [21:50:18]MH_SAM_APDU [21:50:18]CAPDU: 80 0D 02 02 05 9D 41 A7 41 97 [21:50:18]Write to MH i2c: E2 0D 00 77 24 80 0D 02 02 05 00 9D 41 A7 41 97 00 00 7C [21:50:18]Write i2c OK [21:50:18]MH_I2C_Read... [21:50:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:18]Read from MH i2c: E2 [21:50:18]MH_I2C_Read... [21:50:18]Read from MH i2c: E2 03 00 [21:50:18]MH_I2C_Read... [21:50:18]Read from MH i2c: E2 03 00 77 24 00 90 00 0F [21:50:18]RAPDU: 90 00 [21:50:18]wFMCommunicate OK [21:50:18]wFMCommunicate request_size=4 [21:50:18]MH_SAM_APDU [21:50:18]CAPDU: 80 0D 03 02 [21:50:18]Write to MH i2c: E2 08 00 78 24 80 0D 03 02 00 00 00 00 17 [21:50:18]Write i2c OK [21:50:18]MH_I2C_Read... [21:50:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:50:18]Read from MH i2c: E2 [21:50:18]MH_I2C_Read... [21:50:18]Read from MH i2c: E2 0B 00 [21:50:18]MH_I2C_Read... [21:50:18]Read from MH i2c: E2 0B 00 78 24 00 FC 9C A9 4B AF 8B 06 59 90 00 3D [21:50:18]RAPDU: FC 9C A9 4B AF 8B 06 59 90 00 [21:50:18]wFMCommunicate OK [21:50:18]SAM_PROTO_SignData done [21:50:18]FM_MakeSignedData done [21:50:18]CreateOFDProtocolMessage [21:50:18]wFMCommunicate request_size=4 [21:50:18]MH_SAM_APDU [21:50:18]CAPDU: 80 11 00 00 [21:50:18]Write to MH i2c: E2 08 00 79 24 80 11 00 00 00 00 00 00 17 [21:50:18]Write i2c OK [21:50:18]MH_I2C_Read... [21:50:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:18]Read from MH i2c: E2 [21:50:18]MH_I2C_Read... [21:50:18]Read from MH i2c: E2 17 00 [21:50:18]MH_I2C_Read... [21:50:18]Read from MH i2c: E2 17 00 79 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 72 [21:50:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:50:18]wFMCommunicate OK [21:50:18]CreateOFDProtocolMessage done [21:50:18]OFDSenderStorePacket 118311 [21:50:18]StoreOFDPacket docnum=118311 [21:50:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E5 35 07 01 C6 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 FE 00 00 00 F4 03 04 00 9A 6B A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 27 CE 01 00 35 04 06 00 31 9D 41 A7 41 97 FC 9C A9 4B AF 8B 06 59 [21:50:18]CheckFolder [21:50:18]dirname=/storage/ofd_packets [21:50:18]CheckFolder done [21:50:18]ProducePacketName [21:50:18]name=ofd_packets/00118311 [21:50:18]NVStorageSaveData ofd_packets/00118311 [21:50:18]File name is /storage/ofd_packets/00118311 [21:50:18]Write 301 bytes [21:50:18]NVStorageSaveData done [21:50:18]OFDSenderStorePacket done [21:50:18]KKMCreateOFDPacket done [21:50:18]NVStorageSaveData kkm_last_timestamp [21:50:18]File name is /storage/kkm_last_timestamp [21:50:18]Write 4 bytes [21:50:18]NVStorageSaveData done [21:50:18]ExternCall_PrintAddStr [21:50:18]wPrintStart [21:50:18]Write to MH i2c: 01 00 00 7A 24 9E [21:50:18]Write i2c OK [21:50:18]MH_I2C_Read... [21:50:18]Read from MH i2c: 01 [21:50:18]MH_I2C_Read... [21:50:18]Read from MH i2c: 01 07 00 [21:50:18]MH_I2C_Read... [21:50:18]Read from MH i2c: 01 07 00 7A 24 00 00 00 00 00 FF 0F B3 [21:50:18]RasterBufferAndPrint [21:50:18]line Счет N : (1)949183 [21:50:18]line ИНН: 02508201610067 [21:50:18]line Контрольно-Кассовый Чек [21:50:18]line ПРОДАЖА [21:50:18]line ТРК (МРК, ГНК) : 51 [21:50:18]line Товар: 2710124130 [21:50:18]line Аи-92-К-4 [21:50:18]line 11.800 * 67.80 [21:50:18]line = 800.04 [21:50:18]line НДС 12% НСП 1% [21:50:18]line > о реализуемом товаре [21:50:18]line ОКРУГЛЕНИЕ: -0.04 [21:50:18]line ИТОГО: 800.00 [21:50:18]line Внесено: 800.00 [21:50:18]line СДАЧА: 0.00 [21:50:18]line НСП 1% : 7.08 [21:50:18]line НДС 12% : 84.96 [21:50:18]line Наличными: 800.00 [21:50:18]line Безнал.: 0.00 [21:50:18]line Место: АЗС № 134 "Партнер Нефть" [21:50:18]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:50:18]line СНО: Общий режим [21:50:18]line Чек 254 27.07.2024 21:50 [21:50:18]line Смена: 432 ФФД: 1.0 [21:50:18]line ЗНМ: 0300000044 [21:50:18]line РНМ: 0000000000092660 [21:50:18]line Версия ККМ: 001 [21:50:18]line ФМ: 0000000000874939 [21:50:18]line ФД: 118311 [21:50:18]line ФПД: 54551481106839 [21:50:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T215018&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118311&fm=54551481106839&tin=02508201610067®Number=0000000000092660&sum=80000 [21:50:19]OFD Sender: Processing packet 118311 [packets to send 86, broken 85] [21:50:19]ProducePacketName [21:50:19]name=ofd_packets/00118311 [21:50:19]OFD Sender: To server: pG, [21:50:19]CommunicateWithHost lk.salyk.kg:30040 [21:50:19]ConnectInit lk.salyk.kg [21:50:19]written 0, free lines is 4095 [21:50:19]Connected sock=10 [21:50:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E5 35 07 01 C6 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 FE 00 00 00 F4 03 04 00 9A 6B A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 27 CE 01 00 35 04 06 00 31 9D 41 A7 41 97 FC 9C A9 4B AF 8B 06 59 [21:50:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F6 91 47 00 8C 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 27 CE 01 00 F4 03 04 00 2C 19 A5 66 B6 04 01 00 00 28 87 3D 0A B4 2F 41 BD [21:50:19]CommunicateWithHost err = 0 [21:50:19]CheckOFDResponse [21:50:19]1017 (14) - 77093643461234 [21:50:19]1041 (16) - 0000000000874939 [21:50:19]1040 (4) - 118311 [21:50:19]1012 (4) - 27.07.2024 15:58 [21:50:19]1206 (1) - 0 [21:50:19]OFD Sender: Remove packet 118311 [21:50:19]ProducePacketName [21:50:19]name=ofd_packets/00118311 [21:50:19]NVStorageDeleteData [21:50:19]Write to MH i2c: 01 00 00 A4 24 C8 [21:50:19]Write i2c OK [21:50:19]MH_I2C_Read... [21:50:19]Read from MH i2c: 01 [21:50:19]MH_I2C_Read... [21:50:19]Read from MH i2c: 01 07 00 [21:50:19]MH_I2C_Read... [21:50:19]Read from MH i2c: 01 07 00 A4 24 00 00 00 00 00 CB 0C A6 [21:50:19]RasterBufferAndPrint [21:50:19]line [21:50:19]line [21:50:19]line [21:50:19]line [21:50:19]line [21:50:19]written 0, free lines is 3283 [21:50:19]MH_Cut [21:50:19]Write to MH i2c: D1 01 00 AB 24 01 A1 [21:50:19]Write i2c OK [21:50:19]MH_I2C_Read... [21:50:19]Read from MH i2c: D1 [21:50:19]MH_I2C_Read... [21:50:19]Read from MH i2c: D1 01 00 [21:50:19]MH_I2C_Read... [21:50:19]Read from MH i2c: D1 01 00 AB 24 00 A0 [21:50:19]Write to MH i2c: 01 00 00 AC 24 D0 [21:50:19]Write i2c OK [21:50:19]MH_I2C_Read... [21:50:19]OFD Sender: No OFD packet to send [21:50:20]*** Cut start [21:50:20]*** Partial cut [21:50:20]*** CUTSNS_PIN = 1 [21:50:20]*** CUTSNS_PIN = 0 [21:50:20]*** Brake cut motor [21:50:20]Read from MH i2c: 01 [21:50:20]MH_I2C_Read... [21:50:20]*** Stop cut motor [21:50:20]*** Cut end [21:50:20]Read from MH i2c: 01 07 00 [21:50:20]MH_I2C_Read... [21:50:20]Read from MH i2c: 01 07 00 AC 24 00 00 00 00 00 FF 0F E5 [21:50:20]process_action close_receipt done [21:50:20]requested_data is exist [21:50:20]produce_requested_data [21:50:20]requested_item fm.sn is exist - process it [21:50:20]wFMCommunicate request_size=4 [21:50:20]MH_SAM_APDU [21:50:20]CAPDU: 80 11 00 00 [21:50:20]Write to MH i2c: E2 08 00 AD 24 80 11 00 00 00 00 00 00 4B [21:50:20]Write i2c OK [21:50:20]MH_I2C_Read... [21:50:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:21]Read from MH i2c: E2 [21:50:21]MH_I2C_Read... [21:50:21]Read from MH i2c: E2 17 00 [21:50:21]MH_I2C_Read... [21:50:21]Read from MH i2c: E2 17 00 AD 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A6 [21:50:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:50:21]wFMCommunicate OK [21:50:21]requested_item fd.num is exist - process it [21:50:21]SAM_PROTO_GetFieldsCounters [21:50:21]wFMCommunicate request_size=4 [21:50:21]MH_SAM_APDU [21:50:21]CAPDU: 80 13 00 00 [21:50:21]Write to MH i2c: E2 08 00 AE 24 80 13 00 00 00 00 00 00 4E [21:50:21]Write i2c OK [21:50:21]MH_I2C_Read... [21:50:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:50:21]Read from MH i2c: E2 [21:50:21]MH_I2C_Read... [21:50:21]Read from MH i2c: E2 62 00 [21:50:21]MH_I2C_Read... [21:50:21]Read from MH i2c: E2 62 00 AE 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 27 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [21:50:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 27 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:50:21]wFMCommunicate OK [21:50:21]SAM_PROTO_GetFieldsCounters done [21:50:21]requested_item shift.num is exist - process it [21:50:21]requested_item shift.opened is exist - process it [21:50:21]req_shift_opened [21:50:21]FM_GetShiftState [21:50:21]SAM_PROTO_GetShiftState [21:50:21]wFMCommunicate request_size=4 [21:50:21]MH_SAM_APDU [21:50:21]CAPDU: 80 13 01 00 [21:50:21]Write to MH i2c: E2 08 00 AF 24 80 13 01 00 00 00 00 00 50 [21:50:21]Write i2c OK [21:50:21]MH_I2C_Read... [21:50:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:21]Read from MH i2c: E2 [21:50:21]MH_I2C_Read... [21:50:21]Read from MH i2c: E2 0E 00 [21:50:21]MH_I2C_Read... [21:50:21]Read from MH i2c: E2 0E 00 AF 24 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 DD [21:50:21]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:50:21]wFMCommunicate OK [21:50:21]SAM_PROTO_GetShiftState done [21:50:21]FM_GetShiftState done [21:50:21]req_shift_opened done [21:50:21]requested_item shift.open_date is exist - process it [21:50:21]req_shift_open_date [21:50:21]req_shift_open_date done [21:50:21]produce_requested_data done [21:50:21]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118311,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [21:50:21]process_action_free close_receipt [21:50:21]json_value_free [21:50:21]json_value_free done [21:50:21]process_json_proto returns [21:50:21]Send response to host [21:50:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118311,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [21:50:21]free response buf [21:50:21]execute_script done [21:50:21]execute_script returns [21:50:21]free content buf [21:50:21]Sock 9.Close socket [21:50:21]Sock 9.Thread stoped [21:50:24]OFD Sender: No OFD packet to send [21:50:30]OFD Sender: No OFD packet to send [21:50:35]OFD Sender: No OFD packet to send [21:50:40]OFD Sender: No OFD packet to send [21:50:45]OFD Sender: No OFD packet to send [21:50:50]OFD Sender: No OFD packet to send [21:50:55]OFD Sender: No OFD packet to send [21:51:00]OFD Sender: No OFD packet to send [21:51:05]OFD Sender: No OFD packet to send [21:51:10]OFD Sender: No OFD packet to send [21:51:15]OFD Sender: No OFD packet to send [21:51:20]OFD Sender: No OFD packet to send [21:51:25]OFD Sender: No OFD packet to send [21:51:30]OFD Sender: No OFD packet to send [21:51:35]OFD Sender: No OFD packet to send [21:51:40]OFD Sender: No OFD packet to send [21:51:45]OFD Sender: No OFD packet to send [21:51:50]OFD Sender: No OFD packet to send [21:51:55]OFD Sender: No OFD packet to send [21:52:00]OFD Sender: No OFD packet to send [21:52:05]OFD Sender: No OFD packet to send [21:52:10]OFD Sender: No OFD packet to send [21:52:15]OFD Sender: No OFD packet to send [21:52:20]OFD Sender: No OFD packet to send [21:52:25]OFD Sender: No OFD packet to send [21:52:30]OFD Sender: No OFD packet to send [21:52:35]OFD Sender: No OFD packet to send [21:52:40]OFD Sender: No OFD packet to send [21:52:45]OFD Sender: No OFD packet to send [21:52:50]OFD Sender: No OFD packet to send [21:52:55]OFD Sender: No OFD packet to send [21:53:00]OFD Sender: No OFD packet to send [21:53:05]OFD Sender: No OFD packet to send [21:53:10]OFD Sender: No OFD packet to send [21:53:15]OFD Sender: No OFD packet to send [21:53:20]OFD Sender: No OFD packet to send [21:53:25]OFD Sender: No OFD packet to send [21:53:30]OFD Sender: No OFD packet to send [21:53:35]OFD Sender: No OFD packet to send [21:53:40]OFD Sender: No OFD packet to send [21:53:45]OFD Sender: No OFD packet to send [21:53:50]OFD Sender: No OFD packet to send [21:53:55]OFD Sender: No OFD packet to send [21:54:00]OFD Sender: No OFD packet to send [21:54:05]OFD Sender: No OFD packet to send [21:54:10]OFD Sender: No OFD packet to send [21:54:15]OFD Sender: No OFD packet to send [21:54:20]OFD Sender: No OFD packet to send [21:54:25]OFD Sender: No OFD packet to send [21:54:30]OFD Sender: No OFD packet to send [21:54:35]OFD Sender: No OFD packet to send [21:54:40]OFD Sender: No OFD packet to send [21:54:45]OFD Sender: No OFD packet to send [21:54:50]OFD Sender: No OFD packet to send [21:54:55]OFD Sender: No OFD packet to send [21:55:00]OFD Sender: No OFD packet to send [21:55:05]OFD Sender: No OFD packet to send [21:55:10]OFD Sender: No OFD packet to send [21:55:15]OFD Sender: No OFD packet to send [21:55:20]OFD Sender: No OFD packet to send [21:55:25]OFD Sender: No OFD packet to send [21:55:30]OFD Sender: No OFD packet to send [21:55:35]OFD Sender: No OFD packet to send [21:55:40]OFD Sender: No OFD packet to send [21:55:45]OFD Sender: No OFD packet to send [21:55:50]OFD Sender: No OFD packet to send [21:55:55]OFD Sender: No OFD packet to send [21:56:00]OFD Sender: No OFD packet to send [21:56:05]OFD Sender: No OFD packet to send [21:56:10]OFD Sender: No OFD packet to send [21:56:15]OFD Sender: No OFD packet to send [21:56:20]OFD Sender: No OFD packet to send [21:56:25]OFD Sender: No OFD packet to send [21:56:30]OFD Sender: No OFD packet to send [21:56:35]OFD Sender: No OFD packet to send [21:56:40]OFD Sender: No OFD packet to send [21:56:45]OFD Sender: No OFD packet to send [21:56:50]OFD Sender: No OFD packet to send [21:56:55]OFD Sender: No OFD packet to send [21:57:00]OFD Sender: No OFD packet to send [21:57:05]OFD Sender: No OFD packet to send [21:57:10]OFD Sender: No OFD packet to send [21:57:15]OFD Sender: No OFD packet to send [21:57:20]OFD Sender: No OFD packet to send [21:57:25]OFD Sender: No OFD packet to send [21:57:30]OFD Sender: No OFD packet to send [21:57:35]OFD Sender: No OFD packet to send [21:57:36]accept exits with 7 [21:57:36]New connection [21:57:36]New thread 3066953060 created [21:57:36]Thread 3067096420 joined [21:57:36]Waiting for new connection... [21:57:36] Sock 7.Parse request [21:57:36]Sock 7.Check first char [21:57:36]Sock 7.First char is OK [21:57:36]request: POST /json_proto HTTP/1.0 [21:57:36]Method: POST [21:57:36]URL: /json_proto [21:57:36]Method is POST - this is cgi request [21:57:36]url: /json_proto [21:57:36]query_string will be loaded in cgi processing [21:57:36]execute_cgi json_proto POST (null) [21:57:36]execute_cgi path=json_proto method=POST [21:57:36]POST find Content-Length [21:57:36]Host: 172.17.45.7:8080 [21:57:36]Content-Length: 677 [21:57:36]Content-Type: application/json [21:57:36] [21:57:36]POST finish read [21:57:36]Found Content-Length = 677 [21:57:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:57:36]execute_script... [21:57: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)949184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:57:36]POST & json_proto [21:57:36]process_json_proto [21:57:36]json parsed OK: [21:57:36]protocol is kg_v1.0 [21:57:36]action value=close_receipt [21:57:36]process_action close_receipt [21:57:36]cmd_close_receipt [21:57:36]MH_GetDate [21:57:36]Write to MH i2c: F0 00 00 B0 24 C3 [21:57:36]Write i2c OK [21:57:36]MH_I2C_Read... [21:57:36]Read from MH i2c: F0 [21:57:36]MH_I2C_Read... [21:57:36]Read from MH i2c: F0 09 00 [21:57:36]MH_I2C_Read... [21:57:36]Read from MH i2c: F0 09 00 B0 24 00 52 6D A5 66 90 0F 3E 66 D9 [21:57:36]GetLastDocTimeStamp 1722117018 [21:57:36]current date 1722117458 [21:57:36]FM_GetShiftState [21:57:36]SAM_PROTO_GetShiftState [21:57:36]wFMCommunicate request_size=4 [21:57:36]MH_SAM_APDU [21:57:36]CAPDU: 80 13 01 00 [21:57:36]Write to MH i2c: E2 08 00 B1 24 80 13 01 00 00 00 00 00 52 [21:57:36]Write i2c OK [21:57:36]MH_I2C_Read... [21:57:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:36]Read from MH i2c: E2 [21:57:36]MH_I2C_Read... [21:57:36]Read from MH i2c: E2 0E 00 [21:57:36]MH_I2C_Read... [21:57:36]Read from MH i2c: E2 0E 00 B1 24 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 DF [21:57:36]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:57:36]wFMCommunicate OK [21:57:36]SAM_PROTO_GetShiftState done [21:57:36]FM_GetShiftState done [21:57:36]opened in 1722038845 [21:57:36]opened+sec_in_day 1722125245 [21:57:36]quantity*price = 50036 [21:57:36]sum+1 = 50037 [21:57:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 255 27.07.2024 21:57 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118312 ФПД: 125765448521341 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T215738&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118312&fm=125765448521341&tin=02508201610067®Number=0000000000092660&sum=50000 [21:57:37]StoreToDocumentArchive [21:57:37]shift 432 fd 118312 [21:57:37]save to /storage/0432/doc_00118312 [21:57:37]save last doc name /storage/0432/doc_00118312 to /storage/kkm_last_doc_name [21:57:37]save OK [21:57:37]Clear old archive folders... [21:57:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:57:37]tlvbuf is B6F7B440 [21:57:37]SAM_PROTO_ClearQueue [21:57:37]wFMCommunicate request_size=4 [21:57:37]MH_SAM_APDU [21:57:37]CAPDU: 80 09 00 00 [21:57:37]Write to MH i2c: E2 08 00 BE 24 80 09 00 00 00 00 00 00 54 [21:57:37]Write i2c OK [21:57:37]MH_I2C_Read... [21:57:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:57:37]Read from MH i2c: E2 [21:57:37]MH_I2C_Read... [21:57:37]Read from MH i2c: E2 03 00 [21:57:37]MH_I2C_Read... [21:57:37]Read from MH i2c: E2 03 00 BE 24 00 90 00 56 [21:57:37]RAPDU: 90 00 [21:57:37]wFMCommunicate OK [21:57:37]SAM_PROTO_ClearQueue done [21:57:37]KKMCreateOFDPacket [21:57:37]OFDProtocolAddRootSTLVToBuf [21:57:37]FM_MakeSignedData [21:57:37]FM_MakeSignedData [21:57:37]SAM_PROTO_SignData [21:57:37]wFMCommunicate request_size=4 [21:57:37]MH_SAM_APDU [21:57:37]CAPDU: 80 0D 01 02 [21:57:37]Write to MH i2c: E2 08 00 BF 24 80 0D 01 02 00 00 00 00 5C [21:57:37]Write i2c OK [21:57:37]MH_I2C_Read... [21:57:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:57:37]Read from MH i2c: E2 [21:57:37]MH_I2C_Read... [21:57:37]Read from MH i2c: E2 03 00 [21:57:37]MH_I2C_Read... [21:57:37]Read from MH i2c: E2 03 00 BF 24 00 90 00 57 [21:57:37]RAPDU: 90 00 [21:57:37]wFMCommunicate OK [21:57:37]wFMCommunicate request_size=255 [21:57:37]MH_SAM_APDU [21:57: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 FF 00 00 00 F4 03 04 00 52 6D A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 28 CE 01 00 35 04 06 00 72 [21:57:37]Write to MH i2c: E2 02 01 C0 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 FF 00 00 00 F4 03 04 00 52 6D A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 28 CE 01 00 35 04 06 00 72 00 00 C3 [21:57:37]Write i2c OK [21:57:37]MH_I2C_Read... [21:57:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:38]Read from MH i2c: E2 [21:57:38]MH_I2C_Read... [21:57:38]Read from MH i2c: E2 03 00 [21:57:38]MH_I2C_Read... [21:57:38]Read from MH i2c: E2 03 00 C0 24 00 90 00 58 [21:57:38]RAPDU: 90 00 [21:57:38]wFMCommunicate OK [21:57:38]wFMCommunicate request_size=10 [21:57:38]MH_SAM_APDU [21:57:38]CAPDU: 80 0D 02 02 05 62 0C E2 56 7D [21:57:38]Write to MH i2c: E2 0D 00 C1 24 80 0D 02 02 05 00 62 0C E2 56 7D 00 00 8C [21:57:38]Write i2c OK [21:57:38]MH_I2C_Read... [21:57:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:38]Read from MH i2c: E2 [21:57:38]MH_I2C_Read... [21:57:38]Read from MH i2c: E2 03 00 [21:57:38]MH_I2C_Read... [21:57:38]Read from MH i2c: E2 03 00 C1 24 00 90 00 59 [21:57:38]RAPDU: 90 00 [21:57:38]wFMCommunicate OK [21:57:38]wFMCommunicate request_size=4 [21:57:38]MH_SAM_APDU [21:57:38]CAPDU: 80 0D 03 02 [21:57:38]Write to MH i2c: E2 08 00 C2 24 80 0D 03 02 00 00 00 00 61 [21:57:38]Write i2c OK [21:57:38]MH_I2C_Read... [21:57:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:57:38]Read from MH i2c: E2 [21:57:38]MH_I2C_Read... [21:57:38]Read from MH i2c: E2 0B 00 [21:57:38]MH_I2C_Read... [21:57:38]Read from MH i2c: E2 0B 00 C2 24 00 C2 46 6C 7B 9C CA F3 88 90 00 32 [21:57:38]RAPDU: C2 46 6C 7B 9C CA F3 88 90 00 [21:57:38]wFMCommunicate OK [21:57:38]SAM_PROTO_SignData done [21:57:38]FM_MakeSignedData done [21:57:38]CreateOFDProtocolMessage [21:57:38]wFMCommunicate request_size=4 [21:57:38]MH_SAM_APDU [21:57:38]CAPDU: 80 11 00 00 [21:57:38]Write to MH i2c: E2 08 00 C3 24 80 11 00 00 00 00 00 00 61 [21:57:38]Write i2c OK [21:57:38]MH_I2C_Read... [21:57:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:38]Read from MH i2c: E2 [21:57:38]MH_I2C_Read... [21:57:38]Read from MH i2c: E2 17 00 [21:57:38]MH_I2C_Read... [21:57:38]Read from MH i2c: E2 17 00 C3 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BC [21:57:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:57:38]wFMCommunicate OK [21:57:38]CreateOFDProtocolMessage done [21:57:38]OFDSenderStorePacket 118312 [21:57:38]StoreOFDPacket docnum=118312 [21:57:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 25 17 07 01 A1 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 FF 00 00 00 F4 03 04 00 52 6D A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 28 CE 01 00 35 04 06 00 72 62 0C E2 56 7D C2 46 6C 7B 9C CA F3 88 [21:57:38]CheckFolder [21:57:38]dirname=/storage/ofd_packets [21:57:38]CheckFolder done [21:57:38]ProducePacketName [21:57:38]name=ofd_packets/00118312 [21:57:38]NVStorageSaveData ofd_packets/00118312 [21:57:38]File name is /storage/ofd_packets/00118312 [21:57:38]Write 301 bytes [21:57:38]NVStorageSaveData done [21:57:38]OFDSenderStorePacket done [21:57:38]KKMCreateOFDPacket done [21:57:38]NVStorageSaveData kkm_last_timestamp [21:57:38]File name is /storage/kkm_last_timestamp [21:57:38]Write 4 bytes [21:57:38]NVStorageSaveData done [21:57:38]ExternCall_PrintAddStr [21:57:38]wPrintStart [21:57:38]Write to MH i2c: 01 00 00 C4 24 E8 [21:57:38]Write i2c OK [21:57:38]MH_I2C_Read... [21:57:38]Read from MH i2c: 01 [21:57:38]MH_I2C_Read... [21:57:38]Read from MH i2c: 01 07 00 [21:57:38]MH_I2C_Read... [21:57:38]Read from MH i2c: 01 07 00 C4 24 00 00 00 00 00 FF 0F FD [21:57:38]RasterBufferAndPrint [21:57:38]line Счет N : (1)949184 [21:57:38]line ИНН: 02508201610067 [21:57:38]line Контрольно-Кассовый Чек [21:57:38]line ПРОДАЖА [21:57:38]line ТРК (МРК, ГНК) : 31 [21:57:38]line Товар: 2710124130 [21:57:38]line Аи-92-К-4 [21:57:38]line 7.380 * 67.80 [21:57:38]line = 500.36 [21:57:38]line НДС 12% НСП 1% [21:57:38]line > о реализуемом товаре [21:57:38]line ОКРУГЛЕНИЕ: -0.36 [21:57:38]line ИТОГО: 500.00 [21:57:38]line Внесено: 500.00 [21:57:38]line СДАЧА: 0.00 [21:57:38]line НСП 1% : 4.43 [21:57:38]line НДС 12% : 53.14 [21:57:38]line Наличными: 500.00 [21:57:38]line Безнал.: 0.00 [21:57:38]line Место: АЗС № 134 "Партнер Нефть" [21:57:38]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:57:38]line СНО: Общий режим [21:57:38]line Чек 255 27.07.2024 21:57 [21:57:38]line Смена: 432 ФФД: 1.0 [21:57:38]line ЗНМ: 0300000044 [21:57:38]line РНМ: 0000000000092660 [21:57:38]line Версия ККМ: 001 [21:57:38]line ФМ: 0000000000874939 [21:57:38]line ФД: 118312 [21:57:38]line ФПД: 125765448521341 [21:57:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T215738&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118312&fm=125765448521341&tin=02508201610067®Number=0000000000092660&sum=50000 [21:57:38]OFD Sender: Processing packet 118312 [packets to send 86, broken 85] [21:57:38]ProducePacketName [21:57:38]name=ofd_packets/00118312 [21:57:38]OFD Sender: To server: pG, [21:57:38]CommunicateWithHost lk.salyk.kg:30040 [21:57:38]ConnectInit lk.salyk.kg [21:57:38]written 0, free lines is 4095 [21:57:38]Connected sock=10 [21:57:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 25 17 07 01 A1 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 FF 00 00 00 F4 03 04 00 52 6D A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 28 CE 01 00 35 04 06 00 72 62 0C E2 56 7D C2 46 6C 7B 9C CA F3 88 [21:57:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 AE F3 47 00 48 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 28 CE 01 00 F4 03 04 00 E4 1A A5 66 B6 04 01 00 00 8F CF 60 B2 F2 43 D6 4F [21:57:38]CommunicateWithHost err = 0 [21:57:38]CheckOFDResponse [21:57:38]1017 (14) - 77093643461234 [21:57:38]1041 (16) - 0000000000874939 [21:57:38]1040 (4) - 118312 [21:57:38]1012 (4) - 27.07.2024 16:05 [21:57:38]1206 (1) - 0 [21:57:38]OFD Sender: Remove packet 118312 [21:57:38]ProducePacketName [21:57:38]name=ofd_packets/00118312 [21:57:38]NVStorageDeleteData [21:57:39]Write to MH i2c: 01 00 00 EE 24 12 [21:57:39]Write i2c OK [21:57:39]MH_I2C_Read... [21:57:39]Read from MH i2c: 01 [21:57:39]MH_I2C_Read... [21:57:39]Read from MH i2c: 01 07 00 [21:57:39]MH_I2C_Read... [21:57:39]Read from MH i2c: 01 07 00 EE 24 00 00 00 00 00 E1 0C 06 [21:57:39]RasterBufferAndPrint [21:57:39]line [21:57:39]line [21:57:39]line [21:57:39]line [21:57:39]line [21:57:39]written 0, free lines is 3306 [21:57:39]MH_Cut [21:57:39]Write to MH i2c: D1 01 00 F5 24 01 EB [21:57:39]Write i2c OK [21:57:39]MH_I2C_Read... [21:57:39]Read from MH i2c: D1 [21:57:39]MH_I2C_Read... [21:57:39]Read from MH i2c: D1 01 00 [21:57:39]MH_I2C_Read... [21:57:39]Read from MH i2c: D1 01 00 F5 24 00 EA [21:57:39]Write to MH i2c: 01 00 00 F6 24 1A [21:57:39]Write i2c OK [21:57:39]MH_I2C_Read... [21:57:39]OFD Sender: No OFD packet to send [21:57:39]*** Cut start [21:57:39]*** Partial cut [21:57:39]*** CUTSNS_PIN = 1 [21:57:39]*** CUTSNS_PIN = 0 [21:57:40]*** Brake cut motor [21:57:40]Read from MH i2c: 01 [21:57:40]MH_I2C_Read... [21:57:40]*** Stop cut motor [21:57:40]*** Cut end [21:57:40]Read from MH i2c: 01 07 00 [21:57:40]MH_I2C_Read... [21:57:40]Read from MH i2c: 01 07 00 F6 24 00 00 00 00 00 FF 0F 2F [21:57:40]process_action close_receipt done [21:57:40]requested_data is exist [21:57:40]produce_requested_data [21:57:40]requested_item fm.sn is exist - process it [21:57:40]wFMCommunicate request_size=4 [21:57:40]MH_SAM_APDU [21:57:40]CAPDU: 80 11 00 00 [21:57:40]Write to MH i2c: E2 08 00 F7 24 80 11 00 00 00 00 00 00 95 [21:57:40]Write i2c OK [21:57:40]MH_I2C_Read... [21:57:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:40]Read from MH i2c: E2 [21:57:40]MH_I2C_Read... [21:57:40]Read from MH i2c: E2 17 00 [21:57:40]MH_I2C_Read... [21:57:40]Read from MH i2c: E2 17 00 F7 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F0 [21:57:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:57:40]wFMCommunicate OK [21:57:40]requested_item fd.num is exist - process it [21:57:40]SAM_PROTO_GetFieldsCounters [21:57:40]wFMCommunicate request_size=4 [21:57:40]MH_SAM_APDU [21:57:40]CAPDU: 80 13 00 00 [21:57:40]Write to MH i2c: E2 08 00 F8 24 80 13 00 00 00 00 00 00 98 [21:57:40]Write i2c OK [21:57:40]MH_I2C_Read... [21:57:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:57:40]Read from MH i2c: E2 [21:57:40]MH_I2C_Read... [21:57:40]Read from MH i2c: E2 62 00 [21:57:40]MH_I2C_Read... [21:57:40]Read from MH i2c: E2 62 00 F8 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 28 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 65 [21:57:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 28 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:57:40]wFMCommunicate OK [21:57:40]SAM_PROTO_GetFieldsCounters done [21:57:40]requested_item shift.num is exist - process it [21:57:40]requested_item shift.opened is exist - process it [21:57:40]req_shift_opened [21:57:40]FM_GetShiftState [21:57:40]SAM_PROTO_GetShiftState [21:57:40]wFMCommunicate request_size=4 [21:57:40]MH_SAM_APDU [21:57:40]CAPDU: 80 13 01 00 [21:57:40]Write to MH i2c: E2 08 00 F9 24 80 13 01 00 00 00 00 00 9A [21:57:40]Write i2c OK [21:57:40]MH_I2C_Read... [21:57:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:40]Read from MH i2c: E2 [21:57:40]MH_I2C_Read... [21:57:40]Read from MH i2c: E2 0E 00 [21:57:40]MH_I2C_Read... [21:57:40]Read from MH i2c: E2 0E 00 F9 24 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 27 [21:57:40]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:57:40]wFMCommunicate OK [21:57:40]SAM_PROTO_GetShiftState done [21:57:40]FM_GetShiftState done [21:57:40]req_shift_opened done [21:57:40]requested_item shift.open_date is exist - process it [21:57:40]req_shift_open_date [21:57:40]req_shift_open_date done [21:57:40]produce_requested_data done [21:57:40]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118312,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [21:57:40]process_action_free close_receipt [21:57:40]json_value_free [21:57:40]json_value_free done [21:57:40]process_json_proto returns [21:57:40]Send response to host [21:57:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118312,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [21:57:40]free response buf [21:57:40]execute_script done [21:57:40]execute_script returns [21:57:40]free content buf [21:57:40]Sock 7.Close socket [21:57:40]Sock 7.Thread stoped [21:57:44]OFD Sender: No OFD packet to send [21:57:49]OFD Sender: No OFD packet to send [21:57:50]accept exits with 9 [21:57:50]New connection [21:57:50]New thread 3067096420 created [21:57:50]Thread 3066953060 joined [21:57:50]Waiting for new connection... [21:57:50] Sock 9.Parse request [21:57:50]Sock 9.Check first char [21:57:50]Sock 9.First char is OK [21:57:50]request: POST /json_proto HTTP/1.0 [21:57:50]Method: POST [21:57:50]URL: /json_proto [21:57:50]Method is POST - this is cgi request [21:57:50]url: /json_proto [21:57:50]query_string will be loaded in cgi processing [21:57:50]execute_cgi json_proto POST (null) [21:57:50]execute_cgi path=json_proto method=POST [21:57:50]POST find Content-Length [21:57:50]Host: 172.17.45.7:8080 [21:57:50]Content-Length: 682 [21:57:50]Content-Type: application/json [21:57:50] [21:57:50]POST finish read [21:57:50]Found Content-Length = 682 [21:57:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:57:50]execute_script... [21:57: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)949185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:57:50]POST & json_proto [21:57:50]process_json_proto [21:57:50]json parsed OK: [21:57:50]protocol is kg_v1.0 [21:57:50]action value=close_receipt [21:57:50]process_action close_receipt [21:57:50]cmd_close_receipt [21:57:50]MH_GetDate [21:57:50]Write to MH i2c: F0 00 00 FA 24 0D [21:57:50]Write i2c OK [21:57:50]MH_I2C_Read... [21:57:50]Read from MH i2c: F0 [21:57:50]MH_I2C_Read... [21:57:50]Read from MH i2c: F0 09 00 [21:57:50]MH_I2C_Read... [21:57:50]Read from MH i2c: F0 09 00 FA 24 00 5F 6D A5 66 90 0F 3E 66 30 [21:57:50]GetLastDocTimeStamp 1722117458 [21:57:50]current date 1722117471 [21:57:50]FM_GetShiftState [21:57:50]SAM_PROTO_GetShiftState [21:57:50]wFMCommunicate request_size=4 [21:57:50]MH_SAM_APDU [21:57:50]CAPDU: 80 13 01 00 [21:57:50]Write to MH i2c: E2 08 00 FB 24 80 13 01 00 00 00 00 00 9C [21:57:50]Write i2c OK [21:57:50]MH_I2C_Read... [21:57:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:50]Read from MH i2c: E2 [21:57:50]MH_I2C_Read... [21:57:50]Read from MH i2c: E2 0E 00 [21:57:50]MH_I2C_Read... [21:57:50]Read from MH i2c: E2 0E 00 FB 24 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 29 [21:57:50]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:57:50]wFMCommunicate OK [21:57:50]SAM_PROTO_GetShiftState done [21:57:50]FM_GetShiftState done [21:57:50]opened in 1722038845 [21:57:50]opened+sec_in_day 1722125245 [21:57:50]quantity*price = 100005 [21:57:50]sum+1 = 100006 [21:57:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 256 27.07.2024 21:57 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118313 ФПД: 233182501616853 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T215751&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118313&fm=233182501616853&tin=02508201610067®Number=0000000000092660&sum=100000 [21:57:51]StoreToDocumentArchive [21:57:51]shift 432 fd 118313 [21:57:51]save to /storage/0432/doc_00118313 [21:57:51]save last doc name /storage/0432/doc_00118313 to /storage/kkm_last_doc_name [21:57:51]save OK [21:57:51]Clear old archive folders... [21:57:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:57:51]tlvbuf is 01E19910 [21:57:51]SAM_PROTO_ClearQueue [21:57:51]wFMCommunicate request_size=4 [21:57:51]MH_SAM_APDU [21:57:51]CAPDU: 80 09 00 00 [21:57:51]Write to MH i2c: E2 08 00 08 25 80 09 00 00 00 00 00 00 9F [21:57:51]Write i2c OK [21:57:51]MH_I2C_Read... [21:57:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:57:51]Read from MH i2c: E2 [21:57:51]MH_I2C_Read... [21:57:51]Read from MH i2c: E2 03 00 [21:57:51]MH_I2C_Read... [21:57:51]Read from MH i2c: E2 03 00 08 25 00 90 00 A1 [21:57:51]RAPDU: 90 00 [21:57:51]wFMCommunicate OK [21:57:51]SAM_PROTO_ClearQueue done [21:57:51]KKMCreateOFDPacket [21:57:51]OFDProtocolAddRootSTLVToBuf [21:57:51]FM_MakeSignedData [21:57:51]FM_MakeSignedData [21:57:51]SAM_PROTO_SignData [21:57:51]wFMCommunicate request_size=4 [21:57:51]MH_SAM_APDU [21:57:51]CAPDU: 80 0D 01 02 [21:57:51]Write to MH i2c: E2 08 00 09 25 80 0D 01 02 00 00 00 00 A7 [21:57:51]Write i2c OK [21:57:51]MH_I2C_Read... [21:57:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:57:51]Read from MH i2c: E2 [21:57:51]MH_I2C_Read... [21:57:51]Read from MH i2c: E2 03 00 [21:57:51]MH_I2C_Read... [21:57:51]Read from MH i2c: E2 03 00 09 25 00 90 00 A2 [21:57:51]RAPDU: 90 00 [21:57:51]wFMCommunicate OK [21:57:51]wFMCommunicate request_size=255 [21:57:51]MH_SAM_APDU [21: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 5F 6D A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 29 CE 01 00 35 04 06 00 D4 [21:57:51]Write to MH i2c: E2 02 01 0A 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 5F 6D A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 29 CE 01 00 35 04 06 00 D4 00 00 0F [21:57:51]Write i2c OK [21:57:51]MH_I2C_Read... [21:57:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:51]Read from MH i2c: E2 [21:57:51]MH_I2C_Read... [21:57:51]Read from MH i2c: E2 03 00 [21:57:51]MH_I2C_Read... [21:57:51]Read from MH i2c: E2 03 00 0A 25 00 90 00 A3 [21:57:51]RAPDU: 90 00 [21:57:51]wFMCommunicate OK [21:57:51]wFMCommunicate request_size=10 [21:57:51]MH_SAM_APDU [21:57:51]CAPDU: 80 0D 02 02 05 14 08 2D 3C D5 [21:57:51]Write to MH i2c: E2 0D 00 0B 25 80 0D 02 02 05 00 14 08 2D 3C D5 00 00 0E [21:57:51]Write i2c OK [21:57:51]MH_I2C_Read... [21:57:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:51]Read from MH i2c: E2 [21:57:51]MH_I2C_Read... [21:57:51]Read from MH i2c: E2 03 00 [21:57:51]MH_I2C_Read... [21:57:51]Read from MH i2c: E2 03 00 0B 25 00 90 00 A4 [21:57:51]RAPDU: 90 00 [21:57:51]wFMCommunicate OK [21:57:51]wFMCommunicate request_size=4 [21:57:51]MH_SAM_APDU [21:57:51]CAPDU: 80 0D 03 02 [21:57:51]Write to MH i2c: E2 08 00 0C 25 80 0D 03 02 00 00 00 00 AC [21:57:51]Write i2c OK [21:57:51]MH_I2C_Read... [21:57:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:57:51]Read from MH i2c: E2 [21:57:51]MH_I2C_Read... [21:57:51]Read from MH i2c: E2 0B 00 [21:57:51]MH_I2C_Read... [21:57:51]Read from MH i2c: E2 0B 00 0C 25 00 68 85 3C D2 AA 24 BD 61 90 00 94 [21:57:51]RAPDU: 68 85 3C D2 AA 24 BD 61 90 00 [21:57:51]wFMCommunicate OK [21:57:51]SAM_PROTO_SignData done [21:57:51]FM_MakeSignedData done [21:57:51]CreateOFDProtocolMessage [21:57:51]wFMCommunicate request_size=4 [21:57:51]MH_SAM_APDU [21:57:51]CAPDU: 80 11 00 00 [21:57:51]Write to MH i2c: E2 08 00 0D 25 80 11 00 00 00 00 00 00 AC [21:57:51]Write i2c OK [21:57:51]MH_I2C_Read... [21:57:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:51]Read from MH i2c: E2 [21:57:51]MH_I2C_Read... [21:57:51]Read from MH i2c: E2 17 00 [21:57:51]MH_I2C_Read... [21:57:51]Read from MH i2c: E2 17 00 0D 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 07 [21:57:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:57:51]wFMCommunicate OK [21:57:51]CreateOFDProtocolMessage done [21:57:51]OFDSenderStorePacket 118313 [21:57:51]StoreOFDPacket docnum=118313 [21:57:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4A C0 07 01 DD 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 5F 6D A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 29 CE 01 00 35 04 06 00 D4 14 08 2D 3C D5 68 85 3C D2 AA 24 BD 61 [21:57:51]CheckFolder [21:57:51]dirname=/storage/ofd_packets [21:57:51]CheckFolder done [21:57:51]ProducePacketName [21:57:51]name=ofd_packets/00118313 [21:57:51]NVStorageSaveData ofd_packets/00118313 [21:57:51]File name is /storage/ofd_packets/00118313 [21:57:51]Write 301 bytes [21:57:51]NVStorageSaveData done [21:57:51]OFDSenderStorePacket done [21:57:51]KKMCreateOFDPacket done [21:57:51]NVStorageSaveData kkm_last_timestamp [21:57:51]File name is /storage/kkm_last_timestamp [21:57:51]Write 4 bytes [21:57:51]NVStorageSaveData done [21:57:51]ExternCall_PrintAddStr [21:57:51]wPrintStart [21:57:51]Write to MH i2c: 01 00 00 0E 25 33 [21:57:51]Write i2c OK [21:57:51]MH_I2C_Read... [21:57:51]Read from MH i2c: 01 [21:57:51]MH_I2C_Read... [21:57:51]Read from MH i2c: 01 07 00 [21:57:51]MH_I2C_Read... [21:57:51]Read from MH i2c: 01 07 00 0E 25 00 00 00 00 00 FF 0F 48 [21:57:51]RasterBufferAndPrint [21:57:51]line Счет N : (1)949185 [21:57:51]line ИНН: 02508201610067 [21:57:51]line Контрольно-Кассовый Чек [21:57:51]line ПРОДАЖА [21:57:51]line ТРК (МРК, ГНК) : 51 [21:57:51]line Товар: 2710124130 [21:57:51]line Аи-92-К-4 [21:57:51]line 14.750 * 67.80 [21:57:51]line = 1000.05 [21:57:51]line НДС 12% НСП 1% [21:57:51]line > о реализуемом товаре [21:57:51]line ОКРУГЛЕНИЕ: -0.05 [21:57:51]line ИТОГО: 1000.00 [21:57:51]line Внесено: 1000.00 [21:57:51]line СДАЧА: 0.00 [21:57:51]line НСП 1% : 8.85 [21:57:51]line НДС 12% : 106.20 [21:57:51]line Наличными: 1000.00 [21:57:51]line Безнал.: 0.00 [21:57:51]line Место: АЗС № 134 "Партнер Нефть" [21:57:51]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:57:51]line СНО: Общий режим [21:57:51]line Чек 256 27.07.2024 21:57 [21:57:51]line Смена: 432 ФФД: 1.0 [21:57:51]line ЗНМ: 0300000044 [21:57:51]line РНМ: 0000000000092660 [21:57:51]line Версия ККМ: 001 [21:57:51]line ФМ: 0000000000874939 [21:57:51]line ФД: 118313 [21:57:51]line ФПД: 233182501616853 [21:57:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T215751&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118313&fm=233182501616853&tin=02508201610067®Number=0000000000092660&sum=100000 [21:57:52]OFD Sender: Processing packet 118313 [packets to send 86, broken 85] [21:57:52]ProducePacketName [21:57:52]name=ofd_packets/00118313 [21:57:52]OFD Sender: To server: pG, [21:57:52]CommunicateWithHost lk.salyk.kg:30040 [21:57:52]ConnectInit lk.salyk.kg [21:57:52]written 0, free lines is 4095 [21:57:52]Connected sock=7 [21:57:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4A C0 07 01 DD 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 5F 6D A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 29 CE 01 00 35 04 06 00 D4 14 08 2D 3C D5 68 85 3C D2 AA 24 BD 61 [21:57:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 CB D4 47 00 8F 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 29 CE 01 00 F4 03 04 00 F1 1A A5 66 B6 04 01 00 00 0D 44 45 53 27 46 02 A9 [21:57:52]CommunicateWithHost err = 0 [21:57:52]CheckOFDResponse [21:57:52]1017 (14) - 77093643461234 [21:57:52]1041 (16) - 0000000000874939 [21:57:52]1040 (4) - 118313 [21:57:52]1012 (4) - 27.07.2024 16:06 [21:57:52]1206 (1) - 0 [21:57:52]OFD Sender: Remove packet 118313 [21:57:52]ProducePacketName [21:57:52]name=ofd_packets/00118313 [21:57:52]NVStorageDeleteData [21:57:52]Write to MH i2c: 01 00 00 38 25 5D [21:57:52]Write i2c OK [21:57:52]MH_I2C_Read... [21:57:52]Read from MH i2c: 01 [21:57:52]MH_I2C_Read... [21:57:52]Read from MH i2c: 01 07 00 [21:57:52]MH_I2C_Read... [21:57:52]Read from MH i2c: 01 07 00 38 25 00 00 00 00 00 E6 0C 56 [21:57:52]RasterBufferAndPrint [21:57:52]line [21:57:52]line [21:57:52]line [21:57:52]line [21:57:52]line [21:57:52]written 0, free lines is 3308 [21:57:52]MH_Cut [21:57:52]Write to MH i2c: D1 01 00 3F 25 01 36 [21:57:52]Write i2c OK [21:57:52]MH_I2C_Read... [21:57:52]Read from MH i2c: D1 [21:57:52]MH_I2C_Read... [21:57:52]Read from MH i2c: D1 01 00 [21:57:52]MH_I2C_Read... [21:57:52]Read from MH i2c: D1 01 00 3F 25 00 35 [21:57:52]Write to MH i2c: 01 00 00 40 25 65 [21:57:52]Write i2c OK [21:57:52]MH_I2C_Read... [21:57:53]OFD Sender: No OFD packet to send [21:57:53]*** Cut start [21:57:53]*** Partial cut [21:57:53]*** CUTSNS_PIN = 1 [21:57:53]*** CUTSNS_PIN = 0 [21:57:53]*** Brake cut motor [21:57:54]Read from MH i2c: 01 [21:57:54]MH_I2C_Read... [21:57:54]*** Stop cut motor [21:57:54]*** Cut end [21:57:54]Read from MH i2c: 01 07 00 [21:57:54]MH_I2C_Read... [21:57:54]Read from MH i2c: 01 07 00 40 25 00 00 00 00 00 FF 0F 7A [21:57:54]process_action close_receipt done [21:57:54]requested_data is exist [21:57:54]produce_requested_data [21:57:54]requested_item fm.sn is exist - process it [21:57:54]wFMCommunicate request_size=4 [21:57:54]MH_SAM_APDU [21:57:54]CAPDU: 80 11 00 00 [21:57:54]Write to MH i2c: E2 08 00 41 25 80 11 00 00 00 00 00 00 E0 [21:57:54]Write i2c OK [21:57:54]MH_I2C_Read... [21:57:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:54]Read from MH i2c: E2 [21:57:54]MH_I2C_Read... [21:57:54]Read from MH i2c: E2 17 00 [21:57:54]MH_I2C_Read... [21:57:54]Read from MH i2c: E2 17 00 41 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3B [21:57:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:57:54]wFMCommunicate OK [21:57:54]requested_item fd.num is exist - process it [21:57:54]SAM_PROTO_GetFieldsCounters [21:57:54]wFMCommunicate request_size=4 [21:57:54]MH_SAM_APDU [21:57:54]CAPDU: 80 13 00 00 [21:57:54]Write to MH i2c: E2 08 00 42 25 80 13 00 00 00 00 00 00 E3 [21:57:54]Write i2c OK [21:57:54]MH_I2C_Read... [21:57:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:57:54]Read from MH i2c: E2 [21:57:54]MH_I2C_Read... [21:57:54]Read from MH i2c: E2 62 00 [21:57:54]MH_I2C_Read... [21:57:54]Read from MH i2c: E2 62 00 42 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 29 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 B6 [21:57:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 29 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:57:54]wFMCommunicate OK [21:57:54]SAM_PROTO_GetFieldsCounters done [21:57:54]requested_item shift.num is exist - process it [21:57:54]requested_item shift.opened is exist - process it [21:57:54]req_shift_opened [21:57:54]FM_GetShiftState [21:57:54]SAM_PROTO_GetShiftState [21:57:54]wFMCommunicate request_size=4 [21:57:54]MH_SAM_APDU [21:57:54]CAPDU: 80 13 01 00 [21:57:54]Write to MH i2c: E2 08 00 43 25 80 13 01 00 00 00 00 00 E5 [21:57:54]Write i2c OK [21:57:54]MH_I2C_Read... [21:57:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:54]Read from MH i2c: E2 [21:57:54]MH_I2C_Read... [21:57:54]Read from MH i2c: E2 0E 00 [21:57:54]MH_I2C_Read... [21:57:54]Read from MH i2c: E2 0E 00 43 25 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 72 [21:57:54]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [21:57:54]wFMCommunicate OK [21:57:54]SAM_PROTO_GetShiftState done [21:57:54]FM_GetShiftState done [21:57:54]req_shift_opened done [21:57:54]requested_item shift.open_date is exist - process it [21:57:54]req_shift_open_date [21:57:54]req_shift_open_date done [21:57:54]produce_requested_data done [21:57:54]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118313,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [21:57:54]process_action_free close_receipt [21:57:54]json_value_free [21:57:54]json_value_free done [21:57:54]process_json_proto returns [21:57:54]Send response to host [21:57:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118313,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [21:57:54]free response buf [21:57:54]execute_script done [21:57:54]execute_script returns [21:57:54]free content buf [21:57:54]Sock 9.Close socket [21:57:54]Sock 9.Thread stoped [21:57:58]OFD Sender: No OFD packet to send [21:58:03]OFD Sender: No OFD packet to send [21:58:08]OFD Sender: No OFD packet to send [21:58:13]OFD Sender: No OFD packet to send [21:58:18]OFD Sender: No OFD packet to send [21:58:23]OFD Sender: No OFD packet to send [21:58:28]OFD Sender: No OFD packet to send [21:58:33]OFD Sender: No OFD packet to send [21:58:38]OFD Sender: No OFD packet to send [21:58:43]OFD Sender: No OFD packet to send [21:58:48]OFD Sender: No OFD packet to send [21:58:53]OFD Sender: No OFD packet to send [21:58:58]OFD Sender: No OFD packet to send [21:59:03]OFD Sender: No OFD packet to send [21:59:08]OFD Sender: No OFD packet to send [21:59:13]OFD Sender: No OFD packet to send [21:59:18]OFD Sender: No OFD packet to send [21:59:23]OFD Sender: No OFD packet to send [21:59:28]OFD Sender: No OFD packet to send [21:59:33]OFD Sender: No OFD packet to send [21:59:38]OFD Sender: No OFD packet to send [21:59:43]OFD Sender: No OFD packet to send [21:59:48]OFD Sender: No OFD packet to send [21:59:53]OFD Sender: No OFD packet to send [21:59:58]OFD Sender: No OFD packet to send [22:00:03]OFD Sender: No OFD packet to send [22:00:08]OFD Sender: No OFD packet to send [22:00:13]OFD Sender: No OFD packet to send [22:00:18]OFD Sender: No OFD packet to send [22:00:23]OFD Sender: No OFD packet to send [22:00:28]OFD Sender: No OFD packet to send [22:00:33]OFD Sender: No OFD packet to send [22:00:38]OFD Sender: No OFD packet to send [22:00:43]OFD Sender: No OFD packet to send [22:00:48]OFD Sender: No OFD packet to send [22:00:53]OFD Sender: No OFD packet to send [22:00:58]OFD Sender: No OFD packet to send [22:01:03]OFD Sender: No OFD packet to send [22:01:08]OFD Sender: No OFD packet to send [22:01:13]OFD Sender: No OFD packet to send [22:01:18]OFD Sender: No OFD packet to send [22:01:23]OFD Sender: No OFD packet to send [22:01:28]OFD Sender: No OFD packet to send [22:01:33]OFD Sender: No OFD packet to send [22:01:38]OFD Sender: No OFD packet to send [22:01:43]OFD Sender: No OFD packet to send [22:01:48]OFD Sender: No OFD packet to send [22:01:53]OFD Sender: No OFD packet to send [22:01:58]OFD Sender: No OFD packet to send [22:02:03]OFD Sender: No OFD packet to send [22:02:08]OFD Sender: No OFD packet to send [22:02:13]OFD Sender: No OFD packet to send [22:02:14]accept exits with 10 [22:02:14]New connection [22:02:14]New thread 3066953060 created [22:02:14]Thread 3067096420 joined [22:02:14]Waiting for new connection... [22:02:14] Sock 10.Parse request [22:02:14]Sock 10.Check first char [22:02:14]Sock 10.First char is OK [22:02:14]request: POST /json_proto HTTP/1.0 [22:02:14]Method: POST [22:02:14]URL: /json_proto [22:02:14]Method is POST - this is cgi request [22:02:14]url: /json_proto [22:02:14]query_string will be loaded in cgi processing [22:02:14]execute_cgi json_proto POST (null) [22:02:14]execute_cgi path=json_proto method=POST [22:02:14]POST find Content-Length [22:02:14]Host: 172.17.45.7:8080 [22:02:14]Content-Length: 679 [22:02:14]Content-Type: application/json [22:02:14] [22:02:14]POST finish read [22:02:14]Found Content-Length = 679 [22:02:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 38.720, "sum" : 2950.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2950.00, "total" : 2950.00, "payments": [ { "type": 0, "sum" : 2950.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:02:14]execute_script... [22:02: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)949186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 38.720, "sum" : 2950.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2950.00, "total" : 2950.00, "payments": [ { "type": 0, "sum" : 2950.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:02:14]POST & json_proto [22:02:14]process_json_proto [22:02:14]json parsed OK: [22:02:14]protocol is kg_v1.0 [22:02:14]action value=close_receipt [22:02:14]process_action close_receipt [22:02:14]cmd_close_receipt [22:02:14]MH_GetDate [22:02:14]Write to MH i2c: F0 00 00 44 25 58 [22:02:14]Write i2c OK [22:02:14]MH_I2C_Read... [22:02:14]Read from MH i2c: F0 [22:02:14]MH_I2C_Read... [22:02:14]Read from MH i2c: F0 09 00 [22:02:14]MH_I2C_Read... [22:02:14]Read from MH i2c: F0 09 00 44 25 00 68 6E A5 66 90 0F 3E 66 85 [22:02:14]GetLastDocTimeStamp 1722117471 [22:02:14]current date 1722117736 [22:02:14]FM_GetShiftState [22:02:14]SAM_PROTO_GetShiftState [22:02:14]wFMCommunicate request_size=4 [22:02:14]MH_SAM_APDU [22:02:14]CAPDU: 80 13 01 00 [22:02:14]Write to MH i2c: E2 08 00 45 25 80 13 01 00 00 00 00 00 E7 [22:02:14]Write i2c OK [22:02:14]MH_I2C_Read... [22:02:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:14]Read from MH i2c: E2 [22:02:14]MH_I2C_Read... [22:02:14]Read from MH i2c: E2 0E 00 [22:02:14]MH_I2C_Read... [22:02:14]Read from MH i2c: E2 0E 00 45 25 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 74 [22:02:14]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [22:02:14]wFMCommunicate OK [22:02:14]SAM_PROTO_GetShiftState done [22:02:14]FM_GetShiftState done [22:02:14]opened in 1722038845 [22:02:14]opened+sec_in_day 1722125245 [22:02:14]quantity*price = 295046 [22:02:14]sum+1 = 295047 [22:02:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 2950.00 Внесено: 2950.00 СДАЧА: 0.00 НСП 1% : 26.11 НДС 12% : 313.32 Наличными: 2950.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 257 27.07.2024 22:02 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118314 ФПД: 20505802074521 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T220216&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118314&fm=20505802074521&tin=02508201610067®Number=0000000000092660&sum=295000 [22:02:15]StoreToDocumentArchive [22:02:15]shift 432 fd 118314 [22:02:15]save to /storage/0432/doc_00118314 [22:02:15]save last doc name /storage/0432/doc_00118314 to /storage/kkm_last_doc_name [22:02:15]save OK [22:02:15]Clear old archive folders... [22:02:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:02:15]tlvbuf is 01DEC740 [22:02:15]SAM_PROTO_ClearQueue [22:02:15]wFMCommunicate request_size=4 [22:02:15]MH_SAM_APDU [22:02:15]CAPDU: 80 09 00 00 [22:02:15]Write to MH i2c: E2 08 00 52 25 80 09 00 00 00 00 00 00 E9 [22:02:15]Write i2c OK [22:02:15]MH_I2C_Read... [22:02:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:02:15]Read from MH i2c: E2 [22:02:15]MH_I2C_Read... [22:02:15]Read from MH i2c: E2 03 00 [22:02:15]MH_I2C_Read... [22:02:15]Read from MH i2c: E2 03 00 52 25 00 90 00 EB [22:02:15]RAPDU: 90 00 [22:02:15]wFMCommunicate OK [22:02:15]SAM_PROTO_ClearQueue done [22:02:15]KKMCreateOFDPacket [22:02:15]OFDProtocolAddRootSTLVToBuf [22:02:15]FM_MakeSignedData [22:02:15]FM_MakeSignedData [22:02:15]SAM_PROTO_SignData [22:02:15]wFMCommunicate request_size=4 [22:02:15]MH_SAM_APDU [22:02:15]CAPDU: 80 0D 01 02 [22:02:15]Write to MH i2c: E2 08 00 53 25 80 0D 01 02 00 00 00 00 F1 [22:02:15]Write i2c OK [22:02:15]MH_I2C_Read... [22:02:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:02:15]Read from MH i2c: E2 [22:02:15]MH_I2C_Read... [22:02:15]Read from MH i2c: E2 03 00 [22:02:15]MH_I2C_Read... [22:02:15]Read from MH i2c: E2 03 00 53 25 00 90 00 EC [22:02:15]RAPDU: 90 00 [22:02:15]wFMCommunicate OK [22:02:15]wFMCommunicate request_size=255 [22:02:15]MH_SAM_APDU [22:02: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 97 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 80 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 80 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 7A 00 00 00 00 07 04 06 00 58 80 04 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 68 6E A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2A CE 01 00 35 04 06 00 12 A6 61 0C [22:02:15]Write to MH i2c: E2 02 01 54 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 97 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 80 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 80 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 7A 00 00 00 00 07 04 06 00 58 80 04 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 68 6E A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2A CE 01 00 35 04 06 00 12 A6 61 0C 00 00 A0 [22:02:15]Write i2c OK [22:02:15]MH_I2C_Read... [22:02:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:15]Read from MH i2c: E2 [22:02:15]MH_I2C_Read... [22:02:15]Read from MH i2c: E2 03 00 [22:02:15]MH_I2C_Read... [22:02:15]Read from MH i2c: E2 03 00 54 25 00 90 00 ED [22:02:15]RAPDU: 90 00 [22:02:15]wFMCommunicate OK [22:02:15]wFMCommunicate request_size=7 [22:02:15]MH_SAM_APDU [22:02:15]CAPDU: 80 0D 02 02 02 69 99 [22:02:15]Write to MH i2c: E2 0A 00 55 25 80 0D 02 02 02 00 69 99 00 00 FA [22:02:15]Write i2c OK [22:02:15]MH_I2C_Read... [22:02:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:15]Read from MH i2c: E2 [22:02:15]MH_I2C_Read... [22:02:15]Read from MH i2c: E2 03 00 [22:02:15]MH_I2C_Read... [22:02:15]Read from MH i2c: E2 03 00 55 25 00 90 00 EE [22:02:15]RAPDU: 90 00 [22:02:15]wFMCommunicate OK [22:02:15]wFMCommunicate request_size=4 [22:02:15]MH_SAM_APDU [22:02:15]CAPDU: 80 0D 03 02 [22:02:15]Write to MH i2c: E2 08 00 56 25 80 0D 03 02 00 00 00 00 F6 [22:02:15]Write i2c OK [22:02:15]MH_I2C_Read... [22:02:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:02:16]Read from MH i2c: E2 [22:02:16]MH_I2C_Read... [22:02:16]Read from MH i2c: E2 0B 00 [22:02:16]MH_I2C_Read... [22:02:16]Read from MH i2c: E2 0B 00 56 25 00 51 6C 2B 09 D6 C2 D6 81 90 00 D7 [22:02:16]RAPDU: 51 6C 2B 09 D6 C2 D6 81 90 00 [22:02:16]wFMCommunicate OK [22:02:16]SAM_PROTO_SignData done [22:02:16]FM_MakeSignedData done [22:02:16]CreateOFDProtocolMessage [22:02:16]wFMCommunicate request_size=4 [22:02:16]MH_SAM_APDU [22:02:16]CAPDU: 80 11 00 00 [22:02:16]Write to MH i2c: E2 08 00 57 25 80 11 00 00 00 00 00 00 F6 [22:02:16]Write i2c OK [22:02:16]MH_I2C_Read... [22:02:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:16]Read from MH i2c: E2 [22:02:16]MH_I2C_Read... [22:02:16]Read from MH i2c: E2 17 00 [22:02:16]MH_I2C_Read... [22:02:16]Read from MH i2c: E2 17 00 57 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 51 [22:02:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:02:16]wFMCommunicate OK [22:02:16]CreateOFDProtocolMessage done [22:02:16]OFDSenderStorePacket 118314 [22:02:16]StoreOFDPacket docnum=118314 [22:02:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 EF 18 04 01 52 44 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 97 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 80 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 80 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 7A 00 00 00 00 07 04 06 00 58 80 04 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 68 6E A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2A CE 01 00 35 04 06 00 12 A6 61 0C 69 99 51 6C 2B 09 D6 C2 D6 81 [22:02:16]CheckFolder [22:02:16]dirname=/storage/ofd_packets [22:02:16]CheckFolder done [22:02:16]ProducePacketName [22:02:16]name=ofd_packets/00118314 [22:02:16]NVStorageSaveData ofd_packets/00118314 [22:02:16]File name is /storage/ofd_packets/00118314 [22:02:16]Write 298 bytes [22:02:16]NVStorageSaveData done [22:02:16]OFDSenderStorePacket done [22:02:16]KKMCreateOFDPacket done [22:02:16]NVStorageSaveData kkm_last_timestamp [22:02:16]File name is /storage/kkm_last_timestamp [22:02:16]Write 4 bytes [22:02:16]NVStorageSaveData done [22:02:16]ExternCall_PrintAddStr [22:02:16]wPrintStart [22:02:16]Write to MH i2c: 01 00 00 58 25 7D [22:02:16]Write i2c OK [22:02:16]MH_I2C_Read... [22:02:16]Read from MH i2c: 01 [22:02:16]MH_I2C_Read... [22:02:16]Read from MH i2c: 01 07 00 [22:02:16]MH_I2C_Read... [22:02:16]Read from MH i2c: 01 07 00 58 25 00 00 00 00 00 FF 0F 92 [22:02:16]RasterBufferAndPrint [22:02:16]line Счет N : (1)949186 [22:02:16]line ИНН: 02508201610067 [22:02:16]line Контрольно-Кассовый Чек [22:02:16]line ПРОДАЖА [22:02:16]line ТРК (МРК, ГНК) : 54 [22:02:16]line Товар: 2710194800 [22:02:16]line ДТ-К-5 [22:02:16]line 38.720 * 76.20 [22:02:16]line = 2950.46 [22:02:16]line НДС 12% НСП 1% [22:02:16]line > о реализуемом товаре [22:02:16]line ОКРУГЛЕНИЕ: -0.46 [22:02:16]line ИТОГО: 2950.00 [22:02:16]line Внесено: 2950.00 [22:02:16]line СДАЧА: 0.00 [22:02:16]line НСП 1% : 26.11 [22:02:16]line НДС 12% : 313.32 [22:02:16]line Наличными: 2950.00 [22:02:16]line Безнал.: 0.00 [22:02:16]line Место: АЗС № 134 "Партнер Нефть" [22:02:16]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:02:16]line СНО: Общий режим [22:02:16]line Чек 257 27.07.2024 22:02 [22:02:16]line Смена: 432 ФФД: 1.0 [22:02:16]line ЗНМ: 0300000044 [22:02:16]line РНМ: 0000000000092660 [22:02:16]line Версия ККМ: 001 [22:02:16]line ФМ: 0000000000874939 [22:02:16]line ФД: 118314 [22:02:16]line ФПД: 20505802074521 [22:02:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T220216&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118314&fm=20505802074521&tin=02508201610067®Number=0000000000092660&sum=295000 [22:02:16]OFD Sender: Processing packet 118314 [packets to send 86, broken 85] [22:02:16]ProducePacketName [22:02:16]name=ofd_packets/00118314 [22:02:16]OFD Sender: To server: pG, [22:02:16]CommunicateWithHost lk.salyk.kg:30040 [22:02:16]ConnectInit lk.salyk.kg [22:02:16]written 0, free lines is 4095 [22:02:16]Connected sock=9 [22:02:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 EF 18 04 01 52 44 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 97 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 80 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 80 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 7A 00 00 00 00 07 04 06 00 58 80 04 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 68 6E A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2A CE 01 00 35 04 06 00 12 A6 61 0C 69 99 51 6C 2B 09 D6 C2 D6 81 [22:02:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 00 CE 47 00 99 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2A CE 01 00 F4 03 04 00 F9 1B A5 66 B6 04 01 00 00 44 6D ED 4A 02 E3 E1 9D [22:02:16]CommunicateWithHost err = 0 [22:02:16]CheckOFDResponse [22:02:16]1017 (14) - 77093643461234 [22:02:16]1041 (16) - 0000000000874939 [22:02:16]1040 (4) - 118314 [22:02:16]1012 (4) - 27.07.2024 16:10 [22:02:16]1206 (1) - 0 [22:02:16]OFD Sender: Remove packet 118314 [22:02:16]ProducePacketName [22:02:16]name=ofd_packets/00118314 [22:02:16]NVStorageDeleteData [22:02:16]Write to MH i2c: 01 00 00 82 25 A7 [22:02:16]Write i2c OK [22:02:16]MH_I2C_Read... [22:02:16]Read from MH i2c: 01 [22:02:16]MH_I2C_Read... [22:02:16]Read from MH i2c: 01 07 00 [22:02:16]MH_I2C_Read... [22:02:16]Read from MH i2c: 01 07 00 82 25 00 00 00 00 00 DC 0C 96 [22:02:16]RasterBufferAndPrint [22:02:16]line [22:02:16]line [22:02:16]line [22:02:16]line [22:02:16]line [22:02:16]written 0, free lines is 3299 [22:02:16]MH_Cut [22:02:16]Write to MH i2c: D1 01 00 89 25 01 80 [22:02:16]Write i2c OK [22:02:16]MH_I2C_Read... [22:02:16]Read from MH i2c: D1 [22:02:16]MH_I2C_Read... [22:02:16]Read from MH i2c: D1 01 00 [22:02:16]MH_I2C_Read... [22:02:16]Read from MH i2c: D1 01 00 89 25 00 7F [22:02:16]Write to MH i2c: 01 00 00 8A 25 AF [22:02:16]Write i2c OK [22:02:16]MH_I2C_Read... [22:02:17]OFD Sender: No OFD packet to send [22:02:17]*** Cut start [22:02:17]*** Partial cut [22:02:17]*** CUTSNS_PIN = 1 [22:02:17]*** CUTSNS_PIN = 0 [22:02:17]*** Brake cut motor [22:02:18]Read from MH i2c: 01 [22:02:18]MH_I2C_Read... [22:02:18]*** Stop cut motor [22:02:18]*** Cut end [22:02:18]Read from MH i2c: 01 07 00 [22:02:18]MH_I2C_Read... [22:02:18]Read from MH i2c: 01 07 00 8A 25 00 00 00 00 00 FF 0F C4 [22:02:18]process_action close_receipt done [22:02:18]requested_data is exist [22:02:18]produce_requested_data [22:02:18]requested_item fm.sn is exist - process it [22:02:18]wFMCommunicate request_size=4 [22:02:18]MH_SAM_APDU [22:02:18]CAPDU: 80 11 00 00 [22:02:18]Write to MH i2c: E2 08 00 8B 25 80 11 00 00 00 00 00 00 2A [22:02:18]Write i2c OK [22:02:18]MH_I2C_Read... [22:02:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:18]Read from MH i2c: E2 [22:02:18]MH_I2C_Read... [22:02:18]Read from MH i2c: E2 17 00 [22:02:18]MH_I2C_Read... [22:02:18]Read from MH i2c: E2 17 00 8B 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 85 [22:02:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:02:18]wFMCommunicate OK [22:02:18]requested_item fd.num is exist - process it [22:02:18]SAM_PROTO_GetFieldsCounters [22:02:18]wFMCommunicate request_size=4 [22:02:18]MH_SAM_APDU [22:02:18]CAPDU: 80 13 00 00 [22:02:18]Write to MH i2c: E2 08 00 8C 25 80 13 00 00 00 00 00 00 2D [22:02:18]Write i2c OK [22:02:18]MH_I2C_Read... [22:02:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:02:18]Read from MH i2c: E2 [22:02:18]MH_I2C_Read... [22:02:18]Read from MH i2c: E2 62 00 [22:02:18]MH_I2C_Read... [22:02:18]Read from MH i2c: E2 62 00 8C 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2A CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 04 [22:02:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2A CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:02:18]wFMCommunicate OK [22:02:18]SAM_PROTO_GetFieldsCounters done [22:02:18]requested_item shift.num is exist - process it [22:02:18]requested_item shift.opened is exist - process it [22:02:18]req_shift_opened [22:02:18]FM_GetShiftState [22:02:18]SAM_PROTO_GetShiftState [22:02:18]wFMCommunicate request_size=4 [22:02:18]MH_SAM_APDU [22:02:18]CAPDU: 80 13 01 00 [22:02:18]Write to MH i2c: E2 08 00 8D 25 80 13 01 00 00 00 00 00 2F [22:02:18]Write i2c OK [22:02:18]MH_I2C_Read... [22:02:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:18]Read from MH i2c: E2 [22:02:18]MH_I2C_Read... [22:02:18]Read from MH i2c: E2 0E 00 [22:02:18]MH_I2C_Read... [22:02:18]Read from MH i2c: E2 0E 00 8D 25 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 BC [22:02:18]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [22:02:18]wFMCommunicate OK [22:02:18]SAM_PROTO_GetShiftState done [22:02:18]FM_GetShiftState done [22:02:18]req_shift_opened done [22:02:18]requested_item shift.open_date is exist - process it [22:02:18]req_shift_open_date [22:02:18]req_shift_open_date done [22:02:18]produce_requested_data done [22:02:18]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118314,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [22:02:18]process_action_free close_receipt [22:02:18]json_value_free [22:02:18]json_value_free done [22:02:18]process_json_proto returns [22:02:18]Send response to host [22:02:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118314,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [22:02:18]free response buf [22:02:18]execute_script done [22:02:18]execute_script returns [22:02:18]free content buf [22:02:18]Sock 10.Close socket [22:02:18]Sock 10.Thread stoped [22:02:22]OFD Sender: No OFD packet to send [22:02:27]OFD Sender: No OFD packet to send [22:02:32]OFD Sender: No OFD packet to send [22:02:37]OFD Sender: No OFD packet to send [22:02:42]OFD Sender: No OFD packet to send [22:02:47]OFD Sender: No OFD packet to send [22:02:52]OFD Sender: No OFD packet to send [22:02:57]OFD Sender: No OFD packet to send [22:03:02]OFD Sender: No OFD packet to send [22:03:07]OFD Sender: No OFD packet to send [22:03:12]OFD Sender: No OFD packet to send [22:03:17]OFD Sender: No OFD packet to send [22:03:22]OFD Sender: No OFD packet to send [22:03:27]OFD Sender: No OFD packet to send [22:03:32]OFD Sender: No OFD packet to send [22:03:37]OFD Sender: No OFD packet to send [22:03:42]OFD Sender: No OFD packet to send [22:03:47]OFD Sender: No OFD packet to send [22:03:52]OFD Sender: No OFD packet to send [22:03:57]OFD Sender: No OFD packet to send [22:04:02]OFD Sender: No OFD packet to send [22:04:07]OFD Sender: No OFD packet to send [22:04:12]OFD Sender: No OFD packet to send [22:04:17]OFD Sender: No OFD packet to send [22:04:22]OFD Sender: No OFD packet to send [22:04:27]OFD Sender: No OFD packet to send [22:04:32]OFD Sender: No OFD packet to send [22:04:37]OFD Sender: No OFD packet to send [22:04:42]OFD Sender: No OFD packet to send [22:04:47]OFD Sender: No OFD packet to send [22:04:52]OFD Sender: No OFD packet to send [22:04:57]OFD Sender: No OFD packet to send [22:05:02]OFD Sender: No OFD packet to send [22:05:07]OFD Sender: No OFD packet to send [22:05:12]OFD Sender: No OFD packet to send [22:05:17]OFD Sender: No OFD packet to send [22:05:22]OFD Sender: No OFD packet to send [22:05:27]OFD Sender: No OFD packet to send [22:05:32]OFD Sender: No OFD packet to send [22:05:37]OFD Sender: No OFD packet to send [22:05:42]OFD Sender: No OFD packet to send [22:05:47]OFD Sender: No OFD packet to send [22:05:52]OFD Sender: No OFD packet to send [22:05:57]OFD Sender: No OFD packet to send [22:06:02]OFD Sender: No OFD packet to send [22:06:07]OFD Sender: No OFD packet to send [22:06:12]OFD Sender: No OFD packet to send [22:06:17]OFD Sender: No OFD packet to send [22:06:22]OFD Sender: No OFD packet to send [22:06:27]OFD Sender: No OFD packet to send [22:06:32]OFD Sender: No OFD packet to send [22:06:37]OFD Sender: No OFD packet to send [22:06:42]OFD Sender: No OFD packet to send [22:06:47]OFD Sender: No OFD packet to send [22:06:52]OFD Sender: No OFD packet to send [22:06:57]OFD Sender: No OFD packet to send [22:07:02]OFD Sender: No OFD packet to send [22:07:07]OFD Sender: No OFD packet to send [22:07:12]OFD Sender: No OFD packet to send [22:07:17]OFD Sender: No OFD packet to send [22:07:22]OFD Sender: No OFD packet to send [22:07:27]OFD Sender: No OFD packet to send [22:07:32]OFD Sender: No OFD packet to send [22:07:37]OFD Sender: No OFD packet to send [22:07:42]OFD Sender: No OFD packet to send [22:07:47]OFD Sender: No OFD packet to send [22:07:52]OFD Sender: No OFD packet to send [22:07:57]OFD Sender: No OFD packet to send [22:08:02]OFD Sender: No OFD packet to send [22:08:07]OFD Sender: No OFD packet to send [22:08:12]OFD Sender: No OFD packet to send [22:08:17]OFD Sender: No OFD packet to send [22:08:22]OFD Sender: No OFD packet to send [22:08:27]OFD Sender: No OFD packet to send [22:08:32]OFD Sender: No OFD packet to send [22:08:37]OFD Sender: No OFD packet to send [22:08:42]OFD Sender: No OFD packet to send [22:08:47]OFD Sender: No OFD packet to send [22:08:52]OFD Sender: No OFD packet to send [22:08:57]OFD Sender: No OFD packet to send [22:09:02]OFD Sender: No OFD packet to send [22:09:07]OFD Sender: No OFD packet to send [22:09:12]OFD Sender: No OFD packet to send [22:09:17]OFD Sender: No OFD packet to send [22:09:22]OFD Sender: No OFD packet to send [22:09:27]OFD Sender: No OFD packet to send [22:09:32]OFD Sender: No OFD packet to send [22:09:37]OFD Sender: No OFD packet to send [22:09:42]OFD Sender: No OFD packet to send [22:09:47]OFD Sender: No OFD packet to send [22:09:52]OFD Sender: No OFD packet to send [22:09:57]OFD Sender: No OFD packet to send [22:10:02]OFD Sender: No OFD packet to send [22:10:07]OFD Sender: No OFD packet to send [22:10:12]OFD Sender: No OFD packet to send [22:10:17]OFD Sender: No OFD packet to send [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:57]OFD Sender: No OFD packet to send [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:26]accept exits with 7 [22:12:26]New connection [22:12:26]New thread 3067096420 created [22:12:26]Thread 3066953060 joined [22:12:26]Waiting for new connection... [22:12:26] Sock 7.Parse request [22:12:26]Sock 7.Check first char [22:12:26]Sock 7.First char is OK [22:12:26]request: POST /json_proto HTTP/1.0 [22:12:26]Method: POST [22:12:26]URL: /json_proto [22:12:26]Method is POST - this is cgi request [22:12:26]url: /json_proto [22:12:26]query_string will be loaded in cgi processing [22:12:26]execute_cgi json_proto POST (null) [22:12:26]execute_cgi path=json_proto method=POST [22:12:26]POST find Content-Length [22:12:26]Host: 172.17.45.7:8080 [22:12:26]Content-Length: 820 [22:12:26]Content-Type: application/json [22:12:26] [22:12:26]POST finish read [22:12:26]Found Content-Length = 820 [22:12:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:26]execute_script... [22:12:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:26]POST & json_proto [22:12:26]process_json_proto [22:12:26]json parsed OK: [22:12:26]protocol is kg_v1.0 [22:12:26]action value=close_receipt [22:12:26]process_action close_receipt [22:12:26]cmd_close_receipt [22:12:26]MH_GetDate [22:12:26]Write to MH i2c: F0 00 00 8E 25 A2 [22:12:26]Write i2c OK [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: F0 [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: F0 09 00 [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: F0 09 00 8E 25 00 CC 70 A5 66 90 0F 3E 66 35 [22:12:26]GetLastDocTimeStamp 1722117736 [22:12:26]current date 1722118348 [22:12:26]FM_GetShiftState [22:12:26]SAM_PROTO_GetShiftState [22:12:26]wFMCommunicate request_size=4 [22:12:26]MH_SAM_APDU [22:12:26]CAPDU: 80 13 01 00 [22:12:26]Write to MH i2c: E2 08 00 8F 25 80 13 01 00 00 00 00 00 31 [22:12:26]Write i2c OK [22:12:26]MH_I2C_Read... [22:12:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:26]Read from MH i2c: E2 [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: E2 0E 00 [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: E2 0E 00 8F 25 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 BE [22:12:26]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [22:12:26]wFMCommunicate OK [22:12:26]SAM_PROTO_GetShiftState done [22:12:26]FM_GetShiftState done [22:12:26]opened in 1722038845 [22:12:26]opened+sec_in_day 1722125245 [22:12:26]quantity*price = 998982 [22:12:26]sum+1 = 998983 [22:12:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.82 ИТОГО: 9989.00 НСП 1% : 88.40 НДС 12% : 1060.87 Наличными: 0.00 Безнал.: 9989.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 258 27.07.2024 22:12 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118315 ФПД: 203086488160770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T221228&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118315&fm=203086488160770&tin=02508201610067®Number=0000000000092660&sum=998900 [22:12:27]StoreToDocumentArchive [22:12:27]shift 432 fd 118315 [22:12:27]save to /storage/0432/doc_00118315 [22:12:27]save last doc name /storage/0432/doc_00118315 to /storage/kkm_last_doc_name [22:12:27]save OK [22:12:27]Clear old archive folders... [22:12:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:12:27]tlvbuf is 01E05BF0 [22:12:27]SAM_PROTO_ClearQueue [22:12:27]wFMCommunicate request_size=4 [22:12:27]MH_SAM_APDU [22:12:27]CAPDU: 80 09 00 00 [22:12:27]Write to MH i2c: E2 08 00 9C 25 80 09 00 00 00 00 00 00 33 [22:12:27]Write i2c OK [22:12:27]MH_I2C_Read... [22:12:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:12:27]Read from MH i2c: E2 [22:12:27]MH_I2C_Read... [22:12:27]Read from MH i2c: E2 03 00 [22:12:27]MH_I2C_Read... [22:12:27]Read from MH i2c: E2 03 00 9C 25 00 90 00 35 [22:12:27]RAPDU: 90 00 [22:12:27]wFMCommunicate OK [22:12:27]SAM_PROTO_ClearQueue done [22:12:27]KKMCreateOFDPacket [22:12:27]OFDProtocolAddRootSTLVToBuf [22:12:27]FM_MakeSignedData [22:12:27]FM_MakeSignedData [22:12:27]SAM_PROTO_SignData [22:12:27]wFMCommunicate request_size=4 [22:12:27]MH_SAM_APDU [22:12:27]CAPDU: 80 0D 01 02 [22:12:27]Write to MH i2c: E2 08 00 9D 25 80 0D 01 02 00 00 00 00 3B [22:12:27]Write i2c OK [22:12:27]MH_I2C_Read... [22:12:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:12:27]Read from MH i2c: E2 [22:12:27]MH_I2C_Read... [22:12:27]Read from MH i2c: E2 03 00 [22:12:27]MH_I2C_Read... [22:12:27]Read from MH i2c: E2 03 00 9D 25 00 90 00 36 [22:12:27]RAPDU: 90 00 [22:12:27]wFMCommunicate OK [22:12:27]wFMCommunicate request_size=255 [22:12:27]MH_SAM_APDU [22:12:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 CC 70 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2B CE 01 00 35 04 06 00 B8 B4 C1 FC [22:12:27]Write to MH i2c: E2 02 01 9E 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 CC 70 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2B CE 01 00 35 04 06 00 B8 B4 C1 FC 00 00 83 [22:12:27]Write i2c OK [22:12:27]MH_I2C_Read... [22:12:27]OFD Sender: No OFD packet to send [22:12:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:28]Read from MH i2c: E2 [22:12:28]MH_I2C_Read... [22:12:28]Read from MH i2c: E2 03 00 [22:12:28]MH_I2C_Read... [22:12:28]Read from MH i2c: E2 03 00 9E 25 00 90 00 37 [22:12:28]RAPDU: 90 00 [22:12:28]wFMCommunicate OK [22:12:28]wFMCommunicate request_size=7 [22:12:28]MH_SAM_APDU [22:12:28]CAPDU: 80 0D 02 02 02 4A 02 [22:12:28]Write to MH i2c: E2 0A 00 9F 25 80 0D 02 02 02 00 4A 02 00 00 8E [22:12:28]Write i2c OK [22:12:28]MH_I2C_Read... [22:12:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:28]Read from MH i2c: E2 [22:12:28]MH_I2C_Read... [22:12:28]Read from MH i2c: E2 03 00 [22:12:28]MH_I2C_Read... [22:12:28]Read from MH i2c: E2 03 00 9F 25 00 90 00 38 [22:12:28]RAPDU: 90 00 [22:12:28]wFMCommunicate OK [22:12:28]wFMCommunicate request_size=4 [22:12:28]MH_SAM_APDU [22:12:28]CAPDU: 80 0D 03 02 [22:12:28]Write to MH i2c: E2 08 00 A0 25 80 0D 03 02 00 00 00 00 40 [22:12:28]Write i2c OK [22:12:28]MH_I2C_Read... [22:12:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:12:28]Read from MH i2c: E2 [22:12:28]MH_I2C_Read... [22:12:28]Read from MH i2c: E2 0B 00 [22:12:28]MH_I2C_Read... [22:12:28]Read from MH i2c: E2 0B 00 A0 25 00 7E 2B DF A8 28 EF 94 5B 90 00 77 [22:12:28]RAPDU: 7E 2B DF A8 28 EF 94 5B 90 00 [22:12:28]wFMCommunicate OK [22:12:28]SAM_PROTO_SignData done [22:12:28]FM_MakeSignedData done [22:12:28]CreateOFDProtocolMessage [22:12:28]wFMCommunicate request_size=4 [22:12:28]MH_SAM_APDU [22:12:28]CAPDU: 80 11 00 00 [22:12:28]Write to MH i2c: E2 08 00 A1 25 80 11 00 00 00 00 00 00 40 [22:12:28]Write i2c OK [22:12:28]MH_I2C_Read... [22:12:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:28]Read from MH i2c: E2 [22:12:28]MH_I2C_Read... [22:12:28]Read from MH i2c: E2 17 00 [22:12:28]MH_I2C_Read... [22:12:28]Read from MH i2c: E2 17 00 A1 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9B [22:12:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:12:28]wFMCommunicate OK [22:12:28]CreateOFDProtocolMessage done [22:12:28]OFDSenderStorePacket 118315 [22:12:28]StoreOFDPacket docnum=118315 [22:12:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 14 02 04 01 BA E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 CC 70 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2B CE 01 00 35 04 06 00 B8 B4 C1 FC 4A 02 7E 2B DF A8 28 EF 94 5B [22:12:28]CheckFolder [22:12:28]dirname=/storage/ofd_packets [22:12:28]CheckFolder done [22:12:28]ProducePacketName [22:12:28]name=ofd_packets/00118315 [22:12:28]NVStorageSaveData ofd_packets/00118315 [22:12:28]File name is /storage/ofd_packets/00118315 [22:12:28]Write 298 bytes [22:12:28]NVStorageSaveData done [22:12:28]OFDSenderStorePacket done [22:12:28]KKMCreateOFDPacket done [22:12:28]NVStorageSaveData kkm_last_timestamp [22:12:28]File name is /storage/kkm_last_timestamp [22:12:28]Write 4 bytes [22:12:28]NVStorageSaveData done [22:12:28]ExternCall_PrintAddStr [22:12:28]wPrintStart [22:12:28]Write to MH i2c: 01 00 00 A2 25 C7 [22:12:28]Write i2c OK [22:12:28]MH_I2C_Read... [22:12:28]Read from MH i2c: 01 [22:12:28]MH_I2C_Read... [22:12:28]Read from MH i2c: 01 07 00 [22:12:28]MH_I2C_Read... [22:12:28]Read from MH i2c: 01 07 00 A2 25 00 00 00 00 00 FF 0F DC [22:12:28]RasterBufferAndPrint [22:12:28]line Счет N : (1)949187 [22:12:28]line ИНН: 02508201610067 [22:12:28]line Контрольно-Кассовый Чек [22:12:28]line ПРОДАЖА [22:12:28]line ТРК (МРК, ГНК) : 21 [22:12:28]line Товар: 2710194800 [22:12:28]line ДТ-К-5 [22:12:28]line 131.100 * 76.20 [22:12:28]line = 9989.82 [22:12:28]line НДС 12% НСП 1% [22:12:28]line > о реализуемом товаре [22:12:28]line ОКРУГЛЕНИЕ: -0.82 [22:12:28]line ИТОГО: 9989.00 [22:12:28]line НСП 1% : 88.40 [22:12:28]line НДС 12% : 1060.87 [22:12:28]line Наличными: 0.00 [22:12:28]line Безнал.: 9989.00 [22:12:28]line Место: АЗС № 134 "Партнер Нефть" [22:12:28]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:12:28]line СНО: Общий режим [22:12:28]line Чек 258 27.07.2024 22:12 [22:12:28]line Смена: 432 ФФД: 1.0 [22:12:28]line ЗНМ: 0300000044 [22:12:28]line РНМ: 0000000000092660 [22:12:28]line Версия ККМ: 001 [22:12:28]line Платежная система: O! деньги [22:12:28]line ФМ: 0000000000874939 [22:12:28]line ФД: 118315 [22:12:28]line ФПД: 203086488160770 [22:12:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T221228&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118315&fm=203086488160770&tin=02508201610067®Number=0000000000092660&sum=998900 [22:12:28]OFD Sender: Processing packet 118315 [packets to send 86, broken 85] [22:12:28]ProducePacketName [22:12:28]name=ofd_packets/00118315 [22:12:28]OFD Sender: To server: pG, [22:12:28]CommunicateWithHost lk.salyk.kg:30040 [22:12:28]ConnectInit lk.salyk.kg [22:12:28]written 0, free lines is 4095 [22:12:28]Connected sock=10 [22:12:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 14 02 04 01 BA E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 CC 70 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2B CE 01 00 35 04 06 00 B8 B4 C1 FC 4A 02 7E 2B DF A8 28 EF 94 5B [22:12:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 6A DC 47 00 1B 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 34 39 33 39 10 04 04 00 2B CE 01 00 F4 03 04 00 5E 1E A5 66 B6 04 01 00 00 AB 99 12 D9 D5 24 74 C9 [22:12:28]CommunicateWithHost err = 0 [22:12:28]CheckOFDResponse [22:12:28]1017 (14) - 77093643461234 [22:12:28]1041 (16) - 0000000000874939 [22:12:28]1040 (4) - 118315 [22:12:28]1012 (4) - 27.07.2024 16:20 [22:12:28]1206 (1) - 0 [22:12:28]OFD Sender: Remove packet 118315 [22:12:28]ProducePacketName [22:12:28]name=ofd_packets/00118315 [22:12:28]NVStorageDeleteData [22:12:28]Write to MH i2c: 01 00 00 CC 25 F1 [22:12:28]Write i2c OK [22:12:28]MH_I2C_Read... [22:12:28]Read from MH i2c: 01 [22:12:28]MH_I2C_Read... [22:12:28]Read from MH i2c: 01 07 00 [22:12:29]MH_I2C_Read... [22:12:29]Read from MH i2c: 01 07 00 CC 25 00 00 00 00 00 F4 0C F8 [22:12:29]RasterBufferAndPrint [22:12:29]line [22:12:29]line [22:12:29]line [22:12:29]line [22:12:29]line [22:12:29]written 0, free lines is 3323 [22:12:29]MH_Cut [22:12:29]Write to MH i2c: D1 01 00 D3 25 01 CA [22:12:29]Write i2c OK [22:12:29]MH_I2C_Read... [22:12:29]Read from MH i2c: D1 [22:12:29]MH_I2C_Read... [22:12:29]Read from MH i2c: D1 01 00 [22:12:29]MH_I2C_Read... [22:12:29]Read from MH i2c: D1 01 00 D3 25 00 C9 [22:12:29]Write to MH i2c: 01 00 00 D4 25 F9 [22:12:29]Write i2c OK [22:12:29]MH_I2C_Read... [22:12:29]OFD Sender: No OFD packet to send [22:12:29]*** Cut start [22:12:29]*** Partial cut [22:12:29]*** CUTSNS_PIN = 1 [22:12:29]*** CUTSNS_PIN = 0 [22:12:29]*** Brake cut motor [22:12:30]Read from MH i2c: 01 [22:12:30]MH_I2C_Read... [22:12:30]*** Stop cut motor [22:12:30]*** Cut end [22:12:30]Read from MH i2c: 01 07 00 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: 01 07 00 D4 25 00 00 00 00 00 FF 0F 0E [22:12:30]process_action close_receipt done [22:12:30]requested_data is exist [22:12:30]produce_requested_data [22:12:30]requested_item fm.sn is exist - process it [22:12:30]wFMCommunicate request_size=4 [22:12:30]MH_SAM_APDU [22:12:30]CAPDU: 80 11 00 00 [22:12:30]Write to MH i2c: E2 08 00 D5 25 80 11 00 00 00 00 00 00 74 [22:12:30]Write i2c OK [22:12:30]MH_I2C_Read... [22:12:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:30]Read from MH i2c: E2 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: E2 17 00 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: E2 17 00 D5 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CF [22:12:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:12:30]wFMCommunicate OK [22:12:30]requested_item fd.num is exist - process it [22:12:30]SAM_PROTO_GetFieldsCounters [22:12:30]wFMCommunicate request_size=4 [22:12:30]MH_SAM_APDU [22:12:30]CAPDU: 80 13 00 00 [22:12:30]Write to MH i2c: E2 08 00 D6 25 80 13 00 00 00 00 00 00 77 [22:12:30]Write i2c OK [22:12:30]MH_I2C_Read... [22:12:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:12:30]Read from MH i2c: E2 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: E2 62 00 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: E2 62 00 D6 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2B CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 52 [22:12:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2B CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:12:30]wFMCommunicate OK [22:12:30]SAM_PROTO_GetFieldsCounters done [22:12:30]requested_item shift.num is exist - process it [22:12:30]requested_item shift.opened is exist - process it [22:12:30]req_shift_opened [22:12:30]FM_GetShiftState [22:12:30]SAM_PROTO_GetShiftState [22:12:30]wFMCommunicate request_size=4 [22:12:30]MH_SAM_APDU [22:12:30]CAPDU: 80 13 01 00 [22:12:30]Write to MH i2c: E2 08 00 D7 25 80 13 01 00 00 00 00 00 79 [22:12:30]Write i2c OK [22:12:30]MH_I2C_Read... [22:12:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:30]Read from MH i2c: E2 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: E2 0E 00 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: E2 0E 00 D7 25 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 06 [22:12:30]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [22:12:30]wFMCommunicate OK [22:12:30]SAM_PROTO_GetShiftState done [22:12:30]FM_GetShiftState done [22:12:30]req_shift_opened done [22:12:30]requested_item shift.open_date is exist - process it [22:12:30]req_shift_open_date [22:12:30]req_shift_open_date done [22:12:30]produce_requested_data done [22:12:30]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118315,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [22:12:30]process_action_free close_receipt [22:12:30]json_value_free [22:12:30]json_value_free done [22:12:30]process_json_proto returns [22:12:30]Send response to host [22:12:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118315,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [22:12:30]free response buf [22:12:30]execute_script done [22:12:30]execute_script returns [22:12:30]free content buf [22:12:30]Sock 7.Close socket [22:12:30]Sock 7.Thread stoped [22:12:30]accept exits with 9 [22:12:30]New connection [22:12:30]New thread 3066953060 created [22:12:30]Thread 3067096420 joined [22:12:30]Waiting for new connection... [22:12:30] Sock 9.Parse request [22:12:30]Sock 9.Check first char [22:12:30]Sock 9.First char is OK [22:12:30]request: POST /json_proto HTTP/1.0 [22:12:30]Method: POST [22:12:30]URL: /json_proto [22:12:30]Method is POST - this is cgi request [22:12:30]url: /json_proto [22:12:30]query_string will be loaded in cgi processing [22:12:30]execute_cgi json_proto POST (null) [22:12:30]execute_cgi path=json_proto method=POST [22:12:30]POST find Content-Length [22:12:30]Host: 172.17.45.7:8080 [22:12:30]Content-Length: 820 [22:12:30]Content-Type: application/json [22:12:30] [22:12:30]POST finish read [22:12:30]Found Content-Length = 820 [22:12:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:30]execute_script... [22:12:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:30]POST & json_proto [22:12:30]process_json_proto [22:12:30]json parsed OK: [22:12:30]protocol is kg_v1.0 [22:12:30]action value=close_receipt [22:12:30]process_action close_receipt [22:12:30]cmd_close_receipt [22:12:30]MH_GetDate [22:12:30]Write to MH i2c: F0 00 00 D8 25 EC [22:12:30]Write i2c OK [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: F0 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: F0 09 00 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: F0 09 00 D8 25 00 D0 70 A5 66 90 0F 3E 66 83 [22:12:30]GetLastDocTimeStamp 1722118348 [22:12:30]current date 1722118352 [22:12:30]FM_GetShiftState [22:12:30]SAM_PROTO_GetShiftState [22:12:30]wFMCommunicate request_size=4 [22:12:30]MH_SAM_APDU [22:12:30]CAPDU: 80 13 01 00 [22:12:30]Write to MH i2c: E2 08 00 D9 25 80 13 01 00 00 00 00 00 7B [22:12:30]Write i2c OK [22:12:30]MH_I2C_Read... [22:12:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:30]Read from MH i2c: E2 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: E2 0E 00 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: E2 0E 00 D9 25 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 08 [22:12:30]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [22:12:30]wFMCommunicate OK [22:12:30]SAM_PROTO_GetShiftState done [22:12:30]FM_GetShiftState done [22:12:30]opened in 1722038845 [22:12:30]opened+sec_in_day 1722125245 [22:12:30]quantity*price = 998982 [22:12:30]sum+1 = 998983 [22:12:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.82 ИТОГО: 9989.00 НСП 1% : 88.40 НДС 12% : 1060.87 Наличными: 0.00 Безнал.: 9989.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 259 27.07.2024 22:12 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118316 ФПД: 195576193933912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T221232&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118316&fm=195576193933912&tin=02508201610067®Number=0000000000092660&sum=998900 [22:12:32]StoreToDocumentArchive [22:12:32]shift 432 fd 118316 [22:12:32]save to /storage/0432/doc_00118316 [22:12:32]save last doc name /storage/0432/doc_00118316 to /storage/kkm_last_doc_name [22:12:32]save OK [22:12:32]Clear old archive folders... [22:12:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:12:32]tlvbuf is 01DDC8E0 [22:12:32]SAM_PROTO_ClearQueue [22:12:32]wFMCommunicate request_size=4 [22:12:32]MH_SAM_APDU [22:12:32]CAPDU: 80 09 00 00 [22:12:32]Write to MH i2c: E2 08 00 E6 25 80 09 00 00 00 00 00 00 7D [22:12:32]Write i2c OK [22:12:32]MH_I2C_Read... [22:12:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:12:32]Read from MH i2c: E2 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: E2 03 00 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: E2 03 00 E6 25 00 90 00 7F [22:12:32]RAPDU: 90 00 [22:12:32]wFMCommunicate OK [22:12:32]SAM_PROTO_ClearQueue done [22:12:32]KKMCreateOFDPacket [22:12:32]OFDProtocolAddRootSTLVToBuf [22:12:32]FM_MakeSignedData [22:12:32]FM_MakeSignedData [22:12:32]SAM_PROTO_SignData [22:12:32]wFMCommunicate request_size=4 [22:12:32]MH_SAM_APDU [22:12:32]CAPDU: 80 0D 01 02 [22:12:32]Write to MH i2c: E2 08 00 E7 25 80 0D 01 02 00 00 00 00 85 [22:12:32]Write i2c OK [22:12:32]MH_I2C_Read... [22:12:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:12:32]Read from MH i2c: E2 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: E2 03 00 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: E2 03 00 E7 25 00 90 00 80 [22:12:32]RAPDU: 90 00 [22:12:32]wFMCommunicate OK [22:12:32]wFMCommunicate request_size=255 [22:12:32]MH_SAM_APDU [22:12:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 D0 70 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2C CE 01 00 35 04 06 00 B1 E0 21 90 [22:12:32]Write to MH i2c: E2 02 01 E8 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 D0 70 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2C CE 01 00 35 04 06 00 B1 E0 21 90 00 00 EC [22:12:32]Write i2c OK [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: E2 [22:12:32]MH_I2C_Read... [22:12:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:32]Read from MH i2c: E2 03 00 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: E2 03 00 E8 25 00 90 00 81 [22:12:32]RAPDU: 90 00 [22:12:32]wFMCommunicate OK [22:12:32]wFMCommunicate request_size=7 [22:12:32]MH_SAM_APDU [22:12:32]CAPDU: 80 0D 02 02 02 E2 58 [22:12:32]Write to MH i2c: E2 0A 00 E9 25 80 0D 02 02 02 00 E2 58 00 00 C6 [22:12:32]Write i2c OK [22:12:32]MH_I2C_Read... [22:12:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:32]Read from MH i2c: E2 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: E2 03 00 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: E2 03 00 E9 25 00 90 00 82 [22:12:32]RAPDU: 90 00 [22:12:32]wFMCommunicate OK [22:12:32]wFMCommunicate request_size=4 [22:12:32]MH_SAM_APDU [22:12:32]CAPDU: 80 0D 03 02 [22:12:32]Write to MH i2c: E2 08 00 EA 25 80 0D 03 02 00 00 00 00 8A [22:12:32]Write i2c OK [22:12:32]MH_I2C_Read... [22:12:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:12:32]Read from MH i2c: E2 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: E2 0B 00 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: E2 0B 00 EA 25 00 B7 08 5C 1C E6 BE 92 DF 90 00 D7 [22:12:32]RAPDU: B7 08 5C 1C E6 BE 92 DF 90 00 [22:12:32]wFMCommunicate OK [22:12:32]SAM_PROTO_SignData done [22:12:32]FM_MakeSignedData done [22:12:32]CreateOFDProtocolMessage [22:12:32]wFMCommunicate request_size=4 [22:12:32]MH_SAM_APDU [22:12:32]CAPDU: 80 11 00 00 [22:12:32]Write to MH i2c: E2 08 00 EB 25 80 11 00 00 00 00 00 00 8A [22:12:32]Write i2c OK [22:12:32]MH_I2C_Read... [22:12:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:32]Read from MH i2c: E2 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: E2 17 00 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: E2 17 00 EB 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E5 [22:12:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:12:32]wFMCommunicate OK [22:12:32]CreateOFDProtocolMessage done [22:12:32]OFDSenderStorePacket 118316 [22:12:32]StoreOFDPacket docnum=118316 [22:12:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 59 EF 04 01 F8 A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 D0 70 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2C CE 01 00 35 04 06 00 B1 E0 21 90 E2 58 B7 08 5C 1C E6 BE 92 DF [22:12:32]CheckFolder [22:12:32]dirname=/storage/ofd_packets [22:12:32]CheckFolder done [22:12:32]ProducePacketName [22:12:32]name=ofd_packets/00118316 [22:12:32]NVStorageSaveData ofd_packets/00118316 [22:12:32]File name is /storage/ofd_packets/00118316 [22:12:32]Write 298 bytes [22:12:32]NVStorageSaveData done [22:12:32]OFDSenderStorePacket done [22:12:32]KKMCreateOFDPacket done [22:12:32]NVStorageSaveData kkm_last_timestamp [22:12:32]File name is /storage/kkm_last_timestamp [22:12:32]Write 4 bytes [22:12:32]NVStorageSaveData done [22:12:32]ExternCall_PrintAddStr [22:12:32]wPrintStart [22:12:32]Write to MH i2c: 01 00 00 EC 25 11 [22:12:32]Write i2c OK [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: 01 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: 01 07 00 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: 01 07 00 EC 25 00 00 00 00 00 FF 0F 26 [22:12:33]RasterBufferAndPrint [22:12:33]line Счет N : (1)949188 [22:12:33]line ИНН: 02508201610067 [22:12:33]line Контрольно-Кассовый Чек [22:12:33]line ПРОДАЖА [22:12:33]line ТРК (МРК, ГНК) : 11 [22:12:33]line Товар: 2710194800 [22:12:33]line ДТ-К-5 [22:12:33]line 131.100 * 76.20 [22:12:33]line = 9989.82 [22:12:33]line НДС 12% НСП 1% [22:12:33]line > о реализуемом товаре [22:12:33]line ОКРУГЛЕНИЕ: -0.82 [22:12:33]line ИТОГО: 9989.00 [22:12:33]line НСП 1% : 88.40 [22:12:33]line НДС 12% : 1060.87 [22:12:33]line Наличными: 0.00 [22:12:33]line Безнал.: 9989.00 [22:12:33]line Место: АЗС № 134 "Партнер Нефть" [22:12:33]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:12:33]line СНО: Общий режим [22:12:33]line Чек 259 27.07.2024 22:12 [22:12:33]line Смена: 432 ФФД: 1.0 [22:12:33]line ЗНМ: 0300000044 [22:12:33]line РНМ: 0000000000092660 [22:12:33]line Версия ККМ: 001 [22:12:33]line Платежная система: O! деньги [22:12:33]line ФМ: 0000000000874939 [22:12:33]line ФД: 118316 [22:12:33]line ФПД: 195576193933912 [22:12:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T221232&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118316&fm=195576193933912&tin=02508201610067®Number=0000000000092660&sum=998900 [22:12:33]OFD Sender: Processing packet 118316 [packets to send 86, broken 85] [22:12:33]ProducePacketName [22:12:33]name=ofd_packets/00118316 [22:12:33]written 0, free lines is 4095 [22:12:33]OFD Sender: To server: pG, [22:12:33]CommunicateWithHost lk.salyk.kg:30040 [22:12:33]ConnectInit lk.salyk.kg [22:12:33]Connected sock=10 [22:12:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 59 EF 04 01 F8 A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 D0 70 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2C CE 01 00 35 04 06 00 B1 E0 21 90 E2 58 B7 08 5C 1C E6 BE 92 DF [22:12:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F8 78 47 00 40 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2C CE 01 00 F4 03 04 00 62 1E A5 66 B6 04 01 00 00 78 7D 77 7B 13 CE 49 25 [22:12:33]CommunicateWithHost err = 0 [22:12:33]CheckOFDResponse [22:12:33]1017 (14) - 77093643461234 [22:12:33]1041 (16) - 0000000000874939 [22:12:33]1040 (4) - 118316 [22:12:33]1012 (4) - 27.07.2024 16:20 [22:12:33]1206 (1) - 0 [22:12:33]OFD Sender: Remove packet 118316 [22:12:33]ProducePacketName [22:12:33]name=ofd_packets/00118316 [22:12:33]NVStorageDeleteData [22:12:33]Write to MH i2c: 01 00 00 16 26 3C [22:12:33]Write i2c OK [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: 01 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: 01 07 00 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: 01 07 00 16 26 00 00 00 00 00 02 0D 52 [22:12:33]RasterBufferAndPrint [22:12:33]line [22:12:33]line [22:12:33]line [22:12:33]line [22:12:33]line [22:12:33]written 0, free lines is 3344 [22:12:33]MH_Cut [22:12:33]Write to MH i2c: D1 01 00 1D 26 01 15 [22:12:33]Write i2c OK [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: D1 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: D1 01 00 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: D1 01 00 1D 26 00 14 [22:12:33]Write to MH i2c: 01 00 00 1E 26 44 [22:12:33]Write i2c OK [22:12:33]MH_I2C_Read... [22:12:34]OFD Sender: No OFD packet to send [22:12:34]*** Cut start [22:12:34]*** Partial cut [22:12:34]*** CUTSNS_PIN = 1 [22:12:34]*** CUTSNS_PIN = 0 [22:12:34]*** Brake cut motor [22:12:35]Read from MH i2c: 01 [22:12:35]MH_I2C_Read... [22:12:35]*** Stop cut motor [22:12:35]*** Cut end [22:12:35]Read from MH i2c: 01 07 00 [22:12:35]MH_I2C_Read... [22:12:35]Read from MH i2c: 01 07 00 1E 26 00 00 00 00 00 FF 0F 59 [22:12:35]process_action close_receipt done [22:12:35]requested_data is exist [22:12:35]produce_requested_data [22:12:35]requested_item fm.sn is exist - process it [22:12:35]wFMCommunicate request_size=4 [22:12:35]MH_SAM_APDU [22:12:35]CAPDU: 80 11 00 00 [22:12:35]Write to MH i2c: E2 08 00 1F 26 80 11 00 00 00 00 00 00 BF [22:12:35]Write i2c OK [22:12:35]MH_I2C_Read... [22:12:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:35]Read from MH i2c: E2 [22:12:35]MH_I2C_Read... [22:12:35]Read from MH i2c: E2 17 00 [22:12:35]MH_I2C_Read... [22:12:35]Read from MH i2c: E2 17 00 1F 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1A [22:12:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:12:35]wFMCommunicate OK [22:12:35]requested_item fd.num is exist - process it [22:12:35]SAM_PROTO_GetFieldsCounters [22:12:35]wFMCommunicate request_size=4 [22:12:35]MH_SAM_APDU [22:12:35]CAPDU: 80 13 00 00 [22:12:35]Write to MH i2c: E2 08 00 20 26 80 13 00 00 00 00 00 00 C2 [22:12:35]Write i2c OK [22:12:35]MH_I2C_Read... [22:12:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:12:35]Read from MH i2c: E2 [22:12:35]MH_I2C_Read... [22:12:35]Read from MH i2c: E2 62 00 [22:12:35]MH_I2C_Read... [22:12:35]Read from MH i2c: E2 62 00 20 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2C CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 A1 [22:12:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2C CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:12:35]wFMCommunicate OK [22:12:35]SAM_PROTO_GetFieldsCounters done [22:12:35]requested_item shift.num is exist - process it [22:12:35]requested_item shift.opened is exist - process it [22:12:35]req_shift_opened [22:12:35]FM_GetShiftState [22:12:35]SAM_PROTO_GetShiftState [22:12:35]wFMCommunicate request_size=4 [22:12:35]MH_SAM_APDU [22:12:35]CAPDU: 80 13 01 00 [22:12:35]Write to MH i2c: E2 08 00 21 26 80 13 01 00 00 00 00 00 C4 [22:12:35]Write i2c OK [22:12:35]MH_I2C_Read... [22:12:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:35]Read from MH i2c: E2 [22:12:35]MH_I2C_Read... [22:12:35]Read from MH i2c: E2 0E 00 [22:12:35]MH_I2C_Read... [22:12:35]Read from MH i2c: E2 0E 00 21 26 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 51 [22:12:35]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [22:12:35]wFMCommunicate OK [22:12:35]SAM_PROTO_GetShiftState done [22:12:35]FM_GetShiftState done [22:12:35]req_shift_opened done [22:12:35]requested_item shift.open_date is exist - process it [22:12:35]req_shift_open_date [22:12:35]req_shift_open_date done [22:12:35]produce_requested_data done [22:12:35]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118316,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [22:12:35]process_action_free close_receipt [22:12:35]json_value_free [22:12:35]json_value_free done [22:12:35]process_json_proto returns [22:12:35]Send response to host [22:12:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118316,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [22:12:35]free response buf [22:12:35]execute_script done [22:12:35]execute_script returns [22:12:35]free content buf [22:12:35]Sock 9.Close socket [22:12:35]Sock 9.Thread stoped [22:12:39]OFD Sender: No OFD packet to send [22:12:44]OFD Sender: No OFD packet to send [22:12:49]OFD Sender: No OFD packet to send [22:12:54]OFD Sender: No OFD packet to send [22:12:59]OFD Sender: No OFD packet to send [22:13:04]OFD Sender: No OFD packet to send [22:13:09]OFD Sender: No OFD packet to send [22:13:14]OFD Sender: No OFD packet to send [22:13:19]OFD Sender: No OFD packet to send [22:13:24]OFD Sender: No OFD packet to send [22:13:29]OFD Sender: No OFD packet to send [22:13:34]OFD Sender: No OFD packet to send [22:13:39]OFD Sender: No OFD packet to send [22:13:44]OFD Sender: No OFD packet to send [22:13:49]OFD Sender: No OFD packet to send [22:13:54]OFD Sender: No OFD packet to send [22:13:59]OFD Sender: No OFD packet to send [22:14:04]OFD Sender: No OFD packet to send [22:14:09]OFD Sender: No OFD packet to send [22:14:12]accept exits with 7 [22:14:12]New connection [22:14:12]New thread 3067096420 created [22:14:12]Thread 3066953060 joined [22:14:12]Waiting for new connection... [22:14:12] Sock 7.Parse request [22:14:12]Sock 7.Check first char [22:14:12]Sock 7.First char is OK [22:14:12]request: POST /json_proto HTTP/1.0 [22:14:12]Method: POST [22:14:12]URL: /json_proto [22:14:12]Method is POST - this is cgi request [22:14:12]url: /json_proto [22:14:12]query_string will be loaded in cgi processing [22:14:12]execute_cgi json_proto POST (null) [22:14:12]execute_cgi path=json_proto method=POST [22:14:12]POST find Content-Length [22:14:12]Host: 172.17.45.7:8080 [22:14:12]Content-Length: 819 [22:14:12]Content-Type: application/json [22:14:12] [22:14:12]POST finish read [22:14:12]Found Content-Length = 819 [22:14:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.240, "sum" : 1999.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1999.00, "payments": [ { "type": 1, "sum" : 1999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:14:12]execute_script... [22:14: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)949189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.240, "sum" : 1999.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1999.00, "payments": [ { "type": 1, "sum" : 1999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:14:12]POST & json_proto [22:14:12]process_json_proto [22:14:12]json parsed OK: [22:14:12]protocol is kg_v1.0 [22:14:12]action value=close_receipt [22:14:12]process_action close_receipt [22:14:12]cmd_close_receipt [22:14:12]MH_GetDate [22:14:12]Write to MH i2c: F0 00 00 22 26 37 [22:14:12]Write i2c OK [22:14:12]MH_I2C_Read... [22:14:12]Read from MH i2c: F0 [22:14:12]MH_I2C_Read... [22:14:12]Read from MH i2c: F0 09 00 [22:14:12]MH_I2C_Read... [22:14:12]Read from MH i2c: F0 09 00 22 26 00 35 71 A5 66 90 0F 3E 66 34 [22:14:12]GetLastDocTimeStamp 1722118352 [22:14:12]current date 1722118453 [22:14:12]FM_GetShiftState [22:14:12]SAM_PROTO_GetShiftState [22:14:12]wFMCommunicate request_size=4 [22:14:12]MH_SAM_APDU [22:14:12]CAPDU: 80 13 01 00 [22:14:12]Write to MH i2c: E2 08 00 23 26 80 13 01 00 00 00 00 00 C6 [22:14:12]Write i2c OK [22:14:12]MH_I2C_Read... [22:14:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:14:12]Read from MH i2c: E2 [22:14:12]MH_I2C_Read... [22:14:12]Read from MH i2c: E2 0E 00 [22:14:12]MH_I2C_Read... [22:14:12]Read from MH i2c: E2 0E 00 23 26 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 53 [22:14:12]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [22:14:12]wFMCommunicate OK [22:14:12]SAM_PROTO_GetShiftState done [22:14:12]FM_GetShiftState done [22:14:12]opened in 1722038845 [22:14:12]opened+sec_in_day 1722125245 [22:14:12]quantity*price = 199948 [22:14:12]sum+1 = 199950 [22:14:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 1999.00 НСП 1% : 17.69 НДС 12% : 212.33 Наличными: 0.00 Безнал.: 1999.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 260 27.07.2024 22:14 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118317 ФПД: 182971756113219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T221414&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118317&fm=182971756113219&tin=02508201610067®Number=0000000000092660&sum=199900 [22:14:13]StoreToDocumentArchive [22:14:13]shift 432 fd 118317 [22:14:13]save to /storage/0432/doc_00118317 [22:14:13]save last doc name /storage/0432/doc_00118317 to /storage/kkm_last_doc_name [22:14:13]save OK [22:14:13]Clear old archive folders... [22:14:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:14:13]tlvbuf is B6EFDDA0 [22:14:13]SAM_PROTO_ClearQueue [22:14:13]wFMCommunicate request_size=4 [22:14:13]MH_SAM_APDU [22:14:13]CAPDU: 80 09 00 00 [22:14:13]Write to MH i2c: E2 08 00 30 26 80 09 00 00 00 00 00 00 C8 [22:14:13]Write i2c OK [22:14:13]MH_I2C_Read... [22:14:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:14:13]Read from MH i2c: E2 [22:14:13]MH_I2C_Read... [22:14:13]Read from MH i2c: E2 03 00 [22:14:13]MH_I2C_Read... [22:14:13]Read from MH i2c: E2 03 00 30 26 00 90 00 CA [22:14:13]RAPDU: 90 00 [22:14:13]wFMCommunicate OK [22:14:13]SAM_PROTO_ClearQueue done [22:14:13]KKMCreateOFDPacket [22:14:13]OFDProtocolAddRootSTLVToBuf [22:14:13]FM_MakeSignedData [22:14:13]FM_MakeSignedData [22:14:13]SAM_PROTO_SignData [22:14:13]wFMCommunicate request_size=4 [22:14:13]MH_SAM_APDU [22:14:13]CAPDU: 80 0D 01 02 [22:14:13]Write to MH i2c: E2 08 00 31 26 80 0D 01 02 00 00 00 00 D0 [22:14:13]Write i2c OK [22:14:13]MH_I2C_Read... [22:14:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:14:13]Read from MH i2c: E2 [22:14:13]MH_I2C_Read... [22:14:13]Read from MH i2c: E2 03 00 [22:14:13]MH_I2C_Read... [22:14:13]Read from MH i2c: E2 03 00 31 26 00 90 00 CB [22:14:13]RAPDU: 90 00 [22:14:13]wFMCommunicate OK [22:14:13]wFMCommunicate request_size=255 [22:14:13]MH_SAM_APDU [22:14: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 0C 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 36 71 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2D CE 01 00 35 04 06 00 A6 69 6E 86 [22:14:13]Write to MH i2c: E2 02 01 32 26 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 0C 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 36 71 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2D CE 01 00 35 04 06 00 A6 69 6E 86 00 00 8B [22:14:13]Write i2c OK [22:14:13]MH_I2C_Read... [22:14:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:14:13]Read from MH i2c: E2 [22:14:13]MH_I2C_Read... [22:14:13]Read from MH i2c: E2 03 00 [22:14:13]MH_I2C_Read... [22:14:13]Read from MH i2c: E2 03 00 32 26 00 90 00 CC [22:14:13]RAPDU: 90 00 [22:14:13]wFMCommunicate OK [22:14:13]wFMCommunicate request_size=7 [22:14:13]MH_SAM_APDU [22:14:13]CAPDU: 80 0D 02 02 02 ED 43 [22:14:13]Write to MH i2c: E2 0A 00 33 26 80 0D 02 02 02 00 ED 43 00 00 07 [22:14:13]Write i2c OK [22:14:13]MH_I2C_Read... [22:14:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:14:13]Read from MH i2c: E2 [22:14:13]MH_I2C_Read... [22:14:13]Read from MH i2c: E2 03 00 [22:14:13]MH_I2C_Read... [22:14:13]Read from MH i2c: E2 03 00 33 26 00 90 00 CD [22:14:13]RAPDU: 90 00 [22:14:13]wFMCommunicate OK [22:14:13]wFMCommunicate request_size=4 [22:14:13]MH_SAM_APDU [22:14:13]CAPDU: 80 0D 03 02 [22:14:13]Write to MH i2c: E2 08 00 34 26 80 0D 03 02 00 00 00 00 D5 [22:14:13]Write i2c OK [22:14:13]MH_I2C_Read... [22:14:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:14:13]Read from MH i2c: E2 [22:14:13]MH_I2C_Read... [22:14:13]Read from MH i2c: E2 0B 00 [22:14:13]MH_I2C_Read... [22:14:13]Read from MH i2c: E2 0B 00 34 26 00 96 1C EF A5 84 E7 05 90 90 00 1C [22:14:13]RAPDU: 96 1C EF A5 84 E7 05 90 90 00 [22:14:13]wFMCommunicate OK [22:14:13]SAM_PROTO_SignData done [22:14:13]FM_MakeSignedData done [22:14:13]CreateOFDProtocolMessage [22:14:13]wFMCommunicate request_size=4 [22:14:13]MH_SAM_APDU [22:14:13]CAPDU: 80 11 00 00 [22:14:13]Write to MH i2c: E2 08 00 35 26 80 11 00 00 00 00 00 00 D5 [22:14:13]Write i2c OK [22:14:13]MH_I2C_Read... [22:14:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:14:14]Read from MH i2c: E2 [22:14:14]MH_I2C_Read... [22:14:14]Read from MH i2c: E2 17 00 [22:14:14]MH_I2C_Read... [22:14:14]Read from MH i2c: E2 17 00 35 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 30 [22:14:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:14:14]wFMCommunicate OK [22:14:14]CreateOFDProtocolMessage done [22:14:14]OFDSenderStorePacket 118317 [22:14:14]StoreOFDPacket docnum=118317 [22:14:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 EB 79 04 01 A4 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 0C 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 36 71 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2D CE 01 00 35 04 06 00 A6 69 6E 86 ED 43 96 1C EF A5 84 E7 05 90 [22:14:14]CheckFolder [22:14:14]dirname=/storage/ofd_packets [22:14:14]CheckFolder done [22:14:14]ProducePacketName [22:14:14]name=ofd_packets/00118317 [22:14:14]NVStorageSaveData ofd_packets/00118317 [22:14:14]File name is /storage/ofd_packets/00118317 [22:14:14]Write 298 bytes [22:14:14]NVStorageSaveData done [22:14:14]OFDSenderStorePacket done [22:14:14]KKMCreateOFDPacket done [22:14:14]NVStorageSaveData kkm_last_timestamp [22:14:14]File name is /storage/kkm_last_timestamp [22:14:14]Write 4 bytes [22:14:14]NVStorageSaveData done [22:14:14]ExternCall_PrintAddStr [22:14:14]wPrintStart [22:14:14]Write to MH i2c: 01 00 00 36 26 5C [22:14:14]Write i2c OK [22:14:14]MH_I2C_Read... [22:14:14]Read from MH i2c: 01 [22:14:14]MH_I2C_Read... [22:14:14]Read from MH i2c: 01 07 00 [22:14:14]MH_I2C_Read... [22:14:14]Read from MH i2c: 01 07 00 36 26 00 00 00 00 00 FF 0F 71 [22:14:14]RasterBufferAndPrint [22:14:14]line Счет N : (1)949189 [22:14:14]line ИНН: 02508201610067 [22:14:14]line Контрольно-Кассовый Чек [22:14:14]line ПРОДАЖА [22:14:14]line ТРК (МРК, ГНК) : 21 [22:14:14]line Товар: 2710194800 [22:14:14]line ДТ-К-5 [22:14:14]line 26.240 * 76.20 [22:14:14]line = 1999.49 [22:14:14]line НДС 12% НСП 1% [22:14:14]line > о реализуемом товаре [22:14:14]line ОКРУГЛЕНИЕ: -0.49 [22:14:14]line ИТОГО: 1999.00 [22:14:14]line НСП 1% : 17.69 [22:14:14]line НДС 12% : 212.33 [22:14:14]line Наличными: 0.00 [22:14:14]line Безнал.: 1999.00 [22:14:14]line Место: АЗС № 134 "Партнер Нефть" [22:14:14]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:14:14]line СНО: Общий режим [22:14:14]line Чек 260 27.07.2024 22:14 [22:14:14]line Смена: 432 ФФД: 1.0 [22:14:14]line ЗНМ: 0300000044 [22:14:14]line РНМ: 0000000000092660 [22:14:14]line Версия ККМ: 001 [22:14:14]line Платежная система: O! деньги [22:14:14]line ФМ: 0000000000874939 [22:14:14]line ФД: 118317 [22:14:14]line ФПД: 182971756113219 [22:14:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T221414&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118317&fm=182971756113219&tin=02508201610067®Number=0000000000092660&sum=199900 [22:14:14]OFD Sender: Processing packet 118317 [packets to send 86, broken 85] [22:14:14]ProducePacketName [22:14:14]name=ofd_packets/00118317 [22:14:14]OFD Sender: To server: pG, [22:14:14]CommunicateWithHost lk.salyk.kg:30040 [22:14:14]ConnectInit lk.salyk.kg [22:14:14]written 0, free lines is 4095 [22:14:14]Connected sock=10 [22:14:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 EB 79 04 01 A4 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 0C 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 36 71 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2D CE 01 00 35 04 06 00 A6 69 6E 86 ED 43 96 1C EF A5 84 E7 05 90 [22:14:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 3C DA 47 00 1E 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2D CE 01 00 F4 03 04 00 C7 1E A5 66 B6 04 01 00 00 13 DB 61 4E E7 22 58 46 [22:14:14]CommunicateWithHost err = 0 [22:14:14]CheckOFDResponse [22:14:14]1017 (14) - 77093643461234 [22:14:14]1041 (16) - 0000000000874939 [22:14:14]1040 (4) - 118317 [22:14:14]1012 (4) - 27.07.2024 16:22 [22:14:14]1206 (1) - 0 [22:14:14]OFD Sender: Remove packet 118317 [22:14:14]ProducePacketName [22:14:14]name=ofd_packets/00118317 [22:14:14]NVStorageDeleteData [22:14:14]Write to MH i2c: 01 00 00 60 26 86 [22:14:14]Write i2c OK [22:14:14]MH_I2C_Read... [22:14:14]Read from MH i2c: 01 [22:14:14]MH_I2C_Read... [22:14:14]Read from MH i2c: 01 07 00 [22:14:14]MH_I2C_Read... [22:14:14]Read from MH i2c: 01 07 00 60 26 00 00 00 00 00 F1 0C 8A [22:14:14]RasterBufferAndPrint [22:14:14]line [22:14:14]line [22:14:14]line [22:14:14]line [22:14:14]line [22:14:14]written 0, free lines is 3319 [22:14:14]MH_Cut [22:14:14]Write to MH i2c: D1 01 00 67 26 01 5F [22:14:14]Write i2c OK [22:14:14]MH_I2C_Read... [22:14:14]Read from MH i2c: D1 [22:14:14]MH_I2C_Read... [22:14:14]Read from MH i2c: D1 01 00 [22:14:14]MH_I2C_Read... [22:14:14]Read from MH i2c: D1 01 00 67 26 00 5E [22:14:14]Write to MH i2c: 01 00 00 68 26 8E [22:14:14]Write i2c OK [22:14:14]MH_I2C_Read... [22:14:15]OFD Sender: No OFD packet to send [22:14:15]*** Cut start [22:14:15]*** Partial cut [22:14:15]*** CUTSNS_PIN = 1 [22:14:15]*** CUTSNS_PIN = 0 [22:14:15]*** Brake cut motor [22:14:16]Read from MH i2c: 01 [22:14:16]MH_I2C_Read... [22:14:16]*** Stop cut motor [22:14:16]*** Cut end [22:14:16]Read from MH i2c: 01 07 00 [22:14:16]MH_I2C_Read... [22:14:16]Read from MH i2c: 01 07 00 68 26 00 00 00 00 00 FF 0F A3 [22:14:16]process_action close_receipt done [22:14:16]requested_data is exist [22:14:16]produce_requested_data [22:14:16]requested_item fm.sn is exist - process it [22:14:16]wFMCommunicate request_size=4 [22:14:16]MH_SAM_APDU [22:14:16]CAPDU: 80 11 00 00 [22:14:16]Write to MH i2c: E2 08 00 69 26 80 11 00 00 00 00 00 00 09 [22:14:16]Write i2c OK [22:14:16]MH_I2C_Read... [22:14:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:14:16]Read from MH i2c: E2 [22:14:16]MH_I2C_Read... [22:14:16]Read from MH i2c: E2 17 00 [22:14:16]MH_I2C_Read... [22:14:16]Read from MH i2c: E2 17 00 69 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 64 [22:14:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:14:16]wFMCommunicate OK [22:14:16]requested_item fd.num is exist - process it [22:14:16]SAM_PROTO_GetFieldsCounters [22:14:16]wFMCommunicate request_size=4 [22:14:16]MH_SAM_APDU [22:14:16]CAPDU: 80 13 00 00 [22:14:16]Write to MH i2c: E2 08 00 6A 26 80 13 00 00 00 00 00 00 0C [22:14:16]Write i2c OK [22:14:16]MH_I2C_Read... [22:14:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:14:16]Read from MH i2c: E2 [22:14:16]MH_I2C_Read... [22:14:16]Read from MH i2c: E2 62 00 [22:14:16]MH_I2C_Read... [22:14:16]Read from MH i2c: E2 62 00 6A 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2D CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 EF [22:14:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2D CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:14:16]wFMCommunicate OK [22:14:16]SAM_PROTO_GetFieldsCounters done [22:14:16]requested_item shift.num is exist - process it [22:14:16]requested_item shift.opened is exist - process it [22:14:16]req_shift_opened [22:14:16]FM_GetShiftState [22:14:16]SAM_PROTO_GetShiftState [22:14:16]wFMCommunicate request_size=4 [22:14:16]MH_SAM_APDU [22:14:16]CAPDU: 80 13 01 00 [22:14:16]Write to MH i2c: E2 08 00 6B 26 80 13 01 00 00 00 00 00 0E [22:14:16]Write i2c OK [22:14:16]MH_I2C_Read... [22:14:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:14:16]Read from MH i2c: E2 [22:14:16]MH_I2C_Read... [22:14:16]Read from MH i2c: E2 0E 00 [22:14:16]MH_I2C_Read... [22:14:16]Read from MH i2c: E2 0E 00 6B 26 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 9B [22:14:16]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [22:14:16]wFMCommunicate OK [22:14:16]SAM_PROTO_GetShiftState done [22:14:16]FM_GetShiftState done [22:14:16]req_shift_opened done [22:14:16]requested_item shift.open_date is exist - process it [22:14:16]req_shift_open_date [22:14:16]req_shift_open_date done [22:14:16]produce_requested_data done [22:14:16]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118317,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [22:14:16]process_action_free close_receipt [22:14:16]json_value_free [22:14:16]json_value_free done [22:14:16]process_json_proto returns [22:14:16]Send response to host [22:14:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118317,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [22:14:16]free response buf [22:14:16]execute_script done [22:14:16]execute_script returns [22:14:16]free content buf [22:14:16]Sock 7.Close socket [22:14:16]Sock 7.Thread stoped [22:14:20]OFD Sender: No OFD packet to send [22:14:25]OFD Sender: No OFD packet to send [22:14:30]OFD Sender: No OFD packet to send [22:14:35]OFD Sender: No OFD packet to send [22:14:40]OFD Sender: No OFD packet to send [22:14:45]OFD Sender: No OFD packet to send [22:14:50]OFD Sender: No OFD packet to send [22:14:55]OFD Sender: No OFD packet to send [22:15:00]OFD Sender: No OFD packet to send [22:15:05]OFD Sender: No OFD packet to send [22:15:10]OFD Sender: No OFD packet to send [22:15:15]OFD Sender: No OFD packet to send [22:15:20]OFD Sender: No OFD packet to send [22:15:25]OFD Sender: No OFD packet to send [22:15:30]OFD Sender: No OFD packet to send [22:15:35]OFD Sender: No OFD packet to send [22:15:40]OFD Sender: No OFD packet to send [22:15:45]OFD Sender: No OFD packet to send [22:15:50]OFD Sender: No OFD packet to send [22:15:55]OFD Sender: No OFD packet to send [22:16:00]OFD Sender: No OFD packet to send [22:16:05]OFD Sender: No OFD packet to send [22:16:10]OFD Sender: No OFD packet to send [22:16:15]OFD Sender: No OFD packet to send [22:16:20]OFD Sender: No OFD packet to send [22:16:25]OFD Sender: No OFD packet to send [22:16:30]OFD Sender: No OFD packet to send [22:16:35]OFD Sender: No OFD packet to send [22:16:40]OFD Sender: No OFD packet to send [22:16:45]OFD Sender: No OFD packet to send [22:16:50]OFD Sender: No OFD packet to send [22:16:55]OFD Sender: No OFD packet to send [22:17:00]OFD Sender: No OFD packet to send [22:17:05]OFD Sender: No OFD packet to send [22:17:10]OFD Sender: No OFD packet to send [22:17:15]OFD Sender: No OFD packet to send [22:17:20]OFD Sender: No OFD packet to send [22:17:25]OFD Sender: No OFD packet to send [22:17:30]OFD Sender: No OFD packet to send [22:17:35]OFD Sender: No OFD packet to send [22:17:40]OFD Sender: No OFD packet to send [22:17:45]OFD Sender: No OFD packet to send [22:17:50]OFD Sender: No OFD packet to send [22:17:55]OFD Sender: No OFD packet to send [22:18:00]OFD Sender: No OFD packet to send [22:18:05]OFD Sender: No OFD packet to send [22:18:10]OFD Sender: No OFD packet to send [22:18:15]OFD Sender: No OFD packet to send [22:18:20]OFD Sender: No OFD packet to send [22:18:25]OFD Sender: No OFD packet to send [22:18:30]OFD Sender: No OFD packet to send [22:18:33]accept exits with 9 [22:18:33]New connection [22:18:33]New thread 3066953060 created [22:18:33]Thread 3067096420 joined [22:18:33]Waiting for new connection... [22:18:33] Sock 9.Parse request [22:18:33]Sock 9.Check first char [22:18:33]Sock 9.First char is OK [22:18:33]request: POST /json_proto HTTP/1.0 [22:18:33]Method: POST [22:18:33]URL: /json_proto [22:18:33]Method is POST - this is cgi request [22:18:33]url: /json_proto [22:18:33]query_string will be loaded in cgi processing [22:18:33]execute_cgi json_proto POST (null) [22:18:33]execute_cgi path=json_proto method=POST [22:18:33]POST find Content-Length [22:18:33]Host: 172.17.45.7:8080 [22:18:33]Content-Length: 1208 [22:18:33]Content-Type: application/json [22:18:33] [22:18:33]POST finish read [22:18:33]Found Content-Length = 1208 [22:18:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)949190\u000A27.07.2024 22:16\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 44\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3988672\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:18:33]execute_script... [22:18:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)949190\u000A27.07.2024 22:16\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 44\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3988672\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:18:33]POST & json_proto [22:18:33]process_json_proto [22:18:33]json parsed OK: [22:18:33]protocol is kg_v1.0 [22:18:33]action value=print_text [22:18:33]process_action print_text [22:18:33]cmd_print_text [22:18:33]ExternCall_PrintAddStr [22:18:33]wPrintStart [22:18:33]Write to MH i2c: 01 00 00 6C 26 92 [22:18:33]Write i2c OK [22:18:33]MH_I2C_Read... [22:18:33]Read from MH i2c: 01 [22:18:33]MH_I2C_Read... [22:18:33]Read from MH i2c: 01 07 00 [22:18:33]MH_I2C_Read... [22:18:33]Read from MH i2c: 01 07 00 6C 26 00 00 00 00 00 FF 0F A7 [22:18:33]RasterBufferAndPrint [22:18:33]line *****ТОВАРНЫЙ ЧЕК***** [22:18:33]line АЗС-134 [22:18:33]line Партнер нефть [22:18:33]line 02508201610067 [22:18:33]line Кассир : Айдарали у Б. [22:18:33]line Счет N : (1)949190 [22:18:33]line 27.07.2024 22:16 [22:18:33]line ПРОДАЖА [22:18:33]line ТРК (МРК, ГНК): 44 [22:18:33]line Вид ГСМ : 2710194800 [22:18:33]line ДТ-К-5 [22:18:33]line 100.000 x 76.20 [22:18:33]line ИТОГ: 7620.00 [22:18:33]line Тип оплаты: Талоны: Топливные Талоны [22:18:33]line 3988672 [22:18:33]line ______________________ [22:18:33]line (подпись) [22:18:33]written 0, free lines is 4095 [22:18:34]Write to MH i2c: 01 00 00 80 26 A6 [22:18:34]Write i2c OK [22:18:34]MH_I2C_Read... [22:18:34]Read from MH i2c: 01 [22:18:34]MH_I2C_Read... [22:18:34]Read from MH i2c: 01 07 00 [22:18:34]MH_I2C_Read... [22:18:34]Read from MH i2c: 01 07 00 80 26 00 00 00 00 00 11 0E CC [22:18:34]RasterBufferAndPrint [22:18:34]line [22:18:34]line [22:18:34]line [22:18:34]line [22:18:34]line [22:18:34]written 0, free lines is 3603 [22:18:34]MH_Cut [22:18:34]Write to MH i2c: D1 01 00 87 26 01 7F [22:18:34]Write i2c OK [22:18:34]MH_I2C_Read... [22:18:34]Read from MH i2c: D1 [22:18:34]MH_I2C_Read... [22:18:34]Read from MH i2c: D1 01 00 [22:18:34]MH_I2C_Read... [22:18:34]Read from MH i2c: D1 01 00 87 26 00 7E [22:18:34]Write to MH i2c: 01 00 00 88 26 AE [22:18:34]Write i2c OK [22:18:34]MH_I2C_Read... [22:18:34]*** Cut start [22:18:34]*** Partial cut [22:18:34]*** CUTSNS_PIN = 1 [22:18:34]*** CUTSNS_PIN = 0 [22:18:34]*** Brake cut motor [22:18:35]Read from MH i2c: 01 [22:18:35]MH_I2C_Read... [22:18:35]*** Stop cut motor [22:18:35]*** Cut end [22:18:35]Read from MH i2c: 01 07 00 [22:18:35]MH_I2C_Read... [22:18:35]Read from MH i2c: 01 07 00 88 26 00 00 00 00 00 FF 0F C3 [22:18:35]process_action print_text done [22:18:35]requested_data is exist [22:18:35]produce_requested_data [22:18:35]requested_item fm.sn is exist - process it [22:18:35]wFMCommunicate request_size=4 [22:18:35]MH_SAM_APDU [22:18:35]CAPDU: 80 11 00 00 [22:18:35]Write to MH i2c: E2 08 00 89 26 80 11 00 00 00 00 00 00 29 [22:18:35]Write i2c OK [22:18:35]MH_I2C_Read... [22:18:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:18:35]Read from MH i2c: E2 [22:18:35]MH_I2C_Read... [22:18:35]Read from MH i2c: E2 17 00 [22:18:35]MH_I2C_Read... [22:18:35]Read from MH i2c: E2 17 00 89 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 84 [22:18:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:18:35]wFMCommunicate OK [22:18:35]requested_item fd.num is exist - process it [22:18:35]SAM_PROTO_GetFieldsCounters [22:18:35]wFMCommunicate request_size=4 [22:18:35]MH_SAM_APDU [22:18:35]CAPDU: 80 13 00 00 [22:18:35]Write to MH i2c: E2 08 00 8A 26 80 13 00 00 00 00 00 00 2C [22:18:35]Write i2c OK [22:18:35]MH_I2C_Read... [22:18:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:18:35]Read from MH i2c: E2 [22:18:35]MH_I2C_Read... [22:18:35]Read from MH i2c: E2 62 00 [22:18:35]MH_I2C_Read... [22:18:35]Read from MH i2c: E2 62 00 8A 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2D CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 0F [22:18:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2D CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:18:35]wFMCommunicate OK [22:18:35]SAM_PROTO_GetFieldsCounters done [22:18:35]requested_item shift.num is exist - process it [22:18:35]requested_item shift.opened is exist - process it [22:18:35]req_shift_opened [22:18:35]FM_GetShiftState [22:18:35]SAM_PROTO_GetShiftState [22:18:35]wFMCommunicate request_size=4 [22:18:35]MH_SAM_APDU [22:18:35]CAPDU: 80 13 01 00 [22:18:35]Write to MH i2c: E2 08 00 8B 26 80 13 01 00 00 00 00 00 2E [22:18:35]Write i2c OK [22:18:35]MH_I2C_Read... [22:18:35]OFD Sender: No OFD packet to send [22:18:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:18:35]Read from MH i2c: E2 [22:18:35]MH_I2C_Read... [22:18:35]Read from MH i2c: E2 0E 00 [22:18:35]MH_I2C_Read... [22:18:35]Read from MH i2c: E2 0E 00 8B 26 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 BB [22:18:35]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [22:18:35]wFMCommunicate OK [22:18:35]SAM_PROTO_GetShiftState done [22:18:35]FM_GetShiftState done [22:18:35]req_shift_opened done [22:18:35]requested_item shift.open_date is exist - process it [22:18:35]req_shift_open_date [22:18:35]req_shift_open_date done [22:18:35]produce_requested_data done [22:18:35]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118317,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [22:18:35]process_action_free print_text [22:18:35]json_value_free [22:18:35]json_value_free done [22:18:35]process_json_proto returns [22:18:35]Send response to host [22:18:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118317,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [22:18:35]free response buf [22:18:35]execute_script done [22:18:35]execute_script returns [22:18:35]free content buf [22:18:35]Sock 9.Close socket [22:18:35]Sock 9.Thread stoped [22:18:40]OFD Sender: No OFD packet to send [22:18:45]OFD Sender: No OFD packet to send [22:18:50]OFD Sender: No OFD packet to send [22:18:52]accept exits with 7 [22:18:52]New connection [22:18:52]New thread 3067096420 created [22:18:52]Thread 3066953060 joined [22:18:52]Waiting for new connection... [22:18:52] Sock 7.Parse request [22:18:52]Sock 7.Check first char [22:18:52]Sock 7.First char is OK [22:18:52]request: POST /json_proto HTTP/1.0 [22:18:52]Method: POST [22:18:52]URL: /json_proto [22:18:52]Method is POST - this is cgi request [22:18:52]url: /json_proto [22:18:52]query_string will be loaded in cgi processing [22:18:52]execute_cgi json_proto POST (null) [22:18:52]execute_cgi path=json_proto method=POST [22:18:52]POST find Content-Length [22:18:52]Host: 172.17.45.7:8080 [22:18:52]Content-Length: 679 [22:18:52]Content-Type: application/json [22:18:52] [22:18:52]POST finish read [22:18:52]Found Content-Length = 679 [22:18:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:18:52]execute_script... [22:18: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)949192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:18:52]POST & json_proto [22:18:52]process_json_proto [22:18:52]json parsed OK: [22:18:52]protocol is kg_v1.0 [22:18:52]action value=close_receipt [22:18:52]process_action close_receipt [22:18:52]cmd_close_receipt [22:18:52]MH_GetDate [22:18:52]Write to MH i2c: F0 00 00 8C 26 A1 [22:18:52]Write i2c OK [22:18:52]MH_I2C_Read... [22:18:52]Read from MH i2c: F0 [22:18:52]MH_I2C_Read... [22:18:52]Read from MH i2c: F0 09 00 [22:18:52]MH_I2C_Read... [22:18:52]Read from MH i2c: F0 09 00 8C 26 00 4E 72 A5 66 90 0F 3E 66 B8 [22:18:52]GetLastDocTimeStamp 1722118454 [22:18:52]current date 1722118734 [22:18:52]FM_GetShiftState [22:18:52]SAM_PROTO_GetShiftState [22:18:52]wFMCommunicate request_size=4 [22:18:52]MH_SAM_APDU [22:18:52]CAPDU: 80 13 01 00 [22:18:52]Write to MH i2c: E2 08 00 8D 26 80 13 01 00 00 00 00 00 30 [22:18:52]Write i2c OK [22:18:52]MH_I2C_Read... [22:18:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:18:52]Read from MH i2c: E2 [22:18:52]MH_I2C_Read... [22:18:52]Read from MH i2c: E2 0E 00 [22:18:52]MH_I2C_Read... [22:18:52]Read from MH i2c: E2 0E 00 8D 26 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 BD [22:18:52]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [22:18:52]wFMCommunicate OK [22:18:52]SAM_PROTO_GetShiftState done [22:18:52]FM_GetShiftState done [22:18:52]opened in 1722038845 [22:18:52]opened+sec_in_day 1722125245 [22:18:52]quantity*price = 100050 [22:18:52]sum+1 = 100052 [22:18:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 261 27.07.2024 22:18 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118318 ФПД: 193238189688550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T221854&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118318&fm=193238189688550&tin=02508201610067®Number=0000000000092660&sum=100000 [22:18:53]StoreToDocumentArchive [22:18:53]shift 432 fd 118318 [22:18:53]save to /storage/0432/doc_00118318 [22:18:53]save last doc name /storage/0432/doc_00118318 to /storage/kkm_last_doc_name [22:18:53]save OK [22:18:53]Clear old archive folders... [22:18:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:18:53]tlvbuf is 01E3BFF0 [22:18:53]SAM_PROTO_ClearQueue [22:18:53]wFMCommunicate request_size=4 [22:18:53]MH_SAM_APDU [22:18:53]CAPDU: 80 09 00 00 [22:18:53]Write to MH i2c: E2 08 00 9A 26 80 09 00 00 00 00 00 00 32 [22:18:53]Write i2c OK [22:18:53]MH_I2C_Read... [22:18:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:18:53]Read from MH i2c: E2 [22:18:53]MH_I2C_Read... [22:18:53]Read from MH i2c: E2 03 00 [22:18:53]MH_I2C_Read... [22:18:53]Read from MH i2c: E2 03 00 9A 26 00 90 00 34 [22:18:53]RAPDU: 90 00 [22:18:53]wFMCommunicate OK [22:18:53]SAM_PROTO_ClearQueue done [22:18:53]KKMCreateOFDPacket [22:18:53]OFDProtocolAddRootSTLVToBuf [22:18:53]FM_MakeSignedData [22:18:53]FM_MakeSignedData [22:18:53]SAM_PROTO_SignData [22:18:53]wFMCommunicate request_size=4 [22:18:53]MH_SAM_APDU [22:18:53]CAPDU: 80 0D 01 02 [22:18:53]Write to MH i2c: E2 08 00 9B 26 80 0D 01 02 00 00 00 00 3A [22:18:53]Write i2c OK [22:18:53]MH_I2C_Read... [22:18:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:18:53]Read from MH i2c: E2 [22:18:53]MH_I2C_Read... [22:18:53]Read from MH i2c: E2 03 00 [22:18:53]MH_I2C_Read... [22:18:53]Read from MH i2c: E2 03 00 9B 26 00 90 00 35 [22:18:53]RAPDU: 90 00 [22:18:53]wFMCommunicate OK [22:18:53]wFMCommunicate request_size=255 [22:18:53]MH_SAM_APDU [22:18: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 4E 72 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2E CE 01 00 35 04 06 00 AF BF C5 A7 [22:18:53]Write to MH i2c: E2 02 01 9C 26 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 4E 72 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2E CE 01 00 35 04 06 00 AF BF C5 A7 00 00 23 [22:18:53]Write i2c OK [22:18:53]MH_I2C_Read... [22:18:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:18:53]Read from MH i2c: E2 [22:18:53]MH_I2C_Read... [22:18:53]Read from MH i2c: E2 03 00 [22:18:53]MH_I2C_Read... [22:18:53]Read from MH i2c: E2 03 00 9C 26 00 90 00 36 [22:18:53]RAPDU: 90 00 [22:18:53]wFMCommunicate OK [22:18:53]wFMCommunicate request_size=7 [22:18:53]MH_SAM_APDU [22:18:53]CAPDU: 80 0D 02 02 02 46 E6 [22:18:53]Write to MH i2c: E2 0A 00 9D 26 80 0D 02 02 02 00 46 E6 00 00 6D [22:18:53]Write i2c OK [22:18:53]MH_I2C_Read... [22:18:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:18:53]Read from MH i2c: E2 [22:18:53]MH_I2C_Read... [22:18:53]Read from MH i2c: E2 03 00 [22:18:53]MH_I2C_Read... [22:18:53]Read from MH i2c: E2 03 00 9D 26 00 90 00 37 [22:18:53]RAPDU: 90 00 [22:18:53]wFMCommunicate OK [22:18:53]wFMCommunicate request_size=4 [22:18:53]MH_SAM_APDU [22:18:53]CAPDU: 80 0D 03 02 [22:18:53]Write to MH i2c: E2 08 00 9E 26 80 0D 03 02 00 00 00 00 3F [22:18:54]Write i2c OK [22:18:54]MH_I2C_Read... [22:18:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:18:54]Read from MH i2c: E2 [22:18:54]MH_I2C_Read... [22:18:54]Read from MH i2c: E2 0B 00 [22:18:54]MH_I2C_Read... [22:18:54]Read from MH i2c: E2 0B 00 9E 26 00 4D B8 E2 C4 28 C5 10 5B 90 00 43 [22:18:54]RAPDU: 4D B8 E2 C4 28 C5 10 5B 90 00 [22:18:54]wFMCommunicate OK [22:18:54]SAM_PROTO_SignData done [22:18:54]FM_MakeSignedData done [22:18:54]CreateOFDProtocolMessage [22:18:54]wFMCommunicate request_size=4 [22:18:54]MH_SAM_APDU [22:18:54]CAPDU: 80 11 00 00 [22:18:54]Write to MH i2c: E2 08 00 9F 26 80 11 00 00 00 00 00 00 3F [22:18:54]Write i2c OK [22:18:54]MH_I2C_Read... [22:18:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:18:54]Read from MH i2c: E2 [22:18:54]MH_I2C_Read... [22:18:54]Read from MH i2c: E2 17 00 [22:18:54]MH_I2C_Read... [22:18:54]Read from MH i2c: E2 17 00 9F 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9A [22:18:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:18:54]wFMCommunicate OK [22:18:54]CreateOFDProtocolMessage done [22:18:54]OFDSenderStorePacket 118318 [22:18:54]StoreOFDPacket docnum=118318 [22:18:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 A9 1F 04 01 D2 06 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 4E 72 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2E CE 01 00 35 04 06 00 AF BF C5 A7 46 E6 4D B8 E2 C4 28 C5 10 5B [22:18:54]CheckFolder [22:18:54]dirname=/storage/ofd_packets [22:18:54]CheckFolder done [22:18:54]ProducePacketName [22:18:54]name=ofd_packets/00118318 [22:18:54]NVStorageSaveData ofd_packets/00118318 [22:18:54]File name is /storage/ofd_packets/00118318 [22:18:54]Write 298 bytes [22:18:54]NVStorageSaveData done [22:18:54]OFDSenderStorePacket done [22:18:54]KKMCreateOFDPacket done [22:18:54]NVStorageSaveData kkm_last_timestamp [22:18:54]File name is /storage/kkm_last_timestamp [22:18:54]Write 4 bytes [22:18:54]NVStorageSaveData done [22:18:54]ExternCall_PrintAddStr [22:18:54]wPrintStart [22:18:54]Write to MH i2c: 01 00 00 A0 26 C6 [22:18:54]Write i2c OK [22:18:54]MH_I2C_Read... [22:18:54]Read from MH i2c: 01 [22:18:54]MH_I2C_Read... [22:18:54]Read from MH i2c: 01 07 00 [22:18:54]MH_I2C_Read... [22:18:54]Read from MH i2c: 01 07 00 A0 26 00 00 00 00 00 FF 0F DB [22:18:54]RasterBufferAndPrint [22:18:54]line Счет N : (1)949192 [22:18:54]line ИНН: 02508201610067 [22:18:54]line Контрольно-Кассовый Чек [22:18:54]line ПРОДАЖА [22:18:54]line ТРК (МРК, ГНК) : 64 [22:18:54]line Товар: 2710194800 [22:18:54]line ДТ-К-5 [22:18:54]line 13.130 * 76.20 [22:18:54]line = 1000.51 [22:18:54]line НДС 12% НСП 1% [22:18:54]line > о реализуемом товаре [22:18:54]line ОКРУГЛЕНИЕ: -0.51 [22:18:54]line ИТОГО: 1000.00 [22:18:54]line Внесено: 1000.00 [22:18:54]line СДАЧА: 0.00 [22:18:54]line НСП 1% : 8.85 [22:18:54]line НДС 12% : 106.25 [22:18:54]line Наличными: 1000.00 [22:18:54]line Безнал.: 0.00 [22:18:54]line Место: АЗС № 134 "Партнер Нефть" [22:18:54]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:18:54]line СНО: Общий режим [22:18:54]line Чек 261 27.07.2024 22:18 [22:18:54]line Смена: 432 ФФД: 1.0 [22:18:54]line ЗНМ: 0300000044 [22:18:54]line РНМ: 0000000000092660 [22:18:54]line Версия ККМ: 001 [22:18:54]line ФМ: 0000000000874939 [22:18:54]line ФД: 118318 [22:18:54]line ФПД: 193238189688550 [22:18:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T221854&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118318&fm=193238189688550&tin=02508201610067®Number=0000000000092660&sum=100000 [22:18:54]OFD Sender: Processing packet 118318 [packets to send 86, broken 85] [22:18:54]ProducePacketName [22:18:54]name=ofd_packets/00118318 [22:18:54]OFD Sender: To server: pG, [22:18:54]CommunicateWithHost lk.salyk.kg:30040 [22:18:54]ConnectInit lk.salyk.kg [22:18:54]written 0, free lines is 4095 [22:18:54]Connected sock=10 [22:18:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 A9 1F 04 01 D2 06 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 4E 72 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2E CE 01 00 35 04 06 00 AF BF C5 A7 46 E6 4D B8 E2 C4 28 C5 10 5B [22:18:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F8 A5 47 00 BF C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2E CE 01 00 F4 03 04 00 E0 1F A5 66 B6 04 01 00 00 5E B8 36 C8 EF 4F 16 45 [22:18:54]CommunicateWithHost err = 0 [22:18:54]CheckOFDResponse [22:18:54]1017 (14) - 77093643461234 [22:18:54]1041 (16) - 0000000000874939 [22:18:54]1040 (4) - 118318 [22:18:54]1012 (4) - 27.07.2024 16:27 [22:18:54]1206 (1) - 0 [22:18:54]OFD Sender: Remove packet 118318 [22:18:54]ProducePacketName [22:18:54]name=ofd_packets/00118318 [22:18:54]NVStorageDeleteData [22:18:54]Write to MH i2c: 01 00 00 CA 26 F0 [22:18:54]Write i2c OK [22:18:54]MH_I2C_Read... [22:18:54]Read from MH i2c: 01 [22:18:54]MH_I2C_Read... [22:18:54]Read from MH i2c: 01 07 00 [22:18:54]MH_I2C_Read... [22:18:54]Read from MH i2c: 01 07 00 CA 26 00 00 00 00 00 E6 0C E9 [22:18:54]RasterBufferAndPrint [22:18:54]line [22:18:54]line [22:18:54]line [22:18:54]line [22:18:54]line [22:18:54]written 0, free lines is 3308 [22:18:54]MH_Cut [22:18:54]Write to MH i2c: D1 01 00 D1 26 01 C9 [22:18:54]Write i2c OK [22:18:54]MH_I2C_Read... [22:18:54]Read from MH i2c: D1 [22:18:54]MH_I2C_Read... [22:18:54]Read from MH i2c: D1 01 00 [22:18:54]MH_I2C_Read... [22:18:54]Read from MH i2c: D1 01 00 D1 26 00 C8 [22:18:54]Write to MH i2c: 01 00 00 D2 26 F8 [22:18:54]Write i2c OK [22:18:54]MH_I2C_Read... [22:18:55]OFD Sender: No OFD packet to send [22:18:55]*** Cut start [22:18:55]*** Partial cut [22:18:55]*** CUTSNS_PIN = 1 [22:18:55]*** CUTSNS_PIN = 0 [22:18:55]*** Brake cut motor [22:18:56]Read from MH i2c: 01 [22:18:56]MH_I2C_Read... [22:18:56]*** Stop cut motor [22:18:56]*** Cut end [22:18:56]Read from MH i2c: 01 07 00 [22:18:56]MH_I2C_Read... [22:18:56]Read from MH i2c: 01 07 00 D2 26 00 00 00 00 00 FF 0F 0D [22:18:56]process_action close_receipt done [22:18:56]requested_data is exist [22:18:56]produce_requested_data [22:18:56]requested_item fm.sn is exist - process it [22:18:56]wFMCommunicate request_size=4 [22:18:56]MH_SAM_APDU [22:18:56]CAPDU: 80 11 00 00 [22:18:56]Write to MH i2c: E2 08 00 D3 26 80 11 00 00 00 00 00 00 73 [22:18:56]Write i2c OK [22:18:56]MH_I2C_Read... [22:18:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:18:56]Read from MH i2c: E2 [22:18:56]MH_I2C_Read... [22:18:56]Read from MH i2c: E2 17 00 [22:18:56]MH_I2C_Read... [22:18:56]Read from MH i2c: E2 17 00 D3 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CE [22:18:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:18:56]wFMCommunicate OK [22:18:56]requested_item fd.num is exist - process it [22:18:56]SAM_PROTO_GetFieldsCounters [22:18:56]wFMCommunicate request_size=4 [22:18:56]MH_SAM_APDU [22:18:56]CAPDU: 80 13 00 00 [22:18:56]Write to MH i2c: E2 08 00 D4 26 80 13 00 00 00 00 00 00 76 [22:18:56]Write i2c OK [22:18:56]MH_I2C_Read... [22:18:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:18:56]Read from MH i2c: E2 [22:18:56]MH_I2C_Read... [22:18:56]Read from MH i2c: E2 62 00 [22:18:56]MH_I2C_Read... [22:18:56]Read from MH i2c: E2 62 00 D4 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2E CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 5D [22:18:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2E CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:18:56]wFMCommunicate OK [22:18:56]SAM_PROTO_GetFieldsCounters done [22:18:56]requested_item shift.num is exist - process it [22:18:56]requested_item shift.opened is exist - process it [22:18:56]req_shift_opened [22:18:56]FM_GetShiftState [22:18:56]SAM_PROTO_GetShiftState [22:18:56]wFMCommunicate request_size=4 [22:18:56]MH_SAM_APDU [22:18:56]CAPDU: 80 13 01 00 [22:18:56]Write to MH i2c: E2 08 00 D5 26 80 13 01 00 00 00 00 00 78 [22:18:56]Write i2c OK [22:18:56]MH_I2C_Read... [22:18:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:18:56]Read from MH i2c: E2 [22:18:56]MH_I2C_Read... [22:18:56]Read from MH i2c: E2 0E 00 [22:18:56]MH_I2C_Read... [22:18:56]Read from MH i2c: E2 0E 00 D5 26 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 05 [22:18:56]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [22:18:56]wFMCommunicate OK [22:18:56]SAM_PROTO_GetShiftState done [22:18:56]FM_GetShiftState done [22:18:56]req_shift_opened done [22:18:56]requested_item shift.open_date is exist - process it [22:18:56]req_shift_open_date [22:18:56]req_shift_open_date done [22:18:56]produce_requested_data done [22:18:56]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118318,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [22:18:56]process_action_free close_receipt [22:18:56]json_value_free [22:18:56]json_value_free done [22:18:56]process_json_proto returns [22:18:56]Send response to host [22:18:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118318,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [22:18:56]free response buf [22:18:56]execute_script done [22:18:56]execute_script returns [22:18:56]free content buf [22:18:56]Sock 7.Close socket [22:18:56]Sock 7.Thread stoped [22:19:00]OFD Sender: No OFD packet to send [22:19:05]OFD Sender: No OFD packet to send [22:19:10]OFD Sender: No OFD packet to send [22:19:15]OFD Sender: No OFD packet to send [22:19:20]OFD Sender: No OFD packet to send [22:19:25]OFD Sender: No OFD packet to send [22:19:30]OFD Sender: No OFD packet to send [22:19:35]OFD Sender: No OFD packet to send [22:19:40]OFD Sender: No OFD packet to send [22:19:45]OFD Sender: No OFD packet to send [22:19:50]OFD Sender: No OFD packet to send [22:19:55]OFD Sender: No OFD packet to send [22:20:00]OFD Sender: No OFD packet to send [22:20:05]OFD Sender: No OFD packet to send [22:20:10]OFD Sender: No OFD packet to send [22:20:15]OFD Sender: No OFD packet to send [22:20:20]OFD Sender: No OFD packet to send [22:20:25]OFD Sender: No OFD packet to send [22:20:30]OFD Sender: No OFD packet to send [22:20:35]OFD Sender: No OFD packet to send [22:20:40]OFD Sender: No OFD packet to send [22:20:45]OFD Sender: No OFD packet to send [22:20:50]OFD Sender: No OFD packet to send [22:20:55]OFD Sender: No OFD packet to send [22:21:00]OFD Sender: No OFD packet to send [22:21:05]OFD Sender: No OFD packet to send [22:21:10]OFD Sender: No OFD packet to send [22:21:15]OFD Sender: No OFD packet to send [22:21:20]OFD Sender: No OFD packet to send [22:21:25]OFD Sender: No OFD packet to send [22:21:30]OFD Sender: No OFD packet to send [22:21:35]OFD Sender: No OFD packet to send [22:21:40]OFD Sender: No OFD packet to send [22:21:42]accept exits with 9 [22:21:42]New connection [22:21:42]New thread 3066953060 created [22:21:42]Thread 3067096420 joined [22:21:42]Waiting for new connection... [22:21:42] Sock 9.Parse request [22:21:42]Sock 9.Check first char [22:21:42]Sock 9.First char is OK [22:21:42]request: POST /json_proto HTTP/1.0 [22:21:42]Method: POST [22:21:42]URL: /json_proto [22:21:42]Method is POST - this is cgi request [22:21:42]url: /json_proto [22:21:42]query_string will be loaded in cgi processing [22:21:42]execute_cgi json_proto POST (null) [22:21:42]execute_cgi path=json_proto method=POST [22:21:42]POST find Content-Length [22:21:42]Host: 172.17.45.7:8080 [22:21:42]Content-Length: 1208 [22:21:42]Content-Type: application/json [22:21:42] [22:21:42]POST finish read [22:21:42]Found Content-Length = 1208 [22:21:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)949191\u000A27.07.2024 22:19\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 44\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3988671\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:42]execute_script... [22:21:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)949191\u000A27.07.2024 22:19\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 44\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3988671\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:42]POST & json_proto [22:21:42]process_json_proto [22:21:42]json parsed OK: [22:21:42]protocol is kg_v1.0 [22:21:42]action value=print_text [22:21:42]process_action print_text [22:21:42]cmd_print_text [22:21:42]ExternCall_PrintAddStr [22:21:42]wPrintStart [22:21:42]Write to MH i2c: 01 00 00 D6 26 FC [22:21:42]Write i2c OK [22:21:42]MH_I2C_Read... [22:21:42]Read from MH i2c: 01 [22:21:42]MH_I2C_Read... [22:21:42]Read from MH i2c: 01 07 00 [22:21:42]MH_I2C_Read... [22:21:42]Read from MH i2c: 01 07 00 D6 26 00 00 00 00 00 FF 0F 11 [22:21:42]RasterBufferAndPrint [22:21:42]line *****ТОВАРНЫЙ ЧЕК***** [22:21:42]line АЗС-134 [22:21:42]line Партнер нефть [22:21:42]line 02508201610067 [22:21:42]line Кассир : Айдарали у Б. [22:21:42]line Счет N : (1)949191 [22:21:42]line 27.07.2024 22:19 [22:21:42]line ПРОДАЖА [22:21:42]line ТРК (МРК, ГНК): 44 [22:21:42]line Вид ГСМ : 2710194800 [22:21:42]line ДТ-К-5 [22:21:42]line 100.000 x 76.20 [22:21:42]line ИТОГ: 7620.00 [22:21:42]line Тип оплаты: Талоны: Топливные Талоны [22:21:42]line 3988671 [22:21:42]line ______________________ [22:21:42]line (подпись) [22:21:42]written 0, free lines is 4095 [22:21:42]Write to MH i2c: 01 00 00 EA 26 10 [22:21:42]Write i2c OK [22:21:42]MH_I2C_Read... [22:21:42]Read from MH i2c: 01 [22:21:42]MH_I2C_Read... [22:21:42]Read from MH i2c: 01 07 00 [22:21:42]MH_I2C_Read... [22:21:42]Read from MH i2c: 01 07 00 EA 26 00 00 00 00 00 11 0E 36 [22:21:42]RasterBufferAndPrint [22:21:42]line [22:21:42]line [22:21:42]line [22:21:42]line [22:21:42]line [22:21:42]written 0, free lines is 3603 [22:21:42]MH_Cut [22:21:42]Write to MH i2c: D1 01 00 F1 26 01 E9 [22:21:42]Write i2c OK [22:21:42]MH_I2C_Read... [22:21:42]Read from MH i2c: D1 [22:21:42]MH_I2C_Read... [22:21:42]Read from MH i2c: D1 01 00 [22:21:42]MH_I2C_Read... [22:21:42]Read from MH i2c: D1 01 00 F1 26 00 E8 [22:21:42]Write to MH i2c: 01 00 00 F2 26 18 [22:21:42]Write i2c OK [22:21:42]MH_I2C_Read... [22:21:43]*** Cut start [22:21:43]*** Partial cut [22:21:43]*** CUTSNS_PIN = 1 [22:21:43]*** CUTSNS_PIN = 0 [22:21:43]*** Brake cut motor [22:21:44]Read from MH i2c: 01 [22:21:44]MH_I2C_Read... [22:21:44]*** Stop cut motor [22:21:44]*** Cut end [22:21:44]Read from MH i2c: 01 07 00 [22:21:44]MH_I2C_Read... [22:21:44]Read from MH i2c: 01 07 00 F2 26 00 00 00 00 00 FF 0F 2D [22:21:44]process_action print_text done [22:21:44]requested_data is exist [22:21:44]produce_requested_data [22:21:44]requested_item fm.sn is exist - process it [22:21:44]wFMCommunicate request_size=4 [22:21:44]MH_SAM_APDU [22:21:44]CAPDU: 80 11 00 00 [22:21:44]Write to MH i2c: E2 08 00 F3 26 80 11 00 00 00 00 00 00 93 [22:21:44]Write i2c OK [22:21:44]MH_I2C_Read... [22:21:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:44]Read from MH i2c: E2 [22:21:44]MH_I2C_Read... [22:21:44]Read from MH i2c: E2 17 00 [22:21:44]MH_I2C_Read... [22:21:44]Read from MH i2c: E2 17 00 F3 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EE [22:21:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:21:44]wFMCommunicate OK [22:21:44]requested_item fd.num is exist - process it [22:21:44]SAM_PROTO_GetFieldsCounters [22:21:44]wFMCommunicate request_size=4 [22:21:44]MH_SAM_APDU [22:21:44]CAPDU: 80 13 00 00 [22:21:44]Write to MH i2c: E2 08 00 F4 26 80 13 00 00 00 00 00 00 96 [22:21:44]Write i2c OK [22:21:44]MH_I2C_Read... [22:21:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:21:44]Read from MH i2c: E2 [22:21:44]MH_I2C_Read... [22:21:44]Read from MH i2c: E2 62 00 [22:21:44]MH_I2C_Read... [22:21:44]Read from MH i2c: E2 62 00 F4 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2E CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 7D [22:21:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2E CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:21:44]wFMCommunicate OK [22:21:44]SAM_PROTO_GetFieldsCounters done [22:21:44]requested_item shift.num is exist - process it [22:21:44]requested_item shift.opened is exist - process it [22:21:44]req_shift_opened [22:21:44]FM_GetShiftState [22:21:44]SAM_PROTO_GetShiftState [22:21:44]wFMCommunicate request_size=4 [22:21:44]MH_SAM_APDU [22:21:44]CAPDU: 80 13 01 00 [22:21:44]Write to MH i2c: E2 08 00 F5 26 80 13 01 00 00 00 00 00 98 [22:21:44]Write i2c OK [22:21:44]MH_I2C_Read... [22:21:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:44]Read from MH i2c: E2 [22:21:44]MH_I2C_Read... [22:21:44]Read from MH i2c: E2 0E 00 [22:21:44]MH_I2C_Read... [22:21:44]Read from MH i2c: E2 0E 00 F5 26 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 25 [22:21:44]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [22:21:44]wFMCommunicate OK [22:21:44]SAM_PROTO_GetShiftState done [22:21:44]FM_GetShiftState done [22:21:44]req_shift_opened done [22:21:44]requested_item shift.open_date is exist - process it [22:21:44]req_shift_open_date [22:21:44]req_shift_open_date done [22:21:44]produce_requested_data done [22:21:44]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118318,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [22:21:44]process_action_free print_text [22:21:44]json_value_free [22:21:44]json_value_free done [22:21:44]process_json_proto returns [22:21:44]Send response to host [22:21:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118318,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [22:21:44]free response buf [22:21:44]execute_script done [22:21:44]execute_script returns [22:21:44]free content buf [22:21:44]Sock 9.Close socket [22:21:44]Sock 9.Thread stoped [22:21:45]OFD Sender: No OFD packet to send [22:21:50]OFD Sender: No OFD packet to send [22:21:55]OFD Sender: No OFD packet to send [22:22:00]OFD Sender: No OFD packet to send [22:22:05]OFD Sender: No OFD packet to send [22:22:10]OFD Sender: No OFD packet to send [22:22:15]OFD Sender: No OFD packet to send [22:22:20]OFD Sender: No OFD packet to send [22:22:25]OFD Sender: No OFD packet to send [22:22:30]OFD Sender: No OFD packet to send [22:22:35]OFD Sender: No OFD packet to send [22:22:40]OFD Sender: No OFD packet to send [22:22:45]OFD Sender: No OFD packet to send [22:22:50]OFD Sender: No OFD packet to send [22:22:55]OFD Sender: No OFD packet to send [22:23:00]OFD Sender: No OFD packet to send [22:23:05]OFD Sender: No OFD packet to send [22:23:10]OFD Sender: No OFD packet to send [22:23:15]OFD Sender: No OFD packet to send [22:23:20]OFD Sender: No OFD packet to send [22:23:25]OFD Sender: No OFD packet to send [22:23:30]OFD Sender: No OFD packet to send [22:23:35]OFD Sender: No OFD packet to send [22:23:40]OFD Sender: No OFD packet to send [22:23:45]OFD Sender: No OFD packet to send [22:23:50]OFD Sender: No OFD packet to send [22:23:55]OFD Sender: No OFD packet to send [22:24:00]OFD Sender: No OFD packet to send [22:24:05]OFD Sender: No OFD packet to send [22:24:10]OFD Sender: No OFD packet to send [22:24:15]OFD Sender: No OFD packet to send [22:24:20]OFD Sender: No OFD packet to send [22:24:25]OFD Sender: No OFD packet to send [22:24:30]OFD Sender: No OFD packet to send [22:24:35]OFD Sender: No OFD packet to send [22:24:40]OFD Sender: No OFD packet to send [22:24:45]OFD Sender: No OFD packet to send [22:24:50]OFD Sender: No OFD packet to send [22:24:55]OFD Sender: No OFD packet to send [22:25:00]OFD Sender: No OFD packet to send [22:25:05]OFD Sender: No OFD packet to send [22:25:10]OFD Sender: No OFD packet to send [22:25:15]OFD Sender: No OFD packet to send [22:25:20]OFD Sender: No OFD packet to send [22:25:25]OFD Sender: No OFD packet to send [22:25:30]accept exits with 7 [22:25:30]New connection [22:25:30]New thread 3067096420 created [22:25:30]Thread 3066953060 joined [22:25:30]Waiting for new connection... [22:25:30] Sock 7.Parse request [22:25:30]Sock 7.Check first char [22:25:30]Sock 7.First char is OK [22:25:30]request: POST /json_proto HTTP/1.0 [22:25:30]Method: POST [22:25:30]URL: /json_proto [22:25:30]Method is POST - this is cgi request [22:25:30]url: /json_proto [22:25:30]query_string will be loaded in cgi processing [22:25:30]execute_cgi json_proto POST (null) [22:25:30]execute_cgi path=json_proto method=POST [22:25:30]POST find Content-Length [22:25:30]Host: 172.17.45.7:8080 [22:25:30]Content-Length: 1216 [22:25:30]Content-Type: application/json [22:25:30] [22:25:30]POST finish read [22:25:30]Found Content-Length = 1216 [22:25:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)949193\u000A27.07.2024 22:23\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 44\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3983099-3983108\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:30]execute_script... [22:25:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)949193\u000A27.07.2024 22:23\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 44\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3983099-3983108\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:30]POST & json_proto [22:25:30]process_json_proto [22:25:30]json parsed OK: [22:25:30]protocol is kg_v1.0 [22:25:30]action value=print_text [22:25:30]process_action print_text [22:25:30]cmd_print_text [22:25:30]ExternCall_PrintAddStr [22:25:30]wPrintStart [22:25:30]Write to MH i2c: 01 00 00 F6 26 1C [22:25:30]Write i2c OK [22:25:30]MH_I2C_Read... [22:25:30]Read from MH i2c: 01 [22:25:30]MH_I2C_Read... [22:25:30]Read from MH i2c: 01 07 00 [22:25:30]MH_I2C_Read... [22:25:30]Read from MH i2c: 01 07 00 F6 26 00 00 00 00 00 FF 0F 31 [22:25:30]RasterBufferAndPrint [22:25:30]line *****ТОВАРНЫЙ ЧЕК***** [22:25:30]line АЗС-134 [22:25:30]line Партнер нефть [22:25:30]line 02508201610067 [22:25:30]line Кассир : Айдарали у Б. [22:25:30]line Счет N : (1)949193 [22:25:30]line 27.07.2024 22:23 [22:25:30]line ПРОДАЖА [22:25:30]line ТРК (МРК, ГНК): 44 [22:25:30]line Вид ГСМ : 2710194800 [22:25:30]line ДТ-К-5 [22:25:30]line 100.000 x 76.20 [22:25:30]line ИТОГ: 7620.00 [22:25:30]line Тип оплаты: Талоны: Топливные Талоны [22:25:30]line 3983099-3983108 [22:25:30]line ______________________ [22:25:30]line (подпись) [22:25:30]written 0, free lines is 4095 [22:25:30]Write to MH i2c: 01 00 00 0A 27 31 [22:25:30]Write i2c OK [22:25:30]MH_I2C_Read... [22:25:30]Read from MH i2c: 01 [22:25:30]MH_I2C_Read... [22:25:30]Read from MH i2c: 01 07 00 [22:25:30]MH_I2C_Read... [22:25:30]Read from MH i2c: 01 07 00 0A 27 00 00 00 00 00 15 0E 5B [22:25:30]RasterBufferAndPrint [22:25:30]line [22:25:30]line [22:25:30]line [22:25:30]line [22:25:30]line [22:25:30]written 0, free lines is 3607 [22:25:30]MH_Cut [22:25:30]Write to MH i2c: D1 01 00 11 27 01 0A [22:25:30]Write i2c OK [22:25:30]MH_I2C_Read... [22:25:30]Read from MH i2c: D1 [22:25:30]MH_I2C_Read... [22:25:30]Read from MH i2c: D1 01 00 [22:25:30]MH_I2C_Read... [22:25:30]Read from MH i2c: D1 01 00 11 27 00 09 [22:25:30]Write to MH i2c: 01 00 00 12 27 39 [22:25:30]Write i2c OK [22:25:30]MH_I2C_Read... [22:25:30]OFD Sender: No OFD packet to send [22:25:30]*** Cut start [22:25:30]*** Partial cut [22:25:30]*** CUTSNS_PIN = 1 [22:25:30]*** CUTSNS_PIN = 0 [22:25:31]*** Brake cut motor [22:25:31]Read from MH i2c: 01 [22:25:31]MH_I2C_Read... [22:25:31]*** Stop cut motor [22:25:31]*** Cut end [22:25:31]Read from MH i2c: 01 07 00 [22:25:31]MH_I2C_Read... [22:25:31]Read from MH i2c: 01 07 00 12 27 00 00 00 00 00 FF 0F 4E [22:25:31]process_action print_text done [22:25:31]requested_data is exist [22:25:31]produce_requested_data [22:25:31]requested_item fm.sn is exist - process it [22:25:31]wFMCommunicate request_size=4 [22:25:31]MH_SAM_APDU [22:25:31]CAPDU: 80 11 00 00 [22:25:31]Write to MH i2c: E2 08 00 13 27 80 11 00 00 00 00 00 00 B4 [22:25:31]Write i2c OK [22:25:31]MH_I2C_Read... [22:25:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:25:31]Read from MH i2c: E2 [22:25:31]MH_I2C_Read... [22:25:31]Read from MH i2c: E2 17 00 [22:25:31]MH_I2C_Read... [22:25:31]Read from MH i2c: E2 17 00 13 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0F [22:25:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:25:31]wFMCommunicate OK [22:25:31]requested_item fd.num is exist - process it [22:25:31]SAM_PROTO_GetFieldsCounters [22:25:31]wFMCommunicate request_size=4 [22:25:31]MH_SAM_APDU [22:25:31]CAPDU: 80 13 00 00 [22:25:31]Write to MH i2c: E2 08 00 14 27 80 13 00 00 00 00 00 00 B7 [22:25:31]Write i2c OK [22:25:31]MH_I2C_Read... [22:25:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:25:31]Read from MH i2c: E2 [22:25:31]MH_I2C_Read... [22:25:31]Read from MH i2c: E2 62 00 [22:25:31]MH_I2C_Read... [22:25:31]Read from MH i2c: E2 62 00 14 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2E CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 9E [22:25:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2E CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:25:31]wFMCommunicate OK [22:25:31]SAM_PROTO_GetFieldsCounters done [22:25:31]requested_item shift.num is exist - process it [22:25:31]requested_item shift.opened is exist - process it [22:25:31]req_shift_opened [22:25:31]FM_GetShiftState [22:25:31]SAM_PROTO_GetShiftState [22:25:31]wFMCommunicate request_size=4 [22:25:31]MH_SAM_APDU [22:25:31]CAPDU: 80 13 01 00 [22:25:31]Write to MH i2c: E2 08 00 15 27 80 13 01 00 00 00 00 00 B9 [22:25:31]Write i2c OK [22:25:31]MH_I2C_Read... [22:25:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:25:31]Read from MH i2c: E2 [22:25:31]MH_I2C_Read... [22:25:31]Read from MH i2c: E2 0E 00 [22:25:31]MH_I2C_Read... [22:25:31]Read from MH i2c: E2 0E 00 15 27 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 46 [22:25:31]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [22:25:31]wFMCommunicate OK [22:25:31]SAM_PROTO_GetShiftState done [22:25:31]FM_GetShiftState done [22:25:31]req_shift_opened done [22:25:31]requested_item shift.open_date is exist - process it [22:25:31]req_shift_open_date [22:25:31]req_shift_open_date done [22:25:31]produce_requested_data done [22:25:31]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118318,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [22:25:31]process_action_free print_text [22:25:31]json_value_free [22:25:31]json_value_free done [22:25:31]process_json_proto returns [22:25:31]Send response to host [22:25:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118318,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [22:25:31]free response buf [22:25:31]execute_script done [22:25:31]execute_script returns [22:25:31]free content buf [22:25:31]Sock 7.Close socket [22:25:31]Sock 7.Thread stoped [22:25:35]OFD Sender: No OFD packet to send [22:25:40]OFD Sender: No OFD packet to send [22:25:45]OFD Sender: No OFD packet to send [22:25:50]OFD Sender: No OFD packet to send [22:25:55]OFD Sender: No OFD packet to send [22:26:00]OFD Sender: No OFD packet to send [22:26:05]OFD Sender: No OFD packet to send [22:26:10]OFD Sender: No OFD packet to send [22:26:15]OFD Sender: No OFD packet to send [22:26:20]OFD Sender: No OFD packet to send [22:26:25]OFD Sender: No OFD packet to send [22:26:30]OFD Sender: No OFD packet to send [22:26:35]OFD Sender: No OFD packet to send [22:26:40]OFD Sender: No OFD packet to send [22:26:45]OFD Sender: No OFD packet to send [22:26:50]OFD Sender: No OFD packet to send [22:26:55]OFD Sender: No OFD packet to send [22:27:00]OFD Sender: No OFD packet to send [22:27:05]OFD Sender: No OFD packet to send [22:27:10]OFD Sender: No OFD packet to send [22:27:15]OFD Sender: No OFD packet to send [22:27:18]recv_with_timeout no data received [22:27:20]OFD Sender: No OFD packet to send [22:27:25]OFD Sender: No OFD packet to send [22:27:30]OFD Sender: No OFD packet to send [22:27:35]OFD Sender: No OFD packet to send [22:27:40]OFD Sender: No OFD packet to send [22:27:45]OFD Sender: No OFD packet to send [22:27:50]OFD Sender: No OFD packet to send [22:27:55]OFD Sender: No OFD packet to send [22:28:00]OFD Sender: No OFD packet to send [22:28:05]OFD Sender: No OFD packet to send [22:28:10]OFD Sender: No OFD packet to send [22:28:15]OFD Sender: No OFD packet to send [22:28:16]accept exits with 9 [22:28:16]New connection [22:28:16]New thread 3066953060 created [22:28:16]Thread 3067096420 joined [22:28:16]Waiting for new connection... [22:28:16] Sock 9.Parse request [22:28:16]Sock 9.Check first char [22:28:16]Sock 9.First char is OK [22:28:16]request: POST /json_proto HTTP/1.0 [22:28:16]Method: POST [22:28:16]URL: /json_proto [22:28:16]Method is POST - this is cgi request [22:28:16]url: /json_proto [22:28:16]query_string will be loaded in cgi processing [22:28:16]execute_cgi json_proto POST (null) [22:28:16]execute_cgi path=json_proto method=POST [22:28:16]POST find Content-Length [22:28:16]Host: 172.17.45.7:8080 [22:28:16]Content-Length: 679 [22:28:16]Content-Type: application/json [22:28:16] [22:28:16]POST finish read [22:28:16]Found Content-Length = 679 [22:28:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:28:16]execute_script... [22:28:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:28:16]POST & json_proto [22:28:16]process_json_proto [22:28:16]json parsed OK: [22:28:16]protocol is kg_v1.0 [22:28:16]action value=close_receipt [22:28:16]process_action close_receipt [22:28:16]cmd_close_receipt [22:28:16]MH_GetDate [22:28:16]Write to MH i2c: F0 00 00 16 27 2C [22:28:16]Write i2c OK [22:28:16]MH_I2C_Read... [22:28:16]Read from MH i2c: F0 [22:28:16]MH_I2C_Read... [22:28:16]Read from MH i2c: F0 09 00 [22:28:16]MH_I2C_Read... [22:28:16]Read from MH i2c: F0 09 00 16 27 00 82 74 A5 66 90 0F 3E 66 79 [22:28:16]GetLastDocTimeStamp 1722118734 [22:28:16]current date 1722119298 [22:28:16]FM_GetShiftState [22:28:16]SAM_PROTO_GetShiftState [22:28:16]wFMCommunicate request_size=4 [22:28:16]MH_SAM_APDU [22:28:16]CAPDU: 80 13 01 00 [22:28:16]Write to MH i2c: E2 08 00 17 27 80 13 01 00 00 00 00 00 BB [22:28:16]Write i2c OK [22:28:16]MH_I2C_Read... [22:28:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:16]Read from MH i2c: E2 [22:28:16]MH_I2C_Read... [22:28:16]Read from MH i2c: E2 0E 00 [22:28:16]MH_I2C_Read... [22:28:16]Read from MH i2c: E2 0E 00 17 27 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 48 [22:28:16]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [22:28:16]wFMCommunicate OK [22:28:16]SAM_PROTO_GetShiftState done [22:28:16]FM_GetShiftState done [22:28:16]opened in 1722038845 [22:28:16]opened+sec_in_day 1722125245 [22:28:16]quantity*price = 200025 [22:28:16]sum+1 = 200026 [22:28:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 262 27.07.2024 22:28 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118319 ФПД: 67399120237926 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T222818&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118319&fm=67399120237926&tin=02508201610067®Number=0000000000092660&sum=200000 [22:28:17]StoreToDocumentArchive [22:28:17]shift 432 fd 118319 [22:28:17]save to /storage/0432/doc_00118319 [22:28:17]save last doc name /storage/0432/doc_00118319 to /storage/kkm_last_doc_name [22:28:17]save OK [22:28:17]Clear old archive folders... [22:28:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:28:17]tlvbuf is 01E12760 [22:28:17]SAM_PROTO_ClearQueue [22:28:17]wFMCommunicate request_size=4 [22:28:17]MH_SAM_APDU [22:28:17]CAPDU: 80 09 00 00 [22:28:17]Write to MH i2c: E2 08 00 24 27 80 09 00 00 00 00 00 00 BD [22:28:17]Write i2c OK [22:28:17]MH_I2C_Read... [22:28:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:28:17]Read from MH i2c: E2 [22:28:17]MH_I2C_Read... [22:28:17]Read from MH i2c: E2 03 00 [22:28:17]MH_I2C_Read... [22:28:17]Read from MH i2c: E2 03 00 24 27 00 90 00 BF [22:28:17]RAPDU: 90 00 [22:28:17]wFMCommunicate OK [22:28:17]SAM_PROTO_ClearQueue done [22:28:17]KKMCreateOFDPacket [22:28:17]OFDProtocolAddRootSTLVToBuf [22:28:17]FM_MakeSignedData [22:28:17]FM_MakeSignedData [22:28:17]SAM_PROTO_SignData [22:28:17]wFMCommunicate request_size=4 [22:28:17]MH_SAM_APDU [22:28:17]CAPDU: 80 0D 01 02 [22:28:17]Write to MH i2c: E2 08 00 25 27 80 0D 01 02 00 00 00 00 C5 [22:28:17]Write i2c OK [22:28:17]MH_I2C_Read... [22:28:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:28:17]Read from MH i2c: E2 [22:28:17]MH_I2C_Read... [22:28:17]Read from MH i2c: E2 03 00 [22:28:17]MH_I2C_Read... [22:28:17]Read from MH i2c: E2 03 00 25 27 00 90 00 C0 [22:28:17]RAPDU: 90 00 [22:28:17]wFMCommunicate OK [22:28:17]wFMCommunicate request_size=255 [22:28:17]MH_SAM_APDU [22:28:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 82 74 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2F CE 01 00 35 04 06 00 3D 4C 94 9E [22:28:17]Write to MH i2c: E2 02 01 26 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 82 74 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2F CE 01 00 35 04 06 00 3D 4C 94 9E 00 00 B5 [22:28:17]Write i2c OK [22:28:17]MH_I2C_Read... [22:28:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:18]Read from MH i2c: E2 [22:28:18]MH_I2C_Read... [22:28:18]Read from MH i2c: E2 03 00 [22:28:18]MH_I2C_Read... [22:28:18]Read from MH i2c: E2 03 00 26 27 00 90 00 C1 [22:28:18]RAPDU: 90 00 [22:28:18]wFMCommunicate OK [22:28:18]wFMCommunicate request_size=7 [22:28:18]MH_SAM_APDU [22:28:18]CAPDU: 80 0D 02 02 02 B5 66 [22:28:18]Write to MH i2c: E2 0A 00 27 27 80 0D 02 02 02 00 B5 66 00 00 E7 [22:28:18]Write i2c OK [22:28:18]MH_I2C_Read... [22:28:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:18]Read from MH i2c: E2 [22:28:18]MH_I2C_Read... [22:28:18]Read from MH i2c: E2 03 00 [22:28:18]MH_I2C_Read... [22:28:18]Read from MH i2c: E2 03 00 27 27 00 90 00 C2 [22:28:18]RAPDU: 90 00 [22:28:18]wFMCommunicate OK [22:28:18]wFMCommunicate request_size=4 [22:28:18]MH_SAM_APDU [22:28:18]CAPDU: 80 0D 03 02 [22:28:18]Write to MH i2c: E2 08 00 28 27 80 0D 03 02 00 00 00 00 CA [22:28:18]Write i2c OK [22:28:18]MH_I2C_Read... [22:28:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:28:18]Read from MH i2c: E2 [22:28:18]MH_I2C_Read... [22:28:18]Read from MH i2c: E2 0B 00 [22:28:18]MH_I2C_Read... [22:28:18]Read from MH i2c: E2 0B 00 28 27 00 1B 81 A4 B0 33 B4 0F 73 90 00 24 [22:28:18]RAPDU: 1B 81 A4 B0 33 B4 0F 73 90 00 [22:28:18]wFMCommunicate OK [22:28:18]SAM_PROTO_SignData done [22:28:18]FM_MakeSignedData done [22:28:18]CreateOFDProtocolMessage [22:28:18]wFMCommunicate request_size=4 [22:28:18]MH_SAM_APDU [22:28:18]CAPDU: 80 11 00 00 [22:28:18]Write to MH i2c: E2 08 00 29 27 80 11 00 00 00 00 00 00 CA [22:28:18]Write i2c OK [22:28:18]MH_I2C_Read... [22:28:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:18]Read from MH i2c: E2 [22:28:18]MH_I2C_Read... [22:28:18]Read from MH i2c: E2 17 00 [22:28:18]MH_I2C_Read... [22:28:18]Read from MH i2c: E2 17 00 29 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 25 [22:28:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:28:18]wFMCommunicate OK [22:28:18]CreateOFDProtocolMessage done [22:28:18]OFDSenderStorePacket 118319 [22:28:18]StoreOFDPacket docnum=118319 [22:28:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 55 79 04 01 38 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 82 74 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2F CE 01 00 35 04 06 00 3D 4C 94 9E B5 66 1B 81 A4 B0 33 B4 0F 73 [22:28:18]CheckFolder [22:28:18]dirname=/storage/ofd_packets [22:28:18]CheckFolder done [22:28:18]ProducePacketName [22:28:18]name=ofd_packets/00118319 [22:28:18]NVStorageSaveData ofd_packets/00118319 [22:28:18]File name is /storage/ofd_packets/00118319 [22:28:18]Write 298 bytes [22:28:18]NVStorageSaveData done [22:28:18]OFDSenderStorePacket done [22:28:18]KKMCreateOFDPacket done [22:28:18]NVStorageSaveData kkm_last_timestamp [22:28:18]File name is /storage/kkm_last_timestamp [22:28:18]Write 4 bytes [22:28:18]NVStorageSaveData done [22:28:18]ExternCall_PrintAddStr [22:28:18]wPrintStart [22:28:18]Write to MH i2c: 01 00 00 2A 27 51 [22:28:18]Write i2c OK [22:28:18]MH_I2C_Read... [22:28:18]Read from MH i2c: 01 [22:28:18]MH_I2C_Read... [22:28:18]Read from MH i2c: 01 07 00 [22:28:18]MH_I2C_Read... [22:28:18]Read from MH i2c: 01 07 00 2A 27 00 00 00 00 00 FF 0F 66 [22:28:18]RasterBufferAndPrint [22:28:18]line Счет N : (1)949194 [22:28:18]line ИНН: 02508201610067 [22:28:18]line Контрольно-Кассовый Чек [22:28:18]line ПРОДАЖА [22:28:18]line ТРК (МРК, ГНК) : 64 [22:28:18]line Товар: 2710194800 [22:28:18]line ДТ-К-5 [22:28:18]line 26.250 * 76.20 [22:28:18]line = 2000.25 [22:28:18]line НДС 12% НСП 1% [22:28:18]line > о реализуемом товаре [22:28:18]line ОКРУГЛЕНИЕ: -0.25 [22:28:18]line ИТОГО: 2000.00 [22:28:18]line Внесено: 2000.00 [22:28:18]line СДАЧА: 0.00 [22:28:18]line НСП 1% : 17.70 [22:28:18]line НДС 12% : 212.42 [22:28:18]line Наличными: 2000.00 [22:28:18]line Безнал.: 0.00 [22:28:18]line Место: АЗС № 134 "Партнер Нефть" [22:28:18]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:28:18]line СНО: Общий режим [22:28:18]line Чек 262 27.07.2024 22:28 [22:28:18]line Смена: 432 ФФД: 1.0 [22:28:18]line ЗНМ: 0300000044 [22:28:18]line РНМ: 0000000000092660 [22:28:18]line Версия ККМ: 001 [22:28:18]line ФМ: 0000000000874939 [22:28:18]line ФД: 118319 [22:28:18]line ФПД: 67399120237926 [22:28:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T222818&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118319&fm=67399120237926&tin=02508201610067®Number=0000000000092660&sum=200000 [22:28:18]written 0, free lines is 4095 [22:28:18]OFD Sender: Processing packet 118319 [packets to send 86, broken 85] [22:28:18]ProducePacketName [22:28:18]name=ofd_packets/00118319 [22:28:18]OFD Sender: To server: pG, [22:28:18]CommunicateWithHost lk.salyk.kg:30040 [22:28:18]ConnectInit lk.salyk.kg [22:28:18]Connected sock=10 [22:28:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 55 79 04 01 38 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 82 74 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2F CE 01 00 35 04 06 00 3D 4C 94 9E B5 66 1B 81 A4 B0 33 B4 0F 73 [22:28:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D4 D0 47 00 67 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2F CE 01 00 F4 03 04 00 14 22 A5 66 B6 04 01 00 00 6D F5 50 A3 06 42 1C D8 [22:28:18]CommunicateWithHost err = 0 [22:28:18]CheckOFDResponse [22:28:18]1017 (14) - 77093643461234 [22:28:18]1041 (16) - 0000000000874939 [22:28:18]1040 (4) - 118319 [22:28:18]1012 (4) - 27.07.2024 16:36 [22:28:18]1206 (1) - 0 [22:28:18]OFD Sender: Remove packet 118319 [22:28:18]ProducePacketName [22:28:18]name=ofd_packets/00118319 [22:28:18]NVStorageDeleteData [22:28:18]Write to MH i2c: 01 00 00 54 27 7B [22:28:18]Write i2c OK [22:28:18]MH_I2C_Read... [22:28:18]Read from MH i2c: 01 [22:28:18]MH_I2C_Read... [22:28:18]Read from MH i2c: 01 07 00 [22:28:18]MH_I2C_Read... [22:28:18]Read from MH i2c: 01 07 00 54 27 00 00 00 00 00 E4 0C 72 [22:28:18]RasterBufferAndPrint [22:28:18]line [22:28:18]line [22:28:18]line [22:28:18]line [22:28:18]line [22:28:18]written 0, free lines is 3306 [22:28:18]MH_Cut [22:28:18]Write to MH i2c: D1 01 00 5B 27 01 54 [22:28:18]Write i2c OK [22:28:18]MH_I2C_Read... [22:28:18]Read from MH i2c: D1 [22:28:18]MH_I2C_Read... [22:28:18]Read from MH i2c: D1 01 00 [22:28:18]MH_I2C_Read... [22:28:18]Read from MH i2c: D1 01 00 5B 27 00 53 [22:28:18]Write to MH i2c: 01 00 00 5C 27 83 [22:28:18]Write i2c OK [22:28:18]MH_I2C_Read... [22:28:19]OFD Sender: No OFD packet to send [22:28:19]*** Cut start [22:28:19]*** Partial cut [22:28:19]*** CUTSNS_PIN = 1 [22:28:19]*** CUTSNS_PIN = 0 [22:28:19]*** Brake cut motor [22:28:20]Read from MH i2c: 01 [22:28:20]MH_I2C_Read... [22:28:20]*** Stop cut motor [22:28:20]*** Cut end [22:28:20]Read from MH i2c: 01 07 00 [22:28:20]MH_I2C_Read... [22:28:20]Read from MH i2c: 01 07 00 5C 27 00 00 00 00 00 FF 0F 98 [22:28:20]process_action close_receipt done [22:28:20]requested_data is exist [22:28:20]produce_requested_data [22:28:20]requested_item fm.sn is exist - process it [22:28:20]wFMCommunicate request_size=4 [22:28:20]MH_SAM_APDU [22:28:20]CAPDU: 80 11 00 00 [22:28:20]Write to MH i2c: E2 08 00 5D 27 80 11 00 00 00 00 00 00 FE [22:28:20]Write i2c OK [22:28:20]MH_I2C_Read... [22:28:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:20]Read from MH i2c: E2 [22:28:20]MH_I2C_Read... [22:28:20]Read from MH i2c: E2 17 00 [22:28:20]MH_I2C_Read... [22:28:20]Read from MH i2c: E2 17 00 5D 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 59 [22:28:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:28:20]wFMCommunicate OK [22:28:20]requested_item fd.num is exist - process it [22:28:20]SAM_PROTO_GetFieldsCounters [22:28:20]wFMCommunicate request_size=4 [22:28:20]MH_SAM_APDU [22:28:20]CAPDU: 80 13 00 00 [22:28:20]Write to MH i2c: E2 08 00 5E 27 80 13 00 00 00 00 00 00 01 [22:28:20]Write i2c OK [22:28:20]MH_I2C_Read... [22:28:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:28:20]Read from MH i2c: E2 [22:28:20]MH_I2C_Read... [22:28:20]Read from MH i2c: E2 62 00 [22:28:20]MH_I2C_Read... [22:28:20]Read from MH i2c: E2 62 00 5E 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2F CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 EC [22:28:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2F CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:28:20]wFMCommunicate OK [22:28:20]SAM_PROTO_GetFieldsCounters done [22:28:20]requested_item shift.num is exist - process it [22:28:20]requested_item shift.opened is exist - process it [22:28:20]req_shift_opened [22:28:20]FM_GetShiftState [22:28:20]SAM_PROTO_GetShiftState [22:28:20]wFMCommunicate request_size=4 [22:28:20]MH_SAM_APDU [22:28:20]CAPDU: 80 13 01 00 [22:28:20]Write to MH i2c: E2 08 00 5F 27 80 13 01 00 00 00 00 00 03 [22:28:20]Write i2c OK [22:28:20]MH_I2C_Read... [22:28:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:20]Read from MH i2c: E2 [22:28:20]MH_I2C_Read... [22:28:20]Read from MH i2c: E2 0E 00 [22:28:20]MH_I2C_Read... [22:28:20]Read from MH i2c: E2 0E 00 5F 27 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 90 [22:28:20]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [22:28:20]wFMCommunicate OK [22:28:20]SAM_PROTO_GetShiftState done [22:28:20]FM_GetShiftState done [22:28:20]req_shift_opened done [22:28:20]requested_item shift.open_date is exist - process it [22:28:20]req_shift_open_date [22:28:20]req_shift_open_date done [22:28:20]produce_requested_data done [22:28:20]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118319,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [22:28:20]process_action_free close_receipt [22:28:20]json_value_free [22:28:20]json_value_free done [22:28:20]process_json_proto returns [22:28:20]Send response to host [22:28:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118319,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [22:28:20]free response buf [22:28:20]execute_script done [22:28:20]execute_script returns [22:28:20]free content buf [22:28:20]Sock 9.Close socket [22:28:20]Sock 9.Thread stoped [22:28:24]OFD Sender: No OFD packet to send [22:28:29]OFD Sender: No OFD packet to send [22:28:34]OFD Sender: No OFD packet to send [22:28:39]OFD Sender: No OFD packet to send [22:28:44]OFD Sender: No OFD packet to send [22:28:49]OFD Sender: No OFD packet to send [22:28:54]OFD Sender: No OFD packet to send [22:28:59]OFD Sender: No OFD packet to send [22:29:04]OFD Sender: No OFD packet to send [22:29:09]OFD Sender: No OFD packet to send [22:29:14]OFD Sender: No OFD packet to send [22:29:19]OFD Sender: No OFD packet to send [22:29:24]OFD Sender: No OFD packet to send [22:29:29]OFD Sender: No OFD packet to send [22:29:34]OFD Sender: No OFD packet to send [22:29:39]OFD Sender: No OFD packet to send [22:29:44]OFD Sender: No OFD packet to send [22:29:49]OFD Sender: No OFD packet to send [22:29:54]OFD Sender: No OFD packet to send [22:29:55]accept exits with 7 [22:29:55]New connection [22:29:55]New thread 3067096420 created [22:29:55]Thread 3066953060 joined [22:29:55]Waiting for new connection... [22:29:55] Sock 7.Parse request [22:29:55]Sock 7.Check first char [22:29:55]Sock 7.First char is OK [22:29:55]request: POST /json_proto HTTP/1.0 [22:29:55]Method: POST [22:29:55]URL: /json_proto [22:29:55]Method is POST - this is cgi request [22:29:55]url: /json_proto [22:29:55]query_string will be loaded in cgi processing [22:29:55]execute_cgi json_proto POST (null) [22:29:55]execute_cgi path=json_proto method=POST [22:29:55]POST find Content-Length [22:29:55]Host: 172.17.45.7:8080 [22:29:55]Content-Length: 682 [22:29:55]Content-Type: application/json [22:29:55] [22:29:55]POST finish read [22:29:55]Found Content-Length = 682 [22:29:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:55]execute_script... [22:29: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)949195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:55]POST & json_proto [22:29:55]process_json_proto [22:29:55]json parsed OK: [22:29:55]protocol is kg_v1.0 [22:29:55]action value=close_receipt [22:29:55]process_action close_receipt [22:29:55]cmd_close_receipt [22:29:55]MH_GetDate [22:29:55]Write to MH i2c: F0 00 00 60 27 76 [22:29:55]Write i2c OK [22:29:55]MH_I2C_Read... [22:29:55]Read from MH i2c: F0 [22:29:55]MH_I2C_Read... [22:29:55]Read from MH i2c: F0 09 00 [22:29:55]MH_I2C_Read... [22:29:55]Read from MH i2c: F0 09 00 60 27 00 E5 74 A5 66 90 0F 3E 66 26 [22:29:55]GetLastDocTimeStamp 1722119298 [22:29:55]current date 1722119397 [22:29:55]FM_GetShiftState [22:29:55]SAM_PROTO_GetShiftState [22:29:55]wFMCommunicate request_size=4 [22:29:55]MH_SAM_APDU [22:29:55]CAPDU: 80 13 01 00 [22:29:55]Write to MH i2c: E2 08 00 61 27 80 13 01 00 00 00 00 00 05 [22:29:55]Write i2c OK [22:29:55]MH_I2C_Read... [22:29:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:55]Read from MH i2c: E2 [22:29:55]MH_I2C_Read... [22:29:55]Read from MH i2c: E2 0E 00 [22:29:55]MH_I2C_Read... [22:29:55]Read from MH i2c: E2 0E 00 61 27 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 92 [22:29:55]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [22:29:55]wFMCommunicate OK [22:29:55]SAM_PROTO_GetShiftState done [22:29:55]FM_GetShiftState done [22:29:55]opened in 1722038845 [22:29:55]opened+sec_in_day 1722125245 [22:29:55]quantity*price = 100005 [22:29:55]sum+1 = 100006 [22:29:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 263 27.07.2024 22:29 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118320 ФПД: 7109968037371 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T222957&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118320&fm=7109968037371&tin=02508201610067®Number=0000000000092660&sum=100000 [22:29:56]StoreToDocumentArchive [22:29:56]shift 432 fd 118320 [22:29:56]save to /storage/0432/doc_00118320 [22:29:56]save last doc name /storage/0432/doc_00118320 to /storage/kkm_last_doc_name [22:29:56]save OK [22:29:56]Clear old archive folders... [22:29:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:29:56]tlvbuf is 01E19340 [22:29:56]SAM_PROTO_ClearQueue [22:29:56]wFMCommunicate request_size=4 [22:29:56]MH_SAM_APDU [22:29:56]CAPDU: 80 09 00 00 [22:29:56]Write to MH i2c: E2 08 00 6E 27 80 09 00 00 00 00 00 00 07 [22:29:56]Write i2c OK [22:29:56]MH_I2C_Read... [22:29:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:29:56]Read from MH i2c: E2 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 03 00 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 03 00 6E 27 00 90 00 09 [22:29:56]RAPDU: 90 00 [22:29:56]wFMCommunicate OK [22:29:56]SAM_PROTO_ClearQueue done [22:29:56]KKMCreateOFDPacket [22:29:56]OFDProtocolAddRootSTLVToBuf [22:29:56]FM_MakeSignedData [22:29:56]FM_MakeSignedData [22:29:56]SAM_PROTO_SignData [22:29:56]wFMCommunicate request_size=4 [22:29:56]MH_SAM_APDU [22:29:56]CAPDU: 80 0D 01 02 [22:29:56]Write to MH i2c: E2 08 00 6F 27 80 0D 01 02 00 00 00 00 0F [22:29:56]Write i2c OK [22:29:56]MH_I2C_Read... [22:29:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:29:56]Read from MH i2c: E2 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 03 00 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 03 00 6F 27 00 90 00 0A [22:29:56]RAPDU: 90 00 [22:29:56]wFMCommunicate OK [22:29:56]wFMCommunicate request_size=255 [22:29:56]MH_SAM_APDU [22:29: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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 E5 74 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 30 CE 01 00 35 04 06 00 06 [22:29:56]Write to MH i2c: E2 02 01 70 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 E5 74 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 30 CE 01 00 35 04 06 00 06 00 00 44 [22:29:56]Write i2c OK [22:29:56]MH_I2C_Read... [22:29:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:57]Read from MH i2c: E2 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: E2 03 00 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: E2 03 00 70 27 00 90 00 0B [22:29:57]RAPDU: 90 00 [22:29:57]wFMCommunicate OK [22:29:57]wFMCommunicate request_size=10 [22:29:57]MH_SAM_APDU [22:29:57]CAPDU: 80 0D 02 02 05 77 6B 1E 85 FB [22:29:57]Write to MH i2c: E2 0D 00 71 27 80 0D 02 02 05 00 77 6B 1E 85 FB 00 00 9C [22:29:57]Write i2c OK [22:29:57]MH_I2C_Read... [22:29:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:57]Read from MH i2c: E2 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: E2 03 00 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: E2 03 00 71 27 00 90 00 0C [22:29:57]RAPDU: 90 00 [22:29:57]wFMCommunicate OK [22:29:57]wFMCommunicate request_size=4 [22:29:57]MH_SAM_APDU [22:29:57]CAPDU: 80 0D 03 02 [22:29:57]Write to MH i2c: E2 08 00 72 27 80 0D 03 02 00 00 00 00 14 [22:29:57]Write i2c OK [22:29:57]MH_I2C_Read... [22:29:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:29:57]Read from MH i2c: E2 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: E2 0B 00 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: E2 0B 00 72 27 00 60 37 F9 EF FC A0 02 A7 90 00 D9 [22:29:57]RAPDU: 60 37 F9 EF FC A0 02 A7 90 00 [22:29:57]wFMCommunicate OK [22:29:57]SAM_PROTO_SignData done [22:29:57]FM_MakeSignedData done [22:29:57]CreateOFDProtocolMessage [22:29:57]wFMCommunicate request_size=4 [22:29:57]MH_SAM_APDU [22:29:57]CAPDU: 80 11 00 00 [22:29:57]Write to MH i2c: E2 08 00 73 27 80 11 00 00 00 00 00 00 14 [22:29:57]Write i2c OK [22:29:57]MH_I2C_Read... [22:29:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:57]Read from MH i2c: E2 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: E2 17 00 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: E2 17 00 73 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6F [22:29:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:29:57]wFMCommunicate OK [22:29:57]CreateOFDProtocolMessage done [22:29:57]OFDSenderStorePacket 118320 [22:29:57]StoreOFDPacket docnum=118320 [22:29:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A0 EC 07 01 82 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 E5 74 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 30 CE 01 00 35 04 06 00 06 77 6B 1E 85 FB 60 37 F9 EF FC A0 02 A7 [22:29:57]CheckFolder [22:29:57]dirname=/storage/ofd_packets [22:29:57]CheckFolder done [22:29:57]ProducePacketName [22:29:57]name=ofd_packets/00118320 [22:29:57]NVStorageSaveData ofd_packets/00118320 [22:29:57]File name is /storage/ofd_packets/00118320 [22:29:57]Write 301 bytes [22:29:57]NVStorageSaveData done [22:29:57]OFDSenderStorePacket done [22:29:57]KKMCreateOFDPacket done [22:29:57]NVStorageSaveData kkm_last_timestamp [22:29:57]File name is /storage/kkm_last_timestamp [22:29:57]Write 4 bytes [22:29:57]NVStorageSaveData done [22:29:57]ExternCall_PrintAddStr [22:29:57]wPrintStart [22:29:57]Write to MH i2c: 01 00 00 74 27 9B [22:29:57]Write i2c OK [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: 01 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: 01 07 00 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: 01 07 00 74 27 00 00 00 00 00 FF 0F B0 [22:29:57]RasterBufferAndPrint [22:29:57]line Счет N : (1)949195 [22:29:57]line ИНН: 02508201610067 [22:29:57]line Контрольно-Кассовый Чек [22:29:57]line ПРОДАЖА [22:29:57]line ТРК (МРК, ГНК) : 41 [22:29:57]line Товар: 2710124130 [22:29:57]line Аи-92-К-4 [22:29:57]line 14.750 * 67.80 [22:29:57]line = 1000.05 [22:29:57]line НДС 12% НСП 1% [22:29:57]line > о реализуемом товаре [22:29:57]line ОКРУГЛЕНИЕ: -0.05 [22:29:57]line ИТОГО: 1000.00 [22:29:57]line Внесено: 1000.00 [22:29:57]line СДАЧА: 0.00 [22:29:57]line НСП 1% : 8.85 [22:29:57]line НДС 12% : 106.20 [22:29:57]line Наличными: 1000.00 [22:29:57]line Безнал.: 0.00 [22:29:57]line Место: АЗС № 134 "Партнер Нефть" [22:29:57]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:29:57]line СНО: Общий режим [22:29:57]line Чек 263 27.07.2024 22:29 [22:29:57]line Смена: 432 ФФД: 1.0 [22:29:57]line ЗНМ: 0300000044 [22:29:57]line РНМ: 0000000000092660 [22:29:57]line Версия ККМ: 001 [22:29:57]line ФМ: 0000000000874939 [22:29:57]line ФД: 118320 [22:29:57]line ФПД: 7109968037371 [22:29:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T222957&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118320&fm=7109968037371&tin=02508201610067®Number=0000000000092660&sum=100000 [22:29:57]written 0, free lines is 4095 [22:29:57]OFD Sender: Processing packet 118320 [packets to send 86, broken 85] [22:29:57]ProducePacketName [22:29:57]name=ofd_packets/00118320 [22:29:57]OFD Sender: To server: pG, [22:29:57]CommunicateWithHost lk.salyk.kg:30040 [22:29:57]ConnectInit lk.salyk.kg [22:29:57]Connected sock=10 [22:29:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A0 EC 07 01 82 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 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 E5 74 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 30 CE 01 00 35 04 06 00 06 77 6B 1E 85 FB 60 37 F9 EF FC A0 02 A7 [22:29:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 AF 34 47 00 45 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 30 CE 01 00 F4 03 04 00 76 22 A5 66 B6 04 01 00 00 C6 31 C4 74 78 04 DE A6 [22:29:57]CommunicateWithHost err = 0 [22:29:57]CheckOFDResponse [22:29:57]1017 (14) - 77093643461234 [22:29:57]1041 (16) - 0000000000874939 [22:29:57]1040 (4) - 118320 [22:29:57]1012 (4) - 27.07.2024 16:38 [22:29:57]1206 (1) - 0 [22:29:57]OFD Sender: Remove packet 118320 [22:29:57]ProducePacketName [22:29:57]name=ofd_packets/00118320 [22:29:57]NVStorageDeleteData [22:29:57]Write to MH i2c: 01 00 00 9E 27 C5 [22:29:57]Write i2c OK [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: 01 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: 01 07 00 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: 01 07 00 9E 27 00 00 00 00 00 E4 0C BC [22:29:57]RasterBufferAndPrint [22:29:57]line [22:29:57]line [22:29:57]line [22:29:57]line [22:29:57]line [22:29:57]written 0, free lines is 3305 [22:29:57]MH_Cut [22:29:57]Write to MH i2c: D1 01 00 A5 27 01 9E [22:29:57]Write i2c OK [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: D1 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: D1 01 00 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: D1 01 00 A5 27 00 9D [22:29:57]Write to MH i2c: 01 00 00 A6 27 CD [22:29:57]Write i2c OK [22:29:57]MH_I2C_Read... [22:29:58]OFD Sender: No OFD packet to send [22:29:58]*** Cut start [22:29:58]*** Partial cut [22:29:58]*** CUTSNS_PIN = 1 [22:29:58]*** CUTSNS_PIN = 0 [22:29:58]*** Brake cut motor [22:29:59]Read from MH i2c: 01 [22:29:59]MH_I2C_Read... [22:29:59]*** Stop cut motor [22:29:59]*** Cut end [22:29:59]Read from MH i2c: 01 07 00 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: 01 07 00 A6 27 00 00 00 00 00 FF 0F E2 [22:29:59]process_action close_receipt done [22:29:59]requested_data is exist [22:29:59]produce_requested_data [22:29:59]requested_item fm.sn is exist - process it [22:29:59]wFMCommunicate request_size=4 [22:29:59]MH_SAM_APDU [22:29:59]CAPDU: 80 11 00 00 [22:29:59]Write to MH i2c: E2 08 00 A7 27 80 11 00 00 00 00 00 00 48 [22:29:59]Write i2c OK [22:29:59]MH_I2C_Read... [22:29:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:59]Read from MH i2c: E2 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 17 00 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 17 00 A7 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A3 [22:29:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:29:59]wFMCommunicate OK [22:29:59]requested_item fd.num is exist - process it [22:29:59]SAM_PROTO_GetFieldsCounters [22:29:59]wFMCommunicate request_size=4 [22:29:59]MH_SAM_APDU [22:29:59]CAPDU: 80 13 00 00 [22:29:59]Write to MH i2c: E2 08 00 A8 27 80 13 00 00 00 00 00 00 4B [22:29:59]Write i2c OK [22:29:59]MH_I2C_Read... [22:29:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:29:59]Read from MH i2c: E2 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 62 00 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 62 00 A8 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 30 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 3A [22:29:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 30 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:29:59]wFMCommunicate OK [22:29:59]SAM_PROTO_GetFieldsCounters done [22:29:59]requested_item shift.num is exist - process it [22:29:59]requested_item shift.opened is exist - process it [22:29:59]req_shift_opened [22:29:59]FM_GetShiftState [22:29:59]SAM_PROTO_GetShiftState [22:29:59]wFMCommunicate request_size=4 [22:29:59]MH_SAM_APDU [22:29:59]CAPDU: 80 13 01 00 [22:29:59]Write to MH i2c: E2 08 00 A9 27 80 13 01 00 00 00 00 00 4D [22:29:59]Write i2c OK [22:29:59]MH_I2C_Read... [22:29:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:59]Read from MH i2c: E2 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 0E 00 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 0E 00 A9 27 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 DA [22:29:59]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [22:29:59]wFMCommunicate OK [22:29:59]SAM_PROTO_GetShiftState done [22:29:59]FM_GetShiftState done [22:29:59]req_shift_opened done [22:29:59]requested_item shift.open_date is exist - process it [22:29:59]req_shift_open_date [22:29:59]req_shift_open_date done [22:29:59]produce_requested_data done [22:29:59]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118320,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [22:29:59]process_action_free close_receipt [22:29:59]json_value_free [22:29:59]json_value_free done [22:29:59]process_json_proto returns [22:29:59]Send response to host [22:29:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118320,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [22:29:59]free response buf [22:29:59]execute_script done [22:29:59]execute_script returns [22:29:59]free content buf [22:29:59]Sock 7.Close socket [22:29:59]Sock 7.Thread stoped [22:30:03]OFD Sender: No OFD packet to send [22:30:08]OFD Sender: No OFD packet to send [22:30:13]OFD Sender: No OFD packet to send [22:30:18]OFD Sender: No OFD packet to send [22:30:18]accept exits with 9 [22:30:18]New connection [22:30:18]New thread 3066953060 created [22:30:18]Thread 3067096420 joined [22:30:18]Waiting for new connection... [22:30:18] Sock 9.Parse request [22:30:18]Sock 9.Check first char [22:30:18]Sock 9.First char is OK [22:30:18]request: POST /json_proto HTTP/1.0 [22:30:18]Method: POST [22:30:18]URL: /json_proto [22:30:18]Method is POST - this is cgi request [22:30:18]url: /json_proto [22:30:18]query_string will be loaded in cgi processing [22:30:18]execute_cgi json_proto POST (null) [22:30:18]execute_cgi path=json_proto method=POST [22:30:18]POST find Content-Length [22:30:18]Host: 172.17.45.7:8080 [22:30:18]Content-Length: 677 [22:30:18]Content-Type: application/json [22:30:18] [22:30:18]POST finish read [22:30:18]Found Content-Length = 677 [22:30:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:30:18]execute_script... [22:30: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)949196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:30:18]POST & json_proto [22:30:18]process_json_proto [22:30:18]json parsed OK: [22:30:18]protocol is kg_v1.0 [22:30:18]action value=close_receipt [22:30:18]process_action close_receipt [22:30:18]cmd_close_receipt [22:30:18]MH_GetDate [22:30:18]Write to MH i2c: F0 00 00 AA 27 C0 [22:30:18]Write i2c OK [22:30:18]MH_I2C_Read... [22:30:18]Read from MH i2c: F0 [22:30:18]MH_I2C_Read... [22:30:18]Read from MH i2c: F0 09 00 [22:30:18]MH_I2C_Read... [22:30:18]Read from MH i2c: F0 09 00 AA 27 00 FC 74 A5 66 90 0F 3E 66 87 [22:30:18]GetLastDocTimeStamp 1722119397 [22:30:18]current date 1722119420 [22:30:18]FM_GetShiftState [22:30:18]SAM_PROTO_GetShiftState [22:30:18]wFMCommunicate request_size=4 [22:30:18]MH_SAM_APDU [22:30:18]CAPDU: 80 13 01 00 [22:30:18]Write to MH i2c: E2 08 00 AB 27 80 13 01 00 00 00 00 00 4F [22:30:18]Write i2c OK [22:30:18]MH_I2C_Read... [22:30:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:18]Read from MH i2c: E2 [22:30:18]MH_I2C_Read... [22:30:18]Read from MH i2c: E2 0E 00 [22:30:18]MH_I2C_Read... [22:30:18]Read from MH i2c: E2 0E 00 AB 27 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 DC [22:30:18]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [22:30:18]wFMCommunicate OK [22:30:18]SAM_PROTO_GetShiftState done [22:30:18]FM_GetShiftState done [22:30:18]opened in 1722038845 [22:30:18]opened+sec_in_day 1722125245 [22:30:18]quantity*price = 50036 [22:30:18]sum+1 = 50037 [22:30:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 264 27.07.2024 22:30 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118321 ФПД: 176054635104354 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T223020&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118321&fm=176054635104354&tin=02508201610067®Number=0000000000092660&sum=50000 [22:30:19]StoreToDocumentArchive [22:30:19]shift 432 fd 118321 [22:30:19]save to /storage/0432/doc_00118321 [22:30:19]save last doc name /storage/0432/doc_00118321 to /storage/kkm_last_doc_name [22:30:19]save OK [22:30:19]Clear old archive folders... [22:30:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:30:19]tlvbuf is 01E34200 [22:30:19]SAM_PROTO_ClearQueue [22:30:19]wFMCommunicate request_size=4 [22:30:19]MH_SAM_APDU [22:30:19]CAPDU: 80 09 00 00 [22:30:19]Write to MH i2c: E2 08 00 B8 27 80 09 00 00 00 00 00 00 51 [22:30:19]Write i2c OK [22:30:19]MH_I2C_Read... [22:30:19]Read from MH i2c: E2 [22:30:19]MH_I2C_Read... [22:30:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:30:19]Read from MH i2c: E2 03 00 [22:30:19]MH_I2C_Read... [22:30:19]Read from MH i2c: E2 03 00 B8 27 00 90 00 53 [22:30:19]RAPDU: 90 00 [22:30:19]wFMCommunicate OK [22:30:19]SAM_PROTO_ClearQueue done [22:30:19]KKMCreateOFDPacket [22:30:19]OFDProtocolAddRootSTLVToBuf [22:30:19]FM_MakeSignedData [22:30:19]FM_MakeSignedData [22:30:19]SAM_PROTO_SignData [22:30:19]wFMCommunicate request_size=4 [22:30:19]MH_SAM_APDU [22:30:19]CAPDU: 80 0D 01 02 [22:30:19]Write to MH i2c: E2 08 00 B9 27 80 0D 01 02 00 00 00 00 59 [22:30:19]Write i2c OK [22:30:19]MH_I2C_Read... [22:30:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:30:19]Read from MH i2c: E2 [22:30:19]MH_I2C_Read... [22:30:19]Read from MH i2c: E2 03 00 [22:30:19]MH_I2C_Read... [22:30:19]Read from MH i2c: E2 03 00 B9 27 00 90 00 54 [22:30:19]RAPDU: 90 00 [22:30:19]wFMCommunicate OK [22:30:19]wFMCommunicate request_size=255 [22:30:19]MH_SAM_APDU [22:30: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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 08 01 00 00 F4 03 04 00 FC 74 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 31 CE 01 00 35 04 06 00 A0 [22:30:19]Write to MH i2c: E2 02 01 BA 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 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 08 01 00 00 F4 03 04 00 FC 74 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 31 CE 01 00 35 04 06 00 A0 00 00 B2 [22:30:19]Write i2c OK [22:30:19]MH_I2C_Read... [22:30:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:20]Read from MH i2c: E2 [22:30:20]MH_I2C_Read... [22:30:20]Read from MH i2c: E2 03 00 [22:30:20]MH_I2C_Read... [22:30:20]Read from MH i2c: E2 03 00 BA 27 00 90 00 55 [22:30:20]RAPDU: 90 00 [22:30:20]wFMCommunicate OK [22:30:20]wFMCommunicate request_size=10 [22:30:20]MH_SAM_APDU [22:30:20]CAPDU: 80 0D 02 02 05 1E E9 FC 88 62 [22:30:20]Write to MH i2c: E2 0D 00 BB 27 80 0D 02 02 05 00 1E E9 FC 88 62 00 00 53 [22:30:20]Write i2c OK [22:30:20]MH_I2C_Read... [22:30:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:20]Read from MH i2c: E2 [22:30:20]MH_I2C_Read... [22:30:20]Read from MH i2c: E2 03 00 [22:30:20]MH_I2C_Read... [22:30:20]Read from MH i2c: E2 03 00 BB 27 00 90 00 56 [22:30:20]RAPDU: 90 00 [22:30:20]wFMCommunicate OK [22:30:20]wFMCommunicate request_size=4 [22:30:20]MH_SAM_APDU [22:30:20]CAPDU: 80 0D 03 02 [22:30:20]Write to MH i2c: E2 08 00 BC 27 80 0D 03 02 00 00 00 00 5E [22:30:20]Write i2c OK [22:30:20]MH_I2C_Read... [22:30:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:30:20]Read from MH i2c: E2 [22:30:20]MH_I2C_Read... [22:30:20]Read from MH i2c: E2 0B 00 [22:30:20]MH_I2C_Read... [22:30:20]Read from MH i2c: E2 0B 00 BC 27 00 8B 07 E3 DC DD 73 A2 C5 90 00 67 [22:30:20]RAPDU: 8B 07 E3 DC DD 73 A2 C5 90 00 [22:30:20]wFMCommunicate OK [22:30:20]SAM_PROTO_SignData done [22:30:20]FM_MakeSignedData done [22:30:20]CreateOFDProtocolMessage [22:30:20]wFMCommunicate request_size=4 [22:30:20]MH_SAM_APDU [22:30:20]CAPDU: 80 11 00 00 [22:30:20]Write to MH i2c: E2 08 00 BD 27 80 11 00 00 00 00 00 00 5E [22:30:20]Write i2c OK [22:30:20]MH_I2C_Read... [22:30:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:20]Read from MH i2c: E2 [22:30:20]MH_I2C_Read... [22:30:20]Read from MH i2c: E2 17 00 [22:30:20]MH_I2C_Read... [22:30:20]Read from MH i2c: E2 17 00 BD 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B9 [22:30:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:30:20]wFMCommunicate OK [22:30:20]CreateOFDProtocolMessage done [22:30:20]OFDSenderStorePacket 118321 [22:30:20]StoreOFDPacket docnum=118321 [22:30:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4A AA 07 01 FA 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 08 01 00 00 F4 03 04 00 FC 74 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 31 CE 01 00 35 04 06 00 A0 1E E9 FC 88 62 8B 07 E3 DC DD 73 A2 C5 [22:30:20]CheckFolder [22:30:20]dirname=/storage/ofd_packets [22:30:20]CheckFolder done [22:30:20]ProducePacketName [22:30:20]name=ofd_packets/00118321 [22:30:20]NVStorageSaveData ofd_packets/00118321 [22:30:20]File name is /storage/ofd_packets/00118321 [22:30:20]Write 301 bytes [22:30:20]NVStorageSaveData done [22:30:20]OFDSenderStorePacket done [22:30:20]KKMCreateOFDPacket done [22:30:20]NVStorageSaveData kkm_last_timestamp [22:30:20]File name is /storage/kkm_last_timestamp [22:30:20]Write 4 bytes [22:30:20]NVStorageSaveData done [22:30:20]ExternCall_PrintAddStr [22:30:20]wPrintStart [22:30:20]Write to MH i2c: 01 00 00 BE 27 E5 [22:30:20]Write i2c OK [22:30:20]MH_I2C_Read... [22:30:20]Read from MH i2c: 01 [22:30:20]MH_I2C_Read... [22:30:20]Read from MH i2c: 01 07 00 [22:30:20]MH_I2C_Read... [22:30:20]Read from MH i2c: 01 07 00 BE 27 00 00 00 00 00 FF 0F FA [22:30:20]RasterBufferAndPrint [22:30:20]line Счет N : (1)949196 [22:30:20]line ИНН: 02508201610067 [22:30:20]line Контрольно-Кассовый Чек [22:30:20]line ПРОДАЖА [22:30:20]line ТРК (МРК, ГНК) : 31 [22:30:20]line Товар: 2710124130 [22:30:20]line Аи-92-К-4 [22:30:20]line 7.380 * 67.80 [22:30:20]line = 500.36 [22:30:20]line НДС 12% НСП 1% [22:30:20]line > о реализуемом товаре [22:30:20]line ОКРУГЛЕНИЕ: -0.36 [22:30:20]line ИТОГО: 500.00 [22:30:20]line Внесено: 500.00 [22:30:20]line СДАЧА: 0.00 [22:30:20]line НСП 1% : 4.43 [22:30:20]line НДС 12% : 53.14 [22:30:20]line Наличными: 500.00 [22:30:20]line Безнал.: 0.00 [22:30:20]line Место: АЗС № 134 "Партнер Нефть" [22:30:20]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:30:20]line СНО: Общий режим [22:30:20]line Чек 264 27.07.2024 22:30 [22:30:20]line Смена: 432 ФФД: 1.0 [22:30:20]line ЗНМ: 0300000044 [22:30:20]line РНМ: 0000000000092660 [22:30:20]line Версия ККМ: 001 [22:30:20]line ФМ: 0000000000874939 [22:30:20]line ФД: 118321 [22:30:20]line ФПД: 176054635104354 [22:30:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T223020&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118321&fm=176054635104354&tin=02508201610067®Number=0000000000092660&sum=50000 [22:30:20]OFD Sender: Processing packet 118321 [packets to send 86, broken 85] [22:30:20]ProducePacketName [22:30:20]name=ofd_packets/00118321 [22:30:20]OFD Sender: To server: pG, [22:30:20]CommunicateWithHost lk.salyk.kg:30040 [22:30:20]ConnectInit lk.salyk.kg [22:30:20]written 0, free lines is 4095 [22:30:20]Connected sock=10 [22:30:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4A AA 07 01 FA 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 08 01 00 00 F4 03 04 00 FC 74 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 31 CE 01 00 35 04 06 00 A0 1E E9 FC 88 62 8B 07 E3 DC DD 73 A2 C5 [22:30:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B5 39 47 00 23 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 31 CE 01 00 F4 03 04 00 8E 22 A5 66 B6 04 01 00 00 4F 22 89 70 25 7F 97 72 [22:30:20]CommunicateWithHost err = 0 [22:30:20]CheckOFDResponse [22:30:20]1017 (14) - 77093643461234 [22:30:20]1041 (16) - 0000000000874939 [22:30:20]1040 (4) - 118321 [22:30:20]1012 (4) - 27.07.2024 16:38 [22:30:20]1206 (1) - 0 [22:30:20]OFD Sender: Remove packet 118321 [22:30:20]ProducePacketName [22:30:20]name=ofd_packets/00118321 [22:30:20]NVStorageDeleteData [22:30:21]Write to MH i2c: 01 00 00 E8 27 0F [22:30:21]Write i2c OK [22:30:21]MH_I2C_Read... [22:30:21]Read from MH i2c: 01 [22:30:21]MH_I2C_Read... [22:30:21]Read from MH i2c: 01 07 00 [22:30:21]MH_I2C_Read... [22:30:21]Read from MH i2c: 01 07 00 E8 27 00 00 00 00 00 E3 0C 05 [22:30:21]RasterBufferAndPrint [22:30:21]line [22:30:21]line [22:30:21]line [22:30:21]line [22:30:21]line [22:30:21]written 0, free lines is 3305 [22:30:21]MH_Cut [22:30:21]Write to MH i2c: D1 01 00 EF 27 01 E8 [22:30:21]Write i2c OK [22:30:21]MH_I2C_Read... [22:30:21]Read from MH i2c: D1 [22:30:21]MH_I2C_Read... [22:30:21]Read from MH i2c: D1 01 00 [22:30:21]MH_I2C_Read... [22:30:21]Read from MH i2c: D1 01 00 EF 27 00 E7 [22:30:21]Write to MH i2c: 01 00 00 F0 27 17 [22:30:21]Write i2c OK [22:30:21]MH_I2C_Read... [22:30:21]OFD Sender: No OFD packet to send [22:30:21]*** Cut start [22:30:21]*** Partial cut [22:30:21]*** CUTSNS_PIN = 1 [22:30:21]*** CUTSNS_PIN = 0 [22:30:22]*** Brake cut motor [22:30:22]Read from MH i2c: 01 [22:30:22]MH_I2C_Read... [22:30:22]*** Stop cut motor [22:30:22]*** Cut end [22:30:22]Read from MH i2c: 01 07 00 [22:30:22]MH_I2C_Read... [22:30:22]Read from MH i2c: 01 07 00 F0 27 00 00 00 00 00 FF 0F 2C [22:30:22]process_action close_receipt done [22:30:22]requested_data is exist [22:30:22]produce_requested_data [22:30:22]requested_item fm.sn is exist - process it [22:30:22]wFMCommunicate request_size=4 [22:30:22]MH_SAM_APDU [22:30:22]CAPDU: 80 11 00 00 [22:30:22]Write to MH i2c: E2 08 00 F1 27 80 11 00 00 00 00 00 00 92 [22:30:22]Write i2c OK [22:30:22]MH_I2C_Read... [22:30:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:22]Read from MH i2c: E2 [22:30:22]MH_I2C_Read... [22:30:22]Read from MH i2c: E2 17 00 [22:30:22]MH_I2C_Read... [22:30:22]Read from MH i2c: E2 17 00 F1 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 ED [22:30:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:30:22]wFMCommunicate OK [22:30:22]requested_item fd.num is exist - process it [22:30:22]SAM_PROTO_GetFieldsCounters [22:30:22]wFMCommunicate request_size=4 [22:30:22]MH_SAM_APDU [22:30:22]CAPDU: 80 13 00 00 [22:30:22]Write to MH i2c: E2 08 00 F2 27 80 13 00 00 00 00 00 00 95 [22:30:22]Write i2c OK [22:30:22]MH_I2C_Read... [22:30:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:30:22]Read from MH i2c: E2 [22:30:22]MH_I2C_Read... [22:30:22]Read from MH i2c: E2 62 00 [22:30:22]MH_I2C_Read... [22:30:22]Read from MH i2c: E2 62 00 F2 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 31 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 88 [22:30:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 31 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:30:22]wFMCommunicate OK [22:30:22]SAM_PROTO_GetFieldsCounters done [22:30:22]requested_item shift.num is exist - process it [22:30:22]requested_item shift.opened is exist - process it [22:30:22]req_shift_opened [22:30:22]FM_GetShiftState [22:30:22]SAM_PROTO_GetShiftState [22:30:22]wFMCommunicate request_size=4 [22:30:22]MH_SAM_APDU [22:30:22]CAPDU: 80 13 01 00 [22:30:22]Write to MH i2c: E2 08 00 F3 27 80 13 01 00 00 00 00 00 97 [22:30:22]Write i2c OK [22:30:22]MH_I2C_Read... [22:30:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:22]Read from MH i2c: E2 [22:30:22]MH_I2C_Read... [22:30:22]Read from MH i2c: E2 0E 00 [22:30:22]MH_I2C_Read... [22:30:22]Read from MH i2c: E2 0E 00 F3 27 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 24 [22:30:22]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [22:30:22]wFMCommunicate OK [22:30:22]SAM_PROTO_GetShiftState done [22:30:22]FM_GetShiftState done [22:30:22]req_shift_opened done [22:30:22]requested_item shift.open_date is exist - process it [22:30:22]req_shift_open_date [22:30:22]req_shift_open_date done [22:30:22]produce_requested_data done [22:30:22]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118321,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [22:30:22]process_action_free close_receipt [22:30:22]json_value_free [22:30:22]json_value_free done [22:30:22]process_json_proto returns [22:30:22]Send response to host [22:30:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118321,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [22:30:22]free response buf [22:30:22]execute_script done [22:30:22]execute_script returns [22:30:22]free content buf [22:30:22]Sock 9.Close socket [22:30:22]Sock 9.Thread stoped [22:30:26]OFD Sender: No OFD packet to send [22:30:31]OFD Sender: No OFD packet to send [22:30:36]OFD Sender: No OFD packet to send [22:30:41]OFD Sender: No OFD packet to send [22:30:46]OFD Sender: No OFD packet to send [22:30:51]OFD Sender: No OFD packet to send [22:30:56]OFD Sender: No OFD packet to send [22:31:01]OFD Sender: No OFD packet to send [22:31:06]OFD Sender: No OFD packet to send [22:31:11]OFD Sender: No OFD packet to send [22:31:16]OFD Sender: No OFD packet to send [22:31:21]OFD Sender: No OFD packet to send [22:31:26]OFD Sender: No OFD packet to send [22:31:31]OFD Sender: No OFD packet to send [22:31:36]OFD Sender: No OFD packet to send [22:31:41]OFD Sender: No OFD packet to send [22:31:46]OFD Sender: No OFD packet to send [22:31:51]OFD Sender: No OFD packet to send [22:31:56]OFD Sender: No OFD packet to send [22:32:01]OFD Sender: No OFD packet to send [22:32:06]OFD Sender: No OFD packet to send [22:32:11]OFD Sender: No OFD packet to send [22:32:16]OFD Sender: No OFD packet to send [22:32:21]OFD Sender: No OFD packet to send [22:32:26]OFD Sender: No OFD packet to send [22:32:31]OFD Sender: No OFD packet to send [22:32:36]OFD Sender: No OFD packet to send [22:32:41]OFD Sender: No OFD packet to send [22:32:46]OFD Sender: No OFD packet to send [22:32:51]OFD Sender: No OFD packet to send [22:32:56]OFD Sender: No OFD packet to send [22:33:01]OFD Sender: No OFD packet to send [22:33:06]OFD Sender: No OFD packet to send [22:33:11]OFD Sender: No OFD packet to send [22:33:16]OFD Sender: No OFD packet to send [22:33:21]OFD Sender: No OFD packet to send [22:33:26]OFD Sender: No OFD packet to send [22:33:31]OFD Sender: No OFD packet to send [22:33:36]OFD Sender: No OFD packet to send [22:33:41]OFD Sender: No OFD packet to send [22:33:46]OFD Sender: No OFD packet to send [22:33:51]OFD Sender: No OFD packet to send [22:33:56]OFD Sender: No OFD packet to send [22:34:01]OFD Sender: No OFD packet to send [22:34:06]OFD Sender: No OFD packet to send [22:34:11]OFD Sender: No OFD packet to send [22:34:16]OFD Sender: No OFD packet to send [22:34:21]OFD Sender: No OFD packet to send [22:34:26]OFD Sender: No OFD packet to send [22:34:31]OFD Sender: No OFD packet to send [22:34:36]OFD Sender: No OFD packet to send [22:34:41]OFD Sender: No OFD packet to send [22:34:46]OFD Sender: No OFD packet to send [22:34:51]OFD Sender: No OFD packet to send [22:34:56]OFD Sender: No OFD packet to send [22:35:01]OFD Sender: No OFD packet to send [22:35:06]OFD Sender: No OFD packet to send [22:35:11]OFD Sender: No OFD packet to send [22:35:16]OFD Sender: No OFD packet to send [22:35:21]OFD Sender: No OFD packet to send [22:35:26]OFD Sender: No OFD packet to send [22:35:31]OFD Sender: No OFD packet to send [22:35:36]OFD Sender: No OFD packet to send [22:35:41]OFD Sender: No OFD packet to send [22:35:46]OFD Sender: No OFD packet to send [22:35:51]OFD Sender: No OFD packet to send [22:35:56]OFD Sender: No OFD packet to send [22:36:01]OFD Sender: No OFD packet to send [22:36:06]OFD Sender: No OFD packet to send [22:36:11]OFD Sender: No OFD packet to send [22:36:16]OFD Sender: No OFD packet to send [22:36:21]OFD Sender: No OFD packet to send [22:36:26]OFD Sender: No OFD packet to send [22:36:31]OFD Sender: No OFD packet to send [22:36:36]OFD Sender: No OFD packet to send [22:36:41]OFD Sender: No OFD packet to send [22:36:45]accept exits with 7 [22:36:45]New connection [22:36:45]New thread 3067096420 created [22:36:45]Thread 3066953060 joined [22:36:45]Waiting for new connection... [22:36:45] Sock 7.Parse request [22:36:45]Sock 7.Check first char [22:36:45]Sock 7.First char is OK [22:36:45]request: POST /json_proto HTTP/1.0 [22:36:45]Method: POST [22:36:45]URL: /json_proto [22:36:45]Method is POST - this is cgi request [22:36:45]url: /json_proto [22:36:45]query_string will be loaded in cgi processing [22:36:45]execute_cgi json_proto POST (null) [22:36:45]execute_cgi path=json_proto method=POST [22:36:45]POST find Content-Length [22:36:45]Host: 172.17.45.7:8080 [22:36:45]Content-Length: 677 [22:36:45]Content-Type: application/json [22:36:45] [22:36:45]POST finish read [22:36:45]Found Content-Length = 677 [22:36:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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" ] } } [22:36:45]execute_script... [22:36: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)949197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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" ] } } [22:36:45]POST & json_proto [22:36:45]process_json_proto [22:36:45]json parsed OK: [22:36:45]protocol is kg_v1.0 [22:36:45]action value=close_receipt [22:36:45]process_action close_receipt [22:36:45]cmd_close_receipt [22:36:45]MH_GetDate [22:36:45]Write to MH i2c: F0 00 00 F4 27 0A [22:36:45]Write i2c OK [22:36:45]MH_I2C_Read... [22:36:45]Read from MH i2c: F0 [22:36:45]MH_I2C_Read... [22:36:45]Read from MH i2c: F0 09 00 [22:36:45]MH_I2C_Read... [22:36:45]Read from MH i2c: F0 09 00 F4 27 00 7F 76 A5 66 90 0F 3E 66 56 [22:36:45]GetLastDocTimeStamp 1722119420 [22:36:45]current date 1722119807 [22:36:45]FM_GetShiftState [22:36:45]SAM_PROTO_GetShiftState [22:36:45]wFMCommunicate request_size=4 [22:36:45]MH_SAM_APDU [22:36:45]CAPDU: 80 13 01 00 [22:36:45]Write to MH i2c: E2 08 00 F5 27 80 13 01 00 00 00 00 00 99 [22:36:45]Write i2c OK [22:36:45]MH_I2C_Read... [22:36:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:45]Read from MH i2c: E2 [22:36:45]MH_I2C_Read... [22:36:45]Read from MH i2c: E2 0E 00 [22:36:45]MH_I2C_Read... [22:36:45]Read from MH i2c: E2 0E 00 F5 27 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 26 [22:36:45]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [22:36:45]wFMCommunicate OK [22:36:45]SAM_PROTO_GetShiftState done [22:36:45]FM_GetShiftState done [22:36:45]opened in 1722038845 [22:36:45]opened+sec_in_day 1722125245 [22:36:45]quantity*price = 60003 [22:36:45]sum+1 = 60004 [22:36:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 265 27.07.2024 22:36 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118322 ФПД: 169898580924359 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T223647&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118322&fm=169898580924359&tin=02508201610067®Number=0000000000092660&sum=60000 [22:36:46]StoreToDocumentArchive [22:36:46]shift 432 fd 118322 [22:36:46]save to /storage/0432/doc_00118322 [22:36:46]save last doc name /storage/0432/doc_00118322 to /storage/kkm_last_doc_name [22:36:46]save OK [22:36:46]Clear old archive folders... [22:36:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:36:46]tlvbuf is B6F78730 [22:36:46]SAM_PROTO_ClearQueue [22:36:46]wFMCommunicate request_size=4 [22:36:46]MH_SAM_APDU [22:36:46]CAPDU: 80 09 00 00 [22:36:46]Write to MH i2c: E2 08 00 02 28 80 09 00 00 00 00 00 00 9C [22:36:46]Write i2c OK [22:36:46]MH_I2C_Read... [22:36:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:36:46]Read from MH i2c: E2 [22:36:46]MH_I2C_Read... [22:36:46]Read from MH i2c: E2 03 00 [22:36:46]MH_I2C_Read... [22:36:46]Read from MH i2c: E2 03 00 02 28 00 90 00 9E [22:36:46]RAPDU: 90 00 [22:36:46]wFMCommunicate OK [22:36:46]SAM_PROTO_ClearQueue done [22:36:46]KKMCreateOFDPacket [22:36:46]OFDProtocolAddRootSTLVToBuf [22:36:46]FM_MakeSignedData [22:36:46]FM_MakeSignedData [22:36:46]SAM_PROTO_SignData [22:36:46]wFMCommunicate request_size=4 [22:36:46]MH_SAM_APDU [22:36:46]CAPDU: 80 0D 01 02 [22:36:46]Write to MH i2c: E2 08 00 03 28 80 0D 01 02 00 00 00 00 A4 [22:36:46]Write i2c OK [22:36:46]MH_I2C_Read... [22:36:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:36:46]OFD Sender: No OFD packet to send [22:36:46]Read from MH i2c: E2 [22:36:46]MH_I2C_Read... [22:36:46]Read from MH i2c: E2 03 00 [22:36:46]MH_I2C_Read... [22:36:46]Read from MH i2c: E2 03 00 03 28 00 90 00 9F [22:36:46]RAPDU: 90 00 [22:36:46]wFMCommunicate OK [22:36:46]wFMCommunicate request_size=255 [22:36:46]MH_SAM_APDU [22:36: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 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 09 01 00 00 F4 03 04 00 7F 76 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 32 CE 01 00 35 04 06 00 9A [22:36:46]Write to MH i2c: E2 02 01 04 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 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 09 01 00 00 F4 03 04 00 7F 76 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 32 CE 01 00 35 04 06 00 9A 00 00 45 [22:36:46]Write i2c OK [22:36:46]MH_I2C_Read... [22:36:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:36:47]Read from MH i2c: E2 [22:36:47]MH_I2C_Read... [22:36:47]Read from MH i2c: E2 03 00 [22:36:47]MH_I2C_Read... [22:36:47]Read from MH i2c: E2 03 00 04 28 00 90 00 A0 [22:36:47]RAPDU: 90 00 [22:36:47]wFMCommunicate OK [22:36:47]wFMCommunicate request_size=10 [22:36:47]MH_SAM_APDU [22:36:47]CAPDU: 80 0D 02 02 05 85 98 90 57 C7 [22:36:47]Write to MH i2c: E2 0D 00 05 28 80 0D 02 02 05 00 85 98 90 57 C7 00 00 7C [22:36:47]Write i2c OK [22:36:47]MH_I2C_Read... [22:36:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:36:47]Read from MH i2c: E2 [22:36:47]MH_I2C_Read... [22:36:47]Read from MH i2c: E2 03 00 [22:36:47]MH_I2C_Read... [22:36:47]Read from MH i2c: E2 03 00 05 28 00 90 00 A1 [22:36:47]RAPDU: 90 00 [22:36:47]wFMCommunicate OK [22:36:47]wFMCommunicate request_size=4 [22:36:47]MH_SAM_APDU [22:36:47]CAPDU: 80 0D 03 02 [22:36:47]Write to MH i2c: E2 08 00 06 28 80 0D 03 02 00 00 00 00 A9 [22:36:47]Write i2c OK [22:36:47]MH_I2C_Read... [22:36:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:36:47]Read from MH i2c: E2 [22:36:47]MH_I2C_Read... [22:36:47]Read from MH i2c: E2 0B 00 [22:36:47]MH_I2C_Read... [22:36:47]Read from MH i2c: E2 0B 00 06 28 00 12 9F 54 11 EC 8F 48 55 90 00 D8 [22:36:47]RAPDU: 12 9F 54 11 EC 8F 48 55 90 00 [22:36:47]wFMCommunicate OK [22:36:47]SAM_PROTO_SignData done [22:36:47]FM_MakeSignedData done [22:36:47]CreateOFDProtocolMessage [22:36:47]wFMCommunicate request_size=4 [22:36:47]MH_SAM_APDU [22:36:47]CAPDU: 80 11 00 00 [22:36:47]Write to MH i2c: E2 08 00 07 28 80 11 00 00 00 00 00 00 A9 [22:36:47]Write i2c OK [22:36:47]MH_I2C_Read... [22:36:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:36:47]Read from MH i2c: E2 [22:36:47]MH_I2C_Read... [22:36:47]Read from MH i2c: E2 17 00 [22:36:47]MH_I2C_Read... [22:36:47]Read from MH i2c: E2 17 00 07 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 04 [22:36:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:36:47]wFMCommunicate OK [22:36:47]CreateOFDProtocolMessage done [22:36:47]OFDSenderStorePacket 118322 [22:36:47]StoreOFDPacket docnum=118322 [22:36:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 CF 6B 07 01 C3 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 09 01 00 00 F4 03 04 00 7F 76 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 32 CE 01 00 35 04 06 00 9A 85 98 90 57 C7 12 9F 54 11 EC 8F 48 55 [22:36:47]CheckFolder [22:36:47]dirname=/storage/ofd_packets [22:36:47]CheckFolder done [22:36:47]ProducePacketName [22:36:47]name=ofd_packets/00118322 [22:36:47]NVStorageSaveData ofd_packets/00118322 [22:36:47]File name is /storage/ofd_packets/00118322 [22:36:47]Write 301 bytes [22:36:47]NVStorageSaveData done [22:36:47]OFDSenderStorePacket done [22:36:47]KKMCreateOFDPacket done [22:36:47]NVStorageSaveData kkm_last_timestamp [22:36:47]File name is /storage/kkm_last_timestamp [22:36:47]Write 4 bytes [22:36:47]NVStorageSaveData done [22:36:47]ExternCall_PrintAddStr [22:36:47]wPrintStart [22:36:47]Write to MH i2c: 01 00 00 08 28 30 [22:36:47]Write i2c OK [22:36:47]MH_I2C_Read... [22:36:47]Read from MH i2c: 01 [22:36:47]MH_I2C_Read... [22:36:47]Read from MH i2c: 01 07 00 [22:36:47]MH_I2C_Read... [22:36:47]Read from MH i2c: 01 07 00 08 28 00 00 00 00 00 FF 0F 45 [22:36:47]RasterBufferAndPrint [22:36:47]line Счет N : (1)949197 [22:36:47]line ИНН: 02508201610067 [22:36:47]line Контрольно-Кассовый Чек [22:36:47]line ПРОДАЖА [22:36:47]line ТРК (МРК, ГНК) : 41 [22:36:47]line Товар: 2710124130 [22:36:47]line Аи-92-К-4 [22:36:47]line 8.850 * 67.80 [22:36:47]line = 600.03 [22:36:47]line НДС 12% НСП 1% [22:36:47]line > о реализуемом товаре [22:36:47]line ОКРУГЛЕНИЕ: -0.03 [22:36:47]line ИТОГО: 600.00 [22:36:47]line Внесено: 600.00 [22:36:47]line СДАЧА: 0.00 [22:36:47]line НСП 1% : 5.31 [22:36:47]line НДС 12% : 63.72 [22:36:47]line Наличными: 600.00 [22:36:47]line Безнал.: 0.00 [22:36:47]line Место: АЗС № 134 "Партнер Нефть" [22:36:47]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:36:47]line СНО: Общий режим [22:36:47]line Чек 265 27.07.2024 22:36 [22:36:47]line Смена: 432 ФФД: 1.0 [22:36:47]line ЗНМ: 0300000044 [22:36:47]line РНМ: 0000000000092660 [22:36:47]line Версия ККМ: 001 [22:36:47]line ФМ: 0000000000874939 [22:36:47]line ФД: 118322 [22:36:47]line ФПД: 169898580924359 [22:36:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T223647&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118322&fm=169898580924359&tin=02508201610067®Number=0000000000092660&sum=60000 [22:36:47]written 0, free lines is 4095 [22:36:47]OFD Sender: Processing packet 118322 [packets to send 86, broken 85] [22:36:47]ProducePacketName [22:36:47]name=ofd_packets/00118322 [22:36:47]OFD Sender: To server: pG, [22:36:47]CommunicateWithHost lk.salyk.kg:30040 [22:36:47]ConnectInit lk.salyk.kg [22:36:47]Connected sock=10 [22:36:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 CF 6B 07 01 C3 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 09 01 00 00 F4 03 04 00 7F 76 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 32 CE 01 00 35 04 06 00 9A 85 98 90 57 C7 12 9F 54 11 EC 8F 48 55 [22:36:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 AA 46 47 00 B4 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 34 39 33 39 10 04 04 00 32 CE 01 00 F4 03 04 00 10 24 A5 66 B6 04 01 00 00 8A F1 1A 3A A7 D1 64 68 [22:36:47]CommunicateWithHost err = 0 [22:36:47]CheckOFDResponse [22:36:47]1017 (14) - 77093643461234 [22:36:47]1041 (16) - 0000000000874939 [22:36:47]1040 (4) - 118322 [22:36:47]1012 (4) - 27.07.2024 16:45 [22:36:47]1206 (1) - 0 [22:36:47]OFD Sender: Remove packet 118322 [22:36:47]ProducePacketName [22:36:47]name=ofd_packets/00118322 [22:36:47]NVStorageDeleteData [22:36:47]Write to MH i2c: 01 00 00 32 28 5A [22:36:47]Write i2c OK [22:36:47]MH_I2C_Read... [22:36:47]Read from MH i2c: 01 [22:36:47]MH_I2C_Read... [22:36:47]Read from MH i2c: 01 07 00 [22:36:47]MH_I2C_Read... [22:36:47]Read from MH i2c: 01 07 00 32 28 00 00 00 00 00 EE 0C 5B [22:36:47]RasterBufferAndPrint [22:36:47]line [22:36:47]line [22:36:47]line [22:36:47]line [22:36:47]line [22:36:47]written 0, free lines is 3317 [22:36:47]MH_Cut [22:36:47]Write to MH i2c: D1 01 00 39 28 01 33 [22:36:47]Write i2c OK [22:36:47]MH_I2C_Read... [22:36:47]Read from MH i2c: D1 [22:36:47]MH_I2C_Read... [22:36:47]Read from MH i2c: D1 01 00 [22:36:47]MH_I2C_Read... [22:36:47]Read from MH i2c: D1 01 00 39 28 00 32 [22:36:47]Write to MH i2c: 01 00 00 3A 28 62 [22:36:47]Write i2c OK [22:36:47]MH_I2C_Read... [22:36:48]OFD Sender: No OFD packet to send [22:36:48]*** Cut start [22:36:48]*** Partial cut [22:36:48]*** CUTSNS_PIN = 1 [22:36:48]*** CUTSNS_PIN = 0 [22:36:48]*** Brake cut motor [22:36:49]Read from MH i2c: 01 [22:36:49]MH_I2C_Read... [22:36:49]*** Stop cut motor [22:36:49]*** Cut end [22:36:49]Read from MH i2c: 01 07 00 [22:36:49]MH_I2C_Read... [22:36:49]Read from MH i2c: 01 07 00 3A 28 00 00 00 00 00 FF 0F 77 [22:36:49]process_action close_receipt done [22:36:49]requested_data is exist [22:36:49]produce_requested_data [22:36:49]requested_item fm.sn is exist - process it [22:36:49]wFMCommunicate request_size=4 [22:36:49]MH_SAM_APDU [22:36:49]CAPDU: 80 11 00 00 [22:36:49]Write to MH i2c: E2 08 00 3B 28 80 11 00 00 00 00 00 00 DD [22:36:49]Write i2c OK [22:36:49]MH_I2C_Read... [22:36:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:36:49]Read from MH i2c: E2 [22:36:49]MH_I2C_Read... [22:36:49]Read from MH i2c: E2 17 00 [22:36:49]MH_I2C_Read... [22:36:49]Read from MH i2c: E2 17 00 3B 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 38 [22:36:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:36:49]wFMCommunicate OK [22:36:49]requested_item fd.num is exist - process it [22:36:49]SAM_PROTO_GetFieldsCounters [22:36:49]wFMCommunicate request_size=4 [22:36:49]MH_SAM_APDU [22:36:49]CAPDU: 80 13 00 00 [22:36:49]Write to MH i2c: E2 08 00 3C 28 80 13 00 00 00 00 00 00 E0 [22:36:49]Write i2c OK [22:36:49]MH_I2C_Read... [22:36:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:36:49]Read from MH i2c: E2 [22:36:49]MH_I2C_Read... [22:36:49]Read from MH i2c: E2 62 00 [22:36:49]MH_I2C_Read... [22:36:49]Read from MH i2c: E2 62 00 3C 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 32 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 D7 [22:36:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 32 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:36:49]wFMCommunicate OK [22:36:49]SAM_PROTO_GetFieldsCounters done [22:36:49]requested_item shift.num is exist - process it [22:36:49]requested_item shift.opened is exist - process it [22:36:49]req_shift_opened [22:36:49]FM_GetShiftState [22:36:49]SAM_PROTO_GetShiftState [22:36:49]wFMCommunicate request_size=4 [22:36:49]MH_SAM_APDU [22:36:49]CAPDU: 80 13 01 00 [22:36:49]Write to MH i2c: E2 08 00 3D 28 80 13 01 00 00 00 00 00 E2 [22:36:49]Write i2c OK [22:36:49]MH_I2C_Read... [22:36:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:49]Read from MH i2c: E2 [22:36:49]MH_I2C_Read... [22:36:49]Read from MH i2c: E2 0E 00 [22:36:49]MH_I2C_Read... [22:36:49]Read from MH i2c: E2 0E 00 3D 28 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 6F [22:36:49]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [22:36:49]wFMCommunicate OK [22:36:49]SAM_PROTO_GetShiftState done [22:36:49]FM_GetShiftState done [22:36:49]req_shift_opened done [22:36:49]requested_item shift.open_date is exist - process it [22:36:49]req_shift_open_date [22:36:49]req_shift_open_date done [22:36:49]produce_requested_data done [22:36:49]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118322,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [22:36:49]process_action_free close_receipt [22:36:49]json_value_free [22:36:49]json_value_free done [22:36:49]process_json_proto returns [22:36:49]Send response to host [22:36:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118322,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [22:36:49]free response buf [22:36:49]execute_script done [22:36:49]execute_script returns [22:36:49]free content buf [22:36:49]Sock 7.Close socket [22:36:49]Sock 7.Thread stoped [22:36:53]OFD Sender: No OFD packet to send [22:36:58]OFD Sender: No OFD packet to send [22:37:03]OFD Sender: No OFD packet to send [22:37:08]OFD Sender: No OFD packet to send [22:37:09]accept exits with 9 [22:37:09]New connection [22:37:09]New thread 3066953060 created [22:37:09]Thread 3067096420 joined [22:37:09]Waiting for new connection... [22:37:09] Sock 9.Parse request [22:37:09]Sock 9.Check first char [22:37:09]Sock 9.First char is OK [22:37:09]request: POST /json_proto HTTP/1.0 [22:37:09]Method: POST [22:37:09]URL: /json_proto [22:37:09]Method is POST - this is cgi request [22:37:09]url: /json_proto [22:37:09]query_string will be loaded in cgi processing [22:37:09]execute_cgi json_proto POST (null) [22:37:09]execute_cgi path=json_proto method=POST [22:37:09]POST find Content-Length [22:37:09]Host: 172.17.45.7:8080 [22:37:09]Content-Length: 674 [22:37:09]Content-Type: application/json [22:37:09] [22:37:09]POST finish read [22:37:09]Found Content-Length = 674 [22:37:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:37:09]execute_script... [22:37: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)949198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:37:09]POST & json_proto [22:37:09]process_json_proto [22:37:09]json parsed OK: [22:37:09]protocol is kg_v1.0 [22:37:09]action value=close_receipt [22:37:09]process_action close_receipt [22:37:09]cmd_close_receipt [22:37:09]MH_GetDate [22:37:09]Write to MH i2c: F0 00 00 3E 28 55 [22:37:09]Write i2c OK [22:37:09]MH_I2C_Read... [22:37:09]Read from MH i2c: F0 [22:37:09]MH_I2C_Read... [22:37:09]Read from MH i2c: F0 09 00 [22:37:09]MH_I2C_Read... [22:37:09]Read from MH i2c: F0 09 00 3E 28 00 97 76 A5 66 90 0F 3E 66 B9 [22:37:09]GetLastDocTimeStamp 1722119807 [22:37:09]current date 1722119831 [22:37:09]FM_GetShiftState [22:37:09]SAM_PROTO_GetShiftState [22:37:09]wFMCommunicate request_size=4 [22:37:09]MH_SAM_APDU [22:37:09]CAPDU: 80 13 01 00 [22:37:09]Write to MH i2c: E2 08 00 3F 28 80 13 01 00 00 00 00 00 E4 [22:37:09]Write i2c OK [22:37:09]MH_I2C_Read... [22:37:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:37:10]Read from MH i2c: E2 [22:37:10]MH_I2C_Read... [22:37:10]Read from MH i2c: E2 0E 00 [22:37:10]MH_I2C_Read... [22:37:10]Read from MH i2c: E2 0E 00 3F 28 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 71 [22:37:10]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [22:37:10]wFMCommunicate OK [22:37:10]SAM_PROTO_GetShiftState done [22:37:10]FM_GetShiftState done [22:37:10]opened in 1722038845 [22:37:10]opened+sec_in_day 1722125245 [22:37:10]quantity*price = 30022 [22:37:10]sum+1 = 30024 [22:37:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 266 27.07.2024 22:37 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118323 ФПД: 161679304745270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T223711&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118323&fm=161679304745270&tin=02508201610067®Number=0000000000092660&sum=30000 [22:37:11]StoreToDocumentArchive [22:37:11]shift 432 fd 118323 [22:37:11]save to /storage/0432/doc_00118323 [22:37:11]save last doc name /storage/0432/doc_00118323 to /storage/kkm_last_doc_name [22:37:11]save OK [22:37:11]Clear old archive folders... [22:37:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:37:11]tlvbuf is 01DECEE0 [22:37:11]SAM_PROTO_ClearQueue [22:37:11]wFMCommunicate request_size=4 [22:37:11]MH_SAM_APDU [22:37:11]CAPDU: 80 09 00 00 [22:37:11]Write to MH i2c: E2 08 00 4C 28 80 09 00 00 00 00 00 00 E6 [22:37:11]Write i2c OK [22:37:11]MH_I2C_Read... [22:37:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:37:11]Read from MH i2c: E2 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: E2 03 00 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: E2 03 00 4C 28 00 90 00 E8 [22:37:11]RAPDU: 90 00 [22:37:11]wFMCommunicate OK [22:37:11]SAM_PROTO_ClearQueue done [22:37:11]KKMCreateOFDPacket [22:37:11]OFDProtocolAddRootSTLVToBuf [22:37:11]FM_MakeSignedData [22:37:11]FM_MakeSignedData [22:37:11]SAM_PROTO_SignData [22:37:11]wFMCommunicate request_size=4 [22:37:11]MH_SAM_APDU [22:37:11]CAPDU: 80 0D 01 02 [22:37:11]Write to MH i2c: E2 08 00 4D 28 80 0D 01 02 00 00 00 00 EE [22:37:11]Write i2c OK [22:37:11]MH_I2C_Read... [22:37:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:37:11]Read from MH i2c: E2 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: E2 03 00 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: E2 03 00 4D 28 00 90 00 E9 [22:37:11]RAPDU: 90 00 [22:37:11]wFMCommunicate OK [22:37:11]wFMCommunicate request_size=255 [22:37:11]MH_SAM_APDU [22:37: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 0A 01 00 00 F4 03 04 00 97 76 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 33 CE 01 00 35 04 06 00 93 0B E5 86 [22:37:11]Write to MH i2c: E2 02 01 4E 28 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 0A 01 00 00 F4 03 04 00 97 76 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 33 CE 01 00 35 04 06 00 93 0B E5 86 00 00 1A [22:37:11]Write i2c OK [22:37:11]MH_I2C_Read... [22:37:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:11]Read from MH i2c: E2 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: E2 03 00 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: E2 03 00 4E 28 00 90 00 EA [22:37:11]RAPDU: 90 00 [22:37:11]wFMCommunicate OK [22:37:11]wFMCommunicate request_size=7 [22:37:11]MH_SAM_APDU [22:37:11]CAPDU: 80 0D 02 02 02 E1 36 [22:37:11]Write to MH i2c: E2 0A 00 4F 28 80 0D 02 02 02 00 E1 36 00 00 0C [22:37:11]Write i2c OK [22:37:11]MH_I2C_Read... [22:37:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:11]Read from MH i2c: E2 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: E2 03 00 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: E2 03 00 4F 28 00 90 00 EB [22:37:11]RAPDU: 90 00 [22:37:11]wFMCommunicate OK [22:37:11]wFMCommunicate request_size=4 [22:37:11]MH_SAM_APDU [22:37:11]CAPDU: 80 0D 03 02 [22:37:11]Write to MH i2c: E2 08 00 50 28 80 0D 03 02 00 00 00 00 F3 [22:37:11]Write i2c OK [22:37:11]MH_I2C_Read... [22:37:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:37:11]Read from MH i2c: E2 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: E2 0B 00 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: E2 0B 00 50 28 00 25 E2 C3 45 BC 1B 45 1A 90 00 39 [22:37:11]RAPDU: 25 E2 C3 45 BC 1B 45 1A 90 00 [22:37:11]wFMCommunicate OK [22:37:11]SAM_PROTO_SignData done [22:37:11]FM_MakeSignedData done [22:37:11]CreateOFDProtocolMessage [22:37:11]wFMCommunicate request_size=4 [22:37:11]MH_SAM_APDU [22:37:11]CAPDU: 80 11 00 00 [22:37:11]Write to MH i2c: E2 08 00 51 28 80 11 00 00 00 00 00 00 F3 [22:37:11]Write i2c OK [22:37:11]MH_I2C_Read... [22:37:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:11]Read from MH i2c: E2 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: E2 17 00 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: E2 17 00 51 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4E [22:37:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:37:11]wFMCommunicate OK [22:37:11]CreateOFDProtocolMessage done [22:37:11]OFDSenderStorePacket 118323 [22:37:11]StoreOFDPacket docnum=118323 [22:37:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 D2 EA 04 01 B6 58 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 0A 01 00 00 F4 03 04 00 97 76 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 33 CE 01 00 35 04 06 00 93 0B E5 86 E1 36 25 E2 C3 45 BC 1B 45 1A [22:37:11]CheckFolder [22:37:11]dirname=/storage/ofd_packets [22:37:11]CheckFolder done [22:37:11]ProducePacketName [22:37:11]name=ofd_packets/00118323 [22:37:11]NVStorageSaveData ofd_packets/00118323 [22:37:11]File name is /storage/ofd_packets/00118323 [22:37:11]Write 298 bytes [22:37:11]NVStorageSaveData done [22:37:11]OFDSenderStorePacket done [22:37:11]KKMCreateOFDPacket done [22:37:11]NVStorageSaveData kkm_last_timestamp [22:37:11]File name is /storage/kkm_last_timestamp [22:37:11]Write 4 bytes [22:37:11]NVStorageSaveData done [22:37:11]ExternCall_PrintAddStr [22:37:11]wPrintStart [22:37:11]Write to MH i2c: 01 00 00 52 28 7A [22:37:11]Write i2c OK [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: 01 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: 01 07 00 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: 01 07 00 52 28 00 00 00 00 00 FF 0F 8F [22:37:11]RasterBufferAndPrint [22:37:11]line Счет N : (1)949198 [22:37:11]line ИНН: 02508201610067 [22:37:11]line Контрольно-Кассовый Чек [22:37:11]line ПРОДАЖА [22:37:11]line ТРК (МРК, ГНК) : 21 [22:37:11]line Товар: 2710194800 [22:37:11]line ДТ-К-5 [22:37:11]line 3.940 * 76.20 [22:37:11]line = 300.23 [22:37:11]line НДС 12% НСП 1% [22:37:11]line > о реализуемом товаре [22:37:11]line ОКРУГЛЕНИЕ: -0.23 [22:37:11]line ИТОГО: 300.00 [22:37:11]line Внесено: 300.00 [22:37:11]line СДАЧА: 0.00 [22:37:11]line НСП 1% : 2.66 [22:37:11]line НДС 12% : 31.88 [22:37:11]line Наличными: 300.00 [22:37:11]line Безнал.: 0.00 [22:37:11]line Место: АЗС № 134 "Партнер Нефть" [22:37:11]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:37:11]line СНО: Общий режим [22:37:11]line Чек 266 27.07.2024 22:37 [22:37:11]line Смена: 432 ФФД: 1.0 [22:37:11]line ЗНМ: 0300000044 [22:37:11]line РНМ: 0000000000092660 [22:37:11]line Версия ККМ: 001 [22:37:11]line ФМ: 0000000000874939 [22:37:11]line ФД: 118323 [22:37:11]line ФПД: 161679304745270 [22:37:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T223711&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118323&fm=161679304745270&tin=02508201610067®Number=0000000000092660&sum=30000 [22:37:11]OFD Sender: Processing packet 118323 [packets to send 86, broken 85] [22:37:11]ProducePacketName [22:37:11]name=ofd_packets/00118323 [22:37:11]OFD Sender: To server: pG, [22:37:11]CommunicateWithHost lk.salyk.kg:30040 [22:37:11]ConnectInit lk.salyk.kg [22:37:11]written 0, free lines is 4095 [22:37:12]Connected sock=10 [22: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 34 39 33 39 0C 01 00 00 D2 EA 04 01 B6 58 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 0A 01 00 00 F4 03 04 00 97 76 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 33 CE 01 00 35 04 06 00 93 0B E5 86 E1 36 25 E2 C3 45 BC 1B 45 1A [22:37:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 7F 5A 47 00 EB 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 34 39 33 39 10 04 04 00 33 CE 01 00 F4 03 04 00 29 24 A5 66 B6 04 01 00 00 65 B8 3B 86 9C FF 7A 78 [22:37:12]CommunicateWithHost err = 0 [22:37:12]CheckOFDResponse [22:37:12]1017 (14) - 77093643461234 [22:37:12]1041 (16) - 0000000000874939 [22:37:12]1040 (4) - 118323 [22:37:12]1012 (4) - 27.07.2024 16:45 [22:37:12]1206 (1) - 0 [22:37:12]OFD Sender: Remove packet 118323 [22:37:12]ProducePacketName [22:37:12]name=ofd_packets/00118323 [22:37:12]NVStorageDeleteData [22:37:12]Write to MH i2c: 01 00 00 7C 28 A4 [22:37:12]Write i2c OK [22:37:12]MH_I2C_Read... [22:37:12]Read from MH i2c: 01 [22:37:12]MH_I2C_Read... [22:37:12]Read from MH i2c: 01 07 00 [22:37:12]MH_I2C_Read... [22:37:12]Read from MH i2c: 01 07 00 7C 28 00 00 00 00 00 E2 0C 99 [22:37:12]RasterBufferAndPrint [22:37:12]line [22:37:12]line [22:37:12]line [22:37:12]line [22:37:12]line [22:37:12]written 0, free lines is 3303 [22:37:12]MH_Cut [22:37:12]Write to MH i2c: D1 01 00 83 28 01 7D [22:37:12]Write i2c OK [22:37:12]MH_I2C_Read... [22:37:12]Read from MH i2c: D1 [22:37:12]MH_I2C_Read... [22:37:12]Read from MH i2c: D1 01 00 [22:37:12]MH_I2C_Read... [22:37:12]Read from MH i2c: D1 01 00 83 28 00 7C [22:37:12]Write to MH i2c: 01 00 00 84 28 AC [22:37:12]Write i2c OK [22:37:12]MH_I2C_Read... [22:37:12]OFD Sender: No OFD packet to send [22:37:13]*** Cut start [22:37:13]*** Partial cut [22:37:13]*** CUTSNS_PIN = 1 [22:37:13]*** CUTSNS_PIN = 0 [22:37:13]*** Brake cut motor [22:37:13]Read from MH i2c: 01 [22:37:13]MH_I2C_Read... [22:37:13]*** Stop cut motor [22:37:13]*** Cut end [22:37:13]Read from MH i2c: 01 07 00 [22:37:13]MH_I2C_Read... [22:37:13]Read from MH i2c: 01 07 00 84 28 00 00 00 00 00 FF 0F C1 [22:37:13]process_action close_receipt done [22:37:13]requested_data is exist [22:37:13]produce_requested_data [22:37:13]requested_item fm.sn is exist - process it [22:37:13]wFMCommunicate request_size=4 [22:37:13]MH_SAM_APDU [22:37:13]CAPDU: 80 11 00 00 [22:37:13]Write to MH i2c: E2 08 00 85 28 80 11 00 00 00 00 00 00 27 [22:37:13]Write i2c OK [22:37:13]MH_I2C_Read... [22:37:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:13]Read from MH i2c: E2 [22:37:13]MH_I2C_Read... [22:37:13]Read from MH i2c: E2 17 00 [22:37:13]MH_I2C_Read... [22:37:13]Read from MH i2c: E2 17 00 85 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 82 [22:37:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:37:13]wFMCommunicate OK [22:37:13]requested_item fd.num is exist - process it [22:37:13]SAM_PROTO_GetFieldsCounters [22:37:13]wFMCommunicate request_size=4 [22:37:13]MH_SAM_APDU [22:37:13]CAPDU: 80 13 00 00 [22:37:13]Write to MH i2c: E2 08 00 86 28 80 13 00 00 00 00 00 00 2A [22:37:13]Write i2c OK [22:37:13]MH_I2C_Read... [22:37:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:37:13]Read from MH i2c: E2 [22:37:13]MH_I2C_Read... [22:37:13]Read from MH i2c: E2 62 00 [22:37:13]MH_I2C_Read... [22:37:13]Read from MH i2c: E2 62 00 86 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 33 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 25 [22:37:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 33 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:37:13]wFMCommunicate OK [22:37:13]SAM_PROTO_GetFieldsCounters done [22:37:13]requested_item shift.num is exist - process it [22:37:13]requested_item shift.opened is exist - process it [22:37:13]req_shift_opened [22:37:13]FM_GetShiftState [22:37:13]SAM_PROTO_GetShiftState [22:37:13]wFMCommunicate request_size=4 [22:37:13]MH_SAM_APDU [22:37:13]CAPDU: 80 13 01 00 [22:37:13]Write to MH i2c: E2 08 00 87 28 80 13 01 00 00 00 00 00 2C [22:37:13]Write i2c OK [22:37:13]MH_I2C_Read... [22:37:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:37:14]Read from MH i2c: E2 [22:37:14]MH_I2C_Read... [22:37:14]Read from MH i2c: E2 0E 00 [22:37:14]MH_I2C_Read... [22:37:14]Read from MH i2c: E2 0E 00 87 28 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 B9 [22:37:14]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [22:37:14]wFMCommunicate OK [22:37:14]SAM_PROTO_GetShiftState done [22:37:14]FM_GetShiftState done [22:37:14]req_shift_opened done [22:37:14]requested_item shift.open_date is exist - process it [22:37:14]req_shift_open_date [22:37:14]req_shift_open_date done [22:37:14]produce_requested_data done [22:37:14]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118323,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [22:37:14]process_action_free close_receipt [22:37:14]json_value_free [22:37:14]json_value_free done [22:37:14]process_json_proto returns [22:37:14]Send response to host [22:37:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118323,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [22:37:14]free response buf [22:37:14]execute_script done [22:37:14]execute_script returns [22:37:14]free content buf [22:37:14]Sock 9.Close socket [22:37:14]Sock 9.Thread stoped [22:37:17]OFD Sender: No OFD packet to send [22:37:22]OFD Sender: No OFD packet to send [22:37:27]OFD Sender: No OFD packet to send [22:37:32]OFD Sender: No OFD packet to send [22:37:37]OFD Sender: No OFD packet to send [22:37:42]OFD Sender: No OFD packet to send [22:37:47]OFD Sender: No OFD packet to send [22:37:52]OFD Sender: No OFD packet to send [22:37:57]OFD Sender: No OFD packet to send [22:38:02]OFD Sender: No OFD packet to send [22:38:07]OFD Sender: No OFD packet to send [22:38:12]OFD Sender: No OFD packet to send [22:38:13]accept exits with 7 [22:38:13]New connection [22:38:13]New thread 3067096420 created [22:38:13]Thread 3066953060 joined [22:38:13]Waiting for new connection... [22:38:13] Sock 7.Parse request [22:38:13]Sock 7.Check first char [22:38:13]Sock 7.First char is OK [22:38:13]request: POST /json_proto HTTP/1.0 [22:38:13]Method: POST [22:38:13]URL: /json_proto [22:38:13]Method is POST - this is cgi request [22:38:13]url: /json_proto [22:38:13]query_string will be loaded in cgi processing [22:38:13]execute_cgi json_proto POST (null) [22:38:13]execute_cgi path=json_proto method=POST [22:38:13]POST find Content-Length [22:38:13]Host: 172.17.45.7:8080 [22:38:13]Content-Length: 679 [22:38:13]Content-Type: application/json [22:38:13] [22:38:13]POST finish read [22:38:13]Found Content-Length = 679 [22:38:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:38:13]execute_script... [22:38:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:38:13]POST & json_proto [22:38:13]process_json_proto [22:38:13]json parsed OK: [22:38:13]protocol is kg_v1.0 [22:38:13]action value=close_receipt [22:38:13]process_action close_receipt [22:38:13]cmd_close_receipt [22:38:13]MH_GetDate [22:38:13]Write to MH i2c: F0 00 00 88 28 9F [22:38:13]Write i2c OK [22:38:13]MH_I2C_Read... [22:38:13]Read from MH i2c: F0 [22:38:13]MH_I2C_Read... [22:38:13]Read from MH i2c: F0 09 00 [22:38:13]MH_I2C_Read... [22:38:13]Read from MH i2c: F0 09 00 88 28 00 D7 76 A5 66 90 0F 3E 66 43 [22:38:13]GetLastDocTimeStamp 1722119831 [22:38:13]current date 1722119895 [22:38:13]FM_GetShiftState [22:38:13]SAM_PROTO_GetShiftState [22:38:13]wFMCommunicate request_size=4 [22:38:13]MH_SAM_APDU [22:38:13]CAPDU: 80 13 01 00 [22:38:13]Write to MH i2c: E2 08 00 89 28 80 13 01 00 00 00 00 00 2E [22:38:13]Write i2c OK [22:38:13]MH_I2C_Read... [22:38:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:13]Read from MH i2c: E2 [22:38:13]MH_I2C_Read... [22:38:13]Read from MH i2c: E2 0E 00 [22:38:13]MH_I2C_Read... [22:38:13]Read from MH i2c: E2 0E 00 89 28 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 BB [22:38:13]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [22:38:13]wFMCommunicate OK [22:38:13]SAM_PROTO_GetShiftState done [22:38:13]FM_GetShiftState done [22:38:13]opened in 1722038845 [22:38:13]opened+sec_in_day 1722125245 [22:38:13]quantity*price = 100050 [22:38:13]sum+1 = 100052 [22:38:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 267 27.07.2024 22:38 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118324 ФПД: 33929003454481 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T223815&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118324&fm=33929003454481&tin=02508201610067®Number=0000000000092660&sum=100000 [22:38:14]StoreToDocumentArchive [22:38:14]shift 432 fd 118324 [22:38:14]save to /storage/0432/doc_00118324 [22:38:14]save last doc name /storage/0432/doc_00118324 to /storage/kkm_last_doc_name [22:38:14]save OK [22:38:14]Clear old archive folders... [22:38:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:38:14]tlvbuf is 01DEC5C0 [22:38:14]SAM_PROTO_ClearQueue [22:38:14]wFMCommunicate request_size=4 [22:38:14]MH_SAM_APDU [22:38:14]CAPDU: 80 09 00 00 [22:38:14]Write to MH i2c: E2 08 00 96 28 80 09 00 00 00 00 00 00 30 [22:38:14]Write i2c OK [22:38:14]MH_I2C_Read... [22:38:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:38:15]Read from MH i2c: E2 [22:38:15]MH_I2C_Read... [22:38:15]Read from MH i2c: E2 03 00 [22:38:15]MH_I2C_Read... [22:38:15]Read from MH i2c: E2 03 00 96 28 00 90 00 32 [22:38:15]RAPDU: 90 00 [22:38:15]wFMCommunicate OK [22:38:15]SAM_PROTO_ClearQueue done [22:38:15]KKMCreateOFDPacket [22:38:15]OFDProtocolAddRootSTLVToBuf [22:38:15]FM_MakeSignedData [22:38:15]FM_MakeSignedData [22:38:15]SAM_PROTO_SignData [22:38:15]wFMCommunicate request_size=4 [22:38:15]MH_SAM_APDU [22:38:15]CAPDU: 80 0D 01 02 [22:38:15]Write to MH i2c: E2 08 00 97 28 80 0D 01 02 00 00 00 00 38 [22:38:15]Write i2c OK [22:38:15]MH_I2C_Read... [22:38:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:38:15]Read from MH i2c: E2 [22:38:15]MH_I2C_Read... [22:38:15]Read from MH i2c: E2 03 00 [22:38:15]MH_I2C_Read... [22:38:15]Read from MH i2c: E2 03 00 97 28 00 90 00 33 [22:38:15]RAPDU: 90 00 [22:38:15]wFMCommunicate OK [22:38:15]wFMCommunicate request_size=255 [22:38:15]MH_SAM_APDU [22:38: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 D7 76 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 34 CE 01 00 35 04 06 00 1E DB B6 32 [22:38:15]Write to MH i2c: E2 02 01 98 28 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 D7 76 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 34 CE 01 00 35 04 06 00 1E DB B6 32 00 00 C1 [22:38:15]Write i2c OK [22:38:15]MH_I2C_Read... [22:38:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:15]Read from MH i2c: E2 [22:38:15]MH_I2C_Read... [22:38:15]Read from MH i2c: E2 03 00 [22:38:15]MH_I2C_Read... [22:38:15]Read from MH i2c: E2 03 00 98 28 00 90 00 34 [22:38:15]RAPDU: 90 00 [22:38:15]wFMCommunicate OK [22:38:15]wFMCommunicate request_size=7 [22:38:15]MH_SAM_APDU [22:38:15]CAPDU: 80 0D 02 02 02 D0 11 [22:38:15]Write to MH i2c: E2 0A 00 99 28 80 0D 02 02 02 00 D0 11 00 00 20 [22:38:15]Write i2c OK [22:38:15]MH_I2C_Read... [22:38:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:15]Read from MH i2c: E2 [22:38:15]MH_I2C_Read... [22:38:15]Read from MH i2c: E2 03 00 [22:38:15]MH_I2C_Read... [22:38:15]Read from MH i2c: E2 03 00 99 28 00 90 00 35 [22:38:15]RAPDU: 90 00 [22:38:15]wFMCommunicate OK [22:38:15]wFMCommunicate request_size=4 [22:38:15]MH_SAM_APDU [22:38:15]CAPDU: 80 0D 03 02 [22:38:15]Write to MH i2c: E2 08 00 9A 28 80 0D 03 02 00 00 00 00 3D [22:38:15]Write i2c OK [22:38:15]MH_I2C_Read... [22:38:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:38:15]Read from MH i2c: E2 [22:38:15]MH_I2C_Read... [22:38:15]Read from MH i2c: E2 0B 00 [22:38:15]MH_I2C_Read... [22:38:15]Read from MH i2c: E2 0B 00 9A 28 00 27 63 A1 07 18 94 A9 DA 90 00 9F [22:38:15]RAPDU: 27 63 A1 07 18 94 A9 DA 90 00 [22:38:15]wFMCommunicate OK [22:38:15]SAM_PROTO_SignData done [22:38:15]FM_MakeSignedData done [22:38:15]CreateOFDProtocolMessage [22:38:15]wFMCommunicate request_size=4 [22:38:15]MH_SAM_APDU [22:38:15]CAPDU: 80 11 00 00 [22:38:15]Write to MH i2c: E2 08 00 9B 28 80 11 00 00 00 00 00 00 3D [22:38:15]Write i2c OK [22:38:15]MH_I2C_Read... [22:38:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:15]Read from MH i2c: E2 [22:38:15]MH_I2C_Read... [22:38:15]Read from MH i2c: E2 17 00 [22:38:15]MH_I2C_Read... [22:38:15]Read from MH i2c: E2 17 00 9B 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 98 [22:38:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:38:15]wFMCommunicate OK [22:38:15]CreateOFDProtocolMessage done [22:38:15]OFDSenderStorePacket 118324 [22:38:15]StoreOFDPacket docnum=118324 [22:38:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 02 2E 04 01 6C 15 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 D7 76 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 34 CE 01 00 35 04 06 00 1E DB B6 32 D0 11 27 63 A1 07 18 94 A9 DA [22:38:15]CheckFolder [22:38:15]dirname=/storage/ofd_packets [22:38:15]CheckFolder done [22:38:15]ProducePacketName [22:38:15]name=ofd_packets/00118324 [22:38:15]NVStorageSaveData ofd_packets/00118324 [22:38:15]File name is /storage/ofd_packets/00118324 [22:38:15]Write 298 bytes [22:38:15]NVStorageSaveData done [22:38:15]OFDSenderStorePacket done [22:38:15]KKMCreateOFDPacket done [22:38:15]NVStorageSaveData kkm_last_timestamp [22:38:15]File name is /storage/kkm_last_timestamp [22:38:15]Write 4 bytes [22:38:15]NVStorageSaveData done [22:38:15]ExternCall_PrintAddStr [22:38:15]wPrintStart [22:38:15]Write to MH i2c: 01 00 00 9C 28 C4 [22:38:15]Write i2c OK [22:38:15]MH_I2C_Read... [22:38:15]Read from MH i2c: 01 [22:38:15]MH_I2C_Read... [22:38:15]Read from MH i2c: 01 07 00 [22:38:15]MH_I2C_Read... [22:38:15]Read from MH i2c: 01 07 00 9C 28 00 00 00 00 00 FF 0F D9 [22:38:15]RasterBufferAndPrint [22:38:15]line Счет N : (1)949199 [22:38:15]line ИНН: 02508201610067 [22:38:15]line Контрольно-Кассовый Чек [22:38:15]line ПРОДАЖА [22:38:15]line ТРК (МРК, ГНК) : 64 [22:38:15]line Товар: 2710194800 [22:38:15]line ДТ-К-5 [22:38:15]line 13.130 * 76.20 [22:38:15]line = 1000.51 [22:38:15]line НДС 12% НСП 1% [22:38:15]line > о реализуемом товаре [22:38:15]line ОКРУГЛЕНИЕ: -0.51 [22:38:15]line ИТОГО: 1000.00 [22:38:15]line Внесено: 1000.00 [22:38:15]line СДАЧА: 0.00 [22:38:15]line НСП 1% : 8.85 [22:38:15]line НДС 12% : 106.25 [22:38:15]line Наличными: 1000.00 [22:38:15]line Безнал.: 0.00 [22:38:15]line Место: АЗС № 134 "Партнер Нефть" [22:38:15]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:38:15]line СНО: Общий режим [22:38:15]line Чек 267 27.07.2024 22:38 [22:38:15]line Смена: 432 ФФД: 1.0 [22:38:15]line ЗНМ: 0300000044 [22:38:15]line РНМ: 0000000000092660 [22:38:15]line Версия ККМ: 001 [22:38:15]line ФМ: 0000000000874939 [22:38:15]line ФД: 118324 [22:38:15]line ФПД: 33929003454481 [22:38:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T223815&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118324&fm=33929003454481&tin=02508201610067®Number=0000000000092660&sum=100000 [22:38:15]OFD Sender: Processing packet 118324 [packets to send 86, broken 85] [22:38:15]ProducePacketName [22:38:15]name=ofd_packets/00118324 [22:38:15]OFD Sender: To server: pG, [22:38:15]CommunicateWithHost lk.salyk.kg:30040 [22:38:15]ConnectInit lk.salyk.kg [22:38:15]written 0, free lines is 4095 [22:38:15]Connected sock=10 [22:38:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 02 2E 04 01 6C 15 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 D7 76 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 34 CE 01 00 35 04 06 00 1E DB B6 32 D0 11 27 63 A1 07 18 94 A9 DA [22:38:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 30 19 47 00 AE 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 34 CE 01 00 F4 03 04 00 69 24 A5 66 B6 04 01 00 00 F7 81 F5 40 94 3E 0D EB [22:38:16]CommunicateWithHost err = 0 [22:38:16]CheckOFDResponse [22:38:16]1017 (14) - 77093643461234 [22:38:16]1041 (16) - 0000000000874939 [22:38:16]1040 (4) - 118324 [22:38:16]1012 (4) - 27.07.2024 16:46 [22:38:16]1206 (1) - 0 [22:38:16]OFD Sender: Remove packet 118324 [22:38:16]ProducePacketName [22:38:16]name=ofd_packets/00118324 [22:38:16]NVStorageDeleteData [22:38:16]Write to MH i2c: 01 00 00 C6 28 EE [22:38:16]Write i2c OK [22:38:16]MH_I2C_Read... [22:38:16]Read from MH i2c: 01 [22:38:16]MH_I2C_Read... [22:38:16]Read from MH i2c: 01 07 00 [22:38:16]MH_I2C_Read... [22:38:16]Read from MH i2c: 01 07 00 C6 28 00 00 00 00 00 EB 0C EC [22:38:16]RasterBufferAndPrint [22:38:16]line [22:38:16]line [22:38:16]line [22:38:16]line [22:38:16]line [22:38:16]written 0, free lines is 3314 [22:38:16]MH_Cut [22:38:16]Write to MH i2c: D1 01 00 CD 28 01 C7 [22:38:16]Write i2c OK [22:38:16]MH_I2C_Read... [22:38:16]Read from MH i2c: D1 [22:38:16]MH_I2C_Read... [22:38:16]Read from MH i2c: D1 01 00 [22:38:16]MH_I2C_Read... [22:38:16]Read from MH i2c: D1 01 00 CD 28 00 C6 [22:38:16]Write to MH i2c: 01 00 00 CE 28 F6 [22:38:16]Write i2c OK [22:38:16]MH_I2C_Read... [22:38:16]OFD Sender: No OFD packet to send [22:38:17]*** Cut start [22:38:17]*** Partial cut [22:38:17]*** CUTSNS_PIN = 1 [22:38:17]*** CUTSNS_PIN = 0 [22:38:17]*** Brake cut motor [22:38:17]Read from MH i2c: 01 [22:38:17]MH_I2C_Read... [22:38:17]*** Stop cut motor [22:38:17]*** Cut end [22:38:17]Read from MH i2c: 01 07 00 [22:38:17]MH_I2C_Read... [22:38:17]Read from MH i2c: 01 07 00 CE 28 00 00 00 00 00 FF 0F 0B [22:38:17]process_action close_receipt done [22:38:17]requested_data is exist [22:38:17]produce_requested_data [22:38:17]requested_item fm.sn is exist - process it [22:38:17]wFMCommunicate request_size=4 [22:38:17]MH_SAM_APDU [22:38:17]CAPDU: 80 11 00 00 [22:38:17]Write to MH i2c: E2 08 00 CF 28 80 11 00 00 00 00 00 00 71 [22:38:17]Write i2c OK [22:38:17]MH_I2C_Read... [22:38:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:17]Read from MH i2c: E2 [22:38:17]MH_I2C_Read... [22:38:17]Read from MH i2c: E2 17 00 [22:38:17]MH_I2C_Read... [22:38:17]Read from MH i2c: E2 17 00 CF 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CC [22:38:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:38:17]wFMCommunicate OK [22:38:17]requested_item fd.num is exist - process it [22:38:17]SAM_PROTO_GetFieldsCounters [22:38:17]wFMCommunicate request_size=4 [22:38:17]MH_SAM_APDU [22:38:17]CAPDU: 80 13 00 00 [22:38:17]Write to MH i2c: E2 08 00 D0 28 80 13 00 00 00 00 00 00 74 [22:38:17]Write i2c OK [22:38:17]MH_I2C_Read... [22:38:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:38:17]Read from MH i2c: E2 [22:38:17]MH_I2C_Read... [22:38:17]Read from MH i2c: E2 62 00 [22:38:17]MH_I2C_Read... [22:38:17]Read from MH i2c: E2 62 00 D0 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 34 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 73 [22:38:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 34 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:38:17]wFMCommunicate OK [22:38:17]SAM_PROTO_GetFieldsCounters done [22:38:17]requested_item shift.num is exist - process it [22:38:17]requested_item shift.opened is exist - process it [22:38:17]req_shift_opened [22:38:17]FM_GetShiftState [22:38:17]SAM_PROTO_GetShiftState [22:38:17]wFMCommunicate request_size=4 [22:38:17]MH_SAM_APDU [22:38:17]CAPDU: 80 13 01 00 [22:38:17]Write to MH i2c: E2 08 00 D1 28 80 13 01 00 00 00 00 00 76 [22:38:17]Write i2c OK [22:38:17]MH_I2C_Read... [22:38:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:17]Read from MH i2c: E2 [22:38:17]MH_I2C_Read... [22:38:17]Read from MH i2c: E2 0E 00 [22:38:17]MH_I2C_Read... [22:38:17]Read from MH i2c: E2 0E 00 D1 28 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 03 [22:38:17]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [22:38:17]wFMCommunicate OK [22:38:17]SAM_PROTO_GetShiftState done [22:38:17]FM_GetShiftState done [22:38:17]req_shift_opened done [22:38:17]requested_item shift.open_date is exist - process it [22:38:17]req_shift_open_date [22:38:17]req_shift_open_date done [22:38:17]produce_requested_data done [22:38:17]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118324,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [22:38:17]process_action_free close_receipt [22:38:17]json_value_free [22:38:17]json_value_free done [22:38:17]process_json_proto returns [22:38:17]Send response to host [22:38:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118324,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [22:38:17]free response buf [22:38:17]execute_script done [22:38:17]execute_script returns [22:38:17]free content buf [22:38:17]Sock 7.Close socket [22:38:17]Sock 7.Thread stoped [22:38:21]OFD Sender: No OFD packet to send [22:38:26]OFD Sender: No OFD packet to send [22:38:31]OFD Sender: No OFD packet to send [22:38:36]OFD Sender: No OFD packet to send [22:38:41]OFD Sender: No OFD packet to send [22:38:46]OFD Sender: No OFD packet to send [22:38:51]OFD Sender: No OFD packet to send [22:38:56]OFD Sender: No OFD packet to send [22:39:01]OFD Sender: No OFD packet to send [22:39:06]OFD Sender: No OFD packet to send [22:39:11]OFD Sender: No OFD packet to send [22:39:16]OFD Sender: No OFD packet to send [22:39:21]OFD Sender: No OFD packet to send [22:39:26]OFD Sender: No OFD packet to send [22:39:31]OFD Sender: No OFD packet to send [22:39:36]OFD Sender: No OFD packet to send [22:39:41]OFD Sender: No OFD packet to send [22:39:46]OFD Sender: No OFD packet to send [22:39:51]OFD Sender: No OFD packet to send [22:39:56]OFD Sender: No OFD packet to send [22:40:01]OFD Sender: No OFD packet to send [22:40:06]OFD Sender: No OFD packet to send [22:40:11]OFD Sender: No OFD packet to send [22:40:16]OFD Sender: No OFD packet to send [22:40:21]OFD Sender: No OFD packet to send [22:40:26]OFD Sender: No OFD packet to send [22:40:31]OFD Sender: No OFD packet to send [22:40:36]OFD Sender: No OFD packet to send [22:40:41]OFD Sender: No OFD packet to send [22:40:46]OFD Sender: No OFD packet to send [22:40:51]OFD Sender: No OFD packet to send [22:40:56]OFD Sender: No OFD packet to send [22:41:01]OFD Sender: No OFD packet to send [22:41:06]OFD Sender: No OFD packet to send [22:41:11]OFD Sender: No OFD packet to send [22:41:16]OFD Sender: No OFD packet to send [22:41:21]OFD Sender: No OFD packet to send [22:41:26]OFD Sender: No OFD packet to send [22:41:31]OFD Sender: No OFD packet to send [22:41:36]OFD Sender: No OFD packet to send [22:41:41]OFD Sender: No OFD packet to send [22:41:46]OFD Sender: No OFD packet to send [22:41:51]OFD Sender: No OFD packet to send [22:41:56]OFD Sender: No OFD packet to send [22:42:01]OFD Sender: No OFD packet to send [22:42:06]OFD Sender: No OFD packet to send [22:42:11]OFD Sender: No OFD packet to send [22:42:16]OFD Sender: No OFD packet to send [22:42:21]OFD Sender: No OFD packet to send [22:42:26]OFD Sender: No OFD packet to send [22:42:31]OFD Sender: No OFD packet to send [22:42:36]OFD Sender: No OFD packet to send [22:42:41]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:02]OFD Sender: No OFD packet to send [22:44:07]OFD Sender: No OFD packet to send [22:44:12]OFD Sender: No OFD packet to send [22:44:17]OFD Sender: No OFD packet to send [22:44:22]OFD Sender: No OFD packet to send [22:44:27]OFD Sender: No OFD packet to send [22:44:32]OFD Sender: No OFD packet to send [22:44:37]OFD Sender: No OFD packet to send [22:44:42]OFD Sender: No OFD packet to send [22:44:47]OFD Sender: No OFD packet to send [22:44:52]OFD Sender: No OFD packet to send [22:44:57]OFD Sender: No OFD packet to send [22:45:02]OFD Sender: No OFD packet to send [22:45:07]OFD Sender: No OFD packet to send [22:45:12]OFD Sender: No OFD packet to send [22:45:17]OFD Sender: No OFD packet to send [22:45:22]OFD Sender: No OFD packet to send [22:45:27]OFD Sender: No OFD packet to send [22:45:32]OFD Sender: No OFD packet to send [22:45:37]OFD Sender: No OFD packet to send [22:45:42]OFD Sender: No OFD packet to send [22:45:47]OFD Sender: No OFD packet to send [22:45:52]OFD Sender: No OFD packet to send [22:45:57]OFD Sender: No OFD packet to send [22:46:02]OFD Sender: No OFD packet to send [22:46:07]OFD Sender: No OFD packet to send [22:46:12]OFD Sender: No OFD packet to send [22:46:17]OFD Sender: No OFD packet to send [22:46:22]OFD Sender: No OFD packet to send [22:46:27]OFD Sender: No OFD packet to send [22:46:32]OFD Sender: No OFD packet to send [22:46:37]OFD Sender: No OFD packet to send [22:46:42]OFD Sender: No OFD packet to send [22:46:47]OFD Sender: No OFD packet to send [22:46:52]OFD Sender: No OFD packet to send [22:46:57]OFD Sender: No OFD packet to send [22:47:02]OFD Sender: No OFD packet to send [22:47:07]OFD Sender: No OFD packet to send [22:47:12]OFD Sender: No OFD packet to send [22:47:17]OFD Sender: No OFD packet to send [22:47:22]OFD Sender: No OFD packet to send [22:47:27]OFD Sender: No OFD packet to send [22:47:32]OFD Sender: No OFD packet to send [22:47:37]OFD Sender: No OFD packet to send [22:47:42]OFD Sender: No OFD packet to send [22:47:47]OFD Sender: No OFD packet to send [22:47:52]OFD Sender: No OFD packet to send [22:47:57]OFD Sender: No OFD packet to send [22:48:02]OFD Sender: No OFD packet to send [22:48:07]OFD Sender: No OFD packet to send [22:48:12]OFD Sender: No OFD packet to send [22:48:17]OFD Sender: No OFD packet to send [22:48:22]OFD Sender: No OFD packet to send [22:48:27]OFD Sender: No OFD packet to send [22:48:32]OFD Sender: No OFD packet to send [22:48:37]OFD Sender: No OFD packet to send [22:48:42]OFD Sender: No OFD packet to send [22:48:47]OFD Sender: No OFD packet to send [22:48:52]OFD Sender: No OFD packet to send [22:48:57]OFD Sender: No OFD packet to send [22:49:02]OFD Sender: No OFD packet to send [22:49:07]OFD Sender: No OFD packet to send [22:49:12]OFD Sender: No OFD packet to send [22:49:17]OFD Sender: No OFD packet to send [22:49:22]OFD Sender: No OFD packet to send [22:49:27]OFD Sender: No OFD packet to send [22:49:32]OFD Sender: No OFD packet to send [22:49:37]OFD Sender: No OFD packet to send [22:49:42]OFD Sender: No OFD packet to send [22:49:47]OFD Sender: No OFD packet to send [22:49:52]OFD Sender: No OFD packet to send [22:49:57]OFD Sender: No OFD packet to send [22:50:02]OFD Sender: No OFD packet to send [22:50:03]accept exits with 9 [22:50:03]New connection [22:50:03]New thread 3066953060 created [22:50:03]Thread 3067096420 joined [22:50:03]Waiting for new connection... [22:50:03] Sock 9.Parse request [22:50:03]Sock 9.Check first char [22:50:03]Sock 9.First char is OK [22:50:03]request: POST /json_proto HTTP/1.0 [22:50:03]Method: POST [22:50:03]URL: /json_proto [22:50:03]Method is POST - this is cgi request [22:50:03]url: /json_proto [22:50:03]query_string will be loaded in cgi processing [22:50:03]execute_cgi json_proto POST (null) [22:50:03]execute_cgi path=json_proto method=POST [22:50:03]POST find Content-Length [22:50:03]Host: 172.17.45.7:8080 [22:50:03]Content-Length: 677 [22:50:03]Content-Type: application/json [22:50:03] [22:50:03]POST finish read [22:50:03]Found Content-Length = 677 [22:50:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:03]execute_script... [22:50: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)949200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:03]POST & json_proto [22:50:03]process_json_proto [22:50:03]json parsed OK: [22:50:03]protocol is kg_v1.0 [22:50:03]action value=close_receipt [22:50:03]process_action close_receipt [22:50:03]cmd_close_receipt [22:50:03]MH_GetDate [22:50:03]Write to MH i2c: F0 00 00 D2 28 E9 [22:50:03]Write i2c OK [22:50:03]MH_I2C_Read... [22:50:03]Read from MH i2c: F0 [22:50:03]MH_I2C_Read... [22:50:03]Read from MH i2c: F0 09 00 [22:50:03]MH_I2C_Read... [22:50:03]Read from MH i2c: F0 09 00 D2 28 00 9C 79 A5 66 90 0F 3E 66 55 [22:50:03]GetLastDocTimeStamp 1722119895 [22:50:03]current date 1722120604 [22:50:03]FM_GetShiftState [22:50:03]SAM_PROTO_GetShiftState [22:50:03]wFMCommunicate request_size=4 [22:50:03]MH_SAM_APDU [22:50:03]CAPDU: 80 13 01 00 [22:50:03]Write to MH i2c: E2 08 00 D3 28 80 13 01 00 00 00 00 00 78 [22:50:03]Write i2c OK [22:50:03]MH_I2C_Read... [22:50:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:03]Read from MH i2c: E2 [22:50:03]MH_I2C_Read... [22:50:03]Read from MH i2c: E2 0E 00 [22:50:03]MH_I2C_Read... [22:50:03]Read from MH i2c: E2 0E 00 D3 28 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 05 [22:50:03]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [22:50:03]wFMCommunicate OK [22:50:03]SAM_PROTO_GetShiftState done [22:50:03]FM_GetShiftState done [22:50:03]opened in 1722038845 [22:50:03]opened+sec_in_day 1722125245 [22:50:03]quantity*price = 20001 [22:50:03]sum+1 = 20002 [22:50:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 268 27.07.2024 22:50 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118325 ФПД: 43559665858924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T225004&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118325&fm=43559665858924&tin=02508201610067®Number=0000000000092660&sum=20000 [22:50:04]StoreToDocumentArchive [22:50:04]shift 432 fd 118325 [22:50:04]save to /storage/0432/doc_00118325 [22:50:04]save last doc name /storage/0432/doc_00118325 to /storage/kkm_last_doc_name [22:50:04]save OK [22:50:04]Clear old archive folders... [22:50:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:50:04]tlvbuf is 01E1D4F0 [22:50:04]SAM_PROTO_ClearQueue [22:50:04]wFMCommunicate request_size=4 [22:50:04]MH_SAM_APDU [22:50:04]CAPDU: 80 09 00 00 [22:50:04]Write to MH i2c: E2 08 00 E0 28 80 09 00 00 00 00 00 00 7A [22:50:04]Write i2c OK [22:50:04]MH_I2C_Read... [22:50:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:50:04]Read from MH i2c: E2 [22:50:04]MH_I2C_Read... [22:50:04]Read from MH i2c: E2 03 00 [22:50:04]MH_I2C_Read... [22:50:04]Read from MH i2c: E2 03 00 E0 28 00 90 00 7C [22:50:04]RAPDU: 90 00 [22:50:04]wFMCommunicate OK [22:50:04]SAM_PROTO_ClearQueue done [22:50:04]KKMCreateOFDPacket [22:50:04]OFDProtocolAddRootSTLVToBuf [22:50:04]FM_MakeSignedData [22:50:04]FM_MakeSignedData [22:50:04]SAM_PROTO_SignData [22:50:04]wFMCommunicate request_size=4 [22:50:04]MH_SAM_APDU [22:50:04]CAPDU: 80 0D 01 02 [22:50:04]Write to MH i2c: E2 08 00 E1 28 80 0D 01 02 00 00 00 00 82 [22:50:04]Write i2c OK [22:50:04]MH_I2C_Read... [22:50:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:50:04]Read from MH i2c: E2 [22:50:04]MH_I2C_Read... [22:50:04]Read from MH i2c: E2 03 00 [22:50:04]MH_I2C_Read... [22:50:04]Read from MH i2c: E2 03 00 E1 28 00 90 00 7D [22:50:04]RAPDU: 90 00 [22:50:04]wFMCommunicate OK [22:50:04]wFMCommunicate request_size=255 [22:50:04]MH_SAM_APDU [22:50: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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 9C 79 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 35 CE 01 00 35 04 06 00 27 [22:50:04]Write to MH i2c: E2 02 01 E2 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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 9C 79 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 35 CE 01 00 35 04 06 00 27 00 00 11 [22:50:04]Write i2c OK [22:50:04]MH_I2C_Read... [22:50:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:04]Read from MH i2c: E2 [22:50:04]MH_I2C_Read... [22:50:04]Read from MH i2c: E2 03 00 [22:50:04]MH_I2C_Read... [22:50:04]Read from MH i2c: E2 03 00 E2 28 00 90 00 7E [22:50:04]RAPDU: 90 00 [22:50:04]wFMCommunicate OK [22:50:04]wFMCommunicate request_size=10 [22:50:04]MH_SAM_APDU [22:50:04]CAPDU: 80 0D 02 02 05 9E 06 68 F9 6C [22:50:04]Write to MH i2c: E2 0D 00 E3 28 80 0D 02 02 05 00 9E 06 68 F9 6C 00 00 00 [22:50:04]Write i2c OK [22:50:04]MH_I2C_Read... [22:50:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:04]Read from MH i2c: E2 [22:50:04]MH_I2C_Read... [22:50:04]Read from MH i2c: E2 03 00 [22:50:04]MH_I2C_Read... [22:50:04]Read from MH i2c: E2 03 00 E3 28 00 90 00 7F [22:50:04]RAPDU: 90 00 [22:50:04]wFMCommunicate OK [22:50:04]wFMCommunicate request_size=4 [22:50:04]MH_SAM_APDU [22:50:04]CAPDU: 80 0D 03 02 [22:50:04]Write to MH i2c: E2 08 00 E4 28 80 0D 03 02 00 00 00 00 87 [22:50:04]Write i2c OK [22:50:04]MH_I2C_Read... [22:50:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:50:04]Read from MH i2c: E2 [22:50:04]MH_I2C_Read... [22:50:04]Read from MH i2c: E2 0B 00 [22:50:04]MH_I2C_Read... [22:50:04]Read from MH i2c: E2 0B 00 E4 28 00 3F 49 E4 A8 0D 43 CC 58 90 00 10 [22:50:04]RAPDU: 3F 49 E4 A8 0D 43 CC 58 90 00 [22:50:04]wFMCommunicate OK [22:50:04]SAM_PROTO_SignData done [22:50:04]FM_MakeSignedData done [22:50:04]CreateOFDProtocolMessage [22:50:04]wFMCommunicate request_size=4 [22:50:04]MH_SAM_APDU [22:50:04]CAPDU: 80 11 00 00 [22:50:04]Write to MH i2c: E2 08 00 E5 28 80 11 00 00 00 00 00 00 87 [22:50:04]Write i2c OK [22:50:04]MH_I2C_Read... [22:50:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:04]Read from MH i2c: E2 [22:50:04]MH_I2C_Read... [22:50:04]Read from MH i2c: E2 17 00 [22:50:04]MH_I2C_Read... [22:50:04]Read from MH i2c: E2 17 00 E5 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E2 [22:50:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:50:04]wFMCommunicate OK [22:50:04]CreateOFDProtocolMessage done [22:50:04]OFDSenderStorePacket 118325 [22:50:04]StoreOFDPacket docnum=118325 [22:50:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 04 F5 07 01 EF 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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 9C 79 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 35 CE 01 00 35 04 06 00 27 9E 06 68 F9 6C 3F 49 E4 A8 0D 43 CC 58 [22:50:04]CheckFolder [22:50:04]dirname=/storage/ofd_packets [22:50:04]CheckFolder done [22:50:04]ProducePacketName [22:50:04]name=ofd_packets/00118325 [22:50:04]NVStorageSaveData ofd_packets/00118325 [22:50:04]File name is /storage/ofd_packets/00118325 [22:50:04]Write 301 bytes [22:50:04]NVStorageSaveData done [22:50:04]OFDSenderStorePacket done [22:50:04]KKMCreateOFDPacket done [22:50:04]NVStorageSaveData kkm_last_timestamp [22:50:04]File name is /storage/kkm_last_timestamp [22:50:04]Write 4 bytes [22:50:04]NVStorageSaveData done [22:50:04]ExternCall_PrintAddStr [22:50:04]wPrintStart [22:50:04]Write to MH i2c: 01 00 00 E6 28 0E [22:50:04]Write i2c OK [22:50:04]MH_I2C_Read... [22:50:04]Read from MH i2c: 01 [22:50:04]MH_I2C_Read... [22:50:04]Read from MH i2c: 01 07 00 [22:50:04]MH_I2C_Read... [22:50:04]Read from MH i2c: 01 07 00 E6 28 00 00 00 00 00 FF 0F 23 [22:50:04]RasterBufferAndPrint [22:50:04]line Счет N : (1)949200 [22:50:04]line ИНН: 02508201610067 [22:50:04]line Контрольно-Кассовый Чек [22:50:04]line ПРОДАЖА [22:50:04]line ТРК (МРК, ГНК) : 31 [22:50:04]line Товар: 2710124130 [22:50:04]line Аи-92-К-4 [22:50:04]line 2.950 * 67.80 [22:50:04]line = 200.01 [22:50:04]line НДС 12% НСП 1% [22:50:04]line > о реализуемом товаре [22:50:04]line ОКРУГЛЕНИЕ: -0.01 [22:50:04]line ИТОГО: 200.00 [22:50:04]line Внесено: 200.00 [22:50:04]line СДАЧА: 0.00 [22:50:04]line НСП 1% : 1.77 [22:50:04]line НДС 12% : 21.24 [22:50:04]line Наличными: 200.00 [22:50:04]line Безнал.: 0.00 [22:50:04]line Место: АЗС № 134 "Партнер Нефть" [22:50:04]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:50:04]line СНО: Общий режим [22:50:04]line Чек 268 27.07.2024 22:50 [22:50:04]line Смена: 432 ФФД: 1.0 [22:50:04]line ЗНМ: 0300000044 [22:50:04]line РНМ: 0000000000092660 [22:50:04]line Версия ККМ: 001 [22:50:04]line ФМ: 0000000000874939 [22:50:04]line ФД: 118325 [22:50:04]line ФПД: 43559665858924 [22:50:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T225004&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118325&fm=43559665858924&tin=02508201610067®Number=0000000000092660&sum=20000 [22:50:04]written 0, free lines is 4095 [22:50:04]OFD Sender: Processing packet 118325 [packets to send 86, broken 85] [22:50:04]ProducePacketName [22:50:04]name=ofd_packets/00118325 [22:50:04]OFD Sender: To server: pG, [22:50:04]CommunicateWithHost lk.salyk.kg:30040 [22:50:04]ConnectInit lk.salyk.kg [22:50:05]Connected sock=10 [22:50:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 04 F5 07 01 EF 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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 9C 79 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 35 CE 01 00 35 04 06 00 27 9E 06 68 F9 6C 3F 49 E4 A8 0D 43 CC 58 [22:50:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 9F 80 47 00 5E E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 35 CE 01 00 F4 03 04 00 2E 27 A5 66 B6 04 01 00 00 90 F0 02 DA 7F A7 C4 C2 [22:50:05]CommunicateWithHost err = 0 [22:50:05]CheckOFDResponse [22:50:05]1017 (14) - 77093643461234 [22:50:05]1041 (16) - 0000000000874939 [22:50:05]1040 (4) - 118325 [22:50:05]1012 (4) - 27.07.2024 16:58 [22:50:05]1206 (1) - 0 [22:50:05]OFD Sender: Remove packet 118325 [22:50:05]ProducePacketName [22:50:05]name=ofd_packets/00118325 [22:50:05]NVStorageDeleteData [22:50:05]Write to MH i2c: 01 00 00 10 29 39 [22:50:05]Write i2c OK [22:50:05]MH_I2C_Read... [22:50:05]Read from MH i2c: 01 [22:50:05]MH_I2C_Read... [22:50:05]Read from MH i2c: 01 07 00 [22:50:05]MH_I2C_Read... [22:50:05]Read from MH i2c: 01 07 00 10 29 00 00 00 00 00 E9 0C 35 [22:50:05]RasterBufferAndPrint [22:50:05]line [22:50:05]line [22:50:05]line [22:50:05]line [22:50:05]line [22:50:05]written 0, free lines is 3311 [22:50:05]MH_Cut [22:50:05]Write to MH i2c: D1 01 00 17 29 01 12 [22:50:05]Write i2c OK [22:50:05]MH_I2C_Read... [22:50:05]Read from MH i2c: D1 [22:50:05]MH_I2C_Read... [22:50:05]Read from MH i2c: D1 01 00 [22:50:05]MH_I2C_Read... [22:50:05]Read from MH i2c: D1 01 00 17 29 00 11 [22:50:05]Write to MH i2c: 01 00 00 18 29 41 [22:50:05]Write i2c OK [22:50:05]MH_I2C_Read... [22:50:05]OFD Sender: No OFD packet to send [22:50:06]*** Cut start [22:50:06]*** Partial cut [22:50:06]*** CUTSNS_PIN = 1 [22:50:06]*** CUTSNS_PIN = 0 [22:50:06]*** Brake cut motor [22:50:06]Read from MH i2c: 01 [22:50:06]MH_I2C_Read... [22:50:06]*** Stop cut motor [22:50:06]*** Cut end [22:50:06]Read from MH i2c: 01 07 00 [22:50:06]MH_I2C_Read... [22:50:06]Read from MH i2c: 01 07 00 18 29 00 00 00 00 00 FF 0F 56 [22:50:06]process_action close_receipt done [22:50:06]requested_data is exist [22:50:06]produce_requested_data [22:50:06]requested_item fm.sn is exist - process it [22:50:06]wFMCommunicate request_size=4 [22:50:06]MH_SAM_APDU [22:50:06]CAPDU: 80 11 00 00 [22:50:06]Write to MH i2c: E2 08 00 19 29 80 11 00 00 00 00 00 00 BC [22:50:06]Write i2c OK [22:50:06]MH_I2C_Read... [22:50:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:06]Read from MH i2c: E2 [22:50:06]MH_I2C_Read... [22:50:06]Read from MH i2c: E2 17 00 [22:50:06]MH_I2C_Read... [22:50:06]Read from MH i2c: E2 17 00 19 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 17 [22:50:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:50:06]wFMCommunicate OK [22:50:06]requested_item fd.num is exist - process it [22:50:06]SAM_PROTO_GetFieldsCounters [22:50:06]wFMCommunicate request_size=4 [22:50:06]MH_SAM_APDU [22:50:06]CAPDU: 80 13 00 00 [22:50:06]Write to MH i2c: E2 08 00 1A 29 80 13 00 00 00 00 00 00 BF [22:50:06]Write i2c OK [22:50:06]MH_I2C_Read... [22:50:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:50:06]Read from MH i2c: E2 [22:50:06]MH_I2C_Read... [22:50:06]Read from MH i2c: E2 62 00 [22:50:06]MH_I2C_Read... [22:50:06]Read from MH i2c: E2 62 00 1A 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 35 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 C2 [22:50:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 35 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:50:06]wFMCommunicate OK [22:50:06]SAM_PROTO_GetFieldsCounters done [22:50:06]requested_item shift.num is exist - process it [22:50:06]requested_item shift.opened is exist - process it [22:50:06]req_shift_opened [22:50:06]FM_GetShiftState [22:50:06]SAM_PROTO_GetShiftState [22:50:06]wFMCommunicate request_size=4 [22:50:06]MH_SAM_APDU [22:50:06]CAPDU: 80 13 01 00 [22:50:06]Write to MH i2c: E2 08 00 1B 29 80 13 01 00 00 00 00 00 C1 [22:50:06]Write i2c OK [22:50:06]MH_I2C_Read... [22:50:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:06]Read from MH i2c: E2 [22:50:06]MH_I2C_Read... [22:50:06]Read from MH i2c: E2 0E 00 [22:50:06]MH_I2C_Read... [22:50:06]Read from MH i2c: E2 0E 00 1B 29 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 4E [22:50:06]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [22:50:06]wFMCommunicate OK [22:50:06]SAM_PROTO_GetShiftState done [22:50:06]FM_GetShiftState done [22:50:06]req_shift_opened done [22:50:06]requested_item shift.open_date is exist - process it [22:50:06]req_shift_open_date [22:50:06]req_shift_open_date done [22:50:06]produce_requested_data done [22:50:06]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118325,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [22:50:06]process_action_free close_receipt [22:50:06]json_value_free [22:50:06]json_value_free done [22:50:06]process_json_proto returns [22:50:06]Send response to host [22:50:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118325,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [22:50:06]free response buf [22:50:06]execute_script done [22:50:06]execute_script returns [22:50:06]free content buf [22:50:06]Sock 9.Close socket [22:50:06]Sock 9.Thread stoped [22:50:10]OFD Sender: No OFD packet to send [22:50:15]OFD Sender: No OFD packet to send [22:50:20]OFD Sender: No OFD packet to send [22:50:25]OFD Sender: No OFD packet to send [22:50:30]OFD Sender: No OFD packet to send [22:50:35]OFD Sender: No OFD packet to send [22:50:40]OFD Sender: No OFD packet to send [22:50:45]OFD Sender: No OFD packet to send [22:50:50]OFD Sender: No OFD packet to send [22:50:55]OFD Sender: No OFD packet to send [22:51:00]OFD Sender: No OFD packet to send [22:51:05]OFD Sender: No OFD packet to send [22:51:10]OFD Sender: No OFD packet to send [22:51:15]OFD Sender: No OFD packet to send [22:51:20]OFD Sender: No OFD packet to send [22:51:25]OFD Sender: No OFD packet to send [22:51:30]OFD Sender: No OFD packet to send [22:51:35]OFD Sender: No OFD packet to send [22:51:40]OFD Sender: No OFD packet to send [22:51:45]OFD Sender: No OFD packet to send [22:51:50]OFD Sender: No OFD packet to send [22:51:55]OFD Sender: No OFD packet to send [22:52:00]OFD Sender: No OFD packet to send [22:52:05]OFD Sender: No OFD packet to send [22:52:10]OFD Sender: No OFD packet to send [22:52:15]OFD Sender: No OFD packet to send [22:52:20]OFD Sender: No OFD packet to send [22:52:25]OFD Sender: No OFD packet to send [22:52:30]OFD Sender: No OFD packet to send [22:52:35]OFD Sender: No OFD packet to send [22:52:40]OFD Sender: No OFD packet to send [22:52:45]OFD Sender: No OFD packet to send [22:52:50]OFD Sender: No OFD packet to send [22:52:55]OFD Sender: No OFD packet to send [22:53:00]OFD Sender: No OFD packet to send [22:53:05]OFD Sender: No OFD packet to send [22:53:10]OFD Sender: No OFD packet to send [22:53:15]OFD Sender: No OFD packet to send [22:53:20]OFD Sender: No OFD packet to send [22:53:25]OFD Sender: No OFD packet to send [22:53:30]OFD Sender: No OFD packet to send [22:53:35]OFD Sender: No OFD packet to send [22:53:40]OFD Sender: No OFD packet to send [22:53:45]OFD Sender: No OFD packet to send [22:53:50]OFD Sender: No OFD packet to send [22:53:56]OFD Sender: No OFD packet to send [22:54:01]OFD Sender: No OFD packet to send [22:54:06]OFD Sender: No OFD packet to send [22:54:11]OFD Sender: No OFD packet to send [22:54:16]OFD Sender: No OFD packet to send [22:54:21]OFD Sender: No OFD packet to send [22:54:26]OFD Sender: No OFD packet to send [22:54:31]OFD Sender: No OFD packet to send [22:54:36]OFD Sender: No OFD packet to send [22:54:41]OFD Sender: No OFD packet to send [22:54:46]OFD Sender: No OFD packet to send [22:54:51]OFD Sender: No OFD packet to send [22:54:56]OFD Sender: No OFD packet to send [22:55:01]OFD Sender: No OFD packet to send [22:55:06]OFD Sender: No OFD packet to send [22:55:11]OFD Sender: No OFD packet to send [22:55:16]OFD Sender: No OFD packet to send [22:55:21]OFD Sender: No OFD packet to send [22:55:26]OFD Sender: No OFD packet to send [22:55:31]OFD Sender: No OFD packet to send [22:55:36]OFD Sender: No OFD packet to send [22:55:41]OFD Sender: No OFD packet to send [22:55:46]OFD Sender: No OFD packet to send [22:55:51]OFD Sender: No OFD packet to send [22:55:56]OFD Sender: No OFD packet to send [22:56:01]OFD Sender: No OFD packet to send [22:56:06]OFD Sender: No OFD packet to send [22:56:11]OFD Sender: No OFD packet to send [22:56:16]OFD Sender: No OFD packet to send [22:56:21]OFD Sender: No OFD packet to send [22:56:26]OFD Sender: No OFD packet to send [22:56:31]OFD Sender: No OFD packet to send [22:56:36]OFD Sender: No OFD packet to send [22:56:41]OFD Sender: No OFD packet to send [22:56:46]OFD Sender: No OFD packet to send [22:56:51]OFD Sender: No OFD packet to send [22:56:56]OFD Sender: No OFD packet to send [22:57:01]OFD Sender: No OFD packet to send [22:57:06]OFD Sender: No OFD packet to send [22:57:11]OFD Sender: No OFD packet to send [22:57:16]OFD Sender: No OFD packet to send [22:57:21]OFD Sender: No OFD packet to send [22:57:26]OFD Sender: No OFD packet to send [22:57:31]OFD Sender: No OFD packet to send [22:57:36]OFD Sender: No OFD packet to send [22:57:41]OFD Sender: No OFD packet to send [22:57:46]OFD Sender: No OFD packet to send [22:57:51]OFD Sender: No OFD packet to send [22:57:56]OFD Sender: No OFD packet to send [22:58:01]OFD Sender: No OFD packet to send [22:58:06]OFD Sender: No OFD packet to send [22:58:11]OFD Sender: No OFD packet to send [22:58:16]OFD Sender: No OFD packet to send [22:58:21]OFD Sender: No OFD packet to send [22:58:26]OFD Sender: No OFD packet to send [22:58:31]OFD Sender: No OFD packet to send [22:58:36]OFD Sender: No OFD packet to send [22:58:41]OFD Sender: No OFD packet to send [22:58:46]OFD Sender: No OFD packet to send [22:58:51]OFD Sender: No OFD packet to send [22:58:56]OFD Sender: No OFD packet to send [22:59:01]OFD Sender: No OFD packet to send [22:59:06]OFD Sender: No OFD packet to send [22:59:11]OFD Sender: No OFD packet to send [22:59:16]OFD Sender: No OFD packet to send [22:59:21]OFD Sender: No OFD packet to send [22:59:26]OFD Sender: No OFD packet to send [22:59:28]accept exits with 7 [22:59:28]New connection [22:59:28]New thread 3067096420 created [22:59:28]Thread 3066953060 joined [22:59:28]Waiting for new connection... [22:59:28] Sock 7.Parse request [22:59:28]Sock 7.Check first char [22:59:28]Sock 7.First char is OK [22:59:28]request: POST /json_proto HTTP/1.0 [22:59:28]Method: POST [22:59:28]URL: /json_proto [22:59:28]Method is POST - this is cgi request [22:59:28]url: /json_proto [22:59:28]query_string will be loaded in cgi processing [22:59:28]execute_cgi json_proto POST (null) [22:59:28]execute_cgi path=json_proto method=POST [22:59:28]POST find Content-Length [22:59:28]Host: 172.17.45.7:8080 [22:59:28]Content-Length: 679 [22:59:28]Content-Type: application/json [22:59:28] [22:59:28]POST finish read [22:59:28]Found Content-Length = 679 [22:59:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:28]execute_script... [22:59: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)949201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:28]POST & json_proto [22:59:28]process_json_proto [22:59:28]json parsed OK: [22:59:28]protocol is kg_v1.0 [22:59:28]action value=close_receipt [22:59:28]process_action close_receipt [22:59:28]cmd_close_receipt [22:59:28]MH_GetDate [22:59:28]Write to MH i2c: F0 00 00 1C 29 34 [22:59:28]Write i2c OK [22:59:28]MH_I2C_Read... [22:59:28]Read from MH i2c: F0 [22:59:28]MH_I2C_Read... [22:59:28]Read from MH i2c: F0 09 00 [22:59:28]MH_I2C_Read... [22:59:28]Read from MH i2c: F0 09 00 1C 29 00 D2 7B A5 66 90 0F 3E 66 D8 [22:59:28]GetLastDocTimeStamp 1722120604 [22:59:28]current date 1722121170 [22:59:28]FM_GetShiftState [22:59:28]SAM_PROTO_GetShiftState [22:59:28]wFMCommunicate request_size=4 [22:59:28]MH_SAM_APDU [22:59:28]CAPDU: 80 13 01 00 [22:59:28]Write to MH i2c: E2 08 00 1D 29 80 13 01 00 00 00 00 00 C3 [22:59:28]Write i2c OK [22:59:28]MH_I2C_Read... [22:59:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:28]Read from MH i2c: E2 [22:59:28]MH_I2C_Read... [22:59:28]Read from MH i2c: E2 0E 00 [22:59:28]MH_I2C_Read... [22:59:28]Read from MH i2c: E2 0E 00 1D 29 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 50 [22:59:28]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [22:59:28]wFMCommunicate OK [22:59:28]SAM_PROTO_GetShiftState done [22:59:28]FM_GetShiftState done [22:59:28]opened in 1722038845 [22:59:28]opened+sec_in_day 1722125245 [22:59:28]quantity*price = 350062 [22:59:28]sum+1 = 350064 [22:59:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.98 НДС 12% : 371.75 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 269 27.07.2024 22:59 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118326 ФПД: 136439230330515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T225930&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118326&fm=136439230330515&tin=02508201610067®Number=0000000000092660&sum=350000 [22:59:29]StoreToDocumentArchive [22:59:29]shift 432 fd 118326 [22:59:29]save to /storage/0432/doc_00118326 [22:59:29]save last doc name /storage/0432/doc_00118326 to /storage/kkm_last_doc_name [22:59:29]save OK [22:59:29]Clear old archive folders... [22:59:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:59:29]tlvbuf is 01DBB7D0 [22:59:29]SAM_PROTO_ClearQueue [22:59:29]wFMCommunicate request_size=4 [22:59:29]MH_SAM_APDU [22:59:29]CAPDU: 80 09 00 00 [22:59:29]Write to MH i2c: E2 08 00 2A 29 80 09 00 00 00 00 00 00 C5 [22:59:29]Write i2c OK [22:59:29]MH_I2C_Read... [22:59:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:59:29]Read from MH i2c: E2 [22:59:29]MH_I2C_Read... [22:59:29]Read from MH i2c: E2 03 00 [22:59:29]MH_I2C_Read... [22:59:29]Read from MH i2c: E2 03 00 2A 29 00 90 00 C7 [22:59:29]RAPDU: 90 00 [22:59:29]wFMCommunicate OK [22:59:29]SAM_PROTO_ClearQueue done [22:59:29]KKMCreateOFDPacket [22:59:29]OFDProtocolAddRootSTLVToBuf [22:59:29]FM_MakeSignedData [22:59:29]FM_MakeSignedData [22:59:29]SAM_PROTO_SignData [22:59:29]wFMCommunicate request_size=4 [22:59:29]MH_SAM_APDU [22:59:29]CAPDU: 80 0D 01 02 [22:59:29]Write to MH i2c: E2 08 00 2B 29 80 0D 01 02 00 00 00 00 CD [22:59:29]Write i2c OK [22:59:29]MH_I2C_Read... [22:59:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:59:29]Read from MH i2c: E2 [22:59:29]MH_I2C_Read... [22:59:29]Read from MH i2c: E2 03 00 [22:59:29]MH_I2C_Read... [22:59:29]Read from MH i2c: E2 03 00 2B 29 00 90 00 C8 [22:59:29]RAPDU: 90 00 [22:59:29]wFMCommunicate OK [22:59:29]wFMCommunicate request_size=255 [22:59:29]MH_SAM_APDU [22:59: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 D2 7B A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 36 CE 01 00 35 04 06 00 7C 17 3B DB [22:59:29]Write to MH i2c: E2 02 01 2C 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 D2 7B A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 36 CE 01 00 35 04 06 00 7C 17 3B DB 00 00 D3 [22:59:29]Write i2c OK [22:59:29]MH_I2C_Read... [22:59:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:30]Read from MH i2c: E2 [22:59:30]MH_I2C_Read... [22:59:30]Read from MH i2c: E2 03 00 [22:59:30]MH_I2C_Read... [22:59:30]Read from MH i2c: E2 03 00 2C 29 00 90 00 C9 [22:59:30]RAPDU: 90 00 [22:59:30]wFMCommunicate OK [22:59:30]wFMCommunicate request_size=7 [22:59:30]MH_SAM_APDU [22:59:30]CAPDU: 80 0D 02 02 02 76 93 [22:59:30]Write to MH i2c: E2 0A 00 2D 29 80 0D 02 02 02 00 76 93 00 00 DD [22:59:30]Write i2c OK [22:59:30]MH_I2C_Read... [22:59:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:30]Read from MH i2c: E2 [22:59:30]MH_I2C_Read... [22:59:30]Read from MH i2c: E2 03 00 [22:59:30]MH_I2C_Read... [22:59:30]Read from MH i2c: E2 03 00 2D 29 00 90 00 CA [22:59:30]RAPDU: 90 00 [22:59:30]wFMCommunicate OK [22:59:30]wFMCommunicate request_size=4 [22:59:30]MH_SAM_APDU [22:59:30]CAPDU: 80 0D 03 02 [22:59:30]Write to MH i2c: E2 08 00 2E 29 80 0D 03 02 00 00 00 00 D2 [22:59:30]Write i2c OK [22:59:30]MH_I2C_Read... [22:59:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:59:30]Read from MH i2c: E2 [22:59:30]MH_I2C_Read... [22:59:30]Read from MH i2c: E2 0B 00 [22:59:30]MH_I2C_Read... [22:59:30]Read from MH i2c: E2 0B 00 2E 29 00 6A DD 00 3E 5A 52 6A CE 90 00 3C [22:59:30]RAPDU: 6A DD 00 3E 5A 52 6A CE 90 00 [22:59:30]wFMCommunicate OK [22:59:30]SAM_PROTO_SignData done [22:59:30]FM_MakeSignedData done [22:59:30]CreateOFDProtocolMessage [22:59:30]wFMCommunicate request_size=4 [22:59:30]MH_SAM_APDU [22:59:30]CAPDU: 80 11 00 00 [22:59:30]Write to MH i2c: E2 08 00 2F 29 80 11 00 00 00 00 00 00 D2 [22:59:30]Write i2c OK [22:59:30]MH_I2C_Read... [22:59:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:30]Read from MH i2c: E2 [22:59:30]MH_I2C_Read... [22:59:30]Read from MH i2c: E2 17 00 [22:59:30]MH_I2C_Read... [22:59:30]Read from MH i2c: E2 17 00 2F 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2D [22:59:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:59:30]wFMCommunicate OK [22:59:30]CreateOFDProtocolMessage done [22:59:30]OFDSenderStorePacket 118326 [22:59:30]StoreOFDPacket docnum=118326 [22:59:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 33 A7 04 01 03 A8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 D2 7B A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 36 CE 01 00 35 04 06 00 7C 17 3B DB 76 93 6A DD 00 3E 5A 52 6A CE [22:59:30]CheckFolder [22:59:30]dirname=/storage/ofd_packets [22:59:30]CheckFolder done [22:59:30]ProducePacketName [22:59:30]name=ofd_packets/00118326 [22:59:30]NVStorageSaveData ofd_packets/00118326 [22:59:30]File name is /storage/ofd_packets/00118326 [22:59:30]Write 298 bytes [22:59:30]NVStorageSaveData done [22:59:30]OFDSenderStorePacket done [22:59:30]KKMCreateOFDPacket done [22:59:30]NVStorageSaveData kkm_last_timestamp [22:59:30]File name is /storage/kkm_last_timestamp [22:59:30]Write 4 bytes [22:59:30]NVStorageSaveData done [22:59:30]ExternCall_PrintAddStr [22:59:30]wPrintStart [22:59:30]Write to MH i2c: 01 00 00 30 29 59 [22:59:30]Write i2c OK [22:59:30]MH_I2C_Read... [22:59:30]Read from MH i2c: 01 [22:59:30]MH_I2C_Read... [22:59:30]Read from MH i2c: 01 07 00 [22:59:30]MH_I2C_Read... [22:59:30]Read from MH i2c: 01 07 00 30 29 00 00 00 00 00 FF 0F 6E [22:59:30]RasterBufferAndPrint [22:59:30]line Счет N : (1)949201 [22:59:30]line ИНН: 02508201610067 [22:59:30]line Контрольно-Кассовый Чек [22:59:30]line ПРОДАЖА [22:59:30]line ТРК (МРК, ГНК) : 11 [22:59:30]line Товар: 2710194800 [22:59:30]line ДТ-К-5 [22:59:30]line 45.940 * 76.20 [22:59:30]line = 3500.63 [22:59:30]line НДС 12% НСП 1% [22:59:30]line > о реализуемом товаре [22:59:30]line ОКРУГЛЕНИЕ: -0.63 [22:59:30]line ИТОГО: 3500.00 [22:59:30]line Внесено: 3500.00 [22:59:30]line СДАЧА: 0.00 [22:59:30]line НСП 1% : 30.98 [22:59:30]line НДС 12% : 371.75 [22:59:30]line Наличными: 3500.00 [22:59:30]line Безнал.: 0.00 [22:59:30]line Место: АЗС № 134 "Партнер Нефть" [22:59:30]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:59:30]line СНО: Общий режим [22:59:30]line Чек 269 27.07.2024 22:59 [22:59:30]line Смена: 432 ФФД: 1.0 [22:59:30]line ЗНМ: 0300000044 [22:59:30]line РНМ: 0000000000092660 [22:59:30]line Версия ККМ: 001 [22:59:30]line ФМ: 0000000000874939 [22:59:30]line ФД: 118326 [22:59:30]line ФПД: 136439230330515 [22:59:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T225930&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118326&fm=136439230330515&tin=02508201610067®Number=0000000000092660&sum=350000 [22:59:30]written 0, free lines is 4095 [22:59:30]OFD Sender: Processing packet 118326 [packets to send 86, broken 85] [22:59:30]ProducePacketName [22:59:30]name=ofd_packets/00118326 [22:59:30]OFD Sender: To server: pG, [22:59:30]CommunicateWithHost lk.salyk.kg:30040 [22:59:30]ConnectInit lk.salyk.kg [22:59:30]Connected sock=10 [22:59:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 33 A7 04 01 03 A8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 D2 7B A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 36 CE 01 00 35 04 06 00 7C 17 3B DB 76 93 6A DD 00 3E 5A 52 6A CE [22:59:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 49 E8 47 00 73 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 34 39 33 39 10 04 04 00 36 CE 01 00 F4 03 04 00 64 29 A5 66 B6 04 01 00 00 72 2C 94 FA B3 59 18 50 [22:59:30]CommunicateWithHost err = 0 [22:59:30]CheckOFDResponse [22:59:30]1017 (14) - 77093643461234 [22:59:30]1041 (16) - 0000000000874939 [22:59:30]1040 (4) - 118326 [22:59:30]1012 (4) - 27.07.2024 17:07 [22:59:30]1206 (1) - 0 [22:59:30]OFD Sender: Remove packet 118326 [22:59:30]ProducePacketName [22:59:30]name=ofd_packets/00118326 [22:59:30]NVStorageDeleteData [22:59:30]Write to MH i2c: 01 00 00 5A 29 83 [22:59:30]Write i2c OK [22:59:30]MH_I2C_Read... [22:59:30]Read from MH i2c: 01 [22:59:30]MH_I2C_Read... [22:59:30]Read from MH i2c: 01 07 00 [22:59:30]MH_I2C_Read... [22:59:30]Read from MH i2c: 01 07 00 5A 29 00 00 00 00 00 E3 0C 79 [22:59:30]RasterBufferAndPrint [22:59:30]line [22:59:30]line [22:59:30]line [22:59:30]line [22:59:30]line [22:59:30]written 0, free lines is 3305 [22:59:30]MH_Cut [22:59:30]Write to MH i2c: D1 01 00 61 29 01 5C [22:59:30]Write i2c OK [22:59:30]MH_I2C_Read... [22:59:30]Read from MH i2c: D1 [22:59:30]MH_I2C_Read... [22:59:30]Read from MH i2c: D1 01 00 [22:59:30]MH_I2C_Read... [22:59:30]Read from MH i2c: D1 01 00 61 29 00 5B [22:59:30]Write to MH i2c: 01 00 00 62 29 8B [22:59:30]Write i2c OK [22:59:30]MH_I2C_Read... [22:59:31]OFD Sender: No OFD packet to send [22:59:31]*** Cut start [22:59:31]*** Partial cut [22:59:31]*** CUTSNS_PIN = 1 [22:59:31]*** CUTSNS_PIN = 0 [22:59:31]*** Brake cut motor [22:59:32]Read from MH i2c: 01 [22:59:32]MH_I2C_Read... [22:59:32]*** Stop cut motor [22:59:32]*** Cut end [22:59:32]Read from MH i2c: 01 07 00 [22:59:32]MH_I2C_Read... [22:59:32]Read from MH i2c: 01 07 00 62 29 00 00 00 00 00 FF 0F A0 [22:59:32]process_action close_receipt done [22:59:32]requested_data is exist [22:59:32]produce_requested_data [22:59:32]requested_item fm.sn is exist - process it [22:59:32]wFMCommunicate request_size=4 [22:59:32]MH_SAM_APDU [22:59:32]CAPDU: 80 11 00 00 [22:59:32]Write to MH i2c: E2 08 00 63 29 80 11 00 00 00 00 00 00 06 [22:59:32]Write i2c OK [22:59:32]MH_I2C_Read... [22:59:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:32]Read from MH i2c: E2 [22:59:32]MH_I2C_Read... [22:59:32]Read from MH i2c: E2 17 00 [22:59:32]MH_I2C_Read... [22:59:32]Read from MH i2c: E2 17 00 63 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 61 [22:59:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:59:32]wFMCommunicate OK [22:59:32]requested_item fd.num is exist - process it [22:59:32]SAM_PROTO_GetFieldsCounters [22:59:32]wFMCommunicate request_size=4 [22:59:32]MH_SAM_APDU [22:59:32]CAPDU: 80 13 00 00 [22:59:32]Write to MH i2c: E2 08 00 64 29 80 13 00 00 00 00 00 00 09 [22:59:32]Write i2c OK [22:59:32]MH_I2C_Read... [22:59:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:59:32]Read from MH i2c: E2 [22:59:32]MH_I2C_Read... [22:59:32]Read from MH i2c: E2 62 00 [22:59:32]MH_I2C_Read... [22:59:32]Read from MH i2c: E2 62 00 64 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 36 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 10 [22:59:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 36 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:59:32]wFMCommunicate OK [22:59:32]SAM_PROTO_GetFieldsCounters done [22:59:32]requested_item shift.num is exist - process it [22:59:32]requested_item shift.opened is exist - process it [22:59:32]req_shift_opened [22:59:32]FM_GetShiftState [22:59:32]SAM_PROTO_GetShiftState [22:59:32]wFMCommunicate request_size=4 [22:59:32]MH_SAM_APDU [22:59:32]CAPDU: 80 13 01 00 [22:59:32]Write to MH i2c: E2 08 00 65 29 80 13 01 00 00 00 00 00 0B [22:59:32]Write i2c OK [22:59:32]MH_I2C_Read... [22:59:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:32]Read from MH i2c: E2 [22:59:32]MH_I2C_Read... [22:59:32]Read from MH i2c: E2 0E 00 [22:59:32]MH_I2C_Read... [22:59:32]Read from MH i2c: E2 0E 00 65 29 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 98 [22:59:32]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [22:59:32]wFMCommunicate OK [22:59:32]SAM_PROTO_GetShiftState done [22:59:32]FM_GetShiftState done [22:59:32]req_shift_opened done [22:59:32]requested_item shift.open_date is exist - process it [22:59:32]req_shift_open_date [22:59:32]req_shift_open_date done [22:59:32]produce_requested_data done [22:59:32]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118326,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [22:59:32]process_action_free close_receipt [22:59:32]json_value_free [22:59:32]json_value_free done [22:59:32]process_json_proto returns [22:59:32]Send response to host [22:59:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118326,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [22:59:32]free response buf [22:59:32]execute_script done [22:59:32]execute_script returns [22:59:32]free content buf [22:59:32]Sock 7.Close socket [22:59:32]Sock 7.Thread stoped [22:59:36]OFD Sender: No OFD packet to send [22:59:41]OFD Sender: No OFD packet to send [22:59:46]OFD Sender: No OFD packet to send [22:59:51]OFD Sender: No OFD packet to send [22:59:56]OFD Sender: No OFD packet to send [23:00:01]OFD Sender: No OFD packet to send [23:00:06]OFD Sender: No OFD packet to send [23:00:11]OFD Sender: No OFD packet to send [23:00:16]OFD Sender: No OFD packet to send [23:00:21]OFD Sender: No OFD packet to send [23:00:26]OFD Sender: No OFD packet to send [23:00:31]OFD Sender: No OFD packet to send [23:00:36]OFD Sender: No OFD packet to send [23:00:41]OFD Sender: No OFD packet to send [23:00:41]accept exits with 9 [23:00:41]New connection [23:00:41]New thread 3066953060 created [23:00:41]Thread 3067096420 joined [23:00:41]Waiting for new connection... [23:00:41] Sock 9.Parse request [23:00:41]Sock 9.Check first char [23:00:41]Sock 9.First char is OK [23:00:41]request: POST /json_proto HTTP/1.0 [23:00:41]Method: POST [23:00:41]URL: /json_proto [23:00:41]Method is POST - this is cgi request [23:00:41]url: /json_proto [23:00:41]query_string will be loaded in cgi processing [23:00:41]execute_cgi json_proto POST (null) [23:00:41]execute_cgi path=json_proto method=POST [23:00:41]POST find Content-Length [23:00:41]Host: 172.17.45.7:8080 [23:00:41]Content-Length: 682 [23:00:41]Content-Type: application/json [23:00:41] [23:00:41]POST finish read [23:00:41]Found Content-Length = 682 [23:00:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "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" ] } } [23:00:41]execute_script... [23:00:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "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" ] } } [23:00:41]POST & json_proto [23:00:41]process_json_proto [23:00:41]json parsed OK: [23:00:41]protocol is kg_v1.0 [23:00:41]action value=close_receipt [23:00:41]process_action close_receipt [23:00:41]cmd_close_receipt [23:00:41]MH_GetDate [23:00:41]Write to MH i2c: F0 00 00 66 29 7E [23:00:41]Write i2c OK [23:00:41]MH_I2C_Read... [23:00:41]Read from MH i2c: F0 [23:00:41]MH_I2C_Read... [23:00:41]Read from MH i2c: F0 09 00 [23:00:41]MH_I2C_Read... [23:00:41]Read from MH i2c: F0 09 00 66 29 00 1B 7C A5 66 90 0F 3E 66 6C [23:00:41]GetLastDocTimeStamp 1722121170 [23:00:41]current date 1722121243 [23:00:41]FM_GetShiftState [23:00:41]SAM_PROTO_GetShiftState [23:00:41]wFMCommunicate request_size=4 [23:00:41]MH_SAM_APDU [23:00:41]CAPDU: 80 13 01 00 [23:00:41]Write to MH i2c: E2 08 00 67 29 80 13 01 00 00 00 00 00 0D [23:00:41]Write i2c OK [23:00:41]MH_I2C_Read... [23:00:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:41]Read from MH i2c: E2 [23:00:41]MH_I2C_Read... [23:00:41]Read from MH i2c: E2 0E 00 [23:00:41]MH_I2C_Read... [23:00:41]Read from MH i2c: E2 0E 00 67 29 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 9A [23:00:41]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [23:00:41]wFMCommunicate OK [23:00:41]SAM_PROTO_GetShiftState done [23:00:41]FM_GetShiftState done [23:00:41]opened in 1722038845 [23:00:41]opened+sec_in_day 1722125245 [23:00:41]quantity*price = 200010 [23:00:41]sum+1 = 200011 [23:00:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 270 27.07.2024 23:00 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118327 ФПД: 130101322241176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T230043&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118327&fm=130101322241176&tin=02508201610067®Number=0000000000092660&sum=200000 [23:00:42]StoreToDocumentArchive [23:00:42]shift 432 fd 118327 [23:00:42]save to /storage/0432/doc_00118327 [23:00:42]save last doc name /storage/0432/doc_00118327 to /storage/kkm_last_doc_name [23:00:42]save OK [23:00:42]Clear old archive folders... [23:00:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:00:42]tlvbuf is 01DDEB30 [23:00:42]SAM_PROTO_ClearQueue [23:00:42]wFMCommunicate request_size=4 [23:00:42]MH_SAM_APDU [23:00:42]CAPDU: 80 09 00 00 [23:00:42]Write to MH i2c: E2 08 00 74 29 80 09 00 00 00 00 00 00 0F [23:00:42]Write i2c OK [23:00:42]MH_I2C_Read... [23:00:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:00:42]Read from MH i2c: E2 [23:00:42]MH_I2C_Read... [23:00:42]Read from MH i2c: E2 03 00 [23:00:42]MH_I2C_Read... [23:00:42]Read from MH i2c: E2 03 00 74 29 00 90 00 11 [23:00:42]RAPDU: 90 00 [23:00:42]wFMCommunicate OK [23:00:42]SAM_PROTO_ClearQueue done [23:00:42]KKMCreateOFDPacket [23:00:42]OFDProtocolAddRootSTLVToBuf [23:00:42]FM_MakeSignedData [23:00:42]FM_MakeSignedData [23:00:42]SAM_PROTO_SignData [23:00:42]wFMCommunicate request_size=4 [23:00:42]MH_SAM_APDU [23:00:42]CAPDU: 80 0D 01 02 [23:00:42]Write to MH i2c: E2 08 00 75 29 80 0D 01 02 00 00 00 00 17 [23:00:42]Write i2c OK [23:00:42]MH_I2C_Read... [23:00:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:00:42]Read from MH i2c: E2 [23:00:42]MH_I2C_Read... [23:00:42]Read from MH i2c: E2 03 00 [23:00:42]MH_I2C_Read... [23:00:42]Read from MH i2c: E2 03 00 75 29 00 90 00 12 [23:00:42]RAPDU: 90 00 [23:00:42]wFMCommunicate OK [23:00:42]wFMCommunicate request_size=255 [23:00:42]MH_SAM_APDU [23:00:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 0E 01 00 00 F4 03 04 00 1B 7C A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 37 CE 01 00 35 04 06 00 76 [23:00:42]Write to MH i2c: E2 02 01 76 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 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 0E 01 00 00 F4 03 04 00 1B 7C A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 37 CE 01 00 35 04 06 00 76 00 00 7D [23:00:42]Write i2c OK [23:00:42]MH_I2C_Read... [23:00:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:42]Read from MH i2c: E2 [23:00:42]MH_I2C_Read... [23:00:42]Read from MH i2c: E2 03 00 [23:00:42]MH_I2C_Read... [23:00:42]Read from MH i2c: E2 03 00 76 29 00 90 00 13 [23:00:42]RAPDU: 90 00 [23:00:42]wFMCommunicate OK [23:00:42]wFMCommunicate request_size=10 [23:00:42]MH_SAM_APDU [23:00:42]CAPDU: 80 0D 02 02 05 53 93 18 D4 98 [23:00:42]Write to MH i2c: E2 0D 00 77 29 80 0D 02 02 05 00 53 93 18 D4 98 00 00 8E [23:00:42]Write i2c OK [23:00:42]MH_I2C_Read... [23:00:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:43]Read from MH i2c: E2 [23:00:43]MH_I2C_Read... [23:00:43]Read from MH i2c: E2 03 00 [23:00:43]MH_I2C_Read... [23:00:43]Read from MH i2c: E2 03 00 77 29 00 90 00 14 [23:00:43]RAPDU: 90 00 [23:00:43]wFMCommunicate OK [23:00:43]wFMCommunicate request_size=4 [23:00:43]MH_SAM_APDU [23:00:43]CAPDU: 80 0D 03 02 [23:00:43]Write to MH i2c: E2 08 00 78 29 80 0D 03 02 00 00 00 00 1C [23:00:43]Write i2c OK [23:00:43]MH_I2C_Read... [23:00:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:00:43]Read from MH i2c: E2 [23:00:43]MH_I2C_Read... [23:00:43]Read from MH i2c: E2 0B 00 [23:00:43]MH_I2C_Read... [23:00:43]Read from MH i2c: E2 0B 00 78 29 00 55 5B 6E 83 96 43 5D 0D 90 00 01 [23:00:43]RAPDU: 55 5B 6E 83 96 43 5D 0D 90 00 [23:00:43]wFMCommunicate OK [23:00:43]SAM_PROTO_SignData done [23:00:43]FM_MakeSignedData done [23:00:43]CreateOFDProtocolMessage [23:00:43]wFMCommunicate request_size=4 [23:00:43]MH_SAM_APDU [23:00:43]CAPDU: 80 11 00 00 [23:00:43]Write to MH i2c: E2 08 00 79 29 80 11 00 00 00 00 00 00 1C [23:00:43]Write i2c OK [23:00:43]MH_I2C_Read... [23:00:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:43]Read from MH i2c: E2 [23:00:43]MH_I2C_Read... [23:00:43]Read from MH i2c: E2 17 00 [23:00:43]MH_I2C_Read... [23:00:43]Read from MH i2c: E2 17 00 79 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 77 [23:00:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:00:43]wFMCommunicate OK [23:00:43]CreateOFDProtocolMessage done [23:00:43]OFDSenderStorePacket 118327 [23:00:43]StoreOFDPacket docnum=118327 [23:00:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 86 DB 07 01 C7 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 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 0E 01 00 00 F4 03 04 00 1B 7C A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 37 CE 01 00 35 04 06 00 76 53 93 18 D4 98 55 5B 6E 83 96 43 5D 0D [23:00:43]CheckFolder [23:00:43]dirname=/storage/ofd_packets [23:00:43]CheckFolder done [23:00:43]ProducePacketName [23:00:43]name=ofd_packets/00118327 [23:00:43]NVStorageSaveData ofd_packets/00118327 [23:00:43]File name is /storage/ofd_packets/00118327 [23:00:43]Write 301 bytes [23:00:43]NVStorageSaveData done [23:00:43]OFDSenderStorePacket done [23:00:43]KKMCreateOFDPacket done [23:00:43]NVStorageSaveData kkm_last_timestamp [23:00:43]File name is /storage/kkm_last_timestamp [23:00:43]Write 4 bytes [23:00:43]NVStorageSaveData done [23:00:43]ExternCall_PrintAddStr [23:00:43]wPrintStart [23:00:43]Write to MH i2c: 01 00 00 7A 29 A3 [23:00:43]Write i2c OK [23:00:43]MH_I2C_Read... [23:00:43]Read from MH i2c: 01 [23:00:43]MH_I2C_Read... [23:00:43]Read from MH i2c: 01 07 00 [23:00:43]MH_I2C_Read... [23:00:43]Read from MH i2c: 01 07 00 7A 29 00 00 00 00 00 FF 0F B8 [23:00:43]RasterBufferAndPrint [23:00:43]line Счет N : (1)949202 [23:00:43]line ИНН: 02508201610067 [23:00:43]line Контрольно-Кассовый Чек [23:00:43]line ПРОДАЖА [23:00:43]line ТРК (МРК, ГНК) : 31 [23:00:43]line Товар: 2710124130 [23:00:43]line Аи-92-К-4 [23:00:43]line 29.500 * 67.80 [23:00:43]line = 2000.10 [23:00:43]line НДС 12% НСП 1% [23:00:43]line > о реализуемом товаре [23:00:43]line ОКРУГЛЕНИЕ: -0.10 [23:00:43]line ИТОГО: 2000.00 [23:00:43]line Внесено: 2000.00 [23:00:43]line СДАЧА: 0.00 [23:00:43]line НСП 1% : 17.70 [23:00:43]line НДС 12% : 212.40 [23:00:43]line Наличными: 2000.00 [23:00:43]line Безнал.: 0.00 [23:00:43]line Место: АЗС № 134 "Партнер Нефть" [23:00:43]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [23:00:43]line СНО: Общий режим [23:00:43]line Чек 270 27.07.2024 23:00 [23:00:43]line Смена: 432 ФФД: 1.0 [23:00:43]line ЗНМ: 0300000044 [23:00:43]line РНМ: 0000000000092660 [23:00:43]line Версия ККМ: 001 [23:00:43]line ФМ: 0000000000874939 [23:00:43]line ФД: 118327 [23:00:43]line ФПД: 130101322241176 [23:00:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T230043&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118327&fm=130101322241176&tin=02508201610067®Number=0000000000092660&sum=200000 [23:00:43]written 0, free lines is 4095 [23:00:43]OFD Sender: Processing packet 118327 [packets to send 86, broken 85] [23:00:43]ProducePacketName [23:00:43]name=ofd_packets/00118327 [23:00:43]OFD Sender: To server: pG, [23:00:43]CommunicateWithHost lk.salyk.kg:30040 [23:00:43]ConnectInit lk.salyk.kg [23:00:43]Connected sock=7 [23:00:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 86 DB 07 01 C7 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 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 0E 01 00 00 F4 03 04 00 1B 7C A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 37 CE 01 00 35 04 06 00 76 53 93 18 D4 98 55 5B 6E 83 96 43 5D 0D [23:00:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 80 69 47 00 63 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 34 39 33 39 10 04 04 00 37 CE 01 00 F4 03 04 00 AD 29 A5 66 B6 04 01 00 00 A9 1A 04 39 B8 5E 7F 98 [23:00:43]CommunicateWithHost err = 0 [23:00:43]CheckOFDResponse [23:00:43]1017 (14) - 77093643461234 [23:00:43]1041 (16) - 0000000000874939 [23:00:43]1040 (4) - 118327 [23:00:43]1012 (4) - 27.07.2024 17:09 [23:00:43]1206 (1) - 0 [23:00:43]OFD Sender: Remove packet 118327 [23:00:43]ProducePacketName [23:00:43]name=ofd_packets/00118327 [23:00:43]NVStorageDeleteData [23:00:43]Write to MH i2c: 01 00 00 A4 29 CD [23:00:43]Write i2c OK [23:00:43]MH_I2C_Read... [23:00:43]Read from MH i2c: 01 [23:00:43]MH_I2C_Read... [23:00:43]Read from MH i2c: 01 07 00 [23:00:43]MH_I2C_Read... [23:00:43]Read from MH i2c: 01 07 00 A4 29 00 00 00 00 00 E3 0C C3 [23:00:43]RasterBufferAndPrint [23:00:43]line [23:00:43]line [23:00:43]line [23:00:43]line [23:00:43]line [23:00:43]written 0, free lines is 3305 [23:00:43]MH_Cut [23:00:43]Write to MH i2c: D1 01 00 AB 29 01 A6 [23:00:43]Write i2c OK [23:00:43]MH_I2C_Read... [23:00:43]Read from MH i2c: D1 [23:00:43]MH_I2C_Read... [23:00:43]Read from MH i2c: D1 01 00 [23:00:43]MH_I2C_Read... [23:00:43]Read from MH i2c: D1 01 00 AB 29 00 A5 [23:00:43]Write to MH i2c: 01 00 00 AC 29 D5 [23:00:43]Write i2c OK [23:00:43]MH_I2C_Read... [23:00:44]OFD Sender: No OFD packet to send [23:00:44]*** Cut start [23:00:44]*** Partial cut [23:00:44]*** CUTSNS_PIN = 1 [23:00:44]*** CUTSNS_PIN = 0 [23:00:44]*** Brake cut motor [23:00:45]Read from MH i2c: 01 [23:00:45]MH_I2C_Read... [23:00:45]*** Stop cut motor [23:00:45]*** Cut end [23:00:45]Read from MH i2c: 01 07 00 [23:00:45]MH_I2C_Read... [23:00:45]Read from MH i2c: 01 07 00 AC 29 00 00 00 00 00 FF 0F EA [23:00:45]process_action close_receipt done [23:00:45]requested_data is exist [23:00:45]produce_requested_data [23:00:45]requested_item fm.sn is exist - process it [23:00:45]wFMCommunicate request_size=4 [23:00:45]MH_SAM_APDU [23:00:45]CAPDU: 80 11 00 00 [23:00:45]Write to MH i2c: E2 08 00 AD 29 80 11 00 00 00 00 00 00 50 [23:00:45]Write i2c OK [23:00:45]MH_I2C_Read... [23:00:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:45]Read from MH i2c: E2 [23:00:45]MH_I2C_Read... [23:00:45]Read from MH i2c: E2 17 00 [23:00:45]MH_I2C_Read... [23:00:45]Read from MH i2c: E2 17 00 AD 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AB [23:00:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:00:45]wFMCommunicate OK [23:00:45]requested_item fd.num is exist - process it [23:00:45]SAM_PROTO_GetFieldsCounters [23:00:45]wFMCommunicate request_size=4 [23:00:45]MH_SAM_APDU [23:00:45]CAPDU: 80 13 00 00 [23:00:45]Write to MH i2c: E2 08 00 AE 29 80 13 00 00 00 00 00 00 53 [23:00:45]Write i2c OK [23:00:45]MH_I2C_Read... [23:00:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:00:45]Read from MH i2c: E2 [23:00:45]MH_I2C_Read... [23:00:45]Read from MH i2c: E2 62 00 [23:00:45]MH_I2C_Read... [23:00:45]Read from MH i2c: E2 62 00 AE 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 37 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 5E [23:00:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 37 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:00:45]wFMCommunicate OK [23:00:45]SAM_PROTO_GetFieldsCounters done [23:00:45]requested_item shift.num is exist - process it [23:00:45]requested_item shift.opened is exist - process it [23:00:45]req_shift_opened [23:00:45]FM_GetShiftState [23:00:45]SAM_PROTO_GetShiftState [23:00:45]wFMCommunicate request_size=4 [23:00:45]MH_SAM_APDU [23:00:45]CAPDU: 80 13 01 00 [23:00:45]Write to MH i2c: E2 08 00 AF 29 80 13 01 00 00 00 00 00 55 [23:00:45]Write i2c OK [23:00:45]MH_I2C_Read... [23:00:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:45]Read from MH i2c: E2 [23:00:45]MH_I2C_Read... [23:00:45]Read from MH i2c: E2 0E 00 [23:00:45]MH_I2C_Read... [23:00:45]Read from MH i2c: E2 0E 00 AF 29 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 E2 [23:00:45]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [23:00:45]wFMCommunicate OK [23:00:45]SAM_PROTO_GetShiftState done [23:00:45]FM_GetShiftState done [23:00:45]req_shift_opened done [23:00:45]requested_item shift.open_date is exist - process it [23:00:45]req_shift_open_date [23:00:45]req_shift_open_date done [23:00:45]produce_requested_data done [23:00:45]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118327,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [23:00:45]process_action_free close_receipt [23:00:45]json_value_free [23:00:45]json_value_free done [23:00:45]process_json_proto returns [23:00:45]Send response to host [23:00:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118327,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [23:00:45]free response buf [23:00:45]execute_script done [23:00:45]execute_script returns [23:00:45]free content buf [23:00:45]Sock 9.Close socket [23:00:45]Sock 9.Thread stoped [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:55]OFD Sender: No OFD packet to send [23:12:00]OFD Sender: No OFD packet to send [23:12:05]OFD Sender: No OFD packet to send [23:12:10]OFD Sender: No OFD packet to send [23:12:15]OFD Sender: No OFD packet to send [23:12:20]OFD Sender: No OFD packet to send [23:12:25]OFD Sender: No OFD packet to send [23:12:30]OFD Sender: No OFD packet to send [23:12:35]OFD Sender: No OFD packet to send [23:12:40]OFD Sender: No OFD packet to send [23:12:45]OFD Sender: No OFD packet to send [23:12:50]OFD Sender: No OFD packet to send [23:12:55]OFD Sender: No OFD packet to send [23:13:00]OFD Sender: No OFD packet to send [23:13:05]OFD Sender: No OFD packet to send [23:13:10]OFD Sender: No OFD packet to send [23:13:15]OFD Sender: No OFD packet to send [23:13:20]OFD Sender: No OFD packet to send [23:13:25]OFD Sender: No OFD packet to send [23:13:30]OFD Sender: No OFD packet to send [23:13:35]OFD Sender: No OFD packet to send [23:13:40]OFD Sender: No OFD packet to send [23:13:45]OFD Sender: No OFD packet to send [23:13:50]OFD Sender: No OFD packet to send [23:13:55]OFD Sender: No OFD packet to send [23:14:00]OFD Sender: No OFD packet to send [23:14:05]OFD Sender: No OFD packet to send [23:14:10]OFD Sender: No OFD packet to send [23:14:15]OFD Sender: No OFD packet to send [23:14:20]OFD Sender: No OFD packet to send [23:14:25]OFD Sender: No OFD packet to send [23:14:30]OFD Sender: No OFD packet to send [23:14:35]OFD Sender: No OFD packet to send [23:14:40]OFD Sender: No OFD packet to send [23:14:45]OFD Sender: No OFD packet to send [23:14:50]OFD Sender: No OFD packet to send [23:14:55]OFD Sender: No OFD packet to send [23:15:00]OFD Sender: No OFD packet to send [23:15:05]OFD Sender: No OFD packet to send [23:15:10]OFD Sender: No OFD packet to send [23:15:15]OFD Sender: No OFD packet to send [23:15:20]OFD Sender: No OFD packet to send [23:15:25]OFD Sender: No OFD packet to send [23:15:30]OFD Sender: No OFD packet to send [23:15:35]OFD Sender: No OFD packet to send [23:15:40]OFD Sender: No OFD packet to send [23:15:45]OFD Sender: No OFD packet to send [23:15:50]OFD Sender: No OFD packet to send [23:15:55]OFD Sender: No OFD packet to send [23:16:00]OFD Sender: No OFD packet to send [23:16:05]OFD Sender: No OFD packet to send [23:16:10]OFD Sender: No OFD packet to send [23:16:15]OFD Sender: No OFD packet to send [23:16:20]OFD Sender: No OFD packet to send [23:16: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:30]OFD Sender: No OFD packet to send [23:23:35]OFD Sender: No OFD packet to send [23:23:40]OFD Sender: No OFD packet to send [23:23:45]OFD Sender: No OFD packet to send [23:23:50]OFD Sender: No OFD packet to send [23:23:55]OFD Sender: No OFD packet to send [23:24:00]OFD Sender: No OFD packet to send [23:24:05]OFD Sender: No OFD packet to send [23:24:10]OFD Sender: No OFD packet to send [23:24:15]OFD Sender: No OFD packet to send [23:24:20]OFD Sender: No OFD packet to send [23:24:25]OFD Sender: No OFD packet to send [23:24:30]OFD Sender: No OFD packet to send [23:24:35]OFD Sender: No OFD packet to send [23:24:40]OFD Sender: No OFD packet to send [23:24:45]OFD Sender: No OFD packet to send [23:24:50]OFD Sender: No OFD packet to send [23:24:55]OFD Sender: No OFD packet to send [23:25:00]OFD Sender: No OFD packet to send [23:25:05]OFD Sender: No OFD packet to send [23:25:10]OFD Sender: No OFD packet to send [23:25:15]OFD Sender: No OFD packet to send [23:25:20]OFD Sender: No OFD packet to send [23:25:25]OFD Sender: No OFD packet to send [23:25:30]OFD Sender: No OFD packet to send [23:25:35]OFD Sender: No OFD packet to send [23:25:40]OFD Sender: No OFD packet to send [23:25:45]OFD Sender: No OFD packet to send [23:25:50]OFD Sender: No OFD packet to send [23:25:55]OFD Sender: No OFD packet to send [23:26:00]OFD Sender: No OFD packet to send [23:26:05]OFD Sender: No OFD packet to send [23:26:10]OFD Sender: No OFD packet to send [23:26:15]OFD Sender: No OFD packet to send [23:26:20]OFD Sender: No OFD packet to send [23:26:25]OFD Sender: No OFD packet to send [23:26:30]OFD Sender: No OFD packet to send [23:26:35]OFD Sender: No OFD packet to send [23:26:40]OFD Sender: No OFD packet to send [23:26:45]OFD Sender: No OFD packet to send [23:26:50]OFD Sender: No OFD packet to send [23:26:55]OFD Sender: No OFD packet to send [23:27:00]OFD Sender: No OFD packet to send [23:27:05]OFD Sender: No OFD packet to send [23:27:10]OFD Sender: No OFD packet to send [23:27:15]OFD Sender: No OFD packet to send [23:27:20]OFD Sender: No OFD packet to send [23:27:25]OFD Sender: No OFD packet to send [23:27:30]OFD Sender: No OFD packet to send [23:27:35]OFD Sender: No OFD packet to send [23:27:40]OFD Sender: No OFD packet to send [23:27:45]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:11]OFD Sender: No OFD packet to send [23:38:16]OFD Sender: No OFD packet to send [23:38:21]OFD Sender: No OFD packet to send [23:38:26]OFD Sender: No OFD packet to send [23:38:31]OFD Sender: No OFD packet to send [23:38:36]OFD Sender: No OFD packet to send [23:38:41]OFD Sender: No OFD packet to send [23:38:46]OFD Sender: No OFD packet to send [23:38:51]OFD Sender: No OFD packet to send [23:38:56]OFD Sender: No OFD packet to send [23:38:59]accept exits with 10 [23:38:59]New connection [23:38:59]New thread 3067096420 created [23:38:59]Thread 3066953060 joined [23:38:59]Waiting for new connection... [23:38:59] Sock 10.Parse request [23:38:59]Sock 10.Check first char [23:38:59]Sock 10.First char is OK [23:38:59]request: POST /json_proto HTTP/1.0 [23:38:59]Method: POST [23:38:59]URL: /json_proto [23:38:59]Method is POST - this is cgi request [23:38:59]url: /json_proto [23:38:59]query_string will be loaded in cgi processing [23:38:59]execute_cgi json_proto POST (null) [23:38:59]execute_cgi path=json_proto method=POST [23:38:59]POST find Content-Length [23:38:59]Host: 172.17.45.7:8080 [23:38:59]Content-Length: 680 [23:38:59]Content-Type: application/json [23:38:59] [23:38:59]POST finish read [23:38:59]Found Content-Length = 680 [23:38:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 104.990, "sum" : 8000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:59]execute_script... [23:38: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)949203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 104.990, "sum" : 8000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:59]POST & json_proto [23:38:59]process_json_proto [23:38:59]json parsed OK: [23:38:59]protocol is kg_v1.0 [23:38:59]action value=close_receipt [23:38:59]process_action close_receipt [23:38:59]cmd_close_receipt [23:38:59]MH_GetDate [23:38:59]Write to MH i2c: F0 00 00 B0 29 C8 [23:38:59]Write i2c OK [23:38:59]MH_I2C_Read... [23:38:59]Read from MH i2c: F0 [23:38:59]MH_I2C_Read... [23:38:59]Read from MH i2c: F0 09 00 [23:38:59]MH_I2C_Read... [23:38:59]Read from MH i2c: F0 09 00 B0 29 00 15 85 A5 66 90 0F 3E 66 B9 [23:38:59]GetLastDocTimeStamp 1722121243 [23:38:59]current date 1722123541 [23:38:59]FM_GetShiftState [23:38:59]SAM_PROTO_GetShiftState [23:38:59]wFMCommunicate request_size=4 [23:38:59]MH_SAM_APDU [23:38:59]CAPDU: 80 13 01 00 [23:38:59]Write to MH i2c: E2 08 00 B1 29 80 13 01 00 00 00 00 00 57 [23:38:59]Write i2c OK [23:38:59]MH_I2C_Read... [23:38:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:59]Read from MH i2c: E2 [23:38:59]MH_I2C_Read... [23:38:59]Read from MH i2c: E2 0E 00 [23:38:59]MH_I2C_Read... [23:38:59]Read from MH i2c: E2 0E 00 B1 29 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 E4 [23:38:59]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [23:38:59]wFMCommunicate OK [23:38:59]SAM_PROTO_GetShiftState done [23:38:59]FM_GetShiftState done [23:38:59]opened in 1722038845 [23:38:59]opened+sec_in_day 1722125245 [23:38:59]quantity*price = 800023 [23:38:59]sum+1 = 800025 [23:38:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 8000.00 Внесено: 8000.00 СДАЧА: 0.00 НСП 1% : 70.80 НДС 12% : 849.58 Наличными: 8000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 271 27.07.2024 23:39 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118328 ФПД: 139042829813440 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T233901&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118328&fm=139042829813440&tin=02508201610067®Number=0000000000092660&sum=800000 [23:39:00]StoreToDocumentArchive [23:39:00]shift 432 fd 118328 [23:39:00]save to /storage/0432/doc_00118328 [23:39:00]save last doc name /storage/0432/doc_00118328 to /storage/kkm_last_doc_name [23:39:00]save OK [23:39:00]Clear old archive folders... [23:39:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:39:00]tlvbuf is 01E193E0 [23:39:00]SAM_PROTO_ClearQueue [23:39:00]wFMCommunicate request_size=4 [23:39:00]MH_SAM_APDU [23:39:00]CAPDU: 80 09 00 00 [23:39:00]Write to MH i2c: E2 08 00 BE 29 80 09 00 00 00 00 00 00 59 [23:39:00]Write i2c OK [23:39:00]MH_I2C_Read... [23:39:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:39:00]Read from MH i2c: E2 [23:39:00]MH_I2C_Read... [23:39:00]Read from MH i2c: E2 03 00 [23:39:00]MH_I2C_Read... [23:39:00]Read from MH i2c: E2 03 00 BE 29 00 90 00 5B [23:39:00]RAPDU: 90 00 [23:39:00]wFMCommunicate OK [23:39:00]SAM_PROTO_ClearQueue done [23:39:00]KKMCreateOFDPacket [23:39:00]OFDProtocolAddRootSTLVToBuf [23:39:00]FM_MakeSignedData [23:39:00]FM_MakeSignedData [23:39:00]SAM_PROTO_SignData [23:39:00]wFMCommunicate request_size=4 [23:39:00]MH_SAM_APDU [23:39:00]CAPDU: 80 0D 01 02 [23:39:00]Write to MH i2c: E2 08 00 BF 29 80 0D 01 02 00 00 00 00 61 [23:39:00]Write i2c OK [23:39:00]MH_I2C_Read... [23:39:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:39:00]Read from MH i2c: E2 [23:39:00]MH_I2C_Read... [23:39:00]Read from MH i2c: E2 03 00 [23:39:00]MH_I2C_Read... [23:39:00]Read from MH i2c: E2 03 00 BF 29 00 90 00 5C [23:39:00]RAPDU: 90 00 [23:39:00]wFMCommunicate OK [23:39:00]wFMCommunicate request_size=255 [23:39:00]MH_SAM_APDU [23:39: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 15 85 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 38 CE 01 00 35 04 06 00 7E 75 6E 7A [23:39:00]Write to MH i2c: E2 02 01 C0 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 15 85 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 38 CE 01 00 35 04 06 00 7E 75 6E 7A 00 00 73 [23:39:00]Write i2c OK [23:39:00]MH_I2C_Read... [23:39:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:00]Read from MH i2c: E2 [23:39:00]MH_I2C_Read... [23:39:00]Read from MH i2c: E2 03 00 [23:39:00]MH_I2C_Read... [23:39:00]Read from MH i2c: E2 03 00 C0 29 00 90 00 5D [23:39:00]RAPDU: 90 00 [23:39:00]wFMCommunicate OK [23:39:00]wFMCommunicate request_size=7 [23:39:00]MH_SAM_APDU [23:39:00]CAPDU: 80 0D 02 02 02 C6 C0 [23:39:00]Write to MH i2c: E2 0A 00 C1 29 80 0D 02 02 02 00 C6 C0 00 00 EE [23:39:00]Write i2c OK [23:39:00]MH_I2C_Read... [23:39:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:00]Read from MH i2c: E2 [23:39:00]MH_I2C_Read... [23:39:00]Read from MH i2c: E2 03 00 [23:39:00]MH_I2C_Read... [23:39:00]Read from MH i2c: E2 03 00 C1 29 00 90 00 5E [23:39:00]RAPDU: 90 00 [23:39:00]wFMCommunicate OK [23:39:00]wFMCommunicate request_size=4 [23:39:00]MH_SAM_APDU [23:39:00]CAPDU: 80 0D 03 02 [23:39:00]Write to MH i2c: E2 08 00 C2 29 80 0D 03 02 00 00 00 00 66 [23:39:00]Write i2c OK [23:39:00]MH_I2C_Read... [23:39:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:39:00]Read from MH i2c: E2 [23:39:00]MH_I2C_Read... [23:39:00]Read from MH i2c: E2 0B 00 [23:39:00]MH_I2C_Read... [23:39:00]Read from MH i2c: E2 0B 00 C2 29 00 38 AC 2A 45 F0 CE 78 10 90 00 00 [23:39:00]RAPDU: 38 AC 2A 45 F0 CE 78 10 90 00 [23:39:00]wFMCommunicate OK [23:39:00]SAM_PROTO_SignData done [23:39:00]FM_MakeSignedData done [23:39:00]CreateOFDProtocolMessage [23:39:00]wFMCommunicate request_size=4 [23:39:00]MH_SAM_APDU [23:39:00]CAPDU: 80 11 00 00 [23:39:00]Write to MH i2c: E2 08 00 C3 29 80 11 00 00 00 00 00 00 66 [23:39:00]Write i2c OK [23:39:00]MH_I2C_Read... [23:39:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:00]Read from MH i2c: E2 [23:39:00]MH_I2C_Read... [23:39:00]Read from MH i2c: E2 17 00 [23:39:00]MH_I2C_Read... [23:39:00]Read from MH i2c: E2 17 00 C3 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C1 [23:39:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:39:00]wFMCommunicate OK [23:39:00]CreateOFDProtocolMessage done [23:39:00]OFDSenderStorePacket 118328 [23:39:00]StoreOFDPacket docnum=118328 [23:39:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 43 55 04 01 EE BF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 15 85 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 38 CE 01 00 35 04 06 00 7E 75 6E 7A C6 C0 38 AC 2A 45 F0 CE 78 10 [23:39:00]CheckFolder [23:39:00]dirname=/storage/ofd_packets [23:39:00]CheckFolder done [23:39:00]ProducePacketName [23:39:00]name=ofd_packets/00118328 [23:39:00]NVStorageSaveData ofd_packets/00118328 [23:39:00]File name is /storage/ofd_packets/00118328 [23:39:00]Write 298 bytes [23:39:00]NVStorageSaveData done [23:39:00]OFDSenderStorePacket done [23:39:00]KKMCreateOFDPacket done [23:39:00]NVStorageSaveData kkm_last_timestamp [23:39:00]File name is /storage/kkm_last_timestamp [23:39:00]Write 4 bytes [23:39:00]NVStorageSaveData done [23:39:00]ExternCall_PrintAddStr [23:39:00]wPrintStart [23:39:00]Write to MH i2c: 01 00 00 C4 29 ED [23:39:00]Write i2c OK [23:39:00]MH_I2C_Read... [23:39:00]Read from MH i2c: 01 [23:39:00]MH_I2C_Read... [23:39:00]Read from MH i2c: 01 07 00 [23:39:00]MH_I2C_Read... [23:39:00]Read from MH i2c: 01 07 00 C4 29 00 00 00 00 00 FF 0F 02 [23:39:00]RasterBufferAndPrint [23:39:00]line Счет N : (1)949203 [23:39:00]line ИНН: 02508201610067 [23:39:00]line Контрольно-Кассовый Чек [23:39:00]line ПРОДАЖА [23:39:00]line ТРК (МРК, ГНК) : 11 [23:39:00]line Товар: 2710194800 [23:39:00]line ДТ-К-5 [23:39:00]line 104.990 * 76.20 [23:39:00]line = 8000.24 [23:39:00]line НДС 12% НСП 1% [23:39:00]line > о реализуемом товаре [23:39:00]line ОКРУГЛЕНИЕ: -0.24 [23:39:00]line ИТОГО: 8000.00 [23:39:00]line Внесено: 8000.00 [23:39:00]line СДАЧА: 0.00 [23:39:00]line НСП 1% : 70.80 [23:39:00]line НДС 12% : 849.58 [23:39:00]line Наличными: 8000.00 [23:39:00]line Безнал.: 0.00 [23:39:00]line Место: АЗС № 134 "Партнер Нефть" [23:39:00]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [23:39:00]line СНО: Общий режим [23:39:00]line Чек 271 27.07.2024 23:39 [23:39:00]line Смена: 432 ФФД: 1.0 [23:39:00]line ЗНМ: 0300000044 [23:39:00]line РНМ: 0000000000092660 [23:39:00]line Версия ККМ: 001 [23:39:00]line ФМ: 0000000000874939 [23:39:00]line ФД: 118328 [23:39:00]line ФПД: 139042829813440 [23:39:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T233901&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118328&fm=139042829813440&tin=02508201610067®Number=0000000000092660&sum=800000 [23:39:01]OFD Sender: Processing packet 118328 [packets to send 86, broken 85] [23:39:01]ProducePacketName [23:39:01]name=ofd_packets/00118328 [23:39:01]OFD Sender: To server: pG, [23:39:01]CommunicateWithHost lk.salyk.kg:30040 [23:39:01]ConnectInit lk.salyk.kg [23:39:01]written 0, free lines is 4095 [23:39:01]Connected sock=9 [23:39:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 43 55 04 01 EE BF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 15 85 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 38 CE 01 00 35 04 06 00 7E 75 6E 7A C6 C0 38 AC 2A 45 F0 CE 78 10 [23:39:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F8 77 47 00 AF 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 34 39 33 39 10 04 04 00 38 CE 01 00 F4 03 04 00 A6 32 A5 66 B6 04 01 00 00 54 8E 06 22 4B 5E EB BB [23:39:01]CommunicateWithHost err = 0 [23:39:01]CheckOFDResponse [23:39:01]1017 (14) - 77093643461234 [23:39:01]1041 (16) - 0000000000874939 [23:39:01]1040 (4) - 118328 [23:39:01]1012 (4) - 27.07.2024 17:47 [23:39:01]1206 (1) - 0 [23:39:01]OFD Sender: Remove packet 118328 [23:39:01]ProducePacketName [23:39:01]name=ofd_packets/00118328 [23:39:01]NVStorageDeleteData [23:39:01]Write to MH i2c: 01 00 00 EE 29 17 [23:39:01]Write i2c OK [23:39:01]MH_I2C_Read... [23:39:01]Read from MH i2c: 01 [23:39:01]MH_I2C_Read... [23:39:01]Read from MH i2c: 01 07 00 [23:39:01]MH_I2C_Read... [23:39:01]Read from MH i2c: 01 07 00 EE 29 00 00 00 00 00 FA 0C 24 [23:39:01]RasterBufferAndPrint [23:39:01]line [23:39:01]line [23:39:01]line [23:39:01]line [23:39:01]line [23:39:01]written 0, free lines is 3328 [23:39:01]MH_Cut [23:39:01]Write to MH i2c: D1 01 00 F5 29 01 F0 [23:39:01]Write i2c OK [23:39:01]MH_I2C_Read... [23:39:01]Read from MH i2c: D1 [23:39:01]MH_I2C_Read... [23:39:01]Read from MH i2c: D1 01 00 [23:39:01]MH_I2C_Read... [23:39:01]Read from MH i2c: D1 01 00 F5 29 00 EF [23:39:01]Write to MH i2c: 01 00 00 F6 29 1F [23:39:01]Write i2c OK [23:39:01]MH_I2C_Read... [23:39:02]OFD Sender: No OFD packet to send [23:39:02]*** Cut start [23:39:02]*** Partial cut [23:39:02]*** CUTSNS_PIN = 1 [23:39:02]*** CUTSNS_PIN = 0 [23:39:02]*** Brake cut motor [23:39:02]Read from MH i2c: 01 [23:39:02]MH_I2C_Read... [23:39:02]*** Stop cut motor [23:39:02]*** Cut end [23:39:02]Read from MH i2c: 01 07 00 [23:39:02]MH_I2C_Read... [23:39:02]Read from MH i2c: 01 07 00 F6 29 00 00 00 00 00 FF 0F 34 [23:39:02]process_action close_receipt done [23:39:02]requested_data is exist [23:39:02]produce_requested_data [23:39:02]requested_item fm.sn is exist - process it [23:39:02]wFMCommunicate request_size=4 [23:39:02]MH_SAM_APDU [23:39:02]CAPDU: 80 11 00 00 [23:39:02]Write to MH i2c: E2 08 00 F7 29 80 11 00 00 00 00 00 00 9A [23:39:02]Write i2c OK [23:39:02]MH_I2C_Read... [23:39:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:03]Read from MH i2c: E2 [23:39:03]MH_I2C_Read... [23:39:03]Read from MH i2c: E2 17 00 [23:39:03]MH_I2C_Read... [23:39:03]Read from MH i2c: E2 17 00 F7 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F5 [23:39:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:39:03]wFMCommunicate OK [23:39:03]requested_item fd.num is exist - process it [23:39:03]SAM_PROTO_GetFieldsCounters [23:39:03]wFMCommunicate request_size=4 [23:39:03]MH_SAM_APDU [23:39:03]CAPDU: 80 13 00 00 [23:39:03]Write to MH i2c: E2 08 00 F8 29 80 13 00 00 00 00 00 00 9D [23:39:03]Write i2c OK [23:39:03]MH_I2C_Read... [23:39:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:39:03]Read from MH i2c: E2 [23:39:03]MH_I2C_Read... [23:39:03]Read from MH i2c: E2 62 00 [23:39:03]MH_I2C_Read... [23:39:03]Read from MH i2c: E2 62 00 F8 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 38 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 AC [23:39:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 38 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:39:03]wFMCommunicate OK [23:39:03]SAM_PROTO_GetFieldsCounters done [23:39:03]requested_item shift.num is exist - process it [23:39:03]requested_item shift.opened is exist - process it [23:39:03]req_shift_opened [23:39:03]FM_GetShiftState [23:39:03]SAM_PROTO_GetShiftState [23:39:03]wFMCommunicate request_size=4 [23:39:03]MH_SAM_APDU [23:39:03]CAPDU: 80 13 01 00 [23:39:03]Write to MH i2c: E2 08 00 F9 29 80 13 01 00 00 00 00 00 9F [23:39:03]Write i2c OK [23:39:03]MH_I2C_Read... [23:39:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:03]Read from MH i2c: E2 [23:39:03]MH_I2C_Read... [23:39:03]Read from MH i2c: E2 0E 00 [23:39:03]MH_I2C_Read... [23:39:03]Read from MH i2c: E2 0E 00 F9 29 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 2C [23:39:03]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [23:39:03]wFMCommunicate OK [23:39:03]SAM_PROTO_GetShiftState done [23:39:03]FM_GetShiftState done [23:39:03]req_shift_opened done [23:39:03]requested_item shift.open_date is exist - process it [23:39:03]req_shift_open_date [23:39:03]req_shift_open_date done [23:39:03]produce_requested_data done [23:39:03]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118328,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [23:39:03]process_action_free close_receipt [23:39:03]json_value_free [23:39:03]json_value_free done [23:39:03]process_json_proto returns [23:39:03]Send response to host [23:39:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118328,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [23:39:03]free response buf [23:39:03]execute_script done [23:39:03]execute_script returns [23:39:03]free content buf [23:39:03]Sock 10.Close socket [23:39:03]Sock 10.Thread stoped [23:39:07]OFD Sender: No OFD packet to send [23:39:12]OFD Sender: No OFD packet to send [23:39:17]OFD Sender: No OFD packet to send [23:39:22]OFD Sender: No OFD packet to send [23:39:27]OFD Sender: No OFD packet to send [23:39:32]OFD Sender: No OFD packet to send [23:39:37]OFD Sender: No OFD packet to send [23:39:42]OFD Sender: No OFD packet to send [23:39:47]OFD Sender: No OFD packet to send [23:39:52]OFD Sender: No OFD packet to send [23:39:57]OFD Sender: No OFD packet to send [23:40:02]OFD Sender: No OFD packet to send [23:40:07]OFD Sender: No OFD packet to send [23:40:12]OFD Sender: No OFD packet to send [23:40:17]OFD Sender: No OFD packet to send [23:40:22]OFD Sender: No OFD packet to send [23:40:27]OFD Sender: No OFD packet to send [23:40:32]OFD Sender: No OFD packet to send [23:40:37]OFD Sender: No OFD packet to send [23:40:42]OFD Sender: No OFD packet to send [23:40:47]OFD Sender: No OFD packet to send [23:40:52]OFD Sender: No OFD packet to send [23:40:57]OFD Sender: No OFD packet to send [23:41:02]OFD Sender: No OFD packet to send [23:41:07]OFD Sender: No OFD packet to send [23:41:12]OFD Sender: No OFD packet to send [23:41:17]OFD Sender: No OFD packet to send [23:41:22]OFD Sender: No OFD packet to send [23:41:27]OFD Sender: No OFD packet to send [23:41:32]OFD Sender: No OFD packet to send [23:41:37]OFD Sender: No OFD packet to send [23:41:42]OFD Sender: No OFD packet to send [23:41:47]OFD Sender: No OFD packet to send [23:41:52]OFD Sender: No OFD packet to send [23:41:57]OFD Sender: No OFD packet to send [23:42:02]OFD Sender: No OFD packet to send [23:42:07]OFD Sender: No OFD packet to send [23:42:12]OFD Sender: No OFD packet to send [23:42:17]OFD Sender: No OFD packet to send [23:42:22]OFD Sender: No OFD packet to send [23:42:27]OFD Sender: No OFD packet to send [23:42:32]OFD Sender: No OFD packet to send [23:42:37]OFD Sender: No OFD packet to send [23:42:42]OFD Sender: No OFD packet to send [23:42:47]OFD Sender: No OFD packet to send [23:42:52]OFD Sender: No OFD packet to send [23:42:57]OFD Sender: No OFD packet to send [23:43:02]OFD Sender: No OFD packet to send [23:43:07]OFD Sender: No OFD packet to send [23:43:12]OFD Sender: No OFD packet to send [23:43:17]OFD Sender: No OFD packet to send [23:43:22]OFD Sender: No OFD packet to send [23:43:27]OFD Sender: No OFD packet to send [23:43:32]OFD Sender: No OFD packet to send [23:43:37]OFD Sender: No OFD packet to send [23:43:42]OFD Sender: No OFD packet to send [23:43:47]OFD Sender: No OFD packet to send [23:43:52]OFD Sender: No OFD packet to send [23:43:57]OFD Sender: No OFD packet to send [23:44:02]OFD Sender: No OFD packet to send [23:44:07]OFD Sender: No OFD packet to send [23:44:12]OFD Sender: No OFD packet to send [23:44:17]OFD Sender: No OFD packet to send [23:44:22]OFD Sender: No OFD packet to send [23:44:27]OFD Sender: No OFD packet to send [23:44:32]OFD Sender: No OFD packet to send [23:44:37]OFD Sender: No OFD packet to send [23:44:42]OFD Sender: No OFD packet to send [23:44:47]OFD Sender: No OFD packet to send [23:44:52]OFD Sender: No OFD packet to send [23:44:57]OFD Sender: No OFD packet to send [23:45:02]OFD Sender: No OFD packet to send [23:45:07]OFD Sender: No OFD packet to send [23:45:12]OFD Sender: No OFD packet to send [23:45:17]OFD Sender: No OFD packet to send [23:45:22]OFD Sender: No OFD packet to send [23:45:27]OFD Sender: No OFD packet to send [23:45:32]OFD Sender: No OFD packet to send [23:45:37]OFD Sender: No OFD packet to send [23:45:42]OFD Sender: No OFD packet to send [23:45:47]OFD Sender: No OFD packet to send [23:45:47]accept exits with 7 [23:45:47]New connection [23:45:47]New thread 3066953060 created [23:45:47]Thread 3067096420 joined [23:45:47]Waiting for new connection... [23:45:47] Sock 7.Parse request [23:45:47]Sock 7.Check first char [23:45:47]Sock 7.First char is OK [23:45:47]request: POST /json_proto HTTP/1.0 [23:45:47]Method: POST [23:45:47]URL: /json_proto [23:45:47]Method is POST - this is cgi request [23:45:47]url: /json_proto [23:45:47]query_string will be loaded in cgi processing [23:45:47]execute_cgi json_proto POST (null) [23:45:47]execute_cgi path=json_proto method=POST [23:45:47]POST find Content-Length [23:45:47]Host: 172.17.45.7:8080 [23:45:47]Content-Length: 674 [23:45:47]Content-Type: application/json [23:45:47] [23:45:47]POST finish read [23:45:47]Found Content-Length = 674 [23:45:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:45:47]execute_script... [23:45: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)949204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:45:47]POST & json_proto [23:45:47]process_json_proto [23:45:47]json parsed OK: [23:45:47]protocol is kg_v1.0 [23:45:47]action value=close_receipt [23:45:47]process_action close_receipt [23:45:47]cmd_close_receipt [23:45:47]MH_GetDate [23:45:47]Write to MH i2c: F0 00 00 FA 29 12 [23:45:47]Write i2c OK [23:45:47]MH_I2C_Read... [23:45:47]Read from MH i2c: F0 [23:45:47]MH_I2C_Read... [23:45:47]Read from MH i2c: F0 09 00 [23:45:47]MH_I2C_Read... [23:45:47]Read from MH i2c: F0 09 00 FA 29 00 AD 86 A5 66 90 0F 3E 66 9C [23:45:47]GetLastDocTimeStamp 1722123541 [23:45:47]current date 1722123949 [23:45:47]FM_GetShiftState [23:45:47]SAM_PROTO_GetShiftState [23:45:47]wFMCommunicate request_size=4 [23:45:47]MH_SAM_APDU [23:45:47]CAPDU: 80 13 01 00 [23:45:47]Write to MH i2c: E2 08 00 FB 29 80 13 01 00 00 00 00 00 A1 [23:45:47]Write i2c OK [23:45:47]MH_I2C_Read... [23:45:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:45:47]Read from MH i2c: E2 [23:45:47]MH_I2C_Read... [23:45:47]Read from MH i2c: E2 0E 00 [23:45:47]MH_I2C_Read... [23:45:47]Read from MH i2c: E2 0E 00 FB 29 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 2E [23:45:47]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [23:45:47]wFMCommunicate OK [23:45:47]SAM_PROTO_GetShiftState done [23:45:47]FM_GetShiftState done [23:45:47]opened in 1722038845 [23:45:47]opened+sec_in_day 1722125245 [23:45:47]quantity*price = 50063 [23:45:47]sum+1 = 50064 [23:45:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 272 27.07.2024 23:45 Смена: 432 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118329 ФПД: 228855092025035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T234549&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118329&fm=228855092025035&tin=02508201610067®Number=0000000000092660&sum=50000 [23:45:48]StoreToDocumentArchive [23:45:48]shift 432 fd 118329 [23:45:48]save to /storage/0432/doc_00118329 [23:45:48]save last doc name /storage/0432/doc_00118329 to /storage/kkm_last_doc_name [23:45:48]save OK [23:45:48]Clear old archive folders... [23:45:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:45:48]tlvbuf is 01E05B00 [23:45:48]SAM_PROTO_ClearQueue [23:45:48]wFMCommunicate request_size=4 [23:45:48]MH_SAM_APDU [23:45:48]CAPDU: 80 09 00 00 [23:45:48]Write to MH i2c: E2 08 00 08 2A 80 09 00 00 00 00 00 00 A4 [23:45:48]Write i2c OK [23:45:48]MH_I2C_Read... [23:45:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:45:48]Read from MH i2c: E2 [23:45:48]MH_I2C_Read... [23:45:48]Read from MH i2c: E2 03 00 [23:45:48]MH_I2C_Read... [23:45:48]Read from MH i2c: E2 03 00 08 2A 00 90 00 A6 [23:45:48]RAPDU: 90 00 [23:45:48]wFMCommunicate OK [23:45:48]SAM_PROTO_ClearQueue done [23:45:48]KKMCreateOFDPacket [23:45:48]OFDProtocolAddRootSTLVToBuf [23:45:48]FM_MakeSignedData [23:45:48]FM_MakeSignedData [23:45:48]SAM_PROTO_SignData [23:45:48]wFMCommunicate request_size=4 [23:45:48]MH_SAM_APDU [23:45:48]CAPDU: 80 0D 01 02 [23:45:48]Write to MH i2c: E2 08 00 09 2A 80 0D 01 02 00 00 00 00 AC [23:45:48]Write i2c OK [23:45:48]MH_I2C_Read... [23:45:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:45:48]Read from MH i2c: E2 [23:45:48]MH_I2C_Read... [23:45:48]Read from MH i2c: E2 03 00 [23:45:48]MH_I2C_Read... [23:45:48]Read from MH i2c: E2 03 00 09 2A 00 90 00 A7 [23:45:48]RAPDU: 90 00 [23:45:48]wFMCommunicate OK [23:45:48]wFMCommunicate request_size=255 [23:45:48]MH_SAM_APDU [23:45: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 AD 86 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 39 CE 01 00 35 04 06 00 D0 24 7A 77 [23:45:48]Write to MH i2c: E2 02 01 0A 2A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 AD 86 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 39 CE 01 00 35 04 06 00 D0 24 7A 77 00 00 B1 [23:45:48]Write i2c OK [23:45:48]MH_I2C_Read... [23:45:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:45:49]Read from MH i2c: E2 [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: E2 03 00 [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: E2 03 00 0A 2A 00 90 00 A8 [23:45:49]RAPDU: 90 00 [23:45:49]wFMCommunicate OK [23:45:49]wFMCommunicate request_size=7 [23:45:49]MH_SAM_APDU [23:45:49]CAPDU: 80 0D 02 02 02 16 CB [23:45:49]Write to MH i2c: E2 0A 00 0B 2A 80 0D 02 02 02 00 16 CB 00 00 94 [23:45:49]Write i2c OK [23:45:49]MH_I2C_Read... [23:45:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:45:49]Read from MH i2c: E2 [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: E2 03 00 [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: E2 03 00 0B 2A 00 90 00 A9 [23:45:49]RAPDU: 90 00 [23:45:49]wFMCommunicate OK [23:45:49]wFMCommunicate request_size=4 [23:45:49]MH_SAM_APDU [23:45:49]CAPDU: 80 0D 03 02 [23:45:49]Write to MH i2c: E2 08 00 0C 2A 80 0D 03 02 00 00 00 00 B1 [23:45:49]Write i2c OK [23:45:49]MH_I2C_Read... [23:45:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:45:49]Read from MH i2c: E2 [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: E2 0B 00 [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: E2 0B 00 0C 2A 00 E3 14 54 D8 59 9B 27 52 90 00 42 [23:45:49]RAPDU: E3 14 54 D8 59 9B 27 52 90 00 [23:45:49]wFMCommunicate OK [23:45:49]SAM_PROTO_SignData done [23:45:49]FM_MakeSignedData done [23:45:49]CreateOFDProtocolMessage [23:45:49]wFMCommunicate request_size=4 [23:45:49]MH_SAM_APDU [23:45:49]CAPDU: 80 11 00 00 [23:45:49]Write to MH i2c: E2 08 00 0D 2A 80 11 00 00 00 00 00 00 B1 [23:45:49]Write i2c OK [23:45:49]MH_I2C_Read... [23:45:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:45:49]Read from MH i2c: E2 [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: E2 17 00 [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: E2 17 00 0D 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0C [23:45:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:45:49]wFMCommunicate OK [23:45:49]CreateOFDProtocolMessage done [23:45:49]OFDSenderStorePacket 118329 [23:45:49]StoreOFDPacket docnum=118329 [23:45:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 81 4A 04 01 2E F3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 AD 86 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 39 CE 01 00 35 04 06 00 D0 24 7A 77 16 CB E3 14 54 D8 59 9B 27 52 [23:45:49]CheckFolder [23:45:49]dirname=/storage/ofd_packets [23:45:49]CheckFolder done [23:45:49]ProducePacketName [23:45:49]name=ofd_packets/00118329 [23:45:49]NVStorageSaveData ofd_packets/00118329 [23:45:49]File name is /storage/ofd_packets/00118329 [23:45:49]Write 298 bytes [23:45:49]NVStorageSaveData done [23:45:49]OFDSenderStorePacket done [23:45:49]KKMCreateOFDPacket done [23:45:49]NVStorageSaveData kkm_last_timestamp [23:45:49]File name is /storage/kkm_last_timestamp [23:45:49]Write 4 bytes [23:45:49]NVStorageSaveData done [23:45:49]ExternCall_PrintAddStr [23:45:49]wPrintStart [23:45:49]Write to MH i2c: 01 00 00 0E 2A 38 [23:45:49]Write i2c OK [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: 01 [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: 01 07 00 [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: 01 07 00 0E 2A 00 00 00 00 00 FF 0F 4D [23:45:49]RasterBufferAndPrint [23:45:49]line Счет N : (1)949204 [23:45:49]line ИНН: 02508201610067 [23:45:49]line Контрольно-Кассовый Чек [23:45:49]line ПРОДАЖА [23:45:49]line ТРК (МРК, ГНК) : 44 [23:45:49]line Товар: 2710194800 [23:45:49]line ДТ-К-5 [23:45:49]line 6.570 * 76.20 [23:45:49]line = 500.63 [23:45:49]line НДС 12% НСП 1% [23:45:49]line > о реализуемом товаре [23:45:49]line ОКРУГЛЕНИЕ: -0.63 [23:45:49]line ИТОГО: 500.00 [23:45:49]line Внесено: 500.00 [23:45:49]line СДАЧА: 0.00 [23:45:49]line НСП 1% : 4.43 [23:45:49]line НДС 12% : 53.16 [23:45:49]line Наличными: 500.00 [23:45:49]line Безнал.: 0.00 [23:45:49]line Место: АЗС № 134 "Партнер Нефть" [23:45:49]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [23:45:49]line СНО: Общий режим [23:45:49]line Чек 272 27.07.2024 23:45 [23:45:49]line Смена: 432 ФФД: 1.0 [23:45:49]line ЗНМ: 0300000044 [23:45:49]line РНМ: 0000000000092660 [23:45:49]line Версия ККМ: 001 [23:45:49]line ФМ: 0000000000874939 [23:45:49]line ФД: 118329 [23:45:49]line ФПД: 228855092025035 [23:45:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240727T234549&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118329&fm=228855092025035&tin=02508201610067®Number=0000000000092660&sum=50000 [23:45:49]OFD Sender: Processing packet 118329 [packets to send 86, broken 85] [23:45:49]ProducePacketName [23:45:49]name=ofd_packets/00118329 [23:45:49]OFD Sender: To server: pG, [23:45:49]CommunicateWithHost lk.salyk.kg:30040 [23:45:49]ConnectInit lk.salyk.kg [23:45:49]written 0, free lines is 4095 [23:45:49]Connected sock=11 [23:45:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 81 4A 04 01 2E F3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 AD 86 A5 66 0E 04 04 00 B0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 39 CE 01 00 35 04 06 00 D0 24 7A 77 16 CB E3 14 54 D8 59 9B 27 52 [23:45:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 26 3A 47 00 C8 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 39 CE 01 00 F4 03 04 00 3F 34 A5 66 B6 04 01 00 00 68 9D 3E 93 5E D6 3F A0 [23:45:49]CommunicateWithHost err = 0 [23:45:49]CheckOFDResponse [23:45:49]1017 (14) - 77093643461234 [23:45:49]1041 (16) - 0000000000874939 [23:45:49]1040 (4) - 118329 [23:45:49]1012 (4) - 27.07.2024 17:54 [23:45:49]1206 (1) - 0 [23:45:49]OFD Sender: Remove packet 118329 [23:45:49]ProducePacketName [23:45:49]name=ofd_packets/00118329 [23:45:49]NVStorageDeleteData [23:45:50]Write to MH i2c: 01 00 00 38 2A 62 [23:45:50]Write i2c OK [23:45:50]MH_I2C_Read... [23:45:50]Read from MH i2c: 01 [23:45:50]MH_I2C_Read... [23:45:50]Read from MH i2c: 01 07 00 [23:45:50]MH_I2C_Read... [23:45:50]Read from MH i2c: 01 07 00 38 2A 00 00 00 00 00 E1 0C 56 [23:45:50]RasterBufferAndPrint [23:45:50]line [23:45:50]line [23:45:50]line [23:45:50]line [23:45:50]line [23:45:50]written 0, free lines is 3303 [23:45:50]MH_Cut [23:45:50]Write to MH i2c: D1 01 00 3F 2A 01 3B [23:45:50]Write i2c OK [23:45:50]MH_I2C_Read... [23:45:50]Read from MH i2c: D1 [23:45:50]MH_I2C_Read... [23:45:50]Read from MH i2c: D1 01 00 [23:45:50]MH_I2C_Read... [23:45:50]Read from MH i2c: D1 01 00 3F 2A 00 3A [23:45:50]Write to MH i2c: 01 00 00 40 2A 6A [23:45:50]Write i2c OK [23:45:50]MH_I2C_Read... [23:45:50]OFD Sender: No OFD packet to send [23:45:50]*** Cut start [23:45:50]*** Partial cut [23:45:50]*** CUTSNS_PIN = 1 [23:45:50]*** CUTSNS_PIN = 0 [23:45:51]*** Brake cut motor [23:45:51]Read from MH i2c: 01 [23:45:51]MH_I2C_Read... [23:45:51]*** Stop cut motor [23:45:51]*** Cut end [23:45:51]Read from MH i2c: 01 07 00 [23:45:51]MH_I2C_Read... [23:45:51]Read from MH i2c: 01 07 00 40 2A 00 00 00 00 00 FF 0F 7F [23:45:51]process_action close_receipt done [23:45:51]requested_data is exist [23:45:51]produce_requested_data [23:45:51]requested_item fm.sn is exist - process it [23:45:51]wFMCommunicate request_size=4 [23:45:51]MH_SAM_APDU [23:45:51]CAPDU: 80 11 00 00 [23:45:51]Write to MH i2c: E2 08 00 41 2A 80 11 00 00 00 00 00 00 E5 [23:45:51]Write i2c OK [23:45:51]MH_I2C_Read... [23:45:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:45:51]Read from MH i2c: E2 [23:45:51]MH_I2C_Read... [23:45:51]Read from MH i2c: E2 17 00 [23:45:51]MH_I2C_Read... [23:45:51]Read from MH i2c: E2 17 00 41 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 40 [23:45:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:45:51]wFMCommunicate OK [23:45:51]requested_item fd.num is exist - process it [23:45:51]SAM_PROTO_GetFieldsCounters [23:45:51]wFMCommunicate request_size=4 [23:45:51]MH_SAM_APDU [23:45:51]CAPDU: 80 13 00 00 [23:45:51]Write to MH i2c: E2 08 00 42 2A 80 13 00 00 00 00 00 00 E8 [23:45:51]Write i2c OK [23:45:51]MH_I2C_Read... [23:45:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:45:51]Read from MH i2c: E2 [23:45:51]MH_I2C_Read... [23:45:51]Read from MH i2c: E2 62 00 [23:45:51]MH_I2C_Read... [23:45:51]Read from MH i2c: E2 62 00 42 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 39 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 FB [23:45:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 39 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:45:51]wFMCommunicate OK [23:45:51]SAM_PROTO_GetFieldsCounters done [23:45:51]requested_item shift.num is exist - process it [23:45:51]requested_item shift.opened is exist - process it [23:45:51]req_shift_opened [23:45:51]FM_GetShiftState [23:45:51]SAM_PROTO_GetShiftState [23:45:51]wFMCommunicate request_size=4 [23:45:51]MH_SAM_APDU [23:45:51]CAPDU: 80 13 01 00 [23:45:51]Write to MH i2c: E2 08 00 43 2A 80 13 01 00 00 00 00 00 EA [23:45:51]Write i2c OK [23:45:51]MH_I2C_Read... [23:45:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:45:51]Read from MH i2c: E2 [23:45:51]MH_I2C_Read... [23:45:51]Read from MH i2c: E2 0E 00 [23:45:51]MH_I2C_Read... [23:45:51]Read from MH i2c: E2 0E 00 43 2A 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 77 [23:45:51]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [23:45:51]wFMCommunicate OK [23:45:51]SAM_PROTO_GetShiftState done [23:45:51]FM_GetShiftState done [23:45:51]req_shift_opened done [23:45:51]requested_item shift.open_date is exist - process it [23:45:51]req_shift_open_date [23:45:51]req_shift_open_date done [23:45:51]produce_requested_data done [23:45:51]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118329,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [23:45:51]process_action_free close_receipt [23:45:51]json_value_free [23:45:51]json_value_free done [23:45:51]process_json_proto returns [23:45:51]Send response to host [23:45:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118329,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [23:45:51]free response buf [23:45:51]execute_script done [23:45:51]execute_script returns [23:45:51]free content buf [23:45:51]Sock 7.Close socket [23:45:51]Sock 7.Thread stoped [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:40]OFD Sender: No OFD packet to send [23:47:45]OFD Sender: No OFD packet to send [23:47:50]OFD Sender: No OFD packet to send [23:47:55]OFD Sender: No OFD packet to send [23:48:00]OFD Sender: No OFD packet to send [23:48:05]OFD Sender: No OFD packet to send [23:48:10]OFD Sender: No OFD packet to send [23:48:15]OFD Sender: No OFD packet to send [23:48:20]OFD Sender: No OFD packet to send [23:48:25]OFD Sender: No OFD packet to send [23:48:30]OFD Sender: No OFD packet to send [23:48:35]OFD Sender: No OFD packet to send [23:48:40]OFD Sender: No OFD packet to send [23:48:45]OFD Sender: No OFD packet to send [23:48:50]OFD Sender: No OFD packet to send [23:48:55]OFD Sender: No OFD packet to send [23:49:00]OFD Sender: No OFD packet to send [23:49:00]accept exits with 9 [23:49:00]New connection [23:49:00]New thread 3067096420 created [23:49:00]Thread 3066953060 joined [23:49:00]Waiting for new connection... [23:49:00] Sock 9.Parse request [23:49:00]Sock 9.Check first char [23:49:00]Sock 9.First char is OK [23:49:00]request: POST /json_proto HTTP/1.0 [23:49:00]Method: POST [23:49:00]URL: /json_proto [23:49:00]Method is POST - this is cgi request [23:49:00]url: /json_proto [23:49:00]query_string will be loaded in cgi processing [23:49:00]execute_cgi json_proto POST (null) [23:49:00]execute_cgi path=json_proto method=POST [23:49:00]POST find Content-Length [23:49:00]Host: 172.17.45.7:8080 [23:49:00]Content-Length: 215 [23:49:00]Content-Type: application/json [23:49:00] [23:49:00]POST finish read [23:49:00]Found Content-Length = 215 [23:49:00]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" ] } } [23:49:00]execute_script... [23:49:00]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" ] } } [23:49:00]POST & json_proto [23:49:00]process_json_proto [23:49:00]json parsed OK: [23:49:00]protocol is kg_v1.0 [23:49:00]action value=get_value [23:49:00]process_action get_value [23:49:00]cmd_get_value [23:49:00]process_action get_value done [23:49:00]requested_data is exist [23:49:00]produce_requested_data [23:49:00]requested_item kkm.sn is exist - process it [23:49:00]requested_item kkm.ver is exist - process it [23:49:00]requested_item fm.sn is exist - process it [23:49:00]wFMCommunicate request_size=4 [23:49:00]MH_SAM_APDU [23:49:00]CAPDU: 80 11 00 00 [23:49:00]Write to MH i2c: E2 08 00 44 2A 80 11 00 00 00 00 00 00 E8 [23:49:00]Write i2c OK [23:49:00]MH_I2C_Read... [23:49:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:00]Read from MH i2c: E2 [23:49:00]MH_I2C_Read... [23:49:00]Read from MH i2c: E2 17 00 [23:49:00]MH_I2C_Read... [23:49:00]Read from MH i2c: E2 17 00 44 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 43 [23:49:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:49:00]wFMCommunicate OK [23:49:00]requested_item fd.num is exist - process it [23:49:00]SAM_PROTO_GetFieldsCounters [23:49:00]wFMCommunicate request_size=4 [23:49:00]MH_SAM_APDU [23:49:00]CAPDU: 80 13 00 00 [23:49:00]Write to MH i2c: E2 08 00 45 2A 80 13 00 00 00 00 00 00 EB [23:49:00]Write i2c OK [23:49:00]MH_I2C_Read... [23:49:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:00]Read from MH i2c: E2 [23:49:00]MH_I2C_Read... [23:49:00]Read from MH i2c: E2 62 00 [23:49:00]MH_I2C_Read... [23:49:00]Read from MH i2c: E2 62 00 45 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 39 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 FE [23:49:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 39 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:49:00]wFMCommunicate OK [23:49:00]SAM_PROTO_GetFieldsCounters done [23:49:00]requested_item shift.num is exist - process it [23:49:00]requested_item shift.opened is exist - process it [23:49:00]req_shift_opened [23:49:00]FM_GetShiftState [23:49:00]SAM_PROTO_GetShiftState [23:49:00]wFMCommunicate request_size=4 [23:49:00]MH_SAM_APDU [23:49:00]CAPDU: 80 13 01 00 [23:49:00]Write to MH i2c: E2 08 00 46 2A 80 13 01 00 00 00 00 00 ED [23:49:00]Write i2c OK [23:49:00]MH_I2C_Read... [23:49:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:01]Read from MH i2c: E2 [23:49:01]MH_I2C_Read... [23:49:01]Read from MH i2c: E2 0E 00 [23:49:01]MH_I2C_Read... [23:49:01]Read from MH i2c: E2 0E 00 46 2A 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 7A [23:49:01]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [23:49:01]wFMCommunicate OK [23:49:01]SAM_PROTO_GetShiftState done [23:49:01]FM_GetShiftState done [23:49:01]req_shift_opened done [23:49:01]requested_item shift.open_date is exist - process it [23:49:01]req_shift_open_date [23:49:01]req_shift_open_date done [23:49:01]produce_requested_data done [23:49:01]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118329,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [23:49:01]process_action_free get_value [23:49:01]json_value_free [23:49:01]json_value_free done [23:49:01]process_json_proto returns [23:49:01]Send response to host [23:49:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118329,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [23:49:01]free response buf [23:49:01]execute_script done [23:49:01]execute_script returns [23:49:01]free content buf [23:49:01]Sock 9.Close socket [23:49:01]Sock 9.Thread stoped [23:49:01]accept exits with 7 [23:49:01]New connection [23:49:01]New thread 3066953060 created [23:49:01]Thread 3067096420 joined [23:49:01]Waiting for new connection... [23:49:01] Sock 7.Parse request [23:49:01]Sock 7.Check first char [23:49:01]Sock 7.First char is OK [23:49:01]request: POST /json_proto HTTP/1.0 [23:49:01]Method: POST [23:49:01]URL: /json_proto [23:49:01]Method is POST - this is cgi request [23:49:01]url: /json_proto [23:49:01]query_string will be loaded in cgi processing [23:49:01]execute_cgi json_proto POST (null) [23:49:01]execute_cgi path=json_proto method=POST [23:49:01]POST find Content-Length [23:49:01]Host: 172.17.45.7:8080 [23:49:01]Content-Length: 331 [23:49:01]Content-Type: application/json [23:49:01] [23:49:01]POST finish read [23:49:01]Found Content-Length = 331 [23:49:01]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" ] } } [23:49:01]execute_script... [23:49:01]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" ] } } [23:49:01]POST & json_proto [23:49:01]process_json_proto [23:49:01]json parsed OK: [23:49:01]protocol is kg_v1.0 [23:49:01]action value=get_value [23:49:01]process_action get_value [23:49:01]cmd_get_value [23:49:01]process_action get_value done [23:49:01]requested_data is exist [23:49:01]produce_requested_data [23:49:01]requested_item fm.sale.total is exist - process it [23:49:01]SAM_PROTO_GetFMData [23:49:01]wFMCommunicate request_size=4 [23:49:01]MH_SAM_APDU [23:49:01]CAPDU: 80 13 03 00 [23:49:01]Write to MH i2c: E2 08 00 47 2A 80 13 03 00 00 00 00 00 F0 [23:49:01]Write i2c OK [23:49:01]MH_I2C_Read... [23:49:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:49:01]Read from MH i2c: E2 [23:49:01]MH_I2C_Read... [23:49:01]Read from MH i2c: E2 FD 00 [23:49:01]MH_I2C_Read... [23:49:01]Read from MH i2c: E2 FD 00 47 2A 00 C5 04 85 04 C1 04 6E 04 04 00 D9 CA 01 00 69 04 A3 00 6F 04 04 00 57 BD 01 00 B1 04 05 00 24 A1 97 72 03 70 04 05 00 B8 FA BC A6 02 72 04 04 00 6C A6 DA CB 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 4A 3D C0 5D 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 E7 E3 CF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 82 0D 00 00 B1 04 04 00 DC 2E 0A 3B 70 04 04 00 DC 2E 0A 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2C 3C 45 06 EF 03 09 90 00 8F [23:49:01]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 D9 CA 01 00 69 04 A3 00 6F 04 04 00 57 BD 01 00 B1 04 05 00 24 A1 97 72 03 70 04 05 00 B8 FA BC A6 02 72 04 04 00 6C A6 DA CB 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 4A 3D C0 5D 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 E7 E3 CF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 82 0D 00 00 B1 04 04 00 DC 2E 0A 3B 70 04 04 00 DC 2E 0A 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2C 3C 45 06 EF 03 09 90 00 [23:49:01]wFMCommunicate OK [23:49:01]wFMCommunicate request_size=4 [23:49:01]MH_SAM_APDU [23:49:01]CAPDU: 80 17 00 00 [23:49:01]Write to MH i2c: E2 08 00 48 2A 80 17 00 00 00 00 00 00 F2 [23:49:01]Write i2c OK [23:49:01]MH_I2C_Read... [23:49:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:02]Read from MH i2c: E2 [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: E2 FD 00 [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: E2 FD 00 48 2A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 22 C4 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 13 [23:49:02]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 22 C4 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:49:02]wFMCommunicate OK [23:49:02]wFMCommunicate request_size=4 [23:49:02]MH_SAM_APDU [23:49:02]CAPDU: 80 17 00 00 [23:49:02]Write to MH i2c: E2 08 00 49 2A 80 17 00 00 00 00 00 00 F3 [23:49:02]Write i2c OK [23:49:02]MH_I2C_Read... [23:49:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:02]Read from MH i2c: E2 [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: E2 FD 00 [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: E2 FD 00 49 2A 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 05 [23:49:02]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:49:02]wFMCommunicate OK [23:49:02]wFMCommunicate request_size=4 [23:49:02]MH_SAM_APDU [23:49:02]CAPDU: 80 17 00 00 [23:49:02]Write to MH i2c: E2 08 00 4A 2A 80 17 00 00 00 00 00 00 F4 [23:49:02]Write i2c OK [23:49:02]MH_I2C_Read... [23:49:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:02]Read from MH i2c: E2 [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: E2 FD 00 [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: E2 FD 00 4A 2A 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 80 [23:49:02]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:49:02]wFMCommunicate OK [23:49:02]wFMCommunicate request_size=4 [23:49:02]MH_SAM_APDU [23:49:02]CAPDU: 80 17 00 00 [23:49:02]Write to MH i2c: E2 08 00 4B 2A 80 17 00 00 00 00 00 00 F5 [23:49:02]Write i2c OK [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: E2 [23:49:02]MH_I2C_Read... [23:49:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:49:02]Read from MH i2c: E2 E2 00 [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: E2 E2 00 4B 2A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D3 [23:49:02]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:49:02]wFMCommunicate OK [23:49:02]SAM_PROTO_GetFMData done [23:49:02]requested_item fm.sale_refund.total is exist - process it [23:49:02]requested_item fm.buy.total is exist - process it [23:49:02]requested_item shift.sale.total is exist - process it [23:49:02]SAM_PROTO_GetShiftData [23:49:02]wFMCommunicate request_size=4 [23:49:02]MH_SAM_APDU [23:49:02]CAPDU: 80 13 02 00 [23:49:02]Write to MH i2c: E2 08 00 4C 2A 80 13 02 00 00 00 00 00 F4 [23:49:02]Write i2c OK [23:49:02]MH_I2C_Read... [23:49:03]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:49:03]Read from MH i2c: E2 [23:49:03]MH_I2C_Read... [23:49:03]Read from MH i2c: E2 FD 00 [23:49:03]MH_I2C_Read... [23:49:03]Read from MH i2c: E2 FD 00 4C 2A 00 BD 04 AA 04 B9 04 6E 04 04 00 10 01 00 00 69 04 9F 00 6F 04 04 00 08 01 00 00 B1 04 04 00 50 B7 41 02 70 04 04 00 54 44 2F 01 72 04 04 00 FC 72 12 01 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 48 5D 3D 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 12 1D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 88 48 0C 70 04 03 00 88 48 0C 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 00 4E 01 EF 03 09 00 F6 03 01 00 00 F7 90 00 DB [23:49:03]RAPDU: BD 04 AA 04 B9 04 6E 04 04 00 10 01 00 00 69 04 9F 00 6F 04 04 00 08 01 00 00 B1 04 04 00 50 B7 41 02 70 04 04 00 54 44 2F 01 72 04 04 00 FC 72 12 01 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 48 5D 3D 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 12 1D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 88 48 0C 70 04 03 00 88 48 0C 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 00 4E 01 EF 03 09 00 F6 03 01 00 00 F7 90 00 [23:49:03]wFMCommunicate OK [23:49:03]wFMCommunicate request_size=4 [23:49:03]MH_SAM_APDU [23:49:03]CAPDU: 80 17 00 00 [23:49:03]Write to MH i2c: E2 08 00 4D 2A 80 17 00 00 00 00 00 00 F7 [23:49:03]Write i2c OK [23:49:03]MH_I2C_Read... [23:49:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:03]Read from MH i2c: E2 [23:49:03]MH_I2C_Read... [23:49:03]Read from MH i2c: E2 FD 00 [23:49:03]MH_I2C_Read... [23:49:03]Read from MH i2c: E2 FD 00 4D 2A 00 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 93 [23:49:03]RAPDU: 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 [23:49:03]wFMCommunicate OK [23:49:03]wFMCommunicate request_size=4 [23:49:03]MH_SAM_APDU [23:49:03]CAPDU: 80 17 00 00 [23:49:03]Write to MH i2c: E2 08 00 4E 2A 80 17 00 00 00 00 00 00 F8 [23:49:03]Write i2c OK [23:49:03]MH_I2C_Read... [23:49:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:03]Read from MH i2c: E2 [23:49:03]MH_I2C_Read... [23:49:03]Read from MH i2c: E2 FD 00 [23:49:03]MH_I2C_Read... [23:49:03]Read from MH i2c: E2 FD 00 4E 2A 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 2A [23:49:03]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [23:49:03]wFMCommunicate OK [23:49:03]wFMCommunicate request_size=4 [23:49:03]MH_SAM_APDU [23:49:03]CAPDU: 80 17 00 00 [23:49:03]Write to MH i2c: E2 08 00 4F 2A 80 17 00 00 00 00 00 00 F9 [23:49:03]Write i2c OK [23:49:03]MH_I2C_Read... [23:49:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:04]Read from MH i2c: E2 [23:49:04]MH_I2C_Read... [23:49:04]Read from MH i2c: E2 FD 00 [23:49:04]MH_I2C_Read... [23:49:04]Read from MH i2c: E2 FD 00 4F 2A 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 70 [23:49:04]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:49:04]wFMCommunicate OK [23:49:04]wFMCommunicate request_size=4 [23:49:04]MH_SAM_APDU [23:49:04]CAPDU: 80 17 00 00 [23:49:04]Write to MH i2c: E2 08 00 50 2A 80 17 00 00 00 00 00 00 FA [23:49:04]Write i2c OK [23:49:04]MH_I2C_Read... [23:49:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [23:49:04]Read from MH i2c: E2 [23:49:04]MH_I2C_Read... [23:49:04]Read from MH i2c: E2 DA 00 [23:49:04]MH_I2C_Read... [23:49:04]Read from MH i2c: E2 DA 00 50 2A 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 DB [23:49:04]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:49:04]wFMCommunicate OK [23:49:04]SAM_PROTO_GetShiftData done [23:49:04]requested_item shift.sale.total_cash is exist - process it [23:49:04]requested_item shift.sale_refund.total is exist - process it [23:49:04]requested_item shift.sale_refund.total_cash is exist - process it [23:49:04]requested_item shift.buy.total is exist - process it [23:49:04]requested_item shift.buy.total_cash is exist - process it [23:49:04]produce_requested_data done [23:49:04]produce_requested_data return {"fm.sale.total":148074417.00,"fm.sale_refund.total":9905231.00,"fm.buy.total":0.00,"shift.sale.total":378612.00,"shift.sale.total_cash":198749.00,"shift.sale_refund.total":8050.00,"shift.sale_refund.total_cash":8050.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:49:04]process_action_free get_value [23:49:04]json_value_free [23:49:04]json_value_free done [23:49:04]process_json_proto returns [23:49:04]Send response to host [23:49:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":148074417.00,"fm.sale_refund.total":9905231.00,"fm.buy.total":0.00,"shift.sale.total":378612.00,"shift.sale.total_cash":198749.00,"shift.sale_refund.total":8050.00,"shift.sale_refund.total_cash":8050.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:49:04]free response buf [23:49:04]execute_script done [23:49:04]execute_script returns [23:49:04]free content buf [23:49:04]Sock 7.Close socket [23:49:04]Sock 7.Thread stoped [23:49:05]OFD Sender: No OFD packet to send [23:49:10]OFD Sender: No OFD packet to send [23:49:11]accept exits with 9 [23:49:11]New connection [23:49:11]New thread 3067096420 created [23:49:11]Thread 3066953060 joined [23:49:11]Waiting for new connection... [23:49:11] Sock 9.Parse request [23:49:11]Sock 9.Check first char [23:49:11]Sock 9.First char is OK [23:49:11]request: POST /json_proto HTTP/1.0 [23:49:11]Method: POST [23:49:11]URL: /json_proto [23:49:11]Method is POST - this is cgi request [23:49:11]url: /json_proto [23:49:11]query_string will be loaded in cgi processing [23:49:11]execute_cgi json_proto POST (null) [23:49:11]execute_cgi path=json_proto method=POST [23:49:11]POST find Content-Length [23:49:11]Host: 172.17.45.7:8080 [23:49:11]Content-Length: 215 [23:49:11]Content-Type: application/json [23:49:11] [23:49:11]POST finish read [23:49:11]Found Content-Length = 215 [23:49:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:11]execute_script... [23:49:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:11]POST & json_proto [23:49:11]process_json_proto [23:49:11]json parsed OK: [23:49:11]protocol is kg_v1.0 [23:49:11]action value=get_value [23:49:11]process_action get_value [23:49:11]cmd_get_value [23:49:11]process_action get_value done [23:49:11]requested_data is exist [23:49:11]produce_requested_data [23:49:11]requested_item kkm.sn is exist - process it [23:49:11]requested_item kkm.ver is exist - process it [23:49:11]requested_item fm.sn is exist - process it [23:49:11]wFMCommunicate request_size=4 [23:49:11]MH_SAM_APDU [23:49:11]CAPDU: 80 11 00 00 [23:49:11]Write to MH i2c: E2 08 00 51 2A 80 11 00 00 00 00 00 00 F5 [23:49:11]Write i2c OK [23:49:11]MH_I2C_Read... [23:49:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:11]Read from MH i2c: E2 [23:49:11]MH_I2C_Read... [23:49:11]Read from MH i2c: E2 17 00 [23:49:11]MH_I2C_Read... [23:49:11]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 34 39 33 39 90 00 50 [23:49:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:49:11]wFMCommunicate OK [23:49:11]requested_item fd.num is exist - process it [23:49:11]SAM_PROTO_GetFieldsCounters [23:49:11]wFMCommunicate request_size=4 [23:49:11]MH_SAM_APDU [23:49:11]CAPDU: 80 13 00 00 [23:49:11]Write to MH i2c: E2 08 00 52 2A 80 13 00 00 00 00 00 00 F8 [23:49:11]Write i2c OK [23:49:11]MH_I2C_Read... [23:49:11]Read from MH i2c: E2 [23:49:11]MH_I2C_Read... [23:49:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:11]Read from MH i2c: E2 62 00 [23:49:11]MH_I2C_Read... [23:49:11]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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 39 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 0B [23:49:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 39 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:49:11]wFMCommunicate OK [23:49:11]SAM_PROTO_GetFieldsCounters done [23:49:11]requested_item shift.num is exist - process it [23:49:11]requested_item shift.opened is exist - process it [23:49:11]req_shift_opened [23:49:11]FM_GetShiftState [23:49:11]SAM_PROTO_GetShiftState [23:49:11]wFMCommunicate request_size=4 [23:49:11]MH_SAM_APDU [23:49:11]CAPDU: 80 13 01 00 [23:49:11]Write to MH i2c: E2 08 00 53 2A 80 13 01 00 00 00 00 00 FA [23:49:11]Write i2c OK [23:49:11]MH_I2C_Read... [23:49:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:11]Read from MH i2c: E2 [23:49:11]MH_I2C_Read... [23:49:11]Read from MH i2c: E2 0E 00 [23:49:11]MH_I2C_Read... [23:49:11]Read from MH i2c: E2 0E 00 53 2A 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 87 [23:49:11]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [23:49:11]wFMCommunicate OK [23:49:11]SAM_PROTO_GetShiftState done [23:49:11]FM_GetShiftState done [23:49:11]req_shift_opened done [23:49:11]requested_item shift.open_date is exist - process it [23:49:11]req_shift_open_date [23:49:11]req_shift_open_date done [23:49:11]produce_requested_data done [23:49:11]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118329,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [23:49:11]process_action_free get_value [23:49:11]json_value_free [23:49:11]json_value_free done [23:49:11]process_json_proto returns [23:49:11]Send response to host [23:49:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118329,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [23:49:11]free response buf [23:49:11]execute_script done [23:49:11]execute_script returns [23:49:11]free content buf [23:49:11]Sock 9.Close socket [23:49:11]Sock 9.Thread stoped [23:49:11]accept exits with 7 [23:49:11]New connection [23:49:11]New thread 3066953060 created [23:49:11]Thread 3067096420 joined [23:49:11]Waiting for new connection... [23:49:11] Sock 7.Parse request [23:49:11]Sock 7.Check first char [23:49:11]Sock 7.First char is OK [23:49:11]request: POST /json_proto HTTP/1.0 [23:49:11]Method: POST [23:49:11]URL: /json_proto [23:49:11]Method is POST - this is cgi request [23:49:11]url: /json_proto [23:49:11]query_string will be loaded in cgi processing [23:49:11]execute_cgi json_proto POST (null) [23:49:11]execute_cgi path=json_proto method=POST [23:49:11]POST find Content-Length [23:49:11]Host: 172.17.45.7:8080 [23:49:11]Content-Length: 331 [23:49:11]Content-Type: application/json [23:49:11] [23:49:11]POST finish read [23:49:11]Found Content-Length = 331 [23:49:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:49:11]execute_script... [23:49:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:49:11]POST & json_proto [23:49:11]process_json_proto [23:49:11]json parsed OK: [23:49:11]protocol is kg_v1.0 [23:49:11]action value=get_value [23:49:11]process_action get_value [23:49:11]cmd_get_value [23:49:11]process_action get_value done [23:49:11]requested_data is exist [23:49:11]produce_requested_data [23:49:11]requested_item fm.sale.total is exist - process it [23:49:11]SAM_PROTO_GetFMData [23:49:11]wFMCommunicate request_size=4 [23:49:11]MH_SAM_APDU [23:49:11]CAPDU: 80 13 03 00 [23:49:11]Write to MH i2c: E2 08 00 54 2A 80 13 03 00 00 00 00 00 FD [23:49:11]Write i2c OK [23:49:11]MH_I2C_Read... [23:49:11]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:49:11]Read from MH i2c: E2 [23:49:11]MH_I2C_Read... [23:49:11]Read from MH i2c: E2 FD 00 [23:49:11]MH_I2C_Read... [23:49:11]Read from MH i2c: E2 FD 00 54 2A 00 C5 04 85 04 C1 04 6E 04 04 00 D9 CA 01 00 69 04 A3 00 6F 04 04 00 57 BD 01 00 B1 04 05 00 24 A1 97 72 03 70 04 05 00 B8 FA BC A6 02 72 04 04 00 6C A6 DA CB 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 4A 3D C0 5D 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 E7 E3 CF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 82 0D 00 00 B1 04 04 00 DC 2E 0A 3B 70 04 04 00 DC 2E 0A 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2C 3C 45 06 EF 03 09 90 00 9C [23:49:11]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 D9 CA 01 00 69 04 A3 00 6F 04 04 00 57 BD 01 00 B1 04 05 00 24 A1 97 72 03 70 04 05 00 B8 FA BC A6 02 72 04 04 00 6C A6 DA CB 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 4A 3D C0 5D 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 E7 E3 CF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 82 0D 00 00 B1 04 04 00 DC 2E 0A 3B 70 04 04 00 DC 2E 0A 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2C 3C 45 06 EF 03 09 90 00 [23:49:11]wFMCommunicate OK [23:49:11]wFMCommunicate request_size=4 [23:49:11]MH_SAM_APDU [23:49:11]CAPDU: 80 17 00 00 [23:49:11]Write to MH i2c: E2 08 00 55 2A 80 17 00 00 00 00 00 00 FF [23:49:11]Write i2c OK [23:49:11]MH_I2C_Read... [23:49:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:12]Read from MH i2c: E2 [23:49:12]MH_I2C_Read... [23:49:12]Read from MH i2c: E2 FD 00 [23:49:12]MH_I2C_Read... [23:49:12]Read from MH i2c: E2 FD 00 55 2A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 22 C4 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 20 [23:49:12]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 22 C4 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:49:12]wFMCommunicate OK [23:49:12]wFMCommunicate request_size=4 [23:49:12]MH_SAM_APDU [23:49:12]CAPDU: 80 17 00 00 [23:49:12]Write to MH i2c: E2 08 00 56 2A 80 17 00 00 00 00 00 00 00 [23:49:12]Write i2c OK [23:49:12]MH_I2C_Read... [23:49:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:12]Read from MH i2c: E2 [23:49:12]MH_I2C_Read... [23:49:12]Read from MH i2c: E2 FD 00 [23:49:12]MH_I2C_Read... [23:49:12]Read from MH i2c: E2 FD 00 56 2A 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 12 [23:49:12]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:49:12]wFMCommunicate OK [23:49:12]wFMCommunicate request_size=4 [23:49:12]MH_SAM_APDU [23:49:12]CAPDU: 80 17 00 00 [23:49:12]Write to MH i2c: E2 08 00 57 2A 80 17 00 00 00 00 00 00 01 [23:49:12]Write i2c OK [23:49:12]MH_I2C_Read... [23:49:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:12]Read from MH i2c: E2 [23:49:12]MH_I2C_Read... [23:49:12]Read from MH i2c: E2 FD 00 [23:49:12]MH_I2C_Read... [23:49:12]Read from MH i2c: E2 FD 00 57 2A 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8D [23:49:12]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:49:12]wFMCommunicate OK [23:49:12]wFMCommunicate request_size=4 [23:49:12]MH_SAM_APDU [23:49:12]CAPDU: 80 17 00 00 [23:49:12]Write to MH i2c: E2 08 00 58 2A 80 17 00 00 00 00 00 00 02 [23:49:12]Write i2c OK [23:49:12]MH_I2C_Read... [23:49:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:49:13]Read from MH i2c: E2 [23:49:13]MH_I2C_Read... [23:49:13]Read from MH i2c: E2 E2 00 [23:49:13]MH_I2C_Read... [23:49:13]Read from MH i2c: E2 E2 00 58 2A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E0 [23:49:13]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:49:13]wFMCommunicate OK [23:49:13]SAM_PROTO_GetFMData done [23:49:13]requested_item fm.sale_refund.total is exist - process it [23:49:13]requested_item fm.buy.total is exist - process it [23:49:13]requested_item shift.sale.total is exist - process it [23:49:13]SAM_PROTO_GetShiftData [23:49:13]wFMCommunicate request_size=4 [23:49:13]MH_SAM_APDU [23:49:13]CAPDU: 80 13 02 00 [23:49:13]Write to MH i2c: E2 08 00 59 2A 80 13 02 00 00 00 00 00 01 [23:49:13]Write i2c OK [23:49:13]MH_I2C_Read... [23:49:13]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:49:13]Read from MH i2c: E2 [23:49:13]MH_I2C_Read... [23:49:13]Read from MH i2c: E2 FD 00 [23:49:13]MH_I2C_Read... [23:49:13]Read from MH i2c: E2 FD 00 59 2A 00 BD 04 AA 04 B9 04 6E 04 04 00 10 01 00 00 69 04 9F 00 6F 04 04 00 08 01 00 00 B1 04 04 00 50 B7 41 02 70 04 04 00 54 44 2F 01 72 04 04 00 FC 72 12 01 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 48 5D 3D 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 12 1D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 88 48 0C 70 04 03 00 88 48 0C 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 00 4E 01 EF 03 09 00 F6 03 01 00 00 F7 90 00 E8 [23:49:13]RAPDU: BD 04 AA 04 B9 04 6E 04 04 00 10 01 00 00 69 04 9F 00 6F 04 04 00 08 01 00 00 B1 04 04 00 50 B7 41 02 70 04 04 00 54 44 2F 01 72 04 04 00 FC 72 12 01 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 48 5D 3D 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 12 1D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 88 48 0C 70 04 03 00 88 48 0C 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 00 4E 01 EF 03 09 00 F6 03 01 00 00 F7 90 00 [23:49:13]wFMCommunicate OK [23:49:13]wFMCommunicate request_size=4 [23:49:13]MH_SAM_APDU [23:49:13]CAPDU: 80 17 00 00 [23:49:13]Write to MH i2c: E2 08 00 5A 2A 80 17 00 00 00 00 00 00 04 [23:49:13]Write i2c OK [23:49:13]MH_I2C_Read... [23:49:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:13]Read from MH i2c: E2 [23:49:13]MH_I2C_Read... [23:49:13]Read from MH i2c: E2 FD 00 [23:49:13]MH_I2C_Read... [23:49:13]Read from MH i2c: E2 FD 00 5A 2A 00 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 A0 [23:49:13]RAPDU: 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 [23:49:14]wFMCommunicate OK [23:49:14]wFMCommunicate request_size=4 [23:49:14]MH_SAM_APDU [23:49:14]CAPDU: 80 17 00 00 [23:49:14]Write to MH i2c: E2 08 00 5B 2A 80 17 00 00 00 00 00 00 05 [23:49:14]Write i2c OK [23:49:14]MH_I2C_Read... [23:49:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:14]Read from MH i2c: E2 [23:49:14]MH_I2C_Read... [23:49:14]Read from MH i2c: E2 FD 00 [23:49:14]MH_I2C_Read... [23:49:14]Read from MH i2c: E2 FD 00 5B 2A 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 37 [23:49:14]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [23:49:14]wFMCommunicate OK [23:49:14]wFMCommunicate request_size=4 [23:49:14]MH_SAM_APDU [23:49:14]CAPDU: 80 17 00 00 [23:49:14]Write to MH i2c: E2 08 00 5C 2A 80 17 00 00 00 00 00 00 06 [23:49:14]Write i2c OK [23:49:14]MH_I2C_Read... [23:49:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:14]Read from MH i2c: E2 [23:49:14]MH_I2C_Read... [23:49:14]Read from MH i2c: E2 FD 00 [23:49:14]MH_I2C_Read... [23:49:14]Read from MH i2c: E2 FD 00 5C 2A 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 7D [23:49:14]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:49:14]wFMCommunicate OK [23:49:14]wFMCommunicate request_size=4 [23:49:14]MH_SAM_APDU [23:49:14]CAPDU: 80 17 00 00 [23:49:14]Write to MH i2c: E2 08 00 5D 2A 80 17 00 00 00 00 00 00 07 [23:49:14]Write i2c OK [23:49:14]MH_I2C_Read... [23:49:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [23:49:15]Read from MH i2c: E2 [23:49:15]MH_I2C_Read... [23:49:15]Read from MH i2c: E2 DA 00 [23:49:15]MH_I2C_Read... [23:49:15]Read from MH i2c: E2 DA 00 5D 2A 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E8 [23:49:15]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:49:15]wFMCommunicate OK [23:49:15]SAM_PROTO_GetShiftData done [23:49:15]requested_item shift.sale.total_cash is exist - process it [23:49:15]requested_item shift.sale_refund.total is exist - process it [23:49:15]requested_item shift.sale_refund.total_cash is exist - process it [23:49:15]requested_item shift.buy.total is exist - process it [23:49:15]requested_item shift.buy.total_cash is exist - process it [23:49:15]produce_requested_data done [23:49:15]produce_requested_data return {"fm.sale.total":148074417.00,"fm.sale_refund.total":9905231.00,"fm.buy.total":0.00,"shift.sale.total":378612.00,"shift.sale.total_cash":198749.00,"shift.sale_refund.total":8050.00,"shift.sale_refund.total_cash":8050.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:49:15]process_action_free get_value [23:49:15]json_value_free [23:49:15]json_value_free done [23:49:15]process_json_proto returns [23:49:15]Send response to host [23:49:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":148074417.00,"fm.sale_refund.total":9905231.00,"fm.buy.total":0.00,"shift.sale.total":378612.00,"shift.sale.total_cash":198749.00,"shift.sale_refund.total":8050.00,"shift.sale_refund.total_cash":8050.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:49:15]free response buf [23:49:15]execute_script done [23:49:15]execute_script returns [23:49:15]free content buf [23:49:15]Sock 7.Close socket [23:49:15]Sock 7.Thread stoped [23:49:15]OFD Sender: No OFD packet to send [23:49:20]OFD Sender: No OFD packet to send [23:49:25]OFD Sender: No OFD packet to send [23:49:30]OFD Sender: No OFD packet to send [23:49:35]OFD Sender: No OFD packet to send [23:49:40]OFD Sender: No OFD packet to send [23:49:45]OFD Sender: No OFD packet to send [23:49:50]OFD Sender: No OFD packet to send [23:49:55]OFD Sender: No OFD packet to send [23:50:00]OFD Sender: No OFD packet to send [23:50:05]OFD Sender: No OFD packet to send [23:50:10]OFD Sender: No OFD packet to send [23:50:15]OFD Sender: No OFD packet to send [23:50:20]OFD Sender: No OFD packet to send [23:50:24]accept exits with 9 [23:50:24]New connection [23:50:24]New thread 3067096420 created [23:50:24]Thread 3066953060 joined [23:50:24]Waiting for new connection... [23:50:24] Sock 9.Parse request [23:50:24]Sock 9.Check first char [23:50:24]Sock 9.First char is OK [23:50:24]request: POST /json_proto HTTP/1.0 [23:50:24]Method: POST [23:50:24]URL: /json_proto [23:50:24]Method is POST - this is cgi request [23:50:24]url: /json_proto [23:50:24]query_string will be loaded in cgi processing [23:50:24]execute_cgi json_proto POST (null) [23:50:24]execute_cgi path=json_proto method=POST [23:50:24]POST find Content-Length [23:50:24]Host: 172.17.45.7:8080 [23:50:24]Content-Length: 215 [23:50:24]Content-Type: application/json [23:50:24] [23:50:24]POST finish read [23:50:24]Found Content-Length = 215 [23:50:24]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" ] } } [23:50:24]execute_script... [23:50:24]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" ] } } [23:50:24]POST & json_proto [23:50:24]process_json_proto [23:50:24]json parsed OK: [23:50:24]protocol is kg_v1.0 [23:50:24]action value=get_value [23:50:24]process_action get_value [23:50:24]cmd_get_value [23:50:24]process_action get_value done [23:50:24]requested_data is exist [23:50:24]produce_requested_data [23:50:24]requested_item kkm.sn is exist - process it [23:50:24]requested_item kkm.ver is exist - process it [23:50:24]requested_item fm.sn is exist - process it [23:50:24]wFMCommunicate request_size=4 [23:50:24]MH_SAM_APDU [23:50:24]CAPDU: 80 11 00 00 [23:50:24]Write to MH i2c: E2 08 00 5E 2A 80 11 00 00 00 00 00 00 02 [23:50:24]Write i2c OK [23:50:24]MH_I2C_Read... [23:50:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:24]Read from MH i2c: E2 [23:50:24]MH_I2C_Read... [23:50:24]Read from MH i2c: E2 17 00 [23:50:24]MH_I2C_Read... [23:50:24]Read from MH i2c: E2 17 00 5E 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5D [23:50:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:50:24]wFMCommunicate OK [23:50:24]requested_item fd.num is exist - process it [23:50:24]SAM_PROTO_GetFieldsCounters [23:50:24]wFMCommunicate request_size=4 [23:50:24]MH_SAM_APDU [23:50:24]CAPDU: 80 13 00 00 [23:50:24]Write to MH i2c: E2 08 00 5F 2A 80 13 00 00 00 00 00 00 05 [23:50:24]Write i2c OK [23:50:24]MH_I2C_Read... [23:50:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:50:24]Read from MH i2c: E2 [23:50:24]MH_I2C_Read... [23:50:24]Read from MH i2c: E2 62 00 [23:50:24]MH_I2C_Read... [23:50:24]Read from MH i2c: E2 62 00 5F 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 39 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 18 [23: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 39 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:50:24]wFMCommunicate OK [23:50:24]SAM_PROTO_GetFieldsCounters done [23:50:24]requested_item shift.num is exist - process it [23:50:24]requested_item shift.opened is exist - process it [23:50:24]req_shift_opened [23:50:24]FM_GetShiftState [23:50:24]SAM_PROTO_GetShiftState [23:50:24]wFMCommunicate request_size=4 [23:50:24]MH_SAM_APDU [23:50:24]CAPDU: 80 13 01 00 [23:50:24]Write to MH i2c: E2 08 00 60 2A 80 13 01 00 00 00 00 00 07 [23:50:24]Write i2c OK [23:50:24]MH_I2C_Read... [23:50:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:24]Read from MH i2c: E2 [23:50:24]MH_I2C_Read... [23:50:24]Read from MH i2c: E2 0E 00 [23:50:24]MH_I2C_Read... [23:50:24]Read from MH i2c: E2 0E 00 60 2A 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 94 [23:50:24]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [23:50:24]wFMCommunicate OK [23:50:24]SAM_PROTO_GetShiftState done [23:50:24]FM_GetShiftState done [23:50:24]req_shift_opened done [23:50:24]requested_item shift.open_date is exist - process it [23:50:24]req_shift_open_date [23:50:24]req_shift_open_date done [23:50:24]produce_requested_data done [23:50:24]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118329,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [23:50:24]process_action_free get_value [23:50:24]json_value_free [23:50:24]json_value_free done [23:50:24]process_json_proto returns [23:50:24]Send response to host [23:50:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118329,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [23:50:24]free response buf [23:50:24]execute_script done [23:50:24]execute_script returns [23:50:24]free content buf [23:50:24]Sock 9.Close socket [23:50:24]Sock 9.Thread stoped [23:50:24]accept exits with 7 [23:50:24]New connection [23:50:24]New thread 3066953060 created [23:50:24]Thread 3067096420 joined [23:50:24]Waiting for new connection... [23:50:24] Sock 7.Parse request [23:50:24]Sock 7.Check first char [23:50:24]Sock 7.First char is OK [23:50:24]request: POST /json_proto HTTP/1.0 [23:50:24]Method: POST [23:50:24]URL: /json_proto [23:50:24]Method is POST - this is cgi request [23:50:24]url: /json_proto [23:50:24]query_string will be loaded in cgi processing [23:50:24]execute_cgi json_proto POST (null) [23:50:24]execute_cgi path=json_proto method=POST [23:50:24]POST find Content-Length [23:50:24]Host: 172.17.45.7:8080 [23:50:24]Content-Length: 331 [23:50:24]Content-Type: application/json [23:50:24] [23:50:24]POST finish read [23:50:24]Found Content-Length = 331 [23:50:24]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" ] } } [23:50:24]execute_script... [23:50:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:50:25]POST & json_proto [23:50:25]process_json_proto [23:50:25]json parsed OK: [23:50:25]protocol is kg_v1.0 [23:50:25]action value=get_value [23:50:25]process_action get_value [23:50:25]cmd_get_value [23:50:25]process_action get_value done [23:50:25]requested_data is exist [23:50:25]produce_requested_data [23:50:25]requested_item fm.sale.total is exist - process it [23:50:25]SAM_PROTO_GetFMData [23:50:25]wFMCommunicate request_size=4 [23:50:25]MH_SAM_APDU [23:50:25]CAPDU: 80 13 03 00 [23:50:25]Write to MH i2c: E2 08 00 61 2A 80 13 03 00 00 00 00 00 0A [23:50:25]Write i2c OK [23:50:25]MH_I2C_Read... [23:50:25]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:50:25]Read from MH i2c: E2 [23:50:25]MH_I2C_Read... [23:50:25]Read from MH i2c: E2 FD 00 [23:50:25]MH_I2C_Read... [23:50:25]Read from MH i2c: E2 FD 00 61 2A 00 C5 04 85 04 C1 04 6E 04 04 00 D9 CA 01 00 69 04 A3 00 6F 04 04 00 57 BD 01 00 B1 04 05 00 24 A1 97 72 03 70 04 05 00 B8 FA BC A6 02 72 04 04 00 6C A6 DA CB 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 4A 3D C0 5D 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 E7 E3 CF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 82 0D 00 00 B1 04 04 00 DC 2E 0A 3B 70 04 04 00 DC 2E 0A 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2C 3C 45 06 EF 03 09 90 00 A9 [23:50:25]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 D9 CA 01 00 69 04 A3 00 6F 04 04 00 57 BD 01 00 B1 04 05 00 24 A1 97 72 03 70 04 05 00 B8 FA BC A6 02 72 04 04 00 6C A6 DA CB 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 4A 3D C0 5D 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 E7 E3 CF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 82 0D 00 00 B1 04 04 00 DC 2E 0A 3B 70 04 04 00 DC 2E 0A 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2C 3C 45 06 EF 03 09 90 00 [23:50:25]wFMCommunicate OK [23:50:25]wFMCommunicate request_size=4 [23:50:25]MH_SAM_APDU [23:50:25]CAPDU: 80 17 00 00 [23:50:25]Write to MH i2c: E2 08 00 62 2A 80 17 00 00 00 00 00 00 0C [23:50:25]Write i2c OK [23:50:25]MH_I2C_Read... [23:50:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:25]Read from MH i2c: E2 [23:50:25]MH_I2C_Read... [23:50:25]Read from MH i2c: E2 FD 00 [23:50:25]MH_I2C_Read... [23:50:25]Read from MH i2c: E2 FD 00 62 2A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 22 C4 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2D [23:50:25]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 22 C4 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:25]wFMCommunicate OK [23:50:25]wFMCommunicate request_size=4 [23:50:25]MH_SAM_APDU [23:50:25]CAPDU: 80 17 00 00 [23:50:25]Write to MH i2c: E2 08 00 63 2A 80 17 00 00 00 00 00 00 0D [23:50:25]Write i2c OK [23:50:25]MH_I2C_Read... [23:50:25]OFD Sender: No OFD packet to send [23:50:26]Read from MH i2c: E2 [23:50:26]MH_I2C_Read... [23:50:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:26]Read from MH i2c: E2 FD 00 [23:50:26]MH_I2C_Read... [23:50:26]Read from MH i2c: E2 FD 00 63 2A 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 1F [23:50:26]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:26]wFMCommunicate OK [23:50:26]wFMCommunicate request_size=4 [23:50:26]MH_SAM_APDU [23:50:26]CAPDU: 80 17 00 00 [23:50:26]Write to MH i2c: E2 08 00 64 2A 80 17 00 00 00 00 00 00 0E [23:50:26]Write i2c OK [23:50:26]MH_I2C_Read... [23:50:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:26]Read from MH i2c: E2 [23:50:26]MH_I2C_Read... [23:50:26]Read from MH i2c: E2 FD 00 [23:50:26]MH_I2C_Read... [23:50:26]Read from MH i2c: E2 FD 00 64 2A 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9A [23:50:26]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:26]wFMCommunicate OK [23:50:26]wFMCommunicate request_size=4 [23:50:26]MH_SAM_APDU [23:50:26]CAPDU: 80 17 00 00 [23:50:26]Write to MH i2c: E2 08 00 65 2A 80 17 00 00 00 00 00 00 0F [23:50:26]Write i2c OK [23:50:26]MH_I2C_Read... [23:50:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:50:26]Read from MH i2c: E2 [23:50:26]MH_I2C_Read... [23:50:26]Read from MH i2c: E2 E2 00 [23:50:26]MH_I2C_Read... [23:50:26]Read from MH i2c: E2 E2 00 65 2A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 ED [23:50:26]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:50:26]wFMCommunicate OK [23:50:26]SAM_PROTO_GetFMData done [23:50:26]requested_item fm.sale_refund.total is exist - process it [23:50:26]requested_item fm.buy.total is exist - process it [23:50:26]requested_item shift.sale.total is exist - process it [23:50:26]SAM_PROTO_GetShiftData [23:50:26]wFMCommunicate request_size=4 [23:50:26]MH_SAM_APDU [23:50:26]CAPDU: 80 13 02 00 [23:50:26]Write to MH i2c: E2 08 00 66 2A 80 13 02 00 00 00 00 00 0E [23:50:26]Write i2c OK [23:50:26]MH_I2C_Read... [23:50:27]Read from MH i2c: E2 [23:50:27]MH_I2C_Read... [23:50:27]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:50:27]Read from MH i2c: E2 FD 00 [23:50:27]MH_I2C_Read... [23:50:27]Read from MH i2c: E2 FD 00 66 2A 00 BD 04 AA 04 B9 04 6E 04 04 00 10 01 00 00 69 04 9F 00 6F 04 04 00 08 01 00 00 B1 04 04 00 50 B7 41 02 70 04 04 00 54 44 2F 01 72 04 04 00 FC 72 12 01 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 48 5D 3D 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 12 1D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 88 48 0C 70 04 03 00 88 48 0C 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 00 4E 01 EF 03 09 00 F6 03 01 00 00 F7 90 00 F5 [23:50:27]RAPDU: BD 04 AA 04 B9 04 6E 04 04 00 10 01 00 00 69 04 9F 00 6F 04 04 00 08 01 00 00 B1 04 04 00 50 B7 41 02 70 04 04 00 54 44 2F 01 72 04 04 00 FC 72 12 01 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 48 5D 3D 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 12 1D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 88 48 0C 70 04 03 00 88 48 0C 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 00 4E 01 EF 03 09 00 F6 03 01 00 00 F7 90 00 [23:50:27]wFMCommunicate OK [23:50:27]wFMCommunicate request_size=4 [23:50:27]MH_SAM_APDU [23:50:27]CAPDU: 80 17 00 00 [23:50:27]Write to MH i2c: E2 08 00 67 2A 80 17 00 00 00 00 00 00 11 [23:50:27]Write i2c OK [23:50:27]MH_I2C_Read... [23:50:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:27]Read from MH i2c: E2 [23:50:27]MH_I2C_Read... [23:50:27]Read from MH i2c: E2 FD 00 [23:50:27]MH_I2C_Read... [23:50:27]Read from MH i2c: E2 FD 00 67 2A 00 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 AD [23:50:27]RAPDU: 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 [23:50:27]wFMCommunicate OK [23:50:27]wFMCommunicate request_size=4 [23:50:27]MH_SAM_APDU [23:50:27]CAPDU: 80 17 00 00 [23:50:27]Write to MH i2c: E2 08 00 68 2A 80 17 00 00 00 00 00 00 12 [23:50:27]Write i2c OK [23:50:27]MH_I2C_Read... [23:50:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:27]Read from MH i2c: E2 [23:50:27]MH_I2C_Read... [23:50:27]Read from MH i2c: E2 FD 00 [23:50:27]MH_I2C_Read... [23:50:27]Read from MH i2c: E2 FD 00 68 2A 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 44 [23:50:27]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [23:50:27]wFMCommunicate OK [23:50:27]wFMCommunicate request_size=4 [23:50:27]MH_SAM_APDU [23:50:27]CAPDU: 80 17 00 00 [23:50:27]Write to MH i2c: E2 08 00 69 2A 80 17 00 00 00 00 00 00 13 [23:50:27]Write i2c OK [23:50:27]MH_I2C_Read... [23:50:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:27]Read from MH i2c: E2 [23:50:27]MH_I2C_Read... [23:50:27]Read from MH i2c: E2 FD 00 [23:50:27]MH_I2C_Read... [23:50:27]Read from MH i2c: E2 FD 00 69 2A 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 8A [23:50:27]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:50:28]wFMCommunicate OK [23:50:28]wFMCommunicate request_size=4 [23:50:28]MH_SAM_APDU [23:50:28]CAPDU: 80 17 00 00 [23:50:28]Write to MH i2c: E2 08 00 6A 2A 80 17 00 00 00 00 00 00 14 [23:50:28]Write i2c OK [23:50:28]MH_I2C_Read... [23:50:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [23:50:28]Read from MH i2c: E2 [23:50:28]MH_I2C_Read... [23:50:28]Read from MH i2c: E2 DA 00 [23:50:28]MH_I2C_Read... [23:50:28]Read from MH i2c: E2 DA 00 6A 2A 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F5 [23:50:28]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:50:28]wFMCommunicate OK [23:50:28]SAM_PROTO_GetShiftData done [23:50:28]requested_item shift.sale.total_cash is exist - process it [23:50:28]requested_item shift.sale_refund.total is exist - process it [23:50:28]requested_item shift.sale_refund.total_cash is exist - process it [23:50:28]requested_item shift.buy.total is exist - process it [23:50:28]requested_item shift.buy.total_cash is exist - process it [23:50:28]produce_requested_data done [23:50:28]produce_requested_data return {"fm.sale.total":148074417.00,"fm.sale_refund.total":9905231.00,"fm.buy.total":0.00,"shift.sale.total":378612.00,"shift.sale.total_cash":198749.00,"shift.sale_refund.total":8050.00,"shift.sale_refund.total_cash":8050.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:50:28]process_action_free get_value [23:50:28]json_value_free [23:50:28]json_value_free done [23:50:28]process_json_proto returns [23:50:28]Send response to host [23:50:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":148074417.00,"fm.sale_refund.total":9905231.00,"fm.buy.total":0.00,"shift.sale.total":378612.00,"shift.sale.total_cash":198749.00,"shift.sale_refund.total":8050.00,"shift.sale_refund.total_cash":8050.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:50:28]free response buf [23:50:28]execute_script done [23:50:28]execute_script returns [23:50:28]free content buf [23:50:28]Sock 7.Close socket [23:50:28]Sock 7.Thread stoped [23:50:30]OFD Sender: No OFD packet to send [23:50:35]OFD Sender: No OFD packet to send [23:50:40]OFD Sender: No OFD packet to send [23:50:45]accept exits with 9 [23:50:45]New connection [23:50:45]New thread 3067096420 created [23:50:45]Thread 3066953060 joined [23:50:45]Waiting for new connection... [23:50:45] Sock 9.Parse request [23:50:45]Sock 9.Check first char [23:50:45]Sock 9.First char is OK [23:50:45]request: POST /json_proto HTTP/1.0 [23:50:45]Method: POST [23:50:45]URL: /json_proto [23:50:45]Method is POST - this is cgi request [23:50:45]url: /json_proto [23:50:45]query_string will be loaded in cgi processing [23:50:45]execute_cgi json_proto POST (null) [23:50:45]execute_cgi path=json_proto method=POST [23:50:45]POST find Content-Length [23:50:45]Host: 172.17.45.7:8080 [23:50:45]Content-Length: 215 [23:50:45]Content-Type: application/json [23:50:45] [23:50:45]POST finish read [23:50:45]Found Content-Length = 215 [23:50:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:45]execute_script... [23:50:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:45]POST & json_proto [23:50:45]process_json_proto [23:50:45]json parsed OK: [23:50:45]protocol is kg_v1.0 [23:50:45]action value=get_value [23:50:45]process_action get_value [23:50:45]cmd_get_value [23:50:45]process_action get_value done [23:50:45]requested_data is exist [23:50:45]produce_requested_data [23:50:45]requested_item kkm.sn is exist - process it [23:50:45]requested_item kkm.ver is exist - process it [23:50:45]requested_item fm.sn is exist - process it [23:50:45]wFMCommunicate request_size=4 [23:50:45]MH_SAM_APDU [23:50:45]CAPDU: 80 11 00 00 [23:50:45]Write to MH i2c: E2 08 00 6B 2A 80 11 00 00 00 00 00 00 0F [23:50:45]Write i2c OK [23:50:45]MH_I2C_Read... [23:50:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:45]Read from MH i2c: E2 [23:50:45]MH_I2C_Read... [23:50:45]Read from MH i2c: E2 17 00 [23:50:45]MH_I2C_Read... [23:50:45]Read from MH i2c: E2 17 00 6B 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6A [23:50:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:50:45]wFMCommunicate OK [23:50:45]requested_item fd.num is exist - process it [23:50:45]SAM_PROTO_GetFieldsCounters [23:50:45]wFMCommunicate request_size=4 [23:50:45]MH_SAM_APDU [23:50:45]CAPDU: 80 13 00 00 [23:50:45]Write to MH i2c: E2 08 00 6C 2A 80 13 00 00 00 00 00 00 12 [23:50:45]Write i2c OK [23:50:45]MH_I2C_Read... [23:50:45]OFD Sender: No OFD packet to send [23:50:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:50:46]Read from MH i2c: E2 [23:50:46]MH_I2C_Read... [23:50:46]Read from MH i2c: E2 62 00 [23:50:46]MH_I2C_Read... [23:50:46]Read from MH i2c: E2 62 00 6C 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 39 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 25 [23:50:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 39 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:50:46]wFMCommunicate OK [23:50:46]SAM_PROTO_GetFieldsCounters done [23:50:46]requested_item shift.num is exist - process it [23:50:46]requested_item shift.opened is exist - process it [23:50:46]req_shift_opened [23:50:46]FM_GetShiftState [23:50:46]SAM_PROTO_GetShiftState [23:50:46]wFMCommunicate request_size=4 [23:50:46]MH_SAM_APDU [23:50:46]CAPDU: 80 13 01 00 [23:50:46]Write to MH i2c: E2 08 00 6D 2A 80 13 01 00 00 00 00 00 14 [23:50:46]Write i2c OK [23:50:46]MH_I2C_Read... [23:50:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:46]Read from MH i2c: E2 [23:50:46]MH_I2C_Read... [23:50:46]Read from MH i2c: E2 0E 00 [23:50:46]MH_I2C_Read... [23:50:46]Read from MH i2c: E2 0E 00 6D 2A 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 A1 [23:50:46]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [23:50:46]wFMCommunicate OK [23:50:46]SAM_PROTO_GetShiftState done [23:50:46]FM_GetShiftState done [23:50:46]req_shift_opened done [23:50:46]requested_item shift.open_date is exist - process it [23:50:46]req_shift_open_date [23:50:46]req_shift_open_date done [23:50:46]produce_requested_data done [23:50:46]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118329,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [23:50:46]process_action_free get_value [23:50:46]json_value_free [23:50:46]json_value_free done [23:50:46]process_json_proto returns [23:50:46]Send response to host [23:50:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118329,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [23:50:46]free response buf [23:50:46]execute_script done [23:50:46]execute_script returns [23:50:46]free content buf [23:50:46]Sock 9.Close socket [23:50:46]Sock 9.Thread stoped [23:50:46]accept exits with 7 [23:50:46]New connection [23:50:46]New thread 3066953060 created [23:50:46]Thread 3067096420 joined [23:50:46]Waiting for new connection... [23:50:46] Sock 7.Parse request [23:50:46]Sock 7.Check first char [23:50:46]Sock 7.First char is OK [23:50:46]request: POST /json_proto HTTP/1.0 [23:50:46]Method: POST [23:50:46]URL: /json_proto [23:50:46]Method is POST - this is cgi request [23:50:46]url: /json_proto [23:50:46]query_string will be loaded in cgi processing [23:50:46]execute_cgi json_proto POST (null) [23:50:46]execute_cgi path=json_proto method=POST [23:50:46]POST find Content-Length [23:50:46]Host: 172.17.45.7:8080 [23:50:46]Content-Length: 331 [23:50:46]Content-Type: application/json [23:50:46] [23:50:46]POST finish read [23:50:46]Found Content-Length = 331 [23:50: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" ] } } [23:50:46]execute_script... [23:50: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" ] } } [23:50:46]POST & json_proto [23:50:46]process_json_proto [23:50:46]json parsed OK: [23:50:46]protocol is kg_v1.0 [23:50:46]action value=get_value [23:50:46]process_action get_value [23:50:46]cmd_get_value [23:50:46]process_action get_value done [23:50:46]requested_data is exist [23:50:46]produce_requested_data [23:50:46]requested_item fm.sale.total is exist - process it [23:50:46]SAM_PROTO_GetFMData [23:50:46]wFMCommunicate request_size=4 [23:50:46]MH_SAM_APDU [23:50:46]CAPDU: 80 13 03 00 [23:50:46]Write to MH i2c: E2 08 00 6E 2A 80 13 03 00 00 00 00 00 17 [23:50:46]Write i2c OK [23:50:46]MH_I2C_Read... [23:50:46]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:50:46]Read from MH i2c: E2 [23:50:46]MH_I2C_Read... [23:50:46]Read from MH i2c: E2 FD 00 [23:50:46]MH_I2C_Read... [23:50:46]Read from MH i2c: E2 FD 00 6E 2A 00 C5 04 85 04 C1 04 6E 04 04 00 D9 CA 01 00 69 04 A3 00 6F 04 04 00 57 BD 01 00 B1 04 05 00 24 A1 97 72 03 70 04 05 00 B8 FA BC A6 02 72 04 04 00 6C A6 DA CB 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 4A 3D C0 5D 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 E7 E3 CF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 82 0D 00 00 B1 04 04 00 DC 2E 0A 3B 70 04 04 00 DC 2E 0A 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2C 3C 45 06 EF 03 09 90 00 B6 [23:50:46]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 D9 CA 01 00 69 04 A3 00 6F 04 04 00 57 BD 01 00 B1 04 05 00 24 A1 97 72 03 70 04 05 00 B8 FA BC A6 02 72 04 04 00 6C A6 DA CB 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 4A 3D C0 5D 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 E7 E3 CF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 82 0D 00 00 B1 04 04 00 DC 2E 0A 3B 70 04 04 00 DC 2E 0A 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2C 3C 45 06 EF 03 09 90 00 [23:50:46]wFMCommunicate OK [23:50:46]wFMCommunicate request_size=4 [23:50:46]MH_SAM_APDU [23:50:46]CAPDU: 80 17 00 00 [23:50:46]Write to MH i2c: E2 08 00 6F 2A 80 17 00 00 00 00 00 00 19 [23:50:46]Write i2c OK [23:50:46]MH_I2C_Read... [23:50:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:47]Read from MH i2c: E2 [23:50:47]MH_I2C_Read... [23:50:47]Read from MH i2c: E2 FD 00 [23:50:47]MH_I2C_Read... [23:50:47]Read from MH i2c: E2 FD 00 6F 2A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 22 C4 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3A [23:50:47]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 22 C4 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:47]wFMCommunicate OK [23:50:47]wFMCommunicate request_size=4 [23:50:47]MH_SAM_APDU [23:50:47]CAPDU: 80 17 00 00 [23:50:47]Write to MH i2c: E2 08 00 70 2A 80 17 00 00 00 00 00 00 1A [23:50:47]Write i2c OK [23:50:47]MH_I2C_Read... [23:50:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:47]Read from MH i2c: E2 [23:50:47]MH_I2C_Read... [23:50:47]Read from MH i2c: E2 FD 00 [23:50:47]MH_I2C_Read... [23:50:47]Read from MH i2c: E2 FD 00 70 2A 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 2C [23:50:47]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:47]wFMCommunicate OK [23:50:47]wFMCommunicate request_size=4 [23:50:47]MH_SAM_APDU [23:50:47]CAPDU: 80 17 00 00 [23:50:47]Write to MH i2c: E2 08 00 71 2A 80 17 00 00 00 00 00 00 1B [23:50:47]Write i2c OK [23:50:47]MH_I2C_Read... [23:50:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:47]Read from MH i2c: E2 [23:50:47]MH_I2C_Read... [23:50:47]Read from MH i2c: E2 FD 00 [23:50:47]MH_I2C_Read... [23:50:47]Read from MH i2c: E2 FD 00 71 2A 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A7 [23:50:47]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:47]wFMCommunicate OK [23:50:47]wFMCommunicate request_size=4 [23:50:47]MH_SAM_APDU [23:50:47]CAPDU: 80 17 00 00 [23:50:47]Write to MH i2c: E2 08 00 72 2A 80 17 00 00 00 00 00 00 1C [23:50:47]Write i2c OK [23:50:47]MH_I2C_Read... [23:50:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:50:47]Read from MH i2c: E2 [23:50:47]MH_I2C_Read... [23:50:47]Read from MH i2c: E2 E2 00 [23:50:47]MH_I2C_Read... [23:50:47]Read from MH i2c: E2 E2 00 72 2A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FA [23:50:47]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:50:47]wFMCommunicate OK [23:50:47]SAM_PROTO_GetFMData done [23:50:47]requested_item fm.sale_refund.total is exist - process it [23:50:47]requested_item fm.buy.total is exist - process it [23:50:47]requested_item shift.sale.total is exist - process it [23:50:47]SAM_PROTO_GetShiftData [23:50:47]wFMCommunicate request_size=4 [23:50:47]MH_SAM_APDU [23:50:47]CAPDU: 80 13 02 00 [23:50:47]Write to MH i2c: E2 08 00 73 2A 80 13 02 00 00 00 00 00 1B [23:50:47]Write i2c OK [23:50:47]MH_I2C_Read... [23:50:48]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:50:48]Read from MH i2c: E2 [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: E2 FD 00 [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: E2 FD 00 73 2A 00 BD 04 AA 04 B9 04 6E 04 04 00 10 01 00 00 69 04 9F 00 6F 04 04 00 08 01 00 00 B1 04 04 00 50 B7 41 02 70 04 04 00 54 44 2F 01 72 04 04 00 FC 72 12 01 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 48 5D 3D 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 12 1D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 88 48 0C 70 04 03 00 88 48 0C 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 00 4E 01 EF 03 09 00 F6 03 01 00 00 F7 90 00 02 [23:50:48]RAPDU: BD 04 AA 04 B9 04 6E 04 04 00 10 01 00 00 69 04 9F 00 6F 04 04 00 08 01 00 00 B1 04 04 00 50 B7 41 02 70 04 04 00 54 44 2F 01 72 04 04 00 FC 72 12 01 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 48 5D 3D 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 12 1D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 88 48 0C 70 04 03 00 88 48 0C 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 00 4E 01 EF 03 09 00 F6 03 01 00 00 F7 90 00 [23:50:48]wFMCommunicate OK [23:50:48]wFMCommunicate request_size=4 [23:50:48]MH_SAM_APDU [23:50:48]CAPDU: 80 17 00 00 [23:50:48]Write to MH i2c: E2 08 00 74 2A 80 17 00 00 00 00 00 00 1E [23:50:48]Write i2c OK [23:50:48]MH_I2C_Read... [23:50:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:48]Read from MH i2c: E2 [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: E2 FD 00 [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: E2 FD 00 74 2A 00 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 BA [23:50:48]RAPDU: 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 [23:50:48]wFMCommunicate OK [23:50:48]wFMCommunicate request_size=4 [23:50:48]MH_SAM_APDU [23:50:48]CAPDU: 80 17 00 00 [23:50:48]Write to MH i2c: E2 08 00 75 2A 80 17 00 00 00 00 00 00 1F [23:50:48]Write i2c OK [23:50:48]MH_I2C_Read... [23:50:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:48]Read from MH i2c: E2 [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: E2 FD 00 [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: E2 FD 00 75 2A 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 51 [23:50:49]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [23:50:49]wFMCommunicate OK [23:50:49]wFMCommunicate request_size=4 [23:50:49]MH_SAM_APDU [23:50:49]CAPDU: 80 17 00 00 [23:50:49]Write to MH i2c: E2 08 00 76 2A 80 17 00 00 00 00 00 00 20 [23:50:49]Write i2c OK [23:50:49]MH_I2C_Read... [23:50:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:49]Read from MH i2c: E2 [23:50:49]MH_I2C_Read... [23:50:49]Read from MH i2c: E2 FD 00 [23:50:49]MH_I2C_Read... [23:50:49]Read from MH i2c: E2 FD 00 76 2A 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 97 [23:50:49]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:50:49]wFMCommunicate OK [23:50:49]wFMCommunicate request_size=4 [23:50:49]MH_SAM_APDU [23:50:49]CAPDU: 80 17 00 00 [23:50:49]Write to MH i2c: E2 08 00 77 2A 80 17 00 00 00 00 00 00 21 [23:50:49]Write i2c OK [23:50:49]MH_I2C_Read... [23:50:49]Read from MH i2c: E2 [23:50:49]MH_I2C_Read... [23:50:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [23:50:49]Read from MH i2c: E2 DA 00 [23:50:49]MH_I2C_Read... [23:50:49]Read from MH i2c: E2 DA 00 77 2A 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 02 [23:50:49]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:50:49]wFMCommunicate OK [23:50:49]SAM_PROTO_GetShiftData done [23:50:49]requested_item shift.sale.total_cash is exist - process it [23:50:49]requested_item shift.sale_refund.total is exist - process it [23:50:49]requested_item shift.sale_refund.total_cash is exist - process it [23:50:49]requested_item shift.buy.total is exist - process it [23:50:49]requested_item shift.buy.total_cash is exist - process it [23:50:49]produce_requested_data done [23:50:49]produce_requested_data return {"fm.sale.total":148074417.00,"fm.sale_refund.total":9905231.00,"fm.buy.total":0.00,"shift.sale.total":378612.00,"shift.sale.total_cash":198749.00,"shift.sale_refund.total":8050.00,"shift.sale_refund.total_cash":8050.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:50:49]process_action_free get_value [23:50:49]json_value_free [23:50:49]json_value_free done [23:50:49]process_json_proto returns [23:50:49]Send response to host [23:50:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":148074417.00,"fm.sale_refund.total":9905231.00,"fm.buy.total":0.00,"shift.sale.total":378612.00,"shift.sale.total_cash":198749.00,"shift.sale_refund.total":8050.00,"shift.sale_refund.total_cash":8050.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:50:49]free response buf [23:50:49]execute_script done [23:50:49]execute_script returns [23:50:49]free content buf [23:50:49]Sock 7.Close socket [23:50:49]Sock 7.Thread stoped [23:50:49]accept exits with 9 [23:50:49]New connection [23:50:49]New thread 3067096420 created [23:50:49]Thread 3066953060 joined [23:50:49]Waiting for new connection... [23:50:49] Sock 9.Parse request [23:50:49]Sock 9.Check first char [23:50:49]Sock 9.First char is OK [23:50:49]request: POST /json_proto HTTP/1.0 [23:50:49]Method: POST [23:50:49]URL: /json_proto [23:50:49]Method is POST - this is cgi request [23:50:49]url: /json_proto [23:50:49]query_string will be loaded in cgi processing [23:50:49]execute_cgi json_proto POST (null) [23:50:49]execute_cgi path=json_proto method=POST [23:50:49]POST find Content-Length [23:50:49]Host: 172.17.45.7:8080 [23:50:49]Content-Length: 331 [23:50:49]Content-Type: application/json [23:50:49] [23:50:49]POST finish read [23:50:49]Found Content-Length = 331 [23:50: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" ] } } [23:50:49]execute_script... [23:50: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" ] } } [23:50:49]POST & json_proto [23:50:49]process_json_proto [23:50:49]json parsed OK: [23:50:49]protocol is kg_v1.0 [23:50:49]action value=get_value [23:50:49]process_action get_value [23:50:49]cmd_get_value [23:50:49]process_action get_value done [23:50:49]requested_data is exist [23:50:49]produce_requested_data [23:50:49]requested_item fm.sale.total is exist - process it [23:50:49]SAM_PROTO_GetFMData [23:50:49]wFMCommunicate request_size=4 [23:50:49]MH_SAM_APDU [23:50:49]CAPDU: 80 13 03 00 [23:50:49]Write to MH i2c: E2 08 00 78 2A 80 13 03 00 00 00 00 00 21 [23:50:49]Write i2c OK [23:50:49]MH_I2C_Read... [23:50:50]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:50:50]Read from MH i2c: E2 [23:50:50]MH_I2C_Read... [23:50:50]Read from MH i2c: E2 FD 00 [23:50:50]MH_I2C_Read... [23:50:50]Read from MH i2c: E2 FD 00 78 2A 00 C5 04 85 04 C1 04 6E 04 04 00 D9 CA 01 00 69 04 A3 00 6F 04 04 00 57 BD 01 00 B1 04 05 00 24 A1 97 72 03 70 04 05 00 B8 FA BC A6 02 72 04 04 00 6C A6 DA CB 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 4A 3D C0 5D 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 E7 E3 CF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 82 0D 00 00 B1 04 04 00 DC 2E 0A 3B 70 04 04 00 DC 2E 0A 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2C 3C 45 06 EF 03 09 90 00 C0 [23:50:50]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 D9 CA 01 00 69 04 A3 00 6F 04 04 00 57 BD 01 00 B1 04 05 00 24 A1 97 72 03 70 04 05 00 B8 FA BC A6 02 72 04 04 00 6C A6 DA CB 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 4A 3D C0 5D 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 E7 E3 CF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 82 0D 00 00 B1 04 04 00 DC 2E 0A 3B 70 04 04 00 DC 2E 0A 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2C 3C 45 06 EF 03 09 90 00 [23:50:50]wFMCommunicate OK [23:50:50]wFMCommunicate request_size=4 [23:50:50]MH_SAM_APDU [23:50:50]CAPDU: 80 17 00 00 [23:50:50]Write to MH i2c: E2 08 00 79 2A 80 17 00 00 00 00 00 00 23 [23:50:50]Write i2c OK [23:50:50]MH_I2C_Read... [23:50:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:50]Read from MH i2c: E2 [23:50:50]MH_I2C_Read... [23:50:50]Read from MH i2c: E2 FD 00 [23:50:50]MH_I2C_Read... [23:50:50]Read from MH i2c: E2 FD 00 79 2A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 22 C4 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 44 [23:50:50]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 22 C4 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:50]wFMCommunicate OK [23:50:50]wFMCommunicate request_size=4 [23:50:50]MH_SAM_APDU [23:50:50]CAPDU: 80 17 00 00 [23:50:50]Write to MH i2c: E2 08 00 7A 2A 80 17 00 00 00 00 00 00 24 [23:50:50]Write i2c OK [23:50:50]MH_I2C_Read... [23:50:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:50]Read from MH i2c: E2 [23:50:50]MH_I2C_Read... [23:50:50]Read from MH i2c: E2 FD 00 [23:50:50]MH_I2C_Read... [23:50:50]Read from MH i2c: E2 FD 00 7A 2A 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 36 [23:50:50]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:50]wFMCommunicate OK [23:50:50]wFMCommunicate request_size=4 [23:50:50]MH_SAM_APDU [23:50:50]CAPDU: 80 17 00 00 [23:50:50]Write to MH i2c: E2 08 00 7B 2A 80 17 00 00 00 00 00 00 25 [23:50:50]Write i2c OK [23:50:50]MH_I2C_Read... [23:50:51]OFD Sender: No OFD packet to send [23:50:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:51]Read from MH i2c: E2 [23:50:51]MH_I2C_Read... [23:50:51]Read from MH i2c: E2 FD 00 [23:50:51]MH_I2C_Read... [23:50:51]Read from MH i2c: E2 FD 00 7B 2A 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B1 [23:50:51]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:51]wFMCommunicate OK [23:50:51]wFMCommunicate request_size=4 [23:50:51]MH_SAM_APDU [23:50:51]CAPDU: 80 17 00 00 [23:50:51]Write to MH i2c: E2 08 00 7C 2A 80 17 00 00 00 00 00 00 26 [23:50:51]Write i2c OK [23:50:51]MH_I2C_Read... [23:50:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:50:51]Read from MH i2c: E2 [23:50:51]MH_I2C_Read... [23:50:51]Read from MH i2c: E2 E2 00 [23:50:51]MH_I2C_Read... [23:50:51]Read from MH i2c: E2 E2 00 7C 2A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 04 [23:50:51]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:50:51]wFMCommunicate OK [23:50:51]SAM_PROTO_GetFMData done [23:50:51]requested_item fm.sale_refund.total is exist - process it [23:50:51]requested_item fm.buy.total is exist - process it [23:50:51]requested_item shift.sale.total is exist - process it [23:50:51]SAM_PROTO_GetShiftData [23:50:51]wFMCommunicate request_size=4 [23:50:51]MH_SAM_APDU [23:50:51]CAPDU: 80 13 02 00 [23:50:51]Write to MH i2c: E2 08 00 7D 2A 80 13 02 00 00 00 00 00 25 [23:50:51]Write i2c OK [23:50:51]MH_I2C_Read... [23:50:52]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:50:52]Read from MH i2c: E2 [23:50:52]MH_I2C_Read... [23:50:52]Read from MH i2c: E2 FD 00 [23:50:52]MH_I2C_Read... [23:50:52]Read from MH i2c: E2 FD 00 7D 2A 00 BD 04 AA 04 B9 04 6E 04 04 00 10 01 00 00 69 04 9F 00 6F 04 04 00 08 01 00 00 B1 04 04 00 50 B7 41 02 70 04 04 00 54 44 2F 01 72 04 04 00 FC 72 12 01 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 48 5D 3D 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 12 1D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 88 48 0C 70 04 03 00 88 48 0C 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 00 4E 01 EF 03 09 00 F6 03 01 00 00 F7 90 00 0C [23:50:52]RAPDU: BD 04 AA 04 B9 04 6E 04 04 00 10 01 00 00 69 04 9F 00 6F 04 04 00 08 01 00 00 B1 04 04 00 50 B7 41 02 70 04 04 00 54 44 2F 01 72 04 04 00 FC 72 12 01 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 48 5D 3D 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 12 1D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 88 48 0C 70 04 03 00 88 48 0C 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 00 4E 01 EF 03 09 00 F6 03 01 00 00 F7 90 00 [23:50:52]wFMCommunicate OK [23:50:52]wFMCommunicate request_size=4 [23:50:52]MH_SAM_APDU [23:50:52]CAPDU: 80 17 00 00 [23:50:52]Write to MH i2c: E2 08 00 7E 2A 80 17 00 00 00 00 00 00 28 [23:50:52]Write i2c OK [23:50:52]MH_I2C_Read... [23:50:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:52]Read from MH i2c: E2 [23:50:52]MH_I2C_Read... [23:50:52]Read from MH i2c: E2 FD 00 [23:50:52]MH_I2C_Read... [23:50:52]Read from MH i2c: E2 FD 00 7E 2A 00 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 C4 [23:50:52]RAPDU: 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 [23:50:52]wFMCommunicate OK [23:50:52]wFMCommunicate request_size=4 [23:50:52]MH_SAM_APDU [23:50:52]CAPDU: 80 17 00 00 [23:50:52]Write to MH i2c: E2 08 00 7F 2A 80 17 00 00 00 00 00 00 29 [23:50:52]Write i2c OK [23:50:52]MH_I2C_Read... [23:50:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:52]Read from MH i2c: E2 [23:50:52]MH_I2C_Read... [23:50:52]Read from MH i2c: E2 FD 00 [23:50:52]MH_I2C_Read... [23:50:53]Read from MH i2c: E2 FD 00 7F 2A 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 5B [23:50:53]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [23:50:53]wFMCommunicate OK [23:50:53]wFMCommunicate request_size=4 [23:50:53]MH_SAM_APDU [23:50:53]CAPDU: 80 17 00 00 [23:50:53]Write to MH i2c: E2 08 00 80 2A 80 17 00 00 00 00 00 00 2A [23:50:53]Write i2c OK [23:50:53]MH_I2C_Read... [23:50:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:53]Read from MH i2c: E2 [23:50:53]MH_I2C_Read... [23:50:53]Read from MH i2c: E2 FD 00 [23:50:53]MH_I2C_Read... [23:50:53]Read from MH i2c: E2 FD 00 80 2A 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 A1 [23:50:53]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:50:53]wFMCommunicate OK [23:50:53]wFMCommunicate request_size=4 [23:50:53]MH_SAM_APDU [23:50:53]CAPDU: 80 17 00 00 [23:50:53]Write to MH i2c: E2 08 00 81 2A 80 17 00 00 00 00 00 00 2B [23:50:53]Write i2c OK [23:50:53]MH_I2C_Read... [23:50:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [23:50:53]Read from MH i2c: E2 [23:50:53]MH_I2C_Read... [23:50:53]Read from MH i2c: E2 DA 00 [23:50:53]MH_I2C_Read... [23:50:53]Read from MH i2c: E2 DA 00 81 2A 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0C [23:50:53]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:50:54]wFMCommunicate OK [23:50:54]SAM_PROTO_GetShiftData done [23:50:54]requested_item shift.sale.total_cash is exist - process it [23:50:54]requested_item shift.sale_refund.total is exist - process it [23:50:54]requested_item shift.sale_refund.total_cash is exist - process it [23:50:54]requested_item shift.buy.total is exist - process it [23:50:54]requested_item shift.buy.total_cash is exist - process it [23:50:54]produce_requested_data done [23:50:54]produce_requested_data return {"fm.sale.total":148074417.00,"fm.sale_refund.total":9905231.00,"fm.buy.total":0.00,"shift.sale.total":378612.00,"shift.sale.total_cash":198749.00,"shift.sale_refund.total":8050.00,"shift.sale_refund.total_cash":8050.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:50:54]process_action_free get_value [23:50:54]json_value_free [23:50:54]json_value_free done [23:50:54]process_json_proto returns [23:50:54]Send response to host [23:50:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":148074417.00,"fm.sale_refund.total":9905231.00,"fm.buy.total":0.00,"shift.sale.total":378612.00,"shift.sale.total_cash":198749.00,"shift.sale_refund.total":8050.00,"shift.sale_refund.total_cash":8050.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:50:54]free response buf [23:50:54]execute_script done [23:50:54]execute_script returns [23:50:54]free content buf [23:50:54]Sock 9.Close socket [23:50:54]Sock 9.Thread stoped [23:50:54]accept exits with 7 [23:50:54]New connection [23:50:54]New thread 3066953060 created [23:50:54]Thread 3067096420 joined [23:50:54]Waiting for new connection... [23:50:54] Sock 7.Parse request [23:50:54]Sock 7.Check first char [23:50:54]Sock 7.First char is OK [23:50:54]request: POST /json_proto HTTP/1.0 [23:50:54]Method: POST [23:50:54]URL: /json_proto [23:50:54]Method is POST - this is cgi request [23:50:54]url: /json_proto [23:50:54]query_string will be loaded in cgi processing [23:50:54]execute_cgi json_proto POST (null) [23:50:54]execute_cgi path=json_proto method=POST [23:50:54]POST find Content-Length [23:50:54]Host: 172.17.45.7:8080 [23:50:54]Content-Length: 264 [23:50:54]Content-Type: application/json [23:50:54] [23:50:54]POST finish read [23:50:54]Found Content-Length = 264 [23:50:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:54]execute_script... [23:50:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:54]POST & json_proto [23:50:54]process_json_proto [23:50:54]json parsed OK: [23:50:54]protocol is kg_v1.0 [23:50:54]action value=x_report [23:50:54]process_action x_report [23:50:54]cmd_x_report [23:50:54]MH_GetDate [23:50:54]Write to MH i2c: F0 00 00 82 2A 9B [23:50:54]Write i2c OK [23:50:54]MH_I2C_Read... [23:50:54]Read from MH i2c: F0 [23:50:54]MH_I2C_Read... [23:50:54]Read from MH i2c: F0 09 00 [23:50:54]MH_I2C_Read... [23:50:54]Read from MH i2c: F0 09 00 82 2A 00 E0 87 A5 66 90 0F 3E 66 59 [23:50:54]GetLastDocTimeStamp 1722123949 [23:50:54]current date 1722124256 [23:50:54]FM_GetShiftState [23:50:54]SAM_PROTO_GetShiftState [23:50:54]wFMCommunicate request_size=4 [23:50:54]MH_SAM_APDU [23:50:54]CAPDU: 80 13 01 00 [23:50:54]Write to MH i2c: E2 08 00 83 2A 80 13 01 00 00 00 00 00 2A [23:50:54]Write i2c OK [23:50:54]MH_I2C_Read... [23:50:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:54]Read from MH i2c: E2 [23:50:54]MH_I2C_Read... [23:50:54]Read from MH i2c: E2 0E 00 [23:50:54]MH_I2C_Read... [23:50:54]Read from MH i2c: E2 0E 00 83 2A 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 B7 [23:50:54]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [23:50:54]wFMCommunicate OK [23:50:54]SAM_PROTO_GetShiftState done [23:50:54]FM_GetShiftState done [23:50:54]KKMCreateXReportDocument [23:50:54]Load OK [23:50:54]Malloc new data [23:50:54]MH_GetDate [23:50:54]Write to MH i2c: F0 00 00 84 2A 9D [23:50:54]Write i2c OK [23:50:54]MH_I2C_Read... [23:50:54]Read from MH i2c: F0 [23:50:54]MH_I2C_Read... [23:50:54]Read from MH i2c: F0 09 00 [23:50:54]MH_I2C_Read... [23:50:54]Read from MH i2c: F0 09 00 84 2A 00 E0 87 A5 66 90 0F 3E 66 5B [23:50:54]Malloc new data [23:50:54]Malloc new data [23:50:54]wFMCommunicate request_size=4 [23:50:54]MH_SAM_APDU [23:50:54]CAPDU: 80 11 00 00 [23:50:54]Write to MH i2c: E2 08 00 85 2A 80 11 00 00 00 00 00 00 29 [23:50:54]Write i2c OK [23:50:54]MH_I2C_Read... [23:50:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:54]Read from MH i2c: E2 [23:50:54]MH_I2C_Read... [23:50:54]Read from MH i2c: E2 17 00 [23:50:54]MH_I2C_Read... [23:50:54]Read from MH i2c: E2 17 00 85 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 84 [23:50:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:50:54]wFMCommunicate OK [23:50:54]SAM_PROTO_GetFieldsCounters [23:50:54]wFMCommunicate request_size=4 [23:50:54]MH_SAM_APDU [23:50:54]CAPDU: 80 13 00 00 [23:50:54]Write to MH i2c: E2 08 00 86 2A 80 13 00 00 00 00 00 00 2C [23:50:54]Write i2c OK [23:50:54]MH_I2C_Read... [23:50:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:50:54]Read from MH i2c: E2 [23:50:54]MH_I2C_Read... [23:50:54]Read from MH i2c: E2 62 00 [23:50:54]MH_I2C_Read... [23:50:54]Read from MH i2c: E2 62 00 86 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 39 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 3F [23:50:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 39 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:50:54]wFMCommunicate OK [23:50:54]SAM_PROTO_GetFieldsCounters done [23:50:54]Malloc new data [23:50:54]Malloc new data [23:50:54]Malloc new data [23:50:54]KKMCreateXReportDocument OK [23:50:54]KKMSetXReportData OK [23:50:54]KKMPrepareXReportFMData [23:50:54]SAM_PROTO_GetShiftData [23:50:54]wFMCommunicate request_size=4 [23:50:54]MH_SAM_APDU [23:50:54]CAPDU: 80 13 02 00 [23:50:54]Write to MH i2c: E2 08 00 87 2A 80 13 02 00 00 00 00 00 2F [23:50:54]Write i2c OK [23:50:54]MH_I2C_Read... [23:50:54]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:50:54]Read from MH i2c: E2 [23:50:54]MH_I2C_Read... [23:50:54]Read from MH i2c: E2 FD 00 [23:50:54]MH_I2C_Read... [23:50:54]Read from MH i2c: E2 FD 00 87 2A 00 BD 04 AA 04 B9 04 6E 04 04 00 10 01 00 00 69 04 9F 00 6F 04 04 00 08 01 00 00 B1 04 04 00 50 B7 41 02 70 04 04 00 54 44 2F 01 72 04 04 00 FC 72 12 01 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 48 5D 3D 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 12 1D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 88 48 0C 70 04 03 00 88 48 0C 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 00 4E 01 EF 03 09 00 F6 03 01 00 00 F7 90 00 16 [23:50:55]RAPDU: BD 04 AA 04 B9 04 6E 04 04 00 10 01 00 00 69 04 9F 00 6F 04 04 00 08 01 00 00 B1 04 04 00 50 B7 41 02 70 04 04 00 54 44 2F 01 72 04 04 00 FC 72 12 01 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 48 5D 3D 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 12 1D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 88 48 0C 70 04 03 00 88 48 0C 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 00 4E 01 EF 03 09 00 F6 03 01 00 00 F7 90 00 [23:50:55]wFMCommunicate OK [23:50:55]wFMCommunicate request_size=4 [23:50:55]MH_SAM_APDU [23:50:55]CAPDU: 80 17 00 00 [23:50:55]Write to MH i2c: E2 08 00 88 2A 80 17 00 00 00 00 00 00 32 [23:50:55]Write i2c OK [23:50:55]MH_I2C_Read... [23:50:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:55]Read from MH i2c: E2 [23:50:55]MH_I2C_Read... [23:50:55]Read from MH i2c: E2 FD 00 [23:50:55]MH_I2C_Read... [23:50:55]Read from MH i2c: E2 FD 00 88 2A 00 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 CE [23:50:55]RAPDU: 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 [23:50:55]wFMCommunicate OK [23:50:55]wFMCommunicate request_size=4 [23:50:55]MH_SAM_APDU [23:50:55]CAPDU: 80 17 00 00 [23:50:55]Write to MH i2c: E2 08 00 89 2A 80 17 00 00 00 00 00 00 33 [23:50:55]Write i2c OK [23:50:55]MH_I2C_Read... [23:50:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:55]Read from MH i2c: E2 [23:50:55]MH_I2C_Read... [23:50:55]Read from MH i2c: E2 FD 00 [23:50:55]MH_I2C_Read... [23:50:55]Read from MH i2c: E2 FD 00 89 2A 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 65 [23:50:56]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [23:50:56]wFMCommunicate OK [23:50:56]wFMCommunicate request_size=4 [23:50:56]MH_SAM_APDU [23:50:56]CAPDU: 80 17 00 00 [23:50:56]Write to MH i2c: E2 08 00 8A 2A 80 17 00 00 00 00 00 00 34 [23:50:56]OFD Sender: No OFD packet to send [23:50:56]Write i2c OK [23:50:56]MH_I2C_Read... [23:50:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:56]Read from MH i2c: E2 [23:50:56]MH_I2C_Read... [23:50:56]Read from MH i2c: E2 FD 00 [23:50:56]MH_I2C_Read... [23:50:56]Read from MH i2c: E2 FD 00 8A 2A 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 AB [23:50:56]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:50:56]wFMCommunicate OK [23:50:56]wFMCommunicate request_size=4 [23:50:56]MH_SAM_APDU [23:50:56]CAPDU: 80 17 00 00 [23:50:56]Write to MH i2c: E2 08 00 8B 2A 80 17 00 00 00 00 00 00 35 [23:50:56]Write i2c OK [23:50:56]MH_I2C_Read... [23:50:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [23:50:56]Read from MH i2c: E2 [23:50:56]MH_I2C_Read... [23:50:56]Read from MH i2c: E2 DA 00 [23:50:56]MH_I2C_Read... [23:50:56]Read from MH i2c: E2 DA 00 8B 2A 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 16 [23:50:56]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:50:57]wFMCommunicate OK [23:50:57]SAM_PROTO_GetShiftData done [23:50:57]1194 (1209) - счетчики итогов смены [23:50:57] 1134 (4) - 272 - количество чеков со всеми признаками расчетов [23:50:57] 1129 (159) - счетчики операций «приход» [23:50:57] 1135 (4) - 264 - количество чеков по признаку расчетов [23:50:57] 1201 (4) - 378612.00 - общая итоговая сумма в чеках [23:50:57] 1136 (4) - 198749.00 - итоговая сумма в чеках наличными [23:50:57] 1138 (4) - 179863.00 - итоговая сумма в чеках безналичными [23:50:57] 1024 (123) - суммы налогов [23:50:57] 1006 (9) - суммы НДС [23:50:57] 1010 (1) - 0% - код ставки НДС [23:50:57] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:57] 1006 (12) - суммы НДС [23:50:57] 1010 (1) - 12% - код ставки НДС [23:50:57] 1011 (3) - 40215.76 - сумма НДС по ставке [23:50:57] 1007 (9) - суммы НСП [23:50:57] 1014 (1) - 0% - код ставки НСП [23:50:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:57] 1007 (12) - суммы НСП [23:50:57] 1014 (1) - 1% - код ставки НСП [23:50:57] 1015 (3) - 3351.22 - сумма НСП по ставке [23:50:57] 1007 (9) - суммы НСП [23:50:57] 1014 (1) - 2% - код ставки НСП [23:50:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:57] 1007 (9) - суммы НСП [23:50:57] 1014 (1) - 3% - код ставки НСП [23:50:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:57] 1007 (9) - суммы НСП [23:50:57] 1014 (1) - 5% - код ставки НСП [23:50:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:57] 1007 (9) - суммы НСП [23:50:57] 1014 (1) - 0,50% - код ставки НСП [23:50:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:57] 1007 (9) - суммы НСП [23:50:57] 1014 (1) - 1,50% - код ставки НСП [23:50:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:57] 1130 (152) - счетчики операций «возврат прихода» [23:50:57] 1135 (4) - 8 - количество чеков по признаку расчетов [23:50:57] 1201 (3) - 8050.00 - общая итоговая сумма в чеках [23:50:57] 1136 (3) - 8050.00 - итоговая сумма в чеках наличными [23:50:57] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:50:57] 1024 (122) - суммы налогов [23:50:57] 1006 (9) - суммы НДС [23:50:57] 1010 (1) - 0% - код ставки НДС [23:50:57] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:57] 1006 (12) - суммы НДС [23:50:57] 1010 (1) - 12% - код ставки НДС [23:50:57] 1011 (3) - 855.04 - сумма НДС по ставке [23:50:57] 1007 (9) - суммы НСП [23:50:57] 1014 (1) - 0% - код ставки НСП [23:50:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:57] 1007 (11) - суммы НСП [23:50:57] 1014 (1) - 1% - код ставки НСП [23:50:57] 1015 (2) - 71.24 - сумма НСП по ставке [23:50:57] 1007 (9) - суммы НСП [23:50:57] 1014 (1) - 2% - код ставки НСП [23:50:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:57] 1007 (9) - суммы НСП [23:50:57] 1014 (1) - 3% - код ставки НСП [23:50:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:57] 1007 (9) - суммы НСП [23:50:57] 1014 (1) - 5% - код ставки НСП [23:50:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:57] 1007 (9) - суммы НСП [23:50:57] 1014 (1) - 0,50% - код ставки НСП [23:50:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:57] 1007 (9) - суммы НСП [23:50:57] 1014 (1) - 1,50% - код ставки НСП [23:50:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:57] 1131 (141) - счетчики операций «расход» [23:50:57] 1135 (4) - 0 - количество чеков по признаку расчетов [23:50:57] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:50:57] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:50:57] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:50:57] 1024 (117) - суммы налогов [23:50:57] 1006 (9) - суммы НДС [23:50:57] 1010 (1) - 0% - код ставки НДС [23:50:57] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:57] 1006 (9) - суммы НДС [23:50:57] 1010 (1) - 12% - код ставки НДС [23:50:57] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:57] 1007 (9) - суммы НСП [23:50:57] 1014 (1) - 0% - код ставки НСП [23:50:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:57] 1007 (9) - суммы НСП [23:50:57] 1014 (1) - 1% - код ставки НСП [23:50:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:57] 1007 (9) - суммы НСП [23:50:57] 1014 (1) - 2% - код ставки НСП [23:50:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:57] 1007 (9) - суммы НСП [23:50:57] 1014 (1) - 3% - код ставки НСП [23:50:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:57] 1007 (9) - суммы НСП [23:50:57] 1014 (1) - 5% - код ставки НСП [23:50:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:57] 1007 (9) - суммы НСП [23:50:57] 1014 (1) - 0,50% - код ставки НСП [23:50:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:57] 1007 (9) - суммы НСП [23:50:57] 1014 (1) - 1,50% - код ставки НСП [23:50:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:57] 1132 (141) - счетчики операций «возврат расхода» [23:50:57] 1135 (4) - 0 - количество чеков по признаку расчетов [23:50:57] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:50:57] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:50:57] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:50:57] 1024 (117) - суммы налогов [23:50:57] 1006 (9) - суммы НДС [23:50:57] 1010 (1) - 0% - код ставки НДС [23:50:57] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:57] 1006 (9) - суммы НДС [23:50:57] 1010 (1) - 12% - код ставки НДС [23:50:57] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:57] 1007 (9) - суммы НСП [23:50:57] 1014 (1) - 0% - код ставки НСП [23:50:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:57] 1007 (9) - суммы НСП [23:50:57] 1014 (1) - 1% - код ставки НСП [23:50:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:57] 1007 (9) - суммы НСП [23:50:57] 1014 (1) - 2% - код ставки НСП [23:50:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:57] 1007 (9) - суммы НСП [23:50:57] 1014 (1) - 3% - код ставки НСП [23:50:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:57] 1007 (9) - суммы НСП [23:50:57] 1014 (1) - 5% - код ставки НСП [23:50:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:57] 1007 (9) - суммы НСП [23:50:57] 1014 (1) - 0,50% - код ставки НСП [23:50:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:57] 1007 (9) - суммы НСП [23:50:57] 1014 (1) - 1,50% - код ставки НСП [23:50:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:57] 1133 (588) - - счетчики коррекции - не используются [23:50:57]SetTLVBufToDocument [23:50:57]Processing tag 1194 (04AA) [23:50:57]Load OK [23:50:57]SetTLVBufToDocument [23:50:57]Processing tag 1134 (046E) [23:50:57]Malloc new data [23:50:57]Processing tag 1129 (0469) [23:50:57]Load OK [23:50:57]SetTLVBufToDocument [23:50:57]Processing tag 1135 (046F) [23:50:57]Malloc new data [23:50:57]Processing tag 1201 (04B1) [23:50:57]Malloc new data [23:50:57]Processing tag 1136 (0470) [23:50:57]Malloc new data [23:50:57]Processing tag 1138 (0472) [23:50:57]Malloc new data [23:50:57]Processing tag 1024 (0400) [23:50:57]Load OK [23:50:57]SetTLVBufToDocument [23:50:57]Processing tag 1006 (03EE) [23:50:57]Load OK [23:50:57]SetTLVBufToDocument [23:50:57]Processing tag 1010 (03F2) [23:50:57]Malloc new data [23:50:57]Processing tag 1011 (03F3) [23:50:57]Malloc new data [23:50:57]SetTLVBufToDocument err=0 [23:50:57]Processing tag 1006 (03EE) [23:50:57]Load OK [23:50:57]SetTLVBufToDocument [23:50:57]Processing tag 1010 (03F2) [23:50:57]Malloc new data [23:50:57]Processing tag 1011 (03F3) [23:50:57]Malloc new data [23:50:57]SetTLVBufToDocument err=0 [23:50:57]Processing tag 1007 (03EF) [23:50:57]Load OK [23:50:57]SetTLVBufToDocument [23:50:57]Processing tag 1014 (03F6) [23:50:57]Malloc new data [23:50:57]Processing tag 1015 (03F7) [23:50:57]Malloc new data [23:50:57]SetTLVBufToDocument err=0 [23:50:57]Processing tag 1007 (03EF) [23:50:57]Load OK [23:50:57]SetTLVBufToDocument [23:50:57]Processing tag 1014 (03F6) [23:50:57]Malloc new data [23:50:57]Processing tag 1015 (03F7) [23:50:57]Malloc new data [23:50:57]SetTLVBufToDocument err=0 [23:50:57]Processing tag 1007 (03EF) [23:50:57]Load OK [23:50:57]SetTLVBufToDocument [23:50:57]Processing tag 1014 (03F6) [23:50:57]Malloc new data [23:50:57]Processing tag 1015 (03F7) [23:50:57]Malloc new data [23:50:57]SetTLVBufToDocument err=0 [23:50:57]Processing tag 1007 (03EF) [23:50:57]Load OK [23:50:57]SetTLVBufToDocument [23:50:57]Processing tag 1014 (03F6) [23:50:57]Malloc new data [23:50:57]Processing tag 1015 (03F7) [23:50:57]Malloc new data [23:50:57]SetTLVBufToDocument err=0 [23:50:57]Processing tag 1007 (03EF) [23:50:57]Load OK [23:50:57]SetTLVBufToDocument [23:50:57]Processing tag 1014 (03F6) [23:50:57]Malloc new data [23:50:57]Processing tag 1015 (03F7) [23:50:57]Malloc new data [23:50:57]SetTLVBufToDocument err=0 [23:50:57]Processing tag 1007 (03EF) [23:50:57]Load OK [23:50:57]SetTLVBufToDocument [23:50:57]Processing tag 1014 (03F6) [23:50:57]Malloc new data [23:50:57]Processing tag 1015 (03F7) [23:50:57]Malloc new data [23:50:57]SetTLVBufToDocument err=0 [23:50:57]Processing tag 1007 (03EF) [23:50:57]Load OK [23:50:57]SetTLVBufToDocument [23:50:57]Processing tag 1014 (03F6) [23:50:57]Malloc new data [23:50:57]Processing tag 1015 (03F7) [23:50:57]Malloc new data [23:50:57]SetTLVBufToDocument err=0 [23:50:57]SetTLVBufToDocument err=0 [23:50:57]SetTLVBufToDocument err=0 [23:50:57]Processing tag 1130 (046A) [23:50:57]Load OK [23:50:57]SetTLVBufToDocument [23:50:57]Processing tag 1135 (046F) [23:50:57]Malloc new data [23:50:57]Processing tag 1201 (04B1) [23:50:57]Malloc new data [23:50:57]Processing tag 1136 (0470) [23:50:57]Malloc new data [23:50:57]Processing tag 1138 (0472) [23:50:57]Malloc new data [23:50:57]Processing tag 1024 (0400) [23:50:57]Load OK [23:50:57]SetTLVBufToDocument [23:50:57]Processing tag 1006 (03EE) [23:50:57]Load OK [23:50:57]SetTLVBufToDocument [23:50:57]Processing tag 1010 (03F2) [23:50:57]Malloc new data [23:50:57]Processing tag 1011 (03F3) [23:50:57]Malloc new data [23:50:57]SetTLVBufToDocument err=0 [23:50:57]Processing tag 1006 (03EE) [23:50:57]Load OK [23:50:57]SetTLVBufToDocument [23:50:57]Processing tag 1010 (03F2) [23:50:57]Malloc new data [23:50:57]Processing tag 1011 (03F3) [23:50:57]Malloc new data [23:50:57]SetTLVBufToDocument err=0 [23:50:57]Processing tag 1007 (03EF) [23:50:57]Load OK [23:50:57]SetTLVBufToDocument [23:50:57]Processing tag 1014 (03F6) [23:50:57]Malloc new data [23:50:57]Processing tag 1015 (03F7) [23:50:57]Malloc new data [23:50:57]SetTLVBufToDocument err=0 [23:50:57]Processing tag 1007 (03EF) [23:50:57]Load OK [23:50:57]SetTLVBufToDocument [23:50:57]Processing tag 1014 (03F6) [23:50:57]Malloc new data [23:50:57]Processing tag 1015 (03F7) [23:50:57]Malloc new data [23:50:57]SetTLVBufToDocument err=0 [23:50:57]Processing tag 1007 (03EF) [23:50:57]Load OK [23:50:57]SetTLVBufToDocument [23:50:57]Processing tag 1014 (03F6) [23:50:57]Malloc new data [23:50:57]Processing tag 1015 (03F7) [23:50:57]Malloc new data [23:50:57]SetTLVBufToDocument err=0 [23:50:57]Processing tag 1007 (03EF) [23:50:57]Load OK [23:50:57]SetTLVBufToDocument [23:50:57]Processing tag 1014 (03F6) [23:50:57]Malloc new data [23:50:57]Processing tag 1015 (03F7) [23:50:57]Malloc new data [23:50:57]SetTLVBufToDocument err=0 [23:50:57]Processing tag 1007 (03EF) [23:50:57]Load OK [23:50:57]SetTLVBufToDocument [23:50:57]Processing tag 1014 (03F6) [23:50:57]Malloc new data [23:50:57]Processing tag 1015 (03F7) [23:50:57]Malloc new data [23:50:57]SetTLVBufToDocument err=0 [23:50:57]Processing tag 1007 (03EF) [23:50:57]Load OK [23:50:57]SetTLVBufToDocument [23:50:57]Processing tag 1014 (03F6) [23:50:57]Malloc new data [23:50:57]Processing tag 1015 (03F7) [23:50:57]Malloc new data [23:50:57]SetTLVBufToDocument err=0 [23:50:57]Processing tag 1007 (03EF) [23:50:57]Load OK [23:50:57]SetTLVBufToDocument [23:50:57]Processing tag 1014 (03F6) [23:50:57]Malloc new data [23:50:57]Processing tag 1015 (03F7) [23:50:57]Malloc new data [23:50:57]SetTLVBufToDocument err=0 [23:50:57]SetTLVBufToDocument err=0 [23:50:57]SetTLVBufToDocument err=0 [23:50:57]Processing tag 1131 (046B) [23:50:57]Load OK [23:50:57]SetTLVBufToDocument [23:50:57]Processing tag 1135 (046F) [23:50:57]Malloc new data [23:50:57]Processing tag 1201 (04B1) [23:50:57]Malloc new data [23:50:57]Processing tag 1136 (0470) [23:50:57]Malloc new data [23:50:57]Processing tag 1138 (0472) [23:50:57]Malloc new data [23:50:57]Processing tag 1024 (0400) [23:50:57]Load OK [23:50:57]SetTLVBufToDocument [23:50:57]Processing tag 1006 (03EE) [23:50:57]Load OK [23:50:57]SetTLVBufToDocument [23:50:57]Processing tag 1010 (03F2) [23:50:57]Malloc new data [23:50:57]Processing tag 1011 (03F3) [23:50:57]Malloc new data [23:50:57]SetTLVBufToDocument err=0 [23:50:57]Processing tag 1006 (03EE) [23:50:57]Load OK [23:50:57]SetTLVBufToDocument [23:50:57]Processing tag 1010 (03F2) [23:50:57]Malloc new data [23:50:57]Processing tag 1011 (03F3) [23:50:57]Malloc new data [23:50:57]SetTLVBufToDocument err=0 [23:50:57]Processing tag 1007 (03EF) [23:50:57]Load OK [23:50:57]SetTLVBufToDocument [23:50:57]Processing tag 1014 (03F6) [23:50:57]Malloc new data [23:50:57]Processing tag 1015 (03F7) [23:50:57]Malloc new data [23:50:57]SetTLVBufToDocument err=0 [23:50:57]Processing tag 1007 (03EF) [23:50:57]Load OK [23:50:57]SetTLVBufToDocument [23:50:57]Processing tag 1014 (03F6) [23:50:57]Malloc new data [23:50:57]Processing tag 1015 (03F7) [23:50:57]Malloc new data [23:50:57]SetTLVBufToDocument err=0 [23:50:57]Processing tag 1007 (03EF) [23:50:57]Load OK [23:50:57]SetTLVBufToDocument [23:50:57]Processing tag 1014 (03F6) [23:50:57]Malloc new data [23:50:57]Processing tag 1015 (03F7) [23:50:57]Malloc new data [23:50:57]SetTLVBufToDocument err=0 [23:50:57]Processing tag 1007 (03EF) [23:50:57]Load OK [23:50:57]SetTLVBufToDocument [23:50:57]Processing tag 1014 (03F6) [23:50:57]Malloc new data [23:50:57]Processing tag 1015 (03F7) [23:50:57]Malloc new data [23:50:57]SetTLVBufToDocument err=0 [23:50:57]Processing tag 1007 (03EF) [23:50:57]Load OK [23:50:57]SetTLVBufToDocument [23:50:57]Processing tag 1014 (03F6) [23:50:57]Malloc new data [23:50:57]Processing tag 1015 (03F7) [23:50:57]Malloc new data [23:50:57]SetTLVBufToDocument err=0 [23:50:57]Processing tag 1007 (03EF) [23:50:57]Load OK [23:50:57]SetTLVBufToDocument [23:50:57]Processing tag 1014 (03F6) [23:50:57]Malloc new data [23:50:57]Processing tag 1015 (03F7) [23:50:57]Malloc new data [23:50:57]SetTLVBufToDocument err=0 [23:50:58]Processing tag 1007 (03EF) [23:50:58]Load OK [23:50:58]SetTLVBufToDocument [23:50:58]Processing tag 1014 (03F6) [23:50:58]Malloc new data [23:50:58]Processing tag 1015 (03F7) [23:50:58]Malloc new data [23:50:58]SetTLVBufToDocument err=0 [23:50:58]SetTLVBufToDocument err=0 [23:50:58]SetTLVBufToDocument err=0 [23:50:58]Processing tag 1132 (046C) [23:50:58]Load OK [23:50:58]SetTLVBufToDocument [23:50:58]Processing tag 1135 (046F) [23:50:58]Malloc new data [23:50:58]Processing tag 1201 (04B1) [23:50:58]Malloc new data [23:50:58]Processing tag 1136 (0470) [23:50:58]Malloc new data [23:50:58]Processing tag 1138 (0472) [23:50:58]Malloc new data [23:50:58]Processing tag 1024 (0400) [23:50:58]Load OK [23:50:58]SetTLVBufToDocument [23:50:58]Processing tag 1006 (03EE) [23:50:58]Load OK [23:50:58]SetTLVBufToDocument [23:50:58]Processing tag 1010 (03F2) [23:50:58]Malloc new data [23:50:58]Processing tag 1011 (03F3) [23:50:58]Malloc new data [23:50:58]SetTLVBufToDocument err=0 [23:50:58]Processing tag 1006 (03EE) [23:50:58]Load OK [23:50:58]SetTLVBufToDocument [23:50:58]Processing tag 1010 (03F2) [23:50:58]Malloc new data [23:50:58]Processing tag 1011 (03F3) [23:50:58]Malloc new data [23:50:58]SetTLVBufToDocument err=0 [23:50:58]Processing tag 1007 (03EF) [23:50:58]Load OK [23:50:58]SetTLVBufToDocument [23:50:58]Processing tag 1014 (03F6) [23:50:58]Malloc new data [23:50:58]Processing tag 1015 (03F7) [23:50:58]Malloc new data [23:50:58]SetTLVBufToDocument err=0 [23:50:58]Processing tag 1007 (03EF) [23:50:58]Load OK [23:50:58]SetTLVBufToDocument [23:50:58]Processing tag 1014 (03F6) [23:50:58]Malloc new data [23:50:58]Processing tag 1015 (03F7) [23:50:58]Malloc new data [23:50:58]SetTLVBufToDocument err=0 [23:50:58]Processing tag 1007 (03EF) [23:50:58]Load OK [23:50:58]SetTLVBufToDocument [23:50:58]Processing tag 1014 (03F6) [23:50:58]Malloc new data [23:50:58]Processing tag 1015 (03F7) [23:50:58]Malloc new data [23:50:58]SetTLVBufToDocument err=0 [23:50:58]Processing tag 1007 (03EF) [23:50:58]Load OK [23:50:58]SetTLVBufToDocument [23:50:58]Processing tag 1014 (03F6) [23:50:58]Malloc new data [23:50:58]Processing tag 1015 (03F7) [23:50:58]Malloc new data [23:50:58]SetTLVBufToDocument err=0 [23:50:58]Processing tag 1007 (03EF) [23:50:58]Load OK [23:50:58]SetTLVBufToDocument [23:50:58]Processing tag 1014 (03F6) [23:50:58]Malloc new data [23:50:58]Processing tag 1015 (03F7) [23:50:58]Malloc new data [23:50:58]SetTLVBufToDocument err=0 [23:50:58]Processing tag 1007 (03EF) [23:50:58]Load OK [23:50:58]SetTLVBufToDocument [23:50:58]Processing tag 1014 (03F6) [23:50:58]Malloc new data [23:50:58]Processing tag 1015 (03F7) [23:50:58]Malloc new data [23:50:58]SetTLVBufToDocument err=0 [23:50:58]Processing tag 1007 (03EF) [23:50:58]Load OK [23:50:58]SetTLVBufToDocument [23:50:58]Processing tag 1014 (03F6) [23:50:58]Malloc new data [23:50:58]Processing tag 1015 (03F7) [23:50:58]Malloc new data [23:50:58]SetTLVBufToDocument err=0 [23:50:58]SetTLVBufToDocument err=0 [23:50:58]SetTLVBufToDocument err=0 [23:50:58]Processing tag 1133 (046D) [23:50:58]Malloc new data [23:50:58]SetTLVBufToDocument err=0 [23:50:58]SetTLVBufToDocument err=0 [23:50:58]Malloc new data [23:50:58]SAM_PROTO_GetFMData [23:50:58]wFMCommunicate request_size=4 [23:50:58]MH_SAM_APDU [23:50:58]CAPDU: 80 13 03 00 [23:50:58]Write to MH i2c: E2 08 00 8C 2A 80 13 03 00 00 00 00 00 35 [23:50:58]Write i2c OK [23:50:58]MH_I2C_Read... [23:50:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:50:58]Read from MH i2c: E2 [23:50:58]MH_I2C_Read... [23:50:58]Read from MH i2c: E2 FD 00 [23:50:58]MH_I2C_Read... [23:50:58]Read from MH i2c: E2 FD 00 8C 2A 00 C5 04 85 04 C1 04 6E 04 04 00 D9 CA 01 00 69 04 A3 00 6F 04 04 00 57 BD 01 00 B1 04 05 00 24 A1 97 72 03 70 04 05 00 B8 FA BC A6 02 72 04 04 00 6C A6 DA CB 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 4A 3D C0 5D 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 E7 E3 CF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 82 0D 00 00 B1 04 04 00 DC 2E 0A 3B 70 04 04 00 DC 2E 0A 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2C 3C 45 06 EF 03 09 90 00 D4 [23:50:58]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 D9 CA 01 00 69 04 A3 00 6F 04 04 00 57 BD 01 00 B1 04 05 00 24 A1 97 72 03 70 04 05 00 B8 FA BC A6 02 72 04 04 00 6C A6 DA CB 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 4A 3D C0 5D 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 E7 E3 CF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 82 0D 00 00 B1 04 04 00 DC 2E 0A 3B 70 04 04 00 DC 2E 0A 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2C 3C 45 06 EF 03 09 90 00 [23:50:58]wFMCommunicate OK [23:50:58]wFMCommunicate request_size=4 [23:50:58]MH_SAM_APDU [23:50:58]CAPDU: 80 17 00 00 [23:50:58]Write to MH i2c: E2 08 00 8D 2A 80 17 00 00 00 00 00 00 37 [23:50:58]Write i2c OK [23:50:58]MH_I2C_Read... [23:50:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:59]Read from MH i2c: E2 [23:50:59]MH_I2C_Read... [23:50:59]Read from MH i2c: E2 FD 00 [23:50:59]MH_I2C_Read... [23:50:59]Read from MH i2c: E2 FD 00 8D 2A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 22 C4 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 58 [23:50:59]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 22 C4 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:59]wFMCommunicate OK [23:50:59]wFMCommunicate request_size=4 [23:50:59]MH_SAM_APDU [23:50:59]CAPDU: 80 17 00 00 [23:50:59]Write to MH i2c: E2 08 00 8E 2A 80 17 00 00 00 00 00 00 38 [23:50:59]Write i2c OK [23:50:59]MH_I2C_Read... [23:50:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:59]Read from MH i2c: E2 [23:50:59]MH_I2C_Read... [23:50:59]Read from MH i2c: E2 FD 00 [23:50:59]MH_I2C_Read... [23:50:59]Read from MH i2c: E2 FD 00 8E 2A 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 4A [23:50:59]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:59]wFMCommunicate OK [23:50:59]wFMCommunicate request_size=4 [23:50:59]MH_SAM_APDU [23:50:59]CAPDU: 80 17 00 00 [23:50:59]Write to MH i2c: E2 08 00 8F 2A 80 17 00 00 00 00 00 00 39 [23:50:59]Write i2c OK [23:50:59]MH_I2C_Read... [23:51:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:00]Read from MH i2c: E2 [23:51:00]MH_I2C_Read... [23:51:00]Read from MH i2c: E2 FD 00 [23:51:00]MH_I2C_Read... [23:51:00]Read from MH i2c: E2 FD 00 8F 2A 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C5 [23:51:00]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:00]wFMCommunicate OK [23:51:00]wFMCommunicate request_size=4 [23:51:00]MH_SAM_APDU [23:51:00]CAPDU: 80 17 00 00 [23:51:00]Write to MH i2c: E2 08 00 90 2A 80 17 00 00 00 00 00 00 3A [23:51:00]Write i2c OK [23:51:00]MH_I2C_Read... [23:51:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:51:00]Read from MH i2c: E2 [23:51:00]MH_I2C_Read... [23:51:00]Read from MH i2c: E2 E2 00 [23:51:00]MH_I2C_Read... [23:51:00]Read from MH i2c: E2 E2 00 90 2A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 18 [23:51:00]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:51:01]wFMCommunicate OK [23:51:01]SAM_PROTO_GetFMData done [23:51:01]FM_GetFMData:85 04 C1 04 6E 04 04 00 D9 CA 01 00 69 04 A3 00 6F 04 04 00 57 BD 01 00 B1 04 05 00 24 A1 97 72 03 70 04 05 00 B8 FA BC A6 02 72 04 04 00 6C A6 DA CB 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 4A 3D C0 5D 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 E7 E3 CF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 82 0D 00 00 B1 04 04 00 DC 2E 0A 3B 70 04 04 00 OFD Sender: No OFD packet to send [23:51:01]DC 2E 0A 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2C 3C 45 06 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 22 C4 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:51:01]oper:6F 04 04 00 57 BD 01 00 B1 04 05 00 24 A1 97 72 03 70 04 05 00 B8 FA BC A6 02 72 04 04 00 6C A6 DA CB 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 4A 3D C0 5D 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 E7 E3 CF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:51:02]total:24 A1 97 72 03 [23:51:02]Malloc new data [23:51:02]oper:6F 04 04 00 82 0D 00 00 B1 04 04 00 DC 2E 0A 3B 70 04 04 00 DC 2E 0A 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2C 3C 45 06 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 22 C4 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:51:02]total:DC 2E 0A 3B [23:51:02]Malloc new data [23:51:02]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 [23:51:02]total: [23:51:02]Malloc new data [23:51:02]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 [23:51:02]total: [23:51:02]Malloc new data [23:51:02]KKMPrepareXReportFMData err=0 [23:51:02]Х отчет ИНН: 02508201610067 Кассир: Айдарали у Б. 27.07.2024 23:50 Смена: 266 РНМ: 0000000000092660 ЗНМ: 0300000044 СНО: Общий режим Всего чеков: 272 ИТОГИ ПРИХОД Чеков: 264 Общий итог: 378612.00 Итого наличными: 198749.00 Итого безнал.: 179863.00 НДС 0% : 0.00 НДС 12% : 40215.76 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3351.22 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 8 Общий итог: 8050.00 Итого наличными: 8050.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 855.04 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 71.24 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 190699.00 НС Приход: 148074417.00 НС Возвр.Прихода: 9905231.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874939 [23:51:02]StoreToDocumentArchive [23:51:02]MH_GetDate [23:51:02]Write to MH i2c: F0 00 00 91 2A AA [23:51:02]Write i2c OK [23:51:02]MH_I2C_Read... [23:51:02]Read from MH i2c: F0 [23:51:02]MH_I2C_Read... [23:51:02]Read from MH i2c: F0 09 00 [23:51:02]MH_I2C_Read... [23:51:02]Read from MH i2c: F0 09 00 91 2A 00 E8 87 A5 66 90 0F 3E 66 70 [23:51:02]shift 266 fd 1722124264 [23:51:02]Create dir for shift 0266 [23:51:02]save to /storage/0266/doc_1722124264 [23:51:02]save last doc name /storage/0266/doc_1722124264 to /storage/kkm_last_doc_name [23:51:02]save OK [23:51:02]Clear old archive folders... [23:51:02]NVStorageSaveData kkm_last_timestamp [23:51:02]File name is /storage/kkm_last_timestamp [23:51:02]Write 4 bytes [23:51:02]NVStorageSaveData done [23:51:02]ExternCall_PrintAddStr [23:51:02]wPrintStart [23:51:02]Write to MH i2c: 01 00 00 92 2A BC [23:51:02]Write i2c OK [23:51:02]MH_I2C_Read... [23:51:02]Read from MH i2c: 01 [23:51:02]MH_I2C_Read... [23:51:02]Read from MH i2c: 01 07 00 [23:51:02]MH_I2C_Read... [23:51:02]Read from MH i2c: 01 07 00 92 2A 00 00 00 00 00 FF 0F D1 [23:51:02]RasterBufferAndPrint [23:51:02]line Х отчет [23:51:02]line ИНН: 02508201610067 [23:51:02]line Кассир: Айдарали у Б. [23:51:02]line 27.07.2024 23:50 [23:51:02]line Смена: 266 [23:51:02]line РНМ: 0000000000092660 [23:51:02]line ЗНМ: 0300000044 [23:51:02]line СНО: Общий режим [23:51:02]line Всего чеков: 272 [23:51:02]line ИТОГИ ПРИХОД [23:51:02]line Чеков: 264 [23:51:02]line Общий итог: 378612.00 [23:51:02]line Итого наличными: 198749.00 [23:51:02]line Итого безнал.: 179863.00 [23:51:02]line НДС 0% : 0.00 [23:51:02]line НДС 12% : 40215.76 [23:51:02]line НСП 0% : 0.00 [23:51:02]line НСП 1,50% : 0.00 [23:51:02]line НСП 0,50% : 0.00 [23:51:02]line НСП 5% : 0.00 [23:51:02]line НСП 3% : 0.00 [23:51:02]line НСП 2% : 0.00 [23:51:02]line НСП 1% : 3351.22 [23:51:02]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:51:02]line Чеков: 8 [23:51:02]line Общий итог: 8050.00 [23:51:02]line Итого наличными: 8050.00 [23:51:02]line Итого безнал.: 0.00 [23:51:02]line НДС 0% : 0.00 [23:51:02]line НДС 12% : 855.04 [23:51:02]line НСП 0% : 0.00 [23:51:02]line НСП 1,50% : 0.00 [23:51:02]line НСП 0,50% : 0.00 [23:51:02]line НСП 5% : 0.00 [23:51:02]line НСП 3% : 0.00 [23:51:02]line НСП 2% : 0.00 [23:51:02]line НСП 1% : 71.24 [23:51:02]line ИТОГИ РАСХОД [23:51:02]line Чеков: 0 [23:51:02]line Общий итог: 0.00 [23:51:02]line Итого наличными: 0.00 [23:51:02]line Итого безнал.: 0.00 [23:51:02]line НДС 0% : 0.00 [23:51:02]line НДС 12% : 0.00 [23:51:02]line НСП 0% : 0.00 [23:51:02]line НСП 1,50% : 0.00 [23:51:02]line НСП 0,50% : 0.00 [23:51:02]line НСП 5% : 0.00 [23:51:02]line НСП 3% : 0.00 [23:51:02]line НСП 2% : 0.00 [23:51:02]line НСП 1% : 0.00 [23:51:02]line ИТОГИ ВОЗВРАТ РАСХОДА [23:51:02]line Чеков: 0 [23:51:02]line Общий итог: 0.00 [23:51:02]line Итого наличными: 0.00 [23:51:02]line Итого безнал.: 0.00 [23:51:02]line НДС 0% : 0.00 [23:51:02]line НДС 12% : 0.00 [23:51:02]line НСП 0% : 0.00 [23:51:02]line НСП 1,50% : 0.00 [23:51:02]line НСП 0,50% : 0.00 [23:51:02]line НСП 5% : 0.00 [23:51:02]line НСП 3% : 0.00 [23:51:02]line НСП 2% : 0.00 [23:51:02]line НСП 1% : 0.00 [23:51:02]line Сумма внесений: 0.00 [23:51:02]line Сумма выплат: 0.00 [23:51:02]line Нал. в кассе: 190699.00 [23:51:02]line НС Приход: 148074417.00 [23:51:02]line НС Возвр.Прихода: 9905231.00 [23:51:02]line НС Расход: 0.00 [23:51:02]line НС Возвр.Расхода: 0.00 [23:51:02]line ФМ: 0000000000874939 [23:51:02]written 0, free lines is 4095 [23:51:03]Write to MH i2c: 01 00 00 DD 2A 07 [23:51:03]Write i2c OK [23:51:03]MH_I2C_Read... [23:51:03]Read from MH i2c: 01 [23:51:03]MH_I2C_Read... [23:51:03]Read from MH i2c: 01 07 00 [23:51:03]MH_I2C_Read... [23:51:03]Read from MH i2c: 01 07 00 DD 2A 00 00 00 00 00 D4 0A EC [23:51:03]RasterBufferAndPrint [23:51:03]line [23:51:03]line [23:51:03]line [23:51:03]line [23:51:03]line [23:51:03]written 0, free lines is 2808 [23:51:03]MH_Cut [23:51:03]Write to MH i2c: D1 01 00 E4 2A 01 E0 [23:51:03]Write i2c OK [23:51:03]MH_I2C_Read... [23:51:03]Read from MH i2c: D1 [23:51:03]MH_I2C_Read... [23:51:03]Read from MH i2c: D1 01 00 [23:51:03]MH_I2C_Read... [23:51:03]Read from MH i2c: D1 01 00 E4 2A 00 DF [23:51:03]Write to MH i2c: 01 00 00 E5 2A 0F [23:51:03]Write i2c OK [23:51:03]MH_I2C_Read... [23:51:04]*** Cut start [23:51:04]*** Partial cut [23:51:04]*** CUTSNS_PIN = 1 [23:51:04]*** CUTSNS_PIN = 0 [23:51:04]*** Brake cut motor [23:51:04]Read from MH i2c: 01 [23:51:04]MH_I2C_Read... [23:51:04]*** Stop cut motor [23:51:04]*** Cut end [23:51:04]Read from MH i2c: 01 07 00 [23:51:04]MH_I2C_Read... [23:51:04]Read from MH i2c: 01 07 00 E5 2A 00 00 00 00 00 FF 0F 24 [23:51:04]process_action x_report done [23:51:04]requested_data is exist [23:51:04]produce_requested_data [23:51:04]requested_item fd.num is exist - process it [23:51:04]SAM_PROTO_GetFieldsCounters [23:51:04]wFMCommunicate request_size=4 [23:51:04]MH_SAM_APDU [23:51:04]CAPDU: 80 13 00 00 [23:51:04]Write to MH i2c: E2 08 00 E6 2A 80 13 00 00 00 00 00 00 8C [23:51:04]Write i2c OK [23:51:04]MH_I2C_Read... [23:51:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:51:05]Read from MH i2c: E2 [23:51:05]MH_I2C_Read... [23:51:05]Read from MH i2c: E2 62 00 [23:51:05]MH_I2C_Read... [23:51:05]Read from MH i2c: E2 62 00 E6 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 39 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 9F [23:51:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 39 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:51:05]wFMCommunicate OK [23:51:05]SAM_PROTO_GetFieldsCounters done [23:51:05]requested_item shift.num is exist - process it [23:51:05]requested_item shift.opened is exist - process it [23:51:05]req_shift_opened [23:51:05]FM_GetShiftState [23:51:05]SAM_PROTO_GetShiftState [23:51:05]wFMCommunicate request_size=4 [23:51:05]MH_SAM_APDU [23:51:05]CAPDU: 80 13 01 00 [23:51:05]Write to MH i2c: E2 08 00 E7 2A 80 13 01 00 00 00 00 00 8E [23:51:05]Write i2c OK [23:51:05]MH_I2C_Read... [23:51:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:05]Read from MH i2c: E2 [23:51:05]MH_I2C_Read... [23:51:05]Read from MH i2c: E2 0E 00 [23:51:05]MH_I2C_Read... [23:51:05]Read from MH i2c: E2 0E 00 E7 2A 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 1B [23:51:05]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [23:51:05]wFMCommunicate OK [23:51:05]SAM_PROTO_GetShiftState done [23:51:05]FM_GetShiftState done [23:51:05]req_shift_opened done [23:51:05]requested_item shift.open_date is exist - process it [23:51:05]req_shift_open_date [23:51:05]req_shift_open_date done [23:51:05]produce_requested_data done [23:51:05]produce_requested_data return {"fd.num":118329,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [23:51:05]process_action_free x_report [23:51:05]json_value_free [23:51:05]json_value_free done [23:51:05]process_json_proto returns [23:51:05]Send response to host [23:51:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":118329,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [23:51:05]free response buf [23:51:05]execute_script done [23:51:05]execute_script returns [23:51:05]free content buf [23:51:05]Sock 7.Close socket [23:51:05]Sock 7.Thread stoped [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:27]accept exits with 9 [23:51:27]New connection [23:51:27]New thread 3067096420 created [23:51:27]Thread 3066953060 joined [23:51:27]Waiting for new connection... [23:51:27] Sock 9.Parse request [23:51:27]Sock 9.Check first char [23:51:27]Sock 9.First char is OK [23:51:27]request: POST /json_proto HTTP/1.0 [23:51:27]Method: POST [23:51:27]URL: /json_proto [23:51:27]Method is POST - this is cgi request [23:51:27]url: /json_proto [23:51:27]query_string will be loaded in cgi processing [23:51:27]execute_cgi json_proto POST (null) [23:51:27]execute_cgi path=json_proto method=POST [23:51:27]POST find Content-Length [23:51:27]Host: 172.17.45.7:8080 [23:51:27]Content-Length: 215 [23:51:27]Content-Type: application/json [23:51:27] [23:51:27]POST finish read [23:51:27]Found Content-Length = 215 [23:51:27]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" ] } } [23:51:27]execute_script... [23:51:27]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" ] } } [23:51:27]POST & json_proto [23:51:27]process_json_proto [23:51:27]json parsed OK: [23:51:27]protocol is kg_v1.0 [23:51:27]action value=get_value [23:51:27]process_action get_value [23:51:27]cmd_get_value [23:51:27]process_action get_value done [23:51:27]requested_data is exist [23:51:27]produce_requested_data [23:51:27]requested_item kkm.sn is exist - process it [23:51:27]requested_item kkm.ver is exist - process it [23:51:27]requested_item fm.sn is exist - process it [23:51:27]wFMCommunicate request_size=4 [23:51:27]MH_SAM_APDU [23:51:27]CAPDU: 80 11 00 00 [23:51:27]Write to MH i2c: E2 08 00 E8 2A 80 11 00 00 00 00 00 00 8C [23:51:27]Write i2c OK [23:51:27]MH_I2C_Read... [23:51:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:51:27]Read from MH i2c: E2 [23:51:27]MH_I2C_Read... [23:51:27]Read from MH i2c: E2 17 00 [23:51:27]MH_I2C_Read... [23:51:27]Read from MH i2c: E2 17 00 E8 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E7 [23:51:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:51:27]wFMCommunicate OK [23:51:27]requested_item fd.num is exist - process it [23:51:27]SAM_PROTO_GetFieldsCounters [23:51:27]wFMCommunicate request_size=4 [23:51:27]MH_SAM_APDU [23:51:27]CAPDU: 80 13 00 00 [23:51:27]Write to MH i2c: E2 08 00 E9 2A 80 13 00 00 00 00 00 00 8F [23:51:27]Write i2c OK [23:51:27]MH_I2C_Read... [23:51:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:51:27]Read from MH i2c: E2 [23:51:27]MH_I2C_Read... [23:51:27]Read from MH i2c: E2 62 00 [23:51:27]MH_I2C_Read... [23:51:27]Read from MH i2c: E2 62 00 E9 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 39 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 A2 [23:51:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 39 CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:51:27]wFMCommunicate OK [23:51:27]SAM_PROTO_GetFieldsCounters done [23:51:27]requested_item shift.num is exist - process it [23:51:27]requested_item shift.opened is exist - process it [23:51:27]req_shift_opened [23:51:27]FM_GetShiftState [23:51:27]SAM_PROTO_GetShiftState [23:51:27]wFMCommunicate request_size=4 [23:51:27]MH_SAM_APDU [23:51:27]CAPDU: 80 13 01 00 [23:51:27]Write to MH i2c: E2 08 00 EA 2A 80 13 01 00 00 00 00 00 91 [23:51:27]Write i2c OK [23:51:27]MH_I2C_Read... [23:51:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:27]Read from MH i2c: E2 [23:51:27]MH_I2C_Read... [23:51:27]Read from MH i2c: E2 0E 00 [23:51:27]MH_I2C_Read... [23:51:27]Read from MH i2c: E2 0E 00 EA 2A 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 1E [23:51:27]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [23:51:27]wFMCommunicate OK [23:51:27]SAM_PROTO_GetShiftState done [23:51:27]FM_GetShiftState done [23:51:27]req_shift_opened done [23:51:27]requested_item shift.open_date is exist - process it [23:51:27]req_shift_open_date [23:51:27]req_shift_open_date done [23:51:27]produce_requested_data done [23:51:27]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118329,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845} [23:51:27]process_action_free get_value [23:51:27]json_value_free [23:51:27]json_value_free done [23:51:27]process_json_proto returns [23:51:27]Send response to host [23:51:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118329,"shift.num":432,"shift.opened":1,"shift.open_date":1722038845}}} [23:51:27]free response buf [23:51:27]execute_script done [23:51:27]execute_script returns [23:51:27]free content buf [23:51:27]Sock 9.Close socket [23:51:27]Sock 9.Thread stoped [23:51:27]accept exits with 7 [23:51:27]New connection [23:51:27]New thread 3066953060 created [23:51:27]Thread 3067096420 joined [23:51:27]Waiting for new connection... [23:51:27] Sock 7.Parse request [23:51:27]Sock 7.Check first char [23:51:27]Sock 7.First char is OK [23:51:27]request: POST /json_proto HTTP/1.0 [23:51:27]Method: POST [23:51:27]URL: /json_proto [23:51:27]Method is POST - this is cgi request [23:51:27]url: /json_proto [23:51:27]query_string will be loaded in cgi processing [23:51:27]execute_cgi json_proto POST (null) [23:51:27]execute_cgi path=json_proto method=POST [23:51:27]POST find Content-Length [23:51:27]Host: 172.17.45.7:8080 [23:51:27]Content-Length: 331 [23:51:27]Content-Type: application/json [23:51:27] [23:51:27]POST finish read [23:51:27]Found Content-Length = 331 [23:51:27]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" ] } } [23:51:27]execute_script... [23:51:27]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" ] } } [23:51:27]POST & json_proto [23:51:27]process_json_proto [23:51:27]json parsed OK: [23:51:27]protocol is kg_v1.0 [23:51:27]action value=get_value [23:51:27]process_action get_value [23:51:27]cmd_get_value [23:51:27]process_action get_value done [23:51:27]requested_data is exist [23:51:27]produce_requested_data [23:51:27]requested_item fm.sale.total is exist - process it [23:51:27]SAM_PROTO_GetFMData [23:51:27]wFMCommunicate request_size=4 [23:51:27]MH_SAM_APDU [23:51:27]CAPDU: 80 13 03 00 [23:51:27]Write to MH i2c: E2 08 00 EB 2A 80 13 03 00 00 00 00 00 94 [23:51:27]Write i2c OK [23:51:27]MH_I2C_Read... [23:51:27]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:51:27]Read from MH i2c: E2 [23:51:27]MH_I2C_Read... [23:51:27]Read from MH i2c: E2 FD 00 [23:51:27]MH_I2C_Read... [23:51:27]Read from MH i2c: E2 FD 00 EB 2A 00 C5 04 85 04 C1 04 6E 04 04 00 D9 CA 01 00 69 04 A3 00 6F 04 04 00 57 BD 01 00 B1 04 05 00 24 A1 97 72 03 70 04 05 00 B8 FA BC A6 02 72 04 04 00 6C A6 DA CB 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 4A 3D C0 5D 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 E7 E3 CF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 82 0D 00 00 B1 04 04 00 DC 2E 0A 3B 70 04 04 00 DC 2E 0A 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2C 3C 45 06 EF 03 09 90 00 33 [23:51:27]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 D9 CA 01 00 69 04 A3 00 6F 04 04 00 57 BD 01 00 B1 04 05 00 24 A1 97 72 03 70 04 05 00 B8 FA BC A6 02 72 04 04 00 6C A6 DA CB 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 4A 3D C0 5D 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 E7 E3 CF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 82 0D 00 00 B1 04 04 00 DC 2E 0A 3B 70 04 04 00 DC 2E 0A 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2C 3C 45 06 EF 03 09 90 00 [23:51:28]wFMCommunicate OK [23:51:28]wFMCommunicate request_size=4 [23:51:28]MH_SAM_APDU [23:51:28]CAPDU: 80 17 00 00 [23:51:28]Write to MH i2c: E2 08 00 EC 2A 80 17 00 00 00 00 00 00 96 [23:51:28]Write i2c OK [23:51:28]MH_I2C_Read... [23:51:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:28]Read from MH i2c: E2 [23:51:28]MH_I2C_Read... [23:51:28]Read from MH i2c: E2 FD 00 [23:51:28]MH_I2C_Read... [23:51:28]Read from MH i2c: E2 FD 00 EC 2A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 22 C4 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B7 [23:51:28]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 22 C4 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:28]wFMCommunicate OK [23:51:28]wFMCommunicate request_size=4 [23:51:28]MH_SAM_APDU [23:51:28]CAPDU: 80 17 00 00 [23:51:28]Write to MH i2c: E2 08 00 ED 2A 80 17 00 00 00 00 00 00 97 [23:51:28]Write i2c OK [23:51:28]MH_I2C_Read... [23:51:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:28]Read from MH i2c: E2 [23:51:28]MH_I2C_Read... [23:51:28]Read from MH i2c: E2 FD 00 [23:51:28]MH_I2C_Read... [23:51:28]Read from MH i2c: E2 FD 00 ED 2A 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A9 [23:51:28]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:28]wFMCommunicate OK [23:51:28]wFMCommunicate request_size=4 [23:51:28]MH_SAM_APDU [23:51:28]CAPDU: 80 17 00 00 [23:51:28]Write to MH i2c: E2 08 00 EE 2A 80 17 00 00 00 00 00 00 98 [23:51:28]Write i2c OK [23:51:28]MH_I2C_Read... [23:51:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:29]Read from MH i2c: E2 [23:51:29]MH_I2C_Read... [23:51:29]Read from MH i2c: E2 FD 00 [23:51:29]MH_I2C_Read... [23:51:29]Read from MH i2c: E2 FD 00 EE 2A 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 24 [23:51:29]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:29]wFMCommunicate OK [23:51:29]wFMCommunicate request_size=4 [23:51:29]MH_SAM_APDU [23:51:29]CAPDU: 80 17 00 00 [23:51:29]Write to MH i2c: E2 08 00 EF 2A 80 17 00 00 00 00 00 00 99 [23:51:29]Write i2c OK [23:51:29]MH_I2C_Read... [23:51:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:51:29]Read from MH i2c: E2 [23:51:29]MH_I2C_Read... [23:51:29]Read from MH i2c: E2 E2 00 [23:51:29]MH_I2C_Read... [23:51:29]Read from MH i2c: E2 E2 00 EF 2A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 77 [23:51:29]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:51:29]wFMCommunicate OK [23:51:29]SAM_PROTO_GetFMData done [23:51:29]requested_item fm.sale_refund.total is exist - process it [23:51:29]requested_item fm.buy.total is exist - process it [23:51:29]requested_item shift.sale.total is exist - process it [23:51:29]SAM_PROTO_GetShiftData [23:51:29]wFMCommunicate request_size=4 [23:51:29]MH_SAM_APDU [23:51:29]CAPDU: 80 13 02 00 [23:51:29]Write to MH i2c: E2 08 00 F0 2A 80 13 02 00 00 00 00 00 98 [23:51:29]Write i2c OK [23:51:29]MH_I2C_Read... [23:51:30]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:51:30]Read from MH i2c: E2 [23:51:30]MH_I2C_Read... [23:51:30]Read from MH i2c: E2 FD 00 [23:51:30]MH_I2C_Read... [23:51:30]Read from MH i2c: E2 FD 00 F0 2A 00 BD 04 AA 04 B9 04 6E 04 04 00 10 01 00 00 69 04 9F 00 6F 04 04 00 08 01 00 00 B1 04 04 00 50 B7 41 02 70 04 04 00 54 44 2F 01 72 04 04 00 FC 72 12 01 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 48 5D 3D 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 12 1D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 88 48 0C 70 04 03 00 88 48 0C 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 00 4E 01 EF 03 09 00 F6 03 01 00 00 F7 90 00 7F [23:51:30]RAPDU: BD 04 AA 04 B9 04 6E 04 04 00 10 01 00 00 69 04 9F 00 6F 04 04 00 08 01 00 00 B1 04 04 00 50 B7 41 02 70 04 04 00 54 44 2F 01 72 04 04 00 FC 72 12 01 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 48 5D 3D 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 12 1D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 88 48 0C 70 04 03 00 88 48 0C 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 00 4E 01 EF 03 09 00 F6 03 01 00 00 F7 90 00 [23:51:30]wFMCommunicate OK [23:51:30]wFMCommunicate request_size=4 [23:51:30]MH_SAM_APDU [23:51:30]CAPDU: 80 17 00 00 [23:51:30]Write to MH i2c: E2 08 00 F1 2A 80 17 00 00 00 00 00 00 9B [23:51:30]Write i2c OK [23:51:30]MH_I2C_Read... [23:51:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:30]Read from MH i2c: E2 [23:51:30]MH_I2C_Read... [23:51:30]Read from MH i2c: E2 FD 00 [23:51:30]MH_I2C_Read... [23:51:30]Read from MH i2c: E2 FD 00 F1 2A 00 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 37 [23:51:30]RAPDU: 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 [23:51:30]wFMCommunicate OK [23:51:30]wFMCommunicate request_size=4 [23:51:30]MH_SAM_APDU [23:51:30]CAPDU: 80 17 00 00 [23:51:30]Write to MH i2c: E2 08 00 F2 2A 80 17 00 00 00 00 00 00 9C [23:51:30]Write i2c OK [23:51:30]MH_I2C_Read... [23:51:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:31]Read from MH i2c: E2 [23:51:31]MH_I2C_Read... [23:51:31]Read from MH i2c: E2 FD 00 [23:51:31]MH_I2C_Read... [23:51:31]Read from MH i2c: E2 FD 00 F2 2A 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 CE [23:51:31]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 OFD Sender: No OFD packet to send [23:51:31]F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [23:51:31]wFMCommunicate OK [23:51:31]wFMCommunicate request_size=4 [23:51:31]MH_SAM_APDU [23:51:31]CAPDU: 80 17 00 00 [23:51:31]Write to MH i2c: E2 08 00 F3 2A 80 17 00 00 00 00 00 00 9D [23:51:31]Write i2c OK [23:51:31]MH_I2C_Read... [23:51:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:31]Read from MH i2c: E2 [23:51:31]MH_I2C_Read... [23:51:31]Read from MH i2c: E2 FD 00 [23:51:31]MH_I2C_Read... [23:51:31]Read from MH i2c: E2 FD 00 F3 2A 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 14 [23:51:31]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:51:31]wFMCommunicate OK [23:51:31]wFMCommunicate request_size=4 [23:51:31]MH_SAM_APDU [23:51:31]CAPDU: 80 17 00 00 [23:51:31]Write to MH i2c: E2 08 00 F4 2A 80 17 00 00 00 00 00 00 9E [23:51:31]Write i2c OK [23:51:31]MH_I2C_Read... [23:51:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [23:51:32]Read from MH i2c: E2 [23:51:32]MH_I2C_Read... [23:51:32]Read from MH i2c: E2 DA 00 [23:51:32]MH_I2C_Read... [23:51:32]Read from MH i2c: E2 DA 00 F4 2A 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7F [23:51:32]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:51:32]wFMCommunicate OK [23:51:32]SAM_PROTO_GetShiftData done [23:51:32]requested_item shift.sale.total_cash is exist - process it [23:51:32]requested_item shift.sale_refund.total is exist - process it [23:51:32]requested_item shift.sale_refund.total_cash is exist - process it [23:51:32]requested_item shift.buy.total is exist - process it [23:51:32]requested_item shift.buy.total_cash is exist - process it [23:51:32]produce_requested_data done [23:51:32]produce_requested_data return {"fm.sale.total":148074417.00,"fm.sale_refund.total":9905231.00,"fm.buy.total":0.00,"shift.sale.total":378612.00,"shift.sale.total_cash":198749.00,"shift.sale_refund.total":8050.00,"shift.sale_refund.total_cash":8050.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:51:32]process_action_free get_value [23:51:32]json_value_free [23:51:32]json_value_free done [23:51:32]process_json_proto returns [23:51:32]Send response to host [23:51:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":148074417.00,"fm.sale_refund.total":9905231.00,"fm.buy.total":0.00,"shift.sale.total":378612.00,"shift.sale.total_cash":198749.00,"shift.sale_refund.total":8050.00,"shift.sale_refund.total_cash":8050.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:51:32]free response buf [23:51:32]execute_script done [23:51:32]execute_script returns [23:51:32]free content buf [23:51:32]Sock 7.Close socket [23:51:32]Sock 7.Thread stoped [23:51:32]accept exits with 9 [23:51:32]New connection [23:51:32]New thread 3067096420 created [23:51:32]Thread 3066953060 joined [23:51:32]Waiting for new connection... [23:51:32] Sock 9.Parse request [23:51:32]Sock 9.Check first char [23:51:32]Sock 9.First char is OK [23:51:32]request: POST /json_proto HTTP/1.0 [23:51:32]Method: POST [23:51:32]URL: /json_proto [23:51:32]Method is POST - this is cgi request [23:51:32]url: /json_proto [23:51:32]query_string will be loaded in cgi processing [23:51:32]execute_cgi json_proto POST (null) [23:51:32]execute_cgi path=json_proto method=POST [23:51:32]POST find Content-Length [23:51:32]Host: 172.17.45.7:8080 [23:51:32]Content-Length: 331 [23:51:32]Content-Type: application/json [23:51:32] [23:51:32]POST finish read [23:51:32]Found Content-Length = 331 [23:51:32]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" ] } } [23:51:32]execute_script... [23:51:32]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" ] } } [23:51:32]POST & json_proto [23:51:32]process_json_proto [23:51:32]json parsed OK: [23:51:32]protocol is kg_v1.0 [23:51:32]action value=get_value [23:51:32]process_action get_value [23:51:32]cmd_get_value [23:51:32]process_action get_value done [23:51:32]requested_data is exist [23:51:32]produce_requested_data [23:51:32]requested_item fm.sale.total is exist - process it [23:51:32]SAM_PROTO_GetFMData [23:51:32]wFMCommunicate request_size=4 [23:51:32]MH_SAM_APDU [23:51:32]CAPDU: 80 13 03 00 [23:51:32]Write to MH i2c: E2 08 00 F5 2A 80 13 03 00 00 00 00 00 9E [23:51:32]Write i2c OK [23:51:32]MH_I2C_Read... [23:51:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:51:33]Read from MH i2c: E2 [23:51:33]MH_I2C_Read... [23:51:33]Read from MH i2c: E2 FD 00 [23:51:33]MH_I2C_Read... [23:51:33]Read from MH i2c: E2 FD 00 F5 2A 00 C5 04 85 04 C1 04 6E 04 04 00 D9 CA 01 00 69 04 A3 00 6F 04 04 00 57 BD 01 00 B1 04 05 00 24 A1 97 72 03 70 04 05 00 B8 FA BC A6 02 72 04 04 00 6C A6 DA CB 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 4A 3D C0 5D 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 E7 E3 CF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 82 0D 00 00 B1 04 04 00 DC 2E 0A 3B 70 04 04 00 DC 2E 0A 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2C 3C 45 06 EF 03 09 90 00 3D [23:51:33]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 D9 CA 01 00 69 04 A3 00 6F 04 04 00 57 BD 01 00 B1 04 05 00 24 A1 97 72 03 70 04 05 00 B8 FA BC A6 02 72 04 04 00 6C A6 DA CB 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 4A 3D C0 5D 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 E7 E3 CF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 82 0D 00 00 B1 04 04 00 DC 2E 0A 3B 70 04 04 00 DC 2E 0A 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2C 3C 45 06 EF 03 09 90 00 [23:51:33]wFMCommunicate OK [23:51:33]wFMCommunicate request_size=4 [23:51:33]MH_SAM_APDU [23:51:33]CAPDU: 80 17 00 00 [23:51:33]Write to MH i2c: E2 08 00 F6 2A 80 17 00 00 00 00 00 00 A0 [23:51:33]Write i2c OK [23:51:33]MH_I2C_Read... [23:51:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:33]Read from MH i2c: E2 [23:51:33]MH_I2C_Read... [23:51:33]Read from MH i2c: E2 FD 00 [23:51:33]MH_I2C_Read... [23:51:33]Read from MH i2c: E2 FD 00 F6 2A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 22 C4 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C1 [23:51:33]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 22 C4 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:33]wFMCommunicate OK [23:51:33]wFMCommunicate request_size=4 [23:51:33]MH_SAM_APDU [23:51:33]CAPDU: 80 17 00 00 [23:51:33]Write to MH i2c: E2 08 00 F7 2A 80 17 00 00 00 00 00 00 A1 [23:51:33]Write i2c OK [23:51:33]MH_I2C_Read... [23:51:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:34]Read from MH i2c: E2 [23:51:34]MH_I2C_Read... [23:51:34]Read from MH i2c: E2 FD 00 [23:51:34]MH_I2C_Read... [23:51:34]Read from MH i2c: E2 FD 00 F7 2A 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 B3 [23:51:34]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:34]wFMCommunicate OK [23:51:34]wFMCommunicate request_size=4 [23:51:34]MH_SAM_APDU [23:51:34]CAPDU: 80 17 00 00 [23:51:34]Write to MH i2c: E2 08 00 F8 2A 80 17 00 00 00 00 00 00 A2 [23:51:34]Write i2c OK [23:51:34]MH_I2C_Read... [23:51:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:34]Read from MH i2c: E2 [23:51:34]MH_I2C_Read... [23:51:34]Read from MH i2c: E2 FD 00 [23:51:34]MH_I2C_Read... [23:51:34]Read from MH i2c: E2 FD 00 F8 2A 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2E [23:51:34]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:35]wFMCommunicate OK [23:51:35]wFMCommunicate request_size=4 [23:51:35]MH_SAM_APDU [23:51:35]CAPDU: 80 17 00 00 [23:51:35]Write to MH i2c: E2 08 00 F9 2A 80 17 00 00 00 00 00 00 A3 [23:51:35]Write i2c OK [23:51:35]MH_I2C_Read... [23:51:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:51:35]Read from MH i2c: E2 [23:51:35]MH_I2C_Read... [23:51:35]Read from MH i2c: E2 E2 00 [23:51:35]MH_I2C_Read... [23:51:35]Read from MH i2c: E2 E2 00 F9 2A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 81 [23:51:35]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:51:35]wFMCommunicate OK [23:51:35]SAM_PROTO_GetFMData done [23:51:35]requested_item fm.sale_refund.total is exist - process it [23:51:35]requested_item fm.buy.total is exist - process it [23:51:35]requested_item shift.sale.total is exist - process it [23:51:35]SAM_PROTO_GetShiftData [23:51:35]wFMCommunicate request_size=4 [23:51:35]MH_SAM_APDU [23:51:35]CAPDU: 80 13 02 00 [23:51:35]Write to MH i2c: E2 08 00 FA 2A 80 13 02 00 00 00 00 00 A2 [23:51:35]Write i2c OK [23:51:35]MH_I2C_Read... [23:51:35]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:51:35]Read from MH i2c: E2 [23:51:35]MH_I2C_Read... [23:51:35]Read from MH i2c: E2 FD 00 [23:51:35]MH_I2C_Read... [23:51:35]Read from MH i2c: E2 FD 00 FA 2A 00 BD 04 AA 04 B9 04 6E 04 04 00 10 01 00 00 69 04 9F 00 6F 04 04 00 08 01 00 00 B1 04 04 00 50 B7 41 02 70 04 04 00 54 44 2F 01 72 04 04 00 FC 72 12 01 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 48 5D 3D 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 12 1D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 88 48 0C 70 04 03 00 88 48 0C 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 00 4E 01 EF 03 09 00 F6 03 01 00 00 F7 90 00 89 [23:51:36]RAPDU: BD 04 AA 04 B9 04 6E 04 04 00 10 01 00 00 69 04 9F 00 6F 04 04 00 08 01 00 00 B1 04 04 00 50 B7 41 02 70 04 04 00 54 44 2F 01 72 04 04 00 FC 72 12 01 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 48 5D 3D 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 12 1D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 88 48 0C 70 04 03 00 88 48 0C 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 00 4E 01 EF 03 09 00 F6 03 01 00 00 F7 90 00 [23:51:36]wFMCommunicate OK [23:51:36]wFMCommunicate request_size=4 [23:51:36]MH_SAM_APDU [23:51:36]CAPDU: 80 17 00 00 [23:51:36]Write to MH i2c: E2 08 00 FB 2A 80 17 00 00 00 00 00 00 A5 [23:51:36]Write i2c OK [23:51:36]MH_I2C_Read... [23:51:36]OFD Sender: No OFD packet to send [23:51:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:36]Read from MH i2c: E2 [23:51:36]MH_I2C_Read... [23:51:36]Read from MH i2c: E2 FD 00 [23:51:36]MH_I2C_Read... [23:51:36]Read from MH i2c: E2 FD 00 FB 2A 00 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 41 [23:51:36]RAPDU: 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 [23:51:36]wFMCommunicate OK [23:51:36]wFMCommunicate request_size=4 [23:51:36]MH_SAM_APDU [23:51:36]CAPDU: 80 17 00 00 [23:51:36]Write to MH i2c: E2 08 00 FC 2A 80 17 00 00 00 00 00 00 A6 [23:51:36]Write i2c OK [23:51:36]MH_I2C_Read... [23:51:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:37]Read from MH i2c: E2 [23:51:37]MH_I2C_Read... [23:51:37]Read from MH i2c: E2 FD 00 [23:51:37]MH_I2C_Read... [23:51:37]Read from MH i2c: E2 FD 00 FC 2A 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 D8 [23:51:37]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [23:51:37]wFMCommunicate OK [23:51:37]wFMCommunicate request_size=4 [23:51:37]MH_SAM_APDU [23:51:37]CAPDU: 80 17 00 00 [23:51:37]Write to MH i2c: E2 08 00 FD 2A 80 17 00 00 00 00 00 00 A7 [23:51:37]Write i2c OK [23:51:37]MH_I2C_Read... [23:51:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:37]Read from MH i2c: E2 [23:51:37]MH_I2C_Read... [23:51:37]Read from MH i2c: E2 FD 00 [23:51:37]MH_I2C_Read... [23:51:37]Read from MH i2c: E2 FD 00 FD 2A 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 1E [23:51:37]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:51:38]wFMCommunicate OK [23:51:38]wFMCommunicate request_size=4 [23:51:38]MH_SAM_APDU [23:51:38]CAPDU: 80 17 00 00 [23:51:38]Write to MH i2c: E2 08 00 FE 2A 80 17 00 00 00 00 00 00 A8 [23:51:38]Write i2c OK [23:51:38]MH_I2C_Read... [23:51:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [23:51:38]Read from MH i2c: E2 [23:51:38]MH_I2C_Read... [23:51:38]Read from MH i2c: E2 DA 00 [23:51:38]MH_I2C_Read... [23:51:38]Read from MH i2c: E2 DA 00 FE 2A 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 89 [23:51:38]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:51:38]wFMCommunicate OK [23:51:38]SAM_PROTO_GetShiftData done [23:51:38]requested_item shift.sale.total_cash is exist - process it [23:51:38]requested_item shift.sale_refund.total is exist - process it [23:51:38]requested_item shift.sale_refund.total_cash is exist - process it [23:51:38]requested_item shift.buy.total is exist - process it [23:51:38]requested_item shift.buy.total_cash is exist - process it [23:51:38]produce_requested_data done [23:51:38]produce_requested_data return {"fm.sale.total":148074417.00,"fm.sale_refund.total":9905231.00,"fm.buy.total":0.00,"shift.sale.total":378612.00,"shift.sale.total_cash":198749.00,"shift.sale_refund.total":8050.00,"shift.sale_refund.total_cash":8050.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:51:38]process_action_free get_value [23:51:38]json_value_free [23:51:38]json_value_free done [23:51:38]process_json_proto returns [23:51:38]Send response to host [23:51:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":148074417.00,"fm.sale_refund.total":9905231.00,"fm.buy.total":0.00,"shift.sale.total":378612.00,"shift.sale.total_cash":198749.00,"shift.sale_refund.total":8050.00,"shift.sale_refund.total_cash":8050.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:51:38]free response buf [23:51:38]execute_script done [23:51:38]execute_script returns [23:51:38]free content buf [23:51:38]Sock 9.Close socket [23:51:38]Sock 9.Thread stoped [23:51:38]accept exits with 7 [23:51:38]New connection [23:51:38]New thread 3066953060 created [23:51:38]Thread 3067096420 joined [23:51:38]Waiting for new connection... [23:51:38] Sock 7.Parse request [23:51:38]Sock 7.Check first char [23:51:38]Sock 7.First char is OK [23:51:38]request: POST /json_proto HTTP/1.0 [23:51:38]Method: POST [23:51:38]URL: /json_proto [23:51:38]Method is POST - this is cgi request [23:51:38]url: /json_proto [23:51:38]query_string will be loaded in cgi processing [23:51:38]execute_cgi json_proto POST (null) [23:51:38]execute_cgi path=json_proto method=POST [23:51:38]POST find Content-Length [23:51:38]Host: 172.17.45.7:8080 [23:51:38]Content-Length: 267 [23:51:38]Content-Type: application/json [23:51:38] [23:51:38]POST finish read [23:51:38]Found Content-Length = 267 [23:51:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:51:38]execute_script... [23:51:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:51:38]POST & json_proto [23:51:38]process_json_proto [23:51:38]json parsed OK: [23:51:38]protocol is kg_v1.0 [23:51:38]action value=close_shift [23:51:38]process_action close_shift [23:51:38]cmd_close_shift [23:51:38]MH_GetDate [23:51:38]Write to MH i2c: F0 00 00 FF 2A 18 [23:51:38]Write i2c OK [23:51:38]MH_I2C_Read... [23:51:38]Read from MH i2c: F0 [23:51:38]MH_I2C_Read... [23:51:38]Read from MH i2c: F0 09 00 [23:51:38]MH_I2C_Read... [23:51:38]Read from MH i2c: F0 09 00 FF 2A 00 0C 88 A5 66 90 0F 3E 66 03 [23:51:38]GetLastDocTimeStamp 1722124256 [23:51:38]current date 1722124300 [23:51:38]FM_GetShiftState [23:51:38]SAM_PROTO_GetShiftState [23:51:38]wFMCommunicate request_size=4 [23:51:38]MH_SAM_APDU [23:51:38]CAPDU: 80 13 01 00 [23:51:38]Write to MH i2c: E2 08 00 00 2B 80 13 01 00 00 00 00 00 A8 [23:51:38]Write i2c OK [23:51:38]MH_I2C_Read... [23:51:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:38]Read from MH i2c: E2 [23:51:38]MH_I2C_Read... [23:51:38]Read from MH i2c: E2 0E 00 [23:51:38]MH_I2C_Read... [23:51:38]Read from MH i2c: E2 0E 00 00 2B 00 09 00 01 3D 3A A4 66 00 00 00 00 90 00 35 [23:51:38]RAPDU: 09 00 01 3D 3A A4 66 00 00 00 00 90 00 [23:51:38]wFMCommunicate OK [23:51:38]SAM_PROTO_GetShiftState done [23:51:38]FM_GetShiftState done [23:51:38]KKMCreateCloseShiftDocument [23:51:38]Load OK [23:51:38]Malloc new data [23:51:38]MH_GetDate [23:51:38]Write to MH i2c: F0 00 00 01 2B 1B [23:51:38]Write i2c OK [23:51:38]MH_I2C_Read... [23:51:38]Read from MH i2c: F0 [23:51:38]MH_I2C_Read... [23:51:38]Read from MH i2c: F0 09 00 [23:51:38]MH_I2C_Read... [23:51:38]Read from MH i2c: F0 09 00 01 2B 00 0C 88 A5 66 90 0F 3E 66 06 [23:51:38]Malloc new data [23:51:38]Malloc new data [23:51:38]Malloc new data [23:51:38]Malloc new data [23:51:38]KKMCreateCloseShiftDocument OK [23:51:38]KKMSetCloseShiftData OK [23:51:38]ProcessDocumentItem done err = 0, tmpTLVsize=74 [23:51:38]tlvbuf is 01EB6020 [23:51:38]KKMLoadAndSignCloseShiftData [23:51:38]SAM_PROTO_ProcessDocument [23:51:38]wFMCommunicate request_size=9 [23:51:38]MH_SAM_APDU [23:51:38]CAPDU: 80 15 01 00 04 05 00 4A 00 [23:51:38]Write to MH i2c: E2 0C 00 02 2B 80 15 01 00 04 00 05 00 4A 00 00 00 03 [23:51:38]Write i2c OK [23:51:38]MH_I2C_Read... [23:51:38]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:51:39]Read from MH i2c: E2 [23:51:39]MH_I2C_Read... [23:51:39]Read from MH i2c: E2 03 00 [23:51:39]MH_I2C_Read... [23:51:39]Read from MH i2c: E2 03 00 02 2B 00 90 00 A1 [23:51:39]RAPDU: 90 00 [23:51:39]wFMCommunicate OK [23:51:39]wFMCommunicate request_size=23 [23:51:39]MH_SAM_APDU [23:51:39]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [23:51:39]Write to MH i2c: E2 1A 00 03 2B 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 A3 [23:51:39]Write i2c OK [23:51:39]MH_I2C_Read... [23:51:39]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:51:39]Read from MH i2c: E2 [23:51:39]MH_I2C_Read... [23:51:39]Read from MH i2c: E2 03 00 [23:51:39]MH_I2C_Read... [23:51:39]Read from MH i2c: E2 03 00 03 2B 00 90 00 A2 [23:51:39]RAPDU: 90 00 [23:51:39]wFMCommunicate OK [23:51:39]wFMCommunicate request_size=33 [23:51:39]MH_SAM_APDU [23:51:39]CAPDU: 80 15 02 00 1C FD 03 18 00 D0 90 D0 B9 D0 B4 D0 B0 D1 80 D0 B0 D0 BB D0 B8 20 D1 83 20 D0 91 2E 20 [23:51:39]Write to MH i2c: E2 24 00 04 2B 80 15 02 00 1C 00 FD 03 18 00 D0 90 D0 B9 D0 B4 D0 B0 D1 80 D0 B0 D0 BB D0 B8 20 D1 83 20 D0 91 2E 20 00 00 13 [23:51:39]Write i2c OK [23:51:39]MH_I2C_Read... [23:51:39]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:51:39]Read from MH i2c: E2 [23:51:39]MH_I2C_Read... [23:51:39]Read from MH i2c: E2 03 00 [23:51:39]MH_I2C_Read... [23:51:39]Read from MH i2c: E2 03 00 04 2B 00 90 00 A3 [23:51:39]RAPDU: 90 00 [23:51:39]wFMCommunicate OK [23:51:39]wFMCommunicate request_size=13 [23:51:39]MH_SAM_APDU [23:51:39]CAPDU: 80 15 02 00 08 F4 03 04 00 0C 88 A5 66 [23:51:39]Write to MH i2c: E2 10 00 05 2B 80 15 02 00 08 00 F4 03 04 00 0C 88 A5 66 00 00 5A [23:51:39]Write i2c OK [23:51:39]MH_I2C_Read... [23:51:39]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:51:39]Read from MH i2c: E2 [23:51:39]MH_I2C_Read... [23:51:39]Read from MH i2c: E2 03 00 [23:51:39]MH_I2C_Read... [23:51:39]Read from MH i2c: E2 03 00 05 2B 00 90 00 A4 [23:51:39]RAPDU: 90 00 [23:51:39]wFMCommunicate OK [23:51:39]wFMCommunicate request_size=25 [23:51:39]MH_SAM_APDU [23:51:39]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 [23:51:39]Write to MH i2c: E2 1C 00 06 2B 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 00 00 11 [23:51:39]Write i2c OK [23:51:39]MH_I2C_Read... [23:51:39]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:51:39]Read from MH i2c: E2 [23:51:39]MH_I2C_Read... [23:51:39]Read from MH i2c: E2 03 00 [23:51:39]MH_I2C_Read... [23:51:39]Read from MH i2c: E2 03 00 06 2B 00 90 00 A5 [23:51:39]RAPDU: 90 00 [23:51:39]wFMCommunicate OK [23:51:39]wFMCommunicate request_size=4 [23:51:39]MH_SAM_APDU [23:51:39]CAPDU: 80 15 03 00 [23:51:39]Write to MH i2c: E2 08 00 07 2B 80 15 03 00 00 00 00 00 B3 [23:51:39]Write i2c OK [23:51:39]MH_I2C_Read... [23:51:39]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:51:39]Read from MH i2c: E2 [23:51:39]MH_I2C_Read... [23:51:39]Read from MH i2c: E2 FD 00 [23:51:39]MH_I2C_Read... [23:51:39]Read from MH i2c: E2 FD 00 07 2B 00 00 05 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3A CE 01 00 0E 04 04 00 B0 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 12 01 00 00 AA 04 B9 04 6E 04 04 00 10 01 00 00 69 04 9F 00 6F 04 04 00 08 01 00 00 B1 04 04 00 50 B7 41 02 70 04 04 00 54 44 2F 01 72 04 04 00 FC 72 12 01 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 48 5D 3D 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 12 1D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 90 00 87 [23:51:40]RAPDU: 00 05 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3A CE 01 00 0E 04 04 00 B0 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 12 01 00 00 AA 04 B9 04 6E 04 04 00 10 01 00 00 69 04 9F 00 6F 04 04 00 08 01 00 00 B1 04 04 00 50 B7 41 02 70 04 04 00 54 44 2F 01 72 04 04 00 FC 72 12 01 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 48 5D 3D 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 12 1D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 90 00 [23:51:40]wFMCommunicate OK [23:51:40]SAM_PROTO_ProcessDocument answer len = 1280 [23:51:40]SAM_PROTO_ProcessDocument remain to read = 1032 [23:51:40]wFMCommunicate request_size=4 [23:51:40]MH_SAM_APDU [23:51:40]CAPDU: 80 17 00 00 [23:51:40]Write to MH i2c: E2 08 00 08 2B 80 17 00 00 00 00 00 00 B3 [23:51:40]Write i2c OK [23:51:40]MH_I2C_Read... [23:51:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:40]Read from MH i2c: E2 [23:51:40]MH_I2C_Read... [23:51:40]Read from MH i2c: E2 FD 00 [23:51:40]MH_I2C_Read... [23:51:40]Read from MH i2c: E2 FD 00 08 2B 00 88 48 0C 70 04 03 00 88 48 0C 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 00 4E 01 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 D4 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8C [23:51:40]RAPDU: 88 48 0C 70 04 03 00 88 48 0C 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 00 4E 01 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 D4 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:40]wFMCommunicate OK [23:51:40]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:51:40]SAM_PROTO_ProcessDocument remain to read = 782 [23:51:40]wFMCommunicate request_size=4 [23:51:40]MH_SAM_APDU [23:51:40]CAPDU: 80 17 00 00 [23:51:40]Write to MH i2c: E2 08 00 09 2B 80 17 00 00 00 00 00 00 B4 [23:51:40]Write i2c OK [23:51:40]MH_I2C_Read... [23:51:41]Read from MH i2c: E2 [23:51:41]MH_I2C_Read... [23:51:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:41]Read from MH i2c: E2 FD 00 [23:51:41]MH_I2C_Read... [23:51:41]Read from MH i2c: E2 FD 00 09 2B 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1A [23:51:41]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:41]wFMCommunicate OK [23:51:41]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:51:41]SAM_PROTO_ProcessDocument remain to read = 532 [23:51:41]wFMCommunicate request_size=4 [23:51:41]MH_SAM_APDU [23:51:41]CAPDU: 80 17 00 00 [23:51:41]Write to MH i2c: E2 08 00 0A 2B 80 17 00 00 00 00 00 00 B5 [23:51:41]Write i2c OK [23:51:41]MH_I2C_Read... [23:51:41]OFD Sender: No OFD packet to send [23:51:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:41]Read from MH i2c: E2 [23:51:41]MH_I2C_Read... [23:51:41]Read from MH i2c: E2 FD 00 [23:51:41]MH_I2C_Read... [23:51:41]Read from MH i2c: E2 FD 00 0A 2B 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4C [23:51:41]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:42]wFMCommunicate OK [23:51:42]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:51:42]SAM_PROTO_ProcessDocument remain to read = 282 [23:51:42]wFMCommunicate request_size=4 [23:51:42]MH_SAM_APDU [23:51:42]CAPDU: 80 17 00 00 [23:51:42]Write to MH i2c: E2 08 00 0B 2B 80 17 00 00 00 00 00 00 B6 [23:51:42]Write i2c OK [23:51:42]MH_I2C_Read... [23:51:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:42]Read from MH i2c: E2 [23:51:42]MH_I2C_Read... [23:51:42]Read from MH i2c: E2 FD 00 [23:51:42]MH_I2C_Read... [23:51:42]Read from MH i2c: E2 FD 00 0B 2B 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 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 90 00 6C [23:51: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 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 90 00 [23:51:42]wFMCommunicate OK [23:51:42]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:51:42]SAM_PROTO_ProcessDocument remain to read = 32 [23:51:42]wFMCommunicate request_size=4 [23:51:42]MH_SAM_APDU [23:51:42]CAPDU: 80 17 00 00 [23:51:42]Write to MH i2c: E2 08 00 0C 2B 80 17 00 00 00 00 00 00 B7 [23:51:42]Write i2c OK [23:51:42]MH_I2C_Read... [23:51:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 32! [23:51:42]Read from MH i2c: E2 [23:51:42]MH_I2C_Read... [23:51:42]Read from MH i2c: E2 23 00 [23:51:42]MH_I2C_Read... [23:51:42]Read from MH i2c: E2 23 00 0C 2B 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 6B B3 C6 F7 F9 EE 90 00 BA [23:51:42]RAPDU: F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 6B B3 C6 F7 F9 EE 90 00 [23:51:42]wFMCommunicate OK [23:51:42]SAM_PROTO_ProcessDocument received (without SW) 32 bytes [23:51:42]SAM_PROTO_ProcessDocument done [23:51:42]1209 (1) - 1.0 - номер версии ФФД [23:51:42]1041 (16) - 0000000000874939 - номер ФМ [23:51:42]1040 (4) - 118330 - номер ФД [23:51:42]1038 (4) - 432 - номер смены [23:51:42]1118 (4) - 272 - количество кассовых чеков за смену [23:51:42]1111 (4) - 274 - общее количество ФД за смену [23:51:42]1194 (1209) - счетчики итогов смены [23:51:42] 1134 (4) - 272 - количество чеков со всеми признаками расчетов [23:51:42] 1129 (159) - счетчики операций «приход» [23:51:42] 1135 (4) - 264 - количество чеков по признаку расчетов [23:51:42] 1201 (4) - 378612.00 - общая итоговая сумма в чеках [23:51:42] 1136 (4) - 198749.00 - итоговая сумма в чеках наличными [23:51:42] 1138 (4) - 179863.00 - итоговая сумма в чеках безналичными [23:51:42] 1024 (123) - суммы налогов [23:51:42] 1006 (9) - суммы НДС [23:51:42] 1010 (1) - 0% - код ставки НДС [23:51:42] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:42] 1006 (12) - суммы НДС [23:51:42] 1010 (1) - 12% - код ставки НДС [23:51:42] 1011 (3) - 40215.76 - сумма НДС по ставке [23:51:42] 1007 (9) - суммы НСП [23:51:42] 1014 (1) - 0% - код ставки НСП [23:51:42] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:43] 1007 (12) - суммы НСП [23:51:43] 1014 (1) - 1% - код ставки НСП [23:51:43] 1015 (3) - 3351.22 - сумма НСП по ставке [23:51:43] 1007 (9) - суммы НСП [23:51:43] 1014 (1) - 2% - код ставки НСП [23:51:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:43] 1007 (9) - суммы НСП [23:51:43] 1014 (1) - 3% - код ставки НСП [23:51:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:43] 1007 (9) - суммы НСП [23:51:43] 1014 (1) - 5% - код ставки НСП [23:51:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:43] 1007 (9) - суммы НСП [23:51:43] 1014 (1) - 0,50% - код ставки НСП [23:51:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:43] 1007 (9) - суммы НСП [23:51:43] 1014 (1) - 1,50% - код ставки НСП [23:51:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:43] 1130 (152) - счетчики операций «возврат прихода» [23:51:43] 1135 (4) - 8 - количество чеков по признаку расчетов [23:51:43] 1201 (3) - 8050.00 - общая итоговая сумма в чеках [23:51:43] 1136 (3) - 8050.00 - итоговая сумма в чеках наличными [23:51:43] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:51:43] 1024 (122) - суммы налогов [23:51:43] 1006 (9) - суммы НДС [23:51:43] 1010 (1) - 0% - код ставки НДС [23:51:43] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:43] 1006 (12) - суммы НДС [23:51:43] 1010 (1) - 12% - код ставки НДС [23:51:43] 1011 (3) - 855.04 - сумма НДС по ставке [23:51:43] 1007 (9) - суммы НСП [23:51:43] 1014 (1) - 0% - код ставки НСП [23:51:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:43] 1007 (11) - суммы НСП [23:51:43] 1014 (1) - 1% - код ставки НСП [23:51:43] 1015 (2) - 71.24 - сумма НСП по ставке [23:51:43] 1007 (9) - суммы НСП [23:51:43] 1014 (1) - 2% - код ставки НСП [23:51:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:43] 1007 (9) - суммы НСП [23:51:43] 1014 (1) - 3% - код ставки НСП [23:51:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:43] 1007 (9) - суммы НСП [23:51:43] 1014 (1) - 5% - код ставки НСП [23:51:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:43] 1007 (9) - суммы НСП [23:51:43] 1014 (1) - 0,50% - код ставки НСП [23:51:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:43] 1007 (9) - суммы НСП [23:51:43] 1014 (1) - 1,50% - код ставки НСП [23:51:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:43] 1131 (141) - счетчики операций «расход» [23:51:43] 1135 (4) - 0 - количество чеков по признаку расчетов [23:51:43] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:51:43] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:51:43] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:51:43] 1024 (117) - суммы налогов [23:51:43] 1006 (9) - суммы НДС [23:51:43] 1010 (1) - 0% - код ставки НДС [23:51:43] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:43] 1006 (9) - суммы НДС [23:51:43] 1010 (1) - 12% - код ставки НДС [23:51:43] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:43] 1007 (9) - суммы НСП [23:51:43] 1014 (1) - 0% - код ставки НСП [23:51:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:43] 1007 (9) - суммы НСП [23:51:43] 1014 (1) - 1% - код ставки НСП [23:51:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:43] 1007 (9) - суммы НСП [23:51:43] 1014 (1) - 2% - код ставки НСП [23:51:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:43] 1007 (9) - суммы НСП [23:51:43] 1014 (1) - 3% - код ставки НСП [23:51:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:43] 1007 (9) - суммы НСП [23:51:43] 1014 (1) - 5% - код ставки НСП [23:51:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:43] 1007 (9) - суммы НСП [23:51:43] 1014 (1) - 0,50% - код ставки НСП [23:51:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:43] 1007 (9) - суммы НСП [23:51:43] 1014 (1) - 1,50% - код ставки НСП [23:51:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:43] 1132 (141) - счетчики операций «возврат расхода» [23:51:43] 1135 (4) - 0 - количество чеков по признаку расчетов [23:51:43] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:51:43] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:51:43] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:51:43] 1024 (117) - суммы налогов [23:51:43] 1006 (9) - суммы НДС [23:51:43] 1010 (1) - 0% - код ставки НДС [23:51:43] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:43] 1006 (9) - суммы НДС [23:51:43] 1010 (1) - 12% - код ставки НДС [23:51:43] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:43] 1007 (9) - суммы НСП [23:51:43] 1014 (1) - 0% - код ставки НСП [23:51:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:43] 1007 (9) - суммы НСП [23:51:43] 1014 (1) - 1% - код ставки НСП [23:51:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:43] 1007 (9) - суммы НСП [23:51:43] 1014 (1) - 2% - код ставки НСП [23:51:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:43] 1007 (9) - суммы НСП [23:51:43] 1014 (1) - 3% - код ставки НСП [23:51:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:43] 1007 (9) - суммы НСП [23:51:43] 1014 (1) - 5% - код ставки НСП [23:51:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:43] 1007 (9) - суммы НСП [23:51:43] 1014 (1) - 0,50% - код ставки НСП [23:51:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:43] 1007 (9) - суммы НСП [23:51:43] 1014 (1) - 1,50% - код ставки НСП [23:51:43] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:43] 1133 (588) - - счетчики коррекции - не используются [23:51:43]1077 (6) - 118419881458158 - ФПД [23:51:43]SetTLVBufToDocument [23:51:43]Processing tag 1209 (04B9) [23:51:43]Malloc new data [23:51:43]Processing tag 1041 (0411) [23:51:43]Processing tag 1040 (0410) [23:51:43]Malloc new data [23:51:43]Processing tag 1038 (040E) [23:51:43]Malloc new data [23:51:43]Processing tag 1118 (045E) [23:51:43]Malloc new data [23:51:43]Processing tag 1111 (0457) [23:51:43]Malloc new data [23:51:43]Processing tag 1194 (04AA) [23:51:43]Load OK [23:51:43]SetTLVBufToDocument [23:51:43]Processing tag 1134 (046E) [23:51:43]Malloc new data [23:51:43]Processing tag 1129 (0469) [23:51:43]Load OK [23:51:43]SetTLVBufToDocument [23:51:43]Processing tag 1135 (046F) [23:51:43]Malloc new data [23:51:43]Processing tag 1201 (04B1) [23:51:43]Malloc new data [23:51:43]Processing tag 1136 (0470) [23:51:43]Malloc new data [23:51:43]Processing tag 1138 (0472) [23:51:43]Malloc new data [23:51:43]Processing tag 1024 (0400) [23:51:43]Load OK [23:51:43]SetTLVBufToDocument [23:51:43]Processing tag 1006 (03EE) [23:51:43]Load OK [23:51:43]SetTLVBufToDocument [23:51:43]Processing tag 1010 (03F2) [23:51:43]Malloc new data [23:51:43]Processing tag 1011 (03F3) [23:51:43]Malloc new data [23:51:43]SetTLVBufToDocument err=0 [23:51:43]Processing tag 1006 (03EE) [23:51:43]Load OK [23:51:43]SetTLVBufToDocument [23:51:43]Processing tag 1010 (03F2) [23:51:43]Malloc new data [23:51:43]Processing tag 1011 (03F3) [23:51:43]Malloc new data [23:51:43]SetTLVBufToDocument err=0 [23:51:43]Processing tag 1007 (03EF) [23:51:43]Load OK [23:51:43]SetTLVBufToDocument [23:51:43]Processing tag 1014 (03F6) [23:51:43]Malloc new data [23:51:43]Processing tag 1015 (03F7) [23:51:43]Malloc new data [23:51:43]SetTLVBufToDocument err=0 [23:51:43]Processing tag 1007 (03EF) [23:51:43]Load OK [23:51:43]SetTLVBufToDocument [23:51:43]Processing tag 1014 (03F6) [23:51:43]Malloc new data [23:51:43]Processing tag 1015 (03F7) [23:51:43]Malloc new data [23:51:43]SetTLVBufToDocument err=0 [23:51:43]Processing tag 1007 (03EF) [23:51:43]Load OK [23:51:43]SetTLVBufToDocument [23:51:43]Processing tag 1014 (03F6) [23:51:43]Malloc new data [23:51:43]Processing tag 1015 (03F7) [23:51:43]Malloc new data [23:51:43]SetTLVBufToDocument err=0 [23:51:43]Processing tag 1007 (03EF) [23:51:43]Load OK [23:51:43]SetTLVBufToDocument [23:51:43]Processing tag 1014 (03F6) [23:51:43]Malloc new data [23:51:43]Processing tag 1015 (03F7) [23:51:43]Malloc new data [23:51:43]SetTLVBufToDocument err=0 [23:51:43]Processing tag 1007 (03EF) [23:51:43]Load OK [23:51:43]SetTLVBufToDocument [23:51:43]Processing tag 1014 (03F6) [23:51:43]Malloc new data [23:51:43]Processing tag 1015 (03F7) [23:51:43]Malloc new data [23:51:43]SetTLVBufToDocument err=0 [23:51:43]Processing tag 1007 (03EF) [23:51:43]Load OK [23:51:43]SetTLVBufToDocument [23:51:43]Processing tag 1014 (03F6) [23:51:43]Malloc new data [23:51:43]Processing tag 1015 (03F7) [23:51:43]Malloc new data [23:51:43]SetTLVBufToDocument err=0 [23:51:43]Processing tag 1007 (03EF) [23:51:43]Load OK [23:51:43]SetTLVBufToDocument [23:51:43]Processing tag 1014 (03F6) [23:51:43]Malloc new data [23:51:43]Processing tag 1015 (03F7) [23:51:43]Malloc new data [23:51:43]SetTLVBufToDocument err=0 [23:51:43]SetTLVBufToDocument err=0 [23:51:43]SetTLVBufToDocument err=0 [23:51:43]Processing tag 1130 (046A) [23:51:43]Load OK [23:51:43]SetTLVBufToDocument [23:51:43]Processing tag 1135 (046F) [23:51:43]Malloc new data [23:51:43]Processing tag 1201 (04B1) [23:51:43]Malloc new data [23:51:43]Processing tag 1136 (0470) [23:51:43]Malloc new data [23:51:43]Processing tag 1138 (0472) [23:51:43]Malloc new data [23:51:43]Processing tag 1024 (0400) [23:51:43]Load OK [23:51:43]SetTLVBufToDocument [23:51:43]Processing tag 1006 (03EE) [23:51:43]Load OK [23:51:43]SetTLVBufToDocument [23:51:43]Processing tag 1010 (03F2) [23:51:43]Malloc new data [23:51:43]Processing tag 1011 (03F3) [23:51:43]Malloc new data [23:51:43]SetTLVBufToDocument err=0 [23:51:43]Processing tag 1006 (03EE) [23:51:43]Load OK [23:51:43]SetTLVBufToDocument [23:51:43]Processing tag 1010 (03F2) [23:51:43]Malloc new data [23:51:43]Processing tag 1011 (03F3) [23:51:43]Malloc new data [23:51:43]SetTLVBufToDocument err=0 [23:51:43]Processing tag 1007 (03EF) [23:51:43]Load OK [23:51:43]SetTLVBufToDocument [23:51:43]Processing tag 1014 (03F6) [23:51:43]Malloc new data [23:51:43]Processing tag 1015 (03F7) [23:51:43]Malloc new data [23:51:43]SetTLVBufToDocument err=0 [23:51:43]Processing tag 1007 (03EF) [23:51:43]Load OK [23:51:43]SetTLVBufToDocument [23:51:43]Processing tag 1014 (03F6) [23:51:43]Malloc new data [23:51:43]Processing tag 1015 (03F7) [23:51:43]Malloc new data [23:51:43]SetTLVBufToDocument err=0 [23:51:43]Processing tag 1007 (03EF) [23:51:43]Load OK [23:51:43]SetTLVBufToDocument [23:51:43]Processing tag 1014 (03F6) [23:51:43]Malloc new data [23:51:43]Processing tag 1015 (03F7) [23:51:43]Malloc new data [23:51:43]SetTLVBufToDocument err=0 [23:51:43]Processing tag 1007 (03EF) [23:51:43]Load OK [23:51:43]SetTLVBufToDocument [23:51:43]Processing tag 1014 (03F6) [23:51:43]Malloc new data [23:51:43]Processing tag 1015 (03F7) [23:51:43]Malloc new data [23:51:43]SetTLVBufToDocument err=0 [23:51:43]Processing tag 1007 (03EF) [23:51:43]Load OK [23:51:43]SetTLVBufToDocument [23:51:43]Processing tag 1014 (03F6) [23:51:43]Malloc new data [23:51:43]Processing tag 1015 (03F7) [23:51:43]Malloc new data [23:51:43]SetTLVBufToDocument err=0 [23:51:43]Processing tag 1007 (03EF) [23:51:43]Load OK [23:51:43]SetTLVBufToDocument [23:51:43]Processing tag 1014 (03F6) [23:51:43]Malloc new data [23:51:43]Processing tag 1015 (03F7) [23:51:43]Malloc new data [23:51:43]SetTLVBufToDocument err=0 [23:51:43]Processing tag 1007 (03EF) [23:51:43]Load OK [23:51:43]SetTLVBufToDocument [23:51:43]Processing tag 1014 (03F6) [23:51:43]Malloc new data [23:51:43]Processing tag 1015 (03F7) [23:51:43]Malloc new data [23:51:43]SetTLVBufToDocument err=0 [23:51:43]SetTLVBufToDocument err=0 [23:51:43]SetTLVBufToDocument err=0 [23:51:43]Processing tag 1131 (046B) [23:51:43]Load OK [23:51:43]SetTLVBufToDocument [23:51:43]Processing tag 1135 (046F) [23:51:43]Malloc new data [23:51:43]Processing tag 1201 (04B1) [23:51:43]Malloc new data [23:51:43]Processing tag 1136 (0470) [23:51:43]Malloc new data [23:51:43]Processing tag 1138 (0472) [23:51:43]Malloc new data [23:51:43]Processing tag 1024 (0400) [23:51:43]Load OK [23:51:43]SetTLVBufToDocument [23:51:43]Processing tag 1006 (03EE) [23:51:43]Load OK [23:51:43]SetTLVBufToDocument [23:51:43]Processing tag 1010 (03F2) [23:51:43]Malloc new data [23:51:43]Processing tag 1011 (03F3) [23:51:43]Malloc new data [23:51:43]SetTLVBufToDocument err=0 [23:51:43]Processing tag 1006 (03EE) [23:51:43]Load OK [23:51:43]SetTLVBufToDocument [23:51:43]Processing tag 1010 (03F2) [23:51:43]Malloc new data [23:51:43]Processing tag 1011 (03F3) [23:51:43]Malloc new data [23:51:43]SetTLVBufToDocument err=0 [23:51:43]Processing tag 1007 (03EF) [23:51:43]Load OK [23:51:43]SetTLVBufToDocument [23:51:43]Processing tag 1014 (03F6) [23:51:43]Malloc new data [23:51:43]Processing tag 1015 (03F7) [23:51:43]Malloc new data [23:51:43]SetTLVBufToDocument err=0 [23:51:43]Processing tag 1007 (03EF) [23:51:43]Load OK [23:51:43]SetTLVBufToDocument [23:51:43]Processing tag 1014 (03F6) [23:51:43]Malloc new data [23:51:43]Processing tag 1015 (03F7) [23:51:43]Malloc new data [23:51:43]SetTLVBufToDocument err=0 [23:51:43]Processing tag 1007 (03EF) [23:51:43]Load OK [23:51:43]SetTLVBufToDocument [23:51:43]Processing tag 1014 (03F6) [23:51:43]Malloc new data [23:51:43]Processing tag 1015 (03F7) [23:51:43]Malloc new data [23:51:43]SetTLVBufToDocument err=0 [23:51:43]Processing tag 1007 (03EF) [23:51:43]Load OK [23:51:43]SetTLVBufToDocument [23:51:43]Processing tag 1014 (03F6) [23:51:43]Malloc new data [23:51:43]Processing tag 1015 (03F7) [23:51:43]Malloc new data [23:51:43]SetTLVBufToDocument err=0 [23:51:43]Processing tag 1007 (03EF) [23:51:43]Load OK [23:51:43]SetTLVBufToDocument [23:51:43]Processing tag 1014 (03F6) [23:51:43]Malloc new data [23:51:43]Processing tag 1015 (03F7) [23:51:44]Malloc new data [23:51:44]SetTLVBufToDocument err=0 [23:51:44]Processing tag 1007 (03EF) [23:51:44]Load OK [23:51:44]SetTLVBufToDocument [23:51:44]Processing tag 1014 (03F6) [23:51:44]Malloc new data [23:51:44]Processing tag 1015 (03F7) [23:51:44]Malloc new data [23:51:44]SetTLVBufToDocument err=0 [23:51:44]Processing tag 1007 (03EF) [23:51:44]Load OK [23:51:44]SetTLVBufToDocument [23:51:44]Processing tag 1014 (03F6) [23:51:44]Malloc new data [23:51:44]Processing tag 1015 (03F7) [23:51:44]Malloc new data [23:51:44]SetTLVBufToDocument err=0 [23:51:44]SetTLVBufToDocument err=0 [23:51:44]SetTLVBufToDocument err=0 [23:51:44]Processing tag 1132 (046C) [23:51:44]Load OK [23:51:44]SetTLVBufToDocument [23:51:44]Processing tag 1135 (046F) [23:51:44]Malloc new data [23:51:44]Processing tag 1201 (04B1) [23:51:44]Malloc new data [23:51:44]Processing tag 1136 (0470) [23:51:44]Malloc new data [23:51:44]Processing tag 1138 (0472) [23:51:44]Malloc new data [23:51:44]Processing tag 1024 (0400) [23:51:44]Load OK [23:51:44]SetTLVBufToDocument [23:51:44]Processing tag 1006 (03EE) [23:51:44]Load OK [23:51:44]SetTLVBufToDocument [23:51:44]Processing tag 1010 (03F2) [23:51:44]Malloc new data [23:51:44]Processing tag 1011 (03F3) [23:51:44]Malloc new data [23:51:44]SetTLVBufToDocument err=0 [23:51:44]Processing tag 1006 (03EE) [23:51:44]Load OK [23:51:44]SetTLVBufToDocument [23:51:44]Processing tag 1010 (03F2) [23:51:44]Malloc new data [23:51:44]Processing tag 1011 (03F3) [23:51:44]Malloc new data [23:51:44]SetTLVBufToDocument err=0 [23:51:44]Processing tag 1007 (03EF) [23:51:44]Load OK [23:51:44]SetTLVBufToDocument [23:51:44]Processing tag 1014 (03F6) [23:51:44]Malloc new data [23:51:44]Processing tag 1015 (03F7) [23:51:44]Malloc new data [23:51:44]SetTLVBufToDocument err=0 [23:51:44]Processing tag 1007 (03EF) [23:51:44]Load OK [23:51:44]SetTLVBufToDocument [23:51:44]Processing tag 1014 (03F6) [23:51:44]Malloc new data [23:51:44]Processing tag 1015 (03F7) [23:51:44]Malloc new data [23:51:44]SetTLVBufToDocument err=0 [23:51:44]Processing tag 1007 (03EF) [23:51:44]Load OK [23:51:44]SetTLVBufToDocument [23:51:44]Processing tag 1014 (03F6) [23:51:44]Malloc new data [23:51:44]Processing tag 1015 (03F7) [23:51:44]Malloc new data [23:51:44]SetTLVBufToDocument err=0 [23:51:44]Processing tag 1007 (03EF) [23:51:44]Load OK [23:51:44]SetTLVBufToDocument [23:51:44]Processing tag 1014 (03F6) [23:51:44]Malloc new data [23:51:44]Processing tag 1015 (03F7) [23:51:44]Malloc new data [23:51:44]SetTLVBufToDocument err=0 [23:51:44]Processing tag 1007 (03EF) [23:51:44]Load OK [23:51:44]SetTLVBufToDocument [23:51:44]Processing tag 1014 (03F6) [23:51:44]Malloc new data [23:51:44]Processing tag 1015 (03F7) [23:51:44]Malloc new data [23:51:44]SetTLVBufToDocument err=0 [23:51:44]Processing tag 1007 (03EF) [23:51:44]Load OK [23:51:44]SetTLVBufToDocument [23:51:44]Processing tag 1014 (03F6) [23:51:44]Malloc new data [23:51:44]Processing tag 1015 (03F7) [23:51:44]Malloc new data [23:51:44]SetTLVBufToDocument err=0 [23:51:44]Processing tag 1007 (03EF) [23:51:44]Load OK [23:51:44]SetTLVBufToDocument [23:51:44]Processing tag 1014 (03F6) [23:51:44]Malloc new data [23:51:44]Processing tag 1015 (03F7) [23:51:44]Malloc new data [23:51:44]SetTLVBufToDocument err=0 [23:51:44]SetTLVBufToDocument err=0 [23:51:44]SetTLVBufToDocument err=0 [23:51:44]Processing tag 1133 (046D) [23:51:44]Malloc new data [23:51:44]SetTLVBufToDocument err=0 [23:51:44]Processing tag 1077 (0435) [23:51:44]Malloc new data [23:51:44]SetTLVBufToDocument err=0 [23:51:44]Malloc new data [23:51:44]SAM_PROTO_GetFMData [23:51:44]wFMCommunicate request_size=4 [23:51:44]MH_SAM_APDU [23:51:44]CAPDU: 80 13 03 00 [23:51:44]Write to MH i2c: E2 08 00 0D 2B 80 13 03 00 00 00 00 00 B7 [23:51:44]Write i2c OK [23:51:44]MH_I2C_Read... [23:51:44]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:51:44]Read from MH i2c: E2 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 FD 00 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 FD 00 0D 2B 00 C5 04 85 04 C1 04 6E 04 04 00 D9 CA 01 00 69 04 A3 00 6F 04 04 00 57 BD 01 00 B1 04 05 00 24 A1 97 72 03 70 04 05 00 B8 FA BC A6 02 72 04 04 00 6C A6 DA CB 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 4A 3D C0 5D 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 E7 E3 CF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 82 0D 00 00 B1 04 04 00 DC 2E 0A 3B 70 04 04 00 DC 2E 0A 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2C 3C 45 06 EF 03 09 90 00 56 [23:51:44]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 D9 CA 01 00 69 04 A3 00 6F 04 04 00 57 BD 01 00 B1 04 05 00 24 A1 97 72 03 70 04 05 00 B8 FA BC A6 02 72 04 04 00 6C A6 DA CB 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 4A 3D C0 5D 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 E7 E3 CF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 82 0D 00 00 B1 04 04 00 DC 2E 0A 3B 70 04 04 00 DC 2E 0A 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2C 3C 45 06 EF 03 09 90 00 [23:51:44]wFMCommunicate OK [23:51:44]wFMCommunicate request_size=4 [23:51:44]MH_SAM_APDU [23:51:44]CAPDU: 80 17 00 00 [23:51:44]Write to MH i2c: E2 08 00 0E 2B 80 17 00 00 00 00 00 00 B9 [23:51:45]Write i2c OK [23:51:45]MH_I2C_Read... [23:51:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:45]Read from MH i2c: E2 [23:51:45]MH_I2C_Read... [23:51:45]Read from MH i2c: E2 FD 00 [23:51:45]MH_I2C_Read... [23:51:45]Read from MH i2c: E2 FD 00 0E 2B 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 22 C4 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DA [23:51:45]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 22 C4 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:45]wFMCommunicate OK [23:51:45]wFMCommunicate request_size=4 [23:51:45]MH_SAM_APDU [23:51:45]CAPDU: 80 17 00 00 [23:51:45]Write to MH i2c: E2 08 00 0F 2B 80 17 00 00 00 00 00 00 BA [23:51:45]Write i2c OK [23:51:45]MH_I2C_Read... [23:51:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:45]Read from MH i2c: E2 [23:51:45]MH_I2C_Read... [23:51:45]Read from MH i2c: E2 FD 00 [23:51:45]MH_I2C_Read... [23:51:45]Read from MH i2c: E2 FD 00 0F 2B 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 CC [23:51:46]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:46]wFMCommunicate OK [23:51:46]wFMCommunicate request_size=4 [23:51:46]MH_SAM_APDU [23:51:46]CAPDU: 80 17 00 00 [23:51:46]Write to MH i2c: E2 08 00 10 2B 80 17 00 00 00 00 00 00 BB [23:51:46]Write i2c OK [23:51:46]MH_I2C_Read... [23:51:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:46]Read from MH i2c: E2 [23:51:46]MH_I2C_Read... [23:51:46]Read from MH i2c: E2 FD 00 [23:51:46]MH_I2C_Read... [23:51:46]Read from MH i2c: E2 FD 00 10 2B 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [23:51:46]00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 47 [23:51:46]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:47]wFMCommunicate OK [23:51:47]wFMCommunicate request_size=4 [23:51:47]MH_SAM_APDU [23:51:47]CAPDU: 80 17 00 00 [23:51:47]Write to MH i2c: E2 08 00 11 2B 80 17 00 00 00 00 00 00 BC [23:51:47]Write i2c OK [23:51:47]MH_I2C_Read... [23:51:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:51:47]Read from MH i2c: E2 [23:51:47]MH_I2C_Read... [23:51:47]Read from MH i2c: E2 E2 00 [23:51:47]MH_I2C_Read... [23:51:47]Read from MH i2c: E2 E2 00 11 2B 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A [23:51:47]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:51:47]wFMCommunicate OK [23:51:47]SAM_PROTO_GetFMData done [23:51:47]Malloc new data [23:51:47]Malloc new data [23:51:47]Malloc new data [23:51:47]Malloc new data [23:51:47]KKMLoadAndSignCloseShiftData err=0 [23:51:47]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Айдарали у Б. 27.07.2024 23:51 Смена: 432 РНМ: 0000000000092660 ЗНМ: 0300000044 СНО: Общий режим Чеков за смену: 272 ФД за смену: 274 Всего чеков: 272 ИТОГИ ПРИХОД Чеков: 264 Общий итог: 378612.00 Итого наличными: 198749.00 Итого безнал.: 179863.00 НДС 0% : 0.00 НДС 12% : 40215.76 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3351.22 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 8 Общий итог: 8050.00 Итого наличными: 8050.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 855.04 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 71.24 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 190699.00 НС Приход: 148074417.00 НС Возвр.Прихода: 9905231.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 118330 ФМ: 0000000000874939 ФПД: 118419881458158 [23:51:47]StoreToDocumentArchive [23:51:47]shift 432 fd 118330 [23:51:47]save to /storage/0432/doc_00118330 [23:51:47]save last doc name /storage/0432/doc_00118330 to /storage/kkm_last_doc_name [23:51:47]save OK [23:51:47]Clear old archive folders... [23:51:47]Remove dir /storage/0266 [23:51:47]opendir ok [23:51:47]file . [23:51:47]file .. [23:51:47]file doc_1722124264 [23:51:47]remove file /storage/0266/doc_1722124264 [23:51:47]remove dir /storage/0266 [23:51:47]NVStorageSaveData kkm_registers [23:51:47]File name is /storage/kkm_registers [23:51:47]Write 24 bytes [23:51:47]NVStorageSaveData done [23:51:47]NVStorageSaveData kkm_registers [23:51:47]File name is /storage/kkm_registers [23:51:47]Write 24 bytes [23:51:47]NVStorageSaveData done [23:51:47]ProcessDocumentItem done err = 0, tmpTLVsize=1393 [23:51:47]tlvbuf is 01F4D770 [23:51:47]SAM_PROTO_ClearQueue [23:51:47]wFMCommunicate request_size=4 [23:51:47]MH_SAM_APDU [23:51:47]CAPDU: 80 09 00 00 [23:51:47]Write to MH i2c: E2 08 00 12 2B 80 09 00 00 00 00 00 00 AF [23:51:47]Write i2c OK [23:51:47]MH_I2C_Read... [23:51:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:51:47]Read from MH i2c: E2 [23:51:47]MH_I2C_Read... [23:51:47]Read from MH i2c: E2 03 00 [23:51:47]MH_I2C_Read... [23:51:47]Read from MH i2c: E2 03 00 12 2B 00 90 00 B1 [23:51:47]RAPDU: 90 00 [23:51:47]wFMCommunicate OK [23:51:47]SAM_PROTO_ClearQueue done [23:51:47]KKMCreateOFDPacket [23:51:47]OFDProtocolAddRootSTLVToBuf [23:51:47]FM_MakeSignedData [23:51:47]FM_MakeSignedData [23:51:47]SAM_PROTO_SignData [23:51:47]wFMCommunicate request_size=4 [23:51:47]MH_SAM_APDU [23:51:47]CAPDU: 80 0D 01 02 [23:51:47]Write to MH i2c: E2 08 00 13 2B 80 0D 01 02 00 00 00 00 B7 [23:51:47]Write i2c OK [23:51:47]MH_I2C_Read... [23:51:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:51:47]Read from MH i2c: E2 [23:51:47]MH_I2C_Read... [23:51:47]Read from MH i2c: E2 03 00 [23:51:47]MH_I2C_Read... [23:51:47]Read from MH i2c: E2 03 00 13 2B 00 90 00 B2 [23:51:47]RAPDU: 90 00 [23:51:47]wFMCommunicate OK [23:51:47]wFMCommunicate request_size=255 [23:51:47]MH_SAM_APDU [23:51:47]CAPDU: 80 0D 02 02 FA 05 00 71 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 18 00 D0 90 D0 B9 D0 B4 D0 B0 D1 80 D0 B0 D0 BB D0 B8 20 D1 83 20 D0 91 2E 20 F4 03 04 00 0C 88 A5 66 0E 04 04 00 B0 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 5E 04 04 00 10 01 00 00 57 04 04 00 12 01 00 00 AA 04 E0 04 6E 04 04 00 10 01 00 00 69 04 A6 00 6F 04 04 00 08 01 00 00 B1 04 04 00 50 B7 41 02 70 04 04 00 54 44 2F 01 72 04 04 00 FC 72 12 01 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 48 5D 3D 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 [23:51:48]Write to MH i2c: E2 02 01 14 2B 80 0D 02 02 FA 00 05 00 71 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 18 00 D0 90 D0 B9 D0 B4 D0 B0 D1 80 D0 B0 D0 BB D0 B8 20 D1 83 20 D0 91 2E 20 F4 03 04 00 0C 88 A5 66 0E 04 04 00 B0 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 5E 04 04 00 10 01 00 00 57 04 04 00 12 01 00 00 AA 04 E0 04 6E 04 04 00 10 01 00 00 69 04 A6 00 6F 04 04 00 08 01 00 00 B1 04 04 00 50 B7 41 02 70 04 04 00 54 44 2F 01 72 04 04 00 FC 72 12 01 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 48 5D 3D 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 00 00 53 [23:51:48]Write i2c OK [23:51:48]MH_I2C_Read... [23:51:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:51:48]Read from MH i2c: E2 [23:51:48]MH_I2C_Read... [23:51:48]Read from MH i2c: E2 03 00 [23:51:48]MH_I2C_Read... [23:51:48]Read from MH i2c: E2 03 00 14 2B 00 90 00 B3 [23:51:48]RAPDU: 90 00 [23:51:48]wFMCommunicate OK [23:51:48]wFMCommunicate request_size=255 [23:51:48]MH_SAM_APDU [23:51:48]CAPDU: 80 0D 02 02 FA 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 12 1D 05 6A 04 A0 00 6F 04 04 00 08 00 00 00 B1 04 03 00 88 48 0C 70 04 03 00 88 48 0C 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 00 4E 01 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 1B 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 [23:51:48]Write to MH i2c: E2 02 01 15 2B 80 0D 02 02 FA 00 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 12 1D 05 6A 04 A0 00 6F 04 04 00 08 00 00 00 B1 04 03 00 88 48 0C 70 04 03 00 88 48 0C 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 00 4E 01 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 1B 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 00 00 7B [23:51:49]Write i2c OK [23:51:49]MH_I2C_Read... [23:51:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:51:49]Read from MH i2c: E2 [23:51:49]MH_I2C_Read... [23:51:49]Read from MH i2c: E2 03 00 [23:51:49]MH_I2C_Read... [23:51:49]Read from MH i2c: E2 03 00 15 2B 00 90 00 B4 [23:51:49]RAPDU: 90 00 [23:51:49]wFMCommunicate OK [23:51:49]wFMCommunicate request_size=255 [23:51:49]MH_SAM_APDU [23:51:49]CAPDU: 80 0D 02 02 FA 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 [23:51:49]Write to MH i2c: E2 02 01 16 2B 80 0D 02 02 FA 00 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 00 00 82 [23:51:49]Write i2c OK [23:51:49]MH_I2C_Read... [23:51:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:51:50]Read from MH i2c: E2 [23:51:50]MH_I2C_Read... [23:51:50]Read from MH i2c: E2 03 00 [23:51:50]MH_I2C_Read... [23:51:50]Read from MH i2c: E2 03 00 16 2B 00 90 00 B5 [23:51:50]RAPDU: 90 00 [23:51:50]wFMCommunicate OK [23:51:50]wFMCommunicate request_size=255 [23:51:50]MH_SAM_APDU [23:51:50]CAPDU: 80 0D 02 02 FA 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 [23:51:50]Write to MH i2c: E2 02 01 17 2B 80 0D 02 02 FA 00 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 00 00 89 [23:51:50]Write i2c OK [23:51:50]MH_I2C_Read... [23:51:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:51:50]Read from MH i2c: E2 [23:51:50]MH_I2C_Read... [23:51:50]Read from MH i2c: E2 03 00 [23:51:50]MH_I2C_Read... [23:51:50]Read from MH i2c: E2 03 00 17 2B 00 90 00 B6 [23:51:50]RAPDU: 90 00 [23:51:50]wFMCommunicate OK [23:51:50]wFMCommunicate request_size=255 [23:51:50]MH_SAM_APDU [23:51:50]CAPDU: 80 0D 02 02 FA F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:51:51]Write to MH i2c: E2 02 01 18 2B 80 0D 02 02 FA 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 00 51 [23:51:51]Write i2c OK [23:51:51]MH_I2C_Read... [23:51:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:51:51]Read from MH i2c: E2 [23:51:51]MH_I2C_Read... [23:51:51]Read from MH i2c: E2 03 00 [23:51:51]MH_I2C_Read... [23:51:51]Read from MH i2c: E2 03 00 18 2B 00 90 00 B7 [23:51:51]RAPDU: 90 00 [23:51:51]wFMCommunicate OK [23:51:51]wFMCommunicate request_size=152 [23:51:51]MH_SAM_APDU [23:51:51]CAPDU: 80 0D 02 02 93 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3A CE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 6B B3 C6 F7 F9 EE [23:51:51]Write to MH i2c: E2 9B 00 19 2B 80 0D 02 02 93 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 OFD Sender: No OFD packet to send [23:51:51]EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 3A CE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 6B B3 C6 F7 F9 EE 00 00 CE [23:51:52]Write i2c OK [23:51:52]MH_I2C_Read... [23:51:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:51:52]Read from MH i2c: E2 [23:51:52]MH_I2C_Read... [23:51:52]Read from MH i2c: E2 03 00 [23:51:52]MH_I2C_Read... [23:51:52]Read from MH i2c: E2 03 00 19 2B 00 90 00 B8 [23:51:52]RAPDU: 90 00 [23:51:52]wFMCommunicate OK [23:51:52]wFMCommunicate request_size=4 [23:51:52]MH_SAM_APDU [23:51:52]CAPDU: 80 0D 03 02 [23:51:52]Write to MH i2c: E2 08 00 1A 2B 80 0D 03 02 00 00 00 00 C0 [23:51:52]Write i2c OK [23:51:52]MH_I2C_Read... [23:51:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:51:52]Read from MH i2c: E2 [23:51:52]MH_I2C_Read... [23:51:52]Read from MH i2c: E2 0B 00 [23:51:52]MH_I2C_Read... [23:51:52]Read from MH i2c: E2 0B 00 1A 2B 00 AE A7 B3 57 C7 33 96 82 90 00 32 [23:51:52]RAPDU: AE A7 B3 57 C7 33 96 82 90 00 [23:51:52]wFMCommunicate OK [23:51:52]SAM_PROTO_SignData done [23:51:52]FM_MakeSignedData done [23:51:52]CreateOFDProtocolMessage [23:51:52]wFMCommunicate request_size=4 [23:51:52]MH_SAM_APDU [23:51:52]CAPDU: 80 11 00 00 [23:51:52]Write to MH i2c: E2 08 00 1B 2B 80 11 00 00 00 00 00 00 C0 [23:51:52]Write i2c OK [23:51:52]MH_I2C_Read... [23:51:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:51:52]Read from MH i2c: E2 [23:51:52]MH_I2C_Read... [23:51:52]Read from MH i2c: E2 17 00 [23:51:52]MH_I2C_Read... [23:51:52]Read from MH i2c: E2 17 00 1B 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1B [23:51:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:51:52]wFMCommunicate OK [23:51:52]CreateOFDProtocolMessage done [23:51:52]OFDSenderStorePacket 118330 [23:51:52]StoreOFDPacket docnum=118330 [23:51:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 85 05 00 00 4F 47 7D 05 11 FC 5A 05 01 00 05 00 71 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 18 00 D0 90 D0 B9 D0 B4 D0 B0 D1 80 D0 B0 D0 BB D0 B8 20 D1 83 20 D0 91 2E 20 F4 03 04 00 0C 88 A5 66 0E 04 04 00 B0 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 5E 04 04 00 10 01 00 00 57 04 04 00 12 01 00 00 AA 04 E0 04 6E 04 04 00 10 01 00 00 69 04 A6 00 6F 04 04 00 08 01 00 00 B1 04 04 00 50 B7 41 02 70 04 04 00 54 44 2F 01 72 04 04 00 FC 72 12 01 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 48 5D 3D 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 12 1D 05 6A 04 A0 00 6F 04 04 00 08 00 00 00 B1 04 03 00 88 48 0C 70 04 03 00 88 48 0C 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 00 4E 01 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 1B 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 3A CE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 6B B3 C6 F7 F9 EE AE A7 B3 57 C7 33 96 82 [23:51:52]CheckFolder [23:51:52]dirname=/storage/ofd_packets [23:51:52]CheckFolder done [23:51:52]ProducePacketName [23:51:52]name=ofd_packets/00118330 [23:51:52]NVStorageSaveData ofd_packets/00118330 [23:51:52]File name is /storage/ofd_packets/00118330 [23:51:52]Write 1443 bytes [23:51:52]NVStorageSaveData done [23:51:52]OFDSenderStorePacket done [23:51:52]KKMCreateOFDPacket done [23:51:52]NVStorageSaveData kkm_last_timestamp [23:51:52]File name is /storage/kkm_last_timestamp [23:51:52]Write 4 bytes [23:51:52]NVStorageSaveData done [23:51:52]ExternCall_PrintAddStr [23:51:52]wPrintStart [23:51:52]Write to MH i2c: 01 00 00 1C 2B 47 [23:51:52]Write i2c OK [23:51:52]MH_I2C_Read... [23:51:52]Read from MH i2c: 01 [23:51:52]MH_I2C_Read... [23:51:52]Read from MH i2c: 01 07 00 [23:51:52]MH_I2C_Read... [23:51:52]Read from MH i2c: 01 07 00 1C 2B 00 00 00 00 00 FF 0F 5C [23:51:52]RasterBufferAndPrint [23:51:52]line Отчет о закрытии смены [23:51:52]line ФФД: 1.0 [23:51:52]line ИНН: 02508201610067 [23:51:52]line Кассир: Айдарали у Б. [23:51:52]line 27.07.2024 23:51 [23:51:52]line Смена: 432 [23:51:52]line РНМ: 0000000000092660 [23:51:52]line ЗНМ: 0300000044 [23:51:52]line СНО: Общий режим [23:51:52]line Чеков за смену: 272 [23:51:52]line ФД за смену: 274 [23:51:52]line Всего чеков: 272 [23:51:52]line ИТОГИ ПРИХОД [23:51:52]line Чеков: 264 [23:51:52]line Общий итог: 378612.00 [23:51:52]line Итого наличными: 198749.00 [23:51:52]line Итого безнал.: 179863.00 [23:51:52]line НДС 0% : 0.00 [23:51:52]line НДС 12% : 40215.76 [23:51:52]line НСП 0% : 0.00 [23:51:52]line НСП 1,50% : 0.00 [23:51:52]line НСП 0,50% : 0.00 [23:51:52]line НСП 5% : 0.00 [23:51:52]line НСП 3% : 0.00 [23:51:52]line НСП 2% : 0.00 [23:51:52]line НСП 1% : 3351.22 [23:51:52]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:51:52]line Чеков: 8 [23:51:52]line Общий итог: 8050.00 [23:51:52]line Итого наличными: 8050.00 [23:51:52]line Итого безнал.: 0.00 [23:51:52]line НДС 0% : 0.00 [23:51:52]line НДС 12% : 855.04 [23:51:52]line НСП 0% : 0.00 [23:51:52]line НСП 1,50% : 0.00 [23:51:52]line НСП 0,50% : 0.00 [23:51:52]line НСП 5% : 0.00 [23:51:52]line НСП 3% : 0.00 [23:51:52]line НСП 2% : 0.00 [23:51:52]line НСП 1% : 71.24 [23:51:52]line ИТОГИ РАСХОД [23:51:52]line Чеков: 0 [23:51:52]line Общий итог: 0.00 [23:51:52]line Итого наличными: 0.00 [23:51:52]line Итого безнал.: 0.00 [23:51:52]line НДС 0% : 0.00 [23:51:52]line НДС 12% : 0.00 [23:51:52]line НСП 0% : 0.00 [23:51:52]line НСП 1,50% : 0.00 [23:51:52]line НСП 0,50% : 0.00 [23:51:52]line НСП 5% : 0.00 [23:51:52]line НСП 3% : 0.00 [23:51:52]line НСП 2% : 0.00 [23:51:52]line НСП 1% : 0.00 [23:51:52]line ИТОГИ ВОЗВРАТ РАСХОДА [23:51:52]line Чеков: 0 [23:51:52]line Общий итог: 0.00 [23:51:52]line Итого наличными: 0.00 [23:51:52]line Итого безнал.: 0.00 [23:51:52]line НДС 0% : 0.00 [23:51:52]line НДС 12% : 0.00 [23:51:52]line НСП 0% : 0.00 [23:51:52]line НСП 1,50% : 0.00 [23:51:52]line НСП 0,50% : 0.00 [23:51:52]line НСП 5% : 0.00 [23:51:52]line НСП 3% : 0.00 [23:51:52]line НСП 2% : 0.00 [23:51:52]line НСП 1% : 0.00 [23:51:52]line Сумма внесений: 0.00 [23:51:52]line Сумма выплат: 0.00 [23:51:52]line Нал. в кассе: 190699.00 [23:51:53]OFD Sender: Processing packet 118330 [packets to send 86, broken 85] [23:51:53]line НС Приход: 148074417.00 [23:51:53]ProducePacketName [23:51:53]line НС Возвр.Прихода: 9905231.00 [23:51:53]name=ofd_packets/00118330 [23:51:53]line НС Расход: 0.00 [23:51:53]OFD Sender: To server: pG, [23:51:53]line НС Возвр.Расхода: 0.00 [23:51:53]CommunicateWithHost lk.salyk.kg:30040 [23:51:53]ConnectInit lk.salyk.kg [23:51:53]line ФД: 118330 [23:51:53]line ФМ: 0000000000874939 [23:51:53]line ФПД: 118419881458158 [23:51:53]written 0, free lines is 4095 [23:51:53]Connected sock=10 [23:51:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 85 05 00 00 4F 47 7D 05 11 FC 5A 05 01 00 05 00 71 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 18 00 D0 90 D0 B9 D0 B4 D0 B0 D1 80 D0 B0 D0 BB D0 B8 20 D1 83 20 D0 91 2E 20 F4 03 04 00 0C 88 A5 66 0E 04 04 00 B0 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 5E 04 04 00 10 01 00 00 57 04 04 00 12 01 00 00 AA 04 E0 04 6E 04 04 00 10 01 00 00 69 04 A6 00 6F 04 04 00 08 01 00 00 B1 04 04 00 50 B7 41 02 70 04 04 00 54 44 2F 01 72 04 04 00 FC 72 12 01 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 48 5D 3D 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 12 1D 05 6A 04 A0 00 6F 04 04 00 08 00 00 00 B1 04 03 00 88 48 0C 70 04 03 00 88 48 0C 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 00 4E 01 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 1B 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 Write to MH i2c: 01 00 00 6C 2B 97 [23:51:53]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 Write i2c OK [23:51:54]03 MH_I2C_Read... [23:51:54]01 00 00 6C 04 99 00 Read from MH i2c: 6F 01 04 [23:51:54]04 MH_I2C_Read... [23:51:54]00 00 00 00 00 B1 04 01 Read from MH i2c: 00 01 00 07 70 04 01 00 00 72 00 04 [23:51:54]01 MH_I2C_Read... [23:51:54]00 00 00 04 7E Read from MH i2c: 00 01 EE 07 03 00 0A 6C 00 2B F2 00 03 00 01 00 00 00 00 00 F3 02 03 0B 01 AB 00 00 EE 03 0A 00 F2 03 01 00 01 F3 [23:51:54]03 RasterBufferAndPrint [23:51:54]01 line [23:51:54]00 line [23:51:54]00 line [23:51:54]EF 03 0A 00 F6 03 01 00 00 F7 03 01 line [23:51:54]00 line [23:51:54]00 EF 03 0A 00 F6 03 01 00 written 0, free lines is 3349 [23:51:54]06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 MH_Cut [23:51:54]00 Write to MH i2c: 05 D1 F7 01 03 01 00 00 EF 03 0A 00 F6 00 03 73 01 2B 00 01 04 70 F7 [23:51:54]03 Write i2c OK [23:51:54]01 MH_I2C_Read... [23:51:54]00 Read from MH i2c: 00 D1 EF [23:51:54]MH_I2C_Read... [23:51:54]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 Read from MH i2c: 03 D1 00 01 00 00 EF [23:51:54]03 MH_I2C_Read... [23:51:54]09 Read from MH i2c: 00 D1 F6 01 03 00 01 73 00 2B 00 00 F7 6F 03 [23:51:54]00 Write to MH i2c: 01 00 00 EF 00 03 74 09 2B 00 9F F6 [23:51:54]03 Write i2c OK [23:51:54]01 MH_I2C_Read... [23:51:54]00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 *** Cut start [23:51:54]F3 *** Partial cut [23:51:54]03 *** CUTSNS_PIN = 1 [23:51:54]00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 *** CUTSNS_PIN = 0 [23:51:54]01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3A CE 01 *** Brake cut motor [23:51:55]00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 6B B3 C6 F7 F9 EE AE A7 B3 57 C7 33 96 82 [23:51:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 9D 8E 47 00 40 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 Read from MH i2c: 30 01 30 [23:51:55]30 MH_I2C_Read... [23:51:55]30 30 *** Stop cut motor [23:51:55]*** Cut end [23:51:55]30 Read from MH i2c: 30 01 30 07 38 00 37 [23:51:55]34 39 MH_I2C_Read... [23:51:55]33 39 10 04 04 00 3A CE 01 Read from MH i2c: 00 01 F4 07 03 00 04 74 00 2B AC 35 A5 66 B6 04 01 00 00 6A 21 34 00 82 00 45 00 79 00 DD 00 CC FF [23:51:55]0F CommunicateWithHost err = 0 [23:51:55]B4 CheckOFDResponse [23:51:55] [23:51:55]1017 (14) - 77093643461234 [23:51:55]process_action close_shift done [23:51:55]1041 (16) - 0000000000874939 [23:51:55]requested_data is exist [23:51:55]1040 (4) - 118330 [23:51:55]1012 (4) - 27.07.2024 18:00 [23:51:55]1206 (1) - 0 [23:51:55]OFD Sender: Remove packet 118330 [23:51:55]produce_requested_data [23:51:55]ProducePacketName [23:51:55]requested_item fd.num is exist - process it [23:51:55]name=ofd_packets/00118330 [23:51:55]SAM_PROTO_GetFieldsCounters [23:51:55]NVStorageDeleteData [23:51:55]wFMCommunicate request_size=4 [23:51:55]MH_SAM_APDU [23:51:55]CAPDU: 80 13 00 00 [23:51:55]Write to MH i2c: E2 08 00 75 2B 80 13 00 00 00 00 00 00 1C [23:51:55]Write i2c OK [23:51:55]MH_I2C_Read... [23:51:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:51:55]Read from MH i2c: E2 [23:51:55]MH_I2C_Read... [23:51:55]Read from MH i2c: E2 62 00 [23:51:55]MH_I2C_Read... [23:51:55]Read from MH i2c: E2 62 00 75 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3A CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 31 [23:51:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3A CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:51:56]wFMCommunicate OK [23:51:56]SAM_PROTO_GetFieldsCounters done [23:51:56]requested_item shift.num is exist - process it [23:51:56]requested_item shift.opened is exist - process it [23:51:56]req_shift_opened [23:51:56]FM_GetShiftState [23:51:56]SAM_PROTO_GetShiftState [23:51:56]wFMCommunicate request_size=4 [23:51:56]MH_SAM_APDU [23:51:56]CAPDU: 80 13 01 00 [23:51:56]Write to MH i2c: E2 08 00 76 2B 80 13 01 00 00 00 00 00 1E [23:51:56]Write i2c OK [23:51:56]MH_I2C_Read... [23:51:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:56]Read from MH i2c: E2 [23:51:56]MH_I2C_Read... [23:51:56]Read from MH i2c: E2 0E 00 [23:51:56]MH_I2C_Read... [23:51:56]Read from MH i2c: E2 0E 00 76 2B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 29 [23:51:56]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:51:56]wFMCommunicate OK [23:51:56]SAM_PROTO_GetShiftState done [23:51:56]FM_GetShiftState done [23:51:56]req_shift_opened done [23:51:56]requested_item shift.open_date is exist - process it [23:51:56]req_shift_open_date [23:51:56]FM_GetShiftState [23:51:56]SAM_PROTO_GetShiftState [23:51:56]wFMCommunicate request_size=4 [23:51:56]MH_SAM_APDU [23:51:56]CAPDU: 80 13 01 00 [23:51:56]Write to MH i2c: E2 08 00 77 2B 80 13 01 00 00 00 00 00 1F [23:51:56]Write i2c OK [23:51:56]MH_I2C_Read... [23:51:56]OFD Sender: No OFD packet to send [23:51:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:56]Read from MH i2c: E2 [23:51:56]MH_I2C_Read... [23:51:56]Read from MH i2c: E2 0E 00 [23:51:56]MH_I2C_Read... [23:51:56]Read from MH i2c: E2 0E 00 77 2B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 2A [23:51:56]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:51:56]wFMCommunicate OK [23:51:56]SAM_PROTO_GetShiftState done [23:51:56]FM_GetShiftState done [23:51:56]req_shift_open_date done [23:51:56]produce_requested_data done [23:51:56]produce_requested_data return {"fd.num":118330,"shift.num":432,"shift.opened":0,"shift.open_date":0} [23:51:56]process_action_free close_shift [23:51:56]json_value_free [23:51:56]json_value_free done [23:51:56]process_json_proto returns [23:51:56]Send response to host [23:51:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":118330,"shift.num":432,"shift.opened":0,"shift.open_date":0}}} [23:51:56]free response buf [23:51:56]execute_script done [23:51:56]execute_script returns [23:51:56]free content buf [23:51:56]Sock 7.Close socket [23:51:56]Sock 7.Thread stoped [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:11]OFD Sender: No OFD packet to send [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:47]OFD Sender: No OFD packet to send [00:04:52]OFD Sender: No OFD packet to send [00:04:57]OFD Sender: No OFD packet to send [00:05:02]OFD Sender: No OFD packet to send [00:05:07]OFD Sender: No OFD packet to send [00:05:12]OFD Sender: No OFD packet to send [00:05:17]OFD Sender: No OFD packet to send [00:05:22]OFD Sender: No OFD packet to send [00:05:27]OFD Sender: No OFD packet to send [00:05:32]OFD Sender: No OFD packet to send [00:05:37]OFD Sender: No OFD packet to send [00:05:42]OFD Sender: No OFD packet to send [00:05:47]OFD Sender: No OFD packet to send [00:05:52]OFD Sender: No OFD packet to send [00:05:57]OFD Sender: No OFD packet to send [00:06:02]OFD Sender: No OFD packet to send [00:06:07]OFD Sender: No OFD packet to send [00:06:12]OFD Sender: No OFD packet to send [00:06:17]OFD Sender: No OFD packet to send [00:06:22]OFD Sender: No OFD packet to send [00:06:27]OFD Sender: No OFD packet to send [00:06:32]OFD Sender: No OFD packet to send [00:06:37]OFD Sender: No OFD packet to send [00:06:42]OFD Sender: No OFD packet to send [00:06:47]OFD Sender: No OFD packet to send [00:06:52]OFD Sender: No OFD packet to send [00:06:57]OFD Sender: No OFD packet to send [00:07:02]OFD Sender: No OFD packet to send [00:07:07]OFD Sender: No OFD packet to send [00:07:12]OFD Sender: No OFD packet to send [00:07:17]OFD Sender: No OFD packet to send [00:07:22]OFD Sender: No OFD packet to send [00:07:27]OFD Sender: No OFD packet to send [00:07:32]OFD Sender: No OFD packet to send [00:07:37]OFD Sender: No OFD packet to send [00:07:42]OFD Sender: No OFD packet to send [00:07:47]OFD Sender: No OFD packet to send [00:07:52]OFD Sender: No OFD packet to send [00:07:57]OFD Sender: No OFD packet to send [00:08:02]OFD Sender: No OFD packet to send [00:08:07]OFD Sender: No OFD packet to send [00:08:12]OFD Sender: No OFD packet to send [00:08:17]OFD Sender: No OFD packet to send [00:08:22]OFD Sender: No OFD packet to send [00:08:27]OFD Sender: No OFD packet to send [00:08:32]OFD Sender: No OFD packet to send [00:08:37]OFD Sender: No OFD packet to send [00:08:42]OFD Sender: No OFD packet to send [00:08:47]OFD Sender: No OFD packet to send [00:08:52]OFD Sender: No OFD packet to send [00:08:57]OFD Sender: No OFD packet to send [00:09:02]OFD Sender: No OFD packet to send [00:09:07]OFD Sender: No OFD packet to send [00:09:12]OFD Sender: No OFD packet to send [00:09:17]OFD Sender: No OFD packet to send [00:09:18]accept exits with 9 [00:09:18]New connection [00:09:18]New thread 3067096420 created [00:09:18]Thread 3066953060 joined [00:09:18]Waiting for new connection... [00:09:18] Sock 9.Parse request [00:09:18]Sock 9.Check first char [00:09:18]Sock 9.First char is OK [00:09:18]request: POST /json_proto HTTP/1.0 [00:09:18]Method: POST [00:09:18]URL: /json_proto [00:09:18]Method is POST - this is cgi request [00:09:18]url: /json_proto [00:09:18]query_string will be loaded in cgi processing [00:09:18]execute_cgi json_proto POST (null) [00:09:18]execute_cgi path=json_proto method=POST [00:09:18]POST find Content-Length [00:09:18]Host: 172.17.45.7:8080 [00:09:18]Content-Length: 215 [00:09:18]Content-Type: application/json [00:09:18] [00:09:18]POST finish read [00:09:18]Found Content-Length = 215 [00:09:18]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:09:18]execute_script... [00:09:18]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:09:18]POST & json_proto [00:09:18]process_json_proto [00:09:18]json parsed OK: [00:09:18]protocol is kg_v1.0 [00:09:18]action value=get_value [00:09:18]process_action get_value [00:09:18]cmd_get_value [00:09:18]process_action get_value done [00:09:18]requested_data is exist [00:09:18]produce_requested_data [00:09:18]requested_item kkm.sn is exist - process it [00:09:18]requested_item kkm.ver is exist - process it [00:09:18]requested_item fm.sn is exist - process it [00:09:18]wFMCommunicate request_size=4 [00:09:18]MH_SAM_APDU [00:09:18]CAPDU: 80 11 00 00 [00:09:18]Write to MH i2c: E2 08 00 78 2B 80 11 00 00 00 00 00 00 1D [00:09:18]Write i2c OK [00:09:18]MH_I2C_Read... [00:09:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:18]Read from MH i2c: E2 [00:09:18]MH_I2C_Read... [00:09:18]Read from MH i2c: E2 17 00 [00:09:18]MH_I2C_Read... [00:09:18]Read from MH i2c: E2 17 00 78 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 78 [00:09:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:09:18]wFMCommunicate OK [00:09:18]requested_item fd.num is exist - process it [00:09:18]SAM_PROTO_GetFieldsCounters [00:09:18]wFMCommunicate request_size=4 [00:09:18]MH_SAM_APDU [00:09:18]CAPDU: 80 13 00 00 [00:09:18]Write to MH i2c: E2 08 00 79 2B 80 13 00 00 00 00 00 00 20 [00:09:18]Write i2c OK [00:09:18]MH_I2C_Read... [00:09:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:09:18]Read from MH i2c: E2 [00:09:18]MH_I2C_Read... [00:09:18]Read from MH i2c: E2 62 00 [00:09:18]MH_I2C_Read... [00:09:18]Read from MH i2c: E2 62 00 79 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3A CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 35 [00:09:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3A CE 01 00 0E 04 04 00 B0 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:09:18]wFMCommunicate OK [00:09:18]SAM_PROTO_GetFieldsCounters done [00:09:18]requested_item shift.num is exist - process it [00:09:18]requested_item shift.opened is exist - process it [00:09:18]req_shift_opened [00:09:18]FM_GetShiftState [00:09:18]SAM_PROTO_GetShiftState [00:09:18]wFMCommunicate request_size=4 [00:09:18]MH_SAM_APDU [00:09:18]CAPDU: 80 13 01 00 [00:09:18]Write to MH i2c: E2 08 00 7A 2B 80 13 01 00 00 00 00 00 22 [00:09:18]Write i2c OK [00:09:18]MH_I2C_Read... [00:09:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:18]Read from MH i2c: E2 [00:09:18]MH_I2C_Read... [00:09:18]Read from MH i2c: E2 0E 00 [00:09:18]MH_I2C_Read... [00:09:18]Read from MH i2c: E2 0E 00 7A 2B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 2D [00:09:18]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:09:18]wFMCommunicate OK [00:09:18]SAM_PROTO_GetShiftState done [00:09:18]FM_GetShiftState done [00:09:18]req_shift_opened done [00:09:18]requested_item shift.open_date is exist - process it [00:09:18]req_shift_open_date [00:09:18]FM_GetShiftState [00:09:18]SAM_PROTO_GetShiftState [00:09:18]wFMCommunicate request_size=4 [00:09:18]MH_SAM_APDU [00:09:18]CAPDU: 80 13 01 00 [00:09:18]Write to MH i2c: E2 08 00 7B 2B 80 13 01 00 00 00 00 00 23 [00:09:18]Write i2c OK [00:09:18]MH_I2C_Read... [00:09:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:18]Read from MH i2c: E2 [00:09:18]MH_I2C_Read... [00:09:18]Read from MH i2c: E2 0E 00 [00:09:18]MH_I2C_Read... [00:09:18]Read from MH i2c: E2 0E 00 7B 2B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 2E [00:09:18]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:09:18]wFMCommunicate OK [00:09:18]SAM_PROTO_GetShiftState done [00:09:18]FM_GetShiftState done [00:09:18]req_shift_open_date done [00:09:18]produce_requested_data done [00:09:18]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118330,"shift.num":432,"shift.opened":0,"shift.open_date":0} [00:09:18]process_action_free get_value [00:09:18]json_value_free [00:09:18]json_value_free done [00:09:18]process_json_proto returns [00:09:18]Send response to host [00:09:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118330,"shift.num":432,"shift.opened":0,"shift.open_date":0}}} [00:09:18]free response buf [00:09:18]execute_script done [00:09:18]execute_script returns [00:09:18]free content buf [00:09:18]Sock 9.Close socket [00:09:18]Sock 9.Thread stoped [00:09:18]accept exits with 7 [00:09:18]New connection [00:09:18]New thread 3066953060 created [00:09:18]Thread 3067096420 joined [00:09:18]Waiting for new connection... [00:09:18] Sock 7.Parse request [00:09:18]Sock 7.Check first char [00:09:18]Sock 7.First char is OK [00:09:18]request: POST /json_proto HTTP/1.0 [00:09:18]Method: POST [00:09:18]URL: /json_proto [00:09:18]Method is POST - this is cgi request [00:09:18]url: /json_proto [00:09:18]query_string will be loaded in cgi processing [00:09:18]execute_cgi json_proto POST (null) [00:09:18]execute_cgi path=json_proto method=POST [00:09:18]POST find Content-Length [00:09:18]Host: 172.17.45.7:8080 [00:09:18]Content-Length: 331 [00:09:18]Content-Type: application/json [00:09:18] [00:09:18]POST finish read [00:09:18]Found Content-Length = 331 [00:09:18]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:09:18]execute_script... [00:09:19]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:09:19]POST & json_proto [00:09:19]process_json_proto [00:09:19]json parsed OK: [00:09:19]protocol is kg_v1.0 [00:09:19]action value=get_value [00:09:19]process_action get_value [00:09:19]cmd_get_value [00:09:19]process_action get_value done [00:09:19]requested_data is exist [00:09:19]produce_requested_data [00:09:19]requested_item fm.sale.total is exist - process it [00:09:19]SAM_PROTO_GetFMData [00:09:19]wFMCommunicate request_size=4 [00:09:19]MH_SAM_APDU [00:09:19]CAPDU: 80 13 03 00 [00:09:19]Write to MH i2c: E2 08 00 7C 2B 80 13 03 00 00 00 00 00 26 [00:09:19]Write i2c OK [00:09:19]MH_I2C_Read... [00:09:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:09:19]Read from MH i2c: E2 [00:09:19]MH_I2C_Read... [00:09:19]Read from MH i2c: E2 FD 00 [00:09:19]MH_I2C_Read... [00:09:19]Read from MH i2c: E2 FD 00 7C 2B 00 C5 04 85 04 C1 04 6E 04 04 00 D9 CA 01 00 69 04 A3 00 6F 04 04 00 57 BD 01 00 B1 04 05 00 24 A1 97 72 03 70 04 05 00 B8 FA BC A6 02 72 04 04 00 6C A6 DA CB 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 4A 3D C0 5D 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 E7 E3 CF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 82 0D 00 00 B1 04 04 00 DC 2E 0A 3B 70 04 04 00 DC 2E 0A 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2C 3C 45 06 EF 03 09 90 00 C5 [00:09:19]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 D9 CA 01 00 69 04 A3 00 6F 04 04 00 57 BD 01 00 B1 04 05 00 24 A1 97 72 03 70 04 05 00 B8 FA BC A6 02 72 04 04 00 6C A6 DA CB 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 4A 3D C0 5D 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 E7 E3 CF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 82 0D 00 00 B1 04 04 00 DC 2E 0A 3B 70 04 04 00 DC 2E 0A 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2C 3C 45 06 EF 03 09 90 00 [00:09:19]wFMCommunicate OK [00:09:19]wFMCommunicate request_size=4 [00:09:19]MH_SAM_APDU [00:09:19]CAPDU: 80 17 00 00 [00:09:19]Write to MH i2c: E2 08 00 7D 2B 80 17 00 00 00 00 00 00 28 [00:09:19]Write i2c OK [00:09:19]MH_I2C_Read... [00:09:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:20]Read from MH i2c: E2 [00:09:20]MH_I2C_Read... [00:09:20]Read from MH i2c: E2 FD 00 [00:09:20]MH_I2C_Read... [00:09:20]Read from MH i2c: E2 FD 00 7D 2B 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 22 C4 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 49 [00:09:20]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 22 C4 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:09:20]wFMCommunicate OK [00:09:20]wFMCommunicate request_size=4 [00:09:20]MH_SAM_APDU [00:09:20]CAPDU: 80 17 00 00 [00:09:20]Write to MH i2c: E2 08 00 7E 2B 80 17 00 00 00 00 00 00 29 [00:09:20]Write i2c OK [00:09:20]MH_I2C_Read... [00:09:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:20]Read from MH i2c: E2 [00:09:20]MH_I2C_Read... [00:09:20]Read from MH i2c: E2 FD 00 [00:09:20]MH_I2C_Read... [00:09:20]Read from MH i2c: E2 FD 00 7E 2B 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 3B [00:09:20]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:09:20]wFMCommunicate OK [00:09:20]wFMCommunicate request_size=4 [00:09:20]MH_SAM_APDU [00:09:20]CAPDU: 80 17 00 00 [00:09:20]Write to MH i2c: E2 08 00 7F 2B 80 17 00 00 00 00 00 00 2A [00:09:20]Write i2c OK [00:09:20]MH_I2C_Read... [00:09:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:20]Read from MH i2c: E2 [00:09:20]MH_I2C_Read... [00:09:20]Read from MH i2c: E2 FD 00 [00:09:20]MH_I2C_Read... [00:09:20]Read from MH i2c: E2 FD 00 7F 2B 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B6 [00:09:20]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:09:20]wFMCommunicate OK [00:09:20]wFMCommunicate request_size=4 [00:09:20]MH_SAM_APDU [00:09:20]CAPDU: 80 17 00 00 [00:09:20]Write to MH i2c: E2 08 00 80 2B 80 17 00 00 00 00 00 00 2B [00:09:20]Write i2c OK [00:09:20]MH_I2C_Read... [00:09:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:09:20]Read from MH i2c: E2 [00:09:20]MH_I2C_Read... [00:09:20]Read from MH i2c: E2 E2 00 [00:09:20]MH_I2C_Read... [00:09:20]Read from MH i2c: E2 E2 00 80 2B 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 09 [00:09:20]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:09:20]wFMCommunicate OK [00:09:20]SAM_PROTO_GetFMData done [00:09:20]requested_item fm.sale_refund.total is exist - process it [00:09:20]requested_item fm.buy.total is exist - process it [00:09:20]requested_item shift.sale.total is exist - process it [00:09:20]SAM_PROTO_GetShiftData [00:09:20]wFMCommunicate request_size=4 [00:09:20]MH_SAM_APDU [00:09:20]CAPDU: 80 13 02 00 [00:09:20]Write to MH i2c: E2 08 00 81 2B 80 13 02 00 00 00 00 00 2A [00:09:20]Write i2c OK [00:09:20]MH_I2C_Read... [00:09:21]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:09:21]Read from MH i2c: E2 [00:09:21]MH_I2C_Read... [00:09:21]Read from MH i2c: E2 FD 00 [00:09:21]MH_I2C_Read... [00:09:21]Read from MH i2c: E2 FD 00 81 2B 00 BD 04 AA 04 B9 04 6E 04 04 00 10 01 00 00 69 04 9F 00 6F 04 04 00 08 01 00 00 B1 04 04 00 50 B7 41 02 70 04 04 00 54 44 2F 01 72 04 04 00 FC 72 12 01 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 48 5D 3D 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 12 1D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 88 48 0C 70 04 03 00 88 48 0C 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 00 4E 01 EF 03 09 00 F6 03 01 00 00 F7 90 00 11 [00:09:21]RAPDU: BD 04 AA 04 B9 04 6E 04 04 00 10 01 00 00 69 04 9F 00 6F 04 04 00 08 01 00 00 B1 04 04 00 50 B7 41 02 70 04 04 00 54 44 2F 01 72 04 04 00 FC 72 12 01 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 48 5D 3D 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 12 1D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 88 48 0C 70 04 03 00 88 48 0C 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 00 4E 01 EF 03 09 00 F6 03 01 00 00 F7 90 00 [00:09:21]wFMCommunicate OK [00:09:21]wFMCommunicate request_size=4 [00:09:21]MH_SAM_APDU [00:09:21]CAPDU: 80 17 00 00 [00:09:21]Write to MH i2c: E2 08 00 82 2B 80 17 00 00 00 00 00 00 2D [00:09:21]Write i2c OK [00:09:21]MH_I2C_Read... [00:09:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:21]Read from MH i2c: E2 [00:09:21]MH_I2C_Read... [00:09:21]Read from MH i2c: E2 FD 00 [00:09:21]MH_I2C_Read... [00:09:21]Read from MH i2c: E2 FD 00 82 2B 00 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 C9 [00:09:21]RAPDU: 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 [00:09:21]wFMCommunicate OK [00:09:21]wFMCommunicate request_size=4 [00:09:21]MH_SAM_APDU [00:09:21]CAPDU: 80 17 00 00 [00:09:21]Write to MH i2c: E2 08 00 83 2B 80 17 00 00 00 00 00 00 2E [00:09:21]Write i2c OK [00:09:21]MH_I2C_Read... [00:09:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:21]Read from MH i2c: E2 [00:09:21]MH_I2C_Read... [00:09:21]Read from MH i2c: E2 FD 00 [00:09:21]MH_I2C_Read... [00:09:21]Read from MH i2c: E2 FD 00 83 2B 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 60 [00:09:21]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [00:09:21]wFMCommunicate OK [00:09:21]wFMCommunicate request_size=4 [00:09:21]MH_SAM_APDU [00:09:21]CAPDU: 80 17 00 00 [00:09:21]Write to MH i2c: E2 08 00 84 2B 80 17 00 00 00 00 00 00 2F [00:09:21]Write i2c OK [00:09:21]MH_I2C_Read... [00:09:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:22]Read from MH i2c: E2 [00:09:22]MH_I2C_Read... [00:09:22]Read from MH i2c: E2 FD 00 [00:09:22]MH_I2C_Read... [00:09:22]Read from MH i2c: E2 FD 00 84 2B 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 A6 [00:09:22]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:09:22]wFMCommunicate OK [00:09:22]wFMCommunicate request_size=4 [00:09:22]MH_SAM_APDU [00:09:22]CAPDU: 80 17 00 00 [00:09:22]Write to MH i2c: E2 08 00 85 2B 80 17 00 00 00 00 00 00 30 [00:09:22]Write i2c OK [00:09:22]MH_I2C_Read... [00:09:22]OFD Sender: No OFD packet to send [00:09:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [00:09:22]Read from MH i2c: E2 [00:09:22]MH_I2C_Read... [00:09:22]Read from MH i2c: E2 DA 00 [00:09:22]MH_I2C_Read... [00:09:22]Read from MH i2c: E2 DA 00 85 2B 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 11 [00:09:22]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:09:22]wFMCommunicate OK [00:09:22]SAM_PROTO_GetShiftData done [00:09:22]requested_item shift.sale.total_cash is exist - process it [00:09:22]requested_item shift.sale_refund.total is exist - process it [00:09:22]requested_item shift.sale_refund.total_cash is exist - process it [00:09:22]requested_item shift.buy.total is exist - process it [00:09:22]requested_item shift.buy.total_cash is exist - process it [00:09:22]produce_requested_data done [00:09:22]produce_requested_data return {"fm.sale.total":148074417.00,"fm.sale_refund.total":9905231.00,"fm.buy.total":0.00,"shift.sale.total":378612.00,"shift.sale.total_cash":198749.00,"shift.sale_refund.total":8050.00,"shift.sale_refund.total_cash":8050.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:09:22]process_action_free get_value [00:09:22]json_value_free [00:09:22]json_value_free done [00:09:22]process_json_proto returns [00:09:22]Send response to host [00:09:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":148074417.00,"fm.sale_refund.total":9905231.00,"fm.buy.total":0.00,"shift.sale.total":378612.00,"shift.sale.total_cash":198749.00,"shift.sale_refund.total":8050.00,"shift.sale_refund.total_cash":8050.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:09:22]free response buf [00:09:22]execute_script done [00:09:22]execute_script returns [00:09:22]free content buf [00:09:22]Sock 7.Close socket [00:09:22]Sock 7.Thread stoped [00:09:22]accept exits with 9 [00:09:22]New connection [00:09:22]New thread 3067096420 created [00:09:22]Thread 3066953060 joined [00:09:22]Waiting for new connection... [00:09:22] Sock 9.Parse request [00:09:22]Sock 9.Check first char [00:09:22]Sock 9.First char is OK [00:09:22]request: POST /json_proto HTTP/1.0 [00:09:22]Method: POST [00:09:22]URL: /json_proto [00:09:22]Method is POST - this is cgi request [00:09:22]url: /json_proto [00:09:22]query_string will be loaded in cgi processing [00:09:22]execute_cgi json_proto POST (null) [00:09:22]execute_cgi path=json_proto method=POST [00:09:22]POST find Content-Length [00:09:22]Host: 172.17.45.7:8080 [00:09:22]Content-Length: 253 [00:09:22]Content-Type: application/json [00:09:22] [00:09:22]POST finish read [00:09:22]Found Content-Length = 253 [00:09:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:22]execute_script... [00:09:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:22]POST & json_proto [00:09:22]process_json_proto [00:09:22]json parsed OK: [00:09:22]protocol is kg_v1.0 [00:09:22]action value=open_shift [00:09:22]process_action open_shift [00:09:22]cmd_open_shift [00:09:22]MH_GetDate [00:09:22]Write to MH i2c: F0 00 00 86 2B A0 [00:09:22]Write i2c OK [00:09:22]MH_I2C_Read... [00:09:22]Read from MH i2c: F0 [00:09:22]MH_I2C_Read... [00:09:22]Read from MH i2c: F0 09 00 [00:09:22]MH_I2C_Read... [00:09:22]Read from MH i2c: F0 09 00 86 2B 00 34 8C A5 66 90 0F 3E 66 B7 [00:09:22]GetLastDocTimeStamp 1722124300 [00:09:22]current date 1722125364 [00:09:22]FM_GetShiftState [00:09:22]SAM_PROTO_GetShiftState [00:09:22]wFMCommunicate request_size=4 [00:09:22]MH_SAM_APDU [00:09:22]CAPDU: 80 13 01 00 [00:09:22]Write to MH i2c: E2 08 00 87 2B 80 13 01 00 00 00 00 00 2F [00:09:22]Write i2c OK [00:09:22]MH_I2C_Read... [00:09:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:22]Read from MH i2c: E2 [00:09:22]MH_I2C_Read... [00:09:22]Read from MH i2c: E2 0E 00 [00:09:22]MH_I2C_Read... [00:09:22]Read from MH i2c: E2 0E 00 87 2B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 3A [00:09:22]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:09:22]wFMCommunicate OK [00:09:22]SAM_PROTO_GetShiftState done [00:09:22]FM_GetShiftState done [00:09:22]KKMCreateOpenShiftDocument [00:09:22]Load OK [00:09:22]Malloc new data [00:09:22]MH_GetDate [00:09:22]Write to MH i2c: F0 00 00 88 2B A2 [00:09:22]Write i2c OK [00:09:22]MH_I2C_Read... [00:09:22]Read from MH i2c: F0 [00:09:22]MH_I2C_Read... [00:09:22]Read from MH i2c: F0 09 00 [00:09:22]MH_I2C_Read... [00:09:22]Read from MH i2c: F0 09 00 88 2B 00 34 8C A5 66 90 0F 3E 66 B9 [00:09:22]Malloc new data [00:09:22]KKMCreateOpenShiftDocument OK [00:09:22]KKMSetOpenShiftData OK [00:09:22]ProcessDocumentItem done err = 0, tmpTLVsize=166 [00:09:22]tlvbuf is 01EDBB50 [00:09:22]KKMLoadAndSignOpenShiftData [00:09:22]SAM_PROTO_ProcessDocument [00:09:22]wFMCommunicate request_size=9 [00:09:22]MH_SAM_APDU [00:09:22]CAPDU: 80 15 01 00 04 02 00 A6 00 [00:09:22]Write to MH i2c: E2 0C 00 89 2B 80 15 01 00 04 00 02 00 A6 00 00 00 E3 [00:09:22]Write i2c OK [00:09:22]MH_I2C_Read... [00:09:22]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:09:22]Read from MH i2c: E2 [00:09:22]MH_I2C_Read... [00:09:22]Read from MH i2c: E2 03 00 [00:09:22]MH_I2C_Read... [00:09:22]Read from MH i2c: E2 03 00 89 2B 00 90 00 28 [00:09:22]RAPDU: 90 00 [00:09:22]wFMCommunicate OK [00:09:22]wFMCommunicate request_size=23 [00:09:22]MH_SAM_APDU [00:09:22]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:09:22]Write to MH i2c: E2 1A 00 8A 2B 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 2A [00:09:22]Write i2c OK [00:09:22]MH_I2C_Read... [00:09:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:09:22]Read from MH i2c: E2 [00:09:22]MH_I2C_Read... [00:09:22]Read from MH i2c: E2 03 00 [00:09:22]MH_I2C_Read... [00:09:22]Read from MH i2c: E2 03 00 8A 2B 00 90 00 29 [00:09:22]RAPDU: 90 00 [00:09:22]wFMCommunicate OK [00:09:22]wFMCommunicate request_size=28 [00:09:22]MH_SAM_APDU [00:09:22]CAPDU: 80 15 02 00 17 FD 03 13 00 D0 A5 D0 BE D1 88 D0 B8 D0 BC D0 BE D0 B2 20 D0 97 2E 20 [00:09:22]Write to MH i2c: E2 1F 00 8B 2B 80 15 02 00 17 00 FD 03 13 00 D0 A5 D0 BE D1 88 D0 B8 D0 BC D0 BE D0 B2 20 D0 97 2E 20 00 00 CC [00:09:22]Write i2c OK [00:09:22]MH_I2C_Read... [00:09:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:09:22]Read from MH i2c: E2 [00:09:22]MH_I2C_Read... [00:09:22]Read from MH i2c: E2 03 00 [00:09:22]MH_I2C_Read... [00:09:22]Read from MH i2c: E2 03 00 8B 2B 00 90 00 2A [00:09:22]RAPDU: 90 00 [00:09:22]wFMCommunicate OK [00:09:22]wFMCommunicate request_size=56 [00:09:22]MH_SAM_APDU [00:09:22]CAPDU: 80 15 02 00 33 F1 03 2F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 9E D1 80 D0 B3 D0 BE 2C 20 34 30 2E 32 30 30 37 35 32 2C 20 37 31 2E 36 30 37 34 38 36 [00:09:22]Write to MH i2c: E2 3B 00 8C 2B 80 15 02 00 33 00 F1 03 2F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 9E D1 80 D0 B3 D0 BE 2C 20 34 30 2E 32 30 30 37 35 32 2C 20 37 31 2E 36 30 37 34 38 36 00 00 EC [00:09:22]Write i2c OK [00:09:22]MH_I2C_Read... [00:09:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:09:22]Read from MH i2c: E2 [00:09:22]MH_I2C_Read... [00:09:22]Read from MH i2c: E2 03 00 [00:09:22]MH_I2C_Read... [00:09:22]Read from MH i2c: E2 03 00 8C 2B 00 90 00 2B [00:09:22]RAPDU: 90 00 [00:09:22]wFMCommunicate OK [00:09:22]wFMCommunicate request_size=51 [00:09:22]MH_SAM_APDU [00:09:22]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 34 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:09:22]Write to MH i2c: E2 36 00 8D 2B 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 34 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 E2 [00:09:22]Write i2c OK [00:09:22]MH_I2C_Read... [00:09:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:09:23]Read from MH i2c: E2 [00:09:23]MH_I2C_Read... [00:09:23]Read from MH i2c: E2 03 00 [00:09:23]MH_I2C_Read... [00:09:23]Read from MH i2c: E2 03 00 8D 2B 00 90 00 2C [00:09:23]RAPDU: 90 00 [00:09:23]wFMCommunicate OK [00:09:23]wFMCommunicate request_size=13 [00:09:23]MH_SAM_APDU [00:09:23]CAPDU: 80 15 02 00 08 F4 03 04 00 34 8C A5 66 [00:09:23]Write to MH i2c: E2 10 00 8E 2B 80 15 02 00 08 00 F4 03 04 00 34 8C A5 66 00 00 0F [00:09:23]Write i2c OK [00:09:23]MH_I2C_Read... [00:09:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:09:23]Read from MH i2c: E2 [00:09:23]MH_I2C_Read... [00:09:23]Read from MH i2c: E2 03 00 [00:09:23]MH_I2C_Read... [00:09:23]Read from MH i2c: E2 03 00 8E 2B 00 90 00 2D [00:09:23]RAPDU: 90 00 [00:09:23]wFMCommunicate OK [00:09:23]wFMCommunicate request_size=25 [00:09:23]MH_SAM_APDU [00:09:23]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 [00:09:23]Write to MH i2c: E2 1C 00 8F 2B 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 00 00 9A [00:09:23]Write i2c OK [00:09:23]MH_I2C_Read... [00:09:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:09:23]Read from MH i2c: E2 [00:09:23]MH_I2C_Read... [00:09:23]Read from MH i2c: E2 03 00 [00:09:23]MH_I2C_Read... [00:09:23]Read from MH i2c: E2 03 00 8F 2B 00 90 00 2E [00:09:23]RAPDU: 90 00 [00:09:23]wFMCommunicate OK [00:09:23]wFMCommunicate request_size=4 [00:09:23]MH_SAM_APDU [00:09:23]CAPDU: 80 15 03 00 [00:09:23]Write to MH i2c: E2 08 00 90 2B 80 15 03 00 00 00 00 00 3C [00:09:23]Write i2c OK [00:09:23]MH_I2C_Read... [00:09:23]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:09:23]Read from MH i2c: E2 [00:09:23]MH_I2C_Read... [00:09:23]Read from MH i2c: E2 38 00 [00:09:23]MH_I2C_Read... [00:09:23]Read from MH i2c: E2 38 00 90 2B 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3B CE 01 00 0E 04 04 00 B1 01 00 00 35 04 06 00 4D 33 36 82 C7 5F 90 00 2A [00:09:23]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3B CE 01 00 0E 04 04 00 B1 01 00 00 35 04 06 00 4D 33 36 82 C7 5F 90 00 [00:09:23]wFMCommunicate OK [00:09:23]SAM_PROTO_ProcessDocument answer len = 51 [00:09:23]SAM_PROTO_ProcessDocument done [00:09:23]SetTLVBufToDocument [00:09:23]Processing tag 1209 (04B9) [00:09:23]Malloc new data [00:09:23]Processing tag 1041 (0411) [00:09:23]Processing tag 1040 (0410) [00:09:23]Malloc new data [00:09:23]Processing tag 1038 (040E) [00:09:23]Malloc new data [00:09:23]Processing tag 1077 (0435) [00:09:23]Malloc new data [00:09:23]SetTLVBufToDocument err=0 [00:09:23]KKMLoadAndSignOpenShiftData store KKM data [00:09:23]KKMLoadAndSignOpenShiftData err=0 [00:09:23]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Хошимов З. Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 Место: АЗС № 134 "Партнер Нефть" 28.07.2024 00:09 Смена: 433 РНМ: 0000000000092660 ЗНМ: 0300000044 ФД: 118331 ФМ: 0000000000874939 ФПД: 84882353211231 [00:09:23]StoreToDocumentArchive [00:09:23]shift 433 fd 118331 [00:09:23]Create dir for shift 0433 [00:09:23]save to /storage/0433/doc_00118331 [00:09:23]save last doc name /storage/0433/doc_00118331 to /storage/kkm_last_doc_name [00:09:23]save OK [00:09:23]Clear old archive folders... [00:09:23]Remove dir /storage/0432 [00:09:23]opendir ok [00:09:23]file . [00:09:23]file .. [00:09:23]file doc_00118057 [00:09:23]remove file /storage/0432/doc_00118057 [00:09:23]file doc_00118058 [00:09:23]remove file /storage/0432/doc_00118058 [00:09:23]file doc_00118059 [00:09:23]remove file /storage/0432/doc_00118059 [00:09:23]file doc_00118060 [00:09:23]remove file /storage/0432/doc_00118060 [00:09:23]file doc_00118061 [00:09:23]remove file /storage/0432/doc_00118061 [00:09:23]file doc_00118062 [00:09:23]remove file /storage/0432/doc_00118062 [00:09:23]file doc_00118063 [00:09:23]remove file /storage/0432/doc_00118063 [00:09:23]file doc_00118064 [00:09:23]remove file /storage/0432/doc_00118064 [00:09:23]file doc_00118065 [00:09:23]remove file /storage/0432/doc_00118065 [00:09:23]file doc_00118066 [00:09:23]remove file /storage/0432/doc_00118066 [00:09:23]file doc_00118067 [00:09:23]remove file /storage/0432/doc_00118067 [00:09:23]file doc_00118068 [00:09:23]remove file /storage/0432/doc_00118068 [00:09:23]file doc_00118069 [00:09:23]remove file /storage/0432/doc_00118069 [00:09:23]file doc_00118070 [00:09:23]remove file /storage/0432/doc_00118070 [00:09:23]file doc_00118071 [00:09:23]remove file /storage/0432/doc_00118071 [00:09:23]file doc_00118072 [00:09:23]remove file /storage/0432/doc_00118072 [00:09:23]file doc_00118073 [00:09:23]remove file /storage/0432/doc_00118073 [00:09:23]file doc_00118074 [00:09:23]remove file /storage/0432/doc_00118074 [00:09:23]file doc_00118075 [00:09:23]remove file /storage/0432/doc_00118075 [00:09:23]file doc_00118076 [00:09:23]remove file /storage/0432/doc_00118076 [00:09:23]file doc_00118077 [00:09:23]remove file /storage/0432/doc_00118077 [00:09:23]file doc_00118078 [00:09:23]remove file /storage/0432/doc_00118078 [00:09:23]file doc_00118079 [00:09:23]remove file /storage/0432/doc_00118079 [00:09:23]file doc_00118080 [00:09:23]remove file /storage/0432/doc_00118080 [00:09:23]file doc_00118081 [00:09:23]remove file /storage/0432/doc_00118081 [00:09:23]file doc_00118082 [00:09:23]remove file /storage/0432/doc_00118082 [00:09:23]file doc_00118083 [00:09:23]remove file /storage/0432/doc_00118083 [00:09:23]file doc_00118084 [00:09:23]remove file /storage/0432/doc_00118084 [00:09:23]file doc_00118085 [00:09:23]remove file /storage/0432/doc_00118085 [00:09:23]file doc_00118086 [00:09:23]remove file /storage/0432/doc_00118086 [00:09:23]file doc_00118087 [00:09:23]remove file /storage/0432/doc_00118087 [00:09:23]file doc_00118088 [00:09:23]remove file /storage/0432/doc_00118088 [00:09:23]file doc_00118089 [00:09:23]remove file /storage/0432/doc_00118089 [00:09:23]file doc_00118090 [00:09:23]remove file /storage/0432/doc_00118090 [00:09:23]file doc_00118091 [00:09:23]remove file /storage/0432/doc_00118091 [00:09:23]file doc_00118092 [00:09:23]remove file /storage/0432/doc_00118092 [00:09:23]file doc_00118093 [00:09:23]remove file /storage/0432/doc_00118093 [00:09:23]file doc_00118094 [00:09:23]remove file /storage/0432/doc_00118094 [00:09:23]file doc_00118095 [00:09:23]remove file /storage/0432/doc_00118095 [00:09:23]file doc_00118096 [00:09:23]remove file /storage/0432/doc_00118096 [00:09:23]file doc_00118097 [00:09:23]remove file /storage/0432/doc_00118097 [00:09:23]file doc_00118098 [00:09:23]remove file /storage/0432/doc_00118098 [00:09:23]file doc_00118099 [00:09:23]remove file /storage/0432/doc_00118099 [00:09:23]file doc_00118100 [00:09:23]remove file /storage/0432/doc_00118100 [00:09:23]file doc_00118101 [00:09:23]remove file /storage/0432/doc_00118101 [00:09:23]file doc_00118102 [00:09:23]remove file /storage/0432/doc_00118102 [00:09:23]file doc_00118103 [00:09:23]remove file /storage/0432/doc_00118103 [00:09:23]file doc_00118104 [00:09:23]remove file /storage/0432/doc_00118104 [00:09:23]file doc_00118105 [00:09:23]remove file /storage/0432/doc_00118105 [00:09:23]file doc_00118106 [00:09:23]remove file /storage/0432/doc_00118106 [00:09:23]file doc_00118107 [00:09:23]remove file /storage/0432/doc_00118107 [00:09:23]file doc_00118108 [00:09:23]remove file /storage/0432/doc_00118108 [00:09:23]file doc_00118109 [00:09:23]remove file /storage/0432/doc_00118109 [00:09:23]file doc_00118110 [00:09:23]remove file /storage/0432/doc_00118110 [00:09:23]file doc_00118111 [00:09:23]remove file /storage/0432/doc_00118111 [00:09:23]file doc_00118112 [00:09:23]remove file /storage/0432/doc_00118112 [00:09:23]file doc_00118113 [00:09:23]remove file /storage/0432/doc_00118113 [00:09:23]file doc_00118114 [00:09:23]remove file /storage/0432/doc_00118114 [00:09:23]file doc_00118115 [00:09:23]remove file /storage/0432/doc_00118115 [00:09:23]file doc_00118116 [00:09:23]remove file /storage/0432/doc_00118116 [00:09:23]file doc_00118117 [00:09:23]remove file /storage/0432/doc_00118117 [00:09:23]file doc_00118118 [00:09:23]remove file /storage/0432/doc_00118118 [00:09:23]file doc_00118119 [00:09:23]remove file /storage/0432/doc_00118119 [00:09:23]file doc_00118120 [00:09:23]remove file /storage/0432/doc_00118120 [00:09:23]file doc_00118121 [00:09:23]remove file /storage/0432/doc_00118121 [00:09:23]file doc_00118122 [00:09:23]remove file /storage/0432/doc_00118122 [00:09:23]file doc_00118123 [00:09:23]remove file /storage/0432/doc_00118123 [00:09:23]file doc_00118124 [00:09:23]remove file /storage/0432/doc_00118124 [00:09:23]file doc_00118125 [00:09:23]remove file /storage/0432/doc_00118125 [00:09:23]file doc_00118126 [00:09:23]remove file /storage/0432/doc_00118126 [00:09:23]file doc_00118127 [00:09:23]remove file /storage/0432/doc_00118127 [00:09:23]file doc_00118128 [00:09:23]remove file /storage/0432/doc_00118128 [00:09:23]file doc_00118129 [00:09:23]remove file /storage/0432/doc_00118129 [00:09:23]file doc_00118130 [00:09:23]remove file /storage/0432/doc_00118130 [00:09:23]file doc_00118131 [00:09:23]remove file /storage/0432/doc_00118131 [00:09:23]file doc_00118132 [00:09:23]remove file /storage/0432/doc_00118132 [00:09:23]file doc_00118133 [00:09:23]remove file /storage/0432/doc_00118133 [00:09:23]file doc_00118134 [00:09:23]remove file /storage/0432/doc_00118134 [00:09:23]file doc_00118135 [00:09:23]remove file /storage/0432/doc_00118135 [00:09:23]file doc_00118136 [00:09:23]remove file /storage/0432/doc_00118136 [00:09:23]file doc_00118137 [00:09:23]remove file /storage/0432/doc_00118137 [00:09:23]file doc_00118138 [00:09:23]remove file /storage/0432/doc_00118138 [00:09:23]file doc_00118139 [00:09:23]remove file /storage/0432/doc_00118139 [00:09:23]file doc_00118140 [00:09:23]remove file /storage/0432/doc_00118140 [00:09:23]file doc_00118141 [00:09:23]remove file /storage/0432/doc_00118141 [00:09:23]file doc_00118142 [00:09:23]remove file /storage/0432/doc_00118142 [00:09:23]file doc_00118143 [00:09:23]remove file /storage/0432/doc_00118143 [00:09:23]file doc_00118144 [00:09:24]remove file /storage/0432/doc_00118144 [00:09:24]file doc_00118145 [00:09:24]remove file /storage/0432/doc_00118145 [00:09:24]file doc_00118146 [00:09:24]remove file /storage/0432/doc_00118146 [00:09:24]file doc_00118147 [00:09:24]remove file /storage/0432/doc_00118147 [00:09:24]file doc_00118148 [00:09:24]remove file /storage/0432/doc_00118148 [00:09:24]file doc_00118149 [00:09:24]remove file /storage/0432/doc_00118149 [00:09:24]file doc_00118150 [00:09:24]remove file /storage/0432/doc_00118150 [00:09:24]file doc_00118151 [00:09:24]remove file /storage/0432/doc_00118151 [00:09:24]file doc_00118152 [00:09:24]remove file /storage/0432/doc_00118152 [00:09:24]file doc_00118153 [00:09:24]remove file /storage/0432/doc_00118153 [00:09:24]file doc_00118154 [00:09:24]remove file /storage/0432/doc_00118154 [00:09:24]file doc_00118155 [00:09:24]remove file /storage/0432/doc_00118155 [00:09:24]file doc_00118156 [00:09:24]remove file /storage/0432/doc_00118156 [00:09:24]file doc_00118157 [00:09:24]remove file /storage/0432/doc_00118157 [00:09:24]file doc_00118158 [00:09:24]remove file /storage/0432/doc_00118158 [00:09:24]file doc_00118159 [00:09:24]remove file /storage/0432/doc_00118159 [00:09:24]file doc_00118160 [00:09:24]remove file /storage/0432/doc_00118160 [00:09:24]file doc_00118161 [00:09:24]remove file /storage/0432/doc_00118161 [00:09:24]file doc_00118162 [00:09:24]remove file /storage/0432/doc_00118162 [00:09:24]file doc_00118163 [00:09:24]remove file /storage/0432/doc_00118163 [00:09:24]file doc_00118164 [00:09:24]remove file /storage/0432/doc_00118164 [00:09:24]file doc_00118165 [00:09:24]remove file /storage/0432/doc_00118165 [00:09:24]file doc_00118166 [00:09:24]remove file /storage/0432/doc_00118166 [00:09:24]file doc_00118167 [00:09:24]remove file /storage/0432/doc_00118167 [00:09:24]file doc_00118168 [00:09:24]remove file /storage/0432/doc_00118168 [00:09:24]file doc_00118169 [00:09:24]remove file /storage/0432/doc_00118169 [00:09:24]file doc_00118170 [00:09:24]remove file /storage/0432/doc_00118170 [00:09:24]file doc_00118171 [00:09:24]remove file /storage/0432/doc_00118171 [00:09:24]file doc_00118172 [00:09:24]remove file /storage/0432/doc_00118172 [00:09:24]file doc_00118173 [00:09:24]remove file /storage/0432/doc_00118173 [00:09:24]file doc_00118174 [00:09:24]remove file /storage/0432/doc_00118174 [00:09:24]file doc_00118175 [00:09:24]remove file /storage/0432/doc_00118175 [00:09:24]file doc_00118176 [00:09:24]remove file /storage/0432/doc_00118176 [00:09:24]file doc_00118177 [00:09:24]remove file /storage/0432/doc_00118177 [00:09:24]file doc_00118178 [00:09:24]remove file /storage/0432/doc_00118178 [00:09:24]file doc_00118179 [00:09:24]remove file /storage/0432/doc_00118179 [00:09:24]file doc_00118180 [00:09:24]remove file /storage/0432/doc_00118180 [00:09:24]file doc_00118181 [00:09:24]remove file /storage/0432/doc_00118181 [00:09:24]file doc_00118182 [00:09:24]remove file /storage/0432/doc_00118182 [00:09:24]file doc_00118183 [00:09:24]remove file /storage/0432/doc_00118183 [00:09:24]file doc_00118184 [00:09:24]remove file /storage/0432/doc_00118184 [00:09:24]file doc_00118185 [00:09:24]remove file /storage/0432/doc_00118185 [00:09:24]file doc_00118186 [00:09:24]remove file /storage/0432/doc_00118186 [00:09:24]file doc_00118187 [00:09:24]remove file /storage/0432/doc_00118187 [00:09:24]file doc_00118188 [00:09:24]remove file /storage/0432/doc_00118188 [00:09:24]file doc_00118189 [00:09:24]remove file /storage/0432/doc_00118189 [00:09:24]file doc_00118190 [00:09:24]remove file /storage/0432/doc_00118190 [00:09:24]file doc_00118191 [00:09:24]remove file /storage/0432/doc_00118191 [00:09:24]file doc_00118192 [00:09:24]remove file /storage/0432/doc_00118192 [00:09:24]file doc_00118193 [00:09:24]remove file /storage/0432/doc_00118193 [00:09:24]file doc_00118194 [00:09:24]remove file /storage/0432/doc_00118194 [00:09:24]file doc_00118195 [00:09:24]remove file /storage/0432/doc_00118195 [00:09:24]file doc_00118196 [00:09:24]remove file /storage/0432/doc_00118196 [00:09:24]file doc_00118197 [00:09:24]remove file /storage/0432/doc_00118197 [00:09:24]file doc_00118198 [00:09:24]remove file /storage/0432/doc_00118198 [00:09:24]file doc_00118199 [00:09:24]remove file /storage/0432/doc_00118199 [00:09:24]file doc_00118200 [00:09:24]remove file /storage/0432/doc_00118200 [00:09:24]file doc_00118201 [00:09:24]remove file /storage/0432/doc_00118201 [00:09:24]file doc_00118202 [00:09:24]remove file /storage/0432/doc_00118202 [00:09:24]file doc_00118203 [00:09:24]remove file /storage/0432/doc_00118203 [00:09:24]file doc_00118204 [00:09:24]remove file /storage/0432/doc_00118204 [00:09:24]file doc_00118205 [00:09:24]remove file /storage/0432/doc_00118205 [00:09:24]file doc_00118206 [00:09:24]remove file /storage/0432/doc_00118206 [00:09:24]file doc_00118207 [00:09:24]remove file /storage/0432/doc_00118207 [00:09:24]file doc_00118208 [00:09:24]remove file /storage/0432/doc_00118208 [00:09:24]file doc_00118209 [00:09:24]remove file /storage/0432/doc_00118209 [00:09:24]file doc_00118210 [00:09:24]remove file /storage/0432/doc_00118210 [00:09:24]file doc_00118211 [00:09:24]remove file /storage/0432/doc_00118211 [00:09:24]file doc_00118212 [00:09:24]remove file /storage/0432/doc_00118212 [00:09:24]file doc_00118213 [00:09:24]remove file /storage/0432/doc_00118213 [00:09:24]file doc_00118214 [00:09:24]remove file /storage/0432/doc_00118214 [00:09:24]file doc_00118215 [00:09:24]remove file /storage/0432/doc_00118215 [00:09:24]file doc_00118216 [00:09:24]remove file /storage/0432/doc_00118216 [00:09:24]file doc_00118217 [00:09:24]remove file /storage/0432/doc_00118217 [00:09:24]file doc_00118218 [00:09:24]remove file /storage/0432/doc_00118218 [00:09:24]file doc_00118219 [00:09:24]remove file /storage/0432/doc_00118219 [00:09:24]file doc_00118220 [00:09:24]remove file /storage/0432/doc_00118220 [00:09:24]file doc_00118221 [00:09:24]remove file /storage/0432/doc_00118221 [00:09:24]file doc_00118222 [00:09:24]remove file /storage/0432/doc_00118222 [00:09:24]file doc_00118223 [00:09:24]remove file /storage/0432/doc_00118223 [00:09:24]file doc_00118224 [00:09:24]remove file /storage/0432/doc_00118224 [00:09:24]file doc_00118225 [00:09:24]remove file /storage/0432/doc_00118225 [00:09:24]file doc_00118226 [00:09:24]remove file /storage/0432/doc_00118226 [00:09:24]file doc_00118227 [00:09:24]remove file /storage/0432/doc_00118227 [00:09:24]file doc_00118228 [00:09:24]remove file /storage/0432/doc_00118228 [00:09:24]file doc_00118229 [00:09:24]remove file /storage/0432/doc_00118229 [00:09:24]file doc_00118230 [00:09:24]remove file /storage/0432/doc_00118230 [00:09:24]file doc_00118231 [00:09:24]remove file /storage/0432/doc_00118231 [00:09:24]file doc_00118232 [00:09:24]remove file /storage/0432/doc_00118232 [00:09:24]file doc_00118233 [00:09:24]remove file /storage/0432/doc_00118233 [00:09:24]file doc_00118234 [00:09:24]remove file /storage/0432/doc_00118234 [00:09:24]file doc_00118235 [00:09:24]remove file /storage/0432/doc_00118235 [00:09:24]file doc_00118236 [00:09:24]remove file /storage/0432/doc_00118236 [00:09:24]file doc_00118237 [00:09:24]remove file /storage/0432/doc_00118237 [00:09:24]file doc_00118238 [00:09:24]remove file /storage/0432/doc_00118238 [00:09:24]file doc_00118239 [00:09:24]remove file /storage/0432/doc_00118239 [00:09:24]file doc_00118240 [00:09:24]remove file /storage/0432/doc_00118240 [00:09:24]file doc_00118241 [00:09:24]remove file /storage/0432/doc_00118241 [00:09:24]file doc_00118242 [00:09:24]remove file /storage/0432/doc_00118242 [00:09:24]file doc_00118243 [00:09:24]remove file /storage/0432/doc_00118243 [00:09:24]file doc_00118244 [00:09:24]remove file /storage/0432/doc_00118244 [00:09:24]file doc_00118245 [00:09:24]remove file /storage/0432/doc_00118245 [00:09:24]file doc_00118246 [00:09:24]remove file /storage/0432/doc_00118246 [00:09:24]file doc_00118247 [00:09:24]remove file /storage/0432/doc_00118247 [00:09:24]file doc_00118248 [00:09:24]remove file /storage/0432/doc_00118248 [00:09:24]file doc_00118249 [00:09:24]remove file /storage/0432/doc_00118249 [00:09:24]file doc_00118250 [00:09:24]remove file /storage/0432/doc_00118250 [00:09:24]file doc_00118251 [00:09:24]remove file /storage/0432/doc_00118251 [00:09:24]file doc_00118252 [00:09:24]remove file /storage/0432/doc_00118252 [00:09:24]file doc_00118253 [00:09:24]remove file /storage/0432/doc_00118253 [00:09:24]file doc_00118254 [00:09:24]remove file /storage/0432/doc_00118254 [00:09:24]file doc_00118255 [00:09:24]remove file /storage/0432/doc_00118255 [00:09:24]file doc_00118256 [00:09:24]remove file /storage/0432/doc_00118256 [00:09:24]file doc_00118257 [00:09:24]remove file /storage/0432/doc_00118257 [00:09:24]file doc_00118258 [00:09:24]remove file /storage/0432/doc_00118258 [00:09:24]file doc_00118259 [00:09:24]remove file /storage/0432/doc_00118259 [00:09:24]file doc_00118260 [00:09:24]remove file /storage/0432/doc_00118260 [00:09:24]file doc_00118261 [00:09:24]remove file /storage/0432/doc_00118261 [00:09:24]file doc_00118262 [00:09:24]remove file /storage/0432/doc_00118262 [00:09:24]file doc_00118263 [00:09:24]remove file /storage/0432/doc_00118263 [00:09:24]file doc_00118264 [00:09:24]remove file /storage/0432/doc_00118264 [00:09:24]file doc_00118265 [00:09:24]remove file /storage/0432/doc_00118265 [00:09:24]file doc_00118266 [00:09:24]remove file /storage/0432/doc_00118266 [00:09:24]file doc_00118267 [00:09:24]remove file /storage/0432/doc_00118267 [00:09:24]file doc_00118268 [00:09:24]remove file /storage/0432/doc_00118268 [00:09:24]file doc_00118269 [00:09:24]remove file /storage/0432/doc_00118269 [00:09:24]file doc_00118270 [00:09:24]remove file /storage/0432/doc_00118270 [00:09:24]file doc_00118271 [00:09:24]remove file /storage/0432/doc_00118271 [00:09:24]file doc_00118272 [00:09:24]remove file /storage/0432/doc_00118272 [00:09:24]file doc_00118273 [00:09:24]remove file /storage/0432/doc_00118273 [00:09:24]file doc_00118274 [00:09:24]remove file /storage/0432/doc_00118274 [00:09:24]file doc_00118275 [00:09:24]remove file /storage/0432/doc_00118275 [00:09:24]file doc_00118276 [00:09:24]remove file /storage/0432/doc_00118276 [00:09:24]file doc_00118277 [00:09:24]remove file /storage/0432/doc_00118277 [00:09:24]file doc_00118278 [00:09:24]remove file /storage/0432/doc_00118278 [00:09:24]file doc_00118279 [00:09:24]remove file /storage/0432/doc_00118279 [00:09:24]file doc_00118280 [00:09:24]remove file /storage/0432/doc_00118280 [00:09:24]file doc_00118281 [00:09:24]remove file /storage/0432/doc_00118281 [00:09:24]file doc_00118282 [00:09:24]remove file /storage/0432/doc_00118282 [00:09:24]file doc_00118283 [00:09:24]remove file /storage/0432/doc_00118283 [00:09:24]file doc_00118284 [00:09:24]remove file /storage/0432/doc_00118284 [00:09:24]file doc_00118285 [00:09:24]remove file /storage/0432/doc_00118285 [00:09:24]file doc_00118286 [00:09:24]remove file /storage/0432/doc_00118286 [00:09:24]file doc_00118287 [00:09:24]remove file /storage/0432/doc_00118287 [00:09:24]file doc_00118288 [00:09:24]remove file /storage/0432/doc_00118288 [00:09:24]file doc_00118289 [00:09:24]remove file /storage/0432/doc_00118289 [00:09:24]file doc_00118290 [00:09:24]remove file /storage/0432/doc_00118290 [00:09:24]file doc_00118291 [00:09:24]remove file /storage/0432/doc_00118291 [00:09:24]file doc_00118292 [00:09:24]remove file /storage/0432/doc_00118292 [00:09:24]file doc_00118293 [00:09:24]remove file /storage/0432/doc_00118293 [00:09:24]file doc_00118294 [00:09:24]remove file /storage/0432/doc_00118294 [00:09:24]file doc_00118295 [00:09:24]remove file /storage/0432/doc_00118295 [00:09:24]file doc_00118296 [00:09:24]remove file /storage/0432/doc_00118296 [00:09:24]file doc_00118297 [00:09:24]remove file /storage/0432/doc_00118297 [00:09:24]file doc_00118298 [00:09:24]remove file /storage/0432/doc_00118298 [00:09:24]file doc_00118299 [00:09:24]remove file /storage/0432/doc_00118299 [00:09:24]file doc_00118300 [00:09:24]remove file /storage/0432/doc_00118300 [00:09:24]file doc_00118301 [00:09:24]remove file /storage/0432/doc_00118301 [00:09:24]file doc_00118302 [00:09:24]remove file /storage/0432/doc_00118302 [00:09:24]file doc_00118303 [00:09:24]remove file /storage/0432/doc_00118303 [00:09:24]file doc_00118304 [00:09:24]remove file /storage/0432/doc_00118304 [00:09:24]file doc_00118305 [00:09:24]remove file /storage/0432/doc_00118305 [00:09:24]file doc_00118306 [00:09:24]remove file /storage/0432/doc_00118306 [00:09:24]file doc_00118307 [00:09:24]remove file /storage/0432/doc_00118307 [00:09:24]file doc_00118308 [00:09:24]remove file /storage/0432/doc_00118308 [00:09:24]file doc_00118309 [00:09:24]remove file /storage/0432/doc_00118309 [00:09:24]file doc_00118310 [00:09:24]remove file /storage/0432/doc_00118310 [00:09:24]file doc_00118311 [00:09:24]remove file /storage/0432/doc_00118311 [00:09:24]file doc_00118312 [00:09:24]remove file /storage/0432/doc_00118312 [00:09:24]file doc_00118313 [00:09:24]remove file /storage/0432/doc_00118313 [00:09:24]file doc_00118314 [00:09:24]remove file /storage/0432/doc_00118314 [00:09:24]file doc_00118315 [00:09:24]remove file /storage/0432/doc_00118315 [00:09:24]file doc_00118316 [00:09:24]remove file /storage/0432/doc_00118316 [00:09:24]file doc_00118317 [00:09:24]remove file /storage/0432/doc_00118317 [00:09:24]file doc_00118318 [00:09:24]remove file /storage/0432/doc_00118318 [00:09:24]file doc_00118319 [00:09:24]remove file /storage/0432/doc_00118319 [00:09:24]file doc_00118320 [00:09:24]remove file /storage/0432/doc_00118320 [00:09:24]file doc_00118321 [00:09:24]remove file /storage/0432/doc_00118321 [00:09:24]file doc_00118322 [00:09:24]remove file /storage/0432/doc_00118322 [00:09:24]file doc_00118323 [00:09:24]remove file /storage/0432/doc_00118323 [00:09:24]file doc_00118324 [00:09:24]remove file /storage/0432/doc_00118324 [00:09:24]file doc_00118325 [00:09:24]remove file /storage/0432/doc_00118325 [00:09:24]file doc_00118326 [00:09:24]remove file /storage/0432/doc_00118326 [00:09:24]file doc_00118327 [00:09:24]remove file /storage/0432/doc_00118327 [00:09:24]file doc_00118328 [00:09:24]remove file /storage/0432/doc_00118328 [00:09:24]file doc_00118329 [00:09:24]remove file /storage/0432/doc_00118329 [00:09:24]file doc_00118330 [00:09:24]remove file /storage/0432/doc_00118330 [00:09:24]remove dir /storage/0432 [00:09:24]ProcessDocumentItem done err = 0, tmpTLVsize=217 [00:09:24]tlvbuf is 01F4F760 [00:09:24]SAM_PROTO_ClearQueue [00:09:24]wFMCommunicate request_size=4 [00:09:24]MH_SAM_APDU [00:09:24]CAPDU: 80 09 00 00 [00:09:24]Write to MH i2c: E2 08 00 91 2B 80 09 00 00 00 00 00 00 2E [00:09:24]Write i2c OK [00:09:24]MH_I2C_Read... [00:09:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:09:25]Read from MH i2c: E2 [00:09:25]MH_I2C_Read... [00:09:25]Read from MH i2c: E2 03 00 [00:09:25]MH_I2C_Read... [00:09:25]Read from MH i2c: E2 03 00 91 2B 00 90 00 30 [00:09:25]RAPDU: 90 00 [00:09:25]wFMCommunicate OK [00:09:25]SAM_PROTO_ClearQueue done [00:09:25]KKMCreateOFDPacket [00:09:25]OFDProtocolAddRootSTLVToBuf [00:09:25]FM_MakeSignedData [00:09:25]FM_MakeSignedData [00:09:25]SAM_PROTO_SignData [00:09:25]wFMCommunicate request_size=4 [00:09:25]MH_SAM_APDU [00:09:25]CAPDU: 80 0D 01 02 [00:09:25]Write to MH i2c: E2 08 00 92 2B 80 0D 01 02 00 00 00 00 36 [00:09:25]Write i2c OK [00:09:25]MH_I2C_Read... [00:09:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:09:25]Read from MH i2c: E2 [00:09:25]MH_I2C_Read... [00:09:25]Read from MH i2c: E2 03 00 [00:09:25]MH_I2C_Read... [00:09:25]Read from MH i2c: E2 03 00 92 2B 00 90 00 31 [00:09:25]RAPDU: 90 00 [00:09:25]wFMCommunicate OK [00:09:25]wFMCommunicate request_size=226 [00:09:25]MH_SAM_APDU [00:09:25]CAPDU: 80 0D 02 02 DD 02 00 D9 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 A5 D0 BE D1 88 D0 B8 D0 BC D0 BE D0 B2 20 D0 97 2E 20 F1 03 2F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 9E D1 80 D0 B3 D0 BE 2C 20 34 30 2E 32 30 30 37 35 32 2C 20 37 31 2E 36 30 37 34 38 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 34 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 34 8C A5 66 0E 04 04 00 B1 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3B CE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 4D 33 36 82 C7 5F [00:09:25]Write to MH i2c: E2 E5 00 93 2B 80 0D 02 02 DD 00 02 00 D9 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 A5 D0 BE D1 88 D0 B8 D0 BC D0 BE D0 B2 20 D0 97 2E 20 F1 03 2F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 9E D1 80 D0 B3 D0 BE 2C 20 34 30 2E 32 30 30 37 35 32 2C 20 37 31 2E 36 30 37 34 38 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 34 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 34 8C A5 66 0E 04 04 00 B1 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3B CE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 4D 33 36 82 C7 5F 00 00 34 [00:09:25]Write i2c OK [00:09:25]MH_I2C_Read... [00:09:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:25]Read from MH i2c: E2 [00:09:25]MH_I2C_Read... [00:09:25]Read from MH i2c: E2 03 00 [00:09:25]MH_I2C_Read... [00:09:25]Read from MH i2c: E2 03 00 93 2B 00 90 00 32 [00:09:25]RAPDU: 90 00 [00:09:25]wFMCommunicate OK [00:09:25]wFMCommunicate request_size=4 [00:09:25]MH_SAM_APDU [00:09:25]CAPDU: 80 0D 03 02 [00:09:25]Write to MH i2c: E2 08 00 94 2B 80 0D 03 02 00 00 00 00 3A [00:09:25]Write i2c OK [00:09:25]MH_I2C_Read... [00:09:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:09:25]Read from MH i2c: E2 [00:09:25]MH_I2C_Read... [00:09:25]Read from MH i2c: E2 0B 00 [00:09:25]MH_I2C_Read... [00:09:25]Read from MH i2c: E2 0B 00 94 2B 00 DF AD 5A DD CD 19 4D CC 90 00 FD [00:09:25]RAPDU: DF AD 5A DD CD 19 4D CC 90 00 [00:09:25]wFMCommunicate OK [00:09:25]SAM_PROTO_SignData done [00:09:25]FM_MakeSignedData done [00:09:25]CreateOFDProtocolMessage [00:09:25]wFMCommunicate request_size=4 [00:09:25]MH_SAM_APDU [00:09:25]CAPDU: 80 11 00 00 [00:09:25]Write to MH i2c: E2 08 00 95 2B 80 11 00 00 00 00 00 00 3A [00:09:25]Write i2c OK [00:09:25]MH_I2C_Read... [00:09:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:25]Read from MH i2c: E2 [00:09:25]MH_I2C_Read... [00:09:25]Read from MH i2c: E2 17 00 [00:09:25]MH_I2C_Read... [00:09:25]Read from MH i2c: E2 17 00 95 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 95 [00:09:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:09:25]wFMCommunicate OK [00:09:25]CreateOFDProtocolMessage done [00:09:25]OFDSenderStorePacket 118331 [00:09:25]StoreOFDPacket docnum=118331 [00:09:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 ED 00 00 00 2A D5 E5 00 81 A0 5A 02 01 00 02 00 D9 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 A5 D0 BE D1 88 D0 B8 D0 BC D0 BE D0 B2 20 D0 97 2E 20 F1 03 2F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 9E D1 80 D0 B3 D0 BE 2C 20 34 30 2E 32 30 30 37 35 32 2C 20 37 31 2E 36 30 37 34 38 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 34 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 34 8C A5 66 0E 04 04 00 B1 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3B CE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 4D 33 36 82 C7 5F DF AD 5A DD CD 19 4D CC [00:09:25]CheckFolder [00:09:25]dirname=/storage/ofd_packets [00:09:25]CheckFolder done [00:09:25]ProducePacketName [00:09:25]name=ofd_packets/00118331 [00:09:25]NVStorageSaveData ofd_packets/00118331 [00:09:25]File name is /storage/ofd_packets/00118331 [00:09:25]Write 267 bytes [00:09:25]NVStorageSaveData done [00:09:25]OFDSenderStorePacket done [00:09:25]KKMCreateOFDPacket done [00:09:25]NVStorageSaveData kkm_last_timestamp [00:09:25]File name is /storage/kkm_last_timestamp [00:09:25]Write 4 bytes [00:09:25]NVStorageSaveData done [00:09:25]ExternCall_PrintAddStr [00:09:25]wPrintStart [00:09:25]Write to MH i2c: 01 00 00 96 2B C1 [00:09:25]Write i2c OK [00:09:25]MH_I2C_Read... [00:09:25]Read from MH i2c: 01 [00:09:25]MH_I2C_Read... [00:09:25]Read from MH i2c: 01 07 00 [00:09:25]MH_I2C_Read... [00:09:25]Read from MH i2c: 01 07 00 96 2B 00 00 00 00 00 FF 0F D6 [00:09:25]RasterBufferAndPrint [00:09:25]line Отчет об открытии смены [00:09:25]line ФФД: 1.0 [00:09:25]line ИНН: 02508201610067 [00:09:25]line Кассир: Хошимов З. [00:09:25]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [00:09:25]line Место: АЗС № 134 "Партнер Нефть" [00:09:25]line 28.07.2024 00:09 [00:09:25]line Смена: 433 [00:09:25]line РНМ: 0000000000092660 [00:09:25]line ЗНМ: 0300000044 [00:09:25]line ФД: 118331 [00:09:25]line ФМ: 0000000000874939 [00:09:25]line ФПД: 84882353211231 [00:09:25]written 0, free lines is 4095 [00:09:25]OFD Sender: Processing packet 118331 [packets to send 86, broken 85] [00:09:25]ProducePacketName [00:09:25]name=ofd_packets/00118331 [00:09:25]OFD Sender: To server: pG, [00:09:25]CommunicateWithHost lk.salyk.kg:30040 [00:09:25]ConnectInit lk.salyk.kg [00:09:25]Connected sock=10 [00:09:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 ED 00 00 00 2A D5 E5 00 81 A0 5A 02 01 00 02 00 D9 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 A5 D0 BE D1 88 D0 B8 D0 BC D0 BE D0 B2 20 D0 97 2E 20 F1 03 2F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 9E D1 80 D0 B3 D0 BE 2C 20 34 30 2E 32 30 30 37 35 32 2C 20 37 31 2E 36 30 37 34 38 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 34 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 34 8C A5 66 0E 04 04 00 B1 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3B CE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 4D 33 36 82 C7 5F DF AD 5A DD CD 19 4D CC [00:09:25]Write to MH i2c: 01 00 00 A7 2B D2 [00:09:25]Write i2c OK [00:09:25]MH_I2C_Read... [00:09:25]Read from MH i2c: 01 [00:09:25]MH_I2C_Read... [00:09:25]Read from MH i2c: 01 07 00 [00:09:25]MH_I2C_Read... [00:09:25]Read from MH i2c: 01 07 00 A7 2B 00 00 00 00 00 21 0F 09 [00:09:25]RasterBufferAndPrint [00:09:25]line [00:09:25]line [00:09:25]line [00:09:25]line [00:09:25]line [00:09:25]written 0, free lines is 3919 [00:09:26]MH_Cut [00:09:26]Write to MH i2c: D1 01 00 AE 2B 01 AB [00:09:26]Write i2c OK [00:09:26]MH_I2C_Read... [00:09:26]Read from MH i2c: D1 [00:09:26]MH_I2C_Read... [00:09:26]Read from MH i2c: D1 01 00 [00:09:26]MH_I2C_Read... [00:09:26]Read from MH i2c: D1 01 00 AE 2B 00 AA [00:09:26]Write to MH i2c: 01 00 00 AF 2B DA [00:09:26]Write i2c OK [00:09:26]MH_I2C_Read... [00:09:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D6 3F 47 00 F1 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3B CE 01 00 F4 03 04 00 C7 39 A5 66 B6 04 01 00 00 C5 04 A1 5C E0 B5 56 FF [00:09:26]CommunicateWithHost err = 0 [00:09:26]CheckOFDResponse [00:09:26]1017 (14) - 77093643461234 [00:09:26]1041 (16) - 0000000000874939 [00:09:26]1040 (4) - 118331 [00:09:26]1012 (4) - 27.07.2024 18:17 [00:09:26]1206 (1) - 0 [00:09:26]OFD Sender: Remove packet 118331 [00:09:26]ProducePacketName [00:09:26]name=ofd_packets/00118331 [00:09:26]NVStorageDeleteData [00:09:26]*** Cut start [00:09:26]*** Partial cut [00:09:26]*** CUTSNS_PIN = 1 [00:09:26]*** CUTSNS_PIN = 0 [00:09:26]*** Brake cut motor [00:09:26]OFD Sender: No OFD packet to send [00:09:26]Read from MH i2c: 01 [00:09:26]MH_I2C_Read... [00:09:26]*** Stop cut motor [00:09:26]*** Cut end [00:09:26]Read from MH i2c: 01 07 00 [00:09:26]MH_I2C_Read... [00:09:26]Read from MH i2c: 01 07 00 AF 2B 00 00 00 00 00 FF 0F EF [00:09:26]process_action open_shift done [00:09:26]requested_data is exist [00:09:26]produce_requested_data [00:09:26]requested_item fd.num is exist - process it [00:09:26]SAM_PROTO_GetFieldsCounters [00:09:26]wFMCommunicate request_size=4 [00:09:26]MH_SAM_APDU [00:09:26]CAPDU: 80 13 00 00 [00:09:26]Write to MH i2c: E2 08 00 B0 2B 80 13 00 00 00 00 00 00 57 [00:09:26]Write i2c OK [00:09:26]MH_I2C_Read... [00:09:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:09:27]Read from MH i2c: E2 [00:09:27]MH_I2C_Read... [00:09:27]Read from MH i2c: E2 62 00 [00:09:27]MH_I2C_Read... [00:09:27]Read from MH i2c: E2 62 00 B0 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3B CE 01 00 0E 04 04 00 B1 01 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 3A [00:09:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3B CE 01 00 0E 04 04 00 B1 01 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:09:27]wFMCommunicate OK [00:09:27]SAM_PROTO_GetFieldsCounters done [00:09:27]requested_item shift.num is exist - process it [00:09:27]requested_item shift.opened is exist - process it [00:09:27]req_shift_opened [00:09:27]FM_GetShiftState [00:09:27]SAM_PROTO_GetShiftState [00:09:27]wFMCommunicate request_size=4 [00:09:27]MH_SAM_APDU [00:09:27]CAPDU: 80 13 01 00 [00:09:27]Write to MH i2c: E2 08 00 B1 2B 80 13 01 00 00 00 00 00 59 [00:09:27]Write i2c OK [00:09:27]MH_I2C_Read... [00:09:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:27]Read from MH i2c: E2 [00:09:27]MH_I2C_Read... [00:09:27]Read from MH i2c: E2 0E 00 [00:09:27]MH_I2C_Read... [00:09:27]Read from MH i2c: E2 0E 00 B1 2B 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 30 [00:09:27]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [00:09:27]wFMCommunicate OK [00:09:27]SAM_PROTO_GetShiftState done [00:09:27]FM_GetShiftState done [00:09:27]req_shift_opened done [00:09:27]requested_item shift.open_date is exist - process it [00:09:27]req_shift_open_date [00:09:27]req_shift_open_date done [00:09:27]produce_requested_data done [00:09:27]produce_requested_data return {"fd.num":118331,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [00:09:27]process_action_free open_shift [00:09:27]json_value_free [00:09:27]json_value_free done [00:09:27]process_json_proto returns [00:09:27]Send response to host [00:09:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":118331,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [00:09:27]free response buf [00:09:27]execute_script done [00:09:27]execute_script returns [00:09:27]free content buf [00:09:27]Sock 9.Close socket [00:09:27]Sock 9.Thread stoped [00:09:27]accept exits with 7 [00:09:27]New connection [00:09:27]New thread 3066953060 created [00:09:27]Thread 3067096420 joined [00:09:27]Waiting for new connection... [00:09:27] Sock 7.Parse request [00:09:27]Sock 7.Check first char [00:09:27]Sock 7.First char is OK [00:09:27]request: POST /json_proto HTTP/1.0 [00:09:27]Method: POST [00:09:27]URL: /json_proto [00:09:27]Method is POST - this is cgi request [00:09:27]url: /json_proto [00:09:27]query_string will be loaded in cgi processing [00:09:27]execute_cgi json_proto POST (null) [00:09:27]execute_cgi path=json_proto method=POST [00:09:27]POST find Content-Length [00:09:27]Host: 172.17.45.7:8080 [00:09:27]Content-Length: 331 [00:09:27]Content-Type: application/json [00:09:27] [00:09:27]POST finish read [00:09:27]Found Content-Length = 331 [00:09:27]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:09:27]execute_script... [00:09:27]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:09:27]POST & json_proto [00:09:27]process_json_proto [00:09:27]json parsed OK: [00:09:27]protocol is kg_v1.0 [00:09:27]action value=get_value [00:09:27]process_action get_value [00:09:27]cmd_get_value [00:09:27]process_action get_value done [00:09:27]requested_data is exist [00:09:27]produce_requested_data [00:09:27]requested_item fm.sale.total is exist - process it [00:09:27]SAM_PROTO_GetFMData [00:09:27]wFMCommunicate request_size=4 [00:09:27]MH_SAM_APDU [00:09:27]CAPDU: 80 13 03 00 [00:09:27]Write to MH i2c: E2 08 00 B2 2B 80 13 03 00 00 00 00 00 5C [00:09:27]Write i2c OK [00:09:27]MH_I2C_Read... [00:09:27]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:09:27]Read from MH i2c: E2 [00:09:27]MH_I2C_Read... [00:09:27]Read from MH i2c: E2 FD 00 [00:09:27]MH_I2C_Read... [00:09:27]Read from MH i2c: E2 FD 00 B2 2B 00 C5 04 85 04 C1 04 6E 04 04 00 D9 CA 01 00 69 04 A3 00 6F 04 04 00 57 BD 01 00 B1 04 05 00 24 A1 97 72 03 70 04 05 00 B8 FA BC A6 02 72 04 04 00 6C A6 DA CB 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 4A 3D C0 5D 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 E7 E3 CF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 82 0D 00 00 B1 04 04 00 DC 2E 0A 3B 70 04 04 00 DC 2E 0A 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2C 3C 45 06 EF 03 09 90 00 FB [00:09:27]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 D9 CA 01 00 69 04 A3 00 6F 04 04 00 57 BD 01 00 B1 04 05 00 24 A1 97 72 03 70 04 05 00 B8 FA BC A6 02 72 04 04 00 6C A6 DA CB 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 4A 3D C0 5D 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 E7 E3 CF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 82 0D 00 00 B1 04 04 00 DC 2E 0A 3B 70 04 04 00 DC 2E 0A 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2C 3C 45 06 EF 03 09 90 00 [00:09:27]wFMCommunicate OK [00:09:27]wFMCommunicate request_size=4 [00:09:27]MH_SAM_APDU [00:09:27]CAPDU: 80 17 00 00 [00:09:27]Write to MH i2c: E2 08 00 B3 2B 80 17 00 00 00 00 00 00 5E [00:09:27]Write i2c OK [00:09:27]MH_I2C_Read... [00:09:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:27]Read from MH i2c: E2 [00:09:27]MH_I2C_Read... [00:09:27]Read from MH i2c: E2 FD 00 [00:09:27]MH_I2C_Read... [00:09:27]Read from MH i2c: E2 FD 00 B3 2B 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 22 C4 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7F [00:09:28]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 22 C4 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:09:28]wFMCommunicate OK [00:09:28]wFMCommunicate request_size=4 [00:09:28]MH_SAM_APDU [00:09:28]CAPDU: 80 17 00 00 [00:09:28]Write to MH i2c: E2 08 00 B4 2B 80 17 00 00 00 00 00 00 5F [00:09:28]Write i2c OK [00:09:28]MH_I2C_Read... [00:09:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:28]Read from MH i2c: E2 [00:09:28]MH_I2C_Read... [00:09:28]Read from MH i2c: E2 FD 00 [00:09:28]MH_I2C_Read... [00:09:28]Read from MH i2c: E2 FD 00 B4 2B 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 71 [00:09:28]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:09:28]wFMCommunicate OK [00:09:28]wFMCommunicate request_size=4 [00:09:28]MH_SAM_APDU [00:09:28]CAPDU: 80 17 00 00 [00:09:28]Write to MH i2c: E2 08 00 B5 2B 80 17 00 00 00 00 00 00 60 [00:09:28]Write i2c OK [00:09:28]MH_I2C_Read... [00:09:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:28]Read from MH i2c: E2 [00:09:28]MH_I2C_Read... [00:09:28]Read from MH i2c: E2 FD 00 [00:09:28]MH_I2C_Read... [00:09:28]Read from MH i2c: E2 FD 00 B5 2B 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EC [00:09:28]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:09:28]wFMCommunicate OK [00:09:28]wFMCommunicate request_size=4 [00:09:28]MH_SAM_APDU [00:09:28]CAPDU: 80 17 00 00 [00:09:28]Write to MH i2c: E2 08 00 B6 2B 80 17 00 00 00 00 00 00 61 [00:09:28]Write i2c OK [00:09:28]MH_I2C_Read... [00:09:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:09:29]Read from MH i2c: E2 [00:09:29]MH_I2C_Read... [00:09:29]Read from MH i2c: E2 E2 00 [00:09:29]MH_I2C_Read... [00:09:29]Read from MH i2c: E2 E2 00 B6 2B 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 3F [00:09:29]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:09:29]wFMCommunicate OK [00:09:29]SAM_PROTO_GetFMData done [00:09:29]requested_item fm.sale_refund.total is exist - process it [00:09:29]requested_item fm.buy.total is exist - process it [00:09:29]requested_item shift.sale.total is exist - process it [00:09:29]SAM_PROTO_GetShiftData [00:09:29]wFMCommunicate request_size=4 [00:09:29]MH_SAM_APDU [00:09:29]CAPDU: 80 13 02 00 [00:09:29]Write to MH i2c: E2 08 00 B7 2B 80 13 02 00 00 00 00 00 60 [00:09:29]Write i2c OK [00:09:29]MH_I2C_Read... [00:09:29]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:09:29]Read from MH i2c: E2 [00:09:29]MH_I2C_Read... [00:09:29]Read from MH i2c: E2 FD 00 [00:09:29]MH_I2C_Read... [00:09:29]Read from MH i2c: E2 FD 00 B7 2B 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 D3 [00:09:29]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:09:30]wFMCommunicate OK [00:09:30]wFMCommunicate request_size=4 [00:09:30]MH_SAM_APDU [00:09:30]CAPDU: 80 17 00 00 [00:09:30]Write to MH i2c: E2 08 00 B8 2B 80 17 00 00 00 00 00 00 63 [00:09:30]Write i2c OK [00:09:30]MH_I2C_Read... [00:09:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:30]Read from MH i2c: E2 [00:09:30]MH_I2C_Read... [00:09:30]Read from MH i2c: E2 FD 00 [00:09:30]MH_I2C_Read... [00:09:30]Read from MH i2c: E2 FD 00 B8 2B 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 6B [00:09:30]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:09:30]wFMCommunicate OK [00:09:30]wFMCommunicate request_size=4 [00:09:30]MH_SAM_APDU [00:09:30]CAPDU: 80 17 00 00 [00:09:30]Write to MH i2c: E2 08 00 B9 2B 80 17 00 00 00 00 00 00 64 [00:09:30]Write i2c OK [00:09:30]MH_I2C_Read... [00:09:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:30]Read from MH i2c: E2 [00:09:30]MH_I2C_Read... [00:09:30]Read from MH i2c: E2 FD 00 [00:09:30]MH_I2C_Read... [00:09:30]Read from MH i2c: E2 FD 00 B9 2B 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 36 [00:09:30]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:09:30]wFMCommunicate OK [00:09:30]wFMCommunicate request_size=4 [00:09:30]MH_SAM_APDU [00:09:30]CAPDU: 80 17 00 00 [00:09:30]Write to MH i2c: E2 08 00 BA 2B 80 17 00 00 00 00 00 00 65 [00:09:30]Write i2c OK [00:09:30]MH_I2C_Read... [00:09:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:31]Read from MH i2c: E2 [00:09:31]MH_I2C_Read... [00:09:31]Read from MH i2c: E2 FD 00 [00:09:31]MH_I2C_Read... [00:09:31]Read from MH i2c: E2 FD 00 BA 2B 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 D7 [00:09:31]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:09:31]wFMCommunicate OK [00:09:31]wFMCommunicate request_size=4 [00:09:31]MH_SAM_APDU [00:09:31]CAPDU: 80 17 00 00 [00:09:31]Write to MH i2c: E2 08 00 BB 2B 80 17 00 00 00 00 00 00 66 [00:09:31]Write i2c OK [00:09:31]MH_I2C_Read... [00:09:31]OFD Sender: No OFD packet to send [00:09:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:09:31]Read from MH i2c: E2 [00:09:31]MH_I2C_Read... [00:09:31]Read from MH i2c: E2 BD 00 [00:09:31]MH_I2C_Read... [00:09:31]Read from MH i2c: E2 BD 00 BB 2B 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 4C [00:09:31]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:09:31]wFMCommunicate OK [00:09:31]SAM_PROTO_GetShiftData done [00:09:31]requested_item shift.sale.total_cash is exist - process it [00:09:31]requested_item shift.sale_refund.total is exist - process it [00:09:31]requested_item shift.sale_refund.total_cash is exist - process it [00:09:31]requested_item shift.buy.total is exist - process it [00:09:31]requested_item shift.buy.total_cash is exist - process it [00:09:31]produce_requested_data done [00:09:31]produce_requested_data return {"fm.sale.total":148074417.00,"fm.sale_refund.total":9905231.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:09:31]process_action_free get_value [00:09:31]json_value_free [00:09:31]json_value_free done [00:09:31]process_json_proto returns [00:09:31]Send response to host [00:09:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":148074417.00,"fm.sale_refund.total":9905231.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:09:31]free response buf [00:09:31]execute_script done [00:09:31]execute_script returns [00:09:31]free content buf [00:09:31]Sock 7.Close socket [00:09:31]Sock 7.Thread stoped [00:09:36]OFD Sender: No OFD packet to send [00:09:41]OFD Sender: No OFD packet to send [00:09:46]OFD Sender: No OFD packet to send [00:09:48]accept exits with 9 [00:09:48]New connection [00:09:48]New thread 3067096420 created [00:09:48]Thread 3066953060 joined [00:09:48]Waiting for new connection... [00:09:48] Sock 9.Parse request [00:09:48]Sock 9.Check first char [00:09:48]Sock 9.First char is OK [00:09:48]request: POST /json_proto HTTP/1.0 [00:09:48]Method: POST [00:09:48]URL: /json_proto [00:09:48]Method is POST - this is cgi request [00:09:48]url: /json_proto [00:09:48]query_string will be loaded in cgi processing [00:09:48]execute_cgi json_proto POST (null) [00:09:48]execute_cgi path=json_proto method=POST [00:09:48]POST find Content-Length [00:09:48]Host: 172.17.45.7:8080 [00:09:48]Content-Length: 215 [00:09:48]Content-Type: application/json [00:09:48] [00:09:48]POST finish read [00:09:48]Found Content-Length = 215 [00:09:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:48]execute_script... [00:09:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:48]POST & json_proto [00:09:48]process_json_proto [00:09:48]json parsed OK: [00:09:48]protocol is kg_v1.0 [00:09:48]action value=get_value [00:09:48]process_action get_value [00:09:48]cmd_get_value [00:09:48]process_action get_value done [00:09:48]requested_data is exist [00:09:48]produce_requested_data [00:09:48]requested_item kkm.sn is exist - process it [00:09:48]requested_item kkm.ver is exist - process it [00:09:48]requested_item fm.sn is exist - process it [00:09:48]wFMCommunicate request_size=4 [00:09:48]MH_SAM_APDU [00:09:48]CAPDU: 80 11 00 00 [00:09:48]Write to MH i2c: E2 08 00 BC 2B 80 11 00 00 00 00 00 00 61 [00:09:48]Write i2c OK [00:09:48]MH_I2C_Read... [00:09:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:49]Read from MH i2c: E2 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: E2 17 00 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: E2 17 00 BC 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BC [00:09:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:09:49]wFMCommunicate OK [00:09:49]requested_item fd.num is exist - process it [00:09:49]SAM_PROTO_GetFieldsCounters [00:09:49]wFMCommunicate request_size=4 [00:09:49]MH_SAM_APDU [00:09:49]CAPDU: 80 13 00 00 [00:09:49]Write to MH i2c: E2 08 00 BD 2B 80 13 00 00 00 00 00 00 64 [00:09:49]Write i2c OK [00:09:49]MH_I2C_Read... [00:09:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:09:49]Read from MH i2c: E2 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: E2 62 00 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: E2 62 00 BD 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3B CE 01 00 0E 04 04 00 B1 01 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 47 [00:09:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3B CE 01 00 0E 04 04 00 B1 01 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:09:49]wFMCommunicate OK [00:09:49]SAM_PROTO_GetFieldsCounters done [00:09:49]requested_item shift.num is exist - process it [00:09:49]requested_item shift.opened is exist - process it [00:09:49]req_shift_opened [00:09:49]FM_GetShiftState [00:09:49]SAM_PROTO_GetShiftState [00:09:49]wFMCommunicate request_size=4 [00:09:49]MH_SAM_APDU [00:09:49]CAPDU: 80 13 01 00 [00:09:49]Write to MH i2c: E2 08 00 BE 2B 80 13 01 00 00 00 00 00 66 [00:09:49]Write i2c OK [00:09:49]MH_I2C_Read... [00:09:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:49]Read from MH i2c: E2 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: E2 0E 00 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: E2 0E 00 BE 2B 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 3D [00:09:49]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [00:09:49]wFMCommunicate OK [00:09:49]SAM_PROTO_GetShiftState done [00:09:49]FM_GetShiftState done [00:09:49]req_shift_opened done [00:09:49]requested_item shift.open_date is exist - process it [00:09:49]req_shift_open_date [00:09:49]req_shift_open_date done [00:09:49]produce_requested_data done [00:09:49]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118331,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [00:09:49]process_action_free get_value [00:09:49]json_value_free [00:09:49]json_value_free done [00:09:49]process_json_proto returns [00:09:49]Send response to host [00:09:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118331,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [00:09:49]free response buf [00:09:49]execute_script done [00:09:49]execute_script returns [00:09:49]free content buf [00:09:49]Sock 9.Close socket [00:09:49]Sock 9.Thread stoped [00:09:49]accept exits with 7 [00:09:49]New connection [00:09:49]New thread 3066953060 created [00:09:49]Thread 3067096420 joined [00:09:49]Waiting for new connection... [00:09:49] Sock 7.Parse request [00:09:49]Sock 7.Check first char [00:09:49]Sock 7.First char is OK [00:09:49]request: POST /json_proto HTTP/1.0 [00:09:49]Method: POST [00:09:49]URL: /json_proto [00:09:49]Method is POST - this is cgi request [00:09:49]url: /json_proto [00:09:49]query_string will be loaded in cgi processing [00:09:49]execute_cgi json_proto POST (null) [00:09:49]execute_cgi path=json_proto method=POST [00:09:49]POST find Content-Length [00:09:49]Host: 172.17.45.7:8080 [00:09:49]Content-Length: 331 [00:09:49]Content-Type: application/json [00:09:49] [00:09:49]POST finish read [00:09:49]Found Content-Length = 331 [00:09: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:09:49]execute_script... [00:09: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:09:49]POST & json_proto [00:09:49]process_json_proto [00:09:49]json parsed OK: [00:09:49]protocol is kg_v1.0 [00:09:49]action value=get_value [00:09:49]process_action get_value [00:09:49]cmd_get_value [00:09:49]process_action get_value done [00:09:49]requested_data is exist [00:09:49]produce_requested_data [00:09:49]requested_item fm.sale.total is exist - process it [00:09:49]SAM_PROTO_GetFMData [00:09:49]wFMCommunicate request_size=4 [00:09:49]MH_SAM_APDU [00:09:49]CAPDU: 80 13 03 00 [00:09:49]Write to MH i2c: E2 08 00 BF 2B 80 13 03 00 00 00 00 00 69 [00:09:49]Write i2c OK [00:09:49]MH_I2C_Read... [00:09:49]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:09:49]Read from MH i2c: E2 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: E2 FD 00 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: E2 FD 00 BF 2B 00 C5 04 85 04 C1 04 6E 04 04 00 D9 CA 01 00 69 04 A3 00 6F 04 04 00 57 BD 01 00 B1 04 05 00 24 A1 97 72 03 70 04 05 00 B8 FA BC A6 02 72 04 04 00 6C A6 DA CB 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 4A 3D C0 5D 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 E7 E3 CF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 82 0D 00 00 B1 04 04 00 DC 2E 0A 3B 70 04 04 00 DC 2E 0A 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2C 3C 45 06 EF 03 09 90 00 08 [00:09:49]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 D9 CA 01 00 69 04 A3 00 6F 04 04 00 57 BD 01 00 B1 04 05 00 24 A1 97 72 03 70 04 05 00 B8 FA BC A6 02 72 04 04 00 6C A6 DA CB 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 4A 3D C0 5D 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 E7 E3 CF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 82 0D 00 00 B1 04 04 00 DC 2E 0A 3B 70 04 04 00 DC 2E 0A 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2C 3C 45 06 EF 03 09 90 00 [00:09:49]wFMCommunicate OK [00:09:49]wFMCommunicate request_size=4 [00:09:49]MH_SAM_APDU [00:09:49]CAPDU: 80 17 00 00 [00:09:49]Write to MH i2c: E2 08 00 C0 2B 80 17 00 00 00 00 00 00 6B [00:09:49]Write i2c OK [00:09:49]MH_I2C_Read... [00:09:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:50]Read from MH i2c: E2 [00:09:50]MH_I2C_Read... [00:09:50]Read from MH i2c: E2 FD 00 [00:09:50]MH_I2C_Read... [00:09:50]Read from MH i2c: E2 FD 00 C0 2B 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 22 C4 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8C [00:09:50]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 22 C4 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:09:50]wFMCommunicate OK [00:09:50]wFMCommunicate request_size=4 [00:09:50]MH_SAM_APDU [00:09:50]CAPDU: 80 17 00 00 [00:09:50]Write to MH i2c: E2 08 00 C1 2B 80 17 00 00 00 00 00 00 6C [00:09:50]Write i2c OK [00:09:50]MH_I2C_Read... [00:09:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:50]Read from MH i2c: E2 [00:09:50]MH_I2C_Read... [00:09:50]Read from MH i2c: E2 FD 00 [00:09:50]MH_I2C_Read... [00:09:50]Read from MH i2c: E2 FD 00 C1 2B 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 7E [00:09:50]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:09:50]wFMCommunicate OK [00:09:50]wFMCommunicate request_size=4 [00:09:50]MH_SAM_APDU [00:09:50]CAPDU: 80 17 00 00 [00:09:50]Write to MH i2c: E2 08 00 C2 2B 80 17 00 00 00 00 00 00 6D [00:09:50]Write i2c OK [00:09:50]MH_I2C_Read... [00:09:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:51]Read from MH i2c: E2 [00:09:51]MH_I2C_Read... [00:09:51]Read from MH i2c: E2 FD 00 [00:09:51]MH_I2C_Read... [00:09:51]Read from MH i2c: E2 FD 00 C2 2B 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F9 [00:09:51]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:09:51]wFMCommunicate OK [00:09:51]wFMCommunicate request_size=4 [00:09:51]MH_SAM_APDU [00:09:51]CAPDU: 80 17 00 00 [00:09:51]Write to MH i2c: E2 08 00 C3 2B 80 17 00 00 00 00 00 00 6E [00:09:51]Write i2c OK [00:09:51]MH_I2C_Read... [00:09:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:09:51]Read from MH i2c: E2 [00:09:51]MH_I2C_Read... [00:09:51]Read from MH i2c: E2 E2 00 [00:09:51]MH_I2C_Read... [00:09:51]Read from MH i2c: E2 E2 00 C3 2B 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4C [00:09:51]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:09:51]wFMCommunicate OK [00:09:51]SAM_PROTO_GetFMData done [00:09:51]requested_item fm.sale_refund.total is exist - process it [00:09:51]requested_item fm.buy.total is exist - process it [00:09:51]requested_item shift.sale.total is exist - process it [00:09:51]SAM_PROTO_GetShiftData [00:09:51]wFMCommunicate request_size=4 [00:09:51]MH_SAM_APDU [00:09:51]CAPDU: 80 13 02 00 [00:09:51]Write to MH i2c: E2 08 00 C4 2B 80 13 02 00 00 00 00 00 6D [00:09:51]OFD Sender: No OFD packet to send [00:09:51]Write i2c OK [00:09:51]MH_I2C_Read... [00:09:52]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:09:52]Read from MH i2c: E2 [00:09:52]MH_I2C_Read... [00:09:52]Read from MH i2c: E2 FD 00 [00:09:52]MH_I2C_Read... [00:09:52]Read from MH i2c: E2 FD 00 C4 2B 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 E0 [00:09:52]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:09:52]wFMCommunicate OK [00:09:52]wFMCommunicate request_size=4 [00:09:52]MH_SAM_APDU [00:09:52]CAPDU: 80 17 00 00 [00:09:52]Write to MH i2c: E2 08 00 C5 2B 80 17 00 00 00 00 00 00 70 [00:09:52]Write i2c OK [00:09:52]MH_I2C_Read... [00:09:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:52]Read from MH i2c: E2 [00:09:52]MH_I2C_Read... [00:09:52]Read from MH i2c: E2 FD 00 [00:09:52]MH_I2C_Read... [00:09:52]Read from MH i2c: E2 FD 00 C5 2B 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 78 [00:09:52]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:09:52]wFMCommunicate OK [00:09:52]wFMCommunicate request_size=4 [00:09:52]MH_SAM_APDU [00:09:52]CAPDU: 80 17 00 00 [00:09:52]Write to MH i2c: E2 08 00 C6 2B 80 17 00 00 00 00 00 00 71 [00:09:52]Write i2c OK [00:09:52]MH_I2C_Read... [00:09:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:53]Read from MH i2c: E2 [00:09:53]MH_I2C_Read... [00:09:53]Read from MH i2c: E2 FD 00 [00:09:53]MH_I2C_Read... [00:09:53]Read from MH i2c: E2 FD 00 C6 2B 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 43 [00:09:53]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:09:53]wFMCommunicate OK [00:09:53]wFMCommunicate request_size=4 [00:09:53]MH_SAM_APDU [00:09:53]CAPDU: 80 17 00 00 [00:09:53]Write to MH i2c: E2 08 00 C7 2B 80 17 00 00 00 00 00 00 72 [00:09:53]Write i2c OK [00:09:53]MH_I2C_Read... [00:09:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:53]Read from MH i2c: E2 [00:09:53]MH_I2C_Read... [00:09:53]Read from MH i2c: E2 FD 00 [00:09:53]MH_I2C_Read... [00:09:53]Read from MH i2c: E2 FD 00 C7 2B 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 E4 [00:09:53]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:09:53]wFMCommunicate OK [00:09:53]wFMCommunicate request_size=4 [00:09:53]MH_SAM_APDU [00:09:53]CAPDU: 80 17 00 00 [00:09:53]Write to MH i2c: E2 08 00 C8 2B 80 17 00 00 00 00 00 00 73 [00:09:53]Write i2c OK [00:09:53]MH_I2C_Read... [00:09:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:09:54]Read from MH i2c: E2 [00:09:54]MH_I2C_Read... [00:09:54]Read from MH i2c: E2 BD 00 [00:09:54]MH_I2C_Read... [00:09:54]Read from MH i2c: E2 BD 00 C8 2B 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 59 [00:09:54]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:09:54]wFMCommunicate OK [00:09:54]SAM_PROTO_GetShiftData done [00:09:54]requested_item shift.sale.total_cash is exist - process it [00:09:54]requested_item shift.sale_refund.total is exist - process it [00:09:54]requested_item shift.sale_refund.total_cash is exist - process it [00:09:54]requested_item shift.buy.total is exist - process it [00:09:54]requested_item shift.buy.total_cash is exist - process it [00:09:54]produce_requested_data done [00:09:54]produce_requested_data return {"fm.sale.total":148074417.00,"fm.sale_refund.total":9905231.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:09:54]process_action_free get_value [00:09:54]json_value_free [00:09:54]json_value_free done [00:09:54]process_json_proto returns [00:09:54]Send response to host [00:09:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":148074417.00,"fm.sale_refund.total":9905231.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:09:54]free response buf [00:09:54]execute_script done [00:09:54]execute_script returns [00:09:54]free content buf [00:09:54]Sock 7.Close socket [00:09:54]Sock 7.Thread stoped [00:09:56]OFD Sender: No OFD packet to send [00:10:01]OFD Sender: No OFD packet to send [00:10:06]OFD Sender: No OFD packet to send [00:10:11]OFD Sender: No OFD packet to send [00:10:15]accept exits with 9 [00:10:15]New connection [00:10:15]New thread 3067096420 created [00:10:15]Thread 3066953060 joined [00:10:15]Waiting for new connection... [00:10:15] Sock 9.Parse request [00:10:15]Sock 9.Check first char [00:10:15]Sock 9.First char is OK [00:10:15]request: POST /json_proto HTTP/1.0 [00:10:15]Method: POST [00:10:15]URL: /json_proto [00:10:15]Method is POST - this is cgi request [00:10:15]url: /json_proto [00:10:15]query_string will be loaded in cgi processing [00:10:15]execute_cgi json_proto POST (null) [00:10:15]execute_cgi path=json_proto method=POST [00:10:15]POST find Content-Length [00:10:15]Host: 172.17.45.7:8080 [00:10:15]Content-Length: 215 [00:10:15]Content-Type: application/json [00:10:15] [00:10:15]POST finish read [00:10:15]Found Content-Length = 215 [00:10:15]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:10:15]execute_script... [00:10:15]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:10:15]POST & json_proto [00:10:15]process_json_proto [00:10:15]json parsed OK: [00:10:15]protocol is kg_v1.0 [00:10:15]action value=get_value [00:10:15]process_action get_value [00:10:15]cmd_get_value [00:10:15]process_action get_value done [00:10:15]requested_data is exist [00:10:15]produce_requested_data [00:10:15]requested_item kkm.sn is exist - process it [00:10:15]requested_item kkm.ver is exist - process it [00:10:15]requested_item fm.sn is exist - process it [00:10:15]wFMCommunicate request_size=4 [00:10:15]MH_SAM_APDU [00:10:15]CAPDU: 80 11 00 00 [00:10:15]Write to MH i2c: E2 08 00 C9 2B 80 11 00 00 00 00 00 00 6E [00:10:15]Write i2c OK [00:10:15]MH_I2C_Read... [00:10:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:10:15]Read from MH i2c: E2 [00:10:15]MH_I2C_Read... [00:10:15]Read from MH i2c: E2 17 00 [00:10:15]MH_I2C_Read... [00:10:15]Read from MH i2c: E2 17 00 C9 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C9 [00:10:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:10:15]wFMCommunicate OK [00:10:15]requested_item fd.num is exist - process it [00:10:15]SAM_PROTO_GetFieldsCounters [00:10:15]wFMCommunicate request_size=4 [00:10:15]MH_SAM_APDU [00:10:15]CAPDU: 80 13 00 00 [00:10:15]Write to MH i2c: E2 08 00 CA 2B 80 13 00 00 00 00 00 00 71 [00:10:15]Write i2c OK [00:10:15]MH_I2C_Read... [00:10:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:10:15]Read from MH i2c: E2 [00:10:15]MH_I2C_Read... [00:10:15]Read from MH i2c: E2 62 00 [00:10:15]MH_I2C_Read... [00:10:15]Read from MH i2c: E2 62 00 CA 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3B CE 01 00 0E 04 04 00 B1 01 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 54 [00: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3B CE 01 00 0E 04 04 00 B1 01 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:10:15]wFMCommunicate OK [00:10:15]SAM_PROTO_GetFieldsCounters done [00:10:15]requested_item shift.num is exist - process it [00:10:15]requested_item shift.opened is exist - process it [00:10:15]req_shift_opened [00:10:15]FM_GetShiftState [00:10:15]SAM_PROTO_GetShiftState [00:10:15]wFMCommunicate request_size=4 [00:10:15]MH_SAM_APDU [00:10:15]CAPDU: 80 13 01 00 [00:10:15]Write to MH i2c: E2 08 00 CB 2B 80 13 01 00 00 00 00 00 73 [00:10:15]Write i2c OK [00:10:15]MH_I2C_Read... [00:10:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:15]Read from MH i2c: E2 [00:10:15]MH_I2C_Read... [00:10:15]Read from MH i2c: E2 0E 00 [00:10:15]MH_I2C_Read... [00:10:15]Read from MH i2c: E2 0E 00 CB 2B 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 4A [00:10:15]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [00:10:15]wFMCommunicate OK [00:10:15]SAM_PROTO_GetShiftState done [00:10:15]FM_GetShiftState done [00:10:15]req_shift_opened done [00:10:15]requested_item shift.open_date is exist - process it [00:10:15]req_shift_open_date [00:10:15]req_shift_open_date done [00:10:15]produce_requested_data done [00:10:15]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118331,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [00:10:15]process_action_free get_value [00:10:15]json_value_free [00:10:15]json_value_free done [00:10:15]process_json_proto returns [00:10:15]Send response to host [00:10:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118331,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [00:10:15]free response buf [00:10:15]execute_script done [00:10:15]execute_script returns [00:10:15]free content buf [00:10:15]Sock 9.Close socket [00:10:15]Sock 9.Thread stoped [00:10:15]accept exits with 7 [00:10:15]New connection [00:10:15]New thread 3066953060 created [00:10:15]Thread 3067096420 joined [00:10:15]Waiting for new connection... [00:10:15] Sock 7.Parse request [00:10:15]Sock 7.Check first char [00:10:15]Sock 7.First char is OK [00:10:15]request: POST /json_proto HTTP/1.0 [00:10:15]Method: POST [00:10:15]URL: /json_proto [00:10:15]Method is POST - this is cgi request [00:10:15]url: /json_proto [00:10:15]query_string will be loaded in cgi processing [00:10:15]execute_cgi json_proto POST (null) [00:10:15]execute_cgi path=json_proto method=POST [00:10:15]POST find Content-Length [00:10:15]Host: 172.17.45.7:8080 [00:10:15]Content-Length: 331 [00:10:15]Content-Type: application/json [00:10:15] [00:10:15]POST finish read [00:10:15]Found Content-Length = 331 [00:10:15]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:10:15]execute_script... [00:10:15]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:10:15]POST & json_proto [00:10:15]process_json_proto [00:10:15]json parsed OK: [00:10:15]protocol is kg_v1.0 [00:10:15]action value=get_value [00:10:15]process_action get_value [00:10:15]cmd_get_value [00:10:15]process_action get_value done [00:10:15]requested_data is exist [00:10:15]produce_requested_data [00:10:15]requested_item fm.sale.total is exist - process it [00:10:15]SAM_PROTO_GetFMData [00:10:15]wFMCommunicate request_size=4 [00:10:15]MH_SAM_APDU [00:10:15]CAPDU: 80 13 03 00 [00:10:15]Write to MH i2c: E2 08 00 CC 2B 80 13 03 00 00 00 00 00 76 [00:10:15]Write i2c OK [00:10:15]MH_I2C_Read... [00:10:15]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:10:15]Read from MH i2c: E2 [00:10:15]MH_I2C_Read... [00:10:15]Read from MH i2c: E2 FD 00 [00:10:15]MH_I2C_Read... [00:10:15]Read from MH i2c: E2 FD 00 CC 2B 00 C5 04 85 04 C1 04 6E 04 04 00 D9 CA 01 00 69 04 A3 00 6F 04 04 00 57 BD 01 00 B1 04 05 00 24 A1 97 72 03 70 04 05 00 B8 FA BC A6 02 72 04 04 00 6C A6 DA CB 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 4A 3D C0 5D 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 E7 E3 CF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 82 0D 00 00 B1 04 04 00 DC 2E 0A 3B 70 04 04 00 DC 2E 0A 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2C 3C 45 06 EF 03 09 90 00 15 [00:10:15]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 D9 CA 01 00 69 04 A3 00 6F 04 04 00 57 BD 01 00 B1 04 05 00 24 A1 97 72 03 70 04 05 00 B8 FA BC A6 02 72 04 04 00 6C A6 DA CB 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 4A 3D C0 5D 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 E7 E3 CF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 82 0D 00 00 B1 04 04 00 DC 2E 0A 3B 70 04 04 00 DC 2E 0A 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2C 3C 45 06 EF 03 09 90 00 [00:10:16]wFMCommunicate OK [00:10:16]wFMCommunicate request_size=4 [00:10:16]MH_SAM_APDU [00:10:16]CAPDU: 80 17 00 00 [00:10:16]Write to MH i2c: E2 08 00 CD 2B 80 17 00 00 00 00 00 00 78 [00:10:16]Write i2c OK [00:10:16]MH_I2C_Read... [00:10:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:16]Read from MH i2c: E2 [00:10:16]MH_I2C_Read... [00:10:16]Read from MH i2c: E2 FD 00 [00:10:16]MH_I2C_Read... [00:10:16]Read from MH i2c: E2 FD 00 CD 2B 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 22 C4 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 99 [00:10:16]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 22 C4 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:10:16]wFMCommunicate OK [00:10:16]wFMCommunicate request_size=4 [00:10:16]MH_SAM_APDU [00:10:16]CAPDU: 80 17 00 00 [00:10:16]Write to MH i2c: E2 08 00 CE 2B 80 17 00 00 00 00 00 00 79 [00:10:16]Write i2c OK [00:10:16]MH_I2C_Read... [00:10:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:16]Read from MH i2c: E2 [00:10:16]MH_I2C_Read... [00:10:16]Read from MH i2c: E2 FD 00 [00:10:16]MH_I2C_Read... [00:10:16]Read from MH i2c: E2 FD 00 CE 2B 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 8B [00:10:16]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:10:16]wFMCommunicate OK [00:10:16]wFMCommunicate request_size=4 [00:10:16]MH_SAM_APDU [00:10:16]CAPDU: 80 17 00 00 [00:10:16]Write to MH i2c: E2 08 00 CF 2B 80 17 00 00 00 00 00 00 7A [00:10:16]Write i2c OK [00:10:16]MH_I2C_Read... [00:10:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:16]Read from MH i2c: E2 [00:10:16]MH_I2C_Read... [00:10:16]Read from MH i2c: E2 FD 00 [00:10:16]MH_I2C_Read... [00:10:16]OFD Sender: No OFD packet to send [00:10:16]Read from MH i2c: E2 FD 00 CF 2B 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 06 [00:10:17]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:10:17]wFMCommunicate OK [00:10:17]wFMCommunicate request_size=4 [00:10:17]MH_SAM_APDU [00:10:17]CAPDU: 80 17 00 00 [00:10:17]Write to MH i2c: E2 08 00 D0 2B 80 17 00 00 00 00 00 00 7B [00:10:17]Write i2c OK [00:10:17]MH_I2C_Read... [00:10:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:10:17]Read from MH i2c: E2 [00:10:17]MH_I2C_Read... [00:10:17]Read from MH i2c: E2 E2 00 [00:10:17]MH_I2C_Read... [00:10:17]Read from MH i2c: E2 E2 00 D0 2B 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:10:17]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:10:17]wFMCommunicate OK [00:10:17]SAM_PROTO_GetFMData done [00:10:17]requested_item fm.sale_refund.total is exist - process it [00:10:17]requested_item fm.buy.total is exist - process it [00:10:17]requested_item shift.sale.total is exist - process it [00:10:17]SAM_PROTO_GetShiftData [00:10:17]wFMCommunicate request_size=4 [00:10:17]MH_SAM_APDU [00:10:17]CAPDU: 80 13 02 00 [00:10:17]Write to MH i2c: E2 08 00 D1 2B 80 13 02 00 00 00 00 00 7A [00:10:17]Write i2c OK [00:10:17]MH_I2C_Read... [00:10:17]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:10:17]Read from MH i2c: E2 [00:10:17]MH_I2C_Read... [00:10:17]Read from MH i2c: E2 FD 00 [00:10:17]MH_I2C_Read... [00:10:17]Read from MH i2c: E2 FD 00 D1 2B 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 ED [00:10:17]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:10:18]wFMCommunicate OK [00:10:18]wFMCommunicate request_size=4 [00:10:18]MH_SAM_APDU [00:10:18]CAPDU: 80 17 00 00 [00:10:18]Write to MH i2c: E2 08 00 D2 2B 80 17 00 00 00 00 00 00 7D [00:10:18]Write i2c OK [00:10:18]MH_I2C_Read... [00:10:18]Read from MH i2c: E2 [00:10:18]MH_I2C_Read... [00:10:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:18]Read from MH i2c: E2 FD 00 [00:10:18]MH_I2C_Read... [00:10:18]Read from MH i2c: E2 FD 00 D2 2B 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 85 [00:10:18]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:10:18]wFMCommunicate OK [00:10:18]wFMCommunicate request_size=4 [00:10:18]MH_SAM_APDU [00:10:18]CAPDU: 80 17 00 00 [00:10:18]Write to MH i2c: E2 08 00 D3 2B 80 17 00 00 00 00 00 00 7E [00:10:18]Write i2c OK [00:10:18]MH_I2C_Read... [00:10:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:18]Read from MH i2c: E2 [00:10:18]MH_I2C_Read... [00:10:18]Read from MH i2c: E2 FD 00 [00:10:18]MH_I2C_Read... [00:10:18]Read from MH i2c: E2 FD 00 D3 2B 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 50 [00:10:18]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:10:18]wFMCommunicate OK [00:10:18]wFMCommunicate request_size=4 [00:10:18]MH_SAM_APDU [00:10:18]CAPDU: 80 17 00 00 [00:10:18]Write to MH i2c: E2 08 00 D4 2B 80 17 00 00 00 00 00 00 7F [00:10:18]Write i2c OK [00:10:18]MH_I2C_Read... [00:10:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:19]Read from MH i2c: E2 [00:10:19]MH_I2C_Read... [00:10:19]Read from MH i2c: E2 FD 00 [00:10:19]MH_I2C_Read... [00:10:19]Read from MH i2c: E2 FD 00 D4 2B 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 F1 [00:10:19]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:10:19]wFMCommunicate OK [00:10:19]wFMCommunicate request_size=4 [00:10:19]MH_SAM_APDU [00:10:19]CAPDU: 80 17 00 00 [00:10:19]Write to MH i2c: E2 08 00 D5 2B 80 17 00 00 00 00 00 00 80 [00:10:19]Write i2c OK [00:10:19]MH_I2C_Read... [00:10:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:10:19]Read from MH i2c: E2 [00:10:19]MH_I2C_Read... [00:10:19]Read from MH i2c: E2 BD 00 [00:10:19]MH_I2C_Read... [00:10:19]Read from MH i2c: E2 BD 00 D5 2B 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 66 [00:10:19]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:10:19]wFMCommunicate OK [00:10:19]SAM_PROTO_GetShiftData done [00:10:19]requested_item shift.sale.total_cash is exist - process it [00:10:19]requested_item shift.sale_refund.total is exist - process it [00:10:19]requested_item shift.sale_refund.total_cash is exist - process it [00:10:19]requested_item shift.buy.total is exist - process it [00:10:19]requested_item shift.buy.total_cash is exist - process it [00:10:19]produce_requested_data done [00:10:19]produce_requested_data return {"fm.sale.total":148074417.00,"fm.sale_refund.total":9905231.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:10:19]process_action_free get_value [00:10:19]json_value_free [00:10:19]json_value_free done [00:10:19]process_json_proto returns [00:10:19]Send response to host [00:10:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":148074417.00,"fm.sale_refund.total":9905231.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:10:19]free response buf [00:10:19]execute_script done [00:10:19]execute_script returns [00:10:19]free content buf [00:10:19]Sock 7.Close socket [00:10:19]Sock 7.Thread stoped [00:10:22]OFD Sender: No OFD packet to send [00:10:27]OFD Sender: No OFD packet to send [00:10:32]OFD Sender: No OFD packet to send [00:10:37]OFD Sender: No OFD packet to send [00:10:42]OFD Sender: No OFD packet to send [00:10:47]OFD Sender: No OFD packet to send [00:10:52]OFD Sender: No OFD packet to send [00:10:57]OFD Sender: No OFD packet to send [00:11:02]OFD Sender: No OFD packet to send [00:11:07]OFD Sender: No OFD packet to send [00:11:12]OFD Sender: No OFD packet to send [00:11:17]OFD Sender: No OFD packet to send [00:11:22]OFD Sender: No OFD packet to send [00:11:27]OFD Sender: No OFD packet to send [00:11:32]OFD Sender: No OFD packet to send [00:11:37]OFD Sender: No OFD packet to send [00:11:42]OFD Sender: No OFD packet to send [00:11:47]OFD Sender: No OFD packet to send [00:11:52]OFD Sender: No OFD packet to send [00:11:57]OFD Sender: No OFD packet to send [00:12:02]OFD Sender: No OFD packet to send [00:12:07]OFD Sender: No OFD packet to send [00:12:12]OFD Sender: No OFD packet to send [00:12:17]OFD Sender: No OFD packet to send [00:12:22]OFD Sender: No OFD packet to send [00:12:27]OFD Sender: No OFD packet to send [00:12:32]OFD Sender: No OFD packet to send [00:12:37]OFD Sender: No OFD packet to send [00:12:37]accept exits with 9 [00:12:37]New connection [00:12:37]New thread 3067096420 created [00:12:37]Thread 3066953060 joined [00:12:37]Waiting for new connection... [00:12:37] Sock 9.Parse request [00:12:37]Sock 9.Check first char [00:12:37]Sock 9.First char is OK [00:12:37]request: POST /json_proto HTTP/1.0 [00:12:37]Method: POST [00:12:37]URL: /json_proto [00:12:37]Method is POST - this is cgi request [00:12:37]url: /json_proto [00:12:37]query_string will be loaded in cgi processing [00:12:37]execute_cgi json_proto POST (null) [00:12:37]execute_cgi path=json_proto method=POST [00:12:37]POST find Content-Length [00:12:37]Host: 172.17.45.7:8080 [00:12:37]Content-Length: 1189 [00:12:37]Content-Type: application/json [00:12:37] [00:12:37]POST finish read [00:12:37]Found Content-Length = 1189 [00:12:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949206\u000A28.07.2024 00:10\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 14.750 x 67.80\u000A\u0418\u0422\u041E\u0413: 1000.05\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02702\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:37]execute_script... [00:12:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)949206\u000A28.07.2024 00:10\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 14.750 x 67.80\u000A\u0418\u0422\u041E\u0413: 1000.05\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02702\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:37]POST & json_proto [00:12:37]process_json_proto [00:12:37]json parsed OK: [00:12:37]protocol is kg_v1.0 [00:12:37]action value=print_text [00:12:37]process_action print_text [00:12:37]cmd_print_text [00:12:37]ExternCall_PrintAddStr [00:12:37]wPrintStart [00:12:37]Write to MH i2c: 01 00 00 D6 2B 01 [00:12:37]Write i2c OK [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: 01 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: 01 07 00 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: 01 07 00 D6 2B 00 00 00 00 00 FF 0F 16 [00:12:37]RasterBufferAndPrint [00:12:37]line *****ТОВАРНЫЙ ЧЕК***** [00:12:37]line АЗС-134 [00:12:37]line Партнер нефть [00:12:37]line 02508201610067 [00:12:37]line Кассир : Хошимов З. [00:12:37]line Счет N : (1)949206 [00:12:37]line 28.07.2024 00:10 [00:12:37]line ПРОДАЖА [00:12:37]line ТРК (МРК, ГНК): 51 [00:12:37]line Вид ГСМ : 2710124130 [00:12:37]line Аи-92-К-4 [00:12:37]line 14.750 x 67.80 [00:12:37]line ИТОГ: 1000.05 [00:12:37]line Тип оплаты: Талоны: Топливная Карта [00:12:37]line 02702 [00:12:37]line ______________________ [00:12:37]line (подпись) [00:12:37]written 0, free lines is 4095 [00:12:37]Write to MH i2c: 01 00 00 EA 2B 15 [00:12:37]Write i2c OK [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: 01 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: 01 07 00 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: 01 07 00 EA 2B 00 00 00 00 00 0E 0E 38 [00:12:37]RasterBufferAndPrint [00:12:37]line [00:12:37]line [00:12:37]line [00:12:37]line [00:12:37]line [00:12:37]written 0, free lines is 3600 [00:12:37]MH_Cut [00:12:37]Write to MH i2c: D1 01 00 F1 2B 01 EE [00:12:37]Write i2c OK [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: D1 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: D1 01 00 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: D1 01 00 F1 2B 00 ED [00:12:37]Write to MH i2c: 01 00 00 F2 2B 1D [00:12:37]Write i2c OK [00:12:37]MH_I2C_Read... [00:12:38]*** Cut start [00:12:38]*** Partial cut [00:12:38]*** CUTSNS_PIN = 1 [00:12:38]*** CUTSNS_PIN = 0 [00:12:38]*** Brake cut motor [00:12:39]Read from MH i2c: 01 [00:12:39]MH_I2C_Read... [00:12:39]Read from MH i2c: 01 07 00 [00:12:39]MH_I2C_Read... [00:12:39]*** Stop cut motor [00:12:39]*** Cut end [00:12:39]Read from MH i2c: 01 07 00 F2 2B 00 00 00 00 00 FF 0F 32 [00:12:39]process_action print_text done [00:12:39]requested_data is exist [00:12:39]produce_requested_data [00:12:39]requested_item fm.sn is exist - process it [00:12:39]wFMCommunicate request_size=4 [00:12:39]MH_SAM_APDU [00:12:39]CAPDU: 80 11 00 00 [00:12:39]Write to MH i2c: E2 08 00 F3 2B 80 11 00 00 00 00 00 00 98 [00:12:39]Write i2c OK [00:12:39]MH_I2C_Read... [00:12:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:39]Read from MH i2c: E2 [00:12:39]MH_I2C_Read... [00:12:39]Read from MH i2c: E2 17 00 [00:12:39]MH_I2C_Read... [00:12:39]Read from MH i2c: E2 17 00 F3 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F3 [00:12:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:12:39]wFMCommunicate OK [00:12:39]requested_item fd.num is exist - process it [00:12:39]SAM_PROTO_GetFieldsCounters [00:12:39]wFMCommunicate request_size=4 [00:12:39]MH_SAM_APDU [00:12:39]CAPDU: 80 13 00 00 [00:12:39]Write to MH i2c: E2 08 00 F4 2B 80 13 00 00 00 00 00 00 9B [00:12:39]Write i2c OK [00:12:39]MH_I2C_Read... [00:12:39]Read from MH i2c: E2 [00:12:39]MH_I2C_Read... [00:12:39]Read from MH i2c: E2 62 00 [00:12:39]MH_I2C_Read... [00:12:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:12:39]Read from MH i2c: E2 62 00 F4 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3B CE 01 00 0E 04 04 00 B1 01 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 7E [00:12:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3B CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:12:39]wFMCommunicate OK [00:12:39]SAM_PROTO_GetFieldsCounters done [00:12:39]requested_item shift.num is exist - process it [00:12:39]requested_item shift.opened is exist - process it [00:12:39]req_shift_opened [00:12:39]FM_GetShiftState [00:12:39]SAM_PROTO_GetShiftState [00:12:39]wFMCommunicate request_size=4 [00:12:39]MH_SAM_APDU [00:12:39]CAPDU: 80 13 01 00 [00:12:39]Write to MH i2c: E2 08 00 F5 2B 80 13 01 00 00 00 00 00 9D [00:12:39]Write i2c OK [00:12:39]MH_I2C_Read... [00:12:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:39]Read from MH i2c: E2 [00:12:39]MH_I2C_Read... [00:12:39]Read from MH i2c: E2 0E 00 [00:12:39]MH_I2C_Read... [00:12:39]Read from MH i2c: E2 0E 00 F5 2B 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 74 [00:12:39]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [00:12:39]wFMCommunicate OK [00:12:39]SAM_PROTO_GetShiftState done [00:12:39]FM_GetShiftState done [00:12:39]req_shift_opened done [00:12:39]requested_item shift.open_date is exist - process it [00:12:39]req_shift_open_date [00:12:39]req_shift_open_date done [00:12:39]produce_requested_data done [00:12:39]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118331,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [00:12:39]process_action_free print_text [00:12:39]json_value_free [00:12:39]json_value_free done [00:12:39]process_json_proto returns [00:12:39]Send response to host [00:12:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118331,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [00:12:39]free response buf [00:12:39]execute_script done [00:12:39]execute_script returns [00:12:39]free content buf [00:12:39]Sock 9.Close socket [00:12:39]Sock 9.Thread stoped [00:12:42]OFD Sender: No OFD packet to send [00:12:47]OFD Sender: No OFD packet to send [00:12:52]OFD Sender: No OFD packet to send [00:12:57]OFD Sender: No OFD packet to send [00:13:02]OFD Sender: No OFD packet to send [00:13:07]OFD Sender: No OFD packet to send [00:13:12]OFD Sender: No OFD packet to send [00:13:17]OFD Sender: No OFD packet to send [00:13:22]OFD Sender: No OFD packet to send [00:13:27]OFD Sender: No OFD packet to send [00:13:32]OFD Sender: No OFD packet to send [00:13:37]OFD Sender: No OFD packet to send [00:13:42]OFD Sender: No OFD packet to send [00:13:47]OFD Sender: No OFD packet to send [00:13:52]OFD Sender: No OFD packet to send [00:13:57]OFD Sender: No OFD packet to send [00:14:02]OFD Sender: No OFD packet to send [00:14:07]OFD Sender: No OFD packet to send [00:14:12]OFD Sender: No OFD packet to send [00:14:15]accept exits with 7 [00:14:15]New connection [00:14:15]New thread 3066953060 created [00:14:15]Thread 3067096420 joined [00:14:15]Waiting for new connection... [00:14:15] Sock 7.Parse request [00:14:15]Sock 7.Check first char [00:14:15]Sock 7.First char is OK [00:14:15]request: POST /json_proto HTTP/1.0 [00:14:15]Method: POST [00:14:15]URL: /json_proto [00:14:15]Method is POST - this is cgi request [00:14:15]url: /json_proto [00:14:15]query_string will be loaded in cgi processing [00:14:15]execute_cgi json_proto POST (null) [00:14:15]execute_cgi path=json_proto method=POST [00:14:15]POST find Content-Length [00:14:15]Host: 172.17.45.7:8080 [00:14:15]Content-Length: 820 [00:14:15]Content-Type: application/json [00:14:15] [00:14:15]POST finish read [00:14:15]Found Content-Length = 820 [00:14:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:14:15]execute_script... [00:14:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:14:15]POST & json_proto [00:14:15]process_json_proto [00:14:15]json parsed OK: [00:14:15]protocol is kg_v1.0 [00:14:15]action value=close_receipt [00:14:15]process_action close_receipt [00:14:15]cmd_close_receipt [00:14:15]MH_GetDate [00:14:15]Write to MH i2c: F0 00 00 F6 2B 10 [00:14:15]Write i2c OK [00:14:15]MH_I2C_Read... [00:14:15]Read from MH i2c: F0 [00:14:15]MH_I2C_Read... [00:14:15]Read from MH i2c: F0 09 00 [00:14:15]MH_I2C_Read... [00:14:15]Read from MH i2c: F0 09 00 F6 2B 00 59 8D A5 66 90 0F 3E 66 4D [00:14:15]GetLastDocTimeStamp 1722125364 [00:14:15]current date 1722125657 [00:14:15]FM_GetShiftState [00:14:15]SAM_PROTO_GetShiftState [00:14:15]wFMCommunicate request_size=4 [00:14:15]MH_SAM_APDU [00:14:15]CAPDU: 80 13 01 00 [00:14:15]Write to MH i2c: E2 08 00 F7 2B 80 13 01 00 00 00 00 00 9F [00:14:15]Write i2c OK [00:14:15]MH_I2C_Read... [00:14:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:15]Read from MH i2c: E2 [00:14:15]MH_I2C_Read... [00:14:15]Read from MH i2c: E2 0E 00 [00:14:15]MH_I2C_Read... [00:14:15]Read from MH i2c: E2 0E 00 F7 2B 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 76 [00:14:15]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [00:14:15]wFMCommunicate OK [00:14:15]SAM_PROTO_GetShiftState done [00:14:15]FM_GetShiftState done [00:14:15]opened in 1722125364 [00:14:15]opened+sec_in_day 1722211764 [00:14:15]quantity*price = 998982 [00:14:15]sum+1 = 998983 [00:14:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.82 ИТОГО: 9989.00 НСП 1% : 88.40 НДС 12% : 1060.87 Наличными: 0.00 Безнал.: 9989.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 1 28.07.2024 00:14 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118332 ФПД: 97582394800762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T001417&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118332&fm=97582394800762&tin=02508201610067®Number=0000000000092660&sum=998900 [00:14:16]StoreToDocumentArchive [00:14:16]shift 433 fd 118332 [00:14:16]save to /storage/0433/doc_00118332 [00:14:16]save last doc name /storage/0433/doc_00118332 to /storage/kkm_last_doc_name [00:14:16]save OK [00:14:16]Clear old archive folders... [00:14:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:14:16]tlvbuf is 01DD04A0 [00:14:16]SAM_PROTO_ClearQueue [00:14:16]wFMCommunicate request_size=4 [00:14:16]MH_SAM_APDU [00:14:16]CAPDU: 80 09 00 00 [00:14:16]Write to MH i2c: E2 08 00 04 2C 80 09 00 00 00 00 00 00 A2 [00:14:16]Write i2c OK [00:14:16]MH_I2C_Read... [00:14:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:14:16]Read from MH i2c: E2 [00:14:16]MH_I2C_Read... [00:14:16]Read from MH i2c: E2 03 00 [00:14:16]MH_I2C_Read... [00:14:16]Read from MH i2c: E2 03 00 04 2C 00 90 00 A4 [00:14:16]RAPDU: 90 00 [00:14:16]wFMCommunicate OK [00:14:16]SAM_PROTO_ClearQueue done [00:14:16]KKMCreateOFDPacket [00:14:16]OFDProtocolAddRootSTLVToBuf [00:14:16]FM_MakeSignedData [00:14:16]FM_MakeSignedData [00:14:16]SAM_PROTO_SignData [00:14:16]wFMCommunicate request_size=4 [00:14:16]MH_SAM_APDU [00:14:16]CAPDU: 80 0D 01 02 [00:14:16]Write to MH i2c: E2 08 00 05 2C 80 0D 01 02 00 00 00 00 AA [00:14:16]Write i2c OK [00:14:16]MH_I2C_Read... [00:14:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:14:16]Read from MH i2c: E2 [00:14:16]MH_I2C_Read... [00:14:16]Read from MH i2c: E2 03 00 [00:14:16]MH_I2C_Read... [00:14:16]Read from MH i2c: E2 03 00 05 2C 00 90 00 A5 [00:14:16]RAPDU: 90 00 [00:14:16]wFMCommunicate OK [00:14:16]wFMCommunicate request_size=255 [00:14:16]MH_SAM_APDU [00:14: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 59 8D A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3C CE 01 00 35 04 06 00 58 C0 2B FA [00:14:16]Write to MH i2c: E2 02 01 06 2C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 59 8D A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3C CE 01 00 35 04 06 00 58 C0 2B FA 00 00 C0 [00:14:16]Write i2c OK [00:14:16]MH_I2C_Read... [00:14:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:14:17]Read from MH i2c: E2 [00:14:17]MH_I2C_Read... [00:14:17]Read from MH i2c: E2 03 00 [00:14:17]MH_I2C_Read... [00:14:17]Read from MH i2c: E2 03 00 06 2C 00 90 00 A6 [00:14:17]RAPDU: 90 00 [00:14:17]wFMCommunicate OK [00:14:17]wFMCommunicate request_size=7 [00:14:17]MH_SAM_APDU [00:14:17]CAPDU: 80 0D 02 02 02 7A 7A [00:14:17]Write to MH i2c: E2 0A 00 07 2C 80 0D 02 02 02 00 7A 7A 00 00 A5 [00:14:17]Write i2c OK [00:14:17]MH_I2C_Read... [00:14:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:14:17]Read from MH i2c: E2 [00:14:17]MH_I2C_Read... [00:14:17]Read from MH i2c: E2 03 00 [00:14:17]MH_I2C_Read... [00:14:17]Read from MH i2c: E2 03 00 07 2C 00 90 00 A7 [00:14:17]RAPDU: 90 00 [00:14:17]wFMCommunicate OK [00:14:17]wFMCommunicate request_size=4 [00:14:17]MH_SAM_APDU [00:14:17]CAPDU: 80 0D 03 02 [00:14:17]Write to MH i2c: E2 08 00 08 2C 80 0D 03 02 00 00 00 00 AF [00:14:17]Write i2c OK [00:14:17]MH_I2C_Read... [00:14:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:14:17]Read from MH i2c: E2 [00:14:17]MH_I2C_Read... [00:14:17]Read from MH i2c: E2 0B 00 [00:14:17]MH_I2C_Read... [00:14:17]Read from MH i2c: E2 0B 00 08 2C 00 BF 1A 34 0D 10 DD 70 07 90 00 2E [00:14:17]RAPDU: BF 1A 34 0D 10 DD 70 07 90 00 [00:14:17]wFMCommunicate OK [00:14:17]SAM_PROTO_SignData done [00:14:17]FM_MakeSignedData done [00:14:17]CreateOFDProtocolMessage [00:14:17]wFMCommunicate request_size=4 [00:14:17]MH_SAM_APDU [00:14:17]CAPDU: 80 11 00 00 [00:14:17]Write to MH i2c: E2 08 00 09 2C 80 11 00 00 00 00 00 00 AF [00:14:17]Write i2c OK [00:14:17]MH_I2C_Read... [00:14:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:14:17]Read from MH i2c: E2 [00:14:17]MH_I2C_Read... [00:14:17]Read from MH i2c: E2 17 00 [00:14:17]MH_I2C_Read... [00:14:17]Read from MH i2c: E2 17 00 09 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0A [00:14:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:14:17]wFMCommunicate OK [00:14:17]CreateOFDProtocolMessage done [00:14:17]OFDSenderStorePacket 118332 [00:14:17]StoreOFDPacket docnum=118332 [00:14:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C9 15 04 01 38 FF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 59 8D A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3C CE 01 00 35 04 06 00 58 C0 2B FA 7A 7A BF 1A 34 0D 10 DD 70 07 [00:14:17]CheckFolder [00:14:17]dirname=/storage/ofd_packets [00:14:17]CheckFolder done [00:14:17]ProducePacketName [00:14:17]name=ofd_packets/00118332 [00:14:17]NVStorageSaveData ofd_packets/00118332 [00:14:17]File name is /storage/ofd_packets/00118332 [00:14:17]Write 298 bytes [00:14:17]NVStorageSaveData done [00:14:17]OFDSenderStorePacket done [00:14:17]KKMCreateOFDPacket done [00:14:17]NVStorageSaveData kkm_last_timestamp [00:14:17]File name is /storage/kkm_last_timestamp [00:14:17]Write 4 bytes [00:14:17]NVStorageSaveData done [00:14:17]ExternCall_PrintAddStr [00:14:17]wPrintStart [00:14:17]Write to MH i2c: 01 00 00 0A 2C 36 [00:14:17]Write i2c OK [00:14:17]MH_I2C_Read... [00:14:17]Read from MH i2c: 01 [00:14:17]MH_I2C_Read... [00:14:17]Read from MH i2c: 01 07 00 [00:14:17]MH_I2C_Read... [00:14:17]Read from MH i2c: 01 07 00 0A 2C 00 00 00 00 00 FF 0F 4B [00:14:17]RasterBufferAndPrint [00:14:17]line Счет N : (1)949205 [00:14:17]line ИНН: 02508201610067 [00:14:17]line Контрольно-Кассовый Чек [00:14:17]line ПРОДАЖА [00:14:17]line ТРК (МРК, ГНК) : 21 [00:14:17]line Товар: 2710194800 [00:14:17]line ДТ-К-5 [00:14:17]line 131.100 * 76.20 [00:14:17]line = 9989.82 [00:14:17]line НДС 12% НСП 1% [00:14:17]line > о реализуемом товаре [00:14:17]line ОКРУГЛЕНИЕ: -0.82 [00:14:17]line ИТОГО: 9989.00 [00:14:17]line НСП 1% : 88.40 [00:14:17]line НДС 12% : 1060.87 [00:14:17]line Наличными: 0.00 [00:14:17]line Безнал.: 9989.00 [00:14:17]line Место: АЗС № 134 "Партнер Нефть" [00:14:17]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [00:14:17]line СНО: Общий режим [00:14:17]line Чек 1 28.07.2024 00:14 [00:14:17]line Смена: 433 ФФД: 1.0 [00:14:17]line ЗНМ: 0300000044 [00:14:17]line РНМ: 0000000000092660 [00:14:17]line Версия ККМ: 001 [00:14:17]line Платежная система: O! деньги [00:14:17]line ФМ: 0000000000874939 [00:14:17]line ФД: 118332 [00:14:17]line ФПД: 97582394800762 [00:14:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T001417&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118332&fm=97582394800762&tin=02508201610067®Number=0000000000092660&sum=998900 [00:14:17]OFD Sender: Processing packet 118332 [packets to send 86, broken 85] [00:14:17]ProducePacketName [00:14:17]name=ofd_packets/00118332 [00:14:17]OFD Sender: To server: pG, [00:14:17]CommunicateWithHost lk.salyk.kg:30040 [00:14:17]ConnectInit lk.salyk.kg [00:14:17]written 0, free lines is 4095 [00:14:17]Connected sock=10 [00:14:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C9 15 04 01 38 FF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 59 8D A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3C CE 01 00 35 04 06 00 58 C0 2B FA 7A 7A BF 1A 34 0D 10 DD 70 07 [00:14:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 BC 22 47 00 F9 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 34 39 33 39 10 04 04 00 3C CE 01 00 F4 03 04 00 EB 3A A5 66 B6 04 01 00 00 E6 63 DA 63 36 53 F9 47 [00:14:17]CommunicateWithHost err = 0 [00:14:17]CheckOFDResponse [00:14:17]1017 (14) - 77093643461234 [00:14:17]1041 (16) - 0000000000874939 [00:14:17]1040 (4) - 118332 [00:14:17]1012 (4) - 27.07.2024 18:22 [00:14:17]1206 (1) - 0 [00:14:17]OFD Sender: Remove packet 118332 [00:14:17]ProducePacketName [00:14:17]name=ofd_packets/00118332 [00:14:17]NVStorageDeleteData [00:14:17]Write to MH i2c: 01 00 00 34 2C 60 [00:14:17]Write i2c OK [00:14:17]MH_I2C_Read... [00:14:17]Read from MH i2c: 01 [00:14:17]MH_I2C_Read... [00:14:17]Read from MH i2c: 01 07 00 [00:14:17]MH_I2C_Read... [00:14:17]Read from MH i2c: 01 07 00 34 2C 00 00 00 00 00 DC 0C 4F [00:14:17]RasterBufferAndPrint [00:14:17]line [00:14:17]line [00:14:17]line [00:14:17]line [00:14:17]line [00:14:17]written 0, free lines is 3298 [00:14:18]MH_Cut [00:14:18]Write to MH i2c: D1 01 00 3B 2C 01 39 [00:14:18]Write i2c OK [00:14:18]MH_I2C_Read... [00:14:18]Read from MH i2c: D1 [00:14:18]MH_I2C_Read... [00:14:18]Read from MH i2c: D1 01 00 [00:14:18]MH_I2C_Read... [00:14:18]Read from MH i2c: D1 01 00 3B 2C 00 38 [00:14:18]Write to MH i2c: 01 00 00 3C 2C 68 [00:14:18]Write i2c OK [00:14:18]MH_I2C_Read... [00:14:18]OFD Sender: No OFD packet to send [00:14:18]*** Cut start [00:14:18]*** Partial cut [00:14:18]*** CUTSNS_PIN = 1 [00:14:18]*** CUTSNS_PIN = 0 [00:14:19]*** Brake cut motor [00:14:19]Read from MH i2c: 01 [00:14:19]MH_I2C_Read... [00:14:19]*** Stop cut motor [00:14:19]*** Cut end [00:14:19]Read from MH i2c: 01 07 00 [00:14:19]MH_I2C_Read... [00:14:19]Read from MH i2c: 01 07 00 3C 2C 00 00 00 00 00 FF 0F 7D [00:14:19]process_action close_receipt done [00:14:19]requested_data is exist [00:14:19]produce_requested_data [00:14:19]requested_item fm.sn is exist - process it [00:14:19]wFMCommunicate request_size=4 [00:14:19]MH_SAM_APDU [00:14:19]CAPDU: 80 11 00 00 [00:14:19]Write to MH i2c: E2 08 00 3D 2C 80 11 00 00 00 00 00 00 E3 [00:14:19]Write i2c OK [00:14:19]MH_I2C_Read... [00:14:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:14:19]Read from MH i2c: E2 [00:14:19]MH_I2C_Read... [00:14:19]Read from MH i2c: E2 17 00 [00:14:19]MH_I2C_Read... [00:14:19]Read from MH i2c: E2 17 00 3D 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3E [00:14:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:14:19]wFMCommunicate OK [00:14:19]requested_item fd.num is exist - process it [00:14:19]SAM_PROTO_GetFieldsCounters [00:14:19]wFMCommunicate request_size=4 [00:14:19]MH_SAM_APDU [00:14:19]CAPDU: 80 13 00 00 [00:14:19]Write to MH i2c: E2 08 00 3E 2C 80 13 00 00 00 00 00 00 E6 [00:14:19]Write i2c OK [00:14:19]MH_I2C_Read... [00:14:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:14:19]Read from MH i2c: E2 [00:14:19]MH_I2C_Read... [00:14:19]Read from MH i2c: E2 62 00 [00:14:19]MH_I2C_Read... [00:14:19]Read from MH i2c: E2 62 00 3E 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3C CE 01 00 0E 04 04 00 B1 01 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 CD [00:14:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3C CE 01 00 0E 04 04 00 B1 01 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:14:19]wFMCommunicate OK [00:14:19]SAM_PROTO_GetFieldsCounters done [00:14:19]requested_item shift.num is exist - process it [00:14:19]requested_item shift.opened is exist - process it [00:14:19]req_shift_opened [00:14:19]FM_GetShiftState [00:14:19]SAM_PROTO_GetShiftState [00:14:19]wFMCommunicate request_size=4 [00:14:19]MH_SAM_APDU [00:14:19]CAPDU: 80 13 01 00 [00:14:19]Write to MH i2c: E2 08 00 3F 2C 80 13 01 00 00 00 00 00 E8 [00:14:19]Write i2c OK [00:14:19]MH_I2C_Read... [00:14:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:19]Read from MH i2c: E2 [00:14:19]MH_I2C_Read... [00:14:19]Read from MH i2c: E2 0E 00 [00:14:19]MH_I2C_Read... [00:14:19]Read from MH i2c: E2 0E 00 3F 2C 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 BF [00:14:19]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [00:14:19]wFMCommunicate OK [00:14:19]SAM_PROTO_GetShiftState done [00:14:19]FM_GetShiftState done [00:14:19]req_shift_opened done [00:14:19]requested_item shift.open_date is exist - process it [00:14:19]req_shift_open_date [00:14:19]req_shift_open_date done [00:14:19]produce_requested_data done [00:14:19]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118332,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [00:14:19]process_action_free close_receipt [00:14:19]json_value_free [00:14:19]json_value_free done [00:14:19]process_json_proto returns [00:14:19]Send response to host [00:14:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118332,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [00:14:19]free response buf [00:14:19]execute_script done [00:14:19]execute_script returns [00:14:19]free content buf [00:14:19]Sock 7.Close socket [00:14:19]Sock 7.Thread stoped [00:14:23]OFD Sender: No OFD packet to send [00:14:28]OFD Sender: No OFD packet to send [00:14:33]OFD Sender: No OFD packet to send [00:14:38]OFD Sender: No OFD packet to send [00:14:43]OFD Sender: No OFD packet to send [00:14:48]OFD Sender: No OFD packet to send [00:14:53]OFD Sender: No OFD packet to send [00:14:58]OFD Sender: No OFD packet to send [00:15:03]OFD Sender: No OFD packet to send [00:15:08]OFD Sender: No OFD packet to send [00:15:13]OFD Sender: No OFD packet to send [00:15:18]OFD Sender: No OFD packet to send [00:15:23]OFD Sender: No OFD packet to send [00:15:28]OFD Sender: No OFD packet to send [00:15:33]OFD Sender: No OFD packet to send [00:15:38]OFD Sender: No OFD packet to send [00:15:43]OFD Sender: No OFD packet to send [00:15:48]OFD Sender: No OFD packet to send [00:15:53]OFD Sender: No OFD packet to send [00:15:58]OFD Sender: No OFD packet to send [00:16:03]OFD Sender: No OFD packet to send [00:16:08]OFD Sender: No OFD packet to send [00:16:13]OFD Sender: No OFD packet to send [00:16:18]OFD Sender: No OFD packet to send [00:16:23]OFD Sender: No OFD packet to send [00:16:28]OFD Sender: No OFD packet to send [00:16:33]OFD Sender: No OFD packet to send [00:16:38]OFD Sender: No OFD packet to send [00:16:43]OFD Sender: No OFD packet to send [00:16:48]OFD Sender: No OFD packet to send [00:16:53]OFD Sender: No OFD packet to send [00:16:58]OFD Sender: No OFD packet to send [00:17:03]OFD Sender: No OFD packet to send [00:17:08]OFD Sender: No OFD packet to send [00:17:13]OFD Sender: No OFD packet to send [00:17:18]OFD Sender: No OFD packet to send [00:17:23]OFD Sender: No OFD packet to send [00:17:28]OFD Sender: No OFD packet to send [00:17:33]OFD Sender: No OFD packet to send [00:17:38]OFD Sender: No OFD packet to send [00:17:43]OFD Sender: No OFD packet to send [00:17:48]OFD Sender: No OFD packet to send [00:17:53]OFD Sender: No OFD packet to send [00:17:58]OFD Sender: No OFD packet to send [00:18:03]OFD Sender: No OFD packet to send [00:18:06]accept exits with 9 [00:18:06]New connection [00:18:06]New thread 3067096420 created [00:18:06]Thread 3066953060 joined [00:18:06]Waiting for new connection... [00:18:06] Sock 9.Parse request [00:18:06]Sock 9.Check first char [00:18:06]Sock 9.First char is OK [00:18:06]request: POST /json_proto HTTP/1.0 [00:18:06]Method: POST [00:18:06]URL: /json_proto [00:18:06]Method is POST - this is cgi request [00:18:06]url: /json_proto [00:18:06]query_string will be loaded in cgi processing [00:18:06]execute_cgi json_proto POST (null) [00:18:06]execute_cgi path=json_proto method=POST [00:18:06]POST find Content-Length [00:18:06]Host: 172.17.45.7:8080 [00:18:06]Content-Length: 820 [00:18:06]Content-Type: application/json [00:18:06] [00:18:06]POST finish read [00:18:06]Found Content-Length = 820 [00:18:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:06]execute_script... [00:18:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:06]POST & json_proto [00:18:06]process_json_proto [00:18:06]json parsed OK: [00:18:06]protocol is kg_v1.0 [00:18:06]action value=close_receipt [00:18:06]process_action close_receipt [00:18:06]cmd_close_receipt [00:18:06]MH_GetDate [00:18:06]Write to MH i2c: F0 00 00 40 2C 5B [00:18:06]Write i2c OK [00:18:06]MH_I2C_Read... [00:18:06]Read from MH i2c: F0 [00:18:06]MH_I2C_Read... [00:18:06]Read from MH i2c: F0 09 00 [00:18:06]MH_I2C_Read... [00:18:06]Read from MH i2c: F0 09 00 40 2C 00 41 8E A5 66 90 0F 3E 66 81 [00:18:06]GetLastDocTimeStamp 1722125657 [00:18:06]current date 1722125889 [00:18:06]FM_GetShiftState [00:18:06]SAM_PROTO_GetShiftState [00:18:06]wFMCommunicate request_size=4 [00:18:06]MH_SAM_APDU [00:18:06]CAPDU: 80 13 01 00 [00:18:06]Write to MH i2c: E2 08 00 41 2C 80 13 01 00 00 00 00 00 EA [00:18:06]Write i2c OK [00:18:06]MH_I2C_Read... [00:18:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:06]Read from MH i2c: E2 [00:18:06]MH_I2C_Read... [00:18:06]Read from MH i2c: E2 0E 00 [00:18:06]MH_I2C_Read... [00:18:06]Read from MH i2c: E2 0E 00 41 2C 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 C1 [00:18:06]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [00:18:06]wFMCommunicate OK [00:18:06]SAM_PROTO_GetShiftState done [00:18:06]FM_GetShiftState done [00:18:06]opened in 1722125364 [00:18:06]opened+sec_in_day 1722211764 [00:18:06]quantity*price = 998982 [00:18:06]sum+1 = 998983 [00:18:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.82 ИТОГО: 9989.00 НСП 1% : 88.40 НДС 12% : 1060.87 Наличными: 0.00 Безнал.: 9989.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 2 28.07.2024 00:18 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118333 ФПД: 39960193694820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T001809&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118333&fm=39960193694820&tin=02508201610067®Number=0000000000092660&sum=998900 [00:18:08]StoreToDocumentArchive [00:18:08]shift 433 fd 118333 [00:18:08]save to /storage/0433/doc_00118333 [00:18:08]save last doc name /storage/0433/doc_00118333 to /storage/kkm_last_doc_name [00:18:08]save OK [00:18:08]Clear old archive folders... [00:18:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:18:08]tlvbuf is 01E01C70 [00:18:08]SAM_PROTO_ClearQueue [00:18:08]wFMCommunicate request_size=4 [00:18:08]MH_SAM_APDU [00:18:08]CAPDU: 80 09 00 00 [00:18:08]Write to MH i2c: E2 08 00 4E 2C 80 09 00 00 00 00 00 00 EC [00:18:08]Write i2c OK [00:18:08]MH_I2C_Read... [00:18:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:18:08]Read from MH i2c: E2 [00:18:08]MH_I2C_Read... [00:18:08]Read from MH i2c: E2 03 00 [00:18:08]MH_I2C_Read... [00:18:08]Read from MH i2c: E2 03 00 4E 2C 00 90 00 EE [00:18:08]RAPDU: 90 00 [00:18:08]wFMCommunicate OK [00:18:08]SAM_PROTO_ClearQueue done [00:18:08]KKMCreateOFDPacket [00:18:08]OFDProtocolAddRootSTLVToBuf [00:18:08]FM_MakeSignedData [00:18:08]FM_MakeSignedData [00:18:08]SAM_PROTO_SignData [00:18:08]wFMCommunicate request_size=4 [00:18:08]MH_SAM_APDU [00:18:08]CAPDU: 80 0D 01 02 [00:18:08]Write to MH i2c: E2 08 00 4F 2C 80 0D 01 02 00 00 00 00 F4 [00:18:08]Write i2c OK [00:18:08]MH_I2C_Read... [00:18:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:18:08]Read from MH i2c: E2 [00:18:08]MH_I2C_Read... [00:18:08]Read from MH i2c: E2 03 00 [00:18:08]MH_I2C_Read... [00:18:08]Read from MH i2c: E2 03 00 4F 2C 00 90 00 EF [00:18:08]RAPDU: 90 00 [00:18:08]wFMCommunicate OK [00:18:08]wFMCommunicate request_size=255 [00:18:08]MH_SAM_APDU [00:18: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 41 8E A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3D CE 01 00 35 04 06 00 24 57 F5 26 [00:18:08]Write to MH i2c: E2 02 01 50 2C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 41 8E A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3D CE 01 00 35 04 06 00 24 57 F5 26 00 00 4E [00:18:08]Write i2c OK [00:18:08]MH_I2C_Read... [00:18:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:18:08]Read from MH i2c: E2 [00:18:08]MH_I2C_Read... [00:18:08]Read from MH i2c: E2 03 00 [00:18:08]MH_I2C_Read... [00:18:08]Read from MH i2c: E2 03 00 50 2C 00 90 00 F0 [00:18:08]RAPDU: 90 00 [00:18:08]wFMCommunicate OK [00:18:08]wFMCommunicate request_size=7 [00:18:08]MH_SAM_APDU [00:18:08]CAPDU: 80 0D 02 02 02 7C 64 [00:18:08]Write to MH i2c: E2 0A 00 51 2C 80 0D 02 02 02 00 7C 64 00 00 DB [00:18:08]Write i2c OK [00:18:08]MH_I2C_Read... [00:18:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:18:08]Read from MH i2c: E2 [00:18:08]MH_I2C_Read... [00:18:08]Read from MH i2c: E2 03 00 [00:18:08]MH_I2C_Read... [00:18:08]Read from MH i2c: E2 03 00 51 2C 00 90 00 F1 [00:18:08]RAPDU: 90 00 [00:18:08]wFMCommunicate OK [00:18:08]wFMCommunicate request_size=4 [00:18:08]MH_SAM_APDU [00:18:08]CAPDU: 80 0D 03 02 [00:18:08]Write to MH i2c: E2 08 00 52 2C 80 0D 03 02 00 00 00 00 F9 [00:18:08]Write i2c OK [00:18:08]MH_I2C_Read... [00:18:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:18:08]Read from MH i2c: E2 [00:18:08]MH_I2C_Read... [00:18:08]Read from MH i2c: E2 0B 00 [00:18:08]MH_I2C_Read... [00:18:08]Read from MH i2c: E2 0B 00 52 2C 00 C4 A3 27 D1 4F E3 33 35 90 00 F3 [00:18:08]RAPDU: C4 A3 27 D1 4F E3 33 35 90 00 [00:18:08]wFMCommunicate OK [00:18:08]SAM_PROTO_SignData done [00:18:08]FM_MakeSignedData done [00:18:08]CreateOFDProtocolMessage [00:18:08]wFMCommunicate request_size=4 [00:18:08]MH_SAM_APDU [00:18:08]CAPDU: 80 11 00 00 [00:18:08]Write to MH i2c: E2 08 00 53 2C 80 11 00 00 00 00 00 00 F9 [00:18:08]Write i2c OK [00:18:08]MH_I2C_Read... [00:18:08]OFD Sender: No OFD packet to send [00:18:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:18:08]Read from MH i2c: E2 [00:18:08]MH_I2C_Read... [00:18:08]Read from MH i2c: E2 17 00 [00:18:08]MH_I2C_Read... [00:18:08]Read from MH i2c: E2 17 00 53 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 54 [00:18:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:18:08]wFMCommunicate OK [00:18:08]CreateOFDProtocolMessage done [00:18:08]OFDSenderStorePacket 118333 [00:18:08]StoreOFDPacket docnum=118333 [00:18:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 A8 8E 04 01 E6 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 41 8E A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3D CE 01 00 35 04 06 00 24 57 F5 26 7C 64 C4 A3 27 D1 4F E3 33 35 [00:18:08]CheckFolder [00:18:08]dirname=/storage/ofd_packets [00:18:08]CheckFolder done [00:18:08]ProducePacketName [00:18:08]name=ofd_packets/00118333 [00:18:08]NVStorageSaveData ofd_packets/00118333 [00:18:08]File name is /storage/ofd_packets/00118333 [00:18:08]Write 298 bytes [00:18:08]NVStorageSaveData done [00:18:08]OFDSenderStorePacket done [00:18:08]KKMCreateOFDPacket done [00:18:08]NVStorageSaveData kkm_last_timestamp [00:18:08]File name is /storage/kkm_last_timestamp [00:18:08]Write 4 bytes [00:18:08]NVStorageSaveData done [00:18:08]ExternCall_PrintAddStr [00:18:08]wPrintStart [00:18:08]Write to MH i2c: 01 00 00 54 2C 80 [00:18:08]Write i2c OK [00:18:08]MH_I2C_Read... [00:18:08]Read from MH i2c: 01 [00:18:08]MH_I2C_Read... [00:18:08]Read from MH i2c: 01 07 00 [00:18:08]MH_I2C_Read... [00:18:08]Read from MH i2c: 01 07 00 54 2C 00 00 00 00 00 FF 0F 95 [00:18:08]RasterBufferAndPrint [00:18:08]line Счет N : (1)949207 [00:18:08]line ИНН: 02508201610067 [00:18:08]line Контрольно-Кассовый Чек [00:18:08]line ПРОДАЖА [00:18:08]line ТРК (МРК, ГНК) : 21 [00:18:08]line Товар: 2710194800 [00:18:08]line ДТ-К-5 [00:18:08]line 131.100 * 76.20 [00:18:08]line = 9989.82 [00:18:08]line НДС 12% НСП 1% [00:18:08]line > о реализуемом товаре [00:18:08]line ОКРУГЛЕНИЕ: -0.82 [00:18:08]line ИТОГО: 9989.00 [00:18:08]line НСП 1% : 88.40 [00:18:08]line НДС 12% : 1060.87 [00:18:08]line Наличными: 0.00 [00:18:08]line Безнал.: 9989.00 [00:18:08]line Место: АЗС № 134 "Партнер Нефть" [00:18:08]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [00:18:08]line СНО: Общий режим [00:18:08]line Чек 2 28.07.2024 00:18 [00:18:08]line Смена: 433 ФФД: 1.0 [00:18:08]line ЗНМ: 0300000044 [00:18:08]line РНМ: 0000000000092660 [00:18:08]line Версия ККМ: 001 [00:18:08]line Платежная система: O! деньги [00:18:08]line ФМ: 0000000000874939 [00:18:08]line ФД: 118333 [00:18:08]line ФПД: 39960193694820 [00:18:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T001809&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118333&fm=39960193694820&tin=02508201610067®Number=0000000000092660&sum=998900 [00:18:08]OFD Sender: Processing packet 118333 [packets to send 86, broken 85] [00:18:08]ProducePacketName [00:18:08]name=ofd_packets/00118333 [00:18:08]OFD Sender: To server: pG, [00:18:08]CommunicateWithHost lk.salyk.kg:30040 [00:18:08]ConnectInit lk.salyk.kg [00:18:08]written 0, free lines is 4095 [00:18:09]Connected sock=10 [00:18:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 A8 8E 04 01 E6 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 41 8E A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3D CE 01 00 35 04 06 00 24 57 F5 26 7C 64 C4 A3 27 D1 4F E3 33 35 [00:18:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 AC 4F 47 00 BD 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3D CE 01 00 F4 03 04 00 D2 3B A5 66 B6 04 01 00 00 1E AB C8 19 CB CB 00 E1 [00:18:09]CommunicateWithHost err = 0 [00:18:09]CheckOFDResponse [00:18:09]1017 (14) - 77093643461234 [00:18:09]1041 (16) - 0000000000874939 [00:18:09]1040 (4) - 118333 [00:18:09]1012 (4) - 27.07.2024 18:26 [00:18:09]1206 (1) - 0 [00:18:09]OFD Sender: Remove packet 118333 [00:18:09]ProducePacketName [00:18:09]name=ofd_packets/00118333 [00:18:09]NVStorageDeleteData [00:18:09]Write to MH i2c: 01 00 00 7E 2C AA [00:18:09]Write i2c OK [00:18:09]MH_I2C_Read... [00:18:09]Read from MH i2c: 01 [00:18:09]MH_I2C_Read... [00:18:09]Read from MH i2c: 01 07 00 [00:18:09]MH_I2C_Read... [00:18:09]Read from MH i2c: 01 07 00 7E 2C 00 00 00 00 00 DC 0C 99 [00:18:09]RasterBufferAndPrint [00:18:09]line [00:18:09]line [00:18:09]line [00:18:09]line [00:18:09]line [00:18:09]written 0, free lines is 3298 [00:18:09]MH_Cut [00:18:09]Write to MH i2c: D1 01 00 85 2C 01 83 [00:18:09]Write i2c OK [00:18:09]MH_I2C_Read... [00:18:09]Read from MH i2c: D1 [00:18:09]MH_I2C_Read... [00:18:09]Read from MH i2c: D1 01 00 [00:18:09]MH_I2C_Read... [00:18:09]Read from MH i2c: D1 01 00 85 2C 00 82 [00:18:09]Write to MH i2c: 01 00 00 86 2C B2 [00:18:09]Write i2c OK [00:18:09]MH_I2C_Read... [00:18:09]OFD Sender: No OFD packet to send [00:18:10]*** Cut start [00:18:10]*** Partial cut [00:18:10]*** CUTSNS_PIN = 1 [00:18:10]*** CUTSNS_PIN = 0 [00:18:10]*** Brake cut motor [00:18:10]Read from MH i2c: 01 [00:18:10]MH_I2C_Read... [00:18:10]*** Stop cut motor [00:18:10]*** Cut end [00:18:10]Read from MH i2c: 01 07 00 [00:18:10]MH_I2C_Read... [00:18:10]Read from MH i2c: 01 07 00 86 2C 00 00 00 00 00 FF 0F C7 [00:18:10]process_action close_receipt done [00:18:10]requested_data is exist [00:18:10]produce_requested_data [00:18:10]requested_item fm.sn is exist - process it [00:18:10]wFMCommunicate request_size=4 [00:18:10]MH_SAM_APDU [00:18:10]CAPDU: 80 11 00 00 [00:18:10]Write to MH i2c: E2 08 00 87 2C 80 11 00 00 00 00 00 00 2D [00:18:10]Write i2c OK [00:18:10]MH_I2C_Read... [00:18:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:18:10]Read from MH i2c: E2 [00:18:10]MH_I2C_Read... [00:18:10]Read from MH i2c: E2 17 00 [00:18:10]MH_I2C_Read... [00:18:10]Read from MH i2c: E2 17 00 87 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 88 [00:18:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:18:10]wFMCommunicate OK [00:18:10]requested_item fd.num is exist - process it [00:18:10]SAM_PROTO_GetFieldsCounters [00:18:10]wFMCommunicate request_size=4 [00:18:10]MH_SAM_APDU [00:18:10]CAPDU: 80 13 00 00 [00:18:10]Write to MH i2c: E2 08 00 88 2C 80 13 00 00 00 00 00 00 30 [00:18:10]Write i2c OK [00:18:10]MH_I2C_Read... [00:18:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:18:10]Read from MH i2c: E2 [00:18:10]MH_I2C_Read... [00:18:10]Read from MH i2c: E2 62 00 [00:18:10]MH_I2C_Read... [00:18:10]Read from MH i2c: E2 62 00 88 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3D CE 01 00 0E 04 04 00 B1 01 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 1B [00:18:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3D CE 01 00 0E 04 04 00 B1 01 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:18:11]wFMCommunicate OK [00:18:11]SAM_PROTO_GetFieldsCounters done [00:18:11]requested_item shift.num is exist - process it [00:18:11]requested_item shift.opened is exist - process it [00:18:11]req_shift_opened [00:18:11]FM_GetShiftState [00:18:11]SAM_PROTO_GetShiftState [00:18:11]wFMCommunicate request_size=4 [00:18:11]MH_SAM_APDU [00:18:11]CAPDU: 80 13 01 00 [00:18:11]Write to MH i2c: E2 08 00 89 2C 80 13 01 00 00 00 00 00 32 [00:18:11]Write i2c OK [00:18:11]MH_I2C_Read... [00:18:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:11]Read from MH i2c: E2 [00:18:11]MH_I2C_Read... [00:18:11]Read from MH i2c: E2 0E 00 [00:18:11]MH_I2C_Read... [00:18:11]Read from MH i2c: E2 0E 00 89 2C 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 09 [00:18:11]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [00:18:11]wFMCommunicate OK [00:18:11]SAM_PROTO_GetShiftState done [00:18:11]FM_GetShiftState done [00:18:11]req_shift_opened done [00:18:11]requested_item shift.open_date is exist - process it [00:18:11]req_shift_open_date [00:18:11]req_shift_open_date done [00:18:11]produce_requested_data done [00:18:11]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118333,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [00:18:11]process_action_free close_receipt [00:18:11]json_value_free [00:18:11]json_value_free done [00:18:11]process_json_proto returns [00:18:11]Send response to host [00:18:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118333,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [00:18:11]free response buf [00:18:11]execute_script done [00:18:11]execute_script returns [00:18:11]free content buf [00:18:11]Sock 9.Close socket [00:18:11]Sock 9.Thread stoped [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:49]OFD Sender: No OFD packet to send [00:19:54]OFD Sender: No OFD packet to send [00:19:59]OFD Sender: No OFD packet to send [00:20:04]OFD Sender: No OFD packet to send [00:20:09]OFD Sender: No OFD packet to send [00:20:14]OFD Sender: No OFD packet to send [00:20:19]OFD Sender: No OFD packet to send [00:20:22]accept exits with 7 [00:20:22]New connection [00:20:22]New thread 3066953060 created [00:20:22]Thread 3067096420 joined [00:20:22]Waiting for new connection... [00:20:22] Sock 7.Parse request [00:20:22]Sock 7.Check first char [00:20:22]Sock 7.First char is OK [00:20:22]request: POST /json_proto HTTP/1.0 [00:20:22]Method: POST [00:20:22]URL: /json_proto [00:20:22]Method is POST - this is cgi request [00:20:22]url: /json_proto [00:20:22]query_string will be loaded in cgi processing [00:20:22]execute_cgi json_proto POST (null) [00:20:22]execute_cgi path=json_proto method=POST [00:20:22]POST find Content-Length [00:20:22]Host: 172.17.45.7:8080 [00:20:22]Content-Length: 682 [00:20:22]Content-Type: application/json [00:20:22] [00:20:22]POST finish read [00:20:22]Found Content-Length = 682 [00:20:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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" ] } } [00:20:22]execute_script... [00:20:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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" ] } } [00:20:22]POST & json_proto [00:20:22]process_json_proto [00:20:22]json parsed OK: [00:20:22]protocol is kg_v1.0 [00:20:22]action value=close_receipt [00:20:22]process_action close_receipt [00:20:22]cmd_close_receipt [00:20:22]MH_GetDate [00:20:22]Write to MH i2c: F0 00 00 8A 2C A5 [00:20:22]Write i2c OK [00:20:22]MH_I2C_Read... [00:20:22]Read from MH i2c: F0 [00:20:22]MH_I2C_Read... [00:20:22]Read from MH i2c: F0 09 00 [00:20:22]MH_I2C_Read... [00:20:22]Read from MH i2c: F0 09 00 8A 2C 00 C8 8E A5 66 90 0F 3E 66 52 [00:20:22]GetLastDocTimeStamp 1722125889 [00:20:22]current date 1722126024 [00:20:22]FM_GetShiftState [00:20:22]SAM_PROTO_GetShiftState [00:20:22]wFMCommunicate request_size=4 [00:20:22]MH_SAM_APDU [00:20:22]CAPDU: 80 13 01 00 [00:20:22]Write to MH i2c: E2 08 00 8B 2C 80 13 01 00 00 00 00 00 34 [00:20:22]Write i2c OK [00:20:22]MH_I2C_Read... [00:20:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:22]Read from MH i2c: E2 [00:20:22]MH_I2C_Read... [00:20:22]Read from MH i2c: E2 0E 00 [00:20:22]MH_I2C_Read... [00:20:22]Read from MH i2c: E2 0E 00 8B 2C 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 0B [00:20:22]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [00:20:22]wFMCommunicate OK [00:20:22]SAM_PROTO_GetShiftState done [00:20:22]FM_GetShiftState done [00:20:22]opened in 1722125364 [00:20:22]opened+sec_in_day 1722211764 [00:20:22]quantity*price = 150041 [00:20:22]sum+1 = 150042 [00:20:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 3 28.07.2024 00:20 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118334 ФПД: 168578801296814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T002024&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118334&fm=168578801296814&tin=02508201610067®Number=0000000000092660&sum=150000 [00:20:23]StoreToDocumentArchive [00:20:23]shift 433 fd 118334 [00:20:23]save to /storage/0433/doc_00118334 [00:20:23]save last doc name /storage/0433/doc_00118334 to /storage/kkm_last_doc_name [00:20:23]save OK [00:20:23]Clear old archive folders... [00:20:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:20:23]tlvbuf is 01E34660 [00:20:23]SAM_PROTO_ClearQueue [00:20:23]wFMCommunicate request_size=4 [00:20:23]MH_SAM_APDU [00:20:23]CAPDU: 80 09 00 00 [00:20:23]Write to MH i2c: E2 08 00 98 2C 80 09 00 00 00 00 00 00 36 [00:20:23]Write i2c OK [00:20:23]MH_I2C_Read... [00:20:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:20:24]Read from MH i2c: E2 [00:20:24]MH_I2C_Read... [00:20:24]Read from MH i2c: E2 03 00 [00:20:24]MH_I2C_Read... [00:20:24]Read from MH i2c: E2 03 00 98 2C 00 90 00 38 [00:20:24]RAPDU: 90 00 [00:20:24]wFMCommunicate OK [00:20:24]SAM_PROTO_ClearQueue done [00:20:24]KKMCreateOFDPacket [00:20:24]OFDProtocolAddRootSTLVToBuf [00:20:24]FM_MakeSignedData [00:20:24]FM_MakeSignedData [00:20:24]SAM_PROTO_SignData [00:20:24]wFMCommunicate request_size=4 [00:20:24]MH_SAM_APDU [00:20:24]CAPDU: 80 0D 01 02 [00:20:24]Write to MH i2c: E2 08 00 99 2C 80 0D 01 02 00 00 00 00 3E [00:20:24]Write i2c OK [00:20:24]MH_I2C_Read... [00:20:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:20:24]Read from MH i2c: E2 [00:20:24]MH_I2C_Read... [00:20:24]Read from MH i2c: E2 03 00 [00:20:24]MH_I2C_Read... [00:20:24]Read from MH i2c: E2 03 00 99 2C 00 90 00 39 [00:20:24]RAPDU: 90 00 [00:20:24]wFMCommunicate OK [00:20:24]wFMCommunicate request_size=255 [00:20:24]MH_SAM_APDU [00:20: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 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 03 00 00 00 F4 03 04 00 C8 8E A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3E CE 01 00 35 04 06 00 99 [00:20:24]Write to MH i2c: E2 02 01 9A 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 03 00 00 00 F4 03 04 00 C8 8E A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3E CE 01 00 35 04 06 00 99 00 00 F3 [00:20:24]Write i2c OK [00:20:24]MH_I2C_Read... [00:20:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:24]Read from MH i2c: E2 [00:20:24]MH_I2C_Read... [00:20:24]Read from MH i2c: E2 03 00 [00:20:24]MH_I2C_Read... [00:20:24]Read from MH i2c: E2 03 00 9A 2C 00 90 00 3A [00:20:24]RAPDU: 90 00 [00:20:24]wFMCommunicate OK [00:20:24]wFMCommunicate request_size=10 [00:20:24]MH_SAM_APDU [00:20:24]CAPDU: 80 0D 02 02 05 52 4F 91 65 AE [00:20:24]Write to MH i2c: E2 0D 00 9B 2C 80 0D 02 02 05 00 52 4F 91 65 AE 00 00 90 [00:20:24]Write i2c OK [00:20:24]MH_I2C_Read... [00:20:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:24]Read from MH i2c: E2 [00:20:24]MH_I2C_Read... [00:20:24]Read from MH i2c: E2 03 00 [00:20:24]MH_I2C_Read... [00:20:24]Read from MH i2c: E2 03 00 9B 2C 00 90 00 3B [00:20:24]RAPDU: 90 00 [00:20:24]wFMCommunicate OK [00:20:24]wFMCommunicate request_size=4 [00:20:24]MH_SAM_APDU [00:20:24]CAPDU: 80 0D 03 02 [00:20:24]Write to MH i2c: E2 08 00 9C 2C 80 0D 03 02 00 00 00 00 43 [00:20:24]Write i2c OK [00:20:24]MH_I2C_Read... [00:20:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:20:24]Read from MH i2c: E2 [00:20:24]MH_I2C_Read... [00:20:24]Read from MH i2c: E2 0B 00 [00:20:24]MH_I2C_Read... [00:20:24]Read from MH i2c: E2 0B 00 9C 2C 00 61 EC F2 C3 BA 14 F7 94 90 00 9F [00:20:24]RAPDU: 61 EC F2 C3 BA 14 F7 94 90 00 [00:20:24]wFMCommunicate OK [00:20:24]SAM_PROTO_SignData done [00:20:24]FM_MakeSignedData done [00:20:24]CreateOFDProtocolMessage [00:20:24]wFMCommunicate request_size=4 [00:20:24]MH_SAM_APDU [00:20:24]CAPDU: 80 11 00 00 [00:20:24]Write to MH i2c: E2 08 00 9D 2C 80 11 00 00 00 00 00 00 43 [00:20:24]Write i2c OK [00:20:24]MH_I2C_Read... [00:20:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:24]Read from MH i2c: E2 [00:20:24]MH_I2C_Read... [00:20:24]Read from MH i2c: E2 17 00 [00:20:24]MH_I2C_Read... [00:20:24]Read from MH i2c: E2 17 00 9D 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9E [00:20:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:20:24]wFMCommunicate OK [00:20:24]CreateOFDProtocolMessage done [00:20:24]OFDSenderStorePacket 118334 [00:20:24]StoreOFDPacket docnum=118334 [00:20:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 08 8E 07 01 E8 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 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 03 00 00 00 F4 03 04 00 C8 8E A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3E CE 01 00 35 04 06 00 99 52 4F 91 65 AE 61 EC F2 C3 BA 14 F7 94 [00:20:24]CheckFolder [00:20:24]dirname=/storage/ofd_packets [00:20:24]CheckFolder done [00:20:24]ProducePacketName [00:20:24]name=ofd_packets/00118334 [00:20:24]NVStorageSaveData ofd_packets/00118334 [00:20:24]File name is /storage/ofd_packets/00118334 [00:20:24]Write 301 bytes [00:20:24]NVStorageSaveData done [00:20:24]OFDSenderStorePacket done [00:20:24]KKMCreateOFDPacket done [00:20:24]NVStorageSaveData kkm_last_timestamp [00:20:24]File name is /storage/kkm_last_timestamp [00:20:24]Write 4 bytes [00:20:24]NVStorageSaveData done [00:20:24]ExternCall_PrintAddStr [00:20:24]wPrintStart [00:20:24]Write to MH i2c: 01 00 00 9E 2C CA [00:20:24]Write i2c OK [00:20:24]MH_I2C_Read... [00:20:24]Read from MH i2c: 01 [00:20:24]MH_I2C_Read... [00:20:24]Read from MH i2c: 01 07 00 [00:20:24]MH_I2C_Read... [00:20:24]Read from MH i2c: 01 07 00 9E 2C 00 00 00 00 00 FF 0F DF [00:20:24]RasterBufferAndPrint [00:20:24]line Счет N : (1)949209 [00:20:24]line ИНН: 02508201610067 [00:20:24]line Контрольно-Кассовый Чек [00:20:24]line ПРОДАЖА [00:20:24]line ТРК (МРК, ГНК) : 31 [00:20:24]line Товар: 2710124130 [00:20:24]line Аи-92-К-4 [00:20:24]line 22.130 * 67.80 [00:20:24]line = 1500.41 [00:20:24]line НДС 12% НСП 1% [00:20:24]line > о реализуемом товаре [00:20:24]line ОКРУГЛЕНИЕ: -0.41 [00:20:24]line ИТОГО: 1500.00 [00:20:24]line Внесено: 1500.00 [00:20:24]line СДАЧА: 0.00 [00:20:24]line НСП 1% : 13.28 [00:20:24]line НДС 12% : 159.34 [00:20:24]line Наличными: 1500.00 [00:20:24]line Безнал.: 0.00 [00:20:24]line Место: АЗС № 134 "Партнер Нефть" [00:20:24]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [00:20:24]line СНО: Общий режим [00:20:24]line Чек 3 28.07.2024 00:20 [00:20:24]line Смена: 433 ФФД: 1.0 [00:20:24]line ЗНМ: 0300000044 [00:20:24]line РНМ: 0000000000092660 [00:20:24]line Версия ККМ: 001 [00:20:24]line ФМ: 0000000000874939 [00:20:24]line ФД: 118334 [00:20:24]line ФПД: 168578801296814 [00:20:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T002024&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118334&fm=168578801296814&tin=02508201610067®Number=0000000000092660&sum=150000 [00:20:24]OFD Sender: Processing packet 118334 [packets to send 86, broken 85] [00:20:24]ProducePacketName [00:20:24]name=ofd_packets/00118334 [00:20:24]OFD Sender: To server: pG, [00:20:24]CommunicateWithHost lk.salyk.kg:30040 [00:20:24]ConnectInit lk.salyk.kg [00:20:24]written 0, free lines is 4095 [00:20:24]Connected sock=10 [00:20:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 08 8E 07 01 E8 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 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 03 00 00 00 F4 03 04 00 C8 8E A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3E CE 01 00 35 04 06 00 99 52 4F 91 65 AE 61 EC F2 C3 BA 14 F7 94 [00:20:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 DD 31 47 00 92 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3E CE 01 00 F4 03 04 00 5A 3C A5 66 B6 04 01 00 00 98 67 E7 EC 9F DB 9C 28 [00:20:25]CommunicateWithHost err = 0 [00:20:25]CheckOFDResponse [00:20:25]1017 (14) - 77093643461234 [00:20:25]1041 (16) - 0000000000874939 [00:20:25]1040 (4) - 118334 [00:20:25]1012 (4) - 27.07.2024 18:28 [00:20:25]1206 (1) - 0 [00:20:25]OFD Sender: Remove packet 118334 [00:20:25]ProducePacketName [00:20:25]name=ofd_packets/00118334 [00:20:25]NVStorageDeleteData [00:20:25]Write to MH i2c: 01 00 00 C8 2C F4 [00:20:25]Write i2c OK [00:20:25]MH_I2C_Read... [00:20:25]Read from MH i2c: 01 [00:20:25]MH_I2C_Read... [00:20:25]Read from MH i2c: 01 07 00 [00:20:25]MH_I2C_Read... [00:20:25]Read from MH i2c: 01 07 00 C8 2C 00 00 00 00 00 CF 0C D6 [00:20:25]RasterBufferAndPrint [00:20:25]line [00:20:25]line [00:20:25]line [00:20:25]line [00:20:25]line [00:20:25]written 0, free lines is 3285 [00:20:25]MH_Cut [00:20:25]Write to MH i2c: D1 01 00 CF 2C 01 CD [00:20:25]Write i2c OK [00:20:25]MH_I2C_Read... [00:20:25]Read from MH i2c: D1 [00:20:25]MH_I2C_Read... [00:20:25]Read from MH i2c: D1 01 00 [00:20:25]MH_I2C_Read... [00:20:25]Read from MH i2c: D1 01 00 CF 2C 00 CC [00:20:25]Write to MH i2c: 01 00 00 D0 2C FC [00:20:25]Write i2c OK [00:20:25]MH_I2C_Read... [00:20:25]OFD Sender: No OFD packet to send [00:20:26]*** Cut start [00:20:26]*** Partial cut [00:20:26]*** CUTSNS_PIN = 1 [00:20:26]*** CUTSNS_PIN = 0 [00:20:26]*** Brake cut motor [00:20:26]Read from MH i2c: 01 [00:20:26]MH_I2C_Read... [00:20:26]*** Stop cut motor [00:20:26]*** Cut end [00:20:26]Read from MH i2c: 01 07 00 [00:20:26]MH_I2C_Read... [00:20:26]Read from MH i2c: 01 07 00 D0 2C 00 00 00 00 00 FF 0F 11 [00:20:26]process_action close_receipt done [00:20:26]requested_data is exist [00:20:26]produce_requested_data [00:20:26]requested_item fm.sn is exist - process it [00:20:26]wFMCommunicate request_size=4 [00:20:26]MH_SAM_APDU [00:20:26]CAPDU: 80 11 00 00 [00:20:26]Write to MH i2c: E2 08 00 D1 2C 80 11 00 00 00 00 00 00 77 [00:20:26]Write i2c OK [00:20:26]MH_I2C_Read... [00:20:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:26]Read from MH i2c: E2 [00:20:26]MH_I2C_Read... [00:20:26]Read from MH i2c: E2 17 00 [00:20:26]MH_I2C_Read... [00:20:26]Read from MH i2c: E2 17 00 D1 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D2 [00:20:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:20:26]wFMCommunicate OK [00:20:26]requested_item fd.num is exist - process it [00:20:26]SAM_PROTO_GetFieldsCounters [00:20:26]wFMCommunicate request_size=4 [00:20:26]MH_SAM_APDU [00:20:26]CAPDU: 80 13 00 00 [00:20:26]Write to MH i2c: E2 08 00 D2 2C 80 13 00 00 00 00 00 00 7A [00:20:26]Write i2c OK [00:20:26]MH_I2C_Read... [00:20:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:26]Read from MH i2c: E2 [00:20:26]MH_I2C_Read... [00:20:26]Read from MH i2c: E2 62 00 [00:20:26]MH_I2C_Read... [00:20:26]Read from MH i2c: E2 62 00 D2 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3E CE 01 00 0E 04 04 00 B1 01 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 69 [00:20:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3E CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:20:26]wFMCommunicate OK [00:20:26]SAM_PROTO_GetFieldsCounters done [00:20:26]requested_item shift.num is exist - process it [00:20:26]requested_item shift.opened is exist - process it [00:20:26]req_shift_opened [00:20:26]FM_GetShiftState [00:20:26]SAM_PROTO_GetShiftState [00:20:26]wFMCommunicate request_size=4 [00:20:26]MH_SAM_APDU [00:20:26]CAPDU: 80 13 01 00 [00:20:26]Write to MH i2c: E2 08 00 D3 2C 80 13 01 00 00 00 00 00 7C [00:20:26]Write i2c OK [00:20:26]MH_I2C_Read... [00:20:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:26]Read from MH i2c: E2 [00:20:26]MH_I2C_Read... [00:20:26]Read from MH i2c: E2 0E 00 [00:20:26]MH_I2C_Read... [00:20:26]Read from MH i2c: E2 0E 00 D3 2C 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 53 [00:20:26]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [00:20:26]wFMCommunicate OK [00:20:26]SAM_PROTO_GetShiftState done [00:20:26]FM_GetShiftState done [00:20:26]req_shift_opened done [00:20:26]requested_item shift.open_date is exist - process it [00:20:26]req_shift_open_date [00:20:26]req_shift_open_date done [00:20:26]produce_requested_data done [00:20:26]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118334,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [00:20:26]process_action_free close_receipt [00:20:26]json_value_free [00:20:26]json_value_free done [00:20:26]process_json_proto returns [00:20:26]Send response to host [00:20:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118334,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [00:20:26]free response buf [00:20:26]execute_script done [00:20:26]execute_script returns [00:20:26]free content buf [00:20:26]Sock 7.Close socket [00:20:26]Sock 7.Thread stoped [00:20:30]OFD Sender: No OFD packet to send [00:20:35]OFD Sender: No OFD packet to send [00:20:40]OFD Sender: No OFD packet to send [00:20:45]OFD Sender: No OFD packet to send [00:20:50]OFD Sender: No OFD packet to send [00:20:55]OFD Sender: No OFD packet to send [00:21:00]OFD Sender: No OFD packet to send [00:21:05]OFD Sender: No OFD packet to send [00:21:10]OFD Sender: No OFD packet to send [00:21:15]OFD Sender: No OFD packet to send [00:21:20]OFD Sender: No OFD packet to send [00:21:25]OFD Sender: No OFD packet to send [00:21:30]OFD Sender: No OFD packet to send [00:21:30]accept exits with 9 [00:21:30]New connection [00:21:30]New thread 3067096420 created [00:21:30]Thread 3066953060 joined [00:21:30]Waiting for new connection... [00:21:30] Sock 9.Parse request [00:21:30]Sock 9.Check first char [00:21:30]Sock 9.First char is OK [00:21:30]request: POST /json_proto HTTP/1.0 [00:21:30]Method: POST [00:21:30]URL: /json_proto [00:21:30]Method is POST - this is cgi request [00:21:30]url: /json_proto [00:21:30]query_string will be loaded in cgi processing [00:21:30]execute_cgi json_proto POST (null) [00:21:30]execute_cgi path=json_proto method=POST [00:21:30]POST find Content-Length [00:21:30]Host: 172.17.45.7:8080 [00:21:30]Content-Length: 820 [00:21:30]Content-Type: application/json [00:21:30] [00:21:30]POST finish read [00:21:30]Found Content-Length = 820 [00:21:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 104.990, "sum" : 8000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 8000.00, "payments": [ { "type": 1, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:30]execute_script... [00:21: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)949208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 104.990, "sum" : 8000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 8000.00, "payments": [ { "type": 1, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:30]POST & json_proto [00:21:30]process_json_proto [00:21:30]json parsed OK: [00:21:30]protocol is kg_v1.0 [00:21:30]action value=close_receipt [00:21:30]process_action close_receipt [00:21:30]cmd_close_receipt [00:21:30]MH_GetDate [00:21:30]Write to MH i2c: F0 00 00 D4 2C EF [00:21:30]Write i2c OK [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: F0 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: F0 09 00 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: F0 09 00 D4 2C 00 0C 8F A5 66 90 0F 3E 66 E1 [00:21:30]GetLastDocTimeStamp 1722126024 [00:21:30]current date 1722126092 [00:21:30]FM_GetShiftState [00:21:30]SAM_PROTO_GetShiftState [00:21:30]wFMCommunicate request_size=4 [00:21:30]MH_SAM_APDU [00:21:30]CAPDU: 80 13 01 00 [00:21:30]Write to MH i2c: E2 08 00 D5 2C 80 13 01 00 00 00 00 00 7E [00:21:30]Write i2c OK [00:21:30]MH_I2C_Read... [00:21:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:30]Read from MH i2c: E2 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 0E 00 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 0E 00 D5 2C 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 55 [00:21:30]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [00:21:30]wFMCommunicate OK [00:21:30]SAM_PROTO_GetShiftState done [00:21:30]FM_GetShiftState done [00:21:30]opened in 1722125364 [00:21:30]opened+sec_in_day 1722211764 [00:21:30]quantity*price = 800023 [00:21:30]sum+1 = 800025 [00:21:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 8000.00 НСП 1% : 70.80 НДС 12% : 849.58 Наличными: 0.00 Безнал.: 8000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 4 28.07.2024 00:21 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118335 ФПД: 215894755322331 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T002132&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118335&fm=215894755322331&tin=02508201610067®Number=0000000000092660&sum=800000 [00:21:32]StoreToDocumentArchive [00:21:32]shift 433 fd 118335 [00:21:32]save to /storage/0433/doc_00118335 [00:21:32]save last doc name /storage/0433/doc_00118335 to /storage/kkm_last_doc_name [00:21:32]save OK [00:21:32]Clear old archive folders... [00:21:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:21:32]tlvbuf is B6EFD460 [00:21:32]SAM_PROTO_ClearQueue [00:21:32]wFMCommunicate request_size=4 [00:21:32]MH_SAM_APDU [00:21:32]CAPDU: 80 09 00 00 [00:21:32]Write to MH i2c: E2 08 00 E2 2C 80 09 00 00 00 00 00 00 80 [00:21:32]Write i2c OK [00:21:32]MH_I2C_Read... [00:21:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:21:32]Read from MH i2c: E2 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 03 00 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 03 00 E2 2C 00 90 00 82 [00:21:32]RAPDU: 90 00 [00:21:32]wFMCommunicate OK [00:21:32]SAM_PROTO_ClearQueue done [00:21:32]KKMCreateOFDPacket [00:21:32]OFDProtocolAddRootSTLVToBuf [00:21:32]FM_MakeSignedData [00:21:32]FM_MakeSignedData [00:21:32]SAM_PROTO_SignData [00:21:32]wFMCommunicate request_size=4 [00:21:32]MH_SAM_APDU [00:21:32]CAPDU: 80 0D 01 02 [00:21:32]Write to MH i2c: E2 08 00 E3 2C 80 0D 01 02 00 00 00 00 88 [00:21:32]Write i2c OK [00:21:32]MH_I2C_Read... [00:21:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:21:32]Read from MH i2c: E2 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 03 00 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 03 00 E3 2C 00 90 00 83 [00:21:32]RAPDU: 90 00 [00:21:32]wFMCommunicate OK [00:21:32]wFMCommunicate request_size=255 [00:21:32]MH_SAM_APDU [00:21:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 0C 8F A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3F CE 01 00 35 04 06 00 C4 5A EA 33 [00:21:32]Write to MH i2c: E2 02 01 E4 2C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 0C 8F A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3F CE 01 00 35 04 06 00 C4 5A EA 33 00 00 F7 [00:21:32]Write i2c OK [00:21:32]MH_I2C_Read... [00:21:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:32]Read from MH i2c: E2 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 03 00 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 03 00 E4 2C 00 90 00 84 [00:21:32]RAPDU: 90 00 [00:21:32]wFMCommunicate OK [00:21:32]wFMCommunicate request_size=7 [00:21:32]MH_SAM_APDU [00:21:32]CAPDU: 80 0D 02 02 02 29 DB [00:21:32]Write to MH i2c: E2 0A 00 E5 2C 80 0D 02 02 02 00 29 DB 00 00 93 [00:21:32]Write i2c OK [00:21:32]MH_I2C_Read... [00:21:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:32]Read from MH i2c: E2 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 03 00 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 03 00 E5 2C 00 90 00 85 [00:21:32]RAPDU: 90 00 [00:21:32]wFMCommunicate OK [00:21:32]wFMCommunicate request_size=4 [00:21:32]MH_SAM_APDU [00:21:32]CAPDU: 80 0D 03 02 [00:21:32]Write to MH i2c: E2 08 00 E6 2C 80 0D 03 02 00 00 00 00 8D [00:21:32]Write i2c OK [00:21:32]MH_I2C_Read... [00:21:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:21:32]Read from MH i2c: E2 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 0B 00 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 0B 00 E6 2C 00 8D 8F FB A7 B0 89 87 16 90 00 22 [00:21:32]RAPDU: 8D 8F FB A7 B0 89 87 16 90 00 [00:21:32]wFMCommunicate OK [00:21:32]SAM_PROTO_SignData done [00:21:32]FM_MakeSignedData done [00:21:32]CreateOFDProtocolMessage [00:21:32]wFMCommunicate request_size=4 [00:21:32]MH_SAM_APDU [00:21:32]CAPDU: 80 11 00 00 [00:21:32]Write to MH i2c: E2 08 00 E7 2C 80 11 00 00 00 00 00 00 8D [00:21:32]Write i2c OK [00:21:32]MH_I2C_Read... [00:21:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:32]Read from MH i2c: E2 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 17 00 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 17 00 E7 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E8 [00:21:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:21:32]wFMCommunicate OK [00:21:32]CreateOFDProtocolMessage done [00:21:32]OFDSenderStorePacket 118335 [00:21:32]StoreOFDPacket docnum=118335 [00:21:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 50 34 04 01 3D D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 0C 8F A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3F CE 01 00 35 04 06 00 C4 5A EA 33 29 DB 8D 8F FB A7 B0 89 87 16 [00:21:32]CheckFolder [00:21:32]dirname=/storage/ofd_packets [00:21:32]CheckFolder done [00:21:32]ProducePacketName [00:21:32]name=ofd_packets/00118335 [00:21:32]NVStorageSaveData ofd_packets/00118335 [00:21:32]File name is /storage/ofd_packets/00118335 [00:21:32]Write 298 bytes [00:21:32]NVStorageSaveData done [00:21:32]OFDSenderStorePacket done [00:21:32]KKMCreateOFDPacket done [00:21:32]NVStorageSaveData kkm_last_timestamp [00:21:32]File name is /storage/kkm_last_timestamp [00:21:32]Write 4 bytes [00:21:32]NVStorageSaveData done [00:21:32]ExternCall_PrintAddStr [00:21:32]wPrintStart [00:21:32]Write to MH i2c: 01 00 00 E8 2C 14 [00:21:32]Write i2c OK [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: 01 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: 01 07 00 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: 01 07 00 E8 2C 00 00 00 00 00 FF 0F 29 [00:21:32]RasterBufferAndPrint [00:21:32]line Счет N : (1)949208 [00:21:32]line ИНН: 02508201610067 [00:21:32]line Контрольно-Кассовый Чек [00:21:32]line ПРОДАЖА [00:21:32]line ТРК (МРК, ГНК) : 21 [00:21:32]line Товар: 2710194800 [00:21:32]line ДТ-К-5 [00:21:32]line 104.990 * 76.20 [00:21:32]line = 8000.24 [00:21:32]line НДС 12% НСП 1% [00:21:32]line > о реализуемом товаре [00:21:32]line ОКРУГЛЕНИЕ: -0.24 [00:21:32]line ИТОГО: 8000.00 [00:21:32]line НСП 1% : 70.80 [00:21:32]line НДС 12% : 849.58 [00:21:32]line Наличными: 0.00 [00:21:32]line Безнал.: 8000.00 [00:21:32]line Место: АЗС № 134 "Партнер Нефть" [00:21:32]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [00:21:32]line СНО: Общий режим [00:21:32]line Чек 4 28.07.2024 00:21 [00:21:32]line Смена: 433 ФФД: 1.0 [00:21:32]line ЗНМ: 0300000044 [00:21:32]line РНМ: 0000000000092660 [00:21:32]line Версия ККМ: 001 [00:21:32]line Платежная система: O! деньги [00:21:32]line ФМ: 0000000000874939 [00:21:32]line ФД: 118335 [00:21:32]line ФПД: 215894755322331 [00:21:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T002132&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118335&fm=215894755322331&tin=02508201610067®Number=0000000000092660&sum=800000 [00:21:32]OFD Sender: Processing packet 118335 [packets to send 86, broken 85] [00:21:32]ProducePacketName [00:21:32]name=ofd_packets/00118335 [00:21:32]OFD Sender: To server: pG, [00:21:32]CommunicateWithHost lk.salyk.kg:30040 [00:21:32]ConnectInit lk.salyk.kg [00:21:32]written 0, free lines is 4095 [00:21:32]Connected sock=10 [00:21:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 50 34 04 01 3D D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 0C 8F A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3F CE 01 00 35 04 06 00 C4 5A EA 33 29 DB 8D 8F FB A7 B0 89 87 16 [00:21:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E8 F4 47 00 AF C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3F CE 01 00 F4 03 04 00 9E 3C A5 66 B6 04 01 00 00 BF 6C F1 82 47 48 F7 55 [00:21:33]CommunicateWithHost err = 0 [00:21:33]CheckOFDResponse [00:21:33]1017 (14) - 77093643461234 [00:21:33]1041 (16) - 0000000000874939 [00:21:33]1040 (4) - 118335 [00:21:33]1012 (4) - 27.07.2024 18:29 [00:21:33]1206 (1) - 0 [00:21:33]OFD Sender: Remove packet 118335 [00:21:33]ProducePacketName [00:21:33]name=ofd_packets/00118335 [00:21:33]NVStorageDeleteData [00:21:33]Write to MH i2c: 01 00 00 12 2D 3F [00:21:33]Write i2c OK [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: 01 [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: 01 07 00 [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: 01 07 00 12 2D 00 00 00 00 00 D1 0C 23 [00:21:33]RasterBufferAndPrint [00:21:33]line [00:21:33]line [00:21:33]line [00:21:33]line [00:21:33]line [00:21:33]written 0, free lines is 3288 [00:21:33]MH_Cut [00:21:33]Write to MH i2c: D1 01 00 19 2D 01 18 [00:21:33]Write i2c OK [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: D1 [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: D1 01 00 [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: D1 01 00 19 2D 00 17 [00:21:33]Write to MH i2c: 01 00 00 1A 2D 47 [00:21:33]Write i2c OK [00:21:33]MH_I2C_Read... [00:21:33]OFD Sender: No OFD packet to send [00:21:34]*** Cut start [00:21:34]*** Partial cut [00:21:34]*** CUTSNS_PIN = 1 [00:21:34]*** CUTSNS_PIN = 0 [00:21:34]*** Brake cut motor [00:21:34]Read from MH i2c: 01 [00:21:34]MH_I2C_Read... [00:21:34]*** Stop cut motor [00:21:34]*** Cut end [00:21:34]Read from MH i2c: 01 07 00 [00:21:34]MH_I2C_Read... [00:21:34]Read from MH i2c: 01 07 00 1A 2D 00 00 00 00 00 FF 0F 5C [00:21:34]process_action close_receipt done [00:21:34]requested_data is exist [00:21:34]produce_requested_data [00:21:34]requested_item fm.sn is exist - process it [00:21:34]wFMCommunicate request_size=4 [00:21:34]MH_SAM_APDU [00:21:34]CAPDU: 80 11 00 00 [00:21:34]Write to MH i2c: E2 08 00 1B 2D 80 11 00 00 00 00 00 00 C2 [00:21:34]Write i2c OK [00:21:34]MH_I2C_Read... [00:21:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:34]Read from MH i2c: E2 [00:21:34]MH_I2C_Read... [00:21:34]Read from MH i2c: E2 17 00 [00:21:34]MH_I2C_Read... [00:21:34]Read from MH i2c: E2 17 00 1B 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1D [00:21:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:21:34]wFMCommunicate OK [00:21:34]requested_item fd.num is exist - process it [00:21:34]SAM_PROTO_GetFieldsCounters [00:21:34]wFMCommunicate request_size=4 [00:21:34]MH_SAM_APDU [00:21:34]CAPDU: 80 13 00 00 [00:21:34]Write to MH i2c: E2 08 00 1C 2D 80 13 00 00 00 00 00 00 C5 [00:21:34]Write i2c OK [00:21:34]MH_I2C_Read... [00:21:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:21:34]Read from MH i2c: E2 [00:21:34]MH_I2C_Read... [00:21:34]Read from MH i2c: E2 62 00 [00:21:34]MH_I2C_Read... [00:21:34]Read from MH i2c: E2 62 00 1C 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3F CE 01 00 0E 04 04 00 B1 01 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 [00:21:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3F CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:21:34]wFMCommunicate OK [00:21:34]SAM_PROTO_GetFieldsCounters done [00:21:34]requested_item shift.num is exist - process it [00:21:34]requested_item shift.opened is exist - process it [00:21:34]req_shift_opened [00:21:34]FM_GetShiftState [00:21:34]SAM_PROTO_GetShiftState [00:21:34]wFMCommunicate request_size=4 [00:21:34]MH_SAM_APDU [00:21:34]CAPDU: 80 13 01 00 [00:21:34]Write to MH i2c: E2 08 00 1D 2D 80 13 01 00 00 00 00 00 C7 [00:21:34]Write i2c OK [00:21:34]MH_I2C_Read... [00:21:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:34]Read from MH i2c: E2 [00:21:34]MH_I2C_Read... [00:21:34]Read from MH i2c: E2 0E 00 [00:21:34]MH_I2C_Read... [00:21:34]Read from MH i2c: E2 0E 00 1D 2D 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 9E [00:21:34]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [00:21:34]wFMCommunicate OK [00:21:34]SAM_PROTO_GetShiftState done [00:21:34]FM_GetShiftState done [00:21:34]req_shift_opened done [00:21:34]requested_item shift.open_date is exist - process it [00:21:34]req_shift_open_date [00:21:34]req_shift_open_date done [00:21:34]produce_requested_data done [00:21:34]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118335,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [00:21:34]process_action_free close_receipt [00:21:34]json_value_free [00:21:34]json_value_free done [00:21:34]process_json_proto returns [00:21:34]Send response to host [00:21:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118335,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [00:21:34]free response buf [00:21:34]execute_script done [00:21:34]execute_script returns [00:21:34]free content buf [00:21:34]Sock 9.Close socket [00:21:34]Sock 9.Thread stoped [00:21:38]OFD Sender: No OFD packet to send [00:21:43]OFD Sender: No OFD packet to send [00:21:48]OFD Sender: No OFD packet to send [00:21:53]OFD Sender: No OFD packet to send [00:21:58]OFD Sender: No OFD packet to send [00:22:03]OFD Sender: No OFD packet to send [00:22:08]OFD Sender: No OFD packet to send [00:22:13]OFD Sender: No OFD packet to send [00:22:18]OFD Sender: No OFD packet to send [00:22:23]OFD Sender: No OFD packet to send [00:22:28]OFD Sender: No OFD packet to send [00:22:33]OFD Sender: No OFD packet to send [00:22:38]OFD Sender: No OFD packet to send [00:22:43]OFD Sender: No OFD packet to send [00:22:48]OFD Sender: No OFD packet to send [00:22:53]OFD Sender: No OFD packet to send [00:22:58]OFD Sender: No OFD packet to send [00:23:03]OFD Sender: No OFD packet to send [00:23:08]OFD Sender: No OFD packet to send [00:23:13]OFD Sender: No OFD packet to send [00:23:18]OFD Sender: No OFD packet to send [00:23:23]OFD Sender: No OFD packet to send [00:23:28]OFD Sender: No OFD packet to send [00:23:33]OFD Sender: No OFD packet to send [00:23:38]OFD Sender: No OFD packet to send [00:23:43]OFD Sender: No OFD packet to send [00:23:48]OFD Sender: No OFD packet to send [00:23:53]OFD Sender: No OFD packet to send [00:23:58]OFD Sender: No OFD packet to send [00:24:03]OFD Sender: No OFD packet to send [00:24:08]OFD Sender: No OFD packet to send [00:24:13]OFD Sender: No OFD packet to send [00:24:18]OFD Sender: No OFD packet to send [00:24:23]OFD Sender: No OFD packet to send [00:24:28]OFD Sender: No OFD packet to send [00:24:33]OFD Sender: No OFD packet to send [00:24:38]OFD Sender: No OFD packet to send [00:24:43]accept exits with 7 [00:24:43]New connection [00:24:43]New thread 3066953060 created [00:24:43]Thread 3067096420 joined [00:24:43]Waiting for new connection... [00:24:43] Sock 7.Parse request [00:24:43]Sock 7.Check first char [00:24:43]Sock 7.First char is OK [00:24:43]request: POST /json_proto HTTP/1.0 [00:24:43]Method: POST [00:24:43]URL: /json_proto [00:24:43]Method is POST - this is cgi request [00:24:43]url: /json_proto [00:24:43]query_string will be loaded in cgi processing [00:24:43]execute_cgi json_proto POST (null) [00:24:43]execute_cgi path=json_proto method=POST [00:24:43]POST find Content-Length [00:24:43]Host: 172.17.45.7:8080 [00:24:43]Content-Length: 819 [00:24:43]Content-Type: application/json [00:24:43] [00:24:43]POST finish read [00:24:43]Found Content-Length = 819 [00:24:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 25.200, "sum" : 1920.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", "total" : 1920.00, "payments": [ { "type": 1, "sum" : 1920.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:24:43]execute_script... [00:24: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)949210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 25.200, "sum" : 1920.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", "total" : 1920.00, "payments": [ { "type": 1, "sum" : 1920.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:24:43]POST & json_proto [00:24:43]process_json_proto [00:24:43]json parsed OK: [00:24:43]protocol is kg_v1.0 [00:24:43]action value=close_receipt [00:24:43]process_action close_receipt [00:24:43]cmd_close_receipt [00:24:43]MH_GetDate [00:24:43]Write to MH i2c: F0 00 00 1E 2D 3A [00:24:43]Write i2c OK [00:24:43]MH_I2C_Read... [00:24:43]Read from MH i2c: F0 [00:24:43]MH_I2C_Read... [00:24:43]Read from MH i2c: F0 09 00 [00:24:43]MH_I2C_Read... [00:24:43]Read from MH i2c: F0 09 00 1E 2D 00 CD 8F A5 66 90 0F 3E 66 ED [00:24:43]GetLastDocTimeStamp 1722126092 [00:24:43]current date 1722126285 [00:24:43]FM_GetShiftState [00:24:43]SAM_PROTO_GetShiftState [00:24:43]wFMCommunicate request_size=4 [00:24:43]MH_SAM_APDU [00:24:43]CAPDU: 80 13 01 00 [00:24:43]Write to MH i2c: E2 08 00 1F 2D 80 13 01 00 00 00 00 00 C9 [00:24:43]Write i2c OK [00:24:43]MH_I2C_Read... [00:24:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:43]Read from MH i2c: E2 [00:24:43]MH_I2C_Read... [00:24:43]Read from MH i2c: E2 0E 00 [00:24:43]MH_I2C_Read... [00:24:43]Read from MH i2c: E2 0E 00 1F 2D 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 A0 [00:24:43]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [00:24:43]wFMCommunicate OK [00:24:43]SAM_PROTO_GetShiftState done [00:24:43]FM_GetShiftState done [00:24:43]opened in 1722125364 [00:24:43]opened+sec_in_day 1722211764 [00:24:43]quantity*price = 192024 [00:24:43]sum+1 = 192025 [00:24:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1920.00 НСП 1% : 16.99 НДС 12% : 203.92 Наличными: 0.00 Безнал.: 1920.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 5 28.07.2024 00:24 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118336 ФПД: 33428419085552 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T002445&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118336&fm=33428419085552&tin=02508201610067®Number=0000000000092660&sum=192000 [00:24:44]StoreToDocumentArchive [00:24:44]shift 433 fd 118336 [00:24:44]save to /storage/0433/doc_00118336 [00:24:44]save last doc name /storage/0433/doc_00118336 to /storage/kkm_last_doc_name [00:24:44]save OK [00:24:44]Clear old archive folders... [00:24:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:24:44]tlvbuf is B6EE4650 [00:24:44]SAM_PROTO_ClearQueue [00:24:44]wFMCommunicate request_size=4 [00:24:44]MH_SAM_APDU [00:24:44]CAPDU: 80 09 00 00 [00:24:44]Write to MH i2c: E2 08 00 2C 2D 80 09 00 00 00 00 00 00 CB [00:24:44]Write i2c OK [00:24:44]MH_I2C_Read... [00:24:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:24:45]Read from MH i2c: E2 [00:24:45]MH_I2C_Read... [00:24:45]Read from MH i2c: E2 03 00 [00:24:45]MH_I2C_Read... [00:24:45]Read from MH i2c: E2 03 00 2C 2D 00 90 00 CD [00:24:45]RAPDU: 90 00 [00:24:45]wFMCommunicate OK [00:24:45]SAM_PROTO_ClearQueue done [00:24:45]KKMCreateOFDPacket [00:24:45]OFDProtocolAddRootSTLVToBuf [00:24:45]FM_MakeSignedData [00:24:45]FM_MakeSignedData [00:24:45]SAM_PROTO_SignData [00:24:45]wFMCommunicate request_size=4 [00:24:45]MH_SAM_APDU [00:24:45]CAPDU: 80 0D 01 02 [00:24:45]Write to MH i2c: E2 08 00 2D 2D 80 0D 01 02 00 00 00 00 D3 [00:24:45]Write i2c OK [00:24:45]MH_I2C_Read... [00:24:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:24:45]Read from MH i2c: E2 [00:24:45]MH_I2C_Read... [00:24:45]Read from MH i2c: E2 03 00 [00:24:45]MH_I2C_Read... [00:24:45]Read from MH i2c: E2 03 00 2D 2D 00 90 00 CE [00:24:45]RAPDU: 90 00 [00:24:45]wFMCommunicate OK [00:24:45]wFMCommunicate request_size=255 [00:24:45]MH_SAM_APDU [00:24: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 62 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 EE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 EE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 4F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 EE 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 CD 8F A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 40 CE 01 00 35 04 06 00 1E 67 29 0B [00:24:45]Write to MH i2c: E2 02 01 2E 2D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 62 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 EE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 EE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 4F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 EE 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 CD 8F A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 40 CE 01 00 35 04 06 00 1E 67 29 0B 00 00 5C [00:24:45]Write i2c OK [00:24:45]MH_I2C_Read... [00:24:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:24:45]Read from MH i2c: E2 [00:24:45]MH_I2C_Read... [00:24:45]Read from MH i2c: E2 03 00 [00:24:45]MH_I2C_Read... [00:24:45]Read from MH i2c: E2 03 00 2E 2D 00 90 00 CF [00:24:45]RAPDU: 90 00 [00:24:45]wFMCommunicate OK [00:24:45]wFMCommunicate request_size=7 [00:24:45]MH_SAM_APDU [00:24:45]CAPDU: 80 0D 02 02 02 84 F0 [00:24:45]Write to MH i2c: E2 0A 00 2F 2D 80 0D 02 02 02 00 84 F0 00 00 4E [00:24:45]Write i2c OK [00:24:45]MH_I2C_Read... [00:24:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:24:45]Read from MH i2c: E2 [00:24:45]MH_I2C_Read... [00:24:45]Read from MH i2c: E2 03 00 [00:24:45]MH_I2C_Read... [00:24:45]Read from MH i2c: E2 03 00 2F 2D 00 90 00 D0 [00:24:45]RAPDU: 90 00 [00:24:45]wFMCommunicate OK [00:24:45]wFMCommunicate request_size=4 [00:24:45]MH_SAM_APDU [00:24:45]CAPDU: 80 0D 03 02 [00:24:45]Write to MH i2c: E2 08 00 30 2D 80 0D 03 02 00 00 00 00 D8 [00:24:45]Write i2c OK [00:24:45]MH_I2C_Read... [00:24:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:24:45]Read from MH i2c: E2 [00:24:45]MH_I2C_Read... [00:24:45]Read from MH i2c: E2 0B 00 [00:24:45]MH_I2C_Read... [00:24:45]Read from MH i2c: E2 0B 00 30 2D 00 32 A1 06 2B A5 F5 95 4F 90 00 5B [00:24:45]RAPDU: 32 A1 06 2B A5 F5 95 4F 90 00 [00:24:45]wFMCommunicate OK [00:24:45]SAM_PROTO_SignData done [00:24:45]FM_MakeSignedData done [00:24:45]CreateOFDProtocolMessage [00:24:45]wFMCommunicate request_size=4 [00:24:45]MH_SAM_APDU [00:24:45]CAPDU: 80 11 00 00 [00:24:45]Write to MH i2c: E2 08 00 31 2D 80 11 00 00 00 00 00 00 D8 [00:24:45]Write i2c OK [00:24:45]MH_I2C_Read... [00:24:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:24:45]Read from MH i2c: E2 [00:24:45]MH_I2C_Read... [00:24:45]Read from MH i2c: E2 17 00 [00:24:45]MH_I2C_Read... [00:24:45]Read from MH i2c: E2 17 00 31 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 33 [00:24:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:24:45]wFMCommunicate OK [00:24:45]CreateOFDProtocolMessage done [00:24:45]OFDSenderStorePacket 118336 [00:24:45]StoreOFDPacket docnum=118336 [00:24:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 21 B9 04 01 14 E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 62 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 EE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 EE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 4F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 EE 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 CD 8F A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 40 CE 01 00 35 04 06 00 1E 67 29 0B 84 F0 32 A1 06 2B A5 F5 95 4F [00:24:45]CheckFolder [00:24:45]dirname=/storage/ofd_packets [00:24:45]CheckFolder done [00:24:45]ProducePacketName [00:24:45]name=ofd_packets/00118336 [00:24:45]NVStorageSaveData ofd_packets/00118336 [00:24:45]File name is /storage/ofd_packets/00118336 [00:24:45]Write 298 bytes [00:24:45]NVStorageSaveData done [00:24:45]OFDSenderStorePacket done [00:24:45]KKMCreateOFDPacket done [00:24:45]NVStorageSaveData kkm_last_timestamp [00:24:45]File name is /storage/kkm_last_timestamp [00:24:45]Write 4 bytes [00:24:45]NVStorageSaveData done [00:24:45]ExternCall_PrintAddStr [00:24:45]wPrintStart [00:24:45]Write to MH i2c: 01 00 00 32 2D 5F [00:24:45]Write i2c OK [00:24:45]MH_I2C_Read... [00:24:45]Read from MH i2c: 01 [00:24:45]MH_I2C_Read... [00:24:45]Read from MH i2c: 01 07 00 [00:24:45]MH_I2C_Read... [00:24:45]Read from MH i2c: 01 07 00 32 2D 00 00 00 00 00 FF 0F 74 [00:24:45]RasterBufferAndPrint [00:24:45]line Счет N : (1)949210 [00:24:45]line ИНН: 02508201610067 [00:24:45]line Контрольно-Кассовый Чек [00:24:45]line ПРОДАЖА [00:24:45]line ТРК (МРК, ГНК) : 21 [00:24:45]line Товар: 2710194800 [00:24:45]line ДТ-К-5 [00:24:45]line 25.200 * 76.20 [00:24:45]line = 1920.24 [00:24:45]line НДС 12% НСП 1% [00:24:45]line > о реализуемом товаре [00:24:45]line ОКРУГЛЕНИЕ: -0.24 [00:24:45]line ИТОГО: 1920.00 [00:24:45]line НСП 1% : 16.99 [00:24:45]line НДС 12% : 203.92 [00:24:45]line Наличными: 0.00 [00:24:45]line Безнал.: 1920.00 [00:24:45]line Место: АЗС № 134 "Партнер Нефть" [00:24:45]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [00:24:45]line СНО: Общий режим [00:24:45]line Чек 5 28.07.2024 00:24 [00:24:45]line Смена: 433 ФФД: 1.0 [00:24:45]line ЗНМ: 0300000044 [00:24:45]line РНМ: 0000000000092660 [00:24:45]line Версия ККМ: 001 [00:24:45]line Платежная система: O! деньги [00:24:45]line ФМ: 0000000000874939 [00:24:45]line ФД: 118336 [00:24:45]line ФПД: 33428419085552 [00:24:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T002445&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118336&fm=33428419085552&tin=02508201610067®Number=0000000000092660&sum=192000 [00:24:45]OFD Sender: Processing packet 118336 [packets to send 86, broken 85] [00:24:45]ProducePacketName [00:24:45]name=ofd_packets/00118336 [00:24:45]OFD Sender: To server: pG, [00:24:45]CommunicateWithHost lk.salyk.kg:30040 [00:24:45]ConnectInit lk.salyk.kg [00:24:45]written 0, free lines is 4095 [00:24:45]Connected sock=10 [00:24:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 21 B9 04 01 14 E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 62 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 EE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 EE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 4F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 EE 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 CD 8F A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 40 CE 01 00 35 04 06 00 1E 67 29 0B 84 F0 32 A1 06 2B A5 F5 95 4F [00:24:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C0 10 47 00 AF 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 40 CE 01 00 F4 03 04 00 5F 3D A5 66 B6 04 01 00 00 66 5C 1E D6 0D A9 6B 34 [00:24:46]CommunicateWithHost err = 0 [00:24:46]CheckOFDResponse [00:24:46]1017 (14) - 77093643461234 [00:24:46]1041 (16) - 0000000000874939 [00:24:46]1040 (4) - 118336 [00:24:46]1012 (4) - 27.07.2024 18:33 [00:24:46]1206 (1) - 0 [00:24:46]OFD Sender: Remove packet 118336 [00:24:46]ProducePacketName [00:24:46]name=ofd_packets/00118336 [00:24:46]NVStorageDeleteData [00:24:46]Write to MH i2c: 01 00 00 5C 2D 89 [00:24:46]Write i2c OK [00:24:46]MH_I2C_Read... [00:24:46]Read from MH i2c: 01 [00:24:46]MH_I2C_Read... [00:24:46]Read from MH i2c: 01 07 00 [00:24:46]MH_I2C_Read... [00:24:46]Read from MH i2c: 01 07 00 5C 2D 00 00 00 00 00 D8 0C 74 [00:24:46]RasterBufferAndPrint [00:24:46]line [00:24:46]line [00:24:46]line [00:24:46]line [00:24:46]line [00:24:46]written 0, free lines is 3295 [00:24:46]MH_Cut [00:24:46]Write to MH i2c: D1 01 00 63 2D 01 62 [00:24:46]Write i2c OK [00:24:46]MH_I2C_Read... [00:24:46]Read from MH i2c: D1 [00:24:46]MH_I2C_Read... [00:24:46]Read from MH i2c: D1 01 00 [00:24:46]MH_I2C_Read... [00:24:46]Read from MH i2c: D1 01 00 63 2D 00 61 [00:24:46]Write to MH i2c: 01 00 00 64 2D 91 [00:24:46]Write i2c OK [00:24:46]MH_I2C_Read... [00:24:46]OFD Sender: No OFD packet to send [00:24:46]*** Cut start [00:24:46]*** Partial cut [00:24:46]*** CUTSNS_PIN = 1 [00:24:47]*** CUTSNS_PIN = 0 [00:24:47]*** Brake cut motor [00:24:47]Read from MH i2c: 01 [00:24:47]MH_I2C_Read... [00:24:47]*** Stop cut motor [00:24:47]*** Cut end [00:24:47]Read from MH i2c: 01 07 00 [00:24:47]MH_I2C_Read... [00:24:47]Read from MH i2c: 01 07 00 64 2D 00 00 00 00 00 FF 0F A6 [00:24:47]process_action close_receipt done [00:24:47]requested_data is exist [00:24:47]produce_requested_data [00:24:47]requested_item fm.sn is exist - process it [00:24:47]wFMCommunicate request_size=4 [00:24:47]MH_SAM_APDU [00:24:47]CAPDU: 80 11 00 00 [00:24:47]Write to MH i2c: E2 08 00 65 2D 80 11 00 00 00 00 00 00 0C [00:24:47]Write i2c OK [00:24:47]MH_I2C_Read... [00:24:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:24:47]Read from MH i2c: E2 [00:24:47]MH_I2C_Read... [00:24:47]Read from MH i2c: E2 17 00 [00:24:47]MH_I2C_Read... [00:24:47]Read from MH i2c: E2 17 00 65 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 67 [00:24:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:24:47]wFMCommunicate OK [00:24:47]requested_item fd.num is exist - process it [00:24:47]SAM_PROTO_GetFieldsCounters [00:24:47]wFMCommunicate request_size=4 [00:24:47]MH_SAM_APDU [00:24:47]CAPDU: 80 13 00 00 [00:24:47]Write to MH i2c: E2 08 00 66 2D 80 13 00 00 00 00 00 00 0F [00:24:47]Write i2c OK [00:24:47]MH_I2C_Read... [00:24:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:24:47]Read from MH i2c: E2 [00:24:47]MH_I2C_Read... [00:24:47]Read from MH i2c: E2 62 00 [00:24:47]MH_I2C_Read... [00:24:47]Read from MH i2c: E2 62 00 66 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 40 CE 01 00 0E 04 04 00 B1 01 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 06 [00:24:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 40 CE 01 00 0E 04 04 00 B1 01 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 [00:24:47]wFMCommunicate OK [00:24:47]SAM_PROTO_GetFieldsCounters done [00:24:47]requested_item shift.num is exist - process it [00:24:47]requested_item shift.opened is exist - process it [00:24:47]req_shift_opened [00:24:47]FM_GetShiftState [00:24:47]SAM_PROTO_GetShiftState [00:24:47]wFMCommunicate request_size=4 [00:24:47]MH_SAM_APDU [00:24:47]CAPDU: 80 13 01 00 [00:24:47]Write to MH i2c: E2 08 00 67 2D 80 13 01 00 00 00 00 00 11 [00:24:47]Write i2c OK [00:24:47]MH_I2C_Read... [00:24:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:47]Read from MH i2c: E2 [00:24:47]MH_I2C_Read... [00:24:47]Read from MH i2c: E2 0E 00 [00:24:47]MH_I2C_Read... [00:24:47]Read from MH i2c: E2 0E 00 67 2D 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 E8 [00:24:47]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [00:24:47]wFMCommunicate OK [00:24:47]SAM_PROTO_GetShiftState done [00:24:47]FM_GetShiftState done [00:24:47]req_shift_opened done [00:24:47]requested_item shift.open_date is exist - process it [00:24:47]req_shift_open_date [00:24:47]req_shift_open_date done [00:24:47]produce_requested_data done [00:24:47]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118336,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [00:24:47]process_action_free close_receipt [00:24:47]json_value_free [00:24:47]json_value_free done [00:24:47]process_json_proto returns [00:24:47]Send response to host [00:24:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118336,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [00:24:47]free response buf [00:24:47]execute_script done [00:24:47]execute_script returns [00:24:47]free content buf [00:24:47]Sock 7.Close socket [00:24:47]Sock 7.Thread stoped [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:13]accept exits with 9 [00:29:13]New connection [00:29:13]New thread 3067096420 created [00:29:13]Thread 3066953060 joined [00:29:13]Waiting for new connection... [00:29:13] Sock 9.Parse request [00:29:13]Sock 9.Check first char [00:29:13]Sock 9.First char is OK [00:29:13]request: POST /json_proto HTTP/1.0 [00:29:13]Method: POST [00:29:13]URL: /json_proto [00:29:13]Method is POST - this is cgi request [00:29:13]url: /json_proto [00:29:13]query_string will be loaded in cgi processing [00:29:13]execute_cgi json_proto POST (null) [00:29:13]execute_cgi path=json_proto method=POST [00:29:13]POST find Content-Length [00:29:13]Host: 172.17.45.7:8080 [00:29:13]Content-Length: 678 [00:29:13]Content-Type: application/json [00:29:13] [00:29:13]POST finish read [00:29:13]Found Content-Length = 678 [00:29:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "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:29:13]execute_script... [00: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)949211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "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:29:13]POST & json_proto [00:29:13]process_json_proto [00:29:13]json parsed OK: [00:29:13]protocol is kg_v1.0 [00:29:13]action value=close_receipt [00:29:13]process_action close_receipt [00:29:13]cmd_close_receipt [00:29:13]MH_GetDate [00:29:13]Write to MH i2c: F0 00 00 68 2D 84 [00:29:13]Write i2c OK [00:29:13]MH_I2C_Read... [00:29:13]Read from MH i2c: F0 [00:29:13]MH_I2C_Read... [00:29:13]Read from MH i2c: F0 09 00 [00:29:13]MH_I2C_Read... [00:29:13]Read from MH i2c: F0 09 00 68 2D 00 DB 90 A5 66 90 0F 3E 66 46 [00:29:13]GetLastDocTimeStamp 1722126285 [00:29:13]current date 1722126555 [00:29:13]FM_GetShiftState [00:29:13]SAM_PROTO_GetShiftState [00:29:13]wFMCommunicate request_size=4 [00:29:13]MH_SAM_APDU [00:29:13]CAPDU: 80 13 01 00 [00:29:13]Write to MH i2c: E2 08 00 69 2D 80 13 01 00 00 00 00 00 13 [00:29:13]Write i2c OK [00:29:13]MH_I2C_Read... [00:29:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:13]Read from MH i2c: E2 [00:29:13]MH_I2C_Read... [00:29:13]Read from MH i2c: E2 0E 00 [00:29:13]MH_I2C_Read... [00:29:13]Read from MH i2c: E2 0E 00 69 2D 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 EA [00:29:13]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [00:29:13]wFMCommunicate OK [00:29:13]SAM_PROTO_GetShiftState done [00:29:13]FM_GetShiftState done [00:29:13]opened in 1722125364 [00:29:13]opened+sec_in_day 1722211764 [00:29:13]quantity*price = 80004 [00:29:13]sum+1 = 80005 [00:29:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 6 28.07.2024 00:29 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118337 ФПД: 32432477818799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T002915&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118337&fm=32432477818799&tin=02508201610067®Number=0000000000092660&sum=80000 [00:29:14]StoreToDocumentArchive [00:29:14]shift 433 fd 118337 [00:29:14]save to /storage/0433/doc_00118337 [00:29:14]save last doc name /storage/0433/doc_00118337 to /storage/kkm_last_doc_name [00:29:14]save OK [00:29:14]Clear old archive folders... [00:29:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:29:14]tlvbuf is 01E523D0 [00:29:14]SAM_PROTO_ClearQueue [00:29:14]wFMCommunicate request_size=4 [00:29:14]MH_SAM_APDU [00:29:14]CAPDU: 80 09 00 00 [00:29:14]Write to MH i2c: E2 08 00 76 2D 80 09 00 00 00 00 00 00 15 [00:29:14]Write i2c OK [00:29:14]MH_I2C_Read... [00:29:14]Read from MH i2c: E2 [00:29:14]MH_I2C_Read... [00:29:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:29:14]Read from MH i2c: E2 03 00 [00:29:14]MH_I2C_Read... [00:29:14]Read from MH i2c: E2 03 00 76 2D 00 90 00 17 [00:29:14]RAPDU: 90 00 [00:29:14]wFMCommunicate OK [00:29:14]SAM_PROTO_ClearQueue done [00:29:14]KKMCreateOFDPacket [00:29:14]OFDProtocolAddRootSTLVToBuf [00:29:14]FM_MakeSignedData [00:29:14]FM_MakeSignedData [00:29:14]SAM_PROTO_SignData [00:29:14]wFMCommunicate request_size=4 [00:29:14]MH_SAM_APDU [00:29:14]CAPDU: 80 0D 01 02 [00:29:14]Write to MH i2c: E2 08 00 77 2D 80 0D 01 02 00 00 00 00 1D [00:29:14]Write i2c OK [00:29:14]MH_I2C_Read... [00:29:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:29:14]Read from MH i2c: E2 [00:29:14]MH_I2C_Read... [00:29:14]Read from MH i2c: E2 03 00 [00:29:14]MH_I2C_Read... [00:29:14]Read from MH i2c: E2 03 00 77 2D 00 90 00 18 [00:29:14]RAPDU: 90 00 [00:29:14]wFMCommunicate OK [00:29:14]wFMCommunicate request_size=255 [00:29:14]MH_SAM_APDU [00:29:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 06 00 00 00 F4 03 04 00 DB 90 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 41 CE 01 00 35 04 06 00 1D [00:29:14]Write to MH i2c: E2 02 01 78 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 06 00 00 00 F4 03 04 00 DB 90 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 41 CE 01 00 35 04 06 00 1D 00 00 A9 [00:29:14]Write i2c OK [00:29:14]MH_I2C_Read... [00:29:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:29:15]Read from MH i2c: E2 [00:29:15]MH_I2C_Read... [00:29:15]Read from MH i2c: E2 03 00 [00:29:15]MH_I2C_Read... [00:29:15]Read from MH i2c: E2 03 00 78 2D 00 90 00 19 [00:29:15]RAPDU: 90 00 [00:29:15]wFMCommunicate OK [00:29:15]wFMCommunicate request_size=10 [00:29:15]MH_SAM_APDU [00:29:15]CAPDU: 80 0D 02 02 05 7F 46 51 CF AF [00:29:15]Write to MH i2c: E2 0D 00 79 2D 80 0D 02 02 05 00 7F 46 51 CF AF 00 00 BE [00:29:15]Write i2c OK [00:29:15]MH_I2C_Read... [00:29:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:29:15]Read from MH i2c: E2 [00:29:15]MH_I2C_Read... [00:29:15]Read from MH i2c: E2 03 00 [00:29:15]MH_I2C_Read... [00:29:15]Read from MH i2c: E2 03 00 79 2D 00 90 00 1A [00:29:15]RAPDU: 90 00 [00:29:15]wFMCommunicate OK [00:29:15]wFMCommunicate request_size=4 [00:29:15]MH_SAM_APDU [00:29:15]CAPDU: 80 0D 03 02 [00:29:15]Write to MH i2c: E2 08 00 7A 2D 80 0D 03 02 00 00 00 00 22 [00:29:15]Write i2c OK [00:29:15]MH_I2C_Read... [00:29:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:29:15]Read from MH i2c: E2 [00:29:15]MH_I2C_Read... [00:29:15]Read from MH i2c: E2 0B 00 [00:29:15]MH_I2C_Read... [00:29:15]Read from MH i2c: E2 0B 00 7A 2D 00 64 C8 19 E1 8D 13 C1 00 90 00 AA [00:29:15]RAPDU: 64 C8 19 E1 8D 13 C1 00 90 00 [00:29:15]wFMCommunicate OK [00:29:15]SAM_PROTO_SignData done [00:29:15]FM_MakeSignedData done [00:29:15]CreateOFDProtocolMessage [00:29:15]wFMCommunicate request_size=4 [00:29:15]MH_SAM_APDU [00:29:15]CAPDU: 80 11 00 00 [00:29:15]Write to MH i2c: E2 08 00 7B 2D 80 11 00 00 00 00 00 00 22 [00:29:15]Write i2c OK [00:29:15]MH_I2C_Read... [00:29:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:29:15]Read from MH i2c: E2 [00:29:15]MH_I2C_Read... [00:29:15]Read from MH i2c: E2 17 00 [00:29:15]MH_I2C_Read... [00:29:15]Read from MH i2c: E2 17 00 7B 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7D [00:29:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:29:15]wFMCommunicate OK [00:29:15]CreateOFDProtocolMessage done [00:29:15]OFDSenderStorePacket 118337 [00:29:15]StoreOFDPacket docnum=118337 [00:29:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 23 3C 07 01 9D 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 06 00 00 00 F4 03 04 00 DB 90 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 41 CE 01 00 35 04 06 00 1D 7F 46 51 CF AF 64 C8 19 E1 8D 13 C1 00 [00:29:15]CheckFolder [00:29:15]dirname=/storage/ofd_packets [00:29:15]CheckFolder done [00:29:15]ProducePacketName [00:29:15]name=ofd_packets/00118337 [00:29:15]NVStorageSaveData ofd_packets/00118337 [00:29:15]File name is /storage/ofd_packets/00118337 [00:29:15]Write 301 bytes [00:29:15]NVStorageSaveData done [00:29:15]OFDSenderStorePacket done [00:29:15]KKMCreateOFDPacket done [00:29:15]NVStorageSaveData kkm_last_timestamp [00:29:15]File name is /storage/kkm_last_timestamp [00:29:15]Write 4 bytes [00:29:15]NVStorageSaveData done [00:29:15]ExternCall_PrintAddStr [00:29:15]wPrintStart [00:29:15]Write to MH i2c: 01 00 00 7C 2D A9 [00:29:15]Write i2c OK [00:29:15]MH_I2C_Read... [00:29:15]Read from MH i2c: 01 [00:29:15]MH_I2C_Read... [00:29:15]Read from MH i2c: 01 07 00 [00:29:15]MH_I2C_Read... [00:29:15]Read from MH i2c: 01 07 00 7C 2D 00 00 00 00 00 FF 0F BE [00:29:15]RasterBufferAndPrint [00:29:15]line Счет N : (1)949211 [00:29:15]line ИНН: 02508201610067 [00:29:15]line Контрольно-Кассовый Чек [00:29:15]line ПРОДАЖА [00:29:15]line ТРК (МРК, ГНК) : 31 [00:29:15]line Товар: 2710124130 [00:29:15]line Аи-92-К-4 [00:29:15]line 11.800 * 67.80 [00:29:15]line = 800.04 [00:29:15]line НДС 12% НСП 1% [00:29:15]line > о реализуемом товаре [00:29:15]line ОКРУГЛЕНИЕ: -0.04 [00:29:15]line ИТОГО: 800.00 [00:29:15]line Внесено: 800.00 [00:29:15]line СДАЧА: 0.00 [00:29:15]line НСП 1% : 7.08 [00:29:15]line НДС 12% : 84.96 [00:29:15]line Наличными: 800.00 [00:29:15]line Безнал.: 0.00 [00:29:15]line Место: АЗС № 134 "Партнер Нефть" [00:29:15]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [00:29:15]line СНО: Общий режим [00:29:15]line Чек 6 28.07.2024 00:29 [00:29:15]line Смена: 433 ФФД: 1.0 [00:29:15]line ЗНМ: 0300000044 [00:29:15]line РНМ: 0000000000092660 [00:29:15]line Версия ККМ: 001 [00:29:15]line ФМ: 0000000000874939 [00:29:15]line ФД: 118337 [00:29:15]line ФПД: 32432477818799 [00:29:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T002915&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118337&fm=32432477818799&tin=02508201610067®Number=0000000000092660&sum=80000 [00:29:15]OFD Sender: Processing packet 118337 [packets to send 86, broken 85] [00:29:15]ProducePacketName [00:29:15]name=ofd_packets/00118337 [00:29:15]OFD Sender: To server: pG, [00:29:15]CommunicateWithHost lk.salyk.kg:30040 [00:29:15]ConnectInit lk.salyk.kg [00:29:15]written 0, free lines is 4095 [00:29:15]Connected sock=10 [00:29:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 23 3C 07 01 9D 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 06 00 00 00 F4 03 04 00 DB 90 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 41 CE 01 00 35 04 06 00 1D 7F 46 51 CF AF 64 C8 19 E1 8D 13 C1 00 [00:29:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 09 10 47 00 CC CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 41 CE 01 00 F4 03 04 00 6D 3E A5 66 B6 04 01 00 00 1D B1 9F 05 F8 7B 82 60 [00:29:15]CommunicateWithHost err = 0 [00:29:15]CheckOFDResponse [00:29:15]1017 (14) - 77093643461234 [00:29:15]1041 (16) - 0000000000874939 [00:29:15]1040 (4) - 118337 [00:29:15]1012 (4) - 27.07.2024 18:37 [00:29:15]1206 (1) - 0 [00:29:15]OFD Sender: Remove packet 118337 [00:29:15]ProducePacketName [00:29:15]name=ofd_packets/00118337 [00:29:15]NVStorageDeleteData [00:29:16]Write to MH i2c: 01 00 00 A6 2D D3 [00:29:16]Write i2c OK [00:29:16]MH_I2C_Read... [00:29:16]Read from MH i2c: 01 [00:29:16]MH_I2C_Read... [00:29:16]Read from MH i2c: 01 07 00 [00:29:16]MH_I2C_Read... [00:29:16]Read from MH i2c: 01 07 00 A6 2D 00 00 00 00 00 CA 0C B0 [00:29:16]RasterBufferAndPrint [00:29:16]line [00:29:16]line [00:29:16]line [00:29:16]line [00:29:16]line [00:29:16]written 0, free lines is 3281 [00:29:16]MH_Cut [00:29:16]Write to MH i2c: D1 01 00 AD 2D 01 AC [00:29:16]Write i2c OK [00:29:16]MH_I2C_Read... [00:29:16]Read from MH i2c: D1 [00:29:16]MH_I2C_Read... [00:29:16]Read from MH i2c: D1 01 00 [00:29:16]MH_I2C_Read... [00:29:16]Read from MH i2c: D1 01 00 AD 2D 00 AB [00:29:16]Write to MH i2c: 01 00 00 AE 2D DB [00:29:16]Write i2c OK [00:29:16]MH_I2C_Read... [00:29:16]OFD Sender: No OFD packet to send [00:29:16]*** Cut start [00:29:16]*** Partial cut [00:29:16]*** CUTSNS_PIN = 1 [00:29:16]*** CUTSNS_PIN = 0 [00:29:17]*** Brake cut motor [00:29:17]Read from MH i2c: 01 [00:29:17]MH_I2C_Read... [00:29:17]*** Stop cut motor [00:29:17]*** Cut end [00:29:17]Read from MH i2c: 01 07 00 [00:29:17]MH_I2C_Read... [00:29:17]Read from MH i2c: 01 07 00 AE 2D 00 00 00 00 00 FF 0F F0 [00:29:17]process_action close_receipt done [00:29:17]requested_data is exist [00:29:17]produce_requested_data [00:29:17]requested_item fm.sn is exist - process it [00:29:17]wFMCommunicate request_size=4 [00:29:17]MH_SAM_APDU [00:29:17]CAPDU: 80 11 00 00 [00:29:17]Write to MH i2c: E2 08 00 AF 2D 80 11 00 00 00 00 00 00 56 [00:29:17]Write i2c OK [00:29:17]MH_I2C_Read... [00:29:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:29:17]Read from MH i2c: E2 [00:29:17]MH_I2C_Read... [00:29:17]Read from MH i2c: E2 17 00 [00:29:17]MH_I2C_Read... [00:29:17]Read from MH i2c: E2 17 00 AF 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B1 [00:29:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:29:17]wFMCommunicate OK [00:29:17]requested_item fd.num is exist - process it [00:29:17]SAM_PROTO_GetFieldsCounters [00:29:17]wFMCommunicate request_size=4 [00:29:17]MH_SAM_APDU [00:29:17]CAPDU: 80 13 00 00 [00:29:17]Write to MH i2c: E2 08 00 B0 2D 80 13 00 00 00 00 00 00 59 [00:29:17]Write i2c OK [00:29:17]MH_I2C_Read... [00:29:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:29:17]Read from MH i2c: E2 [00:29:17]MH_I2C_Read... [00:29:17]Read from MH i2c: E2 62 00 [00:29:17]MH_I2C_Read... [00:29:17]Read from MH i2c: E2 62 00 B0 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 41 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [00:29:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 41 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:29:17]wFMCommunicate OK [00:29:17]SAM_PROTO_GetFieldsCounters done [00:29:17]requested_item shift.num is exist - process it [00:29:17]requested_item shift.opened is exist - process it [00:29:17]req_shift_opened [00:29:17]FM_GetShiftState [00:29:17]SAM_PROTO_GetShiftState [00:29:17]wFMCommunicate request_size=4 [00:29:17]MH_SAM_APDU [00:29:17]CAPDU: 80 13 01 00 [00:29:17]Write to MH i2c: E2 08 00 B1 2D 80 13 01 00 00 00 00 00 5B [00:29:17]Write i2c OK [00:29:17]MH_I2C_Read... [00:29:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:17]Read from MH i2c: E2 [00:29:17]MH_I2C_Read... [00:29:17]Read from MH i2c: E2 0E 00 [00:29:17]MH_I2C_Read... [00:29:17]Read from MH i2c: E2 0E 00 B1 2D 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 32 [00:29:17]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [00:29:17]wFMCommunicate OK [00:29:17]SAM_PROTO_GetShiftState done [00:29:17]FM_GetShiftState done [00:29:17]req_shift_opened done [00:29:17]requested_item shift.open_date is exist - process it [00:29:17]req_shift_open_date [00:29:17]req_shift_open_date done [00:29:17]produce_requested_data done [00:29:17]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118337,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [00:29:17]process_action_free close_receipt [00:29:17]json_value_free [00:29:17]json_value_free done [00:29:17]process_json_proto returns [00:29:17]Send response to host [00:29:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118337,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [00:29:17]free response buf [00:29:17]execute_script done [00:29:17]execute_script returns [00:29:17]free content buf [00:29:17]Sock 9.Close socket [00:29:17]Sock 9.Thread stoped [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:11]OFD Sender: No OFD packet to send [00:30:16]OFD Sender: No OFD packet to send [00:30:21]OFD Sender: No OFD packet to send [00:30:26]OFD Sender: No OFD packet to send [00:30:31]OFD Sender: No OFD packet to send [00:30:36]OFD Sender: No OFD packet to send [00:30:41]OFD Sender: No OFD packet to send [00:30:46]OFD Sender: No OFD packet to send [00:30:51]OFD Sender: No OFD packet to send [00:30:56]OFD Sender: No OFD packet to send [00:31:01]OFD Sender: No OFD packet to send [00:31:06]OFD Sender: No OFD packet to send [00:31:11]OFD Sender: No OFD packet to send [00:31:16]OFD Sender: No OFD packet to send [00:31:21]OFD Sender: No OFD packet to send [00:31:26]OFD Sender: No OFD packet to send [00:31:31]OFD Sender: No OFD packet to send [00:31:36]OFD Sender: No OFD packet to send [00:31:41]OFD Sender: No OFD packet to send [00:31:46]OFD Sender: No OFD packet to send [00:31:51]OFD Sender: No OFD packet to send [00:31:56]OFD Sender: No OFD packet to send [00:32:01]OFD Sender: No OFD packet to send [00:32:06]OFD Sender: No OFD packet to send [00:32:11]OFD Sender: No OFD packet to send [00:32:16]OFD Sender: No OFD packet to send [00:32:21]OFD Sender: No OFD packet to send [00:32:26]OFD Sender: No OFD packet to send [00:32:31]OFD Sender: No OFD packet to send [00:32:36]OFD Sender: No OFD packet to send [00:32:41]OFD Sender: No OFD packet to send [00:32:46]OFD Sender: No OFD packet to send [00:32:51]OFD Sender: No OFD packet to send [00:32:56]OFD Sender: No OFD packet to send [00:33:01]OFD Sender: No OFD packet to send [00:33:06]OFD Sender: No OFD packet to send [00:33:11]OFD Sender: No OFD packet to send [00:33:16]OFD Sender: No OFD packet to send [00:33:21]OFD Sender: No OFD packet to send [00:33:26]OFD Sender: No OFD packet to send [00:33:31]OFD Sender: No OFD packet to send [00:33:36]OFD Sender: No OFD packet to send [00:33:41]OFD Sender: No OFD packet to send [00:33:46]OFD Sender: No OFD packet to send [00:33:51]OFD Sender: No OFD packet to send [00:33:56]OFD Sender: No OFD packet to send [00:34:01]OFD Sender: No OFD packet to send [00:34:06]OFD Sender: No OFD packet to send [00:34:11]OFD Sender: No OFD packet to send [00:34:16]OFD Sender: No OFD packet to send [00:34:21]OFD Sender: No OFD packet to send [00:34:26]OFD Sender: No OFD packet to send [00:34:31]OFD Sender: No OFD packet to send [00:34:36]OFD Sender: No OFD packet to send [00:34:41]OFD Sender: No OFD packet to send [00:34:46]OFD Sender: No OFD packet to send [00:34:51]OFD Sender: No OFD packet to send [00:34:56]OFD Sender: No OFD packet to send [00:35:01]OFD Sender: No OFD packet to send [00:35:06]OFD Sender: No OFD packet to send [00:35:11]OFD Sender: No OFD packet to send [00:35:16]OFD Sender: No OFD packet to send [00:35:21]OFD Sender: No OFD packet to send [00:35:26]OFD Sender: No OFD packet to send [00:35:31]OFD Sender: No OFD packet to send [00:35:36]OFD Sender: No OFD packet to send [00:35:41]OFD Sender: No OFD packet to send [00:35:46]OFD Sender: No OFD packet to send [00:35:51]OFD Sender: No OFD packet to send [00:35:56]OFD Sender: No OFD packet to send [00:36:01]OFD Sender: No OFD packet to send [00:36:06]OFD Sender: No OFD packet to send [00:36:11]OFD Sender: No OFD packet to send [00:36:16]OFD Sender: No OFD packet to send [00:36:21]OFD Sender: No OFD packet to send [00:36:26]OFD Sender: No OFD packet to send [00:36:31]OFD Sender: No OFD packet to send [00:36:36]OFD Sender: No OFD packet to send [00:36:41]OFD Sender: No OFD packet to send [00:36:46]OFD Sender: No OFD packet to send [00:36:51]OFD Sender: No OFD packet to send [00:36:56]OFD Sender: No OFD packet to send [00:37:01]OFD Sender: No OFD packet to send [00:37:06]OFD Sender: No OFD packet to send [00:37:11]OFD Sender: No OFD packet to send [00:37:16]OFD Sender: No OFD packet to send [00:37:21]OFD Sender: No OFD packet to send [00:37:26]OFD Sender: No OFD packet to send [00:37:31]OFD Sender: No OFD packet to send [00:37:36]OFD Sender: No OFD packet to send [00:37:41]OFD Sender: No OFD packet to send [00:37:46]OFD Sender: No OFD packet to send [00:37:51]OFD Sender: No OFD packet to send [00:37:56]OFD Sender: No OFD packet to send [00:38: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:20]accept exits with 7 [00:45:20]New connection [00:45:20]New thread 3066953060 created [00:45:20]Thread 3067096420 joined [00:45:20]Waiting for new connection... [00:45:20] Sock 7.Parse request [00:45:20]Sock 7.Check first char [00:45:20]Sock 7.First char is OK [00:45:20]request: POST /json_proto HTTP/1.0 [00:45:20]Method: POST [00:45:20]URL: /json_proto [00:45:20]Method is POST - this is cgi request [00:45:20]url: /json_proto [00:45:20]query_string will be loaded in cgi processing [00:45:20]execute_cgi json_proto POST (null) [00:45:20]execute_cgi path=json_proto method=POST [00:45:20]POST find Content-Length [00:45:20]Host: 172.17.45.7:8080 [00:45:20]Content-Length: 677 [00:45:20]Content-Type: application/json [00:45:20] [00:45:20]POST finish read [00:45:20]Found Content-Length = 677 [00:45:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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" ] } } [00:45:20]execute_script... [00:45: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)949213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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" ] } } [00:45:20]POST & json_proto [00:45:20]process_json_proto [00:45:20]json parsed OK: [00:45:20]protocol is kg_v1.0 [00:45:20]action value=close_receipt [00:45:20]process_action close_receipt [00:45:20]cmd_close_receipt [00:45:20]MH_GetDate [00:45:20]Write to MH i2c: F0 00 00 B2 2D CE [00:45:20]Write i2c OK [00:45:20]MH_I2C_Read... [00:45:20]Read from MH i2c: F0 [00:45:20]MH_I2C_Read... [00:45:20]Read from MH i2c: F0 09 00 [00:45:20]MH_I2C_Read... [00:45:20]Read from MH i2c: F0 09 00 B2 2D 00 A2 94 A5 66 90 0F 3E 66 5B [00:45:20]GetLastDocTimeStamp 1722126555 [00:45:20]current date 1722127522 [00:45:20]FM_GetShiftState [00:45:20]SAM_PROTO_GetShiftState [00:45:20]wFMCommunicate request_size=4 [00:45:20]MH_SAM_APDU [00:45:20]CAPDU: 80 13 01 00 [00:45:20]Write to MH i2c: E2 08 00 B3 2D 80 13 01 00 00 00 00 00 5D [00:45:20]Write i2c OK [00:45:20]MH_I2C_Read... [00:45:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:20]Read from MH i2c: E2 [00:45:20]MH_I2C_Read... [00:45:20]Read from MH i2c: E2 0E 00 [00:45:20]MH_I2C_Read... [00:45:20]Read from MH i2c: E2 0E 00 B3 2D 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 34 [00:45:20]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [00:45:20]wFMCommunicate OK [00:45:20]SAM_PROTO_GetShiftState done [00:45:20]FM_GetShiftState done [00:45:20]opened in 1722125364 [00:45:20]opened+sec_in_day 1722211764 [00:45:20]quantity*price = 20001 [00:45:20]sum+1 = 20002 [00:45:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 7 28.07.2024 00:45 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118338 ФПД: 116735820000178 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T004522&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118338&fm=116735820000178&tin=02508201610067®Number=0000000000092660&sum=20000 [00:45:21]StoreToDocumentArchive [00:45:21]shift 433 fd 118338 [00:45:21]save to /storage/0433/doc_00118338 [00:45:21]save last doc name /storage/0433/doc_00118338 to /storage/kkm_last_doc_name [00:45:21]save OK [00:45:21]Clear old archive folders... [00:45:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:45:21]tlvbuf is 01E3BFF0 [00:45:21]SAM_PROTO_ClearQueue [00:45:21]wFMCommunicate request_size=4 [00:45:21]MH_SAM_APDU [00:45:21]CAPDU: 80 09 00 00 [00:45:21]Write to MH i2c: E2 08 00 C0 2D 80 09 00 00 00 00 00 00 5F [00:45:21]Write i2c OK [00:45:21]MH_I2C_Read... [00:45:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:45:21]Read from MH i2c: E2 [00:45:21]MH_I2C_Read... [00:45:21]Read from MH i2c: E2 03 00 [00:45:21]MH_I2C_Read... [00:45:21]Read from MH i2c: E2 03 00 C0 2D 00 90 00 61 [00:45:21]RAPDU: 90 00 [00:45:21]wFMCommunicate OK [00:45:21]SAM_PROTO_ClearQueue done [00:45:21]KKMCreateOFDPacket [00:45:21]OFDProtocolAddRootSTLVToBuf [00:45:21]FM_MakeSignedData [00:45:21]FM_MakeSignedData [00:45:21]SAM_PROTO_SignData [00:45:21]wFMCommunicate request_size=4 [00:45:21]MH_SAM_APDU [00:45:21]CAPDU: 80 0D 01 02 [00:45:21]Write to MH i2c: E2 08 00 C1 2D 80 0D 01 02 00 00 00 00 67 [00:45:21]Write i2c OK [00:45:21]MH_I2C_Read... [00:45:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:45:21]Read from MH i2c: E2 [00:45:21]MH_I2C_Read... [00:45:21]Read from MH i2c: E2 03 00 [00:45:21]MH_I2C_Read... [00:45:21]Read from MH i2c: E2 03 00 C1 2D 00 90 00 62 [00:45:21]RAPDU: 90 00 [00:45:21]wFMCommunicate OK [00:45:21]wFMCommunicate request_size=255 [00:45:21]MH_SAM_APDU [00:45: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 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 A2 94 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 42 CE 01 00 35 04 06 00 6A [00:45:21]Write to MH i2c: E2 02 01 C2 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 A2 94 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 42 CE 01 00 35 04 06 00 6A 00 00 62 [00:45:21]Write i2c OK [00:45:21]MH_I2C_Read... [00:45:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:21]Read from MH i2c: E2 [00:45:21]MH_I2C_Read... [00:45:21]Read from MH i2c: E2 03 00 [00:45:21]MH_I2C_Read... [00:45:21]Read from MH i2c: E2 03 00 C2 2D 00 90 00 63 [00:45:21]RAPDU: 90 00 [00:45:21]wFMCommunicate OK [00:45:21]wFMCommunicate request_size=10 [00:45:21]MH_SAM_APDU [00:45:21]CAPDU: 80 0D 02 02 05 2B AD 15 6B B2 [00:45:21]Write to MH i2c: E2 0D 00 C3 2D 80 0D 02 02 05 00 2B AD 15 6B B2 00 00 7E [00:45:21]Write i2c OK [00:45:21]MH_I2C_Read... [00:45:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:21]Read from MH i2c: E2 [00:45:21]MH_I2C_Read... [00:45:21]Read from MH i2c: E2 03 00 [00:45:21]MH_I2C_Read... [00:45:21]Read from MH i2c: E2 03 00 C3 2D 00 90 00 64 [00:45:21]RAPDU: 90 00 [00:45:21]wFMCommunicate OK [00:45:21]wFMCommunicate request_size=4 [00:45:21]MH_SAM_APDU [00:45:21]CAPDU: 80 0D 03 02 [00:45:21]Write to MH i2c: E2 08 00 C4 2D 80 0D 03 02 00 00 00 00 6C [00:45:21]Write i2c OK [00:45:21]MH_I2C_Read... [00:45:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:45:22]Read from MH i2c: E2 [00:45:22]MH_I2C_Read... [00:45:22]Read from MH i2c: E2 0B 00 [00:45:22]MH_I2C_Read... [00:45:22]Read from MH i2c: E2 0B 00 C4 2D 00 E6 A8 37 20 C4 4D 3B C5 90 00 63 [00:45:22]RAPDU: E6 A8 37 20 C4 4D 3B C5 90 00 [00:45:22]wFMCommunicate OK [00:45:22]SAM_PROTO_SignData done [00:45:22]FM_MakeSignedData done [00:45:22]CreateOFDProtocolMessage [00:45:22]wFMCommunicate request_size=4 [00:45:22]MH_SAM_APDU [00:45:22]CAPDU: 80 11 00 00 [00:45:22]Write to MH i2c: E2 08 00 C5 2D 80 11 00 00 00 00 00 00 6C [00:45:22]Write i2c OK [00:45:22]MH_I2C_Read... [00:45:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:22]Read from MH i2c: E2 [00:45:22]MH_I2C_Read... [00:45:22]Read from MH i2c: E2 17 00 [00:45:22]MH_I2C_Read... [00:45:22]Read from MH i2c: E2 17 00 C5 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C7 [00:45:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:45:22]wFMCommunicate OK [00:45:22]CreateOFDProtocolMessage done [00:45:22]OFDSenderStorePacket 118338 [00:45:22]StoreOFDPacket docnum=118338 [00:45:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 52 B2 07 01 A0 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 A2 94 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 42 CE 01 00 35 04 06 00 6A 2B AD 15 6B B2 E6 A8 37 20 C4 4D 3B C5 [00:45:22]CheckFolder [00:45:22]dirname=/storage/ofd_packets [00:45:22]CheckFolder done [00:45:22]ProducePacketName [00:45:22]name=ofd_packets/00118338 [00:45:22]NVStorageSaveData ofd_packets/00118338 [00:45:22]File name is /storage/ofd_packets/00118338 [00:45:22]Write 301 bytes [00:45:22]NVStorageSaveData done [00:45:22]OFDSenderStorePacket done [00:45:22]KKMCreateOFDPacket done [00:45:22]NVStorageSaveData kkm_last_timestamp [00:45:22]File name is /storage/kkm_last_timestamp [00:45:22]Write 4 bytes [00:45:22]NVStorageSaveData done [00:45:22]ExternCall_PrintAddStr [00:45:22]wPrintStart [00:45:22]Write to MH i2c: 01 00 00 C6 2D F3 [00:45:22]Write i2c OK [00:45:22]MH_I2C_Read... [00:45:22]Read from MH i2c: 01 [00:45:22]MH_I2C_Read... [00:45:22]Read from MH i2c: 01 07 00 [00:45:22]MH_I2C_Read... [00:45:22]Read from MH i2c: 01 07 00 C6 2D 00 00 00 00 00 FF 0F 08 [00:45:22]RasterBufferAndPrint [00:45:22]line Счет N : (1)949213 [00:45:22]line ИНН: 02508201610067 [00:45:22]line Контрольно-Кассовый Чек [00:45:22]line ПРОДАЖА [00:45:22]line ТРК (МРК, ГНК) : 41 [00:45:22]line Товар: 2710124130 [00:45:22]line Аи-92-К-4 [00:45:22]line 2.950 * 67.80 [00:45:22]line = 200.01 [00:45:22]line НДС 12% НСП 1% [00:45:22]line > о реализуемом товаре [00:45:22]line ОКРУГЛЕНИЕ: -0.01 [00:45:22]line ИТОГО: 200.00 [00:45:22]line Внесено: 200.00 [00:45:22]line СДАЧА: 0.00 [00:45:22]line НСП 1% : 1.77 [00:45:22]line НДС 12% : 21.24 [00:45:22]line Наличными: 200.00 [00:45:22]line Безнал.: 0.00 [00:45:22]line Место: АЗС № 134 "Партнер Нефть" [00:45:22]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [00:45:22]line СНО: Общий режим [00:45:22]line Чек 7 28.07.2024 00:45 [00:45:22]line Смена: 433 ФФД: 1.0 [00:45:22]line ЗНМ: 0300000044 [00:45:22]line РНМ: 0000000000092660 [00:45:22]line Версия ККМ: 001 [00:45:22]line ФМ: 0000000000874939 [00:45:22]line ФД: 118338 [00:45:22]line ФПД: 116735820000178 [00:45:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T004522&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118338&fm=116735820000178&tin=02508201610067®Number=0000000000092660&sum=20000 [00:45:22]OFD Sender: Processing packet 118338 [packets to send 86, broken 85] [00:45:22]ProducePacketName [00:45:22]name=ofd_packets/00118338 [00:45:22]OFD Sender: To server: pG, [00:45:22]CommunicateWithHost lk.salyk.kg:30040 [00:45:22]ConnectInit lk.salyk.kg [00:45:22]written 0, free lines is 4095 [00:45:22]Connected sock=9 [00:45:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 52 B2 07 01 A0 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 A2 94 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 42 CE 01 00 35 04 06 00 6A 2B AD 15 6B B2 E6 A8 37 20 C4 4D 3B C5 [00:45:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 71 B0 47 00 B6 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 34 39 33 39 10 04 04 00 42 CE 01 00 F4 03 04 00 34 42 A5 66 B6 04 01 00 00 FB 30 46 F8 83 DC 22 5B [00:45:22]CommunicateWithHost err = 0 [00:45:22]CheckOFDResponse [00:45:22]1017 (14) - 77093643461234 [00:45:22]1041 (16) - 0000000000874939 [00:45:22]1040 (4) - 118338 [00:45:22]1012 (4) - 27.07.2024 18:53 [00:45:22]1206 (1) - 0 [00:45:22]OFD Sender: Remove packet 118338 [00:45:22]ProducePacketName [00:45:22]name=ofd_packets/00118338 [00:45:22]NVStorageDeleteData [00:45:22]Write to MH i2c: 01 00 00 F0 2D 1D [00:45:22]Write i2c OK [00:45:22]MH_I2C_Read... [00:45:22]Read from MH i2c: 01 [00:45:22]MH_I2C_Read... [00:45:22]Read from MH i2c: 01 07 00 [00:45:22]MH_I2C_Read... [00:45:22]Read from MH i2c: 01 07 00 F0 2D 00 00 00 00 00 C7 0C F7 [00:45:22]RasterBufferAndPrint [00:45:22]line [00:45:22]line [00:45:22]line [00:45:22]line [00:45:22]line [00:45:22]written 0, free lines is 3277 [00:45:22]MH_Cut [00:45:22]Write to MH i2c: D1 01 00 F7 2D 01 F6 [00:45:22]Write i2c OK [00:45:22]MH_I2C_Read... [00:45:22]Read from MH i2c: D1 [00:45:22]MH_I2C_Read... [00:45:22]Read from MH i2c: D1 01 00 [00:45:22]MH_I2C_Read... [00:45:22]Read from MH i2c: D1 01 00 F7 2D 00 F5 [00:45:22]Write to MH i2c: 01 00 00 F8 2D 25 [00:45:22]Write i2c OK [00:45:22]MH_I2C_Read... [00:45:23]OFD Sender: No OFD packet to send [00:45:23]*** Cut start [00:45:23]*** Partial cut [00:45:23]*** CUTSNS_PIN = 1 [00:45:23]*** CUTSNS_PIN = 0 [00:45:23]*** Brake cut motor [00:45:24]Read from MH i2c: 01 [00:45:24]MH_I2C_Read... [00:45:24]*** Stop cut motor [00:45:24]*** Cut end [00:45:24]Read from MH i2c: 01 07 00 [00:45:24]MH_I2C_Read... [00:45:24]Read from MH i2c: 01 07 00 F8 2D 00 00 00 00 00 FF 0F 3A [00:45:24]process_action close_receipt done [00:45:24]requested_data is exist [00:45:24]produce_requested_data [00:45:24]requested_item fm.sn is exist - process it [00:45:24]wFMCommunicate request_size=4 [00:45:24]MH_SAM_APDU [00:45:24]CAPDU: 80 11 00 00 [00:45:24]Write to MH i2c: E2 08 00 F9 2D 80 11 00 00 00 00 00 00 A0 [00:45:24]Write i2c OK [00:45:24]MH_I2C_Read... [00:45:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:24]Read from MH i2c: E2 [00:45:24]MH_I2C_Read... [00:45:24]Read from MH i2c: E2 17 00 [00:45:24]MH_I2C_Read... [00:45:24]Read from MH i2c: E2 17 00 F9 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FB [00:45:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:45:24]wFMCommunicate OK [00:45:24]requested_item fd.num is exist - process it [00:45:24]SAM_PROTO_GetFieldsCounters [00:45:24]wFMCommunicate request_size=4 [00:45:24]MH_SAM_APDU [00:45:24]CAPDU: 80 13 00 00 [00:45:24]Write to MH i2c: E2 08 00 FA 2D 80 13 00 00 00 00 00 00 A3 [00:45:24]Write i2c OK [00:45:24]MH_I2C_Read... [00:45:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:45:24]Read from MH i2c: E2 [00:45:24]MH_I2C_Read... [00:45:24]Read from MH i2c: E2 62 00 [00:45:24]MH_I2C_Read... [00:45:24]Read from MH i2c: E2 62 00 FA 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 42 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [00:45:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 42 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:45:24]wFMCommunicate OK [00:45:24]SAM_PROTO_GetFieldsCounters done [00:45:24]requested_item shift.num is exist - process it [00:45:24]requested_item shift.opened is exist - process it [00:45:24]req_shift_opened [00:45:24]FM_GetShiftState [00:45:24]SAM_PROTO_GetShiftState [00:45:24]wFMCommunicate request_size=4 [00:45:24]MH_SAM_APDU [00:45:24]CAPDU: 80 13 01 00 [00:45:24]Write to MH i2c: E2 08 00 FB 2D 80 13 01 00 00 00 00 00 A5 [00:45:24]Write i2c OK [00:45:24]MH_I2C_Read... [00:45:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:24]Read from MH i2c: E2 [00:45:24]MH_I2C_Read... [00:45:24]Read from MH i2c: E2 0E 00 [00:45:24]MH_I2C_Read... [00:45:24]Read from MH i2c: E2 0E 00 FB 2D 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 7C [00:45:24]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [00:45:24]wFMCommunicate OK [00:45:24]SAM_PROTO_GetShiftState done [00:45:24]FM_GetShiftState done [00:45:24]req_shift_opened done [00:45:24]requested_item shift.open_date is exist - process it [00:45:24]req_shift_open_date [00:45:24]req_shift_open_date done [00:45:24]produce_requested_data done [00:45:24]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118338,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [00:45:24]process_action_free close_receipt [00:45:24]json_value_free [00:45:24]json_value_free done [00:45:24]process_json_proto returns [00:45:24]Send response to host [00:45:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118338,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [00:45:24]free response buf [00:45:24]execute_script done [00:45:24]execute_script returns [00:45:24]free content buf [00:45:24]Sock 7.Close socket [00:45:24]Sock 7.Thread stoped [00:45:24]accept exits with 10 [00:45:24]New connection [00:45:24]New thread 3067096420 created [00:45:24]Thread 3066953060 joined [00:45:24]Waiting for new connection... [00:45:24] Sock 10.Parse request [00:45:24]Sock 10.Check first char [00:45:24]Sock 10.First char is OK [00:45:24]request: POST /json_proto HTTP/1.0 [00:45:24]Method: POST [00:45:24]URL: /json_proto [00:45:24]Method is POST - this is cgi request [00:45:24]url: /json_proto [00:45:24]query_string will be loaded in cgi processing [00:45:24]execute_cgi json_proto POST (null) [00:45:24]execute_cgi path=json_proto method=POST [00:45:24]POST find Content-Length [00:45:24]Host: 172.17.45.7:8080 [00:45:24]Content-Length: 642 [00:45:24]Content-Type: application/json [00:45:24] [00:45:24]POST finish read [00:45:24]Found Content-Length = 642 [00:45:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 14.690, "sum" : 1090.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1090.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:45:24]execute_script... [00:45:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 14.690, "sum" : 1090.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1090.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:45:24]POST & json_proto [00:45:24]process_json_proto [00:45:24]json parsed OK: [00:45:24]protocol is kg_v1.0 [00:45:24]action value=close_receipt [00:45:24]process_action close_receipt [00:45:24]cmd_close_receipt [00:45:24]MH_GetDate [00:45:24]Write to MH i2c: F0 00 00 FC 2D 18 [00:45:24]Write i2c OK [00:45:24]MH_I2C_Read... [00:45:24]Read from MH i2c: F0 [00:45:24]MH_I2C_Read... [00:45:24]Read from MH i2c: F0 09 00 [00:45:24]MH_I2C_Read... [00:45:24]Read from MH i2c: F0 09 00 FC 2D 00 A6 94 A5 66 90 0F 3E 66 A9 [00:45:24]GetLastDocTimeStamp 1722127522 [00:45:24]current date 1722127526 [00:45:24]FM_GetShiftState [00:45:24]SAM_PROTO_GetShiftState [00:45:24]wFMCommunicate request_size=4 [00:45:24]MH_SAM_APDU [00:45:24]CAPDU: 80 13 01 00 [00:45:24]Write to MH i2c: E2 08 00 FD 2D 80 13 01 00 00 00 00 00 A7 [00:45:24]Write i2c OK [00:45:24]MH_I2C_Read... [00:45:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:24]Read from MH i2c: E2 [00:45:24]MH_I2C_Read... [00:45:24]Read from MH i2c: E2 0E 00 [00:45:24]MH_I2C_Read... [00:45:24]Read from MH i2c: E2 0E 00 FD 2D 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 7E [00:45:24]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [00:45:24]wFMCommunicate OK [00:45:24]SAM_PROTO_GetShiftState done [00:45:24]FM_GetShiftState done [00:45:24]opened in 1722125364 [00:45:24]opened+sec_in_day 1722211764 [00:45:24]quantity*price = 108999 [00:45:24]sum+1 = 109001 [00:45:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1090.00 НСП 1% : 9.65 НДС 12% : 115.75 Наличными: 1090.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 8 28.07.2024 00:45 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118339 ФПД: 261336337952812 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T004527&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118339&fm=261336337952812&tin=02508201610067®Number=0000000000092660&sum=109000 [00:45:25]StoreToDocumentArchive [00:45:25]shift 433 fd 118339 [00:45:25]save to /storage/0433/doc_00118339 [00:45:25]save last doc name /storage/0433/doc_00118339 to /storage/kkm_last_doc_name [00:45:25]save OK [00:45:25]Clear old archive folders... [00:45:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:45:25]tlvbuf is 01E197F0 [00:45:25]SAM_PROTO_ClearQueue [00:45:25]wFMCommunicate request_size=4 [00:45:25]MH_SAM_APDU [00:45:25]CAPDU: 80 09 00 00 [00:45:25]Write to MH i2c: E2 08 00 0A 2E 80 09 00 00 00 00 00 00 AA [00:45:25]Write i2c OK [00:45:25]MH_I2C_Read... [00:45:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:45:25]Read from MH i2c: E2 [00:45:25]MH_I2C_Read... [00:45:25]Read from MH i2c: E2 03 00 [00:45:25]MH_I2C_Read... [00:45:25]Read from MH i2c: E2 03 00 0A 2E 00 90 00 AC [00:45:25]RAPDU: 90 00 [00:45:25]wFMCommunicate OK [00:45:25]SAM_PROTO_ClearQueue done [00:45:25]KKMCreateOFDPacket [00:45:25]OFDProtocolAddRootSTLVToBuf [00:45:25]FM_MakeSignedData [00:45:25]FM_MakeSignedData [00:45:25]SAM_PROTO_SignData [00:45:25]wFMCommunicate request_size=4 [00:45:25]MH_SAM_APDU [00:45:25]CAPDU: 80 0D 01 02 [00:45:25]Write to MH i2c: E2 08 00 0B 2E 80 0D 01 02 00 00 00 00 B2 [00:45:25]Write i2c OK [00:45:25]MH_I2C_Read... [00:45:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:45:25]Read from MH i2c: E2 [00:45:25]MH_I2C_Read... [00:45:25]Read from MH i2c: E2 03 00 [00:45:25]MH_I2C_Read... [00:45:25]Read from MH i2c: E2 03 00 0B 2E 00 90 00 AD [00:45:25]RAPDU: 90 00 [00:45:25]wFMCommunicate OK [00:45:25]wFMCommunicate request_size=255 [00:45:25]MH_SAM_APDU [00:45:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 62 39 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C8 A9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 A9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 2D 00 00 00 00 07 04 06 00 C8 A9 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 A7 94 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 43 CE 01 00 35 04 06 00 ED [00:45:25]Write to MH i2c: E2 02 01 0C 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 62 39 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C8 A9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 A9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 2D 00 00 00 00 07 04 06 00 C8 A9 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 A7 94 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 43 CE 01 00 35 04 06 00 ED 00 00 F8 [00:45:26]Write i2c OK [00:45:26]MH_I2C_Read... [00:45:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:26]Read from MH i2c: E2 [00:45:26]MH_I2C_Read... [00:45:26]Read from MH i2c: E2 03 00 [00:45:26]MH_I2C_Read... [00:45:26]Read from MH i2c: E2 03 00 0C 2E 00 90 00 AE [00:45:26]RAPDU: 90 00 [00:45:26]wFMCommunicate OK [00:45:26]wFMCommunicate request_size=10 [00:45:26]MH_SAM_APDU [00:45:26]CAPDU: 80 0D 02 02 05 AF 1B 97 30 2C [00:45:26]Write to MH i2c: E2 0D 00 0D 2E 80 0D 02 02 05 00 AF 1B 97 30 2C 00 00 7C [00:45:26]Write i2c OK [00:45:26]MH_I2C_Read... [00:45:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:26]Read from MH i2c: E2 [00:45:26]MH_I2C_Read... [00:45:26]Read from MH i2c: E2 03 00 [00:45:26]MH_I2C_Read... [00:45:26]Read from MH i2c: E2 03 00 0D 2E 00 90 00 AF [00:45:26]RAPDU: 90 00 [00:45:26]wFMCommunicate OK [00:45:26]wFMCommunicate request_size=4 [00:45:26]MH_SAM_APDU [00:45:26]CAPDU: 80 0D 03 02 [00:45:26]Write to MH i2c: E2 08 00 0E 2E 80 0D 03 02 00 00 00 00 B7 [00:45:26]Write i2c OK [00:45:26]MH_I2C_Read... [00:45:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:45:26]Read from MH i2c: E2 [00:45:26]MH_I2C_Read... [00:45:26]Read from MH i2c: E2 0B 00 [00:45:26]MH_I2C_Read... [00:45:26]Read from MH i2c: E2 0B 00 0E 2E 00 1E 70 24 10 D9 1A 77 F2 90 00 D6 [00:45:26]RAPDU: 1E 70 24 10 D9 1A 77 F2 90 00 [00:45:26]wFMCommunicate OK [00:45:26]SAM_PROTO_SignData done [00:45:26]FM_MakeSignedData done [00:45:26]CreateOFDProtocolMessage [00:45:26]wFMCommunicate request_size=4 [00:45:26]MH_SAM_APDU [00:45:26]CAPDU: 80 11 00 00 [00:45:26]Write to MH i2c: E2 08 00 0F 2E 80 11 00 00 00 00 00 00 B7 [00:45:26]Write i2c OK [00:45:26]MH_I2C_Read... [00:45:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:26]Read from MH i2c: E2 [00:45:26]MH_I2C_Read... [00:45:26]Read from MH i2c: E2 17 00 [00:45:26]MH_I2C_Read... [00:45:26]Read from MH i2c: E2 17 00 0F 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 12 [00:45:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:45:26]wFMCommunicate OK [00:45:26]CreateOFDProtocolMessage done [00:45:26]OFDSenderStorePacket 118339 [00:45:26]StoreOFDPacket docnum=118339 [00:45:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 11 37 07 01 75 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 62 39 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C8 A9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 A9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 2D 00 00 00 00 07 04 06 00 C8 A9 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 A7 94 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 43 CE 01 00 35 04 06 00 ED AF 1B 97 30 2C 1E 70 24 10 D9 1A 77 F2 [00:45:26]CheckFolder [00:45:26]dirname=/storage/ofd_packets [00:45:26]CheckFolder done [00:45:26]ProducePacketName [00:45:26]name=ofd_packets/00118339 [00:45:26]NVStorageSaveData ofd_packets/00118339 [00:45:26]File name is /storage/ofd_packets/00118339 [00:45:26]Write 301 bytes [00:45:26]NVStorageSaveData done [00:45:26]OFDSenderStorePacket done [00:45:26]KKMCreateOFDPacket done [00:45:26]NVStorageSaveData kkm_last_timestamp [00:45:26]File name is /storage/kkm_last_timestamp [00:45:26]Write 4 bytes [00:45:26]NVStorageSaveData done [00:45:26]ExternCall_PrintAddStr [00:45:26]wPrintStart [00:45:26]Write to MH i2c: 01 00 00 10 2E 3E [00:45:26]Write i2c OK [00:45:26]MH_I2C_Read... [00:45:26]Read from MH i2c: 01 [00:45:26]MH_I2C_Read... [00:45:26]Read from MH i2c: 01 07 00 [00:45:26]MH_I2C_Read... [00:45:26]Read from MH i2c: 01 07 00 10 2E 00 00 00 00 00 FF 0F 53 [00:45:26]RasterBufferAndPrint [00:45:26]line Счет N : (1)949212 [00:45:26]line ИНН: 02508201610067 [00:45:26]line Контрольно-Кассовый Чек [00:45:26]line ПРОДАЖА [00:45:26]line ТРК (МРК, ГНК) : 53 [00:45:26]line Товар: 2710124500 [00:45:26]line Аи-95-К-3 [00:45:26]line 14.690 * 74.20 [00:45:26]line = 1090.00 [00:45:26]line НДС 12% НСП 1% [00:45:26]line > о реализуемом товаре [00:45:26]line ИТОГО: 1090.00 [00:45:26]line НСП 1% : 9.65 [00:45:26]line НДС 12% : 115.75 [00:45:26]line Наличными: 1090.00 [00:45:26]line Безнал.: 0.00 [00:45:26]line Место: АЗС № 134 "Партнер Нефть" [00:45:26]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [00:45:26]line СНО: Общий режим [00:45:26]line Чек 8 28.07.2024 00:45 [00:45:26]line Смена: 433 ФФД: 1.0 [00:45:26]line ЗНМ: 0300000044 [00:45:26]line РНМ: 0000000000092660 [00:45:26]line Версия ККМ: 001 [00:45:26]line ФМ: 0000000000874939 [00:45:26]line ФД: 118339 [00:45:26]line ФПД: 261336337952812 [00:45:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T004527&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118339&fm=261336337952812&tin=02508201610067®Number=0000000000092660&sum=109000 [00:45:26]written 0, free lines is 4095 [00:45:26]OFD Sender: Processing packet 118339 [packets to send 86, broken 85] [00:45:26]ProducePacketName [00:45:26]name=ofd_packets/00118339 [00:45:26]OFD Sender: To server: pG, [00:45:26]CommunicateWithHost lk.salyk.kg:30040 [00:45:26]ConnectInit lk.salyk.kg [00:45:27]Connected sock=9 [00:45:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 11 37 07 01 75 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 62 39 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C8 A9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 A9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 2D 00 00 00 00 07 04 06 00 C8 A9 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 A7 94 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 43 CE 01 00 35 04 06 00 ED AF 1B 97 30 2C 1E 70 24 10 D9 1A 77 F2 [00:45:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 88 D6 47 00 DE D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 43 CE 01 00 F4 03 04 00 38 42 A5 66 B6 04 01 00 00 FB 66 4B 6E A0 89 3E 53 [00:45:27]CommunicateWithHost err = 0 [00:45:27]CheckOFDResponse [00:45:27]1017 (14) - 77093643461234 [00:45:27]1041 (16) - 0000000000874939 [00:45:27]1040 (4) - 118339 [00:45:27]1012 (4) - 27.07.2024 18:53 [00:45:27]1206 (1) - 0 [00:45:27]OFD Sender: Remove packet 118339 [00:45:27]ProducePacketName [00:45:27]name=ofd_packets/00118339 [00:45:27]NVStorageDeleteData [00:45:27]Write to MH i2c: 01 00 00 37 2E 65 [00:45:27]Write i2c OK [00:45:27]MH_I2C_Read... [00:45:27]Read from MH i2c: 01 [00:45:27]MH_I2C_Read... [00:45:27]Read from MH i2c: 01 07 00 [00:45:27]MH_I2C_Read... [00:45:27]Read from MH i2c: 01 07 00 37 2E 00 00 00 00 00 14 0D 8D [00:45:27]RasterBufferAndPrint [00:45:27]line [00:45:27]line [00:45:27]line [00:45:27]line [00:45:27]line [00:45:27]written 0, free lines is 3363 [00:45:27]MH_Cut [00:45:27]Write to MH i2c: D1 01 00 3E 2E 01 3E [00:45:27]Write i2c OK [00:45:27]MH_I2C_Read... [00:45:27]Read from MH i2c: D1 [00:45:27]MH_I2C_Read... [00:45:27]Read from MH i2c: D1 01 00 [00:45:27]MH_I2C_Read... [00:45:27]Read from MH i2c: D1 01 00 3E 2E 00 3D [00:45:27]Write to MH i2c: 01 00 00 3F 2E 6D [00:45:27]Write i2c OK [00:45:27]MH_I2C_Read... [00:45:27]OFD Sender: No OFD packet to send [00:45:28]*** Cut start [00:45:28]*** Partial cut [00:45:28]*** CUTSNS_PIN = 1 [00:45:28]*** CUTSNS_PIN = 0 [00:45:28]*** Brake cut motor [00:45:28]Read from MH i2c: 01 [00:45:28]MH_I2C_Read... [00:45:28]*** Stop cut motor [00:45:28]*** Cut end [00:45:28]Read from MH i2c: 01 07 00 [00:45:28]MH_I2C_Read... [00:45:28]Read from MH i2c: 01 07 00 3F 2E 00 00 00 00 00 FF 0F 82 [00:45:28]process_action close_receipt done [00:45:28]requested_data is exist [00:45:28]produce_requested_data [00:45:28]requested_item fm.sn is exist - process it [00:45:28]wFMCommunicate request_size=4 [00:45:28]MH_SAM_APDU [00:45:28]CAPDU: 80 11 00 00 [00:45:28]Write to MH i2c: E2 08 00 40 2E 80 11 00 00 00 00 00 00 E8 [00:45:28]Write i2c OK [00:45:28]MH_I2C_Read... [00:45:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:28]Read from MH i2c: E2 [00:45:28]MH_I2C_Read... [00:45:28]Read from MH i2c: E2 17 00 [00:45:28]MH_I2C_Read... [00:45:28]Read from MH i2c: E2 17 00 40 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 43 [00:45:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:45:28]wFMCommunicate OK [00:45:28]requested_item fd.num is exist - process it [00:45:28]SAM_PROTO_GetFieldsCounters [00:45:28]wFMCommunicate request_size=4 [00:45:28]MH_SAM_APDU [00:45:28]CAPDU: 80 13 00 00 [00:45:28]Write to MH i2c: E2 08 00 41 2E 80 13 00 00 00 00 00 00 EB [00:45:28]Write i2c OK [00:45:28]MH_I2C_Read... [00:45:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:45:28]Read from MH i2c: E2 [00:45:28]MH_I2C_Read... [00:45:28]Read from MH i2c: E2 62 00 [00:45:28]MH_I2C_Read... [00:45:28]Read from MH i2c: E2 62 00 41 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 43 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [00:45:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 43 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:45:28]wFMCommunicate OK [00:45:28]SAM_PROTO_GetFieldsCounters done [00:45:28]requested_item shift.num is exist - process it [00:45:28]requested_item shift.opened is exist - process it [00:45:28]req_shift_opened [00:45:28]FM_GetShiftState [00:45:28]SAM_PROTO_GetShiftState [00:45:28]wFMCommunicate request_size=4 [00:45:28]MH_SAM_APDU [00:45:28]CAPDU: 80 13 01 00 [00:45:28]Write to MH i2c: E2 08 00 42 2E 80 13 01 00 00 00 00 00 ED [00:45:28]Write i2c OK [00:45:28]MH_I2C_Read... [00:45:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:28]Read from MH i2c: E2 [00:45:28]MH_I2C_Read... [00:45:28]Read from MH i2c: E2 0E 00 [00:45:28]MH_I2C_Read... [00:45:28]Read from MH i2c: E2 0E 00 42 2E 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 C4 [00:45:28]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [00:45:28]wFMCommunicate OK [00:45:28]SAM_PROTO_GetShiftState done [00:45:28]FM_GetShiftState done [00:45:28]req_shift_opened done [00:45:28]requested_item shift.open_date is exist - process it [00:45:28]req_shift_open_date [00:45:28]req_shift_open_date done [00:45:28]produce_requested_data done [00:45:28]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118339,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [00:45:28]process_action_free close_receipt [00:45:28]json_value_free [00:45:28]json_value_free done [00:45:28]process_json_proto returns [00:45:28]Send response to host [00:45:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118339,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [00:45:28]free response buf [00:45:28]execute_script done [00:45:28]execute_script returns [00:45:28]free content buf [00:45:28]Sock 10.Close socket [00:45:28]Sock 10.Thread stoped [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:07]OFD Sender: No OFD packet to send [00:47:12]OFD Sender: No OFD packet to send [00:47:17]OFD Sender: No OFD packet to send [00:47:22]OFD Sender: No OFD packet to send [00:47:27]OFD Sender: No OFD packet to send [00:47:32]OFD Sender: No OFD packet to send [00:47:37]OFD Sender: No OFD packet to send [00:47:42]OFD Sender: No OFD packet to send [00:47:47]OFD Sender: No OFD packet to send [00:47:52]OFD Sender: No OFD packet to send [00:47:57]OFD Sender: No OFD packet to send [00:48:02]OFD Sender: No OFD packet to send [00:48:07]OFD Sender: No OFD packet to send [00:48:12]OFD Sender: No OFD packet to send [00:48:17]OFD Sender: No OFD packet to send [00:48:22]OFD Sender: No OFD packet to send [00:48:27]OFD Sender: No OFD packet to send [00:48:32]OFD Sender: No OFD packet to send [00:48:37]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]OFD Sender: No OFD packet to send [00:54:28]OFD Sender: No OFD packet to send [00:54:33]OFD Sender: No OFD packet to send [00:54:38]OFD Sender: No OFD packet to send [00:54:43]OFD Sender: No OFD packet to send [00:54:48]OFD Sender: No OFD packet to send [00:54:53]OFD Sender: No OFD packet to send [00:54:58]OFD Sender: No OFD packet to send [00:55:03]OFD Sender: No OFD packet to send [00:55:08]OFD Sender: No OFD packet to send [00:55:13]OFD Sender: No OFD packet to send [00:55:18]OFD Sender: No OFD packet to send [00:55:23]OFD Sender: No OFD packet to send [00:55:28]OFD Sender: No OFD packet to send [00:55:33]OFD Sender: No OFD packet to send [00:55:38]OFD Sender: No OFD packet to send [00:55:43]OFD Sender: No OFD packet to send [00:55:48]OFD Sender: No OFD packet to send [00:55:53]OFD Sender: No OFD packet to send [00:55:58]OFD Sender: No OFD packet to send [00:56:03]OFD Sender: No OFD packet to send [00:56:08]OFD Sender: No OFD packet to send [00:56:13]OFD Sender: No OFD packet to send [00:56:18]OFD Sender: No OFD packet to send [00:56:23]OFD Sender: No OFD packet to send [00:56:28]OFD Sender: No OFD packet to send [00:56:33]accept exits with 7 [00:56:33]New connection [00:56:33]New thread 3066953060 created [00:56:33]Thread 3067096420 joined [00:56:33]Waiting for new connection... [00:56:33] Sock 7.Parse request [00:56:33]Sock 7.Check first char [00:56:33]Sock 7.First char is OK [00:56:33]request: POST /json_proto HTTP/1.0 [00:56:33]Method: POST [00:56:33]URL: /json_proto [00:56:33]Method is POST - this is cgi request [00:56:33]url: /json_proto [00:56:33]query_string will be loaded in cgi processing [00:56:33]execute_cgi json_proto POST (null) [00:56:33]execute_cgi path=json_proto method=POST [00:56:33]POST find Content-Length [00:56:33]Host: 172.17.45.7:8080 [00:56:33]Content-Length: 677 [00:56:33]Content-Type: application/json [00:56:33] [00:56:33]POST finish read [00:56:33]Found Content-Length = 677 [00:56:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "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" ] } } [00:56:33]execute_script... [00:56: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)949214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "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" ] } } [00:56:33]POST & json_proto [00:56:33]process_json_proto [00:56:33]json parsed OK: [00:56:33]protocol is kg_v1.0 [00:56:33]action value=close_receipt [00:56:33]process_action close_receipt [00:56:33]cmd_close_receipt [00:56:33]MH_GetDate [00:56:33]Write to MH i2c: F0 00 00 43 2E 60 [00:56:33]Write i2c OK [00:56:33]MH_I2C_Read... [00:56:33]Read from MH i2c: F0 [00:56:33]MH_I2C_Read... [00:56:33]Read from MH i2c: F0 09 00 [00:56:33]MH_I2C_Read... [00:56:33]Read from MH i2c: F0 09 00 43 2E 00 43 97 A5 66 90 0F 3E 66 91 [00:56:33]GetLastDocTimeStamp 1722127527 [00:56:33]current date 1722128195 [00:56:33]FM_GetShiftState [00:56:33]SAM_PROTO_GetShiftState [00:56:33]wFMCommunicate request_size=4 [00:56:33]MH_SAM_APDU [00:56:33]CAPDU: 80 13 01 00 [00:56:33]Write to MH i2c: E2 08 00 44 2E 80 13 01 00 00 00 00 00 EF [00:56:33]Write i2c OK [00:56:33]MH_I2C_Read... [00:56:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:56:33]Read from MH i2c: E2 [00:56:33]MH_I2C_Read... [00:56:33]Read from MH i2c: E2 0E 00 [00:56:33]MH_I2C_Read... [00:56:33]Read from MH i2c: E2 0E 00 44 2E 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 C6 [00:56:33]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [00:56:33]wFMCommunicate OK [00:56:33]SAM_PROTO_GetShiftState done [00:56:33]FM_GetShiftState done [00:56:33]opened in 1722125364 [00:56:33]opened+sec_in_day 1722211764 [00:56:33]quantity*price = 35052 [00:56:33]sum+1 = 35054 [00:56:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 9 28.07.2024 00:56 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118340 ФПД: 17978213235840 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T005635&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118340&fm=17978213235840&tin=02508201610067®Number=0000000000092660&sum=35000 [00:56:34]StoreToDocumentArchive [00:56:34]shift 433 fd 118340 [00:56:34]save to /storage/0433/doc_00118340 [00:56:34]save last doc name /storage/0433/doc_00118340 to /storage/kkm_last_doc_name [00:56:34]save OK [00:56:34]Clear old archive folders... [00:56:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:56:34]tlvbuf is B6EE46E0 [00:56:34]SAM_PROTO_ClearQueue [00:56:34]wFMCommunicate request_size=4 [00:56:34]MH_SAM_APDU [00:56:34]CAPDU: 80 09 00 00 [00:56:34]Write to MH i2c: E2 08 00 51 2E 80 09 00 00 00 00 00 00 F1 [00:56:34]Write i2c OK [00:56:34]MH_I2C_Read... [00:56:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:56:34]Read from MH i2c: E2 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 03 00 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 03 00 51 2E 00 90 00 F3 [00:56:34]RAPDU: 90 00 [00:56:34]wFMCommunicate OK [00:56:34]SAM_PROTO_ClearQueue done [00:56:34]KKMCreateOFDPacket [00:56:34]OFDProtocolAddRootSTLVToBuf [00:56:34]FM_MakeSignedData [00:56:34]FM_MakeSignedData [00:56:34]SAM_PROTO_SignData [00:56:34]wFMCommunicate request_size=4 [00:56:34]MH_SAM_APDU [00:56:34]CAPDU: 80 0D 01 02 [00:56:34]Write to MH i2c: E2 08 00 52 2E 80 0D 01 02 00 00 00 00 F9 [00:56:34]Write i2c OK [00:56:34]MH_I2C_Read... [00:56:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:56:34]Read from MH i2c: E2 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 03 00 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 03 00 52 2E 00 90 00 F4 [00:56:34]RAPDU: 90 00 [00:56:34]wFMCommunicate OK [00:56:34]wFMCommunicate request_size=255 [00:56:34]MH_SAM_APDU [00:56:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 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 8A 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 09 00 00 00 F4 03 04 00 43 97 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 44 CE 01 00 35 04 06 00 10 [00:56:34]Write to MH i2c: E2 02 01 53 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 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 8A 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 09 00 00 00 F4 03 04 00 43 97 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 44 CE 01 00 35 04 06 00 10 00 00 6B [00:56:34]Write i2c OK [00:56:34]MH_I2C_Read... [00:56:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:56:34]Read from MH i2c: E2 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 03 00 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 03 00 53 2E 00 90 00 F5 [00:56:34]RAPDU: 90 00 [00:56:34]wFMCommunicate OK [00:56:34]wFMCommunicate request_size=10 [00:56:34]MH_SAM_APDU [00:56:34]CAPDU: 80 0D 02 02 05 59 E1 03 7C 80 [00:56:34]Write to MH i2c: E2 0D 00 54 2E 80 0D 02 02 05 00 59 E1 03 7C 80 00 00 3F [00:56:34]Write i2c OK [00:56:34]MH_I2C_Read... [00:56:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:56:34]Read from MH i2c: E2 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 03 00 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 03 00 54 2E 00 90 00 F6 [00:56:34]RAPDU: 90 00 [00:56:34]wFMCommunicate OK [00:56:34]wFMCommunicate request_size=4 [00:56:34]MH_SAM_APDU [00:56:34]CAPDU: 80 0D 03 02 [00:56:34]Write to MH i2c: E2 08 00 55 2E 80 0D 03 02 00 00 00 00 FE [00:56:34]Write i2c OK [00:56:34]MH_I2C_Read... [00:56:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:56:34]Read from MH i2c: E2 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 0B 00 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 0B 00 55 2E 00 D9 53 36 D3 A2 85 34 D0 90 00 5F [00:56:34]RAPDU: D9 53 36 D3 A2 85 34 D0 90 00 [00:56:34]wFMCommunicate OK [00:56:34]SAM_PROTO_SignData done [00:56:34]FM_MakeSignedData done [00:56:34]CreateOFDProtocolMessage [00:56:34]wFMCommunicate request_size=4 [00:56:34]MH_SAM_APDU [00:56:34]CAPDU: 80 11 00 00 [00:56:34]Write to MH i2c: E2 08 00 56 2E 80 11 00 00 00 00 00 00 FE [00:56:34]Write i2c OK [00:56:34]MH_I2C_Read... [00:56:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:56:34]Read from MH i2c: E2 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 17 00 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 17 00 56 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 59 [00:56:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:56:34]wFMCommunicate OK [00:56:34]CreateOFDProtocolMessage done [00:56:34]OFDSenderStorePacket 118340 [00:56:34]StoreOFDPacket docnum=118340 [00:56:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D6 60 07 01 63 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 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 8A 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 09 00 00 00 F4 03 04 00 43 97 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 44 CE 01 00 35 04 06 00 10 59 E1 03 7C 80 D9 53 36 D3 A2 85 34 D0 [00:56:34]CheckFolder [00:56:34]dirname=/storage/ofd_packets [00:56:34]CheckFolder done [00:56:34]ProducePacketName [00:56:34]name=ofd_packets/00118340 [00:56:34]NVStorageSaveData ofd_packets/00118340 [00:56:34]File name is /storage/ofd_packets/00118340 [00:56:34]Write 301 bytes [00:56:34]NVStorageSaveData done [00:56:34]OFDSenderStorePacket done [00:56:34]KKMCreateOFDPacket done [00:56:34]NVStorageSaveData kkm_last_timestamp [00:56:34]File name is /storage/kkm_last_timestamp [00:56:34]Write 4 bytes [00:56:34]NVStorageSaveData done [00:56:34]ExternCall_PrintAddStr [00:56:34]wPrintStart [00:56:34]Write to MH i2c: 01 00 00 57 2E 85 [00:56:34]Write i2c OK [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: 01 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: 01 07 00 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: 01 07 00 57 2E 00 00 00 00 00 FF 0F 9A [00:56:34]RasterBufferAndPrint [00:56:34]line Счет N : (1)949214 [00:56:34]line ИНН: 02508201610067 [00:56:34]line Контрольно-Кассовый Чек [00:56:34]line ПРОДАЖА [00:56:34]line ТРК (МРК, ГНК) : 41 [00:56:34]line Товар: 2710124130 [00:56:34]line Аи-92-К-4 [00:56:34]line 5.170 * 67.80 [00:56:34]line = 350.53 [00:56:34]line НДС 12% НСП 1% [00:56:34]line > о реализуемом товаре [00:56:34]line ОКРУГЛЕНИЕ: -0.53 [00:56:34]line ИТОГО: 350.00 [00:56:34]line Внесено: 350.00 [00:56:34]line СДАЧА: 0.00 [00:56:34]line НСП 1% : 3.10 [00:56:34]line НДС 12% : 37.22 [00:56:34]line Наличными: 350.00 [00:56:34]line Безнал.: 0.00 [00:56:34]line Место: АЗС № 134 "Партнер Нефть" [00:56:34]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [00:56:34]line СНО: Общий режим [00:56:34]line Чек 9 28.07.2024 00:56 [00:56:34]line Смена: 433 ФФД: 1.0 [00:56:34]line ЗНМ: 0300000044 [00:56:34]line РНМ: 0000000000092660 [00:56:34]line Версия ККМ: 001 [00:56:34]line ФМ: 0000000000874939 [00:56:34]line ФД: 118340 [00:56:34]line ФПД: 17978213235840 [00:56:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T005635&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118340&fm=17978213235840&tin=02508201610067®Number=0000000000092660&sum=35000 [00:56:34]written 0, free lines is 4095 [00:56:34]OFD Sender: Processing packet 118340 [packets to send 86, broken 85] [00:56:34]ProducePacketName [00:56:34]name=ofd_packets/00118340 [00:56:34]OFD Sender: To server: pG, [00:56:34]CommunicateWithHost lk.salyk.kg:30040 [00:56:34]ConnectInit lk.salyk.kg [00:56:34]Connected sock=10 [00:56:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D6 60 07 01 63 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 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 8A 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 09 00 00 00 F4 03 04 00 43 97 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 44 CE 01 00 35 04 06 00 10 59 E1 03 7C 80 D9 53 36 D3 A2 85 34 D0 [00:56:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B8 5D 47 00 23 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 44 CE 01 00 F4 03 04 00 D4 44 A5 66 B6 04 01 00 00 1F 53 58 B3 C8 BA C0 A9 [00:56:35]CommunicateWithHost err = 0 [00:56:35]CheckOFDResponse [00:56:35]1017 (14) - 77093643461234 [00:56:35]1041 (16) - 0000000000874939 [00:56:35]1040 (4) - 118340 [00:56:35]1012 (4) - 27.07.2024 19:04 [00:56:35]1206 (1) - 0 [00:56:35]OFD Sender: Remove packet 118340 [00:56:35]ProducePacketName [00:56:35]name=ofd_packets/00118340 [00:56:35]NVStorageDeleteData [00:56:35]Write to MH i2c: 01 00 00 81 2E AF [00:56:35]Write i2c OK [00:56:35]MH_I2C_Read... [00:56:35]Read from MH i2c: 01 [00:56:35]MH_I2C_Read... [00:56:35]Read from MH i2c: 01 07 00 [00:56:35]MH_I2C_Read... [00:56:35]Read from MH i2c: 01 07 00 81 2E 00 00 00 00 00 D9 0C 9B [00:56:35]RasterBufferAndPrint [00:56:35]line [00:56:35]line [00:56:35]line [00:56:35]line [00:56:35]line [00:56:35]written 0, free lines is 3296 [00:56:35]MH_Cut [00:56:35]Write to MH i2c: D1 01 00 88 2E 01 88 [00:56:35]Write i2c OK [00:56:35]MH_I2C_Read... [00:56:35]Read from MH i2c: D1 [00:56:35]MH_I2C_Read... [00:56:35]Read from MH i2c: D1 01 00 [00:56:35]MH_I2C_Read... [00:56:35]Read from MH i2c: D1 01 00 88 2E 00 87 [00:56:35]Write to MH i2c: 01 00 00 89 2E B7 [00:56:35]Write i2c OK [00:56:35]MH_I2C_Read... [00:56:35]OFD Sender: No OFD packet to send [00:56:36]*** Cut start [00:56:36]*** Partial cut [00:56:36]*** CUTSNS_PIN = 1 [00:56:36]*** CUTSNS_PIN = 0 [00:56:36]*** Brake cut motor [00:56:36]Read from MH i2c: 01 [00:56:36]MH_I2C_Read... [00:56:36]*** Stop cut motor [00:56:36]*** Cut end [00:56:36]Read from MH i2c: 01 07 00 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: 01 07 00 89 2E 00 00 00 00 00 FF 0F CC [00:56:36]process_action close_receipt done [00:56:36]requested_data is exist [00:56:36]produce_requested_data [00:56:36]requested_item fm.sn is exist - process it [00:56:36]wFMCommunicate request_size=4 [00:56:36]MH_SAM_APDU [00:56:36]CAPDU: 80 11 00 00 [00:56:36]Write to MH i2c: E2 08 00 8A 2E 80 11 00 00 00 00 00 00 32 [00:56:36]Write i2c OK [00:56:36]MH_I2C_Read... [00:56:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:56:36]Read from MH i2c: E2 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: E2 17 00 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: E2 17 00 8A 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8D [00:56:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:56:36]wFMCommunicate OK [00:56:36]requested_item fd.num is exist - process it [00:56:36]SAM_PROTO_GetFieldsCounters [00:56:36]wFMCommunicate request_size=4 [00:56:36]MH_SAM_APDU [00:56:36]CAPDU: 80 13 00 00 [00:56:36]Write to MH i2c: E2 08 00 8B 2E 80 13 00 00 00 00 00 00 35 [00:56:36]Write i2c OK [00:56:36]MH_I2C_Read... [00:56:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:56:36]Read from MH i2c: E2 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: E2 62 00 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: E2 62 00 8B 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 44 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [00:56:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 44 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:56:36]wFMCommunicate OK [00:56:36]SAM_PROTO_GetFieldsCounters done [00:56:36]requested_item shift.num is exist - process it [00:56:36]requested_item shift.opened is exist - process it [00:56:36]req_shift_opened [00:56:36]FM_GetShiftState [00:56:36]SAM_PROTO_GetShiftState [00:56:36]wFMCommunicate request_size=4 [00:56:36]MH_SAM_APDU [00:56:36]CAPDU: 80 13 01 00 [00:56:36]Write to MH i2c: E2 08 00 8C 2E 80 13 01 00 00 00 00 00 37 [00:56:36]Write i2c OK [00:56:36]MH_I2C_Read... [00:56:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:56:36]Read from MH i2c: E2 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: E2 0E 00 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: E2 0E 00 8C 2E 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 0E [00:56:36]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [00:56:36]wFMCommunicate OK [00:56:36]SAM_PROTO_GetShiftState done [00:56:36]FM_GetShiftState done [00:56:36]req_shift_opened done [00:56:36]requested_item shift.open_date is exist - process it [00:56:36]req_shift_open_date [00:56:36]req_shift_open_date done [00:56:36]produce_requested_data done [00:56:36]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118340,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [00:56:36]process_action_free close_receipt [00:56:36]json_value_free [00:56:36]json_value_free done [00:56:36]process_json_proto returns [00:56:36]Send response to host [00:56:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118340,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [00:56:36]free response buf [00:56:36]execute_script done [00:56:36]execute_script returns [00:56:36]free content buf [00:56:36]Sock 7.Close socket [00:56:36]Sock 7.Thread stoped [00:56:40]OFD Sender: No OFD packet to send [00:56:45]OFD Sender: No OFD packet to send [00:56:50]OFD Sender: No OFD packet to send [00:56:55]OFD Sender: No OFD packet to send [00:57:00]OFD Sender: No OFD packet to send [00:57:05]OFD Sender: No OFD packet to send [00:57:10]OFD Sender: No OFD packet to send [00:57:15]OFD Sender: No OFD packet to send [00:57:20]OFD Sender: No OFD packet to send [00:57:25]OFD Sender: No OFD packet to send [00:57:30]OFD Sender: No OFD packet to send [00:57:35]OFD Sender: No OFD packet to send [00:57:40]OFD Sender: No OFD packet to send [00:57:45]OFD Sender: No OFD packet to send [00:57:50]OFD Sender: No OFD packet to send [00:57:55]OFD Sender: No OFD packet to send [00:58:00]OFD Sender: No OFD packet to send [00:58:05]OFD Sender: No OFD packet to send [00:58:10]OFD Sender: No OFD packet to send [00:58:15]OFD Sender: No OFD packet to send [00:58:20]OFD Sender: No OFD packet to send [00:58:25]OFD Sender: No OFD packet to send [00:58:30]OFD Sender: No OFD packet to send [00:58:35]OFD Sender: No OFD packet to send [00:58:40]OFD Sender: No OFD packet to send [00:58:45]OFD Sender: No OFD packet to send [00:58:50]OFD Sender: No OFD packet to send [00:58:55]OFD Sender: No OFD packet to send [00:59:00]OFD Sender: No OFD packet to send [00:59:05]OFD Sender: No OFD packet to send [00:59:10]OFD Sender: No OFD packet to send [00:59:15]OFD Sender: No OFD packet to send [00:59:20]OFD Sender: No OFD packet to send [00:59:25]OFD Sender: No OFD packet to send [00:59:30]OFD Sender: No OFD packet to send [00:59:35]OFD Sender: No OFD packet to send [00:59:40]OFD Sender: No OFD packet to send [00:59:45]OFD Sender: No OFD packet to send [00:59:50]OFD Sender: No OFD packet to send [00:59:55]OFD Sender: No OFD packet to send [01:00:00]OFD Sender: No OFD packet to send [01:00:05]OFD Sender: No OFD packet to send [01:00:10]OFD Sender: No OFD packet to send [01:00:15]OFD Sender: No OFD packet to send [01:00:20]OFD Sender: No OFD packet to send [01:00:25]OFD Sender: No OFD packet to send [01:00:30]OFD Sender: No OFD packet to send [01:00:35]OFD Sender: No OFD packet to send [01:00:40]OFD Sender: No OFD packet to send [01:00:45]OFD Sender: No OFD packet to send [01:00:50]OFD Sender: No OFD packet to send [01:00:55]OFD Sender: No OFD packet to send [01:01:00]OFD Sender: No OFD packet to send [01:01:05]OFD Sender: No OFD packet to send [01:01:10]OFD Sender: No OFD packet to send [01:01:15]OFD Sender: No OFD packet to send [01:01:20]OFD Sender: No OFD packet to send [01:01:25]OFD Sender: No OFD packet to send [01:01:30]OFD Sender: No OFD packet to send [01:01:35]OFD Sender: No OFD packet to send [01:01:40]OFD Sender: No OFD packet to send [01:01:45]OFD Sender: No OFD packet to send [01:01: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:25]accept exits with 9 [01:03:25]New connection [01:03:25]New thread 3067096420 created [01:03:25]Thread 3066953060 joined [01:03:25]Waiting for new connection... [01:03:25] Sock 9.Parse request [01:03:25]Sock 9.Check first char [01:03:25]Sock 9.First char is OK [01:03:25]request: POST /json_proto HTTP/1.0 [01:03:25]Method: POST [01:03:25]URL: /json_proto [01:03:25]Method is POST - this is cgi request [01:03:25]url: /json_proto [01:03:25]query_string will be loaded in cgi processing [01:03:25]execute_cgi json_proto POST (null) [01:03:25]execute_cgi path=json_proto method=POST [01:03:25]POST find Content-Length [01:03:25]Host: 172.17.45.7:8080 [01:03:25]Content-Length: 819 [01:03:25]Content-Type: application/json [01:03:25] [01:03:25]POST finish read [01:03:25]Found Content-Length = 819 [01:03:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:03:25]execute_script... [01:03: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)949215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:03:25]POST & json_proto [01:03:25]process_json_proto [01:03:25]json parsed OK: [01:03:25]protocol is kg_v1.0 [01:03:25]action value=close_receipt [01:03:25]process_action close_receipt [01:03:25]cmd_close_receipt [01:03:25]MH_GetDate [01:03:25]Write to MH i2c: F0 00 00 8D 2E AA [01:03:25]Write i2c OK [01:03:25]MH_I2C_Read... [01:03:25]Read from MH i2c: F0 [01:03:25]MH_I2C_Read... [01:03:25]Read from MH i2c: F0 09 00 [01:03:25]MH_I2C_Read... [01:03:25]Read from MH i2c: F0 09 00 8D 2E 00 DF 98 A5 66 90 0F 3E 66 78 [01:03:25]GetLastDocTimeStamp 1722128195 [01:03:25]current date 1722128607 [01:03:25]FM_GetShiftState [01:03:25]SAM_PROTO_GetShiftState [01:03:25]wFMCommunicate request_size=4 [01:03:25]MH_SAM_APDU [01:03:25]CAPDU: 80 13 01 00 [01:03:25]Write to MH i2c: E2 08 00 8E 2E 80 13 01 00 00 00 00 00 39 [01:03:25]Write i2c OK [01:03:25]MH_I2C_Read... [01:03:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:03:25]Read from MH i2c: E2 [01:03:25]MH_I2C_Read... [01:03:25]Read from MH i2c: E2 0E 00 [01:03:25]MH_I2C_Read... [01:03:25]Read from MH i2c: E2 0E 00 8E 2E 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 10 [01:03:25]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [01:03:25]wFMCommunicate OK [01:03:25]SAM_PROTO_GetShiftState done [01:03:25]FM_GetShiftState done [01:03:25]opened in 1722125364 [01:03:25]opened+sec_in_day 1722211764 [01:03:25]quantity*price = 200025 [01:03:25]sum+1 = 200026 [01:03:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 10 28.07.2024 01:03 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118341 ФПД: 143400787640426 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T010327&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118341&fm=143400787640426&tin=02508201610067®Number=0000000000092660&sum=200000 [01:03:26]StoreToDocumentArchive [01:03:26]shift 433 fd 118341 [01:03:26]save to /storage/0433/doc_00118341 [01:03:26]save last doc name /storage/0433/doc_00118341 to /storage/kkm_last_doc_name [01:03:26]save OK [01:03:26]Clear old archive folders... [01:03:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [01:03:26]tlvbuf is 01E51D40 [01:03:26]SAM_PROTO_ClearQueue [01:03:26]wFMCommunicate request_size=4 [01:03:26]MH_SAM_APDU [01:03:26]CAPDU: 80 09 00 00 [01:03:26]Write to MH i2c: E2 08 00 9B 2E 80 09 00 00 00 00 00 00 3B [01:03:26]Write i2c OK [01:03:26]MH_I2C_Read... [01:03:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:03:26]Read from MH i2c: E2 [01:03:26]MH_I2C_Read... [01:03:26]Read from MH i2c: E2 03 00 [01:03:26]MH_I2C_Read... [01:03:26]Read from MH i2c: E2 03 00 9B 2E 00 90 00 3D [01:03:26]RAPDU: 90 00 [01:03:26]wFMCommunicate OK [01:03:26]SAM_PROTO_ClearQueue done [01:03:26]KKMCreateOFDPacket [01:03:26]OFDProtocolAddRootSTLVToBuf [01:03:26]FM_MakeSignedData [01:03:26]FM_MakeSignedData [01:03:26]SAM_PROTO_SignData [01:03:26]wFMCommunicate request_size=4 [01:03:26]MH_SAM_APDU [01:03:26]CAPDU: 80 0D 01 02 [01:03:26]Write to MH i2c: E2 08 00 9C 2E 80 0D 01 02 00 00 00 00 43 [01:03:26]Write i2c OK [01:03:26]MH_I2C_Read... [01:03:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:03:26]Read from MH i2c: E2 [01:03:26]MH_I2C_Read... [01:03:26]Read from MH i2c: E2 03 00 [01:03:26]MH_I2C_Read... [01:03:26]Read from MH i2c: E2 03 00 9C 2E 00 90 00 3E [01:03:26]RAPDU: 90 00 [01:03:26]wFMCommunicate OK [01:03:26]wFMCommunicate request_size=255 [01:03:26]MH_SAM_APDU [01:03:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 DF 98 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 45 CE 01 00 35 04 06 00 82 6C 19 02 [01:03:26]Write to MH i2c: E2 02 01 9D 2E 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 DF 98 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 45 CE 01 00 35 04 06 00 82 6C 19 02 00 00 1C [01:03:26]Write i2c OK [01:03:26]MH_I2C_Read... [01:03:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:03:26]Read from MH i2c: E2 [01:03:26]MH_I2C_Read... [01:03:26]Read from MH i2c: E2 03 00 [01:03:26]MH_I2C_Read... [01:03:26]Read from MH i2c: E2 03 00 9D 2E 00 90 00 3F [01:03:26]RAPDU: 90 00 [01:03:26]wFMCommunicate OK [01:03:26]wFMCommunicate request_size=7 [01:03:26]MH_SAM_APDU [01:03:26]CAPDU: 80 0D 02 02 02 00 6A [01:03:26]Write to MH i2c: E2 0A 00 9E 2E 80 0D 02 02 02 00 00 6A 00 00 B4 [01:03:26]Write i2c OK [01:03:26]MH_I2C_Read... [01:03:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:03:26]Read from MH i2c: E2 [01:03:26]MH_I2C_Read... [01:03:26]Read from MH i2c: E2 03 00 [01:03:26]MH_I2C_Read... [01:03:26]Read from MH i2c: E2 03 00 9E 2E 00 90 00 40 [01:03:26]RAPDU: 90 00 [01:03:26]wFMCommunicate OK [01:03:26]wFMCommunicate request_size=4 [01:03:26]MH_SAM_APDU [01:03:26]CAPDU: 80 0D 03 02 [01:03:26]Write to MH i2c: E2 08 00 9F 2E 80 0D 03 02 00 00 00 00 48 [01:03:26]Write i2c OK [01:03:26]MH_I2C_Read... [01:03:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:03:26]Read from MH i2c: E2 [01:03:26]MH_I2C_Read... [01:03:26]Read from MH i2c: E2 0B 00 [01:03:26]MH_I2C_Read... [01:03:26]Read from MH i2c: E2 0B 00 9F 2E 00 2B 81 BD A0 B6 06 D2 B0 90 00 90 [01:03:26]RAPDU: 2B 81 BD A0 B6 06 D2 B0 90 00 [01:03:26]wFMCommunicate OK [01:03:26]SAM_PROTO_SignData done [01:03:26]FM_MakeSignedData done [01:03:26]CreateOFDProtocolMessage [01:03:26]wFMCommunicate request_size=4 [01:03:26]MH_SAM_APDU [01:03:26]CAPDU: 80 11 00 00 [01:03:26]Write to MH i2c: E2 08 00 A0 2E 80 11 00 00 00 00 00 00 48 [01:03:26]Write i2c OK [01:03:26]MH_I2C_Read... [01:03:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:03:27]Read from MH i2c: E2 [01:03:27]MH_I2C_Read... [01:03:27]Read from MH i2c: E2 17 00 [01:03:27]MH_I2C_Read... [01:03:27]Read from MH i2c: E2 17 00 A0 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A3 [01:03:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [01:03:27]wFMCommunicate OK [01:03:27]CreateOFDProtocolMessage done [01:03:27]OFDSenderStorePacket 118341 [01:03:27]StoreOFDPacket docnum=118341 [01:03:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 AC 45 04 01 C9 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 DF 98 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 45 CE 01 00 35 04 06 00 82 6C 19 02 00 6A 2B 81 BD A0 B6 06 D2 B0 [01:03:27]CheckFolder [01:03:27]dirname=/storage/ofd_packets [01:03:27]CheckFolder done [01:03:27]ProducePacketName [01:03:27]name=ofd_packets/00118341 [01:03:27]NVStorageSaveData ofd_packets/00118341 [01:03:27]File name is /storage/ofd_packets/00118341 [01:03:27]Write 298 bytes [01:03:27]NVStorageSaveData done [01:03:27]OFDSenderStorePacket done [01:03:27]KKMCreateOFDPacket done [01:03:27]NVStorageSaveData kkm_last_timestamp [01:03:27]File name is /storage/kkm_last_timestamp [01:03:27]Write 4 bytes [01:03:27]NVStorageSaveData done [01:03:27]ExternCall_PrintAddStr [01:03:27]wPrintStart [01:03:27]Write to MH i2c: 01 00 00 A1 2E CF [01:03:27]Write i2c OK [01:03:27]MH_I2C_Read... [01:03:27]Read from MH i2c: 01 [01:03:27]MH_I2C_Read... [01:03:27]Read from MH i2c: 01 07 00 [01:03:27]MH_I2C_Read... [01:03:27]Read from MH i2c: 01 07 00 A1 2E 00 00 00 00 00 FF 0F E4 [01:03:27]RasterBufferAndPrint [01:03:27]line Счет N : (1)949215 [01:03:27]line ИНН: 02508201610067 [01:03:27]line Контрольно-Кассовый Чек [01:03:27]line ПРОДАЖА [01:03:27]line ТРК (МРК, ГНК) : 34 [01:03:27]line Товар: 2710194800 [01:03:27]line ДТ-К-5 [01:03:27]line 26.250 * 76.20 [01:03:27]line = 2000.25 [01:03:27]line НДС 12% НСП 1% [01:03:27]line > о реализуемом товаре [01:03:27]line ОКРУГЛЕНИЕ: -0.25 [01:03:27]line ИТОГО: 2000.00 [01:03:27]line НСП 1% : 17.70 [01:03:27]line НДС 12% : 212.42 [01:03:27]line Наличными: 0.00 [01:03:27]line Безнал.: 2000.00 [01:03:27]line Место: АЗС № 134 "Партнер Нефть" [01:03:27]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [01:03:27]line СНО: Общий режим [01:03:27]line Чек 10 28.07.2024 01:03 [01:03:27]line Смена: 433 ФФД: 1.0 [01:03:27]line ЗНМ: 0300000044 [01:03:27]line РНМ: 0000000000092660 [01:03:27]line Версия ККМ: 001 [01:03:27]line Платежная система: O! деньги [01:03:27]line ФМ: 0000000000874939 [01:03:27]line ФД: 118341 [01:03:27]line ФПД: 143400787640426 [01:03:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T010327&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118341&fm=143400787640426&tin=02508201610067®Number=0000000000092660&sum=200000 [01:03:27]OFD Sender: Processing packet 118341 [packets to send 86, broken 85] [01:03:27]ProducePacketName [01:03:27]name=ofd_packets/00118341 [01:03:27]OFD Sender: To server: pG, [01:03:27]CommunicateWithHost lk.salyk.kg:30040 [01:03:27]ConnectInit lk.salyk.kg [01:03:27]written 0, free lines is 4095 [01:03:27]Connected sock=10 [01:03:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 AC 45 04 01 C9 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 DF 98 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 45 CE 01 00 35 04 06 00 82 6C 19 02 00 6A 2B 81 BD A0 B6 06 D2 B0 [01:03:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 0C FB 47 00 78 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 34 39 33 39 10 04 04 00 45 CE 01 00 F4 03 04 00 71 46 A5 66 B6 04 01 00 00 7A 6C D3 DC BB 92 98 3B [01:03:27]CommunicateWithHost err = 0 [01:03:27]CheckOFDResponse [01:03:27]1017 (14) - 77093643461234 [01:03:27]1041 (16) - 0000000000874939 [01:03:27]1040 (4) - 118341 [01:03:27]1012 (4) - 27.07.2024 19:11 [01:03:27]1206 (1) - 0 [01:03:27]OFD Sender: Remove packet 118341 [01:03:27]ProducePacketName [01:03:27]name=ofd_packets/00118341 [01:03:27]NVStorageDeleteData [01:03:27]Write to MH i2c: 01 00 00 CB 2E F9 [01:03:27]Write i2c OK [01:03:27]MH_I2C_Read... [01:03:27]Read from MH i2c: 01 [01:03:27]MH_I2C_Read... [01:03:27]Read from MH i2c: 01 07 00 [01:03:27]MH_I2C_Read... [01:03:27]Read from MH i2c: 01 07 00 CB 2E 00 00 00 00 00 D3 0C DF [01:03:27]RasterBufferAndPrint [01:03:27]line [01:03:27]line [01:03:27]line [01:03:27]line [01:03:27]line [01:03:27]written 0, free lines is 3287 [01:03:27]MH_Cut [01:03:27]Write to MH i2c: D1 01 00 D2 2E 01 D2 [01:03:27]Write i2c OK [01:03:27]MH_I2C_Read... [01:03:27]Read from MH i2c: D1 [01:03:27]MH_I2C_Read... [01:03:27]Read from MH i2c: D1 01 00 [01:03:27]MH_I2C_Read... [01:03:27]Read from MH i2c: D1 01 00 D2 2E 00 D1 [01:03:27]Write to MH i2c: 01 00 00 D3 2E 01 [01:03:27]Write i2c OK [01:03:27]MH_I2C_Read... [01:03:28]OFD Sender: No OFD packet to send [01:03:28]*** Cut start [01:03:28]*** Partial cut [01:03:28]*** CUTSNS_PIN = 1 [01:03:28]*** CUTSNS_PIN = 0 [01:03:28]*** Brake cut motor [01:03:29]Read from MH i2c: 01 [01:03:29]MH_I2C_Read... [01:03:29]*** Stop cut motor [01:03:29]*** Cut end [01:03:29]Read from MH i2c: 01 07 00 [01:03:29]MH_I2C_Read... [01:03:29]Read from MH i2c: 01 07 00 D3 2E 00 00 00 00 00 FF 0F 16 [01:03:29]process_action close_receipt done [01:03:29]requested_data is exist [01:03:29]produce_requested_data [01:03:29]requested_item fm.sn is exist - process it [01:03:29]wFMCommunicate request_size=4 [01:03:29]MH_SAM_APDU [01:03:29]CAPDU: 80 11 00 00 [01:03:29]Write to MH i2c: E2 08 00 D4 2E 80 11 00 00 00 00 00 00 7C [01:03:29]Write i2c OK [01:03:29]MH_I2C_Read... [01:03:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:03:29]Read from MH i2c: E2 [01:03:29]MH_I2C_Read... [01:03:29]Read from MH i2c: E2 17 00 [01:03:29]MH_I2C_Read... [01:03:29]Read from MH i2c: E2 17 00 D4 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D7 [01:03:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [01:03:29]wFMCommunicate OK [01:03:29]requested_item fd.num is exist - process it [01:03:29]SAM_PROTO_GetFieldsCounters [01:03:29]wFMCommunicate request_size=4 [01:03:29]MH_SAM_APDU [01:03:29]CAPDU: 80 13 00 00 [01:03:29]Write to MH i2c: E2 08 00 D5 2E 80 13 00 00 00 00 00 00 7F [01:03:29]Write i2c OK [01:03:29]MH_I2C_Read... [01:03:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:03:29]Read from MH i2c: E2 [01:03:29]MH_I2C_Read... [01:03:29]Read from MH i2c: E2 62 00 [01:03:29]MH_I2C_Read... [01:03:29]Read from MH i2c: E2 62 00 D5 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 45 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [01:03:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 45 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:03:29]wFMCommunicate OK [01:03:29]SAM_PROTO_GetFieldsCounters done [01:03:29]requested_item shift.num is exist - process it [01:03:29]requested_item shift.opened is exist - process it [01:03:29]req_shift_opened [01:03:29]FM_GetShiftState [01:03:29]SAM_PROTO_GetShiftState [01:03:29]wFMCommunicate request_size=4 [01:03:29]MH_SAM_APDU [01:03:29]CAPDU: 80 13 01 00 [01:03:29]Write to MH i2c: E2 08 00 D6 2E 80 13 01 00 00 00 00 00 81 [01:03:29]Write i2c OK [01:03:29]MH_I2C_Read... [01:03:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:03:29]Read from MH i2c: E2 [01:03:29]MH_I2C_Read... [01:03:29]Read from MH i2c: E2 0E 00 [01:03:29]MH_I2C_Read... [01:03:29]Read from MH i2c: E2 0E 00 D6 2E 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 58 [01:03:29]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [01:03:29]wFMCommunicate OK [01:03:29]SAM_PROTO_GetShiftState done [01:03:29]FM_GetShiftState done [01:03:29]req_shift_opened done [01:03:29]requested_item shift.open_date is exist - process it [01:03:29]req_shift_open_date [01:03:29]req_shift_open_date done [01:03:29]produce_requested_data done [01:03:29]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118341,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [01:03:29]process_action_free close_receipt [01:03:29]json_value_free [01:03:29]json_value_free done [01:03:29]process_json_proto returns [01:03:29]Send response to host [01:03:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118341,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [01:03:29]free response buf [01:03:29]execute_script done [01:03:29]execute_script returns [01:03:29]free content buf [01:03:29]Sock 9.Close socket [01:03:29]Sock 9.Thread stoped [01:03:33]OFD Sender: No OFD packet to send [01:03:38]OFD Sender: No OFD packet to send [01:03:43]OFD Sender: No OFD packet to send [01:03:48]OFD Sender: No OFD packet to send [01:03:53]OFD Sender: No OFD packet to send [01:03:58]OFD Sender: No OFD packet to send [01:04:03]OFD Sender: No OFD packet to send [01:04:08]OFD Sender: No OFD packet to send [01:04:13]OFD Sender: No OFD packet to send [01:04:18]OFD Sender: No OFD packet to send [01:04:23]OFD Sender: No OFD packet to send [01:04:28]OFD Sender: No OFD packet to send [01:04:33]OFD Sender: No OFD packet to send [01:04:38]OFD Sender: No OFD packet to send [01:04:43]OFD Sender: No OFD packet to send [01:04:48]OFD Sender: No OFD packet to send [01:04:53]OFD Sender: No OFD packet to send [01:04:58]OFD Sender: No OFD packet to send [01:05:03]OFD Sender: No OFD packet to send [01:05:08]OFD Sender: No OFD packet to send [01:05:13]OFD Sender: No OFD packet to send [01:05:18]OFD Sender: No OFD packet to send [01:05:23]OFD Sender: No OFD packet to send [01:05:28]OFD Sender: No OFD packet to send [01:05:33]OFD Sender: No OFD packet to send [01:05:38]OFD Sender: No OFD packet to send [01:05:43]OFD Sender: No OFD packet to send [01:05:48]OFD Sender: No OFD packet to send [01:05:53]OFD Sender: No OFD packet to send [01:05:58]OFD Sender: No OFD packet to send [01:06:03]OFD Sender: No OFD packet to send [01:06:08]OFD Sender: No OFD packet to send [01:06:13]OFD Sender: No OFD packet to send [01:06:18]OFD Sender: No OFD packet to send [01:06:23]OFD Sender: No OFD packet to send [01:06:28]OFD Sender: No OFD packet to send [01:06:33]OFD Sender: No OFD packet to send [01:06:38]OFD Sender: No OFD packet to send [01:06:43]OFD Sender: No OFD packet to send [01:06:48]OFD Sender: No OFD packet to send [01:06:53]OFD Sender: No OFD packet to send [01:06:58]OFD Sender: No OFD packet to send [01:07:03]OFD Sender: No OFD packet to send [01:07:05]accept exits with 7 [01:07:05]New connection [01:07:05]New thread 3066953060 created [01:07:05]Thread 3067096420 joined [01:07:05]Waiting for new connection... [01:07:05] Sock 7.Parse request [01:07:05]Sock 7.Check first char [01:07:05]Sock 7.First char is OK [01:07:05]request: POST /json_proto HTTP/1.0 [01:07:05]Method: POST [01:07:05]URL: /json_proto [01:07:05]Method is POST - this is cgi request [01:07:05]url: /json_proto [01:07:05]query_string will be loaded in cgi processing [01:07:05]execute_cgi json_proto POST (null) [01:07:05]execute_cgi path=json_proto method=POST [01:07:05]POST find Content-Length [01:07:05]Host: 172.17.45.7:8080 [01:07:05]Content-Length: 679 [01:07:05]Content-Type: application/json [01:07:05] [01:07:05]POST finish read [01:07:05]Found Content-Length = 679 [01:07:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [01:07:05]execute_script... [01:07: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)949216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [01:07:05]POST & json_proto [01:07:05]process_json_proto [01:07:05]json parsed OK: [01:07:05]protocol is kg_v1.0 [01:07:05]action value=close_receipt [01:07:05]process_action close_receipt [01:07:05]cmd_close_receipt [01:07:05]MH_GetDate [01:07:05]Write to MH i2c: F0 00 00 D7 2E F4 [01:07:05]Write i2c OK [01:07:05]MH_I2C_Read... [01:07:05]Read from MH i2c: F0 [01:07:05]MH_I2C_Read... [01:07:05]Read from MH i2c: F0 09 00 [01:07:05]MH_I2C_Read... [01:07:05]Read from MH i2c: F0 09 00 D7 2E 00 BB 99 A5 66 90 0F 3E 66 9F [01:07:05]GetLastDocTimeStamp 1722128607 [01:07:05]current date 1722128827 [01:07:05]FM_GetShiftState [01:07:05]SAM_PROTO_GetShiftState [01:07:05]wFMCommunicate request_size=4 [01:07:05]MH_SAM_APDU [01:07:05]CAPDU: 80 13 01 00 [01:07:05]Write to MH i2c: E2 08 00 D8 2E 80 13 01 00 00 00 00 00 83 [01:07:05]Write i2c OK [01:07:05]MH_I2C_Read... [01:07:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:07:05]Read from MH i2c: E2 [01:07:05]MH_I2C_Read... [01:07:05]Read from MH i2c: E2 0E 00 [01:07:05]MH_I2C_Read... [01:07:05]Read from MH i2c: E2 0E 00 D8 2E 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 5A [01:07:05]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [01:07:05]wFMCommunicate OK [01:07:05]SAM_PROTO_GetShiftState done [01:07:05]FM_GetShiftState done [01:07:05]opened in 1722125364 [01:07:05]opened+sec_in_day 1722211764 [01:07:05]quantity*price = 150037 [01:07:05]sum+1 = 150039 [01:07:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 11 28.07.2024 01:07 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118342 ФПД: 21277292639119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T010707&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118342&fm=21277292639119&tin=02508201610067®Number=0000000000092660&sum=150000 [01:07:06]StoreToDocumentArchive [01:07:06]shift 433 fd 118342 [01:07:06]save to /storage/0433/doc_00118342 [01:07:06]save last doc name /storage/0433/doc_00118342 to /storage/kkm_last_doc_name [01:07:06]save OK [01:07:06]Clear old archive folders... [01:07:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [01:07:06]tlvbuf is 01DDEC30 [01:07:06]SAM_PROTO_ClearQueue [01:07:06]wFMCommunicate request_size=4 [01:07:06]MH_SAM_APDU [01:07:06]CAPDU: 80 09 00 00 [01:07:06]Write to MH i2c: E2 08 00 E5 2E 80 09 00 00 00 00 00 00 85 [01:07:06]Write i2c OK [01:07:06]MH_I2C_Read... [01:07:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:07:06]Read from MH i2c: E2 [01:07:06]MH_I2C_Read... [01:07:06]Read from MH i2c: E2 03 00 [01:07:06]MH_I2C_Read... [01:07:06]Read from MH i2c: E2 03 00 E5 2E 00 90 00 87 [01:07:06]RAPDU: 90 00 [01:07:06]wFMCommunicate OK [01:07:06]SAM_PROTO_ClearQueue done [01:07:06]KKMCreateOFDPacket [01:07:06]OFDProtocolAddRootSTLVToBuf [01:07:06]FM_MakeSignedData [01:07:06]FM_MakeSignedData [01:07:06]SAM_PROTO_SignData [01:07:06]wFMCommunicate request_size=4 [01:07:06]MH_SAM_APDU [01:07:06]CAPDU: 80 0D 01 02 [01:07:06]Write to MH i2c: E2 08 00 E6 2E 80 0D 01 02 00 00 00 00 8D [01:07:06]Write i2c OK [01:07:06]MH_I2C_Read... [01:07:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:07:06]Read from MH i2c: E2 [01:07:06]MH_I2C_Read... [01:07:06]Read from MH i2c: E2 03 00 [01:07:06]MH_I2C_Read... [01:07:06]Read from MH i2c: E2 03 00 E6 2E 00 90 00 88 [01:07:06]RAPDU: 90 00 [01:07:06]wFMCommunicate OK [01:07:06]wFMCommunicate request_size=255 [01:07:06]MH_SAM_APDU [01:07: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 0B 00 00 00 F4 03 04 00 BB 99 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 46 CE 01 00 35 04 06 00 13 5A 01 78 [01:07:06]Write to MH i2c: E2 02 01 E7 2E 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 0B 00 00 00 F4 03 04 00 BB 99 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 46 CE 01 00 35 04 06 00 13 5A 01 78 00 00 AB [01:07:06]Write i2c OK [01:07:06]MH_I2C_Read... [01:07:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:07:06]Read from MH i2c: E2 [01:07:06]MH_I2C_Read... [01:07:06]Read from MH i2c: E2 03 00 [01:07:06]MH_I2C_Read... [01:07:06]Read from MH i2c: E2 03 00 E7 2E 00 90 00 89 [01:07:06]RAPDU: 90 00 [01:07:06]wFMCommunicate OK [01:07:06]wFMCommunicate request_size=7 [01:07:06]MH_SAM_APDU [01:07:06]CAPDU: 80 0D 02 02 02 33 8F [01:07:06]Write to MH i2c: E2 0A 00 E8 2E 80 0D 02 02 02 00 33 8F 00 00 56 [01:07:06]Write i2c OK [01:07:06]MH_I2C_Read... [01:07:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:07:06]Read from MH i2c: E2 [01:07:06]MH_I2C_Read... [01:07:06]Read from MH i2c: E2 03 00 [01:07:06]MH_I2C_Read... [01:07:06]Read from MH i2c: E2 03 00 E8 2E 00 90 00 8A [01:07:06]RAPDU: 90 00 [01:07:06]wFMCommunicate OK [01:07:06]wFMCommunicate request_size=4 [01:07:06]MH_SAM_APDU [01:07:06]CAPDU: 80 0D 03 02 [01:07:06]Write to MH i2c: E2 08 00 E9 2E 80 0D 03 02 00 00 00 00 92 [01:07:06]Write i2c OK [01:07:06]MH_I2C_Read... [01:07:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:07:06]Read from MH i2c: E2 [01:07:06]MH_I2C_Read... [01:07:06]Read from MH i2c: E2 0B 00 [01:07:06]MH_I2C_Read... [01:07:06]Read from MH i2c: E2 0B 00 E9 2E 00 B0 E3 A7 D5 F3 33 7E 0F 90 00 55 [01:07:06]RAPDU: B0 E3 A7 D5 F3 33 7E 0F 90 00 [01:07:06]wFMCommunicate OK [01:07:06]SAM_PROTO_SignData done [01:07:06]FM_MakeSignedData done [01:07:06]CreateOFDProtocolMessage [01:07:06]wFMCommunicate request_size=4 [01:07:06]MH_SAM_APDU [01:07:06]CAPDU: 80 11 00 00 [01:07:06]Write to MH i2c: E2 08 00 EA 2E 80 11 00 00 00 00 00 00 92 [01:07:06]Write i2c OK [01:07:06]MH_I2C_Read... [01:07:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:07:06]Read from MH i2c: E2 [01:07:06]MH_I2C_Read... [01:07:06]Read from MH i2c: E2 17 00 [01:07:06]MH_I2C_Read... [01:07:06]Read from MH i2c: E2 17 00 EA 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 ED [01:07:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [01:07:06]wFMCommunicate OK [01:07:06]CreateOFDProtocolMessage done [01:07:06]OFDSenderStorePacket 118342 [01:07:06]StoreOFDPacket docnum=118342 [01:07:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 BA 56 04 01 C1 E4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 0B 00 00 00 F4 03 04 00 BB 99 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 46 CE 01 00 35 04 06 00 13 5A 01 78 33 8F B0 E3 A7 D5 F3 33 7E 0F [01:07:06]CheckFolder [01:07:06]dirname=/storage/ofd_packets [01:07:06]CheckFolder done [01:07:06]ProducePacketName [01:07:06]name=ofd_packets/00118342 [01:07:06]NVStorageSaveData ofd_packets/00118342 [01:07:06]File name is /storage/ofd_packets/00118342 [01:07:06]Write 298 bytes [01:07:06]NVStorageSaveData done [01:07:06]OFDSenderStorePacket done [01:07:06]KKMCreateOFDPacket done [01:07:06]NVStorageSaveData kkm_last_timestamp [01:07:06]File name is /storage/kkm_last_timestamp [01:07:06]Write 4 bytes [01:07:06]NVStorageSaveData done [01:07:06]ExternCall_PrintAddStr [01:07:06]wPrintStart [01:07:06]Write to MH i2c: 01 00 00 EB 2E 19 [01:07:06]Write i2c OK [01:07:06]MH_I2C_Read... [01:07:06]Read from MH i2c: 01 [01:07:06]MH_I2C_Read... [01:07:06]Read from MH i2c: 01 07 00 [01:07:06]MH_I2C_Read... [01:07:06]Read from MH i2c: 01 07 00 EB 2E 00 00 00 00 00 FF 0F 2E [01:07:06]RasterBufferAndPrint [01:07:06]line Счет N : (1)949216 [01:07:06]line ИНН: 02508201610067 [01:07:06]line Контрольно-Кассовый Чек [01:07:06]line ПРОДАЖА [01:07:06]line ТРК (МРК, ГНК) : 21 [01:07:06]line Товар: 2710194800 [01:07:06]line ДТ-К-5 [01:07:06]line 19.690 * 76.20 [01:07:06]line = 1500.38 [01:07:06]line НДС 12% НСП 1% [01:07:06]line > о реализуемом товаре [01:07:06]line ОКРУГЛЕНИЕ: -0.38 [01:07:06]line ИТОГО: 1500.00 [01:07:06]line Внесено: 1500.00 [01:07:06]line СДАЧА: 0.00 [01:07:06]line НСП 1% : 13.28 [01:07:06]line НДС 12% : 159.33 [01:07:06]line Наличными: 1500.00 [01:07:06]line Безнал.: 0.00 [01:07:06]line Место: АЗС № 134 "Партнер Нефть" [01:07:06]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [01:07:06]line СНО: Общий режим [01:07:06]line Чек 11 28.07.2024 01:07 [01:07:06]line Смена: 433 ФФД: 1.0 [01:07:06]line ЗНМ: 0300000044 [01:07:06]line РНМ: 0000000000092660 [01:07:06]line Версия ККМ: 001 [01:07:06]line ФМ: 0000000000874939 [01:07:06]line ФД: 118342 [01:07:06]line ФПД: 21277292639119 [01:07:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T010707&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118342&fm=21277292639119&tin=02508201610067®Number=0000000000092660&sum=150000 [01:07:07]OFD Sender: Processing packet 118342 [packets to send 86, broken 85] [01:07:07]ProducePacketName [01:07:07]name=ofd_packets/00118342 [01:07:07]OFD Sender: To server: pG, [01:07:07]CommunicateWithHost lk.salyk.kg:30040 [01:07:07]ConnectInit lk.salyk.kg [01:07:07]written 0, free lines is 4095 [01:07:07]Connected sock=10 [01:07:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 BA 56 04 01 C1 E4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 0B 00 00 00 F4 03 04 00 BB 99 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 46 CE 01 00 35 04 06 00 13 5A 01 78 33 8F B0 E3 A7 D5 F3 33 7E 0F [01:07:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 99 73 47 00 78 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 46 CE 01 00 F4 03 04 00 4D 47 A5 66 B6 04 01 00 00 EE 64 C2 58 A3 15 52 C1 [01:07:07]CommunicateWithHost err = 0 [01:07:07]CheckOFDResponse [01:07:07]1017 (14) - 77093643461234 [01:07:07]1041 (16) - 0000000000874939 [01:07:07]1040 (4) - 118342 [01:07:07]1012 (4) - 27.07.2024 19:15 [01:07:07]1206 (1) - 0 [01:07:07]OFD Sender: Remove packet 118342 [01:07:07]ProducePacketName [01:07:07]name=ofd_packets/00118342 [01:07:07]NVStorageDeleteData [01:07:07]Write to MH i2c: 01 00 00 15 2F 44 [01:07:07]Write i2c OK [01:07:07]MH_I2C_Read... [01:07:07]Read from MH i2c: 01 [01:07:07]MH_I2C_Read... [01:07:07]Read from MH i2c: 01 07 00 [01:07:07]MH_I2C_Read... [01:07:07]Read from MH i2c: 01 07 00 15 2F 00 00 00 00 00 D1 0C 28 [01:07:07]RasterBufferAndPrint [01:07:07]line [01:07:07]line [01:07:07]line [01:07:07]line [01:07:07]line [01:07:07]written 0, free lines is 3288 [01:07:07]MH_Cut [01:07:07]Write to MH i2c: D1 01 00 1C 2F 01 1D [01:07:07]Write i2c OK [01:07:07]MH_I2C_Read... [01:07:07]Read from MH i2c: D1 [01:07:07]MH_I2C_Read... [01:07:07]Read from MH i2c: D1 01 00 [01:07:07]MH_I2C_Read... [01:07:07]Read from MH i2c: D1 01 00 1C 2F 00 1C [01:07:07]Write to MH i2c: 01 00 00 1D 2F 4C [01:07:07]Write i2c OK [01:07:07]MH_I2C_Read... [01:07:08]OFD Sender: No OFD packet to send [01:07:08]*** Cut start [01:07:08]*** Partial cut [01:07:08]*** CUTSNS_PIN = 1 [01:07:08]*** CUTSNS_PIN = 0 [01:07:08]*** Brake cut motor [01:07:08]Read from MH i2c: 01 [01:07:08]MH_I2C_Read... [01:07:08]*** Stop cut motor [01:07:09]*** Cut end [01:07:09]Read from MH i2c: 01 07 00 [01:07:09]MH_I2C_Read... [01:07:09]Read from MH i2c: 01 07 00 1D 2F 00 00 00 00 00 FF 0F 61 [01:07:09]process_action close_receipt done [01:07:09]requested_data is exist [01:07:09]produce_requested_data [01:07:09]requested_item fm.sn is exist - process it [01:07:09]wFMCommunicate request_size=4 [01:07:09]MH_SAM_APDU [01:07:09]CAPDU: 80 11 00 00 [01:07:09]Write to MH i2c: E2 08 00 1E 2F 80 11 00 00 00 00 00 00 C7 [01:07:09]Write i2c OK [01:07:09]MH_I2C_Read... [01:07:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:07:09]Read from MH i2c: E2 [01:07:09]MH_I2C_Read... [01:07:09]Read from MH i2c: E2 17 00 [01:07:09]MH_I2C_Read... [01:07:09]Read from MH i2c: E2 17 00 1E 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 22 [01:07:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [01:07:09]wFMCommunicate OK [01:07:09]requested_item fd.num is exist - process it [01:07:09]SAM_PROTO_GetFieldsCounters [01:07:09]wFMCommunicate request_size=4 [01:07:09]MH_SAM_APDU [01:07:09]CAPDU: 80 13 00 00 [01:07:09]Write to MH i2c: E2 08 00 1F 2F 80 13 00 00 00 00 00 00 CA [01:07:09]Write i2c OK [01:07:09]MH_I2C_Read... [01:07:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:07:09]Read from MH i2c: E2 [01:07:09]MH_I2C_Read... [01:07:09]Read from MH i2c: E2 62 00 [01:07:09]MH_I2C_Read... [01:07:09]Read from MH i2c: E2 62 00 1F 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 46 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [01:07:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 46 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:07:09]wFMCommunicate OK [01:07:09]SAM_PROTO_GetFieldsCounters done [01:07:09]requested_item shift.num is exist - process it [01:07:09]requested_item shift.opened is exist - process it [01:07:09]req_shift_opened [01:07:09]FM_GetShiftState [01:07:09]SAM_PROTO_GetShiftState [01:07:09]wFMCommunicate request_size=4 [01:07:09]MH_SAM_APDU [01:07:09]CAPDU: 80 13 01 00 [01:07:09]Write to MH i2c: E2 08 00 20 2F 80 13 01 00 00 00 00 00 CC [01:07:09]Write i2c OK [01:07:09]MH_I2C_Read... [01:07:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:07:09]Read from MH i2c: E2 [01:07:09]MH_I2C_Read... [01:07:09]Read from MH i2c: E2 0E 00 [01:07:09]MH_I2C_Read... [01:07:09]Read from MH i2c: E2 0E 00 20 2F 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 A3 [01:07:09]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [01:07:09]wFMCommunicate OK [01:07:09]SAM_PROTO_GetShiftState done [01:07:09]FM_GetShiftState done [01:07:09]req_shift_opened done [01:07:09]requested_item shift.open_date is exist - process it [01:07:09]req_shift_open_date [01:07:09]req_shift_open_date done [01:07:09]produce_requested_data done [01:07:09]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118342,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [01:07:09]process_action_free close_receipt [01:07:09]json_value_free [01:07:09]json_value_free done [01:07:09]process_json_proto returns [01:07:09]Send response to host [01:07:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118342,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [01:07:09]free response buf [01:07:09]execute_script done [01:07:09]execute_script returns [01:07:09]free content buf [01:07:09]Sock 7.Close socket [01:07:09]Sock 7.Thread stoped [01:07:13]OFD Sender: No OFD packet to send [01:07:18]OFD Sender: No OFD packet to send [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:08]OFD Sender: No OFD packet to send [01:08:13]OFD Sender: No OFD packet to send [01:08:18]OFD Sender: No OFD packet to send [01:08:23]OFD Sender: No OFD packet to send [01:08:28]OFD Sender: No OFD packet to send [01:08:33]OFD Sender: No OFD packet to send [01:08:38]OFD Sender: No OFD packet to send [01:08:43]OFD Sender: No OFD packet to send [01:08:48]OFD Sender: No OFD packet to send [01:08:53]OFD Sender: No OFD packet to send [01:08:58]OFD Sender: No OFD packet to send [01:09:03]OFD Sender: No OFD packet to send [01:09:08]OFD Sender: No OFD packet to send [01:09:13]OFD Sender: No OFD packet to send [01:09:18]OFD Sender: No OFD packet to send [01:09:23]OFD Sender: No OFD packet to send [01:09:28]OFD Sender: No OFD packet to send [01:09:33]OFD Sender: No OFD packet to send [01:09:38]OFD Sender: No OFD packet to send [01:09:43]OFD Sender: No OFD packet to send [01:09:48]OFD Sender: No OFD packet to send [01:09:53]OFD Sender: No OFD packet to send [01:09:58]OFD Sender: No OFD packet to send [01:10:03]OFD Sender: No OFD packet to send [01:10:08]OFD Sender: No OFD packet to send [01:10:13]OFD Sender: No OFD packet to send [01:10:18]OFD Sender: No OFD packet to send [01:10:23]OFD Sender: No OFD packet to send [01:10:28]OFD Sender: No OFD packet to send [01:10:33]OFD Sender: No OFD packet to send [01:10:38]OFD Sender: No OFD packet to send [01:10:43]OFD Sender: No OFD packet to send [01:10:48]OFD Sender: No OFD packet to send [01:10:53]OFD Sender: No OFD packet to send [01:10:58]OFD Sender: No OFD packet to send [01:11:03]OFD Sender: No OFD packet to send [01:11:08]OFD Sender: No OFD packet to send [01:11:13]OFD Sender: No OFD packet to send [01:11:18]OFD Sender: No OFD packet to send [01:11:23]OFD Sender: No OFD packet to send [01:11:28]OFD Sender: No OFD packet to send [01:11:33]OFD Sender: No OFD packet to send [01:11:38]OFD Sender: No OFD packet to send [01:11:43]OFD Sender: No OFD packet to send [01:11:48]OFD Sender: No OFD packet to send [01:11:53]OFD Sender: No OFD packet to send [01:11:58]OFD Sender: No OFD packet to send [01:12:03]OFD Sender: No OFD packet to send [01:12:08]OFD Sender: No OFD packet to send [01:12:13]OFD Sender: No OFD packet to send [01:12:18]OFD Sender: No OFD packet to send [01:12:23]OFD Sender: No OFD packet to send [01:12:28]OFD Sender: No OFD packet to send [01:12:33]OFD Sender: No OFD packet to send [01:12:38]OFD Sender: No OFD packet to send [01:12:43]OFD Sender: No OFD packet to send [01:12:48]OFD Sender: No OFD packet to send [01:12:53]OFD Sender: No OFD packet to send [01:12:58]OFD Sender: No OFD packet to send [01:13:03]OFD Sender: No OFD packet to send [01:13:08]OFD Sender: No OFD packet to send [01:13:13]OFD Sender: No OFD packet to send [01:13:18]OFD Sender: No OFD packet to send [01:13:23]OFD Sender: No OFD packet to send [01:13:28]OFD Sender: No OFD packet to send [01:13:33]OFD Sender: No OFD packet to send [01:13:38]OFD Sender: No OFD packet to send [01:13:43]OFD Sender: No OFD packet to send [01:13:48]OFD Sender: No OFD packet to send [01:13:53]OFD Sender: No OFD packet to send [01:13:58]OFD Sender: No OFD packet to send [01:14:03]OFD Sender: No OFD packet to send [01:14:08]OFD Sender: No OFD packet to send [01:14:13]OFD Sender: No OFD packet to send [01:14:18]OFD Sender: No OFD packet to send [01:14:23]OFD Sender: No OFD packet to send [01:14:28]OFD Sender: No OFD packet to send [01:14:33]OFD Sender: No OFD packet to send [01:14:38]OFD Sender: No OFD packet to send [01:14:43]OFD Sender: No OFD packet to send [01:14:48]OFD Sender: No OFD packet to send [01:14:53]OFD Sender: No OFD packet to send [01:14:58]OFD Sender: No OFD packet to send [01:15:03]OFD Sender: No OFD packet to send [01:15:08]OFD Sender: No OFD packet to send [01:15:13]OFD Sender: No OFD packet to send [01:15:18]OFD Sender: No OFD packet to send [01:15:23]OFD Sender: No OFD packet to send [01:15:28]OFD Sender: No OFD packet to send [01:15:33]OFD Sender: No OFD packet to send [01:15:38]OFD Sender: No OFD packet to send [01:15:43]OFD Sender: No OFD packet to send [01:15:48]OFD Sender: No OFD packet to send [01:15:53]OFD Sender: No OFD packet to send [01:15:58]OFD Sender: No OFD packet to send [01:16:03]OFD Sender: No OFD packet to send [01:16:08]OFD Sender: No OFD packet to send [01:16:13]OFD Sender: No OFD packet to send [01:16:18]OFD Sender: No OFD packet to send [01:16:23]OFD Sender: No OFD packet to send [01:16:28]OFD Sender: No OFD packet to send [01:16:33]OFD Sender: No OFD packet to send [01:16:38]OFD Sender: No OFD packet to send [01:16:43]OFD Sender: No OFD packet to send [01:16:48]OFD Sender: No OFD packet to send [01:16:53]OFD Sender: No OFD packet to send [01:16:58]OFD Sender: No OFD packet to send [01:17:03]OFD Sender: No OFD packet to send [01:17:08]OFD Sender: No OFD packet to send [01:17:13]OFD Sender: No OFD packet to send [01:17:18]OFD Sender: No OFD packet to send [01:17:23]OFD Sender: No OFD packet to send [01:17:28]OFD Sender: No OFD packet to send [01:17:33]OFD Sender: No OFD packet to send [01:17:38]OFD Sender: No OFD packet to send [01:17:43]OFD Sender: No OFD packet to send [01:17:48]OFD Sender: No OFD packet to send [01:17:53]OFD Sender: No OFD packet to send [01:17:58]OFD Sender: No OFD packet to send [01:18:03]OFD Sender: No OFD packet to send [01:18:08]OFD Sender: No OFD packet to send [01:18:13]OFD Sender: No OFD packet to send [01:18:18]OFD Sender: No OFD packet to send [01:18:23]OFD Sender: No OFD packet to send [01:18:28]OFD Sender: No OFD packet to send [01:18:33]OFD Sender: No OFD packet to send [01:18:38]OFD Sender: No OFD packet to send [01:18:43]OFD Sender: No OFD packet to send [01:18:48]OFD Sender: No OFD packet to send [01:18:53]OFD Sender: No OFD packet to send [01:18:58]OFD Sender: No OFD packet to send [01:19:03]OFD Sender: No OFD packet to send [01:19:08]OFD Sender: No OFD packet to send [01:19:13]OFD Sender: No OFD packet to send [01:19:18]OFD Sender: No OFD packet to send [01:19:23]OFD Sender: No OFD packet to send [01:19:28]OFD Sender: No OFD packet to send [01:19:33]OFD Sender: No OFD packet to send [01:19:38]OFD Sender: No OFD packet to send [01:19:43]OFD Sender: No OFD packet to send [01:19:48]OFD Sender: No OFD packet to send [01:19:53]OFD Sender: No OFD packet to send [01:19:58]OFD Sender: No OFD packet to send [01:20:03]OFD Sender: No OFD packet to send [01:20:08]OFD Sender: No OFD packet to send [01:20:13]OFD Sender: No OFD packet to send [01:20:18]OFD Sender: No OFD packet to send [01:20:23]OFD Sender: No OFD packet to send [01:20:28]OFD Sender: No OFD packet to send [01:20:33]OFD Sender: No OFD packet to send [01:20:38]OFD Sender: No OFD packet to send [01:20:43]OFD Sender: No OFD packet to send [01:20:48]OFD Sender: No OFD packet to send [01:20:53]OFD Sender: No OFD packet to send [01:20:58]OFD Sender: No OFD packet to send [01:21:03]OFD Sender: No OFD packet to send [01:21:08]OFD Sender: No OFD packet to send [01:21:13]OFD Sender: No OFD packet to send [01:21:18]OFD Sender: No OFD packet to send [01:21:23]OFD Sender: No OFD packet to send [01:21:28]OFD Sender: No OFD packet to send [01:21:33]OFD Sender: No OFD packet to send [01:21:38]OFD Sender: No OFD packet to send [01:21:43]OFD Sender: No OFD packet to send [01:21:48]OFD Sender: No OFD packet to send [01:21:53]OFD Sender: No OFD packet to send [01:21:58]OFD Sender: No OFD packet to send [01:22:03]OFD Sender: No OFD packet to send [01:22:08]OFD Sender: No OFD packet to send [01:22:13]OFD Sender: No OFD packet to send [01:22:18]OFD Sender: No OFD packet to send [01:22:23]OFD Sender: No OFD packet to send [01:22:28]OFD Sender: No OFD packet to send [01:22:33]OFD Sender: No OFD packet to send [01:22:38]OFD Sender: No OFD packet to send [01:22:44]OFD Sender: No OFD packet to send [01:22:49]OFD Sender: No OFD packet to send [01:22:54]OFD Sender: No OFD packet to send [01:22:59]OFD Sender: No OFD packet to send [01:23:04]OFD Sender: No OFD packet to send [01:23:09]OFD Sender: No OFD packet to send [01:23:14]OFD Sender: No OFD packet to send [01:23:19]OFD Sender: No OFD packet to send [01:23:24]OFD Sender: No OFD packet to send [01:23:29]OFD Sender: No OFD packet to send [01:23:34]OFD Sender: No OFD packet to send [01:23:39]OFD Sender: No OFD packet to send [01:23:44]OFD Sender: No OFD packet to send [01:23:49]OFD Sender: No OFD packet to send [01:23:54]OFD Sender: No OFD packet to send [01:23:59]OFD Sender: No OFD packet to send [01:24:04]OFD Sender: No OFD packet to send [01:24:09]OFD Sender: No OFD packet to send [01:24:14]OFD Sender: No OFD packet to send [01:24:19]OFD Sender: No OFD packet to send [01:24:24]OFD Sender: No OFD packet to send [01:24:29]OFD Sender: No OFD packet to send [01:24:34]OFD Sender: No OFD packet to send [01:24:39]OFD Sender: No OFD packet to send [01:24:44]OFD Sender: No OFD packet to send [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:54]OFD Sender: No OFD packet to send [01:26:59]OFD Sender: No OFD packet to send [01:27:04]OFD Sender: No OFD packet to send [01:27:09]OFD Sender: No OFD packet to send [01:27:14]OFD Sender: No OFD packet to send [01:27:19]OFD Sender: No OFD packet to send [01:27:24]OFD Sender: No OFD packet to send [01:27:29]OFD Sender: No OFD packet to send [01:27:34]OFD Sender: No OFD packet to send [01:27:39]OFD Sender: No OFD packet to send [01:27:44]OFD Sender: No OFD packet to send [01:27:49]OFD Sender: No OFD packet to send [01:27:54]OFD Sender: No OFD packet to send [01:27:59]OFD Sender: No OFD packet to send [01:28:04]OFD Sender: No OFD packet to send [01:28:09]OFD Sender: No OFD packet to send [01:28:14]OFD Sender: No OFD packet to send [01:28:19]OFD Sender: No OFD packet to send [01:28:24]OFD Sender: No OFD packet to send [01:28:29]OFD Sender: No OFD packet to send [01:28:34]OFD Sender: No OFD packet to send [01:28:39]OFD Sender: No OFD packet to send [01:28:44]OFD Sender: No OFD packet to send [01:28:49]OFD Sender: No OFD packet to send [01:28:54]OFD Sender: No OFD packet to send [01:28:59]OFD Sender: No OFD packet to send [01:29:04]OFD Sender: No OFD packet to send [01:29:09]OFD Sender: No OFD packet to send [01:29:14]OFD Sender: No OFD packet to send [01:29:19]OFD Sender: No OFD packet to send [01:29:24]OFD Sender: No OFD packet to send [01:29:29]OFD Sender: No OFD packet to send [01:29:34]OFD Sender: No OFD packet to send [01:29:39]OFD Sender: No OFD packet to send [01:29:44]OFD Sender: No OFD packet to send [01:29:49]OFD Sender: No OFD packet to send [01:29:54]OFD Sender: No OFD packet to send [01:29:59]OFD Sender: No OFD packet to send [01:30:04]OFD Sender: No OFD packet to send [01:30:09]OFD Sender: No OFD packet to send [01:30:14]OFD Sender: No OFD packet to send [01:30:19]OFD Sender: No OFD packet to send [01:30:24]OFD Sender: No OFD packet to send [01:30:29]OFD Sender: No OFD packet to send [01:30:34]OFD Sender: No OFD packet to send [01:30:39]OFD Sender: No OFD packet to send [01:30:44]OFD Sender: No OFD packet to send [01:30:49]OFD Sender: No OFD packet to send [01:30:54]OFD Sender: No OFD packet to send [01:30:59]OFD Sender: No OFD packet to send [01:31:04]OFD Sender: No OFD packet to send [01:31:09]OFD Sender: No OFD packet to send [01:31:14]OFD Sender: No OFD packet to send [01:31:19]OFD Sender: No OFD packet to send [01:31:24]OFD Sender: No OFD packet to send [01:31:29]OFD Sender: No OFD packet to send [01:31:34]OFD Sender: No OFD packet to send [01:31:39]OFD Sender: No OFD packet to send [01:31:44]OFD Sender: No OFD packet to send [01:31:49]OFD Sender: No OFD packet to send [01:31:54]OFD Sender: No OFD packet to send [01:31:59]OFD Sender: No OFD packet to send [01:32:04]OFD Sender: No OFD packet to send [01:32:09]OFD Sender: No OFD packet to send [01:32:14]OFD Sender: No OFD packet to send [01:32:19]OFD Sender: No OFD packet to send [01:32:24]OFD Sender: No OFD packet to send [01:32:29]OFD Sender: No OFD packet to send [01:32:34]OFD Sender: No OFD packet to send [01:32:39]OFD Sender: No OFD packet to send [01:32:44]OFD Sender: No OFD packet to send [01:32:49]OFD Sender: No OFD packet to send [01:32:54]OFD Sender: No OFD packet to send [01:32:59]OFD Sender: No OFD packet to send [01:33:04]OFD Sender: No OFD packet to send [01:33:09]OFD Sender: No OFD packet to send [01:33:14]OFD Sender: No OFD packet to send [01:33:19]OFD Sender: No OFD packet to send [01:33:24]OFD Sender: No OFD packet to send [01:33:29]OFD Sender: No OFD packet to send [01:33:34]OFD Sender: No OFD packet to send [01:33:39]OFD Sender: No OFD packet to send [01:33:44]OFD Sender: No OFD packet to send [01:33:49]OFD Sender: No OFD packet to send [01:33:54]OFD Sender: No OFD packet to send [01:33:59]OFD Sender: No OFD packet to send [01:34:04]OFD Sender: No OFD packet to send [01:34:09]OFD Sender: No OFD packet to send [01:34:14]OFD Sender: No OFD packet to send [01:34:19]OFD Sender: No OFD packet to send [01:34:24]OFD Sender: No OFD packet to send [01:34:29]OFD Sender: No OFD packet to send [01:34:34]OFD Sender: No OFD packet to send [01:34:39]OFD Sender: No OFD packet to send [01:34:44]OFD Sender: No OFD packet to send [01:34:49]OFD Sender: No OFD packet to send [01:34:54]OFD Sender: No OFD packet to send [01:34:59]OFD Sender: No OFD packet to send [01:35:04]OFD Sender: No OFD packet to send [01:35:09]OFD Sender: No OFD packet to send [01:35:14]OFD Sender: No OFD packet to send [01:35:19]OFD Sender: No OFD packet to send [01:35:24]OFD Sender: No OFD packet to send [01:35:29]OFD Sender: No OFD packet to send [01:35:34]OFD Sender: No OFD packet to send [01:35:39]OFD Sender: No OFD packet to send [01:35:44]OFD Sender: No OFD packet to send [01:35:49]OFD Sender: No OFD packet to send [01:35:54]OFD Sender: No OFD packet to send [01:35:59]OFD Sender: No OFD packet to send [01:36:04]OFD Sender: No OFD packet to send [01:36:09]OFD Sender: No OFD packet to send [01:36:14]OFD Sender: No OFD packet to send [01:36:19]OFD Sender: No OFD packet to send [01:36:24]OFD Sender: No OFD packet to send [01:36:29]OFD Sender: No OFD packet to send [01:36:34]OFD Sender: No OFD packet to send [01:36:39]OFD Sender: No OFD packet to send [01:36:44]OFD Sender: No OFD packet to send [01:36:49]OFD Sender: No OFD packet to send [01:36:54]OFD Sender: No OFD packet to send [01:36:59]OFD Sender: No OFD packet to send [01:37:04]OFD Sender: No OFD packet to send [01:37:09]OFD Sender: No OFD packet to send [01:37:14]OFD Sender: No OFD packet to send [01:37:19]OFD Sender: No OFD packet to send [01:37:24]OFD Sender: No OFD packet to send [01:37:29]OFD Sender: No OFD packet to send [01:37:34]OFD Sender: No OFD packet to send [01:37:39]OFD Sender: No OFD packet to send [01:37:44]OFD Sender: No OFD packet to send [01:37:49]OFD Sender: No OFD packet to send [01:37:54]OFD Sender: No OFD packet to send [01:37:59]OFD Sender: No OFD packet to send [01:38:04]OFD Sender: No OFD packet to send [01:38:09]OFD Sender: No OFD packet to send [01:38:14]OFD Sender: No OFD packet to send [01:38:19]OFD Sender: No OFD packet to send [01:38:24]OFD Sender: No OFD packet to send [01:38:29]OFD Sender: No OFD packet to send [01:38:34]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:15]OFD Sender: No OFD packet to send [01:45:20]OFD Sender: No OFD packet to send [01:45:25]OFD Sender: No OFD packet to send [01:45:30]OFD Sender: No OFD packet to send [01:45:35]OFD Sender: No OFD packet to send [01:45:40]OFD Sender: No OFD packet to send [01:45:45]OFD Sender: No OFD packet to send [01:45:50]OFD Sender: No OFD packet to send [01:45:55]OFD Sender: No OFD packet to send [01:46:00]OFD Sender: No OFD packet to send [01:46:05]OFD Sender: No OFD packet to send [01:46:10]OFD Sender: No OFD packet to send [01:46:15]OFD Sender: No OFD packet to send [01:46:20]OFD Sender: No OFD packet to send [01:46:25]OFD Sender: No OFD packet to send [01:46:30]OFD Sender: No OFD packet to send [01:46:35]OFD Sender: No OFD packet to send [01:46:40]OFD Sender: No OFD packet to send [01:46:45]OFD Sender: No OFD packet to send [01:46:50]OFD Sender: No OFD packet to send [01:46:55]OFD Sender: No OFD packet to send [01:47:00]OFD Sender: No OFD packet to send [01:47:05]OFD Sender: No OFD packet to send [01:47:10]OFD Sender: No OFD packet to send [01:47:15]OFD Sender: No OFD packet to send [01:47:20]OFD Sender: No OFD packet to send [01:47:25]OFD Sender: No OFD packet to send [01:47:30]OFD Sender: No OFD packet to send [01:47:35]OFD Sender: No OFD packet to send [01:47:40]OFD Sender: No OFD packet to send [01:47:45]OFD Sender: No OFD packet to send [01:47:50]OFD Sender: No OFD packet to send [01:47:55]OFD Sender: No OFD packet to send [01:48:00]OFD Sender: No OFD packet to send [01:48:05]OFD Sender: No OFD packet to send [01:48:10]OFD Sender: No OFD packet to send [01:48:15]OFD Sender: No OFD packet to send [01:48:20]OFD Sender: No OFD packet to send [01:48:25]OFD Sender: No OFD packet to send [01:48:30]OFD Sender: No OFD packet to send [01:48:35]OFD Sender: No OFD packet to send [01:48:40]OFD Sender: No OFD packet to send [01:48:45]OFD Sender: No OFD packet to send [01:48:50]OFD Sender: No OFD packet to send [01:48:55]OFD Sender: No OFD packet to send [01:49:00]OFD Sender: No OFD packet to send [01:49:05]OFD Sender: No OFD packet to send [01:49:10]OFD Sender: No OFD packet to send [01:49:15]OFD Sender: No OFD packet to send [01:49:20]OFD Sender: No OFD packet to send [01:49:25]OFD Sender: No OFD packet to send [01:49:30]OFD Sender: No OFD packet to send [01:49:35]OFD Sender: No OFD packet to send [01:49:40]OFD Sender: No OFD packet to send [01:49:45]OFD Sender: No OFD packet to send [01:49:50]OFD Sender: No OFD packet to send [01:49:55]OFD Sender: No OFD packet to send [01:50:00]OFD Sender: No OFD packet to send [01:50:05]OFD Sender: No OFD packet to send [01:50:10]OFD Sender: No OFD packet to send [01:50:15]OFD Sender: No OFD packet to send [01:50:20]OFD Sender: No OFD packet to send [01:50:25]OFD Sender: No OFD packet to send [01:50:30]OFD Sender: No OFD packet to send [01:50:35]OFD Sender: No OFD packet to send [01:50:40]OFD Sender: No OFD packet to send [01:50:45]OFD Sender: No OFD packet to send [01:50:50]OFD Sender: No OFD packet to send [01:50:55]OFD Sender: No OFD packet to send [01:51:00]OFD Sender: No OFD packet to send [01:51:05]OFD Sender: No OFD packet to send [01:51:10]OFD Sender: No OFD packet to send [01:51:15]OFD Sender: No OFD packet to send [01:51:20]OFD Sender: No OFD packet to send [01:51:25]OFD Sender: No OFD packet to send [01:51:30]OFD Sender: No OFD packet to send [01:51:35]OFD Sender: No OFD packet to send [01:51:40]OFD Sender: No OFD packet to send [01:51:45]OFD Sender: No OFD packet to send [01:51:50]OFD Sender: No OFD packet to send [01:51:55]OFD Sender: No OFD packet to send [01:52:00]OFD Sender: No OFD packet to send [01:52:05]OFD Sender: No OFD packet to send [01:52:10]OFD Sender: No OFD packet to send [01:52:15]OFD Sender: No OFD packet to send [01:52:20]OFD Sender: No OFD packet to send [01:52:25]OFD Sender: No OFD packet to send [01:52:30]OFD Sender: No OFD packet to send [01:52:35]OFD Sender: No OFD packet to send [01:52:40]OFD Sender: No OFD packet to send [01:52:45]OFD Sender: No OFD packet to send [01:52:50]OFD Sender: No OFD packet to send [01:52:55]OFD Sender: No OFD packet to send [01:53:00]OFD Sender: No OFD packet to send [01:53:05]OFD Sender: No OFD packet to send [01:53:10]OFD Sender: No OFD packet to send [01:53:15]OFD Sender: No OFD packet to send [01:53:20]OFD Sender: No OFD packet to send [01:53:25]OFD Sender: No OFD packet to send [01:53:30]OFD Sender: No OFD packet to send [01:53:35]OFD Sender: No OFD packet to send [01:53:40]OFD Sender: No OFD packet to send [01:53:45]OFD Sender: No OFD packet to send [01:53:50]OFD Sender: No OFD packet to send [01:53:55]OFD Sender: No OFD packet to send [01:54:00]OFD Sender: No OFD packet to send [01:54:05]OFD Sender: No OFD packet to send [01:54:10]OFD Sender: No OFD packet to send [01:54:15]OFD Sender: No OFD packet to send [01:54:20]OFD Sender: No OFD packet to send [01:54:25]OFD Sender: No OFD packet to send [01:54:30]OFD Sender: No OFD packet to send [01:54:35]OFD Sender: No OFD packet to send [01:54:40]OFD Sender: No OFD packet to send [01:54:46]OFD Sender: No OFD packet to send [01:54:51]OFD Sender: No OFD packet to send [01:54:56]OFD Sender: No OFD packet to send [01:55:01]OFD Sender: No OFD packet to send [01:55:06]OFD Sender: No OFD packet to send [01:55:11]OFD Sender: No OFD packet to send [01:55:16]OFD Sender: No OFD packet to send [01:55:21]OFD Sender: No OFD packet to send [01:55:26]OFD Sender: No OFD packet to send [01:55:31]OFD Sender: No OFD packet to send [01:55:36]OFD Sender: No OFD packet to send [01:55:41]OFD Sender: No OFD packet to send [01:55:46]OFD Sender: No OFD packet to send [01:55:51]OFD Sender: No OFD packet to send [01:55:56]OFD Sender: No OFD packet to send [01:56:01]OFD Sender: No OFD packet to send [01:56:06]OFD Sender: No OFD packet to send [01:56:11]OFD Sender: No OFD packet to send [01:56:16]OFD Sender: No OFD packet to send [01:56:21]OFD Sender: No OFD packet to send [01:56:26]OFD Sender: No OFD packet to send [01:56:31]OFD Sender: No OFD packet to send [01:56:36]OFD Sender: No OFD packet to send [01:56:41]OFD Sender: No OFD packet to send [01:56:46]OFD Sender: No OFD packet to send [01:56:51]OFD Sender: No OFD packet to send [01:56:56]OFD Sender: No OFD packet to send [01:57:01]OFD Sender: No OFD packet to send [01:57:06]OFD Sender: No OFD packet to send [01:57:11]OFD Sender: No OFD packet to send [01:57:16]OFD Sender: No OFD packet to send [01:57:21]OFD Sender: No OFD packet to send [01:57:26]OFD Sender: No OFD packet to send [01:57:31]OFD Sender: No OFD packet to send [01:57:36]OFD Sender: No OFD packet to send [01:57:41]OFD Sender: No OFD packet to send [01:57:46]OFD Sender: No OFD packet to send [01:57:51]OFD Sender: No OFD packet to send [01:57:56]OFD Sender: No OFD packet to send [01:58:01]OFD Sender: No OFD packet to send [01:58:06]OFD Sender: No OFD packet to send [01:58:11]OFD Sender: No OFD packet to send [01:58:16]OFD Sender: No OFD packet to send [01:58:21]OFD Sender: No OFD packet to send [01:58:26]OFD Sender: No OFD packet to send [01:58:31]OFD Sender: No OFD packet to send [01:58:36]OFD Sender: No OFD packet to send [01:58:41]OFD Sender: No OFD packet to send [01:58:46]OFD Sender: No OFD packet to send [01:58:51]OFD Sender: No OFD packet to send [01:58:56]OFD Sender: No OFD packet to send [01:59:01]OFD Sender: No OFD packet to send [01:59:06]OFD Sender: No OFD packet to send [01:59:11]OFD Sender: No OFD packet to send [01:59:16]OFD Sender: No OFD packet to send [01:59:21]OFD Sender: No OFD packet to send [01:59:26]OFD Sender: No OFD packet to send [01:59:31]OFD Sender: No OFD packet to send [01:59:36]OFD Sender: No OFD packet to send [01:59:41]OFD Sender: No OFD packet to send [01:59:46]OFD Sender: No OFD packet to send [01:59:51]OFD Sender: No OFD packet to send [01:59:56]OFD Sender: No OFD packet to send [02:00:01]OFD Sender: No OFD packet to send [02:00:06]OFD Sender: No OFD packet to send [02:00:11]OFD Sender: No OFD packet to send [02:00:16]OFD Sender: No OFD packet to send [02:00:21]OFD Sender: No OFD packet to send [02:00:26]OFD Sender: No OFD packet to send [02:00:31]OFD Sender: No OFD packet to send [02:00:36]OFD Sender: No OFD packet to send [02:00:41]OFD Sender: No OFD packet to send [02:00:46]OFD Sender: No OFD packet to send [02:00:51]OFD Sender: No OFD packet to send [02:00:56]OFD Sender: No OFD packet to send [02:01:01]OFD Sender: No OFD packet to send [02:01:06]OFD Sender: No OFD packet to send [02:01:11]OFD Sender: No OFD packet to send [02:01:16]OFD Sender: No OFD packet to send [02:01:21]OFD Sender: No OFD packet to send [02:01:26]OFD Sender: No OFD packet to send [02:01:31]OFD Sender: No OFD packet to send [02:01:36]OFD Sender: No OFD packet to send [02:01:41]OFD Sender: No OFD packet to send [02:01:46]OFD Sender: No OFD packet to send [02:01:51]OFD Sender: No OFD packet to send [02:01:56]OFD Sender: No OFD packet to send [02:02:01]OFD Sender: No OFD packet to send [02:02:06]OFD Sender: No OFD packet to send [02:02:11]OFD Sender: No OFD packet to send [02:02:16]OFD Sender: No OFD packet to send [02:02:21]OFD Sender: No OFD packet to send [02:02:26]OFD Sender: No OFD packet to send [02:02:31]OFD Sender: No OFD packet to send [02:02:36]OFD Sender: No OFD packet to send [02:02:41]OFD Sender: No OFD packet to send [02:02:46]OFD Sender: No OFD packet to send [02:02:51]OFD Sender: No OFD packet to send [02:02:56]OFD Sender: No OFD packet to send [02:03:01]OFD Sender: No OFD packet to send [02:03:06]OFD Sender: No OFD packet to send [02:03:11]OFD Sender: No OFD packet to send [02:03:16]OFD Sender: No OFD packet to send [02:03:21]OFD Sender: No OFD packet to send [02:03:26]OFD Sender: No OFD packet to send [02:03:31]OFD Sender: No OFD packet to send [02:03:36]OFD Sender: No OFD packet to send [02:03:41]OFD Sender: No OFD packet to send [02:03:46]OFD Sender: No OFD packet to send [02:03:51]OFD Sender: No OFD packet to send [02:03:56]OFD Sender: No OFD packet to send [02:04:01]OFD Sender: No OFD packet to send [02:04:06]OFD Sender: No OFD packet to send [02:04:11]OFD Sender: No OFD packet to send [02:04:16]OFD Sender: No OFD packet to send [02:04:21]OFD Sender: No OFD packet to send [02:04:26]OFD Sender: No OFD packet to send [02:04:31]OFD Sender: No OFD packet to send [02:04:36]OFD Sender: No OFD packet to send [02:04:41]OFD Sender: No OFD packet to send [02:04:46]OFD Sender: No OFD packet to send [02:04:51]OFD Sender: No OFD packet to send [02:04:53]accept exits with 9 [02:04:53]New connection [02:04:53]New thread 3067096420 created [02:04:53]Thread 3066953060 joined [02:04:53]Waiting for new connection... [02:04:53] Sock 9.Parse request [02:04:53]Sock 9.Check first char [02:04:53]Sock 9.First char is OK [02:04:53]request: POST /json_proto HTTP/1.0 [02:04:53]Method: POST [02:04:53]URL: /json_proto [02:04:53]Method is POST - this is cgi request [02:04:53]url: /json_proto [02:04:53]query_string will be loaded in cgi processing [02:04:53]execute_cgi json_proto POST (null) [02:04:53]execute_cgi path=json_proto method=POST [02:04:53]POST find Content-Length [02:04:53]Host: 172.17.45.7:8080 [02:04:53]Content-Length: 682 [02:04:53]Content-Type: application/json [02:04:53] [02:04:53]POST finish read [02:04:53]Found Content-Length = 682 [02:04:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.830, "sum" : 1005.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1005.00, "total" : 1005.00, "payments": [ { "type": 0, "sum" : 1005.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:04:53]execute_script... [02:04:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.830, "sum" : 1005.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1005.00, "total" : 1005.00, "payments": [ { "type": 0, "sum" : 1005.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:04:53]POST & json_proto [02:04:53]process_json_proto [02:04:53]json parsed OK: [02:04:53]protocol is kg_v1.0 [02:04:53]action value=close_receipt [02:04:53]process_action close_receipt [02:04:53]cmd_close_receipt [02:04:53]MH_GetDate [02:04:53]Write to MH i2c: F0 00 00 21 2F 3F [02:04:53]Write i2c OK [02:04:53]MH_I2C_Read... [02:04:53]Read from MH i2c: F0 [02:04:53]MH_I2C_Read... [02:04:53]Read from MH i2c: F0 09 00 [02:04:53]MH_I2C_Read... [02:04:53]Read from MH i2c: F0 09 00 21 2F 00 47 A7 A5 66 90 0F 3E 66 84 [02:04:53]GetLastDocTimeStamp 1722128827 [02:04:53]current date 1722132295 [02:04:53]FM_GetShiftState [02:04:53]SAM_PROTO_GetShiftState [02:04:53]wFMCommunicate request_size=4 [02:04:53]MH_SAM_APDU [02:04:53]CAPDU: 80 13 01 00 [02:04:53]Write to MH i2c: E2 08 00 22 2F 80 13 01 00 00 00 00 00 CE [02:04:53]Write i2c OK [02:04:53]MH_I2C_Read... [02:04:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:04:53]Read from MH i2c: E2 [02:04:53]MH_I2C_Read... [02:04:53]Read from MH i2c: E2 0E 00 [02:04:53]MH_I2C_Read... [02:04:53]Read from MH i2c: E2 0E 00 22 2F 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 A5 [02:04:53]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [02:04:53]wFMCommunicate OK [02:04:53]SAM_PROTO_GetShiftState done [02:04:53]FM_GetShiftState done [02:04:53]opened in 1722125364 [02:04:53]opened+sec_in_day 1722211764 [02:04:53]quantity*price = 100547 [02:04:53]sum+1 = 100548 [02:04:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1005.00 Внесено: 1005.00 СДАЧА: 0.00 НСП 1% : 8.90 НДС 12% : 106.78 Наличными: 1005.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 12 28.07.2024 02:04 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118343 ФПД: 231140947402314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T020455&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118343&fm=231140947402314&tin=02508201610067®Number=0000000000092660&sum=100500 [02:04:54]StoreToDocumentArchive [02:04:54]shift 433 fd 118343 [02:04:54]save to /storage/0433/doc_00118343 [02:04:54]save last doc name /storage/0433/doc_00118343 to /storage/kkm_last_doc_name [02:04:54]save OK [02:04:54]Clear old archive folders... [02:04:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:04:54]tlvbuf is 01E21B90 [02:04:54]SAM_PROTO_ClearQueue [02:04:54]wFMCommunicate request_size=4 [02:04:54]MH_SAM_APDU [02:04:54]CAPDU: 80 09 00 00 [02:04:54]Write to MH i2c: E2 08 00 2F 2F 80 09 00 00 00 00 00 00 D0 [02:04:54]Write i2c OK [02:04:54]MH_I2C_Read... [02:04:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:04:54]Read from MH i2c: E2 [02:04:54]MH_I2C_Read... [02:04:54]Read from MH i2c: E2 03 00 [02:04:54]MH_I2C_Read... [02:04:54]Read from MH i2c: E2 03 00 2F 2F 00 90 00 D2 [02:04:54]RAPDU: 90 00 [02:04:54]wFMCommunicate OK [02:04:54]SAM_PROTO_ClearQueue done [02:04:54]KKMCreateOFDPacket [02:04:54]OFDProtocolAddRootSTLVToBuf [02:04:54]FM_MakeSignedData [02:04:54]FM_MakeSignedData [02:04:54]SAM_PROTO_SignData [02:04:54]wFMCommunicate request_size=4 [02:04:54]MH_SAM_APDU [02:04:54]CAPDU: 80 0D 01 02 [02:04:54]Write to MH i2c: E2 08 00 30 2F 80 0D 01 02 00 00 00 00 D8 [02:04:54]Write i2c OK [02:04:54]MH_I2C_Read... [02:04:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:04:54]Read from MH i2c: E2 [02:04:54]MH_I2C_Read... [02:04:54]Read from MH i2c: E2 03 00 [02:04:54]MH_I2C_Read... [02:04:54]Read from MH i2c: E2 03 00 30 2F 00 90 00 D3 [02:04:54]RAPDU: 90 00 [02:04:54]wFMCommunicate OK [02:04:54]wFMCommunicate request_size=255 [02:04:54]MH_SAM_APDU [02:04:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 EE 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C3 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 29 00 00 00 00 07 04 06 00 94 88 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 47 A7 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 47 CE 01 00 35 04 06 00 D2 [02:04:54]Write to MH i2c: E2 02 01 31 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 EE 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C3 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 29 00 00 00 00 07 04 06 00 94 88 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 47 A7 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 47 CE 01 00 35 04 06 00 D2 00 00 25 [02:04:54]Write i2c OK [02:04:54]MH_I2C_Read... [02:04:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:04:54]Read from MH i2c: E2 [02:04:54]MH_I2C_Read... [02:04:54]Read from MH i2c: E2 03 00 [02:04:54]MH_I2C_Read... [02:04:54]Read from MH i2c: E2 03 00 31 2F 00 90 00 D4 [02:04:54]RAPDU: 90 00 [02:04:54]wFMCommunicate OK [02:04:54]wFMCommunicate request_size=10 [02:04:54]MH_SAM_APDU [02:04:54]CAPDU: 80 0D 02 02 05 38 B2 10 1E 4A [02:04:54]Write to MH i2c: E2 0D 00 32 2F 80 0D 02 02 05 00 38 B2 10 1E 4A 00 00 47 [02:04:54]Write i2c OK [02:04:54]MH_I2C_Read... [02:04:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:04:54]Read from MH i2c: E2 [02:04:54]MH_I2C_Read... [02:04:54]Read from MH i2c: E2 03 00 [02:04:54]MH_I2C_Read... [02:04:54]Read from MH i2c: E2 03 00 32 2F 00 90 00 D5 [02:04:54]RAPDU: 90 00 [02:04:54]wFMCommunicate OK [02:04:54]wFMCommunicate request_size=4 [02:04:54]MH_SAM_APDU [02:04:54]CAPDU: 80 0D 03 02 [02:04:54]Write to MH i2c: E2 08 00 33 2F 80 0D 03 02 00 00 00 00 DD [02:04:54]Write i2c OK [02:04:54]MH_I2C_Read... [02:04:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:04:54]Read from MH i2c: E2 [02:04:54]MH_I2C_Read... [02:04:54]Read from MH i2c: E2 0B 00 [02:04:54]MH_I2C_Read... [02:04:54]Read from MH i2c: E2 0B 00 33 2F 00 4D 54 01 89 C4 45 C7 E3 90 00 BC [02:04:54]RAPDU: 4D 54 01 89 C4 45 C7 E3 90 00 [02:04:54]wFMCommunicate OK [02:04:54]SAM_PROTO_SignData done [02:04:54]FM_MakeSignedData done [02:04:54]CreateOFDProtocolMessage [02:04:54]wFMCommunicate request_size=4 [02:04:54]MH_SAM_APDU [02:04:54]CAPDU: 80 11 00 00 [02:04:54]Write to MH i2c: E2 08 00 34 2F 80 11 00 00 00 00 00 00 DD [02:04:54]Write i2c OK [02:04:54]MH_I2C_Read... [02:04:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:04:54]Read from MH i2c: E2 [02:04:54]MH_I2C_Read... [02:04:54]Read from MH i2c: E2 17 00 [02:04:54]MH_I2C_Read... [02:04:54]Read from MH i2c: E2 17 00 34 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 38 [02:04:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [02:04:54]wFMCommunicate OK [02:04:54]CreateOFDProtocolMessage done [02:04:54]OFDSenderStorePacket 118343 [02:04:54]StoreOFDPacket docnum=118343 [02:04:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4F 69 07 01 55 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 EE 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C3 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 29 00 00 00 00 07 04 06 00 94 88 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 47 A7 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 47 CE 01 00 35 04 06 00 D2 38 B2 10 1E 4A 4D 54 01 89 C4 45 C7 E3 [02:04:54]CheckFolder [02:04:54]dirname=/storage/ofd_packets [02:04:54]CheckFolder done [02:04:54]ProducePacketName [02:04:54]name=ofd_packets/00118343 [02:04:54]NVStorageSaveData ofd_packets/00118343 [02:04:54]File name is /storage/ofd_packets/00118343 [02:04:54]Write 301 bytes [02:04:54]NVStorageSaveData done [02:04:54]OFDSenderStorePacket done [02:04:54]KKMCreateOFDPacket done [02:04:54]NVStorageSaveData kkm_last_timestamp [02:04:54]File name is /storage/kkm_last_timestamp [02:04:54]Write 4 bytes [02:04:54]NVStorageSaveData done [02:04:54]ExternCall_PrintAddStr [02:04:54]wPrintStart [02:04:54]Write to MH i2c: 01 00 00 35 2F 64 [02:04:54]Write i2c OK [02:04:54]MH_I2C_Read... [02:04:54]Read from MH i2c: 01 [02:04:54]MH_I2C_Read... [02:04:54]Read from MH i2c: 01 07 00 [02:04:54]MH_I2C_Read... [02:04:54]Read from MH i2c: 01 07 00 35 2F 00 00 00 00 00 FF 0F 79 [02:04:54]RasterBufferAndPrint [02:04:54]line Счет N : (1)949217 [02:04:54]line ИНН: 02508201610067 [02:04:54]line Контрольно-Кассовый Чек [02:04:54]line ПРОДАЖА [02:04:54]line ТРК (МРК, ГНК) : 41 [02:04:54]line Товар: 2710124130 [02:04:54]line Аи-92-К-4 [02:04:54]line 14.830 * 67.80 [02:04:54]line = 1005.47 [02:04:54]line НДС 12% НСП 1% [02:04:54]line > о реализуемом товаре [02:04:54]line ОКРУГЛЕНИЕ: -0.47 [02:04:54]line ИТОГО: 1005.00 [02:04:54]line Внесено: 1005.00 [02:04:54]line СДАЧА: 0.00 [02:04:54]line НСП 1% : 8.90 [02:04:54]line НДС 12% : 106.78 [02:04:54]line Наличными: 1005.00 [02:04:54]line Безнал.: 0.00 [02:04:54]line Место: АЗС № 134 "Партнер Нефть" [02:04:54]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [02:04:54]line СНО: Общий режим [02:04:54]line Чек 12 28.07.2024 02:04 [02:04:54]line Смена: 433 ФФД: 1.0 [02:04:54]line ЗНМ: 0300000044 [02:04:54]line РНМ: 0000000000092660 [02:04:54]line Версия ККМ: 001 [02:04:54]line ФМ: 0000000000874939 [02:04:54]line ФД: 118343 [02:04:54]line ФПД: 231140947402314 [02:04:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T020455&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118343&fm=231140947402314&tin=02508201610067®Number=0000000000092660&sum=100500 [02:04:55]OFD Sender: Processing packet 118343 [packets to send 86, broken 85] [02:04:55]ProducePacketName [02:04:55]name=ofd_packets/00118343 [02:04:55]OFD Sender: To server: pG, [02:04:55]CommunicateWithHost lk.salyk.kg:30040 [02:04:55]ConnectInit lk.salyk.kg [02:04:55]written 0, free lines is 4095 [02:04:55]Connected sock=10 [02:04:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4F 69 07 01 55 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 EE 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C3 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 29 00 00 00 00 07 04 06 00 94 88 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 47 A7 A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 47 CE 01 00 35 04 06 00 D2 38 B2 10 1E 4A 4D 54 01 89 C4 45 C7 E3 [02:04:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 50 CE 47 00 3C A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 47 CE 01 00 F4 03 04 00 D9 54 A5 66 B6 04 01 00 00 38 76 06 24 C6 F7 B1 35 [02:04:55]CommunicateWithHost err = 0 [02:04:55]CheckOFDResponse [02:04:55]1017 (14) - 77093643461234 [02:04:55]1041 (16) - 0000000000874939 [02:04:55]1040 (4) - 118343 [02:04:55]1012 (4) - 27.07.2024 20:13 [02:04:55]1206 (1) - 0 [02:04:55]OFD Sender: Remove packet 118343 [02:04:55]ProducePacketName [02:04:55]name=ofd_packets/00118343 [02:04:55]NVStorageDeleteData [02:04:55]Write to MH i2c: 01 00 00 5F 2F 8E [02:04:55]Write i2c OK [02:04:55]MH_I2C_Read... [02:04:55]Read from MH i2c: 01 [02:04:55]MH_I2C_Read... [02:04:55]Read from MH i2c: 01 07 00 [02:04:55]MH_I2C_Read... [02:04:55]Read from MH i2c: 01 07 00 5F 2F 00 00 00 00 00 CB 0C 6C [02:04:55]RasterBufferAndPrint [02:04:55]line [02:04:55]line [02:04:55]line [02:04:55]line [02:04:55]line [02:04:55]written 0, free lines is 3282 [02:04:55]MH_Cut [02:04:55]Write to MH i2c: D1 01 00 66 2F 01 67 [02:04:55]Write i2c OK [02:04:55]MH_I2C_Read... [02:04:55]Read from MH i2c: D1 [02:04:55]MH_I2C_Read... [02:04:55]Read from MH i2c: D1 01 00 [02:04:55]MH_I2C_Read... [02:04:55]Read from MH i2c: D1 01 00 66 2F 00 66 [02:04:55]Write to MH i2c: 01 00 00 67 2F 96 [02:04:55]Write i2c OK [02:04:55]MH_I2C_Read... [02:04:55]OFD Sender: No OFD packet to send [02:04:56]*** Cut start [02:04:56]*** Partial cut [02:04:56]*** CUTSNS_PIN = 1 [02:04:56]*** CUTSNS_PIN = 0 [02:04:56]*** Brake cut motor [02:04:56]Read from MH i2c: 01 [02:04:56]MH_I2C_Read... [02:04:56]*** Stop cut motor [02:04:56]*** Cut end [02:04:56]Read from MH i2c: 01 07 00 [02:04:56]MH_I2C_Read... [02:04:56]Read from MH i2c: 01 07 00 67 2F 00 00 00 00 00 FF 0F AB [02:04:56]process_action close_receipt done [02:04:56]requested_data is exist [02:04:56]produce_requested_data [02:04:56]requested_item fm.sn is exist - process it [02:04:56]wFMCommunicate request_size=4 [02:04:56]MH_SAM_APDU [02:04:56]CAPDU: 80 11 00 00 [02:04:56]Write to MH i2c: E2 08 00 68 2F 80 11 00 00 00 00 00 00 11 [02:04:56]Write i2c OK [02:04:56]MH_I2C_Read... [02:04:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:04:57]Read from MH i2c: E2 [02:04:57]MH_I2C_Read... [02:04:57]Read from MH i2c: E2 17 00 [02:04:57]MH_I2C_Read... [02:04:57]Read from MH i2c: E2 17 00 68 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6C [02:04:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [02:04:57]wFMCommunicate OK [02:04:57]requested_item fd.num is exist - process it [02:04:57]SAM_PROTO_GetFieldsCounters [02:04:57]wFMCommunicate request_size=4 [02:04:57]MH_SAM_APDU [02:04:57]CAPDU: 80 13 00 00 [02:04:57]Write to MH i2c: E2 08 00 69 2F 80 13 00 00 00 00 00 00 14 [02:04:57]Write i2c OK [02:04:57]MH_I2C_Read... [02:04:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:04:57]Read from MH i2c: E2 [02:04:57]MH_I2C_Read... [02:04:57]Read from MH i2c: E2 62 00 [02:04:57]MH_I2C_Read... [02:04:57]Read from MH i2c: E2 62 00 69 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 47 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [02:04:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 47 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:04:57]wFMCommunicate OK [02:04:57]SAM_PROTO_GetFieldsCounters done [02:04:57]requested_item shift.num is exist - process it [02:04:57]requested_item shift.opened is exist - process it [02:04:57]req_shift_opened [02:04:57]FM_GetShiftState [02:04:57]SAM_PROTO_GetShiftState [02:04:57]wFMCommunicate request_size=4 [02:04:57]MH_SAM_APDU [02:04:57]CAPDU: 80 13 01 00 [02:04:57]Write to MH i2c: E2 08 00 6A 2F 80 13 01 00 00 00 00 00 16 [02:04:57]Write i2c OK [02:04:57]MH_I2C_Read... [02:04:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:04:57]Read from MH i2c: E2 [02:04:57]MH_I2C_Read... [02:04:57]Read from MH i2c: E2 0E 00 [02:04:57]MH_I2C_Read... [02:04:57]Read from MH i2c: E2 0E 00 6A 2F 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 ED [02:04:57]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [02:04:57]wFMCommunicate OK [02:04:57]SAM_PROTO_GetShiftState done [02:04:57]FM_GetShiftState done [02:04:57]req_shift_opened done [02:04:57]requested_item shift.open_date is exist - process it [02:04:57]req_shift_open_date [02:04:57]req_shift_open_date done [02:04:57]produce_requested_data done [02:04:57]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118343,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [02:04:57]process_action_free close_receipt [02:04:57]json_value_free [02:04:57]json_value_free done [02:04:57]process_json_proto returns [02:04:57]Send response to host [02:04:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118343,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [02:04:57]free response buf [02:04:57]execute_script done [02:04:57]execute_script returns [02:04:57]free content buf [02:04:57]Sock 9.Close socket [02:04:57]Sock 9.Thread stoped [02:05:01]OFD Sender: No OFD packet to send [02:05:06]OFD Sender: No OFD packet to send [02:05:11]OFD Sender: No OFD packet to send [02:05:16]OFD Sender: No OFD packet to send [02:05:21]OFD Sender: No OFD packet to send [02:05:26]OFD Sender: No OFD packet to send [02:05:31]OFD Sender: No OFD packet to send [02:05:36]OFD Sender: No OFD packet to send [02:05:41]OFD Sender: No OFD packet to send [02:05:46]OFD Sender: No OFD packet to send [02:05:51]OFD Sender: No OFD packet to send [02:05:56]OFD Sender: No OFD packet to send [02:06:01]OFD Sender: No OFD packet to send [02:06:06]OFD Sender: No OFD packet to send [02:06:11]OFD Sender: No OFD packet to send [02:06:16]OFD Sender: No OFD packet to send [02:06:21]OFD Sender: No OFD packet to send [02:06:26]OFD Sender: No OFD packet to send [02:06:31]OFD Sender: No OFD packet to send [02:06:36]OFD Sender: No OFD packet to send [02:06:41]OFD Sender: No OFD packet to send [02:06:46]OFD Sender: No OFD packet to send [02:06:51]OFD Sender: No OFD packet to send [02:06:56]OFD Sender: No OFD packet to send [02:07:01]OFD Sender: No OFD packet to send [02:07:06]OFD Sender: No OFD packet to send [02:07:11]OFD Sender: No OFD packet to send [02:07:16]OFD Sender: No OFD packet to send [02:07:21]OFD Sender: No OFD packet to send [02:07:26]OFD Sender: No OFD packet to send [02:07:31]OFD Sender: No OFD packet to send [02:07:36]OFD Sender: No OFD packet to send [02:07:41]OFD Sender: No OFD packet to send [02:07:46]OFD Sender: No OFD packet to send [02:07:51]OFD Sender: No OFD packet to send [02:07:56]OFD Sender: No OFD packet to send [02:08:01]OFD Sender: No OFD packet to send [02:08:06]OFD Sender: No OFD packet to send [02:08:11]OFD Sender: No OFD packet to send [02:08:16]OFD Sender: No OFD packet to send [02:08:21]OFD Sender: No OFD packet to send [02:08:26]OFD Sender: No OFD packet to send [02:08:31]OFD Sender: No OFD packet to send [02:08:36]OFD Sender: No OFD packet to send [02:08:41]OFD Sender: No OFD packet to send [02:08:46]OFD Sender: No OFD packet to send [02:08:51]OFD Sender: No OFD packet to send [02:08:56]OFD Sender: No OFD packet to send [02:09:01]OFD Sender: No OFD packet to send [02:09:06]OFD Sender: No OFD packet to send [02:09:11]OFD Sender: No OFD packet to send [02:09:16]OFD Sender: No OFD packet to send [02:09:21]OFD Sender: No OFD packet to send [02:09:26]OFD Sender: No OFD packet to send [02:09:31]OFD Sender: No OFD packet to send [02:09:36]OFD Sender: No OFD packet to send [02:09:41]OFD Sender: No OFD packet to send [02:09:46]OFD Sender: No OFD packet to send [02:09:51]OFD Sender: No OFD packet to send [02:09:56]OFD Sender: No OFD packet to send [02:10:01]OFD Sender: No OFD packet to send [02:10:06]OFD Sender: No OFD packet to send [02:10:11]OFD Sender: No OFD packet to send [02:10:16]OFD Sender: No OFD packet to send [02:10:21]OFD Sender: No OFD packet to send [02:10:26]OFD Sender: No OFD packet to send [02:10:31]OFD Sender: No OFD packet to send [02:10:36]OFD Sender: No OFD packet to send [02:10:41]OFD Sender: No OFD packet to send [02:10:46]OFD Sender: No OFD packet to send [02:10:51]OFD Sender: No OFD packet to send [02:10:56]OFD Sender: No OFD packet to send [02:11:01]OFD Sender: No OFD packet to send [02:11:06]OFD Sender: No OFD packet to send [02:11:11]OFD Sender: No OFD packet to send [02:11:16]OFD Sender: No OFD packet to send [02:11:21]OFD Sender: No OFD packet to send [02:11:26]OFD Sender: No OFD packet to send [02:11:31]OFD Sender: No OFD packet to send [02:11:36]OFD Sender: No OFD packet to send [02:11:41]OFD Sender: No OFD packet to send [02:11:46]OFD Sender: No OFD packet to send [02:11:51]OFD Sender: No OFD packet to send [02:11:56]OFD Sender: No OFD packet to send [02:12:01]OFD Sender: No OFD packet to send [02:12:06]OFD Sender: No OFD packet to send [02:12:11]OFD Sender: No OFD packet to send [02:12:16]OFD Sender: No OFD packet to send [02:12:21]OFD Sender: No OFD packet to send [02:12:26]OFD Sender: No OFD packet to send [02:12:31]OFD Sender: No OFD packet to send [02:12:36]OFD Sender: No OFD packet to send [02:12:41]OFD Sender: No OFD packet to send [02:12:46]OFD Sender: No OFD packet to send [02:12:51]OFD Sender: No OFD packet to send [02:12:56]OFD Sender: No OFD packet to send [02:13:01]OFD Sender: No OFD packet to send [02:13:06]OFD Sender: No OFD packet to send [02:13:11]OFD Sender: No OFD packet to send [02:13:16]OFD Sender: No OFD packet to send [02:13:21]OFD Sender: No OFD packet to send [02:13:26]OFD Sender: No OFD packet to send [02:13:31]OFD Sender: No OFD packet to send [02:13:36]OFD Sender: No OFD packet to send [02:13:41]OFD Sender: No OFD packet to send [02:13:46]OFD Sender: No OFD packet to send [02:13:51]OFD Sender: No OFD packet to send [02:13:56]OFD Sender: No OFD packet to send [02:14:01]OFD Sender: No OFD packet to send [02:14:06]OFD Sender: No OFD packet to send [02:14:11]OFD Sender: No OFD packet to send [02:14:16]OFD Sender: No OFD packet to send [02:14:21]OFD Sender: No OFD packet to send [02:14:26]OFD Sender: No OFD packet to send [02:14:31]OFD Sender: No OFD packet to send [02:14:36]OFD Sender: No OFD packet to send [02:14:41]OFD Sender: No OFD packet to send [02:14:46]OFD Sender: No OFD packet to send [02:14:51]OFD Sender: No OFD packet to send [02:14:56]OFD Sender: No OFD packet to send [02:15:01]OFD Sender: No OFD packet to send [02:15:06]OFD Sender: No OFD packet to send [02:15:11]OFD Sender: No OFD packet to send [02:15:16]OFD Sender: No OFD packet to send [02:15:21]OFD Sender: No OFD packet to send [02:15:26]OFD Sender: No OFD packet to send [02:15:31]OFD Sender: No OFD packet to send [02:15:36]OFD Sender: No OFD packet to send [02:15:41]OFD Sender: No OFD packet to send [02:15:46]OFD Sender: No OFD packet to send [02:15:51]OFD Sender: No OFD packet to send [02:15:56]OFD Sender: No OFD packet to send [02:16:01]OFD Sender: No OFD packet to send [02:16:06]OFD Sender: No OFD packet to send [02:16:11]OFD Sender: No OFD packet to send [02:16:16]OFD Sender: No OFD packet to send [02:16:21]OFD Sender: No OFD packet to send [02:16:26]OFD Sender: No OFD packet to send [02:16:31]OFD Sender: No OFD packet to send [02:16:36]OFD Sender: No OFD packet to send [02:16:41]OFD Sender: No OFD packet to send [02:16:46]OFD Sender: No OFD packet to send [02:16:51]OFD Sender: No OFD packet to send [02:16:56]OFD Sender: No OFD packet to send [02:17:01]OFD Sender: No OFD packet to send [02:17:06]OFD Sender: No OFD packet to send [02:17:11]OFD Sender: No OFD packet to send [02:17:16]OFD Sender: No OFD packet to send [02:17:21]OFD Sender: No OFD packet to send [02:17:26]OFD Sender: No OFD packet to send [02:17:31]OFD Sender: No OFD packet to send [02:17:33]accept exits with 7 [02:17:33]New connection [02:17:33]New thread 3066953060 created [02:17:33]Thread 3067096420 joined [02:17:33]Waiting for new connection... [02:17:33] Sock 7.Parse request [02:17:33]Sock 7.Check first char [02:17:33]Sock 7.First char is OK [02:17:33]request: POST /json_proto HTTP/1.0 [02:17:33]Method: POST [02:17:33]URL: /json_proto [02:17:33]Method is POST - this is cgi request [02:17:33]url: /json_proto [02:17:33]query_string will be loaded in cgi processing [02:17:33]execute_cgi json_proto POST (null) [02:17:33]execute_cgi path=json_proto method=POST [02:17:33]POST find Content-Length [02:17:33]Host: 172.17.45.7:8080 [02:17:33]Content-Length: 819 [02:17:33]Content-Type: application/json [02:17:33] [02:17:33]POST finish read [02:17:33]Found Content-Length = 819 [02:17:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 85.310, "sum" : 6500.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", "total" : 6500.00, "payments": [ { "type": 1, "sum" : 6500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:17:33]execute_script... [02:17: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)949218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 85.310, "sum" : 6500.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", "total" : 6500.00, "payments": [ { "type": 1, "sum" : 6500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:17:33]POST & json_proto [02:17:33]process_json_proto [02:17:33]json parsed OK: [02:17:33]protocol is kg_v1.0 [02:17:33]action value=close_receipt [02:17:33]process_action close_receipt [02:17:33]cmd_close_receipt [02:17:33]MH_GetDate [02:17:33]Write to MH i2c: F0 00 00 6B 2F 89 [02:17:33]Write i2c OK [02:17:33]MH_I2C_Read... [02:17:33]Read from MH i2c: F0 [02:17:33]MH_I2C_Read... [02:17:33]Read from MH i2c: F0 09 00 [02:17:33]MH_I2C_Read... [02:17:33]Read from MH i2c: F0 09 00 6B 2F 00 3F AA A5 66 90 0F 3E 66 C9 [02:17:33]GetLastDocTimeStamp 1722132295 [02:17:33]current date 1722133055 [02:17:33]FM_GetShiftState [02:17:33]SAM_PROTO_GetShiftState [02:17:33]wFMCommunicate request_size=4 [02:17:33]MH_SAM_APDU [02:17:33]CAPDU: 80 13 01 00 [02:17:33]Write to MH i2c: E2 08 00 6C 2F 80 13 01 00 00 00 00 00 18 [02:17:33]Write i2c OK [02:17:33]MH_I2C_Read... [02:17:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:17:33]Read from MH i2c: E2 [02:17:33]MH_I2C_Read... [02:17:33]Read from MH i2c: E2 0E 00 [02:17:33]MH_I2C_Read... [02:17:33]Read from MH i2c: E2 0E 00 6C 2F 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 EF [02:17:33]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [02:17:33]wFMCommunicate OK [02:17:33]SAM_PROTO_GetShiftState done [02:17:33]FM_GetShiftState done [02:17:33]opened in 1722125364 [02:17:33]opened+sec_in_day 1722211764 [02:17:33]quantity*price = 650062 [02:17:33]sum+1 = 650063 [02:17:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 6500.00 НСП 1% : 57.53 НДС 12% : 690.33 Наличными: 0.00 Безнал.: 6500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 13 28.07.2024 02:17 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118344 ФПД: 260943306745552 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T021735&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118344&fm=260943306745552&tin=02508201610067®Number=0000000000092660&sum=650000 [02:17:34]StoreToDocumentArchive [02:17:34]shift 433 fd 118344 [02:17:34]save to /storage/0433/doc_00118344 [02:17:34]save last doc name /storage/0433/doc_00118344 to /storage/kkm_last_doc_name [02:17:34]save OK [02:17:34]Clear old archive folders... [02:17:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:17:34]tlvbuf is 01E3C410 [02:17:34]SAM_PROTO_ClearQueue [02:17:34]wFMCommunicate request_size=4 [02:17:34]MH_SAM_APDU [02:17:34]CAPDU: 80 09 00 00 [02:17:34]Write to MH i2c: E2 08 00 79 2F 80 09 00 00 00 00 00 00 1A [02:17:34]Write i2c OK [02:17:34]MH_I2C_Read... [02:17:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:17:34]Read from MH i2c: E2 [02:17:34]MH_I2C_Read... [02:17:34]Read from MH i2c: E2 03 00 [02:17:34]MH_I2C_Read... [02:17:34]Read from MH i2c: E2 03 00 79 2F 00 90 00 1C [02:17:34]RAPDU: 90 00 [02:17:34]wFMCommunicate OK [02:17:34]SAM_PROTO_ClearQueue done [02:17:34]KKMCreateOFDPacket [02:17:34]OFDProtocolAddRootSTLVToBuf [02:17:34]FM_MakeSignedData [02:17:34]FM_MakeSignedData [02:17:34]SAM_PROTO_SignData [02:17:34]wFMCommunicate request_size=4 [02:17:34]MH_SAM_APDU [02:17:34]CAPDU: 80 0D 01 02 [02:17:34]Write to MH i2c: E2 08 00 7A 2F 80 0D 01 02 00 00 00 00 22 [02:17:34]Write i2c OK [02:17:34]MH_I2C_Read... [02:17:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:17:34]Read from MH i2c: E2 [02:17:34]MH_I2C_Read... [02:17:34]Read from MH i2c: E2 03 00 [02:17:34]MH_I2C_Read... [02:17:34]Read from MH i2c: E2 03 00 7A 2F 00 90 00 1D [02:17:34]RAPDU: 90 00 [02:17:34]wFMCommunicate OK [02:17:34]wFMCommunicate request_size=255 [02:17:34]MH_SAM_APDU [02:17: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 4D 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4E EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 EB 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 3F AA A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 48 CE 01 00 35 04 06 00 ED 53 99 1A [02:17:34]Write to MH i2c: E2 02 01 7B 2F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 4D 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4E EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 EB 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 3F AA A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 48 CE 01 00 35 04 06 00 ED 53 99 1A 00 00 44 [02:17:34]Write i2c OK [02:17:34]MH_I2C_Read... [02:17:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:17:34]Read from MH i2c: E2 [02:17:34]MH_I2C_Read... [02:17:34]Read from MH i2c: E2 03 00 [02:17:34]MH_I2C_Read... [02:17:34]Read from MH i2c: E2 03 00 7B 2F 00 90 00 1E [02:17:34]RAPDU: 90 00 [02:17:34]wFMCommunicate OK [02:17:34]wFMCommunicate request_size=7 [02:17:34]MH_SAM_APDU [02:17:34]CAPDU: 80 0D 02 02 02 E6 D0 [02:17:34]Write to MH i2c: E2 0A 00 7C 2F 80 0D 02 02 02 00 E6 D0 00 00 DF [02:17:34]Write i2c OK [02:17:34]MH_I2C_Read... [02:17:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:17:34]Read from MH i2c: E2 [02:17:34]MH_I2C_Read... [02:17:34]Read from MH i2c: E2 03 00 [02:17:34]MH_I2C_Read... [02:17:34]Read from MH i2c: E2 03 00 7C 2F 00 90 00 1F [02:17:34]RAPDU: 90 00 [02:17:34]wFMCommunicate OK [02:17:34]wFMCommunicate request_size=4 [02:17:34]MH_SAM_APDU [02:17:34]CAPDU: 80 0D 03 02 [02:17:34]Write to MH i2c: E2 08 00 7D 2F 80 0D 03 02 00 00 00 00 27 [02:17:34]Write i2c OK [02:17:34]MH_I2C_Read... [02:17:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:17:34]Read from MH i2c: E2 [02:17:34]MH_I2C_Read... [02:17:34]Read from MH i2c: E2 0B 00 [02:17:34]MH_I2C_Read... [02:17:34]Read from MH i2c: E2 0B 00 7D 2F 00 12 93 0B 19 DB DF 3A F5 90 00 DA [02:17:34]RAPDU: 12 93 0B 19 DB DF 3A F5 90 00 [02:17:34]wFMCommunicate OK [02:17:34]SAM_PROTO_SignData done [02:17:34]FM_MakeSignedData done [02:17:34]CreateOFDProtocolMessage [02:17:34]wFMCommunicate request_size=4 [02:17:34]MH_SAM_APDU [02:17:34]CAPDU: 80 11 00 00 [02:17:34]Write to MH i2c: E2 08 00 7E 2F 80 11 00 00 00 00 00 00 27 [02:17:34]Write i2c OK [02:17:34]MH_I2C_Read... [02:17:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:17:34]Read from MH i2c: E2 [02:17:34]MH_I2C_Read... [02:17:34]Read from MH i2c: E2 17 00 [02:17:34]MH_I2C_Read... [02:17:34]Read from MH i2c: E2 17 00 7E 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 82 [02:17:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [02:17:34]wFMCommunicate OK [02:17:34]CreateOFDProtocolMessage done [02:17:34]OFDSenderStorePacket 118344 [02:17:34]StoreOFDPacket docnum=118344 [02:17:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B8 4A 04 01 84 60 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 4D 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4E EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 EB 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 3F AA A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 48 CE 01 00 35 04 06 00 ED 53 99 1A E6 D0 12 93 0B 19 DB DF 3A F5 [02:17:34]CheckFolder [02:17:34]dirname=/storage/ofd_packets [02:17:34]CheckFolder done [02:17:34]ProducePacketName [02:17:34]name=ofd_packets/00118344 [02:17:34]NVStorageSaveData ofd_packets/00118344 [02:17:34]File name is /storage/ofd_packets/00118344 [02:17:34]Write 298 bytes [02:17:34]NVStorageSaveData done [02:17:34]OFDSenderStorePacket done [02:17:34]KKMCreateOFDPacket done [02:17:34]NVStorageSaveData kkm_last_timestamp [02:17:34]File name is /storage/kkm_last_timestamp [02:17:34]Write 4 bytes [02:17:34]NVStorageSaveData done [02:17:34]ExternCall_PrintAddStr [02:17:34]wPrintStart [02:17:34]Write to MH i2c: 01 00 00 7F 2F AE [02:17:34]Write i2c OK [02:17:34]MH_I2C_Read... [02:17:34]Read from MH i2c: 01 [02:17:34]MH_I2C_Read... [02:17:34]Read from MH i2c: 01 07 00 [02:17:34]MH_I2C_Read... [02:17:34]Read from MH i2c: 01 07 00 7F 2F 00 00 00 00 00 FF 0F C3 [02:17:34]RasterBufferAndPrint [02:17:34]line Счет N : (1)949218 [02:17:34]line ИНН: 02508201610067 [02:17:34]line Контрольно-Кассовый Чек [02:17:34]line ПРОДАЖА [02:17:34]line ТРК (МРК, ГНК) : 21 [02:17:34]line Товар: 2710194800 [02:17:34]line ДТ-К-5 [02:17:34]line 85.310 * 76.20 [02:17:34]line = 6500.62 [02:17:34]line НДС 12% НСП 1% [02:17:34]line > о реализуемом товаре [02:17:34]line ОКРУГЛЕНИЕ: -0.62 [02:17:34]line ИТОГО: 6500.00 [02:17:34]line НСП 1% : 57.53 [02:17:34]line НДС 12% : 690.33 [02:17:34]line Наличными: 0.00 [02:17:34]line Безнал.: 6500.00 [02:17:34]line Место: АЗС № 134 "Партнер Нефть" [02:17:34]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [02:17:34]line СНО: Общий режим [02:17:34]line Чек 13 28.07.2024 02:17 [02:17:34]line Смена: 433 ФФД: 1.0 [02:17:34]line ЗНМ: 0300000044 [02:17:34]line РНМ: 0000000000092660 [02:17:34]line Версия ККМ: 001 [02:17:34]line Платежная система: O! деньги [02:17:34]line ФМ: 0000000000874939 [02:17:34]line ФД: 118344 [02:17:34]line ФПД: 260943306745552 [02:17:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T021735&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118344&fm=260943306745552&tin=02508201610067®Number=0000000000092660&sum=650000 [02:17:35]OFD Sender: Processing packet 118344 [packets to send 86, broken 85] [02:17:35]ProducePacketName [02:17:35]name=ofd_packets/00118344 [02:17:35]OFD Sender: To server: pG, [02:17:35]CommunicateWithHost lk.salyk.kg:30040 [02:17:35]ConnectInit lk.salyk.kg [02:17:35]written 0, free lines is 4095 [02:17:35]Connected sock=10 [02:17:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B8 4A 04 01 84 60 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 4D 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4E EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 EB 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 3F AA A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 48 CE 01 00 35 04 06 00 ED 53 99 1A E6 D0 12 93 0B 19 DB DF 3A F5 [02:17:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 EF FC 47 00 D0 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 48 CE 01 00 F4 03 04 00 D1 57 A5 66 B6 04 01 00 00 E2 BB 7E 5B C5 3F E5 97 [02:17:35]CommunicateWithHost err = 0 [02:17:35]CheckOFDResponse [02:17:35]1017 (14) - 77093643461234 [02:17:35]1041 (16) - 0000000000874939 [02:17:35]1040 (4) - 118344 [02:17:35]1012 (4) - 27.07.2024 20:25 [02:17:35]1206 (1) - 0 [02:17:35]OFD Sender: Remove packet 118344 [02:17:35]ProducePacketName [02:17:35]name=ofd_packets/00118344 [02:17:35]NVStorageDeleteData [02:17:35]Write to MH i2c: 01 00 00 A9 2F D8 [02:17:35]Write i2c OK [02:17:35]MH_I2C_Read... [02:17:35]Read from MH i2c: 01 [02:17:35]MH_I2C_Read... [02:17:35]Read from MH i2c: 01 07 00 [02:17:35]MH_I2C_Read... [02:17:35]Read from MH i2c: 01 07 00 A9 2F 00 00 00 00 00 D1 0C BC [02:17:35]RasterBufferAndPrint [02:17:35]line [02:17:35]line [02:17:35]line [02:17:35]line [02:17:35]line [02:17:35]written 0, free lines is 3288 [02:17:35]MH_Cut [02:17:35]Write to MH i2c: D1 01 00 B0 2F 01 B1 [02:17:35]Write i2c OK [02:17:35]MH_I2C_Read... [02:17:35]Read from MH i2c: D1 [02:17:35]MH_I2C_Read... [02:17:35]Read from MH i2c: D1 01 00 [02:17:35]MH_I2C_Read... [02:17:35]Read from MH i2c: D1 01 00 B0 2F 00 B0 [02:17:35]Write to MH i2c: 01 00 00 B1 2F E0 [02:17:35]Write i2c OK [02:17:35]MH_I2C_Read... [02:17:35]OFD Sender: No OFD packet to send [02:17:36]*** Cut start [02:17:36]*** Partial cut [02:17:36]*** CUTSNS_PIN = 1 [02:17:36]*** CUTSNS_PIN = 0 [02:17:36]*** Brake cut motor [02:17:36]Read from MH i2c: 01 [02:17:36]MH_I2C_Read... [02:17:36]*** Stop cut motor [02:17:36]*** Cut end [02:17:36]Read from MH i2c: 01 07 00 [02:17:36]MH_I2C_Read... [02:17:36]Read from MH i2c: 01 07 00 B1 2F 00 00 00 00 00 FF 0F F5 [02:17:36]process_action close_receipt done [02:17:36]requested_data is exist [02:17:36]produce_requested_data [02:17:36]requested_item fm.sn is exist - process it [02:17:36]wFMCommunicate request_size=4 [02:17:36]MH_SAM_APDU [02:17:36]CAPDU: 80 11 00 00 [02:17:36]Write to MH i2c: E2 08 00 B2 2F 80 11 00 00 00 00 00 00 5B [02:17:36]Write i2c OK [02:17:36]MH_I2C_Read... [02:17:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:17:36]Read from MH i2c: E2 [02:17:36]MH_I2C_Read... [02:17:36]Read from MH i2c: E2 17 00 [02:17:36]MH_I2C_Read... [02:17:36]Read from MH i2c: E2 17 00 B2 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B6 [02:17:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [02:17:36]wFMCommunicate OK [02:17:36]requested_item fd.num is exist - process it [02:17:36]SAM_PROTO_GetFieldsCounters [02:17:36]wFMCommunicate request_size=4 [02:17:36]MH_SAM_APDU [02:17:36]CAPDU: 80 13 00 00 [02:17:36]Write to MH i2c: E2 08 00 B3 2F 80 13 00 00 00 00 00 00 5E [02:17:36]Write i2c OK [02:17:36]MH_I2C_Read... [02:17:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:17:37]Read from MH i2c: E2 [02:17:37]MH_I2C_Read... [02:17:37]Read from MH i2c: E2 62 00 [02:17:37]MH_I2C_Read... [02:17:37]Read from MH i2c: E2 62 00 B3 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 48 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [02:17:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 48 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:17:37]wFMCommunicate OK [02:17:37]SAM_PROTO_GetFieldsCounters done [02:17:37]requested_item shift.num is exist - process it [02:17:37]requested_item shift.opened is exist - process it [02:17:37]req_shift_opened [02:17:37]FM_GetShiftState [02:17:37]SAM_PROTO_GetShiftState [02:17:37]wFMCommunicate request_size=4 [02:17:37]MH_SAM_APDU [02:17:37]CAPDU: 80 13 01 00 [02:17:37]Write to MH i2c: E2 08 00 B4 2F 80 13 01 00 00 00 00 00 60 [02:17:37]Write i2c OK [02:17:37]MH_I2C_Read... [02:17:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:17:37]Read from MH i2c: E2 [02:17:37]MH_I2C_Read... [02:17:37]Read from MH i2c: E2 0E 00 [02:17:37]MH_I2C_Read... [02:17:37]Read from MH i2c: E2 0E 00 B4 2F 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 37 [02:17:37]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [02:17:37]wFMCommunicate OK [02:17:37]SAM_PROTO_GetShiftState done [02:17:37]FM_GetShiftState done [02:17:37]req_shift_opened done [02:17:37]requested_item shift.open_date is exist - process it [02:17:37]req_shift_open_date [02:17:37]req_shift_open_date done [02:17:37]produce_requested_data done [02:17:37]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118344,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [02:17:37]process_action_free close_receipt [02:17:37]json_value_free [02:17:37]json_value_free done [02:17:37]process_json_proto returns [02:17:37]Send response to host [02:17:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118344,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [02:17:37]free response buf [02:17:37]execute_script done [02:17:37]execute_script returns [02:17:37]free content buf [02:17:37]Sock 7.Close socket [02:17:37]Sock 7.Thread stoped [02:17:40]OFD Sender: No OFD packet to send [02:17:45]OFD Sender: No OFD packet to send [02:17:50]OFD Sender: No OFD packet to send [02:17:52]accept exits with 9 [02:17:52]New connection [02:17:52]New thread 3067096420 created [02:17:52]Thread 3066953060 joined [02:17:52]Waiting for new connection... [02:17:52] Sock 9.Parse request [02:17:52]Sock 9.Check first char [02:17:52]Sock 9.First char is OK [02:17:52]request: POST /json_proto HTTP/1.0 [02:17:52]Method: POST [02:17:52]URL: /json_proto [02:17:52]Method is POST - this is cgi request [02:17:52]url: /json_proto [02:17:52]query_string will be loaded in cgi processing [02:17:52]execute_cgi json_proto POST (null) [02:17:52]execute_cgi path=json_proto method=POST [02:17:52]POST find Content-Length [02:17:52]Host: 172.17.45.7:8080 [02:17:52]Content-Length: 682 [02:17:52]Content-Type: application/json [02:17:52] [02:17:52]POST finish read [02:17:52]Found Content-Length = 682 [02:17:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:17:52]execute_script... [02:17: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)949220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:17:52]POST & json_proto [02:17:52]process_json_proto [02:17:52]json parsed OK: [02:17:52]protocol is kg_v1.0 [02:17:52]action value=close_receipt [02:17:52]process_action close_receipt [02:17:52]cmd_close_receipt [02:17:52]MH_GetDate [02:17:52]Write to MH i2c: F0 00 00 B5 2F D3 [02:17:52]Write i2c OK [02:17:52]MH_I2C_Read... [02:17:52]Read from MH i2c: F0 [02:17:52]MH_I2C_Read... [02:17:52]Read from MH i2c: F0 09 00 [02:17:52]MH_I2C_Read... [02:17:52]Read from MH i2c: F0 09 00 B5 2F 00 53 AA A5 66 90 0F 3E 66 27 [02:17:52]GetLastDocTimeStamp 1722133055 [02:17:52]current date 1722133075 [02:17:52]FM_GetShiftState [02:17:52]SAM_PROTO_GetShiftState [02:17:52]wFMCommunicate request_size=4 [02:17:52]MH_SAM_APDU [02:17:52]CAPDU: 80 13 01 00 [02:17:52]Write to MH i2c: E2 08 00 B6 2F 80 13 01 00 00 00 00 00 62 [02:17:52]Write i2c OK [02:17:52]MH_I2C_Read... [02:17:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:17:52]Read from MH i2c: E2 [02:17:52]MH_I2C_Read... [02:17:52]Read from MH i2c: E2 0E 00 [02:17:52]MH_I2C_Read... [02:17:52]Read from MH i2c: E2 0E 00 B6 2F 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 39 [02:17:52]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [02:17:52]wFMCommunicate OK [02:17:52]SAM_PROTO_GetShiftState done [02:17:52]FM_GetShiftState done [02:17:52]opened in 1722125364 [02:17:52]opened+sec_in_day 1722211764 [02:17:52]quantity*price = 100021 [02:17:52]sum+1 = 100023 [02:17:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 14 28.07.2024 02:17 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118345 ФПД: 26127249973546 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T021755&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118345&fm=26127249973546&tin=02508201610067®Number=0000000000092660&sum=100000 [02:17:53]StoreToDocumentArchive [02:17:53]shift 433 fd 118345 [02:17:53]save to /storage/0433/doc_00118345 [02:17:53]save last doc name /storage/0433/doc_00118345 to /storage/kkm_last_doc_name [02:17:53]save OK [02:17:53]Clear old archive folders... [02:17:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:17:53]tlvbuf is 01E34090 [02:17:53]SAM_PROTO_ClearQueue [02:17:53]wFMCommunicate request_size=4 [02:17:53]MH_SAM_APDU [02:17:53]CAPDU: 80 09 00 00 [02:17:53]Write to MH i2c: E2 08 00 C3 2F 80 09 00 00 00 00 00 00 64 [02:17:53]Write i2c OK [02:17:53]MH_I2C_Read... [02:17:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:17:53]Read from MH i2c: E2 [02:17:53]MH_I2C_Read... [02:17:53]Read from MH i2c: E2 03 00 [02:17:53]MH_I2C_Read... [02:17:53]Read from MH i2c: E2 03 00 C3 2F 00 90 00 66 [02:17:53]RAPDU: 90 00 [02:17:53]wFMCommunicate OK [02:17:53]SAM_PROTO_ClearQueue done [02:17:53]KKMCreateOFDPacket [02:17:53]OFDProtocolAddRootSTLVToBuf [02:17:53]FM_MakeSignedData [02:17:53]FM_MakeSignedData [02:17:53]SAM_PROTO_SignData [02:17:53]wFMCommunicate request_size=4 [02:17:53]MH_SAM_APDU [02:17:53]CAPDU: 80 0D 01 02 [02:17:53]Write to MH i2c: E2 08 00 C4 2F 80 0D 01 02 00 00 00 00 6C [02:17:53]Write i2c OK [02:17:53]MH_I2C_Read... [02:17:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:17:54]Read from MH i2c: E2 [02:17:54]MH_I2C_Read... [02:17:54]Read from MH i2c: E2 03 00 [02:17:54]MH_I2C_Read... [02:17:54]Read from MH i2c: E2 03 00 C4 2F 00 90 00 67 [02:17:54]RAPDU: 90 00 [02:17:54]wFMCommunicate OK [02:17:54]wFMCommunicate request_size=255 [02:17:54]MH_SAM_APDU [02:17:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 53 AA A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 49 CE 01 00 35 04 06 00 17 [02:17:54]Write to MH i2c: E2 02 01 C5 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 53 AA A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 49 CE 01 00 35 04 06 00 17 00 00 13 [02:17:54]Write i2c OK [02:17:54]MH_I2C_Read... [02:17:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:17:54]Read from MH i2c: E2 [02:17:54]MH_I2C_Read... [02:17:54]Read from MH i2c: E2 03 00 [02:17:54]MH_I2C_Read... [02:17:54]Read from MH i2c: E2 03 00 C5 2F 00 90 00 68 [02:17:54]RAPDU: 90 00 [02:17:54]wFMCommunicate OK [02:17:54]wFMCommunicate request_size=10 [02:17:54]MH_SAM_APDU [02:17:54]CAPDU: 80 0D 02 02 05 C3 39 74 21 2A [02:17:54]Write to MH i2c: E2 0D 00 C6 2F 80 0D 02 02 05 00 C3 39 74 21 2A 00 00 34 [02:17:54]Write i2c OK [02:17:54]MH_I2C_Read... [02:17:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:17:54]Read from MH i2c: E2 [02:17:54]MH_I2C_Read... [02:17:54]Read from MH i2c: E2 03 00 [02:17:54]MH_I2C_Read... [02:17:54]Read from MH i2c: E2 03 00 C6 2F 00 90 00 69 [02:17:54]RAPDU: 90 00 [02:17:54]wFMCommunicate OK [02:17:54]wFMCommunicate request_size=4 [02:17:54]MH_SAM_APDU [02:17:54]CAPDU: 80 0D 03 02 [02:17:54]Write to MH i2c: E2 08 00 C7 2F 80 0D 03 02 00 00 00 00 71 [02:17:54]Write i2c OK [02:17:54]MH_I2C_Read... [02:17:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:17:54]Read from MH i2c: E2 [02:17:54]MH_I2C_Read... [02:17:54]Read from MH i2c: E2 0B 00 [02:17:54]MH_I2C_Read... [02:17:54]Read from MH i2c: E2 0B 00 C7 2F 00 FE 6A A0 35 02 41 94 24 90 00 AA [02:17:54]RAPDU: FE 6A A0 35 02 41 94 24 90 00 [02:17:54]wFMCommunicate OK [02:17:54]SAM_PROTO_SignData done [02:17:54]FM_MakeSignedData done [02:17:54]CreateOFDProtocolMessage [02:17:54]wFMCommunicate request_size=4 [02:17:54]MH_SAM_APDU [02:17:54]CAPDU: 80 11 00 00 [02:17:54]Write to MH i2c: E2 08 00 C8 2F 80 11 00 00 00 00 00 00 71 [02:17:54]Write i2c OK [02:17:54]MH_I2C_Read... [02:17:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:17:54]Read from MH i2c: E2 [02:17:54]MH_I2C_Read... [02:17:54]Read from MH i2c: E2 17 00 [02:17:54]MH_I2C_Read... [02:17:54]Read from MH i2c: E2 17 00 C8 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CC [02:17:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [02:17:54]wFMCommunicate OK [02:17:54]CreateOFDProtocolMessage done [02:17:54]OFDSenderStorePacket 118345 [02:17:54]StoreOFDPacket docnum=118345 [02:17:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F1 12 07 01 5A BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 53 AA A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 49 CE 01 00 35 04 06 00 17 C3 39 74 21 2A FE 6A A0 35 02 41 94 24 [02:17:54]CheckFolder [02:17:54]dirname=/storage/ofd_packets [02:17:54]CheckFolder done [02:17:54]ProducePacketName [02:17:54]name=ofd_packets/00118345 [02:17:54]NVStorageSaveData ofd_packets/00118345 [02:17:54]File name is /storage/ofd_packets/00118345 [02:17:54]Write 301 bytes [02:17:54]NVStorageSaveData done [02:17:54]OFDSenderStorePacket done [02:17:54]KKMCreateOFDPacket done [02:17:54]NVStorageSaveData kkm_last_timestamp [02:17:54]File name is /storage/kkm_last_timestamp [02:17:54]Write 4 bytes [02:17:54]NVStorageSaveData done [02:17:54]ExternCall_PrintAddStr [02:17:54]wPrintStart [02:17:54]Write to MH i2c: 01 00 00 C9 2F F8 [02:17:54]Write i2c OK [02:17:54]MH_I2C_Read... [02:17:54]Read from MH i2c: 01 [02:17:54]MH_I2C_Read... [02:17:54]Read from MH i2c: 01 07 00 [02:17:54]MH_I2C_Read... [02:17:54]Read from MH i2c: 01 07 00 C9 2F 00 00 00 00 00 FF 0F 0D [02:17:54]RasterBufferAndPrint [02:17:54]line Счет N : (1)949220 [02:17:54]line ИНН: 02508201610067 [02:17:54]line Контрольно-Кассовый Чек [02:17:54]line ПРОДАЖА [02:17:54]line ТРК (МРК, ГНК) : 33 [02:17:54]line Товар: 2710124500 [02:17:54]line Аи-95-К-3 [02:17:54]line 13.480 * 74.20 [02:17:54]line = 1000.22 [02:17:54]line НДС 12% НСП 1% [02:17:54]line > о реализуемом товаре [02:17:54]line ОКРУГЛЕНИЕ: -0.22 [02:17:54]line ИТОГО: 1000.00 [02:17:54]line Внесено: 1000.00 [02:17:54]line СДАЧА: 0.00 [02:17:54]line НСП 1% : 8.85 [02:17:54]line НДС 12% : 106.22 [02:17:54]line Наличными: 1000.00 [02:17:54]line Безнал.: 0.00 [02:17:54]line Место: АЗС № 134 "Партнер Нефть" [02:17:54]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [02:17:54]line СНО: Общий режим [02:17:54]line Чек 14 28.07.2024 02:17 [02:17:54]line Смена: 433 ФФД: 1.0 [02:17:54]line ЗНМ: 0300000044 [02:17:54]line РНМ: 0000000000092660 [02:17:54]line Версия ККМ: 001 [02:17:54]line ФМ: 0000000000874939 [02:17:54]line ФД: 118345 [02:17:54]line ФПД: 26127249973546 [02:17:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T021755&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118345&fm=26127249973546&tin=02508201610067®Number=0000000000092660&sum=100000 [02:17:54]OFD Sender: Processing packet 118345 [packets to send 86, broken 85] [02:17:54]ProducePacketName [02:17:54]name=ofd_packets/00118345 [02:17:54]OFD Sender: To server: pG, [02:17:54]CommunicateWithHost lk.salyk.kg:30040 [02:17:54]ConnectInit lk.salyk.kg [02:17:54]written 0, free lines is 4095 [02:17:54]Connected sock=10 [02:17:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F1 12 07 01 5A BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 53 AA A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 49 CE 01 00 35 04 06 00 17 C3 39 74 21 2A FE 6A A0 35 02 41 94 24 [02:17:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 42 4C 47 00 CD 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 34 39 33 39 10 04 04 00 49 CE 01 00 F4 03 04 00 E4 57 A5 66 B6 04 01 00 00 BD E9 EE FE E0 BB 7B 68 [02:17:55]CommunicateWithHost err = 0 [02:17:55]CheckOFDResponse [02:17:55]1017 (14) - 77093643461234 [02:17:55]1041 (16) - 0000000000874939 [02:17:55]1040 (4) - 118345 [02:17:55]1012 (4) - 27.07.2024 20:26 [02:17:55]1206 (1) - 0 [02:17:55]OFD Sender: Remove packet 118345 [02:17:55]ProducePacketName [02:17:55]name=ofd_packets/00118345 [02:17:55]NVStorageDeleteData [02:17:55]Write to MH i2c: 01 00 00 F3 2F 22 [02:17:55]Write i2c OK [02:17:55]MH_I2C_Read... [02:17:55]Read from MH i2c: 01 [02:17:55]MH_I2C_Read... [02:17:55]Read from MH i2c: 01 07 00 [02:17:55]MH_I2C_Read... [02:17:55]Read from MH i2c: 01 07 00 F3 2F 00 00 00 00 00 CD 0C 02 [02:17:55]RasterBufferAndPrint [02:17:55]line [02:17:55]line [02:17:55]line [02:17:55]line [02:17:55]line [02:17:55]written 0, free lines is 3283 [02:17:55]MH_Cut [02:17:55]Write to MH i2c: D1 01 00 FA 2F 01 FB [02:17:55]Write i2c OK [02:17:55]MH_I2C_Read... [02:17:55]Read from MH i2c: D1 [02:17:55]MH_I2C_Read... [02:17:55]Read from MH i2c: D1 01 00 [02:17:55]MH_I2C_Read... [02:17:55]Read from MH i2c: D1 01 00 FA 2F 00 FA [02:17:55]Write to MH i2c: 01 00 00 FB 2F 2A [02:17:55]Write i2c OK [02:17:55]MH_I2C_Read... [02:17:55]OFD Sender: No OFD packet to send [02:17:55]*** Cut start [02:17:55]*** Partial cut [02:17:55]*** CUTSNS_PIN = 1 [02:17:56]*** CUTSNS_PIN = 0 [02:17:56]*** Brake cut motor [02:17:56]Read from MH i2c: 01 [02:17:56]MH_I2C_Read... [02:17:56]*** Stop cut motor [02:17:56]*** Cut end [02:17:56]Read from MH i2c: 01 07 00 [02:17:56]MH_I2C_Read... [02:17:56]Read from MH i2c: 01 07 00 FB 2F 00 00 00 00 00 FF 0F 3F [02:17:56]process_action close_receipt done [02:17:56]requested_data is exist [02:17:56]produce_requested_data [02:17:56]requested_item fm.sn is exist - process it [02:17:56]wFMCommunicate request_size=4 [02:17:56]MH_SAM_APDU [02:17:56]CAPDU: 80 11 00 00 [02:17:56]Write to MH i2c: E2 08 00 FC 2F 80 11 00 00 00 00 00 00 A5 [02:17:56]Write i2c OK [02:17:56]MH_I2C_Read... [02:17:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:17:56]Read from MH i2c: E2 [02:17:56]MH_I2C_Read... [02:17:56]Read from MH i2c: E2 17 00 [02:17:56]MH_I2C_Read... [02:17:56]Read from MH i2c: E2 17 00 FC 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 00 [02:17:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [02:17:56]wFMCommunicate OK [02:17:56]requested_item fd.num is exist - process it [02:17:56]SAM_PROTO_GetFieldsCounters [02:17:56]wFMCommunicate request_size=4 [02:17:56]MH_SAM_APDU [02:17:56]CAPDU: 80 13 00 00 [02:17:56]Write to MH i2c: E2 08 00 FD 2F 80 13 00 00 00 00 00 00 A8 [02:17:56]Write i2c OK [02:17:56]MH_I2C_Read... [02:17:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:17:56]Read from MH i2c: E2 [02:17:56]MH_I2C_Read... [02:17:56]Read from MH i2c: E2 62 00 [02:17:56]MH_I2C_Read... [02:17:56]Read from MH i2c: E2 62 00 FD 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 49 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [02:17:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 49 CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:17:56]wFMCommunicate OK [02:17:56]SAM_PROTO_GetFieldsCounters done [02:17:56]requested_item shift.num is exist - process it [02:17:56]requested_item shift.opened is exist - process it [02:17:56]req_shift_opened [02:17:56]FM_GetShiftState [02:17:56]SAM_PROTO_GetShiftState [02:17:56]wFMCommunicate request_size=4 [02:17:56]MH_SAM_APDU [02:17:56]CAPDU: 80 13 01 00 [02:17:56]Write to MH i2c: E2 08 00 FE 2F 80 13 01 00 00 00 00 00 AA [02:17:56]Write i2c OK [02:17:56]MH_I2C_Read... [02:17:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:17:56]Read from MH i2c: E2 [02:17:56]MH_I2C_Read... [02:17:56]Read from MH i2c: E2 0E 00 [02:17:56]MH_I2C_Read... [02:17:56]Read from MH i2c: E2 0E 00 FE 2F 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 81 [02:17:56]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [02:17:56]wFMCommunicate OK [02:17:56]SAM_PROTO_GetShiftState done [02:17:56]FM_GetShiftState done [02:17:56]req_shift_opened done [02:17:56]requested_item shift.open_date is exist - process it [02:17:56]req_shift_open_date [02:17:56]req_shift_open_date done [02:17:56]produce_requested_data done [02:17:56]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118345,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [02:17:56]process_action_free close_receipt [02:17:56]json_value_free [02:17:56]json_value_free done [02:17:56]process_json_proto returns [02:17:56]Send response to host [02:17:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118345,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [02:17:56]free response buf [02:17:56]execute_script done [02:17:56]execute_script returns [02:17:56]free content buf [02:17:56]Sock 9.Close socket [02:17:56]Sock 9.Thread stoped [02:18:00]OFD Sender: No OFD packet to send [02:18:05]OFD Sender: No OFD packet to send [02:18:10]OFD Sender: No OFD packet to send [02:18:15]OFD Sender: No OFD packet to send [02:18:20]OFD Sender: No OFD packet to send [02:18:25]OFD Sender: No OFD packet to send [02:18:30]OFD Sender: No OFD packet to send [02:18:35]OFD Sender: No OFD packet to send [02:18:40]OFD Sender: No OFD packet to send [02:18:45]OFD Sender: No OFD packet to send [02:18:50]OFD Sender: No OFD packet to send [02:18:55]OFD Sender: No OFD packet to send [02:19:00]OFD Sender: No OFD packet to send [02:19:05]OFD Sender: No OFD packet to send [02:19:10]OFD Sender: No OFD packet to send [02:19:15]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:14]accept exits with 7 [02:20:14]New connection [02:20:14]New thread 3066953060 created [02:20:14]Thread 3067096420 joined [02:20:14]Waiting for new connection... [02:20:14] Sock 7.Parse request [02:20:14]Sock 7.Check first char [02:20:14]Sock 7.First char is OK [02:20:14]request: POST /json_proto HTTP/1.0 [02:20:14]Method: POST [02:20:14]URL: /json_proto [02:20:14]Method is POST - this is cgi request [02:20:14]url: /json_proto [02:20:14]query_string will be loaded in cgi processing [02:20:14]execute_cgi json_proto POST (null) [02:20:14]execute_cgi path=json_proto method=POST [02:20:14]POST find Content-Length [02:20:14]Host: 172.17.45.7:8080 [02:20:14]Content-Length: 819 [02:20:14]Content-Type: application/json [02:20:14] [02:20:14]POST finish read [02:20:14]Found Content-Length = 819 [02:20:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 85.310, "sum" : 6500.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", "total" : 6500.00, "payments": [ { "type": 1, "sum" : 6500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:20:14]execute_script... [02:20:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 85.310, "sum" : 6500.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", "total" : 6500.00, "payments": [ { "type": 1, "sum" : 6500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:20:14]POST & json_proto [02:20:14]process_json_proto [02:20:14]json parsed OK: [02:20:14]protocol is kg_v1.0 [02:20:14]action value=close_receipt [02:20:14]process_action close_receipt [02:20:14]cmd_close_receipt [02:20:14]MH_GetDate [02:20:14]Write to MH i2c: F0 00 00 FF 2F 1D [02:20:14]Write i2c OK [02:20:14]MH_I2C_Read... [02:20:14]Read from MH i2c: F0 [02:20:14]MH_I2C_Read... [02:20:14]Read from MH i2c: F0 09 00 [02:20:14]MH_I2C_Read... [02:20:14]Read from MH i2c: F0 09 00 FF 2F 00 E0 AA A5 66 90 0F 3E 66 FE [02:20:14]GetLastDocTimeStamp 1722133075 [02:20:14]current date 1722133216 [02:20:14]FM_GetShiftState [02:20:14]SAM_PROTO_GetShiftState [02:20:14]wFMCommunicate request_size=4 [02:20:14]MH_SAM_APDU [02:20:14]CAPDU: 80 13 01 00 [02:20:14]Write to MH i2c: E2 08 00 00 30 80 13 01 00 00 00 00 00 AD [02:20:14]Write i2c OK [02:20:14]MH_I2C_Read... [02:20:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:20:14]Read from MH i2c: E2 [02:20:14]MH_I2C_Read... [02:20:14]Read from MH i2c: E2 0E 00 [02:20:14]MH_I2C_Read... [02:20:14]Read from MH i2c: E2 0E 00 00 30 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 84 [02:20:14]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [02:20:14]wFMCommunicate OK [02:20:14]SAM_PROTO_GetShiftState done [02:20:14]FM_GetShiftState done [02:20:14]opened in 1722125364 [02:20:14]opened+sec_in_day 1722211764 [02:20:14]quantity*price = 650062 [02:20:14]sum+1 = 650063 [02:20:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 6500.00 НСП 1% : 57.53 НДС 12% : 690.33 Наличными: 0.00 Безнал.: 6500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 15 28.07.2024 02:20 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118346 ФПД: 182866887155953 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T022016&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118346&fm=182866887155953&tin=02508201610067®Number=0000000000092660&sum=650000 [02:20:15]StoreToDocumentArchive [02:20:15]shift 433 fd 118346 [02:20:15]save to /storage/0433/doc_00118346 [02:20:15]save last doc name /storage/0433/doc_00118346 to /storage/kkm_last_doc_name [02:20:15]save OK [02:20:15]Clear old archive folders... [02:20:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:20:15]tlvbuf is 01E38080 [02:20:15]SAM_PROTO_ClearQueue [02:20:15]wFMCommunicate request_size=4 [02:20:15]MH_SAM_APDU [02:20:15]CAPDU: 80 09 00 00 [02:20:15]Write to MH i2c: E2 08 00 0D 30 80 09 00 00 00 00 00 00 AF [02:20:15]Write i2c OK [02:20:15]MH_I2C_Read... [02:20:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:20:15]Read from MH i2c: E2 [02:20:15]MH_I2C_Read... [02:20:15]Read from MH i2c: E2 03 00 [02:20:15]MH_I2C_Read... [02:20:15]Read from MH i2c: E2 03 00 0D 30 00 90 00 B1 [02:20:15]RAPDU: 90 00 [02:20:15]wFMCommunicate OK [02:20:15]SAM_PROTO_ClearQueue done [02:20:15]KKMCreateOFDPacket [02:20:15]OFDProtocolAddRootSTLVToBuf [02:20:15]FM_MakeSignedData [02:20:15]FM_MakeSignedData [02:20:15]SAM_PROTO_SignData [02:20:15]wFMCommunicate request_size=4 [02:20:15]MH_SAM_APDU [02:20:15]CAPDU: 80 0D 01 02 [02:20:15]Write to MH i2c: E2 08 00 0E 30 80 0D 01 02 00 00 00 00 B7 [02:20:15]Write i2c OK [02:20:15]MH_I2C_Read... [02:20:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:20:15]Read from MH i2c: E2 [02:20:15]MH_I2C_Read... [02:20:15]Read from MH i2c: E2 03 00 [02:20:15]MH_I2C_Read... [02:20:15]Read from MH i2c: E2 03 00 0E 30 00 90 00 B2 [02:20:15]RAPDU: 90 00 [02:20:15]wFMCommunicate OK [02:20:15]wFMCommunicate request_size=255 [02:20:15]MH_SAM_APDU [02:20: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 4D 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4E EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 EB 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 E0 AA A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4A CE 01 00 35 04 06 00 A6 51 03 D9 [02:20:15]Write to MH i2c: E2 02 01 0F 30 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 4D 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4E EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 EB 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 E0 AA A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4A CE 01 00 35 04 06 00 A6 51 03 D9 00 00 5E [02:20:15]Write i2c OK [02:20:15]MH_I2C_Read... [02:20:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:20:15]Read from MH i2c: E2 [02:20:15]MH_I2C_Read... [02:20:15]Read from MH i2c: E2 03 00 [02:20:15]MH_I2C_Read... [02:20:15]Read from MH i2c: E2 03 00 0F 30 00 90 00 B3 [02:20:15]RAPDU: 90 00 [02:20:15]wFMCommunicate OK [02:20:15]wFMCommunicate request_size=7 [02:20:15]MH_SAM_APDU [02:20:15]CAPDU: 80 0D 02 02 02 A0 F1 [02:20:15]Write to MH i2c: E2 0A 00 10 30 80 0D 02 02 02 00 A0 F1 00 00 4F [02:20:15]Write i2c OK [02:20:15]MH_I2C_Read... [02:20:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:20:15]Read from MH i2c: E2 [02:20:15]MH_I2C_Read... [02:20:15]Read from MH i2c: E2 03 00 [02:20:15]MH_I2C_Read... [02:20:15]Read from MH i2c: E2 03 00 10 30 00 90 00 B4 [02:20:15]RAPDU: 90 00 [02:20:15]wFMCommunicate OK [02:20:15]wFMCommunicate request_size=4 [02:20:15]MH_SAM_APDU [02:20:15]CAPDU: 80 0D 03 02 [02:20:15]Write to MH i2c: E2 08 00 11 30 80 0D 03 02 00 00 00 00 BC [02:20:15]Write i2c OK [02:20:15]MH_I2C_Read... [02:20:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:20:15]Read from MH i2c: E2 [02:20:15]MH_I2C_Read... [02:20:15]Read from MH i2c: E2 0B 00 [02:20:15]MH_I2C_Read... [02:20:15]Read from MH i2c: E2 0B 00 11 30 00 F8 E2 22 94 CC 3C C3 3F 90 00 57 [02:20:15]RAPDU: F8 E2 22 94 CC 3C C3 3F 90 00 [02:20:15]wFMCommunicate OK [02:20:15]SAM_PROTO_SignData done [02:20:15]FM_MakeSignedData done [02:20:15]CreateOFDProtocolMessage [02:20:15]wFMCommunicate request_size=4 [02:20:15]MH_SAM_APDU [02:20:15]CAPDU: 80 11 00 00 [02:20:15]Write to MH i2c: E2 08 00 12 30 80 11 00 00 00 00 00 00 BC [02:20:15]Write i2c OK [02:20:15]MH_I2C_Read... [02:20:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:20:15]Read from MH i2c: E2 [02:20:15]MH_I2C_Read... [02:20:15]Read from MH i2c: E2 17 00 [02:20:15]MH_I2C_Read... [02:20:15]Read from MH i2c: E2 17 00 12 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 17 [02:20:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [02:20:15]wFMCommunicate OK [02:20:15]CreateOFDProtocolMessage done [02:20:15]OFDSenderStorePacket 118346 [02:20:15]StoreOFDPacket docnum=118346 [02:20:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F2 77 04 01 24 7B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 4D 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4E EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 EB 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 E0 AA A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4A CE 01 00 35 04 06 00 A6 51 03 D9 A0 F1 F8 E2 22 94 CC 3C C3 3F [02:20:15]CheckFolder [02:20:15]dirname=/storage/ofd_packets [02:20:15]CheckFolder done [02:20:15]ProducePacketName [02:20:15]name=ofd_packets/00118346 [02:20:15]NVStorageSaveData ofd_packets/00118346 [02:20:15]File name is /storage/ofd_packets/00118346 [02:20:15]Write 298 bytes [02:20:15]NVStorageSaveData done [02:20:15]OFDSenderStorePacket done [02:20:15]KKMCreateOFDPacket done [02:20:15]NVStorageSaveData kkm_last_timestamp [02:20:15]File name is /storage/kkm_last_timestamp [02:20:15]Write 4 bytes [02:20:15]NVStorageSaveData done [02:20:15]ExternCall_PrintAddStr [02:20:15]wPrintStart [02:20:15]Write to MH i2c: 01 00 00 13 30 43 [02:20:15]Write i2c OK [02:20:15]MH_I2C_Read... [02:20:15]Read from MH i2c: 01 [02:20:15]MH_I2C_Read... [02:20:15]Read from MH i2c: 01 07 00 [02:20:15]MH_I2C_Read... [02:20:15]Read from MH i2c: 01 07 00 13 30 00 00 00 00 00 FF 0F 58 [02:20:15]RasterBufferAndPrint [02:20:15]line Счет N : (1)949219 [02:20:15]line ИНН: 02508201610067 [02:20:15]line Контрольно-Кассовый Чек [02:20:15]line ПРОДАЖА [02:20:15]line ТРК (МРК, ГНК) : 21 [02:20:15]line Товар: 2710194800 [02:20:15]line ДТ-К-5 [02:20:15]line 85.310 * 76.20 [02:20:15]line = 6500.62 [02:20:15]line НДС 12% НСП 1% [02:20:15]line > о реализуемом товаре [02:20:15]line ОКРУГЛЕНИЕ: -0.62 [02:20:15]line ИТОГО: 6500.00 [02:20:15]line НСП 1% : 57.53 [02:20:15]line НДС 12% : 690.33 [02:20:15]line Наличными: 0.00 [02:20:15]line Безнал.: 6500.00 [02:20:15]line Место: АЗС № 134 "Партнер Нефть" [02:20:15]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [02:20:15]line СНО: Общий режим [02:20:15]line Чек 15 28.07.2024 02:20 [02:20:15]line Смена: 433 ФФД: 1.0 [02:20:15]line ЗНМ: 0300000044 [02:20:15]line РНМ: 0000000000092660 [02:20:15]line Версия ККМ: 001 [02:20:15]line Платежная система: O! деньги [02:20:15]line ФМ: 0000000000874939 [02:20:15]line ФД: 118346 [02:20:15]line ФПД: 182866887155953 [02:20:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T022016&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118346&fm=182866887155953&tin=02508201610067®Number=0000000000092660&sum=650000 [02:20:16]OFD Sender: Processing packet 118346 [packets to send 86, broken 85] [02:20:16]ProducePacketName [02:20:16]name=ofd_packets/00118346 [02:20:16]OFD Sender: To server: pG, [02:20:16]CommunicateWithHost lk.salyk.kg:30040 [02:20:16]ConnectInit lk.salyk.kg [02:20:16]written 0, free lines is 4095 [02:20:16]Connected sock=10 [02:20:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F2 77 04 01 24 7B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 4D 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4E EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 EB 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 E0 AA A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4A CE 01 00 35 04 06 00 A6 51 03 D9 A0 F1 F8 E2 22 94 CC 3C C3 3F [02:20:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 10 FC 47 00 C0 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4A CE 01 00 F4 03 04 00 72 58 A5 66 B6 04 01 00 00 43 5C BA 4A 38 67 7A AC [02:20:16]CommunicateWithHost err = 0 [02:20:16]CheckOFDResponse [02:20:16]1017 (14) - 77093643461234 [02:20:16]1041 (16) - 0000000000874939 [02:20:16]1040 (4) - 118346 [02:20:16]1012 (4) - 27.07.2024 20:28 [02:20:16]1206 (1) - 0 [02:20:16]OFD Sender: Remove packet 118346 [02:20:16]ProducePacketName [02:20:16]name=ofd_packets/00118346 [02:20:16]NVStorageDeleteData [02:20:16]Write to MH i2c: 01 00 00 3D 30 6D [02:20:16]Write i2c OK [02:20:16]MH_I2C_Read... [02:20:16]Read from MH i2c: 01 [02:20:16]MH_I2C_Read... [02:20:16]Read from MH i2c: 01 07 00 [02:20:16]MH_I2C_Read... [02:20:16]Read from MH i2c: 01 07 00 3D 30 00 00 00 00 00 DC 0C 5C [02:20:16]RasterBufferAndPrint [02:20:16]line [02:20:16]line [02:20:16]line [02:20:16]line [02:20:16]line [02:20:16]written 0, free lines is 3299 [02:20:16]MH_Cut [02:20:16]Write to MH i2c: D1 01 00 44 30 01 46 [02:20:16]Write i2c OK [02:20:16]MH_I2C_Read... [02:20:16]Read from MH i2c: D1 [02:20:16]MH_I2C_Read... [02:20:16]Read from MH i2c: D1 01 00 [02:20:16]MH_I2C_Read... [02:20:16]Read from MH i2c: D1 01 00 44 30 00 45 [02:20:16]Write to MH i2c: 01 00 00 45 30 75 [02:20:16]Write i2c OK [02:20:16]MH_I2C_Read... [02:20:16]OFD Sender: No OFD packet to send [02:20:17]*** Cut start [02:20:17]*** Partial cut [02:20:17]*** CUTSNS_PIN = 1 [02:20:17]*** CUTSNS_PIN = 0 [02:20:17]*** Brake cut motor [02:20:17]Read from MH i2c: 01 [02:20:17]MH_I2C_Read... [02:20:17]*** Stop cut motor [02:20:17]*** Cut end [02:20:17]Read from MH i2c: 01 07 00 [02:20:17]MH_I2C_Read... [02:20:17]Read from MH i2c: 01 07 00 45 30 00 00 00 00 00 FF 0F 8A [02:20:17]process_action close_receipt done [02:20:17]requested_data is exist [02:20:17]produce_requested_data [02:20:17]requested_item fm.sn is exist - process it [02:20:17]wFMCommunicate request_size=4 [02:20:17]MH_SAM_APDU [02:20:17]CAPDU: 80 11 00 00 [02:20:17]Write to MH i2c: E2 08 00 46 30 80 11 00 00 00 00 00 00 F0 [02:20:17]Write i2c OK [02:20:17]MH_I2C_Read... [02:20:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:20:17]Read from MH i2c: E2 [02:20:17]MH_I2C_Read... [02:20:17]Read from MH i2c: E2 17 00 [02:20:17]MH_I2C_Read... [02:20:17]Read from MH i2c: E2 17 00 46 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4B [02:20:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [02:20:17]wFMCommunicate OK [02:20:17]requested_item fd.num is exist - process it [02:20:17]SAM_PROTO_GetFieldsCounters [02:20:17]wFMCommunicate request_size=4 [02:20:17]MH_SAM_APDU [02:20:17]CAPDU: 80 13 00 00 [02:20:17]Write to MH i2c: E2 08 00 47 30 80 13 00 00 00 00 00 00 F3 [02:20:17]Write i2c OK [02:20:17]MH_I2C_Read... [02:20:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:20:18]Read from MH i2c: E2 [02:20:18]MH_I2C_Read... [02:20:18]Read from MH i2c: E2 62 00 [02:20:18]MH_I2C_Read... [02:20:18]Read from MH i2c: E2 62 00 47 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4A CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [02:20:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4A CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:20:18]wFMCommunicate OK [02:20:18]SAM_PROTO_GetFieldsCounters done [02:20:18]requested_item shift.num is exist - process it [02:20:18]requested_item shift.opened is exist - process it [02:20:18]req_shift_opened [02:20:18]FM_GetShiftState [02:20:18]SAM_PROTO_GetShiftState [02:20:18]wFMCommunicate request_size=4 [02:20:18]MH_SAM_APDU [02:20:18]CAPDU: 80 13 01 00 [02:20:18]Write to MH i2c: E2 08 00 48 30 80 13 01 00 00 00 00 00 F5 [02:20:18]Write i2c OK [02:20:18]MH_I2C_Read... [02:20:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:20:18]Read from MH i2c: E2 [02:20:18]MH_I2C_Read... [02:20:18]Read from MH i2c: E2 0E 00 [02:20:18]MH_I2C_Read... [02:20:18]Read from MH i2c: E2 0E 00 48 30 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 CC [02:20:18]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [02:20:18]wFMCommunicate OK [02:20:18]SAM_PROTO_GetShiftState done [02:20:18]FM_GetShiftState done [02:20:18]req_shift_opened done [02:20:18]requested_item shift.open_date is exist - process it [02:20:18]req_shift_open_date [02:20:18]req_shift_open_date done [02:20:18]produce_requested_data done [02:20:18]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118346,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [02:20:18]process_action_free close_receipt [02:20:18]json_value_free [02:20:18]json_value_free done [02:20:18]process_json_proto returns [02:20:18]Send response to host [02:20:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118346,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [02:20:18]free response buf [02:20:18]execute_script done [02:20:18]execute_script returns [02:20:18]free content buf [02:20:18]Sock 7.Close socket [02:20:18]Sock 7.Thread stoped [02:20:21]OFD Sender: No OFD packet to send [02:20:26]OFD Sender: No OFD packet to send [02:20:31]OFD Sender: No OFD packet to send [02:20:36]OFD Sender: No OFD packet to send [02:20:41]OFD Sender: No OFD packet to send [02:20:46]OFD Sender: No OFD packet to send [02:20:51]OFD Sender: No OFD packet to send [02:20:56]OFD Sender: No OFD packet to send [02:21:01]OFD Sender: No OFD packet to send [02:21:06]OFD Sender: No OFD packet to send [02:21:11]OFD Sender: No OFD packet to send [02:21:16]OFD Sender: No OFD packet to send [02:21:21]OFD Sender: No OFD packet to send [02:21:27]OFD Sender: No OFD packet to send [02:21:32]OFD Sender: No OFD packet to send [02:21:37]OFD Sender: No OFD packet to send [02:21:42]OFD Sender: No OFD packet to send [02:21:47]OFD Sender: No OFD packet to send [02:21:52]OFD Sender: No OFD packet to send [02:21:57]OFD Sender: No OFD packet to send [02:22:02]OFD Sender: No OFD packet to send [02:22:07]OFD Sender: No OFD packet to send [02:22:12]OFD Sender: No OFD packet to send [02:22:17]OFD Sender: No OFD packet to send [02:22:22]OFD Sender: No OFD packet to send [02:22:27]OFD Sender: No OFD packet to send [02:22:32]OFD Sender: No OFD packet to send [02:22:37]OFD Sender: No OFD packet to send [02:22:42]OFD Sender: No OFD packet to send [02:22:47]OFD Sender: No OFD packet to send [02:22:52]OFD Sender: No OFD packet to send [02:22:57]OFD Sender: No OFD packet to send [02:23:02]OFD Sender: No OFD packet to send [02:23:07]OFD Sender: No OFD packet to send [02:23:12]OFD Sender: No OFD packet to send [02:23:17]OFD Sender: No OFD packet to send [02:23:22]OFD Sender: No OFD packet to send [02:23:27]OFD Sender: No OFD packet to send [02:23:32]OFD Sender: No OFD packet to send [02:23:37]OFD Sender: No OFD packet to send [02:23:42]OFD Sender: No OFD packet to send [02:23:47]OFD Sender: No OFD packet to send [02:23:48]accept exits with 9 [02:23:48]New connection [02:23:48]New thread 3067096420 created [02:23:48]Thread 3066953060 joined [02:23:48]Waiting for new connection... [02:23:48] Sock 9.Parse request [02:23:48]Sock 9.Check first char [02:23:48]Sock 9.First char is OK [02:23:48]request: POST /json_proto HTTP/1.0 [02:23:48]Method: POST [02:23:48]URL: /json_proto [02:23:48]Method is POST - this is cgi request [02:23:48]url: /json_proto [02:23:48]query_string will be loaded in cgi processing [02:23:48]execute_cgi json_proto POST (null) [02:23:48]execute_cgi path=json_proto method=POST [02:23:48]POST find Content-Length [02:23:48]Host: 172.17.45.7:8080 [02:23:48]Content-Length: 819 [02:23:48]Content-Type: application/json [02:23:48] [02:23:48]POST finish read [02:23:48]Found Content-Length = 819 [02:23:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:23:48]execute_script... [02:23: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)949221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:23:48]POST & json_proto [02:23:48]process_json_proto [02:23:48]json parsed OK: [02:23:48]protocol is kg_v1.0 [02:23:48]action value=close_receipt [02:23:48]process_action close_receipt [02:23:48]cmd_close_receipt [02:23:48]MH_GetDate [02:23:48]Write to MH i2c: F0 00 00 49 30 68 [02:23:48]Write i2c OK [02:23:48]MH_I2C_Read... [02:23:48]Read from MH i2c: F0 [02:23:48]MH_I2C_Read... [02:23:48]Read from MH i2c: F0 09 00 [02:23:48]MH_I2C_Read... [02:23:48]Read from MH i2c: F0 09 00 49 30 00 B7 AB A5 66 90 0F 3E 66 21 [02:23:48]GetLastDocTimeStamp 1722133216 [02:23:48]current date 1722133431 [02:23:48]FM_GetShiftState [02:23:48]SAM_PROTO_GetShiftState [02:23:48]wFMCommunicate request_size=4 [02:23:48]MH_SAM_APDU [02:23:48]CAPDU: 80 13 01 00 [02:23:48]Write to MH i2c: E2 08 00 4A 30 80 13 01 00 00 00 00 00 F7 [02:23:48]Write i2c OK [02:23:48]MH_I2C_Read... [02:23:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:23:48]Read from MH i2c: E2 [02:23:48]MH_I2C_Read... [02:23:48]Read from MH i2c: E2 0E 00 [02:23:48]MH_I2C_Read... [02:23:48]Read from MH i2c: E2 0E 00 4A 30 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 CE [02:23:48]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [02:23:48]wFMCommunicate OK [02:23:48]SAM_PROTO_GetShiftState done [02:23:48]FM_GetShiftState done [02:23:48]opened in 1722125364 [02:23:48]opened+sec_in_day 1722211764 [02:23:48]quantity*price = 300075 [02:23:48]sum+1 = 300077 [02:23:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 16 28.07.2024 02:23 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118347 ФПД: 24570761244463 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T022351&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118347&fm=24570761244463&tin=02508201610067®Number=0000000000092660&sum=300000 [02:23:50]StoreToDocumentArchive [02:23:50]shift 433 fd 118347 [02:23:50]save to /storage/0433/doc_00118347 [02:23:50]save last doc name /storage/0433/doc_00118347 to /storage/kkm_last_doc_name [02:23:50]save OK [02:23:50]Clear old archive folders... [02:23:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:23:50]tlvbuf is 01E12400 [02:23:50]SAM_PROTO_ClearQueue [02:23:50]wFMCommunicate request_size=4 [02:23:50]MH_SAM_APDU [02:23:50]CAPDU: 80 09 00 00 [02:23:50]Write to MH i2c: E2 08 00 57 30 80 09 00 00 00 00 00 00 F9 [02:23:50]Write i2c OK [02:23:50]MH_I2C_Read... [02:23:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:23:50]Read from MH i2c: E2 [02:23:50]MH_I2C_Read... [02:23:50]Read from MH i2c: E2 03 00 [02:23:50]MH_I2C_Read... [02:23:50]Read from MH i2c: E2 03 00 57 30 00 90 00 FB [02:23:50]RAPDU: 90 00 [02:23:50]wFMCommunicate OK [02:23:50]SAM_PROTO_ClearQueue done [02:23:50]KKMCreateOFDPacket [02:23:50]OFDProtocolAddRootSTLVToBuf [02:23:50]FM_MakeSignedData [02:23:50]FM_MakeSignedData [02:23:50]SAM_PROTO_SignData [02:23:50]wFMCommunicate request_size=4 [02:23:50]MH_SAM_APDU [02:23:50]CAPDU: 80 0D 01 02 [02:23:50]Write to MH i2c: E2 08 00 58 30 80 0D 01 02 00 00 00 00 01 [02:23:50]Write i2c OK [02:23:50]MH_I2C_Read... [02:23:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:23:50]Read from MH i2c: E2 [02:23:50]MH_I2C_Read... [02:23:50]Read from MH i2c: E2 03 00 [02:23:50]MH_I2C_Read... [02:23:50]Read from MH i2c: E2 03 00 58 30 00 90 00 FC [02:23:50]RAPDU: 90 00 [02:23:50]wFMCommunicate OK [02:23:50]wFMCommunicate request_size=255 [02:23:50]MH_SAM_APDU [02:23:50]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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 B7 AB A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4B CE 01 00 35 04 06 00 16 58 D3 7E [02:23:50]Write to MH i2c: E2 02 01 59 30 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 B7 AB A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4B CE 01 00 35 04 06 00 16 58 D3 7E 00 00 D0 [02:23:50]Write i2c OK [02:23:50]MH_I2C_Read... [02:23:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:23:50]Read from MH i2c: E2 [02:23:50]MH_I2C_Read... [02:23:50]Read from MH i2c: E2 03 00 [02:23:50]MH_I2C_Read... [02:23:50]Read from MH i2c: E2 03 00 59 30 00 90 00 FD [02:23:50]RAPDU: 90 00 [02:23:50]wFMCommunicate OK [02:23:50]wFMCommunicate request_size=7 [02:23:50]MH_SAM_APDU [02:23:50]CAPDU: 80 0D 02 02 02 EF 2F [02:23:50]Write to MH i2c: E2 0A 00 5A 30 80 0D 02 02 02 00 EF 2F 00 00 26 [02:23:50]Write i2c OK [02:23:50]MH_I2C_Read... [02:23:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:23:50]Read from MH i2c: E2 [02:23:50]MH_I2C_Read... [02:23:50]Read from MH i2c: E2 03 00 [02:23:50]MH_I2C_Read... [02:23:50]Read from MH i2c: E2 03 00 5A 30 00 90 00 FE [02:23:50]RAPDU: 90 00 [02:23:50]wFMCommunicate OK [02:23:50]wFMCommunicate request_size=4 [02:23:50]MH_SAM_APDU [02:23:50]CAPDU: 80 0D 03 02 [02:23:50]Write to MH i2c: E2 08 00 5B 30 80 0D 03 02 00 00 00 00 06 [02:23:50]Write i2c OK [02:23:50]MH_I2C_Read... [02:23:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:23:50]Read from MH i2c: E2 [02:23:50]MH_I2C_Read... [02:23:50]Read from MH i2c: E2 0B 00 [02:23:50]MH_I2C_Read... [02:23:50]Read from MH i2c: E2 0B 00 5B 30 00 F9 28 5D FE FA 6B F6 84 90 00 62 [02:23:50]RAPDU: F9 28 5D FE FA 6B F6 84 90 00 [02:23:50]wFMCommunicate OK [02:23:50]SAM_PROTO_SignData done [02:23:50]FM_MakeSignedData done [02:23:50]CreateOFDProtocolMessage [02:23:50]wFMCommunicate request_size=4 [02:23:50]MH_SAM_APDU [02:23:50]CAPDU: 80 11 00 00 [02:23:50]Write to MH i2c: E2 08 00 5C 30 80 11 00 00 00 00 00 00 06 [02:23:50]Write i2c OK [02:23:50]MH_I2C_Read... [02:23:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:23:50]Read from MH i2c: E2 [02:23:50]MH_I2C_Read... [02:23:50]Read from MH i2c: E2 17 00 [02:23:50]MH_I2C_Read... [02:23:50]Read from MH i2c: E2 17 00 5C 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 61 [02:23:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [02:23:50]wFMCommunicate OK [02:23:50]CreateOFDProtocolMessage done [02:23:50]OFDSenderStorePacket 118347 [00:00:09]/dev/ttyS4 opened [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 38 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 DD [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:09]*** Serial: 3139303353513838 5400000000572538 (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 6790223+1715343248=1722133471 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x20ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:09]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 38 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 DE [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 E0 AB A5 66 90 0F 3E 66 D8 [02:24:32]Current date/time: 28.07.2024 02:24 [02:24:32]FM_Init [02:24:32]wFMConnect [02:24:32]MH_SAM_On [02:24:32]Write to MH i2c: E0 00 00 08 00 E7 [02:24:32]Write i2c OK [02:24:32]MH_I2C_Read... [02:24:32]*** iso7816_init finished! [02:24:32]*** atr: [02:24:32]*** 0F 3B D5 18 FF 81 91 FE [02:24:32]*** 1F C3 80 73 C8 21 10 0A [02:24:32]*** 00 00 00 00 00 00 00 00 [02:24:32]*** 00 00 00 00 00 00 00 00 [02:24:32]*** 00 00 00 00 00 00 00 00 [02:24:32]*** 00 00 00 00 00 00 00 00 [02:24:32]*** 00 00 00 00 00 00 00 00 [02:24:32]*** 00 00 00 00 00 00 00 00 [02:24:32]Read from MH i2c: E0 [02:24:32]MH_I2C_Read... [02:24:32]Read from MH i2c: E0 10 00 [02:24:32]MH_I2C_Read... [02:24:32]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [02:24:32]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [02:24:32]wFMCommunicate request_size=10 [02:24:32]MH_SAM_APDU [02:24:32]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [02:24:32]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [02:24:32]Write i2c OK [02:24:32]MH_I2C_Read... [02:24:32]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [02:24:32]Read from MH i2c: E2 [02:24:32]MH_I2C_Read... [02:24:32]Read from MH i2c: E2 03 00 [02:24:32]MH_I2C_Read... [02:24:32]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [02:24:32]RAPDU: 90 00 [02:24:32]wFMCommunicate OK [02:24:32]wFMCommunicate request_size=4 [02:24:32]MH_SAM_APDU [02:24:32]CAPDU: 80 11 00 00 [02:24:32]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [02:24:32]Write i2c OK [02:24:32]MH_I2C_Read... [02:24:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:24:32]Read from MH i2c: E2 [02:24:32]MH_I2C_Read... [02:24:32]Read from MH i2c: E2 17 00 [02:24:32]MH_I2C_Read... [02:24:32]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DF [02:24:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [02:24:32]wFMCommunicate OK [02:24:32]Detected FM SN is 0000000000874939 [02:24:32]Stored FM SN is 0000000000874939 [02:24:32]wFMCommunicate request_size=9 [02:24:32]MH_SAM_APDU [02:24:32]CAPDU: 80 16 00 00 04 38 32 00 00 [02:24:32]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 38 32 00 00 00 00 FC [02:24:32]Write i2c OK [02:24:32]MH_I2C_Read... [02:24:32]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [02:24:32]Read from MH i2c: E2 [02:24:32]MH_I2C_Read... [02:24:32]Read from MH i2c: E2 03 00 [02:24:32]MH_I2C_Read... [02:24:32]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [02:24:32]RAPDU: 90 00 [02:24:32]wFMCommunicate OK [02:24:32]FM PIN OK [02:24:32]wFMCommunicate request_size=8 [02:24:32]MH_SAM_APDU [02:24:32]CAPDU: 80 14 04 00 03 02 00 01 [02:24:32]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [02:24:32]Write i2c OK [02:24:32]MH_I2C_Read... [02:24:32]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [02:24:32]Read from MH i2c: E2 [02:24:32]MH_I2C_Read... [02:24:32]Read from MH i2c: E2 03 00 [02:24:32]MH_I2C_Read... [02:24:32]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [02:24:32]RAPDU: 90 00 [02:24:32]wFMCommunicate OK [02:24:32]wFMCommunicate request_size=13 [02:24:32]MH_SAM_APDU [02:24:32]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [02:24:32]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [02:24:32]Write i2c OK [02:24:32]MH_I2C_Read... [02:24:32]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [02:24:32]Read from MH i2c: E2 [02:24:32]MH_I2C_Read... [02:24:32]Read from MH i2c: E2 03 00 [02:24:32]MH_I2C_Read... [02:24:32]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [02:24:32]RAPDU: 90 00 [02:24:32]wFMCommunicate OK [02:24:32]wFMCommunicate request_size=4 [02:24:32]MH_SAM_APDU [02:24:32]CAPDU: 80 11 00 00 [02:24:32]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [02:24:32]Write i2c OK [02:24:32]MH_I2C_Read... [02:24:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:24:32]Read from MH i2c: E2 [02:24:32]MH_I2C_Read... [02:24:32]Read from MH i2c: E2 17 00 [02:24:32]MH_I2C_Read... [02:24:32]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E3 [02:24:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [02:24:32]wFMCommunicate OK [02:24:32]DocumentArchiveInit [02:24:32]Start Httpd... [02:24:32]Httpd thread 3067354468 created [02:24:32]Write to MH i2c: 01 00 00 0F 00 0F [02:24:32]Write i2c OK [02:24:32]MH_I2C_Read... [02:24:32]Read from MH i2c: 01 [02:24:32]MH_I2C_Read... [02:24:32]Read from MH i2c: 01 07 00 [02:24:32]MH_I2C_Read... [02:24:32]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [02:24:32]MH Int Process started [02:24:32]Allocated Socket 8 [02:24:32]Bind OK [02:24:32]Listen OK [02:24:32]httpd running on port 8080 [02:24:32]Waiting for new connection... [02:24:32]OFD Sender: No OFD packet to send [02:24:37]OFD Sender: No OFD packet to send [02:24:42]OFD Sender: No OFD packet to send [02:24:43]accept exits with 9 [02:24:43]New connection [02:24:43]New thread 3067067748 created [02:24:43]Waiting for new connection... [02:24:43] Sock 9.Parse request [02:24:43]Sock 9.Check first char [02:24:43]Sock 9.First char is OK [02:24:43]request: POST /json_proto HTTP/1.0 [02:24:43]Method: POST [02:24:43]URL: /json_proto [02:24:43]Method is POST - this is cgi request [02:24:43]url: /json_proto [02:24:43]query_string will be loaded in cgi processing [02:24:43]execute_cgi json_proto POST (null) [02:24:43]execute_cgi path=json_proto method=POST [02:24:43]POST find Content-Length [02:24:43]Host: 172.17.45.7:8080 [02:24:43]Content-Length: 215 [02:24:43]Content-Type: application/json [02:24:43] [02:24:43]POST finish read [02:24:43]Found Content-Length = 215 [02:24:43]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" ] } } [02:24:43]execute_script... [02:24:43]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" ] } } [02:24:43]POST & json_proto [02:24:43]process_json_proto [02:24:43]json parsed OK: [02:24:43]protocol is kg_v1.0 [02:24:43]action value=get_value [02:24:43]process_action get_value [02:24:43]cmd_get_value [02:24:43]process_action get_value done [02:24:43]requested_data is exist [02:24:43]produce_requested_data [02:24:43]requested_item kkm.sn is exist - process it [02:24:43]requested_item kkm.ver is exist - process it [02:24:43]requested_item fm.sn is exist - process it [02:24:43]wFMCommunicate request_size=4 [02:24:43]MH_SAM_APDU [02:24:43]CAPDU: 80 11 00 00 [02:24:43]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [02:24:43]Write i2c OK [02:24:43]MH_I2C_Read... [02:24:43]Read from MH i2c: E2 [02:24:43]MH_I2C_Read... [02:24:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:24:43]Read from MH i2c: E2 17 00 [02:24:43]MH_I2C_Read... [02:24:43]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E5 [02:24:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [02:24:43]wFMCommunicate OK [02:24:43]requested_item fd.num is exist - process it [02:24:43]SAM_PROTO_GetFieldsCounters [02:24:43]wFMCommunicate request_size=4 [02:24:43]MH_SAM_APDU [02:24:43]CAPDU: 80 13 00 00 [02:24:43]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [02:24:43]Write i2c OK [02:24:43]MH_I2C_Read... [02:24:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:24:43]Read from MH i2c: E2 [02:24:43]MH_I2C_Read... [02:24:43]Read from MH i2c: E2 62 00 [02:24:43]MH_I2C_Read... [02:24:43]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4B CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [02:24:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4B CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:24:43]wFMCommunicate OK [02:24:43]SAM_PROTO_GetFieldsCounters done [02:24:43]requested_item shift.num is exist - process it [02:24:43]requested_item shift.opened is exist - process it [02:24:43]req_shift_opened [02:24:43]FM_GetShiftState [02:24:43]SAM_PROTO_GetShiftState [02:24:43]wFMCommunicate request_size=4 [02:24:43]MH_SAM_APDU [02:24:43]CAPDU: 80 13 01 00 [02:24:43]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [02:24:43]Write i2c OK [02:24:43]MH_I2C_Read... [02:24:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:24:43]Read from MH i2c: E2 [02:24:43]MH_I2C_Read... [02:24:43]Read from MH i2c: E2 0E 00 [02:24:43]MH_I2C_Read... [02:24:43]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 66 [02:24:43]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [02:24:43]wFMCommunicate OK [02:24:43]SAM_PROTO_GetShiftState done [02:24:43]FM_GetShiftState done [02:24:43]req_shift_opened done [02:24:43]requested_item shift.open_date is exist - process it [02:24:43]req_shift_open_date [02:24:43]req_shift_open_date done [02:24:43]produce_requested_data done [02:24:43]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118347,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [02:24:43]process_action_free get_value [02:24:43]json_value_free [02:24:43]json_value_free done [02:24:43]process_json_proto returns [02:24:43]Send response to host [02:24:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118347,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [02:24:43]free response buf [02:24:43]execute_script done [02:24:43]execute_script returns [02:24:43]free content buf [02:24:43]Sock 9.Close socket [02:24:43]Sock 9.Thread stoped [02:24:43]accept exits with 7 [02:24:43]New connection [02:24:43]New thread 3066924388 created [02:24:43]Thread 3067067748 joined [02:24:43]Waiting for new connection... [02:24:43] Sock 7.Parse request [02:24:43]Sock 7.Check first char [02:24:43]Sock 7.First char is OK [02:24:43]request: POST /json_proto HTTP/1.0 [02:24:43]Method: POST [02:24:43]URL: /json_proto [02:24:43]Method is POST - this is cgi request [02:24:43]url: /json_proto [02:24:43]query_string will be loaded in cgi processing [02:24:43]execute_cgi json_proto POST (null) [02:24:43]execute_cgi path=json_proto method=POST [02:24:43]POST find Content-Length [02:24:43]Host: 172.17.45.7:8080 [02:24:43]Content-Length: 331 [02:24:43]Content-Type: application/json [02:24:43] [02:24:43]POST finish read [02:24:43]Found Content-Length = 331 [02:24:43]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" ] } } [02:24:43]execute_script... [02:24:43]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" ] } } [02:24:43]POST & json_proto [02:24:43]process_json_proto [02:24:43]json parsed OK: [02:24:43]protocol is kg_v1.0 [02:24:43]action value=get_value [02:24:43]process_action get_value [02:24:43]cmd_get_value [02:24:43]process_action get_value done [02:24:43]requested_data is exist [02:24:43]produce_requested_data [02:24:43]requested_item fm.sale.total is exist - process it [02:24:43]SAM_PROTO_GetFMData [02:24:43]wFMCommunicate request_size=4 [02:24:43]MH_SAM_APDU [02:24:43]CAPDU: 80 13 03 00 [02:24:43]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [02:24:43]Write i2c OK [02:24:43]MH_I2C_Read... [02:24:44]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [02:24:44]Read from MH i2c: E2 [02:24:44]MH_I2C_Read... [02:24:44]Read from MH i2c: E2 FD 00 [02:24:44]MH_I2C_Read... [02:24:44]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 E9 CA 01 00 69 04 A3 00 6F 04 04 00 67 BD 01 00 B1 04 05 00 80 13 EC 72 03 70 04 05 00 EC 56 C8 A6 02 72 04 04 00 94 BC 23 CC 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 50 35 C9 5D 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 3C A3 D0 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 82 0D 00 00 B1 04 04 00 DC 2E 0A 3B 70 04 04 00 DC 2E 0A 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2C 3C 45 06 EF 03 09 90 00 B5 [02:24:44]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 E9 CA 01 00 69 04 A3 00 6F 04 04 00 67 BD 01 00 B1 04 05 00 80 13 EC 72 03 70 04 05 00 EC 56 C8 A6 02 72 04 04 00 94 BC 23 CC 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 50 35 C9 5D 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 3C A3 D0 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 82 0D 00 00 B1 04 04 00 DC 2E 0A 3B 70 04 04 00 DC 2E 0A 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2C 3C 45 06 EF 03 09 90 00 [02:24:44]wFMCommunicate OK [02:24:44]wFMCommunicate request_size=4 [02:24:44]MH_SAM_APDU [02:24:44]CAPDU: 80 17 00 00 [02:24:44]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [02:24:44]Write i2c OK [02:24:44]MH_I2C_Read... [02:24:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [02:24:44]Read from MH i2c: E2 [02:24:44]MH_I2C_Read... [02:24:44]Read from MH i2c: E2 FD 00 [02:24:44]MH_I2C_Read... [02:24:44]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 22 C4 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B5 [02:24:44]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 22 C4 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [02:24:44]wFMCommunicate OK [02:24:44]wFMCommunicate request_size=4 [02:24:44]MH_SAM_APDU [02:24:44]CAPDU: 80 17 00 00 [02:24:44]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [02:24:44]Write i2c OK [02:24:44]MH_I2C_Read... [02:24:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [02:24:44]Read from MH i2c: E2 [02:24:44]MH_I2C_Read... [02:24:44]Read from MH i2c: E2 FD 00 [02:24:44]MH_I2C_Read... [02:24:44]Read from MH i2c: E2 FD 00 15 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A7 [02:24:44]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [02:24:44]wFMCommunicate OK [02:24:44]wFMCommunicate request_size=4 [02:24:44]MH_SAM_APDU [02:24:44]CAPDU: 80 17 00 00 [02:24:44]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [02:24:44]Write i2c OK [02:24:44]MH_I2C_Read... [02:24:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [02:24:44]Read from MH i2c: E2 [02:24:44]MH_I2C_Read... [02:24:44]Read from MH i2c: E2 FD 00 [02:24:44]MH_I2C_Read... [02:24:44]Read from MH i2c: E2 FD 00 16 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 22 [02:24:44]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [02:24:44]wFMCommunicate OK [02:24:44]wFMCommunicate request_size=4 [02:24:44]MH_SAM_APDU [02:24:44]CAPDU: 80 17 00 00 [02:24:44]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [02:24:44]Write i2c OK [02:24:44]MH_I2C_Read... [02:24:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [02:24:45]Read from MH i2c: E2 [02:24:45]MH_I2C_Read... [02:24:45]Read from MH i2c: E2 E2 00 [02:24:45]MH_I2C_Read... [02:24:45]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 75 [02:24:45]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [02:24:45]wFMCommunicate OK [02:24:45]SAM_PROTO_GetFMData done [02:24:45]requested_item fm.sale_refund.total is exist - process it [02:24:45]requested_item fm.buy.total is exist - process it [02:24:45]requested_item shift.sale.total is exist - process it [02:24:45]SAM_PROTO_GetShiftData [02:24:45]wFMCommunicate request_size=4 [02:24:45]MH_SAM_APDU [02:24:45]CAPDU: 80 13 02 00 [02:24:45]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [02:24:45]Write i2c OK [02:24:45]MH_I2C_Read... [02:24:45]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [02:24:45]Read from MH i2c: E2 [02:24:45]MH_I2C_Read... [02:24:45]Read from MH i2c: E2 FD 00 [02:24:45]MH_I2C_Read... [02:24:45]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 10 00 00 00 69 04 9B 00 6F 04 04 00 10 00 00 00 B1 04 03 00 5C 72 54 70 04 03 00 34 5C 0B 72 04 03 00 28 16 49 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 06 F8 08 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 55 BF EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 D5 [02:24:45]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 10 00 00 00 69 04 9B 00 6F 04 04 00 10 00 00 00 B1 04 03 00 5C 72 54 70 04 03 00 34 5C 0B 72 04 03 00 28 16 49 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 06 F8 08 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 55 BF EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [02:24:45]wFMCommunicate OK [02:24:45]wFMCommunicate request_size=4 [02:24:45]MH_SAM_APDU [02:24:45]CAPDU: 80 17 00 00 [02:24:45]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [02:24:45]Write i2c OK [02:24:45]MH_I2C_Read... [02:24:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [02:24:45]Read from MH i2c: E2 [02:24:45]MH_I2C_Read... [02:24:45]Read from MH i2c: E2 FD 00 [02:24:45]MH_I2C_Read... [02:24:45]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [02:24:45]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [02:24:45]wFMCommunicate OK [02:24:45]wFMCommunicate request_size=4 [02:24:45]MH_SAM_APDU [02:24:45]CAPDU: 80 17 00 00 [02:24:45]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [02:24:45]Write i2c OK [02:24:45]MH_I2C_Read... [02:24:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [02:24:46]Read from MH i2c: E2 [02:24:46]MH_I2C_Read... [02:24:46]Read from MH i2c: E2 FD 00 [02:24:46]MH_I2C_Read... [02:24:46]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [02:24:46]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [02:24:46]wFMCommunicate OK [02:24:46]wFMCommunicate request_size=4 [02:24:46]MH_SAM_APDU [02:24:46]CAPDU: 80 17 00 00 [02:24:46]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [02:24:46]Write i2c OK [02:24:46]MH_I2C_Read... [02:24:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [02:24:46]Read from MH i2c: E2 [02:24:46]MH_I2C_Read... [02:24:46]Read from MH i2c: E2 FD 00 [02:24:46]MH_I2C_Read... [02:24:46]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [02:24:46]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [02:24:46]wFMCommunicate OK [02:24:46]wFMCommunicate request_size=4 [02:24:46]MH_SAM_APDU [02:24:46]CAPDU: 80 17 00 00 [02:24:46]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [02:24:46]Write i2c OK [02:24:46]MH_I2C_Read... [02:24:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [02:24:46]Read from MH i2c: E2 [02:24:46]MH_I2C_Read... [02:24:46]Read from MH i2c: E2 CB 00 [02:24:46]MH_I2C_Read... [02:24:46]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [02:24:46]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [02:24:46]wFMCommunicate OK [02:24:46]SAM_PROTO_GetShiftData done [02:24:46]requested_item shift.sale.total_cash is exist - process it [02:24:46]requested_item shift.sale_refund.total is exist - process it [02:24:46]requested_item shift.sale_refund.total_cash is exist - process it [02:24:46]requested_item shift.buy.total is exist - process it [02:24:46]requested_item shift.buy.total_cash is exist - process it [02:24:46]produce_requested_data done [02:24:46]produce_requested_data return {"fm.sale.total":148129760.00,"fm.sale_refund.total":9905231.00,"fm.buy.total":0.00,"shift.sale.total":55343.00,"shift.sale.total_cash":7445.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} [02:24:46]process_action_free get_value [02:24:46]json_value_free [02:24:46]json_value_free done [02:24:46]process_json_proto returns [02:24:46]Send response to host [02:24:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":148129760.00,"fm.sale_refund.total":9905231.00,"fm.buy.total":0.00,"shift.sale.total":55343.00,"shift.sale.total_cash":7445.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}}} [02:24:46]free response buf [02:24:46]execute_script done [02:24:46]execute_script returns [02:24:46]free content buf [02:24:46]Sock 7.Close socket [02:24:46]Sock 7.Thread stoped [02:24:47]OFD Sender: No OFD packet to send [02:24:52]OFD Sender: No OFD packet to send [02:24:57]OFD Sender: No OFD packet to send [02:25:02]OFD Sender: No OFD packet to send [02:25:07]OFD Sender: No OFD packet to send [02:25:12]OFD Sender: No OFD packet to send [02:25:17]OFD Sender: No OFD packet to send [02:25:22]OFD Sender: No OFD packet to send [02:25:27]OFD Sender: No OFD packet to send [02:25:32]OFD Sender: No OFD packet to send [02:25:37]OFD Sender: No OFD packet to send [02:25:42]OFD Sender: No OFD packet to send [02:25:47]OFD Sender: No OFD packet to send [02:25:52]OFD Sender: No OFD packet to send [02:25:57]OFD Sender: No OFD packet to send [02:26:02]OFD Sender: No OFD packet to send [02:26:07]OFD Sender: No OFD packet to send [02:26:12]OFD Sender: No OFD packet to send [02:26:17]OFD Sender: No OFD packet to send [02:26:22]OFD Sender: No OFD packet to send [02:26:27]OFD Sender: No OFD packet to send [02:26:32]OFD Sender: No OFD packet to send [02:26:37]OFD Sender: No OFD packet to send [02:26:42]OFD Sender: No OFD packet to send [02:26:47]OFD Sender: No OFD packet to send [02:26:52]OFD Sender: No OFD packet to send [02:26:57]OFD Sender: No OFD packet to send [02:27:02]OFD Sender: No OFD packet to send [02:27:07]OFD Sender: No OFD packet to send [02:27:12]OFD Sender: No OFD packet to send [02:27:17]OFD Sender: No OFD packet to send [02:27:22]OFD Sender: No OFD packet to send [02:27:27]OFD Sender: No OFD packet to send [02:27:32]OFD Sender: No OFD packet to send [02:27:37]OFD Sender: No OFD packet to send [02:27:42]OFD Sender: No OFD packet to send [02:27:47]OFD Sender: No OFD packet to send [02:27:52]OFD Sender: No OFD packet to send [02:27:57]OFD Sender: No OFD packet to send [02:28:02]OFD Sender: No OFD packet to send [02:28:07]OFD Sender: No OFD packet to send [02:28:12]OFD Sender: No OFD packet to send [02:28:17]OFD Sender: No OFD packet to send [02:28:22]OFD Sender: No OFD packet to send [02:28:27]OFD Sender: No OFD packet to send [02:28:32]OFD Sender: No OFD packet to send [02:28:37]OFD Sender: No OFD packet to send [02:28:42]OFD Sender: No OFD packet to send [02:28:47]OFD Sender: No OFD packet to send [02:28:52]OFD Sender: No OFD packet to send [02:28:57]OFD Sender: No OFD packet to send [02:29:02]OFD Sender: No OFD packet to send [02:29:07]OFD Sender: No OFD packet to send [02:29:12]OFD Sender: No OFD packet to send [02:29:17]OFD Sender: No OFD packet to send [02:29:22]OFD Sender: No OFD packet to send [02:29:27]OFD Sender: No OFD packet to send [02:29:32]OFD Sender: No OFD packet to send [02:29:37]OFD Sender: No OFD packet to send [02:29:42]OFD Sender: No OFD packet to send [02:29:47]OFD Sender: No OFD packet to send [02:29:52]OFD Sender: No OFD packet to send [02:29:57]OFD Sender: No OFD packet to send [02:29:59]accept exits with 9 [02:29:59]New connection [02:29:59]New thread 3067067748 created [02:29:59]Thread 3066924388 joined [02:29:59]Waiting for new connection... [02:29:59] Sock 9.Parse request [02:29:59]Sock 9.Check first char [02:29:59]Sock 9.First char is OK [02:29:59]request: POST /json_proto HTTP/1.0 [02:29:59]Method: POST [02:29:59]URL: /json_proto [02:29:59]Method is POST - this is cgi request [02:29:59]url: /json_proto [02:29:59]query_string will be loaded in cgi processing [02:29:59]execute_cgi json_proto POST (null) [02:29:59]execute_cgi path=json_proto method=POST [02:29:59]POST find Content-Length [02:29:59]Host: 172.17.45.7:8080 [02:29:59]Content-Length: 679 [02:29:59]Content-Type: application/json [02:29:59] [02:29:59]POST finish read [02:29:59]Found Content-Length = 679 [02:29:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [02:29:59]execute_script... [02:29: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)949222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [02:29:59]POST & json_proto [02:29:59]process_json_proto [02:29:59]json parsed OK: [02:29:59]protocol is kg_v1.0 [02:29:59]action value=close_receipt [02:29:59]process_action close_receipt [02:29:59]cmd_close_receipt [02:29:59]MH_GetDate [02:29:59]Write to MH i2c: F0 00 00 1D 00 0C [02:29:59]Write i2c OK [02:29:59]MH_I2C_Read... [02:29:59]Read from MH i2c: F0 [02:29:59]MH_I2C_Read... [02:29:59]Read from MH i2c: F0 09 00 [02:29:59]MH_I2C_Read... [02:29:59]Read from MH i2c: F0 09 00 1D 00 00 28 AD A5 66 90 0F 3E 66 38 [02:29:59]GetLastDocTimeStamp 97 [02:29:59]current date 1722133800 [02:29:59]FM_GetShiftState [02:29:59]SAM_PROTO_GetShiftState [02:29:59]wFMCommunicate request_size=4 [02:29:59]MH_SAM_APDU [02:29:59]CAPDU: 80 13 01 00 [02:29:59]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [02:29:59]Write i2c OK [02:29:59]MH_I2C_Read... [02:29:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:29:59]Read from MH i2c: E2 [02:29:59]MH_I2C_Read... [02:29:59]Read from MH i2c: E2 0E 00 [02:29:59]MH_I2C_Read... [02:29:59]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 72 [02:29:59]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [02:29:59]wFMCommunicate OK [02:29:59]SAM_PROTO_GetShiftState done [02:29:59]FM_GetShiftState done [02:29:59]opened in 1722125364 [02:29:59]opened+sec_in_day 1722211764 [02:29:59]quantity*price = 150037 [02:29:59]sum+1 = 150039 [02:29:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 17 28.07.2024 02:30 Смена: 433 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118348 ФПД: 64857493095544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T023000&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118348&fm=64857493095544&tin=02508201610067®Number=0000000000092660&sum=150000 [02:30:01]StoreToDocumentArchive [02:30:01]shift 433 fd 118348 [02:30:01]save to /storage/0433/doc_00118348 [02:30:01]save last doc name /storage/0433/doc_00118348 to /storage/kkm_last_doc_name [02:30:01]save OK [02:30:01]Clear old archive folders... [02:30:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:30:01]tlvbuf is 00115A30 [02:30:01]SAM_PROTO_ClearQueue [02:30:01]wFMCommunicate request_size=4 [02:30:01]MH_SAM_APDU [02:30:01]CAPDU: 80 09 00 00 [02:30:01]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [02:30:01]Write i2c OK [02:30:01]MH_I2C_Read... [02:30:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:30:01]Read from MH i2c: E2 [02:30:01]MH_I2C_Read... [02:30:01]Read from MH i2c: E2 03 00 [02:30:01]MH_I2C_Read... [02:30:01]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [02:30:01]RAPDU: 90 00 [02:30:01]wFMCommunicate OK [02:30:01]SAM_PROTO_ClearQueue done [02:30:01]KKMCreateOFDPacket [02:30:01]OFDProtocolAddRootSTLVToBuf [02:30:01]FM_MakeSignedData [02:30:01]FM_MakeSignedData [02:30:01]SAM_PROTO_SignData [02:30:01]wFMCommunicate request_size=4 [02:30:01]MH_SAM_APDU [02:30:01]CAPDU: 80 0D 01 02 [02:30:01]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [02:30:01]Write i2c OK [02:30:01]MH_I2C_Read... [02:30:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:30:01]Read from MH i2c: E2 [02:30:01]MH_I2C_Read... [02:30:01]Read from MH i2c: E2 03 00 [02:30:01]MH_I2C_Read... [02:30:01]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [02:30:01]RAPDU: 90 00 [02:30:01]wFMCommunicate OK [02:30:01]wFMCommunicate request_size=255 [02:30:01]MH_SAM_APDU [02:30: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 28 AD A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4C CE 01 00 35 04 06 00 3A FC CF D6 [02:30:01]Write to MH i2c: E2 02 01 2D 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 28 AD A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4C CE 01 00 35 04 06 00 3A FC CF D6 00 00 45 [02:30:01]Write i2c OK [02:30:01]MH_I2C_Read... [02:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:30:01]Read from MH i2c: E2 [02:30:01]MH_I2C_Read... [02:30:01]Read from MH i2c: E2 03 00 [02:30:01]MH_I2C_Read... [02:30:01]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [02:30:01]RAPDU: 90 00 [02:30:01]wFMCommunicate OK [02:30:01]wFMCommunicate request_size=7 [02:30:01]MH_SAM_APDU [02:30:01]CAPDU: 80 0D 02 02 02 44 78 [02:30:01]Write to MH i2c: E2 0A 00 2E 00 80 0D 02 02 02 00 44 78 00 00 68 [02:30:01]Write i2c OK [02:30:01]MH_I2C_Read... [02:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:30:01]Read from MH i2c: E2 [02:30:01]MH_I2C_Read... [02:30:01]Read from MH i2c: E2 03 00 [02:30:01]MH_I2C_Read... [02:30:01]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [02:30:01]RAPDU: 90 00 [02:30:01]wFMCommunicate OK [02:30:01]wFMCommunicate request_size=4 [02:30:01]MH_SAM_APDU [02:30:01]CAPDU: 80 0D 03 02 [02:30:01]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [02:30:01]Write i2c OK [02:30:01]MH_I2C_Read... [02:30:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:30:01]Read from MH i2c: E2 [02:30:01]MH_I2C_Read... [02:30:01]Read from MH i2c: E2 0B 00 [02:30:01]MH_I2C_Read... [02:30:01]Read from MH i2c: E2 0B 00 2F 00 00 67 3C 84 81 54 AF 3D 65 90 00 F8 [02:30:01]RAPDU: 67 3C 84 81 54 AF 3D 65 90 00 [02:30:01]wFMCommunicate OK [02:30:01]SAM_PROTO_SignData done [02:30:01]FM_MakeSignedData done [02:30:01]CreateOFDProtocolMessage [02:30:01]wFMCommunicate request_size=4 [02:30:01]MH_SAM_APDU [02:30:01]CAPDU: 80 11 00 00 [02:30:01]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [02:30:01]Write i2c OK [02:30:01]MH_I2C_Read... [02:30:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:30:01]Read from MH i2c: E2 [02:30:01]MH_I2C_Read... [02:30:01]Read from MH i2c: E2 17 00 [02:30:01]MH_I2C_Read... [02:30:01]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 05 [02:30:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [02:30:01]wFMCommunicate OK [02:30:01]CreateOFDProtocolMessage done [02:30:01]OFDSenderStorePacket 118348 [02:30:01]StoreOFDPacket docnum=118348 [02:30:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 99 D6 04 01 62 BC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 28 AD A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4C CE 01 00 35 04 06 00 3A FC CF D6 44 78 67 3C 84 81 54 AF 3D 65 [02:30:01]CheckFolder [02:30:01]dirname=/storage/ofd_packets [02:30:01]CheckFolder done [02:30:01]ProducePacketName [02:30:01]name=ofd_packets/00118348 [02:30:01]NVStorageSaveData ofd_packets/00118348 [02:30:01]File name is /storage/ofd_packets/00118348 [02:30:01]Write 298 bytes [02:30:01]NVStorageSaveData done [02:30:01]OFDSenderStorePacket done [02:30:01]KKMCreateOFDPacket done [02:30:01]NVStorageSaveData kkm_last_timestamp [02:30:01]File name is /storage/kkm_last_timestamp [02:30:01]Write 4 bytes [02:30:01]NVStorageSaveData done [02:30:01]ExternCall_PrintAddStr [02:30:01]wPrintStart [02:30:01]Write to MH i2c: 01 00 00 31 00 31 [02:30:01]Write i2c OK [02:30:01]MH_I2C_Read... [02:30:01]Read from MH i2c: 01 [02:30:01]MH_I2C_Read... [02:30:01]Read from MH i2c: 01 07 00 [02:30:01]MH_I2C_Read... [02:30:01]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [02:30:01]RasterBufferAndPrint [02:30:01]line Счет N : (1)949222 [02:30:01]line ИНН: 02508201610067 [02:30:01]line Контрольно-Кассовый Чек [02:30:01]line ПРОДАЖА [02:30:01]line ТРК (МРК, ГНК) : 11 [02:30:01]line Товар: 2710194800 [02:30:01]line ДТ-К-5 [02:30:01]line 19.690 * 76.20 [02:30:01]line = 1500.38 [02:30:01]line НДС 12% НСП 1% [02:30:01]line > о реализуемом товаре [02:30:01]line ОКРУГЛЕНИЕ: -0.38 [02:30:01]line ИТОГО: 1500.00 [02:30:01]line Внесено: 1500.00 [02:30:01]line СДАЧА: 0.00 [02:30:01]line НСП 1% : 13.28 [02:30:01]line НДС 12% : 159.33 [02:30:01]line Наличными: 1500.00 [02:30:01]line Безнал.: 0.00 [02:30:01]line Место: АЗС № 134 "Партнер Нефть" [02:30:01]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [02:30:01]line СНО: Общий режим [02:30:01]line Чек 17 28.07.2024 02:30 [02:30:01]line Смена: 433 ФФД: 1.0 [02:30:01]line ЗНМ: 0300000044 [02:30:01]line РНМ: 0000000000092660 [02:30:01]line Версия ККМ: 001 [02:30:01]line ФМ: 0000000000874939 [02:30:01]line ФД: 118348 [02:30:01]line ФПД: 64857493095544 [02:30:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T023000&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118348&fm=64857493095544&tin=02508201610067®Number=0000000000092660&sum=150000 [02:30:01]OFD Sender: Processing packet 118348 [packets to send 86, broken 85] [02:30:01]ProducePacketName [02:30:01]name=ofd_packets/00118348 [02:30:01]OFD Sender: To server: pG, [02:30:01]CommunicateWithHost lk.salyk.kg:30040 [02:30:01]ConnectInit lk.salyk.kg [02:30:01]written 0, free lines is 4095 [02:30:02]Connected sock=10 [02:30:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 99 D6 04 01 62 BC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 28 AD A5 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4C CE 01 00 35 04 06 00 3A FC CF D6 44 78 67 3C 84 81 54 AF 3D 65 [02:30:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 4C 53 47 00 35 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4C CE 01 00 F4 03 04 00 B9 5A A5 66 B6 04 01 00 00 53 5F 87 2C E6 9D 24 ED [02:30:02]CommunicateWithHost err = 0 [02:30:02]CheckOFDResponse [02:30:02]1017 (14) - 77093643461234 [02:30:02]1041 (16) - 0000000000874939 [02:30:02]1040 (4) - 118348 [02:30:02]1012 (4) - 27.07.2024 20:38 [02:30:02]1206 (1) - 0 [02:30:02]OFD Sender: Remove packet 118348 [02:30:02]ProducePacketName [02:30:02]name=ofd_packets/00118348 [02:30:02]NVStorageDeleteData [02:30:02]Write to MH i2c: 01 00 00 5B 00 5B [02:30:02]Write i2c OK [02:30:02]MH_I2C_Read... [02:30:02]Read from MH i2c: 01 [02:30:02]MH_I2C_Read... [02:30:02]Read from MH i2c: 01 07 00 [02:30:02]MH_I2C_Read... [02:30:02]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 D1 0C 3F [02:30:02]RasterBufferAndPrint [02:30:02]line [02:30:02]line [02:30:02]line [02:30:02]line [02:30:02]line [02:30:02]written 0, free lines is 3288 [02:30:02]MH_Cut [02:30:02]Write to MH i2c: D1 01 00 62 00 01 34 [02:30:02]Write i2c OK [02:30:02]MH_I2C_Read... [02:30:02]Read from MH i2c: D1 [02:30:02]MH_I2C_Read... [02:30:02]Read from MH i2c: D1 01 00 [02:30:02]MH_I2C_Read... [02:30:02]Read from MH i2c: D1 01 00 62 00 00 33 [02:30:02]Write to MH i2c: 01 00 00 63 00 63 [02:30:02]Write i2c OK [02:30:02]MH_I2C_Read... [02:30:02]OFD Sender: No OFD packet to send [02:30:03]*** Cut start [02:30:03]*** Partial cut [02:30:03]*** CUTSNS_PIN = 1 [02:30:03]*** CUTSNS_PIN = 0 [02:30:03]*** Brake cut motor [02:30:03]Read from MH i2c: 01 [02:30:03]MH_I2C_Read... [02:30:03]*** Stop cut motor [02:30:03]*** Cut end [02:30:03]Read from MH i2c: 01 07 00 [02:30:03]MH_I2C_Read... [02:30:03]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [02:30:03]process_action close_receipt done [02:30:03]requested_data is exist [02:30:03]produce_requested_data [02:30:03]requested_item fm.sn is exist - process it [02:30:03]wFMCommunicate request_size=4 [02:30:03]MH_SAM_APDU [02:30:03]CAPDU: 80 11 00 00 [02:30:03]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [02:30:03]Write i2c OK [02:30:03]MH_I2C_Read... [02:30:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:30:03]Read from MH i2c: E2 [02:30:03]MH_I2C_Read... [02:30:03]Read from MH i2c: E2 17 00 [02:30:03]MH_I2C_Read... [02:30:03]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 39 [02:30:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [02:30:03]wFMCommunicate OK [02:30:03]requested_item fd.num is exist - process it [02:30:03]SAM_PROTO_GetFieldsCounters [02:30:03]wFMCommunicate request_size=4 [02:30:03]MH_SAM_APDU [02:30:03]CAPDU: 80 13 00 00 [02:30:03]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [02:30:03]Write i2c OK [02:30:03]MH_I2C_Read... [02:30:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:30:03]Read from MH i2c: E2 [02:30:03]MH_I2C_Read... [02:30:03]Read from MH i2c: E2 62 00 [02:30:03]MH_I2C_Read... [02:30:03]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4C CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [02:30:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4C CE 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:30:03]wFMCommunicate OK [02:30:03]SAM_PROTO_GetFieldsCounters done [02:30:03]requested_item shift.num is exist - process it [02:30:03]requested_item shift.opened is exist - process it [02:30:03]req_shift_opened [02:30:03]FM_GetShiftState [02:30:03]SAM_PROTO_GetShiftState [02:30:03]wFMCommunicate request_size=4 [02:30:03]MH_SAM_APDU [02:30:03]CAPDU: 80 13 01 00 [02:30:03]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [02:30:03]Write i2c OK [02:30:03]MH_I2C_Read... [02:30:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:30:04]Read from MH i2c: E2 [02:30:04]MH_I2C_Read... [02:30:04]Read from MH i2c: E2 0E 00 [02:30:04]MH_I2C_Read... [02:30:04]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 34 8C A5 66 00 00 00 00 90 00 BA [02:30:04]RAPDU: 09 00 01 34 8C A5 66 00 00 00 00 90 00 [02:30:04]wFMCommunicate OK [02:30:04]SAM_PROTO_GetShiftState done [02:30:04]FM_GetShiftState done [02:30:04]req_shift_opened done [02:30:04]requested_item shift.open_date is exist - process it [02:30:04]req_shift_open_date [02:30:04]req_shift_open_date done [02:30:04]produce_requested_data done [02:30:04]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118348,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364} [02:30:04]process_action_free close_receipt [02:30:04]json_value_free [02:30:04]json_value_free done [02:30:04]process_json_proto returns [02:30:04]Send response to host [02:30:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118348,"shift.num":433,"shift.opened":1,"shift.open_date":1722125364}}} [02:30:04]free response buf [02:30:04]execute_script done [02:30:04]execute_script returns [02:30:04]free content buf [02:30:04]Sock 9.Close socket [02:30:04]Sock 9.Thread stoped [02:30:07]OFD Sender: No OFD packet to send [02:30:12]OFD Sender: No OFD packet to send [02:30:17]OFD Sender: No OFD packet to send [02:30:22]OFD Sender: No OFD packet to send [02:30:27]OFD Sender: No OFD packet to send [02:30:32]OFD Sender: No OFD packet to send [02:30:37]OFD Sender: No OFD packet to send [02:30:42]OFD Sender: No OFD packet to send [02:30:47]OFD Sender: No OFD packet to send [02:30:52]OFD Sender: No OFD packet to send [02:30:57]OFD Sender: No OFD packet to send [02:31:02]OFD Sender: No OFD packet to send [02:31:07]OFD Sender: No OFD packet to send [02:31:12]OFD Sender: No OFD packet to send [02:31:17]OFD Sender: No OFD packet to send [02:31:22]OFD Sender: No OFD packet to send [02:31:27]OFD Sender: No OFD packet to send [02:31:32]OFD Sender: No OFD packet to send [02:31:37]OFD Sender: No OFD packet to send [02:31:42]OFD Sender: No OFD packet to send [02:31:47]OFD Sender: No OFD packet to send [02:31:52]OFD Sender: No OFD packet to send [02:31:57]OFD Sender: No OFD packet to send [02:32:02]OFD Sender: No OFD packet to send [02:32:07]OFD Sender: No OFD packet to send [02:32:12]OFD Sender: No OFD packet to send [02:32:17]OFD Sender: No OFD packet to send [02:32:22]OFD Sender: No OFD packet to send [02:32:27]OFD Sender: No OFD packet to send [02:32:32]OFD Sender: No OFD packet to send [02:32:37]OFD Sender: No OFD packet to send [02:32:42]OFD Sender: No OFD packet to send [02:32:47]OFD Sender: No OFD packet to send [02:32:52]OFD Sender: No OFD packet to send [02:32:57]OFD Sender: No OFD packet to send [02:33:02]OFD Sender: No OFD packet to send [02:33:07]OFD Sender: No OFD packet to send [02:33:12]OFD Sender: No OFD packet to send [02:33:17]OFD Sender: No OFD packet to send [02:33:22]OFD Sender: No OFD packet to send [02:33:27]OFD Sender: No OFD packet to send [02:33:32]OFD Sender: No OFD packet to send [02:33:38]OFD Sender: No OFD packet to send [02:33:43]OFD Sender: No OFD packet to send [02:33:48]OFD Sender: No OFD packet to send [02:33:53]OFD Sender: No OFD packet to send [02:33:58]OFD Sender: No OFD packet to send [02:34:03]OFD Sender: No OFD packet to send [02:34:08]OFD Sender: No OFD packet to send [02:34:13]OFD Sender: No OFD packet to send [02:34:18]OFD Sender: No OFD packet to send [02:34:23]OFD Sender: No OFD packet to send [02:34:28]OFD Sender: No OFD packet to send [02:34:33]OFD Sender: No OFD packet to send [02:34:38]OFD Sender: No OFD packet to send [02:34:43]OFD Sender: No OFD packet to send [02:34:48]OFD Sender: No OFD packet to send [02:34:53]OFD Sender: No OFD packet to send [02:34:58]OFD Sender: No OFD packet to send [02:35:03]OFD Sender: No OFD packet to send [02:35:08]OFD Sender: No OFD packet to send [02:35:13]OFD Sender: No OFD packet to send [02:35:18]OFD Sender: No OFD packet to send [02:35:23]OFD Sender: No OFD packet to send [02:35:28]OFD Sender: No OFD packet to send [02:35:33]OFD Sender: No OFD packet to send [02:35:38]OFD Sender: No OFD packet to send [02:35:43]OFD Sender: No OFD packet to send [02:35:48]OFD Sender: No OFD packet to send [02:35:53]OFD Sender: No OFD packet to send [02:35:58]OFD Sender: No OFD packet to send [02:36:03]OFD Sender: No OFD packet to send [02:36:08]OFD Sender: No OFD packet to send [02:36:13]OFD Sender: No OFD packet to send [02:36:18]OFD Sender: No OFD packet to send [02:36:23]OFD Sender: No OFD packet to send [02:36:28]OFD Sender: No OFD packet to send [02:36:33]OFD Sender: No OFD packet to send [02:36:38]OFD Sender: No OFD packet to send [02:36:43]OFD Sender: No OFD packet to send [02:36:48]OFD Sender: No OFD packet to send [02:36:53]OFD Sender: No OFD packet to send [02:36:58]OFD Sender: No OFD packet to send [02:37:03]OFD Sender: No OFD packet to send [02:37:08]OFD Sender: No OFD packet to send [02:37:13]OFD Sender: No OFD packet to send [02:37:18]OFD Sender: No OFD packet to send [02:37:23]OFD Sender: No OFD packet to send [02:37:28]OFD Sender: No OFD packet to send [02:37:33]OFD Sender: No OFD packet to send [02:37:38]OFD Sender: No OFD packet to send [02:37:43]OFD Sender: No OFD packet to send [02:37:48]OFD Sender: No OFD packet to send [02:37:53]OFD Sender: No OFD packet to send [02:37:58]OFD Sender: No OFD packet to send [02:38:03]OFD Sender: No OFD packet to send [02:38:08]OFD Sender: No OFD packet to send [02:38:13]OFD Sender: No OFD packet to send [02:38:18]OFD Sender: No OFD packet to send [02:38:23]OFD Sender: No OFD packet to send [02:38:28]OFD Sender: No OFD packet to send [02:38:33]OFD Sender: No OFD packet to send [02:38:38]OFD Sender: No OFD packet to send [02:38:43]OFD Sender: No OFD packet to send [02:38:48]OFD Sender: No OFD packet to send [02:38:53]OFD Sender: No OFD packet to send [02:38:58]OFD Sender: No OFD packet to send [02:39:03]OFD Sender: No OFD packet to send [02:39:08]OFD Sender: No OFD packet to send [02:39:13]OFD Sender: No OFD packet to send [02:39:18]OFD Sender: No OFD packet to send [02:39:23]OFD Sender: No OFD packet to send [02:39:28]OFD Sender: No OFD packet to send [02:39:33]OFD Sender: No OFD packet to send [02:39:38]OFD Sender: No OFD packet to send [02:39:43]OFD Sender: No OFD packet to send [02:39:48]OFD Sender: No OFD packet to send [02:39:53]OFD Sender: No OFD packet to send [02:39:58]OFD Sender: No OFD packet to send [02:40:03]OFD Sender: No OFD packet to send [02:40:08]OFD Sender: No OFD packet to send [02:40:13]OFD Sender: No OFD packet to send [02:40:18]OFD Sender: No OFD packet to send [02:40:23]OFD Sender: No OFD packet to send [02:40:28]OFD Sender: No OFD packet to send [02:40:33]OFD Sender: No OFD packet to send [02:40:38]OFD Sender: No OFD packet to send [02:40:43]OFD Sender: No OFD packet to send [02:40:48]OFD Sender: No OFD packet to send [02:40:53]OFD Sender: No OFD packet to send [02:40:58]OFD Sender: No OFD packet to send [02:41:03]OFD Sender: No OFD packet to send [02:41:08]OFD Sender: No OFD packet to send [02:41:13]OFD Sender: No OFD packet to send [02:41:18]OFD Sender: No OFD packet to send [02:41:23]OFD Sender: No OFD packet to send [02:41:28]OFD Sender: No OFD packet to send [02:41:33]OFD Sender: No OFD packet to send [02:41:38]OFD Sender: No OFD packet to send [02:41:43]OFD Sender: No OFD packet to send [02:41:48]OFD Sender: No OFD packet to send [02:41:53]OFD Sender: No OFD packet to send [02:41:58]OFD Sender: No OFD packet to send [02:42:03]OFD Sender: No OFD packet to send [02:42:08]OFD Sender: No OFD packet to send [02:42:13]OFD Sender: No OFD packet to send [02:42:18]OFD Sender: No OFD packet to send [02:42:23]OFD Sender: No OFD packet to send [02:42:28]OFD Sender: No OFD packet to send [02:42:33]OFD Sender: No OFD packet to send [02:42:38]OFD Sender: No OFD packet to send [02:42:43]OFD Sender: No OFD packet to send [02:42:48]OFD Sender: No OFD packet to send [02:42:53]OFD Sender: No OFD packet to send [02:42:58]OFD Sender: No OFD packet to send [02:43:03]OFD Sender: No OFD packet to send [02:43:08]OFD Sender: No OFD packet to send [02:43:13]OFD Sender: No OFD packet to send [02:43:18]OFD Sender: No OFD packet to send [02:43:23]OFD Sender: No OFD packet to send [02:43:28]OFD Sender: No OFD packet to send [02:43:33]OFD Sender: No OFD packet to send [02:43:38]OFD Sender: No OFD packet to send [02:43:43]OFD Sender: No OFD packet to send [02:43:48]OFD Sender: No OFD packet to send [02:43:53]OFD Sender: No OFD packet to send [02:43:58]OFD Sender: No OFD packet to send [02:44:03]OFD Sender: No OFD packet to send [02:44:08]OFD Sender: No OFD packet to send [02:44:13]OFD Sender: No OFD packet to send [02:44:18]OFD Sender: No OFD packet to send [02:44:23]OFD Sender: No OFD packet to send [02:44:28]OFD Sender: No OFD packet to send [02:44:33]OFD Sender: No OFD packet to send [02:44:38]OFD Sender: No OFD packet to send [02:44:43]OFD Sender: No OFD packet to send [02:44:48]OFD Sender: No OFD packet to send [02:44:53]OFD Sender: No OFD packet to send [02:44:58]OFD Sender: No OFD packet to send [02:45:03]OFD Sender: No OFD packet to send [02:45:08]OFD Sender: No OFD packet to send [02:45:13]OFD Sender: No OFD packet to send [02:45:18]OFD Sender: No OFD packet to send [02:45:23]OFD Sender: No OFD packet to send [02:45:28]OFD Sender: No OFD packet to send [02:45:33]OFD Sender: No OFD packet to send [02:45:38]OFD Sender: No OFD packet to send [02:45:43]OFD Sender: No OFD packet to send [02:45:48]OFD Sender: No OFD packet to send [02:45:53]OFD Sender: No OFD packet to send [02:45:58]OFD Sender: No OFD packet to send [02:46:03]OFD Sender: No OFD packet to send [02:46:08]OFD Sender: No OFD packet to send [02:46:13]OFD Sender: No OFD packet to send [02:46:18]OFD Sender: No OFD packet to send [02:46:23]OFD Sender: No OFD packet to send [02:46:28]OFD Sender: No OFD packet to send [02:46:33]OFD Sender: No OFD packet to send [02:46:38]OFD Sender: No OFD packet to send [02:46:43]OFD Sender: No OFD packet to send [02:46:48]OFD Sender: No OFD packet to send [02:46:53]OFD Sender: No OFD packet to send [02:46:58]OFD Sender: No OFD packet to send [02:47:03]OFD Sender: No OFD packet to send [02:47:08]OFD Sender: No OFD packet to send [02:47:13]OFD Sender: No OFD packet to send [02:47:18]OFD Sender: No OFD packet to send [02:47:23]OFD Sender: No OFD packet to send [02:47:28]OFD Sender: No OFD packet to send [02:47:33]OFD Sender: No OFD packet to send [02:47:38]OFD Sender: No OFD packet to send [02:47:43]OFD Sender: No OFD packet to send [02:47:48]OFD Sender: No OFD packet to send [02:47:53]OFD Sender: No OFD packet to send [02:47:58]OFD Sender: No OFD packet to send [02:48:03]OFD Sender: No OFD packet to send [02:48:08]OFD Sender: No OFD packet to send [02:48:13]OFD Sender: No OFD packet to send [02:48:18]OFD Sender: No OFD packet to send [02:48:23]OFD Sender: No OFD packet to send [02:48:28]OFD Sender: No OFD packet to send [02:48:33]OFD Sender: No OFD packet to send [02:48:38]OFD Sender: No OFD packet to send [02:48:43]OFD Sender: No OFD packet to send [02:48:48]OFD Sender: No OFD packet to send [02:48:53]OFD Sender: No OFD packet to send [02:48:58]OFD Sender: No OFD packet to send [02:49:03]OFD Sender: No OFD packet to send [02:49:08]OFD Sender: No OFD packet to send [02:49:13]OFD Sender: No OFD packet to send [02:49:18]OFD Sender: No OFD packet to send [02:49:23]OFD Sender: No OFD packet to send [02:49:28]OFD Sender: No OFD packet to send [02:49:33]OFD Sender: No OFD packet to send [02:49:39]OFD Sender: No OFD packet to send [02:49:44]OFD Sender: No OFD packet to send [02:49:49]OFD Sender: No OFD packet to send [02:49:54]OFD Sender: No OFD packet to send [02:49:59]OFD Sender: No OFD packet to send [02:50:04]OFD Sender: No OFD packet to send [02:50:09]OFD Sender: No OFD packet to send [02:50:14]OFD Sender: No OFD packet to send [02:50:19]OFD Sender: No OFD packet to send [02:50:24]OFD Sender: No OFD packet to send [02:50:29]OFD Sender: No OFD packet to send [02:50:34]OFD Sender: No OFD packet to send [02:50:39]OFD Sender: No OFD packet to send [02:50:44]OFD Sender: No OFD packet to send [02:50:49]OFD Sender: No OFD packet to send [02:50:54]OFD Sender: No OFD packet to send [02:50:59]OFD Sender: No OFD packet to send [02:51:04]OFD Sender: No OFD packet to send [02:51:09]OFD Sender: No OFD packet to send [02:51:14]OFD Sender: No OFD packet to send [02:51:19]OFD Sender: No OFD packet to send [02:51:24]OFD Sender: No OFD packet to send [02:51:29]OFD Sender: No OFD packet to send [02:51:34]OFD Sender: No OFD packet to send [02:51:39]OFD Sender: No OFD packet to send